Sitemap
Affan Ahmed

Affan Ahmed

I am a Data Science and AI professional, I like to share some of my learnings here.

๐—ง๐—ต๐—ฒ ๐Ÿฒ ๐—ž๐—ฒ๐˜† ๐—”๐˜€๐˜€๐˜‚๐—บ๐—ฝ๐˜๐—ถ๐—ผ๐—ป๐˜€ ๐—ผ๐—ณ ๐—Ÿ๐—ถ๐—ป๐—ฒ๐—ฎ๐—ฟ ๐—ฅ๐—ฒ๐—ด๐—ฟ๐—ฒ๐˜€๐˜€๐—ถ๐—ผ๐—ป (๐—”๐—ป๐—ฑ ๐—›๐—ผ๐˜„ ๐˜๐—ผ ๐—ง๐—ฒ๐˜€๐˜ ๐—ง๐—ต๐—ฒ๐—บ)

4 min readAug 27, 2026

Most people fit a linear regression, check the Rยฒ and p-values, and call it a day.

But regression results are only as reliable as the assumptions behind them.

Here are 6 key assumptions and conditions worth checking, how to diagnose them, and what happens when they are violated ๐Ÿ‘‡

๐Ÿญ. ๐—–๐—ผ๐—ฟ๐—ฟ๐—ฒ๐—ฐ๐˜ ๐—™๐˜‚๐—ป๐—ฐ๐˜๐—ถ๐—ผ๐—ป๐—ฎ๐—น ๐—™๐—ผ๐—ฟ๐—บ / ๐—Ÿ๐—ถ๐—ป๐—ฒ๐—ฎ๐—ฟ๐—ถ๐˜๐˜†

The model must be linear in its coefficients (parameters) โ€” the predictors themselves can be transformed.

โœ… yแตข = ฮฒโ‚€ + ฮฒโ‚xแตข + ฮฒโ‚‚xแตขยฒ + uแตข

โœ… yแตข = ฮฒโ‚€ + ฮฒโ‚log(xแตข) + uแตข

โŒ yแตข = ฮฒโ‚€ + xแตข^ฮฒโ‚ + uแตข

The last model is nonlinear in the parameter ฮฒโ‚.

If violated: OLS cannot directly estimate the model unless it can be transformed into a form that is linear in the parameters.

๐Ÿ“Š How to check: Use residual plots and model specification diagnostics to assess whether the chosen functional form adequately captures the relationship.

๐Ÿฎ. ๐—ญ๐—ฒ๐—ฟ๐—ผ ๐—–๐—ผ๐—ป๐—ฑ๐—ถ๐˜๐—ถ๐—ผ๐—ป๐—ฎ๐—น ๐— ๐—ฒ๐—ฎ๐—ป / ๐—˜๐˜…๐—ผ๐—ด๐—ฒ๐—ป๐—ฒ๐—ถ๐˜๐˜†

This is one of the most important assumptions:

E(uแตข | X) = 0

In simple terms, the predictors should not be systematically related to the unobserved factors captured by the error term.

This is where problems such as omitted-variable bias, reverse causality, and certain forms of measurement error can arise.

๐Ÿ“Š Can we test it directly?

Not generally. Exogeneity is primarily justified through study design, domain knowledge, experimental design, or methods such as instrumental variables when appropriate.

If violated: OLS coefficients can be biased and inconsistent. Unlike heteroscedasticity, this is not simply a standard-error problem.

๐Ÿฏ. ๐—›๐—ผ๐—บ๐—ผ๐˜€๐—ฐ๐—ฒ๐—ฑ๐—ฎ๐˜€๐˜๐—ถ๐—ฐ๐—ถ๐˜๐˜†

The variance of the error term should be constant:

Var(uแตข | X) = ฯƒยฒ

๐Ÿ“Š Breusch-Pagan / White / Goldfeld-Quandt tests

For example, with the Breusch-Pagan test:

  • Hโ‚€: Homoscedasticity
  • Hโ‚: Heteroscedasticity

A low p-value suggests rejecting Hโ‚€.

If violated: Under the usual exogeneity assumptions, OLS coefficients can still be unbiased, but the conventional standard errors become unreliable, which can invalidate t-tests, F-tests, p-values, and confidence intervals.

๐Ÿ’ก Practical solution: Use heteroscedasticity-robust standard errors when appropriate.

