Gauss-Markov Assumptions for OLS Regression

Michael BrenndoerferMay 22, 202517 min read

Covers the Gauss-Markov assumptions that underpin linear regression. Topics include the five key assumptions, how to test them, consequences of violations.

Machine Learning from ScratchAll chapters
Part 3 of 15Model Fundamentals and Diagnostics
Chapter 27Gauss-Markov Assumptions › Gauss-Markov Assumptions: The Foundation of Linear Regression
Reading the full chapter · 11 sections · 17 min11 sections · 17 min

All 11 sections · 17 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Gauss-Markov Assumptions: The Foundation of Linear Regression

A fitted regression line can look convincing while its reported uncertainty is misleading. The Gauss-Markov assumptions explain when ordinary least squares (OLS) has the smallest variance among linear unbiased estimators. They also help separate that guarantee from the additional conditions needed for confidence intervals and causal interpretation.

Introduction

Linear regression estimates coefficients from observed data. The Gauss-Markov theorem, named after Carl Friedrich Gauss and Andrey Markov, identifies conditions under which OLS is unbiased and has minimum variance within the class of linear unbiased estimators. Understanding the scope of that comparison helps you interpret coefficients and choose remedies when assumptions fail.

The Five Gauss-Markov Assumptions

The Gauss-Markov theorem states that under certain assumptions, the OLS estimator is the best linear unbiased estimator (BLUE). This means it has the smallest variance among all linear unbiased estimators. The five key assumptions are:

1. Linearity in Parameters

The first assumption stipulates that the model must be linear in its parameters, though not necessarily in the variables themselves. Each coefficient multiplies a regressor. Their sum, including the intercept, gives the conditional mean under the zero conditional mean assumption; adding the error gives the observed outcome. The model must be written as:

yi=β0+β1xi1+β2xi2+⋯+βkxik+εiy_i = \beta_0 + \beta_1 x_{i1} + \beta_2 x_{i2} + \cdots + \beta_k x_{ik} + \varepsilon_i

Here, ii indexes the nn observations, jj indexes the kk non-intercept regressors, and β0\beta_0 is the intercept. The value yiy_i is the dependent variable, xijx_{ij} are independent variables, βj\beta_j are coefficients to be estimated, and εi\varepsilon_i is the error term. The model is allowed to include transformed variables (such as logarithms, polynomials, or interactions), as long as the equation remains linear in the β's. For example, y=β0+β1x+β2x2+εy = \beta_0 + \beta_1 x + \beta_2 x^2 + \varepsilon still satisfies this assumption. The implication is that OLS cannot, without modification, fit models where parameters appear in exponents, denominators, or other non-linear forms.

2. Random Sampling

Here, random sampling means the observation pairs (xi,yi)(x_i, y_i) are independent and identically distributed draws from the population of interest. Equal inclusion probabilities alone do not imply independence: sampling without replacement, for example, makes selections dependent. Dependence or selective inclusion may require a different sampling model and variance estimator. This is one common random-design formulation of Gauss-Markov; the theorem can also be stated conditional on a fixed design matrix with uncorrelated, equal-variance errors.

3. No Perfect Multicollinearity

This assumption requires that none of the independent variables is an exact linear function of any combination of the others. In other words, there must be no perfect or exact linear relationships among the explanatory variables. If perfect multicollinearity is present, it becomes mathematically impossible to estimate separate effects for the correlated variables using OLS, because the model cannot distinguish their individual influences. Even strong (but not perfect) correlations, known as high multicollinearity, can inflate the variances of the coefficient estimates, making coefficient estimates sensitive to small changes in the data. Full column rank ensures uniqueness, but it does not guarantee numerical stability or small variances.

4. Zero Conditional Mean

This is one of the most critical assumptions for ensuring unbiasedness of the OLS estimates. It states that the error term has an expected value of zero given any values of the independent variables:

E[εi∣X]=0E[\varepsilon_i | X] = 0

