195
$\begingroup$

What is the difference between a consistent estimator and an unbiased estimator?

The precise technical definitions of these terms are fairly complicated, and it's difficult to get an intuitive feel for what they mean. I can imagine a good estimator, and a bad estimator, but I'm having trouble seeing how any estimator could satisfy one condition and not the other.

$\endgroup$
6
  • 14
    $\begingroup$ Have you looked at the very first figure in the Wikipedia article on consistent estimators, which specifically explains this distinction? $\endgroup$
    – whuber
    Jun 24, 2012 at 16:45
  • 5
    $\begingroup$ I've read the articles for both consistency and bias, but I still don't really understand the distinction. (The figure you refer to claims that the estimator is consistent but biased, but doesn't explain why.) $\endgroup$ Jun 24, 2012 at 16:47
  • 1
    $\begingroup$ Which part of the explanation do you need help with? The caption points out that each of the estimators in the sequence is biased and it also explains why the sequence is consistent. Do you need an explanation of how the bias in these estimators is apparent from the figure? $\endgroup$
    – whuber
    Jun 24, 2012 at 16:50
  • 7
    $\begingroup$ +1 The comment thread following one of these answers is very illuminating, both for what it reveals about the subject matter and as an interesting example of how an online community can work to expose and rectify misconceptions. $\endgroup$
    – whuber
    Jan 12, 2013 at 17:51
  • $\begingroup$ Related: stats.stackexchange.com/questions/173152/… $\endgroup$ Oct 1, 2015 at 16:26

3 Answers 3

199
$\begingroup$

To define the two terms without using too much technical language:

  • An estimator is consistent if, as the sample size increases, the estimates (produced by the estimator) "converge" to the true value of the parameter being estimated. To be slightly more precise - consistency means that, as the sample size increases, the sampling distribution of the estimator becomes increasingly concentrated at the true parameter value.

  • An estimator is unbiased if, on average, it hits the true parameter value. That is, the mean of the sampling distribution of the estimator is equal to the true parameter value.

  • The two are not equivalent: Unbiasedness is a statement about the expected value of the sampling distribution of the estimator. Consistency is a statement about "where the sampling distribution of the estimator is going" as the sample size increases.

It certainly is possible for one condition to be satisfied but not the other - I will give two examples. For both examples consider a sample $X_1, ..., X_n$ from a $N(\mu, \sigma^2)$ population.

  • Unbiased but not consistent: Suppose you're estimating $\mu$. Then $X_1$ is an unbiased estimator of $\mu$ since $E(X_1) = \mu$. But, $X_1$ is not consistent since its distribution does not become more concentrated around $\mu$ as the sample size increases - it's always $N(\mu, \sigma^2)$!

  • Consistent but not unbiased: Suppose you're estimating $\sigma^2$. The maximum likelihood estimator is $$ \hat{\sigma}^2 = \frac{1}{n} \sum_{i=1}^{n} (X_i - \overline{X})^2 $$ where $\overline{X}$ is the sample mean. It is a fact that $$ E(\hat{\sigma}^2) = \frac{n-1}{n} \sigma^2 $$ which can be derived using the information here. Therefore $\hat{\sigma}^2$ is biased for any finite sample size. We can also easily derive that $${\rm var}(\hat{\sigma}^2) = \frac{ 2\sigma^4(n-1)}{n^2}$$ From these facts we can informally see that the distribution of $\hat{\sigma}^2$ is becoming more and more concentrated at $\sigma^2$ as the sample size increases since the mean is converging to $\sigma^2$ and the variance is converging to $0$. (Note: This does constitute a proof of consistency, using the same argument as the one used in the answer here)

$\endgroup$
7
  • 10
    $\begingroup$ (+1) Not all MLEs are consistent though: the general result is that there exists a consistent subsequence in the sequence of MLEs. For proper consistency a few additional requirements, e.g. identifiability, are needed. Examples of MLEs that aren't consistent are found in certain errors-in-variables models (where the "maximum" turns out to be a saddle-point). $\endgroup$
    – MånsT
    Jun 25, 2012 at 6:42
  • 2
    $\begingroup$ Well, the EIV MLEs that I mentioned are perhaps not good examples, since the likelihood function is unbounded and no maximum exists. They're good examples of how the ML approach can fail though :) I'm sorry that I can't give a relevant link right now - I'm on vacation. $\endgroup$
    – MånsT
    Jun 25, 2012 at 6:59
  • $\begingroup$ Thank you @MånsT. The necessary conditions were outlined in the link but that wasn't clear from the wording. $\endgroup$
    – Macro
    Jun 25, 2012 at 11:12
  • 2
    $\begingroup$ Just a side note: The parameter space is certainly not compact in this case, in contrast to the conditions at that link, nor is the log likelihood concave wrt $\sigma^2$ itself. The stated consistency result still holds, of course. $\endgroup$
    – cardinal
    Jun 25, 2012 at 12:43
  • 2
    $\begingroup$ You're right, @cardinal, I'll delete that reference. It's clear enough that $E(\hat{\sigma}^2) \rightarrow \sigma^2$ and ${\rm var}(\hat{\sigma}^2) \rightarrow 0$ but I don't want to stray from the point by turning this into an exercise of proving the consistency of $\hat{\sigma}^2$. $\endgroup$
    – Macro
    Jun 25, 2012 at 12:54
32
$\begingroup$

Consistency of an estimator means that as the sample size gets large the estimate gets closer and closer to the true value of the parameter. Unbiasedness is a finite sample property that is not affected by increasing sample size. An estimate is unbiased if its expected value equals the true parameter value. This will be true for all sample sizes and is exact whereas consistency is asymptotic and only is approximately equal and not exact.

To say that an estimator is unbiased means that if you took many samples of size $n$ and computed the estimate each time the average of all these estimates would be close to the true parameter value and will get closer as the number of times you do this increases. The sample mean is both consistent and unbiased. The sample estimate of standard deviation is biased but consistent.

Update following the discussion in the comments with @cardinal and @Macro: As described below there are apparently pathological cases where the variance does not have to go to 0 for the estimator to be strongly consistent and the bias doesn't even have to go to 0 either.

$\endgroup$
45
  • 12
    $\begingroup$ @MichaelChernick +1 for your answer but, regarding your comment, the variance of a consistent estimator does not necessarily goes to $0$. For example if $(X_1,...,X_n)$ is a sample from $\mbox{Normal}(\mu,1)$, $\mu\neq 0$, then $1/{\bar X}$ is a (strong) consistent estimator of $1/\mu$, but $\mbox{var}(1/{\bar X})=\infty$, for all $n$. $\endgroup$
    – user10525
    Jun 24, 2012 at 20:38
  • 7
    $\begingroup$ @Procrastinator: (+2) The bias need not shrink to zero, either, even when the mean exists for each $n$ $\endgroup$
    – cardinal
    Jun 24, 2012 at 20:46
  • 10
    $\begingroup$ Unfortunately, the first two sentences in your first comment and the entire second comment are false. But, I fear it is not fruitful to further try to convince you of these facts. $\endgroup$
    – cardinal
    Jun 25, 2012 at 13:48
  • 14
    $\begingroup$ Here is an admittedly absurd, but simple example. The idea is to illustrate exactly what can go wrong and why. It does have practical applications. Example: Consider the typical iid model with finite second moment. Let $\hat\theta_n = \bar X_n + Z_n$ where $Z_n$ is independent of $\bar X_n$ and $Z_n = \pm a n$ each with probability $1/n^2$ and is zero otherwise, with $a > 0$ arbitrary. Then $\hat\theta_n$ is unbiased, has variance bounded below by $a^2$, and $\hat\theta_n \to \mu$ almost surely (it's strongly consistent). I leave as an exercise the case regarding the bias. $\endgroup$
    – cardinal
    Jun 25, 2012 at 14:48
  • 8
    $\begingroup$ Michael, The estimator is strongly consistent for $\mu$; the second term converges to zero almost surely! Recall the whole point was you asked for an example of a consistent estimator where the bias did not vanish! I've shown it not only does not vanish, but can be made arbitrarily bad. A very small tweak produces an example such that the bias diverges to $\infty$. You could also make it oscillate at your whim. $\endgroup$
    – cardinal
    Jun 25, 2012 at 17:24
-2
$\begingroup$

If we take a sample of size $n$ and calculate the difference between the estimator and the true parameter, this gives a random variable for each $n$. If we take the sequence of these random variables as $n$ increases, consistency means the both the mean and the variance go to zero as $n$ goes to infinity. Unbiased means that this random variable for a particular $n$ has mean zero.

So one difference is that bias is a property for a particular $n$, while consistency refer to the behavior as $n$ goes to infinity. Since Another difference is that bias has to do just with the mean (an unbiased estimator can be wildly wrong, as long as the errors cancel out on average), while consistency also says something about the variance.

An estimator can be unbiased for all $n$ but inconsistent if the variance doesn't go to zero, and it can be consistent but biased for all $n$ if the bias for each $n$ is nonzero, but going to zero. For instance, if the bias is $\frac 1 n$, the bias is going to zero, but it isn't ever equal to zero; a sequence can have a limit that it doesn't ever actually equal.

$\endgroup$
1

Not the answer you're looking for? Browse other questions tagged or ask your own question.