Most candidates know linear regression.
#datascience #machinelearning #datascienceinterview
Most candidates know linear regression.
Very few can explain it correctly in interviews.
Here’s the common mistake I see 👇
People think linear regression is about a straight line.
Interviewers care about how variables absorb each other’s effect.
Simple example 👇
Let’s say you’re predicting house price using:
• House size
• Number of rooms
Both variables are highly correlated.
When you add both into linear regression:
• The effect of size gets partly absorbed by rooms
• Coefficients may flip signs or shrink
• But the model is still mathematically correct
👉 This is not a bug.
It’s how linear regression distributes impact among correlated features.
What I look for in interviews:
• Do you recognize multicollinearity?
• Can you explain why coefficients change?
• Do you know when to:
• keep both features
• regularize (Ridge/Lasso)
• or drop one intentionally
Linear regression isn’t about memorizing formulas.
It’s about interpreting relationships under constraints.
That’s what separates junior answers from senior ones.
#datascience
#machinelearning
#datascienceinterview
#linearregression
#interview
Comments
Comments from the original post on Instagram
No comments yet