Here, XX denotes the full design matrix of observed regressors. The equation says that, after conditioning on XX, the remaining error has mean zero. Omitted variables or measurement errors violate this condition when they make the conditional error mean depend on the included regressors. Such violations can bias OLS; an omitted variable that is independent of the regressors need not do so. The condition specifies the conditional mean, not the entire conditional distribution of yy. A causal interpretation also requires a defensible causal design and a correctly defined causal model.

5. Homoscedasticity (Constant Variance)

This assumption posits that the variance of the error term is constant across all values of the independent variables:

Var(εi∣X)=σ2\text{Var}(\varepsilon_i | X) = \sigma^2

Here, σ2\sigma^2 is a finite, positive error variance shared by all observations. Together with zero conditional mean and conditionally uncorrelated errors, homoscedasticity gives the usual OLS covariance formula. It does not by itself justify exact t-tests or confidence intervals: the usual finite-sample t and F results additionally assume conditionally Gaussian errors and positive residual degrees of freedom (n>k+1n > k+1). Without Gaussian errors, large-sample inference needs suitable moment and design conditions. Under heteroscedasticity, OLS can remain unbiased, but its BLUE guarantee and usual homoscedastic variance formula need not hold. Heteroscedasticity-robust standard errors address variance estimation under suitable large-sample conditions; they do not change the fitted coefficients or restore efficiency.

Mathematical Foundation

The Gauss-Markov theorem can be stated mathematically as follows:

Theorem: Under assumptions 1-5, the OLS estimator β^\hat{\beta} is the best linear unbiased estimator (BLUE) of β\beta.

This means:

  • Unbiased: E[β^∣X]=βE[\hat{\beta} \mid X] = \beta
  • Efficient: Var(β^∣X)\text{Var}(\hat{\beta} \mid X) is the smallest among all linear unbiased estimators

Consistency is a separate large-sample property. For example, with i.i.d. observations, finite relevant moments, zero conditional mean, and a nonsingular population regressor second-moment matrix, OLS converges in probability to β\beta. Finite-sample BLUE alone does not establish consistency for an arbitrary sequence of designs.

The OLS estimator is given by:

