Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 29

Deriving the Best Linear Unbiased Estimator (BLUE)

Recommended resources

Introduction

Welcome back! In our last lesson, we completed a rigorous proof of the Gauss-Markov theorem. We established that under a set of specific assumptions—most notably that the error terms are uncorrelated and have constant variance (i.e., Cov(ε) = σ²I)—the Ordinary Least Squares (OLS) estimator is the Best Linear Unbiased Estimator (BLUE).

This is a powerful result, but the assumption of "spherical errors" can be restrictive. What if the errors are correlated? Or what if their variances are not equal (a condition known as heteroscedasticity)? This happens frequently in real-world data, for example, when measurement precision depends on the magnitude of the quantity being measured, or when dealing with time-series data where errors from one period carry over to the next.

Today, we will address this by generalizing our model. We will relax the spherical error assumption and consider the case where the error covariance matrix, Cov(ε) = C, is a known but arbitrary positive definite matrix. Our goal is to answer the question: What is the BLUE in this more general setting?

This lesson will guide you through the derivation of the Best Linear Unbiased Estimator for the general linear model. You will find that the resulting estimator, known as the Generalized Least Squares (GLS) estimator, is an elegant extension of the OLS estimator we are already familiar with.


1. The General Linear Model (Aitken Model)

Let's begin by formally stating the model we'll be working with. The structure is the same as before, but the assumption on the error covariance is relaxed.

The general linear model, also known as the Aitken model, is given by:

subject to the following assumptions:

  1. (The errors have zero mean).
  2. , where is a known positive definite matrix.
  3. is a fixed matrix with full column rank.

Notice that if , we recover the standard Gauss-Markov model. The matrix being non-diagonal allows for correlation between errors, and its diagonal elements not being equal allows for heteroscedasticity.

Our objective is to find an estimator that is:

  • Linear in .
  • Unbiased, meaning .
  • Best, meaning it has the minimum variance among all linear unbiased estimators.

We will explore two powerful methods to derive this estimator.


2. Derivation via Whitening Transformation

The first method is a clever strategy: transform the general linear model into an equivalent one that satisfies the Gauss-Markov assumptions. We can then use the OLS formula we already know on the transformed model. This process is often called "whitening" because it transforms correlated errors into "white noise" (uncorrelated errors with constant variance).

The following reading introduces the Aitken model and outlines this exact strategy.

The Aitken Model and Generalized Least Squares

This text introduces the Aitken model, where the error covariance matrix is a general positive definite matrix V (denoted as C in our lesson). It then shows how to construct a transformed model that satisfies the standard Gauss-Markov assumptions, leading to the Generalized Least Squares (GLS) estimator.

Please read Section 4.5, 'The Aitken Model and Generalized Least Squares'. Focus on how the transformed response 'z' is constructed and why this new model satisfies the Gauss-Markov assumptions. Follow the derivation of the 'Aitken equations' (equation 4.15).

Let's break down the key steps of this "whitening" derivation:

  1. Find the Transformation Matrix: Since is a positive definite symmetric matrix, it is invertible, and we can find a non-singular matrix such that . A standard choice for this is the matrix square root inverse, .

  2. Transform the Model: We pre-multiply our model equation by :

    Let's define new, transformed variables:

    The model now becomes .

  3. Check the New Error Term: Let's find the mean and covariance of :

    • Mean: .
    • Covariance: .

    The transformed model satisfies the Gauss-Markov assumptions!

  4. Apply OLS to the Transformed Model: From our previous lesson, we know the BLUE for in this transformed model is given by the OLS formula:

  5. Substitute Back: Now, we substitute the original variables back into this expression:

    Since , we have (as is symmetric). Substituting this gives us the final form of the Generalized Least Squares (GLS) estimator:

This elegant result shows that the BLUE in the general case is a "generalized" form of the OLS estimator, where the data ( and ) are weighted by the inverse of the error covariance matrix.


3. Derivation via Constrained Optimization

The whitening approach is intuitive, but a more direct and fundamental way to derive the BLUE is by formulating it as a constrained optimization problem. This method aligns perfectly with your interest in rigorous mathematical proofs.

