Skip to main content

Welcome to a Grasp lesson

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

Lesson 17

Properties of Estimators: Bias, Variance, and Consistency

Recommended resources

Introduction

In our last lesson, we drew a crucial distinction between unknown population parameters (like ) and the sample statistics (like ) we calculate from data. We established that the core task of estimation is to use a statistic—which we call an estimator—to make an educated guess about a parameter.

This raises a vital question: how do we know if our guess is any good? If we have several different ways to estimate the same parameter, which one should we choose? This lesson moves from what an estimator is to what makes an estimator good. We will define and mathematically formulate three fundamental properties that allow us to evaluate and compare estimators:

  1. Bias: Does our estimator, on average, hit the true target?
  2. Variance: How much does our estimate jump around from one sample to another?
  3. Consistency: Does our estimator get closer to the true value as we collect more data?

Understanding these properties is the foundation for developing and choosing effective statistical methods.


Bias: The Accuracy of an Estimator

The first property we care about is bias. Intuitively, we want an estimator that is, on average, centered on the true parameter value.

An estimator for a parameter is itself a random variable, because its value depends on the random sample we draw. The bias of the estimator is the difference between its expected value and the true value of the parameter.

Definition: Bias
The bias of an estimator is given by:

An estimator is said to be unbiased if its bias is zero for all possible values of . This means:

An unbiased estimator is "correct on average." If we were to draw an infinite number of samples and compute our estimate for each one, the average of all those estimates would be equal to the true parameter.

Bias and Variance Visualization using Target Analogy
This diagram illustrates bias and variance using a target analogy. The bullseye represents the true parameter \(\theta\). Each orange dot is an estimate \(\hat{\theta}\) from a different sample. **Bias** measures how far the average of the shots is from the bullseye. The top row shows low-bias estimators (centered on average), while the bottom row shows high-bias estimators (systematically off-target).

Example 1: The Sample Mean is an Unbiased Estimator

Let's prove that the sample mean, , is an unbiased estimator for the population mean, . The following video provides a concise introduction to estimators and a clear proof.

What is an unbiased estimator? Proof sample mean is unbiased and why we divide by n-1 for sample var

This video from Stats4Everyone formally defines an unbiased estimator and then provides a step-by-step mathematical proof that the sample mean is an unbiased estimator of the population mean.

Please watch from the beginning until 5:47. Pay close attention to: The formal definition of an unbiased estimator (2:51). The proof that E[x̄] = μ (4:28).

As the video demonstrated, the proof relies on the linearity of expectation:

Since each is drawn from the same population, for all .

Thus, the sample mean is an unbiased estimator of .

Example 2: Sample Variance and Bessel's Correction

In the last lesson, I pointed out the curious in the denominator of the sample variance formula. The reason for this is to ensure the estimator is unbiased. Let's define two potential estimators for the population variance :

  1. The "naive" estimator:
  2. The standard sample variance:

It turns out that , making it a biased estimator. The division by in is called Bessel's correction, and it's precisely what's needed to make the estimator unbiased. The next segment of the same video provides a full derivation.

What is an unbiased estimator? Proof sample mean is unbiased and why we divide by n-1 for sample var

The remainder of the video you just started provides a detailed proof showing why dividing the sum of squared deviations by 'n' results in a biased estimator for the population variance, and how dividing by 'n-1' corrects this bias.

Now, watch from 5:47 to the end (17:05). This derivation is quite involved, but it's a fantastic example of the mathematical rigor required in statistics, which you appreciate. Follow the algebraic steps carefully to see how the result E[S²] = σ² is achieved.

The key takeaway from that detailed proof is:

This shows that the naive estimator, on average, underestimates the true variance. By multiplying by the correction factor , we get our unbiased estimator:


Variance: The Precision of an Estimator

Knowing an estimator is unbiased is good, but it's not the whole story. We also need it to be precise. The variance of an estimator measures how much the estimate varies from one sample to the next.

Definition: Variance of an Estimator
The variance of an estimator is given by:

A smaller variance is better. A low-variance estimator is reliable and will give you similar results each time you draw a sample.

Referring back to the target diagram, variance is about the spread of the shots. The left column shows low-variance (tightly clustered) estimators, while the right column shows high-variance (spread out) estimators.

For example, the variance of the sample mean is:

This confirms our intuition: as the sample size increases, the variance of the sample mean decreases, meaning our estimate becomes more precise.


The Bias-Variance Tradeoff: Mean Squared Error

We want low bias and low variance. But what if we have to choose between an unbiased estimator with high variance and a slightly biased estimator with low variance? We need a single metric that combines both. This metric is the Mean Squared Error (MSE).

Definition: Mean Squared Error (MSE)
The MSE of an estimator is the expected squared difference between the estimator and the true parameter:

The MSE is arguably the most important measure of an estimator's overall quality. A remarkable result is that the MSE can be decomposed into two components: the variance and the square of the bias.

