Recommended resources
The freely available resources this lesson will direct you to.
Hello! Welcome back to your study of linear regression.
In our last lesson, we established a powerful probabilistic justification for Ordinary Least Squares (OLS). We showed that by assuming the errors in our model are independent and normally distributed, the OLS solution is precisely the Maximum Likelihood Estimate (MLE) for the regression coefficients. This gave a deep statistical meaning to the "sum of squared errors" criterion.
Having derived the OLS estimator , our focus now shifts to analyzing its properties as a statistical estimator. How reliable is it? Does it, on average, give us the right answer? Today, we will answer this question by addressing a fundamental property: unbiasedness. Our learning outcome is to prove the unbiasedness of the OLS estimators under the classical linear model assumptions.
This lesson marks our transition from finding the estimator to evaluating it, a critical step in rigorous model-building.
1. What is an Unbiased Estimator?
Before diving into the proof, let's clarify what "unbiased" means. An estimator is a function of our sample data that gives us an estimate of an unknown population parameter. Since our sample is random, the estimate itself is a random variable—if we were to draw a different sample, we would get a different estimate.
An estimator is called unbiased if the mean of its sampling distribution is equal to the true, unknown population parameter. In other words, while any single estimate might be higher or lower than the true value, the estimation procedure does not systematically over- or underestimate the parameter. On average, it hits the target.
The image below provides a clear visual. The "Unbiased Estimator's Distribution" is centered on the true parameter , while the "Biased Estimator's Distribution" is systematically off-center.

For our OLS estimator , unbiasedness means that .
2. The Classical Linear Model (CLM) Assumptions
To prove that the OLS estimator is unbiased, we must first lay out the set of assumptions under which this property holds. These are often called the Gauss-Markov assumptions or the Classical Linear Model (CLM) assumptions. Your familiarity with formal definitions from your previous coursework will be helpful here.
The following document, 'OLS in Matrix Form' from Stanford University, provides a concise and formal list of the Gauss-Markov assumptions. We will rely on these for today's proof and subsequent lessons.
Please read Section 4, 'The Gauss-Markov Assumptions' (pages 4-6). Focus on understanding Assumptions 1, 2, and 3. These are the ones we will need for the proof of unbiasedness.
To summarize the key assumptions for our proof today:
- Linearity in Parameters: The true relationship between and is linear: .
- Full Rank: The matrix has full column rank, meaning its columns are linearly independent (no perfect multicollinearity). This ensures that exists.
- Zero Conditional Mean: The expected value of the error term, conditional on the regressors, is zero. This is the most critical assumption for proving unbiasedness. It implies that the independent variables do not contain any information about the expected value of the error. In practical terms, it means there are no other systematic factors related to that influence and have been omitted from the model.
Note that the normality assumption () we used for the MLE derivation in the last lesson is not required to prove unbiasedness. Unbiasedness is a more general property.
3. The Proof of Unbiasedness
We are now ready to prove that . The proof is elegant and relies on matrix algebra, which should feel familiar given your work in previous modules.
To start, let's watch a short video that walks through the derivation step-by-step. This will help you visualize the flow of the proof before we formalize it.
Least Square Estimators - Unbiased Proof Using Matrices
The video 'Least Square Estimators - Unbiased Proof Using Matrices' by Stats4Everyone provides a quick, clear demonstration of the proof we are about to undertake.
Watch the entire video (it's less than 3.5 minutes). Pay close attention to how the true model is substituted into the estimator formula and how the expectation operator is applied.
Let's now formally write out the proof, following the same logic.
Step 1: Start with the definition of the OLS estimator.
Step 2: Substitute the true linear model, , into the equation.
Step 3: Distribute the term.
Step 4: Simplify the first term.
Since (the identity matrix), the equation becomes:
This is a key result. It shows that our estimator, , is equal to the true parameter, , plus a term that depends on the unobservable errors. The estimator is unbiased if and only if the expected value of this error-dependent term is zero.
Step 5: Take the expectation of both sides, conditional on .
Treating as fixed (or conditioning upon it) is a standard technique.
Step 6: Evaluate each term.
- The true parameter vector is a fixed, non-random constant. Therefore, .
- For the second term, since we are conditioning on , the matrix is treated as a fixed quantity and can be pulled out of the expectation.
Step 7: Apply the Zero Conditional Mean assumption.
Using Assumption 3, we know that . Substituting this in:
Step 8: Combine the results.
We now have:
Since the expected value of is for any given , its unconditional expectation must also be (by the law of total expectation: ).
Thus, we have proven that the OLS estimator is an unbiased estimator of . Q.E.D.
For a formal write-up that mirrors this logic, you can refer back to the Stanford notes.
The document 'OLS in Matrix Form' also contains the formal proof we just constructed. Seeing it written out reinforces the derivation.
Now, read the subsection titled 'Proof that ˆβ is an unbiased estimator of β' at the beginning of Section 5, 'The Gauss-Markov Theorem' (page 6). This will solidify your understanding of the steps.
Test your understanding!
In the proof, we showed that . Which specific CLM assumption was essential for this step, and what would happen to the proof if this assumption were violated? For example, what if , where is some non-zero constant vector?
Show answer
The essential assumption is the Zero Conditional Mean assumption ().
If this assumption were violated, and instead , the proof would fail at Step 7. The expectation of the error-dependent term would be:
This term is generally not zero. The expected value of our estimator would then be:
Since , the OLS estimator would be biased. The magnitude and direction of this bias would depend on the relationship between the regressors () and the systematic, non-zero errors (). This situation is known as omitted variable bias.
Conclusion
In this lesson, we have formally proven a cornerstone property of the Ordinary Least Squares estimator. By leveraging a core set of assumptions about our model, we demonstrated that OLS provides an unbiased estimate of the true population parameters.
Key Takeaways:
- An estimator is unbiased if its expected value (the mean of its sampling distribution) is equal to the true population parameter it is intended to estimate.
- The proof of unbiasedness for the OLS estimator relies critically on the Classical Linear Model (CLM) assumptions, especially the Zero Conditional Mean assumption ().
- The proof involves substituting the true linear model into the OLS formula and taking the expectation, which simplifies to .
- This property assures us that the OLS estimation procedure is "correct on average," even if any single estimate will deviate from the true value due to random sampling error.
Preview of the Next Lesson:
Unbiasedness is a good start, but it's only half the story. An estimator could be unbiased but have an enormous variance, meaning its estimates are wildly spread out and unreliable. We also want an estimator that is precise. In our next lesson, we will derive the variance-covariance matrix of the OLS estimators. This will allow us to quantify the uncertainty in our estimates and will lead us directly to the famous Gauss-Markov theorem, which states that OLS is the "Best Linear Unbiased Estimator" (BLUE).