The problem is:
Minimize the variance of the estimator, trace(Var(β_hat)).
Subject to the constraint that the estimator is unbiased, E[β_hat] = β.

The following lecture notes walk through this derivation using the method of Lagrange multipliers.

Finding the BLUE: Best Linear Unbiased Estimation

These lecture notes formally derive the BLUE by setting it up as a constrained minimization problem. This is a powerful, first-principles approach that doesn't rely on the whitening trick.

Please study slides 5 through 16. The key steps are: Slide 5: Setting up the minimization problem. Slides 7-8: Formulating the unbiased constraint AH = I (where H is our X). Slides 9-10: Calculating the covariance of the estimator, ACAᵀ. Slides 12-16: Using Lagrange multipliers to solve the constrained optimization problem, step-by-step, to find the optimal matrix A.

Let's recap the essential logic from the notes:

  1. Estimator and Constraint: We define a linear estimator (using the notation from the slides, with instead of and instead of ). The unbiasedness constraint leads to the condition .

  2. Objective Function: The variance of the estimator is . We want to minimize its trace.

  3. Lagrange Multipliers: The problem is to minimize subject to . Using a matrix of Lagrange multipliers , the Lagrangian is:

  4. Solving the System: By taking the matrix derivative with respect to and setting it to zero, and then using the constraint, the notes derive the solution for the optimal :

    This gives us exactly the same GLS estimator as the whitening method.

Having derived the same result from two different perspectives strengthens our understanding. The whitening method provides the "why" (it's just OLS in disguise), while the optimization method provides a direct, rigorous proof of optimality.


4. Properties of the GLS Estimator

Now that we have the form of the BLUE, let's determine its covariance matrix. This tells us the precision of our new estimator.

The calculation is a straightforward application of the variance formula for linear transformations.

BLUE Performance

This slide calculates the covariance matrix of the BLUE we just derived. The derivation is concise and follows directly from the formula for the estimator.

Please review slide 16, 'BLUE Performance'. Follow the steps where ĀCĀᵀ is expanded and simplified.

Let's write it out. Let .

So, the covariance of the GLS estimator is . This is a beautifully compact result.

Special Case: Weighted Least Squares (WLS)

A very intuitive special case of GLS is when the errors are uncorrelated but heteroscedastic. In this scenario, the covariance matrix is diagonal:

Then, its inverse is also diagonal, with entries . The GLS estimator minimizes the quadratic form , which in this case becomes:

This is known as Weighted Least Squares (WLS). It minimizes the sum of squared errors, where each error is weighted by the inverse of its variance. This makes perfect intuitive sense: observations with smaller variance (i.e., more precision) are given more weight in the estimation of .


Conclusion

In this lesson, we have moved beyond the standard Gauss-Markov assumptions to derive the Best Linear Unbiased Estimator for the general linear model, where errors can be correlated and heteroscedastic.

Key Takeaways:

  • The General Linear Model (Aitken Model): This model allows for a general error covariance matrix, , making it more flexible than the standard model.
  • The BLUE is the GLS Estimator: We derived, through two different methods, that the BLUE for this general model is the Generalized Least Squares (GLS) estimator:
  • GLS Generalizes OLS: If the errors are spherical (), the GLS formula simplifies to the familiar OLS formula.
  • Intuition of Whitening and Weighting: The GLS estimator can be understood as either applying OLS to a "whitened" version of the data or as a "weighted" least squares problem where data points are weighted by the inverse of the error covariance.
  • Covariance of the GLS Estimator: The performance of the estimator is given by its covariance matrix, .

You have now mastered the frequentist approach to optimal linear estimation. We've seen how to find the "best" estimator under different assumptions about the data-generating process.


Preview of the Next Lesson:

We now pivot from the frequentist paradigm to the Bayesian school of thought. In the upcoming lessons, we will no longer treat parameters like as fixed, unknown constants. Instead, we will treat them as random variables with their own probability distributions. You will learn how to combine prior beliefs about a parameter with observed data to form an updated posterior belief. This will lead us to new types of estimators, such as the Minimum Mean Square Error (MMSE) and Maximum A Posteriori (MAP) estimators.