KatInterview

Linear Regression Assumptions and Handling Correlated Predictors

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentslinear-regressionolsmulticollinearity

Last updated

Describe the classical assumptions behind least squares, explain how correlated predictors affect inference, and cover diagnostics, fixes and the exactly collinear case.

You are fitting an ordinary least squares model and need to reason about when it can be trusted. Answer the following.

  1. Assumptions. List the classical assumptions behind OLS (linearity, independent errors, constant error variance, normal errors for inference, no exact linear dependence among predictors, correct model specification). For each one, say what it guarantees and what goes wrong when it fails.
  2. Correlated predictors. Define multicollinearity. Explain how it affects coefficient variance, coefficient stability, confidence intervals and p-values, and clarify what it does not affect (bias of the point estimates).
  3. Diagnosis. Describe how you would detect it: correlation matrix, variance inflation factors and their usual cutoffs, condition number, and eigenvalue analysis.
  4. Remedies. Propose ways to deal with it (more data, dropping or merging features, centering for polynomial and interaction terms, ridge, LASSO, elastic net, PCA or PLS) and discuss the trade-offs of each.
  5. Exact collinearity. If two predictors are perfectly collinear, what happens to X'X, and how do common software packages respond?

Hints

Hint 1

Organize the assumptions in layers: which ones give unbiasedness, which add the minimum-variance property (Gauss-Markov), and which only matter for exact t and F tests.

Hint 2

Write the variance of a single coefficient in terms of the R-squared obtained by regressing that predictor on all the others. The variance inflation factor falls straight out of it.

Hint 3

A pairwise correlation matrix can miss dependencies among three or more variables, so pair it with VIF and with the singular values or eigenvalues of the standardized design matrix.

Hint 4

For the perfect-collinearity case, think about the rank of X, whether the inverse exists, and what a pseudo-inverse, a dropped column, or a penalty does to the solution.