Statistics · medium

How do you interpret a regression coefficient, and when is that interpretation wrong?

Asked in Data Analyst interviews, in the Statistics round.

Short answer

A one-unit increase in the feature is associated with a coefficient-sized change in the outcome, holding the other features fixed. Wrong when features cannot move independently, when the relationship is nonlinear, when the outcome is logged or logistic, or when you read it as causal.

How to answer it

Definition

In a linear model, a coefficient is the expected change in the outcome for a one-unit increase in that predictor, holding the other predictors fixed. Every part of that sentence is doing work.

Example

price = 50,000 + 120 * sqft - 3,000 * distance_km

+120         each extra square foot is associated with $120 more,
             for houses at the same distance
-3,000       each extra km from the centre is associated with $3,000 less,
             for houses of the same size

When the interpretation breaks

Key points

FAQ

The 30-second answer

A coefficient is the expected change in the outcome for a one-unit increase in that predictor, holding the others constant. So in a house-price model, a coefficient of a hundred and twenty on square footage means a hundred and twenty dollars more per square foot, for houses at the same distance from the centre.
Where it goes wrong is mostly that phrase, holding others constant. It is a statistical operation rather than something you can necessarily do in the world, and it is associational unless the predictor was randomized.
The specific traps I would name are controlling for a mediator, which removes the very effect you are measuring, collinearity, which makes the split between two correlated predictors arbitrary and can flip a sign, and extrapolating outside the range the data actually covers.

In the interview

Practice this for real