Theorem: Bias-Variance Decomposition
For any estimator , the following holds:

Let's watch a short video that walks through the proof of this fundamental identity.

[Proof] MSE = Variance + Bias²

This video from the math et al channel provides a concise and clear algebraic proof of the Bias-Variance Decomposition theorem.

Watch the entire video. The presenter starts with the definitions of MSE, variance, and bias and algebraically shows that MSE = Variance + Bias².

The proof involves a simple but powerful trick: adding and subtracting .
\begin{align*}
MSE(\hat{\theta}) &= E[(\hat{\theta} - \theta)^2] \
&= E[(\hat{\theta} - E[\hat{\theta}] + E[\hat{\theta}] - \theta)^2] \
&= E[(\underbrace{\hat{\theta} - E[\hat{\theta}]}{A})^2 + 2(\underbrace{\hat{\theta} - E[\hat{\theta}]}{A})(\underbrace{E[\hat{\theta}] - \theta}{B}) + (\underbrace{E[\hat{\theta}] - \theta}{B})^2]
\end{align*}
By linearity of expectation, we can split this up. The middle term becomes zero, and the first and last terms become the definitions of variance and squared bias, respectively.

This decomposition is central to machine learning and statistics. It tells us that the total error of an estimator comes from two sources: error from being off-target on average (bias) and error from being imprecise (variance).


Consistency: Asymptotic Correctness

Bias and variance are properties for a fixed sample size . Consistency is an asymptotic property: it describes what happens as our sample size grows infinitely large.

Definition: Consistency
An estimator (where the subscript emphasizes its dependence on sample size) is consistent if it converges in probability to the true parameter as . Formally, for any small number :

In simple terms, a consistent estimator is one that is guaranteed to get arbitrarily close to the true value if you collect enough data.

How can we prove an estimator is consistent? A straightforward sufficient (but not necessary) condition is to show that both its bias and its variance go to zero as .

Estimation theory notes

These lecture notes from Columbia University provide a formal definition of consistency and outline the common method for proving it.

Please read the section 'Consistency' on page 67. Focus on the definition and the method for establishing consistency by showing that both bias and variance tend to zero.

For example, the sample mean is consistent for because:

  1. Bias: for all , so .
  2. Variance: , so .

Since both conditions are met, is a consistent estimator.

Consistency vs. Unbiasedness

It's crucial not to confuse these two properties.

  • Unbiasedness is a finite-sample property. It says that for a given , the estimator is correct on average.
  • Consistency is a large-sample property. It says the estimator converges to the right answer as grows.

Can an estimator be one but not the other? Absolutely. The following reading gives excellent examples.

[PDF] Properties of Estimators II

This document from Stanford, 'Properties of Estimators II', does an excellent job of clarifying the subtle but important difference between consistency and unbiasedness with clear examples.

Read the section '7.7.2 Consistency vs Unbiasedness'. It provides four scenarios that cleanly separate the two concepts.

Here's a summary of the key ideas from that text:

  1. Unbiased and Consistent: The sample mean .
  2. Unbiased but Not Consistent: The estimator . Its expectation is , so it's unbiased. But its variance is and doesn't decrease as grows. It never improves, so it's not consistent.
  3. Biased but Consistent: The MLE for the variance of a Normal distribution, , is biased by a factor of . However, as , this bias disappears (). Since its variance also goes to zero, it is consistent.

Self-Assessment

Let's apply these concepts. Consider a random sample from a Uniform distribution . The population mean is .

An estimator for derived from the Method of Moments (which we will study soon) is .

  1. Is an unbiased estimator of ?
  2. What is the variance of ? (Hint: The variance of a distribution is ).
  3. Is a consistent estimator of ?
Answer
  1. Bias: We check the expectation.

    Since , it is unbiased.

  2. Variance: We use the properties of variance.

    For a distribution, .

  3. Consistency: We check if bias and variance go to zero as .

    • The bias is 0 for all .
    • .
      Since both conditions hold, is consistent.

Conclusion

In this lesson, we have built a formal framework for evaluating estimators. These properties are not just abstract definitions; they are the tools we use to decide which statistical methods to trust.

Key Takeaways:

  • Bias measures the accuracy of an estimator on average (). Unbiased estimators are correct on average.
  • Variance measures the precision or reliability of an estimator (). Low-variance estimators give consistent results across different samples.
  • Mean Squared Error (MSE) provides a complete picture of an estimator's quality by combining both sources of error: .
  • Consistency is an asymptotic property ensuring that an estimator converges to the true parameter value as the amount of data increases.

Preview of the Next Lesson:

Now that we know how to judge an estimator, how do we find one in the first place? Is there a systematic way to derive good estimators from a given probability model?

In the next lesson, we will explore two of the most important principles for constructing estimators: the Method of Moments and Maximum Likelihood Estimation (MLE). These powerful techniques provide recipes for creating estimators that often have desirable properties like consistency and efficiency.