Skip to main content

Someone wanted to learn this too, so Grasp built them a personal learning path.

You can keep exploring this one or create your own

Understanding the Gauss-Markov Theorem

Hello! Welcome to the next lesson in our journey through the statistical properties of linear regression.

In our previous lessons, we have established two fundamental properties of the Ordinary Least Squares (OLS) estimator:

  1. It is unbiased, meaning on average, it hits the true parameter values ().
  2. We derived its variance-covariance matrix, , which quantifies its precision.

These are excellent properties, but they lead to a critical question: Could there be another linear and unbiased estimator that is even more precise (i.e., has a smaller variance)? Today, we will answer this question definitively.

Our learning outcome is to state and explain the Gauss-Markov theorem regarding the optimality of OLS estimators. This celebrated theorem provides the theoretical backbone for why OLS is so widely used. It establishes that, within a certain class of estimators, OLS is not just good—it's the best.

1. The Meaning of "BLUE"

The Gauss-Markov theorem states that under a specific set of assumptions, the OLS estimator is BLUE, which stands for Best Linear Unbiased Estimator. Let's break down this acronym, as it perfectly frames the theorem's content.

  • Estimator: is a rule (an estimator) for calculating an estimate of the true parameter from a sample of data.
  • Linear: The estimator is a linear function of the observed outcomes, . We've already confirmed this property, as , where the term in brackets is a matrix of constants once is known.
  • Unbiased: The expected value of the estimator is the true parameter, . We formally proved this in a previous lesson.
  • Best: This is the new and crucial piece. "Best" means that the OLS estimator has the minimum variance among all other linear unbiased estimators.

An estimator with lower variance is more precise, meaning its estimates are more tightly clustered around the true parameter value.

Precise and Imprecise Sampling Distributions of Beta Estimates
This image illustrates the concept of precision. Both the narrow (solid blue) and wide (dashed red) distributions are centered on the 'True Beta', indicating they come from unbiased estimators. The Gauss-Markov theorem proves that the OLS estimator corresponds to the most precise sampling distribution possible (the blue curve) out of all linear unbiased estimators.

For a vector of estimates , "minimum variance" has a specific meaning. An estimator is "best" if for any other linear unbiased estimator , the matrix is a positive semi-definite matrix. This is a powerful condition that implies that the variance of any linear combination of the coefficients (e.g., ) is minimized by the OLS estimates.

2. The Gauss-Markov Theorem and Its Assumptions

To fully appreciate the proof, let's first formally state the theorem and the assumptions it relies upon. These are the Classical Linear Model (CLM) assumptions we have been building over the past lessons.

Gauss Markov theorem

The resource 'Gauss Markov theorem' from Statlect provides a very clear statement of the assumptions. Let's review them to set the stage.

Please read the 'Assumptions' section. You will see it neatly lists the four conditions required for the theorem to hold, all of which we have discussed previously.

To summarize, the key assumptions are:

  1. Linearity: The model is linear in parameters: .
  2. Full Rank: The matrix has full column rank, meaning no perfect multicollinearity.
  3. Zero Conditional Mean: The errors have a mean of zero conditional on : .
  4. Spherical Errors: The errors are homoscedastic ( for all ) and not autocorrelated ( for ). This is compactly written as .

With these in place, we can state the theorem.

The Gauss-Markov Theorem:

Under the classical linear model assumptions 1-4, the Ordinary Least Squares (OLS) estimator is the Best Linear Unbiased Estimator (BLUE) of .

This means that no other estimator that is both linear in and unbiased can have a smaller variance-covariance matrix than OLS.

3. Proof of the Gauss-Markov Theorem

Your preference for mathematical rigor will be satisfied here. The proof is elegant and demonstrates the power of the matrix algebra framework we've developed. We will construct a generic linear unbiased estimator and show that its variance must be greater than or equal to the OLS variance.

For a comprehensive guide through the proof, the Statlect article is an excellent resource.

Gauss Markov theorem

The section 'OLS is BLUE' in the 'Gauss Markov theorem' article walks through the complete proof. We will reconstruct this proof step by step.

Read the section 'OLS is BLUE'. Follow the logic from defining an alternative estimator through to the final comparison of the variance matrices. The derivation is concise and mathematically dense, so take your time with each step.

Let's work through the logic together.

Step 1: Define an arbitrary alternative linear estimator.
Let be any other linear estimator of . By definition of linearity, it can be written as:

where is some matrix. We can express in a clever way by relating it to the OLS estimator's matrix, . Let:

where is another matrix that represents the difference between our new estimator and OLS.

Step 2: Impose the unbiasedness constraint.
We require to be unbiased, meaning .

For this to equal for any possible , we must have .

Now substitute our definition of :

For to hold, we must have , which implies the crucial condition:

Step 3: Derive the variance of .
The variance of our alternative estimator is:

Now substitute and expand:

Expanding the brackets gives four terms:

  1. . Since , this term is .
  2. . Since , this term is .

Step 4: Combine terms and conclude.
Putting it all together, the cross-product terms vanish, and we are left with:

Recognizing that , we arrive at the final result:

This equation is the heart of the theorem. It shows that the variance of any linear unbiased estimator is equal to the variance of the OLS estimator plus another matrix, .

The matrix is positive semi-definite. For any vector , . This confirms that is a positive semi-definite matrix. Therefore, the OLS estimator has the "smallest" variance. It is the Best Linear Unbiased Estimator.

This video provides a great visualization of the final algebraic steps of the proof.

The Gauss-Markov Theorem proof - matrix form - part 3

The video 'The Gauss-Markov Theorem proof - matrix form' from Ben Lambert's channel focuses on the climactic part of the proof we just walked through.

Watch from the beginning to 04:51. The video uses slightly different notation (e.g., C instead of our D), but the logic is identical. Pay close attention to how the condition DX=0 (our DX=0) makes the cross-product terms disappear and how the final DD' term is identified as a positive semi-definite matrix.

Test your understanding!

According to our proof, the variance of any other linear unbiased estimator is given by .

Under what condition is ? What does this imply about the estimator ?

Show answer

The variances are equal if and only if the additional term is a matrix of zeros. Since , this requires , which in turn implies that the matrix must be the zero matrix, .

If , then our alternative estimator matrix becomes . This means that , which is precisely the OLS estimator.

This demonstrates that the only linear unbiased estimator with the minimum possible variance is the OLS estimator itself. It is not just an optimal estimator; it is the unique optimal estimator in its class.

Conclusion

Today, we have reached a major milestone in our theoretical understanding of linear regression. We formally stated and proved the Gauss-Markov theorem, the cornerstone result that justifies the widespread use of OLS.

Key Takeaways:

  • The Gauss-Markov theorem states that under the classical linear model assumptions, the OLS estimator is the Best Linear Unbiased Estimator (BLUE).
  • Best signifies that OLS has the minimum variance among the class of all linear and unbiased estimators.
  • The proof hinges on defining an arbitrary linear unbiased estimator and demonstrating that its variance matrix is equal to the OLS variance matrix plus a positive semi-definite matrix, proving the optimality of OLS.
  • This theorem gives us strong theoretical confidence in OLS. When its assumptions hold, we are using the most precise linear unbiased estimator possible.

Preview of the Next Lesson:
Having established the optimality of the OLS estimator for the coefficients , we will shift our focus from the properties of the estimator to the properties of the overall model. In the next lesson, we will explore how to quantify how well our model explains the variation in the data by defining residuals and deriving the coefficient of determination (R-squared).

Can't find a good explanation? Sign up and we'll make it for you

Sign up