β^=(X′X)−1X′y\hat{\beta} = (X'X)^{-1}X'y

Where:

  • XX is the n×(k+1)n \times (k+1) design matrix, including a column of ones for the intercept.
  • yy is the nn-component outcome vector.
  • β^\hat{\beta} is the (k+1)(k+1)-component coefficient vector.

The prime denotes transpose. Full column rank makes X′XX'X invertible, so this expression gives the unique least-squares coefficient vector. The word linear in BLUE means linear in yy, conditional on XX. The covariance comparison is conditional on the design: no other linear unbiased estimator has smaller variance in any coefficient direction.

Visualizing Assumption Violations

Understanding what happens when assumptions are violated supports proper model diagnosis and the selection of appropriate remedies.

Example: Homoscedasticity vs. Heteroscedasticity

This example demonstrates the difference between homoscedastic (constant variance) and heteroscedastic (non-constant variance) error terms:

VisualizationsOut [2]
CollapseExpand
Scatter plot of 200 observations with constant variance around a fitted regression line, titled Homoscedastic Errors, Constant Variance.
Homoscedastic errors with constant variance. Across 200 observations, the vertical spread around the fitted regression line remains approximately uniform from low to high X.
Scatter plot of 200 observations with increasing variance around a fitted regression line, titled Heteroscedastic Errors, Non-constant Variance.
Heteroscedastic errors with non-constant variance. Across 200 observations, the vertical spread around the fitted regression line increases as X grows.

Example: Residual Plots for Assumption Testing

A fitted value y^i\hat{y}_i is the prediction from the estimated coefficients. Its residual is ei=yi−y^ie_i = y_i - \hat{y}_i, the observed outcome minus that fitted value; it estimates the unobserved model error εi\varepsilon_i. Residual plots can reveal departures from the specified conditional mean or variance. They cannot establish zero conditional mean or prove that all assumptions hold. The normal Q–Q plots below assess the shape of residual distributions; normality is an additional inference assumption, not a Gauss-Markov requirement.

VisualizationsOut [3]
CollapseExpand
Scatter plot of homoscedastic residuals against fitted values with a dashed horizontal zero reference line.
Homoscedastic residuals versus fitted values. The residual cloud stays centered on the dashed zero line with a roughly constant vertical spread across the fitted range.
Scatter plot of heteroscedastic residuals against fitted values with an expanding spread and a dashed horizontal zero reference line.
Heteroscedastic residuals versus fitted values. The residual cloud remains centered near the dashed zero line, but its vertical spread expands as fitted values increase.
VisualizationsOut [4]
CollapseExpand
Normal Q-Q plot of homoscedastic residuals with theoretical quantiles, ordered residual values, and a fitted reference line.
Normal Q–Q plot for the homoscedastic residuals. Ordered residual values are compared with theoretical normal quantiles against the fitted reference line.
Normal Q-Q plot of heteroscedastic residuals with theoretical quantiles, ordered residual values, and a fitted reference line.
Normal Q–Q plot for the heteroscedastic residuals. Ordered residual values are compared with theoretical normal quantiles against the fitted reference line.

Key Components

The Gauss-Markov theorem states that under the five assumptions above, OLS is the Best Linear Unbiased Estimator (BLUE) of the regression coefficients. Conditional on the design matrix, it has minimum variance among estimators that are linear in the observed outcomes and unbiased.

These assumptions need to be understood and checked because:

  • If all assumptions are satisfied: OLS has minimum variance within the linear unbiased class. Exact usual confidence intervals and p-values are justified by additionally assuming Gaussian errors; large-sample approximations require suitable regularity conditions.
  • If some assumptions are violated: OLS estimates may be biased, inefficient, or have standard errors that do not reflect true uncertainty, leading to invalid inference.

The practical approach involves:

  • Diagnosing potential violations via plots and formal statistical tests,
  • Understanding the consequences for estimation and inference,
  • Applying remedies or alternative estimation techniques as needed (e.g., using robust standard errors, transforming variables, or specifying different models).

Review the assumptions before choosing how to calculate uncertainty and interpret the coefficients.

Assumption 1: Linearity in Parameters

  • What it means: The relationship between variables can be expressed as a linear combination of parameters
  • How to check: Plot residuals vs. fitted values; look for systematic patterns
  • Violation consequences: A misspecified conditional mean can bias estimates of the intended relationship.
  • Remedies: Transform variables, use polynomial terms, or switch to non-linear models.

Assumption 2: Random Sampling

  • What it means: Each observation is independently drawn from the population
  • How to check: Examine data collection process, check for clustering or dependencies
  • Violation consequences: Standard errors may be incorrect, affecting hypothesis tests
  • Remedies: Use clustered standard errors, mixed-effects models, or account for sampling design

Assumption 3: No Perfect Multicollinearity

  • What it means: The design matrix has full column rank, including the intercept.
  • How to check: Check matrix rank; pairwise correlations alone can miss dependence on several regressors. VIFs help diagnose near dependence.
  • Violation consequences: Least-squares coefficients are nonunique. A pseudoinverse can select a solution, but cannot identify separate effects. Near dependence can inflate coefficient variances.
  • Remedies: Remove redundant columns or impose justified constraints. Regularization selects or stabilizes estimates but changes the estimator; more rows cannot remove a structural exact dependence.

Assumption 4: Zero Conditional Mean

  • What it means: Error term has zero expected value given the independent variables
  • How to check: Examine the study design and substantive knowledge. Specification tests can detect some departures but cannot verify exogeneity.
  • Violation consequences: OLS can be biased and inconsistent.
  • Remedies: Include relevant controls when justified, or use instrumental variables when valid, relevant instruments are available.

Assumption 5: Homoscedasticity

  • What it means: Error variance is constant across observations
  • How to check: Plot residuals vs. fitted values, use Breusch-Pagan test
  • Violation consequences: The BLUE guarantee and usual homoscedastic standard errors need not hold; unbiasedness can remain.
  • Remedies: Use robust standard errors, weighted least squares, or transform variables

Interpretation Guidelines

When Assumptions Are Met

When the Gauss-Markov assumptions hold, OLS is BLUE for the coefficients. This is a conditional variance comparison within a specified class of estimators. It does not establish exact confidence-interval coverage, causal identification, or optimal prediction among all prediction methods. Gaussian errors justify the usual exact finite-sample t and F inference; suitable large-sample conditions can instead justify approximate inference. Predictive performance should also be checked on data that were not used to fit the model.

When Assumptions Are Violated

If one or more Gauss-Markov assumptions are violated, the properties of OLS estimation may be compromised. The response depends on the violation:

  • Mean specification: Transform variables or use non-linear modeling approaches when the intended relationship is not linear in the chosen parameters.
  • Sampling dependence: Adjust the analysis to account for dependencies or clustering present in the data.
  • Collinearity: Consider regularization for unstable estimates or remove redundant variables when coefficients are nonunique.
  • Zero conditional mean: Relevant controls or instrumental variables may help when their identifying assumptions are defensible.
  • Heteroscedasticity: Consider robust standard errors or appropriately specified weighted least squares for more reliable inference.

Diagnostic Tests

Diagnostics provide evidence of particular departures, rather than proving that the assumptions hold:

  • Conditional mean: Residual plots and Ramsey RESET can flag misspecification.
  • Serial correlation: Durbin-Watson and Breusch-Godfrey target forms of serial correlation in ordered data; they are not general tests of independence or arbitrary clustering.
  • Collinearity: Matrix rank detects exact collinearity, while VIFs assess near dependence.
  • Exogeneity: Hausman comparisons can detect endogeneity under additional assumptions, including a consistent comparison estimator. No residual plot or single specification test establishes zero conditional mean.
  • Conditional variance: Residual plots and Breusch-Pagan or White tests can flag heteroscedasticity under their own testing conditions.

Practical Applications

The Gauss-Markov assumptions provide theoretical assurance for OLS while guiding practical decision-making across fields.

In Data Science

A clear understanding of these assumptions aids important choices throughout the data science workflow. When selecting models, knowledge of the assumptions helps you decide when linear regression is appropriate or when to turn to regularized or non-linear methods. If assumption violations are detected, this can prompt transformations or guide feature engineering. Diagnostic tests support model validation.

In Business Analytics

In business applications, the assumptions help assess coefficient uncertainty in a specified regression model. Forecast accuracy still needs validation on relevant future or held-out data, and causal decisions need an identification strategy. Assumption checks should be documented alongside the intended use of the model.

In Research

For scientific research, the assumptions guide experimental design to promote high-quality data collection that facilitates valid inference. Inference about hypotheses and confidence intervals also needs the distributional or large-sample conditions appropriate to the chosen procedure. Rigorous statistical standards for publication also often require transparency about how these foundational conditions are checked and addressed.

Limitations and Considerations

Common Violations

Examples of assumption violations include conditional means not represented by the chosen linear-in-parameters model, changing error variance, and dependence across observations. In economic or financial data, variability may change with explanatory variables. In time series or panel data, autocorrelation can break the independence assumption. Endogeneity, or correlation between variables and the error term, can also arise and threatens the validity of OLS estimates.

Alternatives When Assumptions Fail

When faced with assumption violations, alternative techniques are available. Heteroscedasticity can be handled with robust standard errors. For endogeneity, instrumental variable methods can help when valid and relevant instruments are available. Autocorrelation may be addressed via generalized least squares when an appropriate error covariance model is available, or by a suitable dependence-robust variance estimator. Non-linear relationships may be represented by transformed regressors while remaining linear in the parameters, or may require non-linear models. When multicollinearity is present, methods such as Ridge or Lasso regression (regularization) can stabilize coefficient estimates.

Practical Considerations

Focus first on the most consequential violations affecting the intended inference or prediction. Employing diagnostic tools facilitates the targeting of remedies to where they are most needed. Decisions about how stringently to enforce each assumption should weigh the costs and benefits in context, balancing model complexity and interpretability against the credibility of the results.

Summary

The Gauss-Markov assumptions give the theory for linear regression. Understanding these assumptions is important for:

  • Proper Model Specification: Knowing when linear regression is appropriate
  • Diagnostic Testing: Identifying assumption violations through residual analysis
  • Remedy Selection: Choosing appropriate methods when assumptions are violated
  • Result Interpretation: Understanding the reliability and limitations of estimates

Awareness of these conditions supports decisions about model selection, diagnostic testing, and result interpretation. Identify the violations that affect the intended conclusion, then choose remedies and inference procedures whose own assumptions are defensible.

Quiz

Ready to test your understanding of the Gauss-Markov assumptions? Take this quiz to reinforce what you've learned about the theoretical foundation of linear regression.

Gauss-Markov Assumptions Quiz

Question 1 of 100 of 10 completed
What does the 'linearity in parameters' assumption require?
Join the discussionAsk a question or share what you learned.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

A different angle
All writing
Machine Learning · Vol. 2

Gradient Descent and Numerical Optimization

Learn how gradient descent updates parameters on quadratic objectives, how curvature and learning rates control convergence, and how to verify least-squares fits in NumPy.

43 min read
Machine Learning · Vol. 2

Maximum Likelihood Estimation

Learn maximum likelihood estimation from scratch, including Bernoulli and Gaussian estimators, log-likelihood, score, curvature, and NumPy/SciPy implementation.

51 min read
Machine Learning · Vol. 2

Normalization: Feature Scaling with Min-Max Implementation

Covers normalization in machine learning, covering min-max scaling, proper train-test split implementation, when to use normalization vs standardization.

14 min read

About the author

Reference

Citation details

Cite or share this article.

BIBTEXAcademic
@misc{brenndoerfer2025gaussmarkov, author = {Michael Brenndoerfer}, title = {Gauss-Markov Assumptions for OLS Regression}, year = {2025}, url = {https://mbrenndoerfer.com/writing/gauss-markov-assumptions-linear-regression-ols-blue-estimator}, organization = {mbrenndoerfer.com}, note = {Accessed: 2026-11-25} }
APAAcademic
Michael Brenndoerfer (2025). Gauss-Markov Assumptions for OLS Regression. Retrieved from https://mbrenndoerfer.com/writing/gauss-markov-assumptions-linear-regression-ols-blue-estimator
MLAAcademic
Michael Brenndoerfer. "Gauss-Markov Assumptions for OLS Regression." 2026. Web. November 25, 2026. <https://mbrenndoerfer.com/writing/gauss-markov-assumptions-linear-regression-ols-blue-estimator>.
CHICAGOAcademic
Michael Brenndoerfer. "Gauss-Markov Assumptions for OLS Regression." Accessed November 25, 2026. https://mbrenndoerfer.com/writing/gauss-markov-assumptions-linear-regression-ols-blue-estimator.
HARVARDAcademic
Michael Brenndoerfer (2025) 'Gauss-Markov Assumptions for OLS Regression'. Available at: https://mbrenndoerfer.com/writing/gauss-markov-assumptions-linear-regression-ols-blue-estimator (Accessed: November 25, 2026).
SimpleBasic
Michael Brenndoerfer (2025). Gauss-Markov Assumptions for OLS Regression. https://mbrenndoerfer.com/writing/gauss-markov-assumptions-linear-regression-ols-blue-estimator
Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy