Interview Q&A / Machine Learning

IntermediateQuick answer1 min readUpdated 3 Oct 2026

What are the main assumptions of linear regression?

SHORT ANSWER

Linearity between features and target, independent errors, constant error variance (homoscedasticity), roughly normal errors (needed mainly for confidence intervals), and no severe multicollinearity among features.

Explain it simply

Linear regression draws the best straight line (or flat plane) through data. It is only trustworthy when the data behaves roughly like a line plus random noise.

A handy memory aid is LINE: Linearity, Independence, Normality, Equal variance.

Example

text
Linearity       : the true relation is a straight line, not a curve
                  (area vs price: yes. Age vs height from 0-60: no)
Independence    : one row's error does not predict the next
                  (broken in time series: today's error resembles yesterday's)
Equal variance  : spread of errors is the same at all predictions
                  (broken when big flats have much larger errors than small ones)
Normal errors   : residuals look bell-shaped, matters for p-values and intervals
No multicollinearity : features are not near copies of each other

How to check: plot residuals against predicted values. A curve means non-linearity, a fan shape means unequal variance. A Q-Q plot checks normality. The Durbin-Watson test checks for correlated errors.

Predictions can still be useful when assumptions are mildly broken, but the coefficients' standard errors and p-values become unreliable.

What to say in the interview

"The assumptions are linearity, independent errors, constant variance, normally distributed residuals and no strong multicollinearity. I check them with residual plots, a Q-Q plot, Durbin-Watson and VIF. Violations hurt inference more than raw prediction accuracy."

Common mistakes

  • Saying the features themselves must be normally distributed; the assumption is about residuals.
  • Ignoring residual plots and trusting R squared alone.

#linear-regression#assumptions#residuals

Related questions

Practise more Machine Learning questions

Test your recall with short answers, then return to the detailed explanations when you need context.

Open Machine Learning quick answers →

Get new questions like this by email

One short email when something new and useful lands. No spam, unsubscribe in one tap.

By subscribing you agree to the Privacy Policy.