๐Ÿฐ. ๐—ก๐—ผ ๐—”๐˜‚๐˜๐—ผ๐—ฐ๐—ผ๐—ฟ๐—ฟ๐—ฒ๐—น๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ผ๐—ณ ๐—ฅ๐—ฒ๐˜€๐—ถ๐—ฑ๐˜‚๐—ฎ๐—น๐˜€

Residuals should not be systematically correlated with one another, particularly in time-series settings.

๐Ÿ“Š Durbin-Watson test

  • Hโ‚€: No first-order autocorrelation
  • Hโ‚: First-order autocorrelation exists

The statistic is approximately:

2 โ†’ little/no first-order autocorrelation < 2 โ†’ positive autocorrelation > 2 โ†’ negative autocorrelation

Get Affan Ahmedโ€™s stories inย yourย inbox

Join Medium for free to get updates fromย thisย writer.

If violated: Conventional standard errors can become unreliable, often leading to misleading significance tests and confidence intervals.

๐Ÿ’ก Important: Durbin-Watson primarily addresses first-order autocorrelation; it is not a general test for every possible form of serial correlation.

๐Ÿฑ. ๐—ก๐—ผ ๐—ฃ๐—ฒ๐—ฟ๐—ณ๐—ฒ๐—ฐ๐˜ ๐— ๐˜‚๐—น๐˜๐—ถ๐—ฐ๐—ผ๐—น๐—น๐—ถ๐—ป๐—ฒ๐—ฎ๐—ฟ๐—ถ๐˜๐˜†

Predictors should not be exact linear combinations of one another.

๐Ÿ“Š VIF (Variance Inflation Factor)

VIF is a diagnostic, not a hypothesis test.

A common rule of thumb:

  • VIF โ‰ˆ 1 โ†’ little multicollinearity
  • VIF > 5 โ†’ potentially concerning
  • VIF > 10 โ†’ often considered serious

If violated: Perfect multicollinearity prevents OLS from uniquely estimating the affected coefficients.

With high but imperfect multicollinearity, coefficients can become unstable and their standard errors can become large, making individual predictors appear statistically insignificant even when the model performs well overall.

๐Ÿฒ. ๐—ก๐—ผ๐—ฟ๐—บ๐—ฎ๐—น๐—ถ๐˜๐˜† ๐—ผ๐—ณ ๐—˜๐—ฟ๐—ฟ๐—ผ๐—ฟ๐˜€

For exact small-sample t- and F-inference, normality of the errors is typically assumed:

uแตข | X ~ N(0, ฯƒยฒ)

๐Ÿ“Š Jarque-Bera test + Q-Q plot

Jarque-Bera:

  • Hโ‚€: Errors are normally distributed
  • Hโ‚: Errors are not normally distributed

A Q-Q plot provides a useful visual check: points should approximately follow the diagonal.

If violated: OLS coefficient estimates do not automatically become biased. With the appropriate exogeneity condition, OLS can still be unbiased.

The main issue is that exact small-sample t- and F-based inference may no longer be valid. With sufficiently large samples, asymptotic results often make normality much less important.

๐—ง๐—ต๐—ฒ ๐—•๐—ถ๐—ด ๐—ฃ๐—ถ๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ

One important lesson:

Not all assumption violations are equally dangerous.

๐Ÿ”ด Exogeneity violation โ†’ can bias the coefficient estimates themselves.

๐ŸŸ  Heteroscedasticity/autocorrelation โ†’ coefficients may remain unbiased under exogeneity, but conventional standard errors and statistical inference can become unreliable.

๐ŸŸก Non-normal errors โ†’ mainly a concern for exact small-sample inference.

๐ŸŸข Multicollinearity โ†’ primarily increases coefficient uncertainty and instability; it does not automatically bias OLS coefficients.

And remember:

A p-value < 0.05 does NOT mean โ€œthe assumption is violatedโ€ in every situation.

It means you reject the specific null hypothesis of the particular statistical test you performed.

So donโ€™t blindly run tests and look for p-values.

Combine:

๐Ÿ“Š Statistical tests ๐Ÿ“ˆ Residual plots ๐Ÿง  Domain knowledge ๐Ÿ” Model specification checks

A regression model isnโ€™t trustworthy just because it has a high Rยฒ and significant coefficients.

You need to understand why those coefficients can be trusted.

--

--

Affan Ahmed
Affan Ahmed

Written by Affan Ahmed

I am a Data Science and AI professional, I like to share some of my learnings here.