This essay is derived from topics I found challenging to wrap my head around during my MPhil.
What does it mean to be biased? In everyday english, we might describe a weighing scale as biased and in doing so we are trying to capture something about the way it measures things. When a measurement is off, it is important from an experimental point of view to establish why that is.
Measuring devices are not perfect and so there tends to be a natural spread around the true value of the thing you are trying to measure. We can take lots of measurements of the same item and settle on a number which describes to us the βaverageβ recording that our device gives. This is called the expectation where is our set of possible outputs of the device and their respective probabilities of showing up. We can call a device biased when is not equal to which is the true value of the thing we are trying to measure.
There are some other properties of measuring devices which follow naturally from these concepts. Starting with the variance which tells us the spread of the estimates around their own average. It can also be written equivalently as , revealing to us that variance is measured relative to the average of the estimates, not relative to the truth. If every estimate were shifted by ten units, the variance would not change at all.
The quantity that does see both is the mean squared error . With some mathematical juggling we can show that mean squared error is equal to the variance added to the squared bias 1. In simple terms, the total error is the sum of a scatter component and a shift component.
How can we deal with noisy devices? A natural response to a noisy device is to measure many times and average. If independent measurements each have variance , their average has variance , and the square root of this is the standard error of the mean (SEM):
The standard error shrinks as we collect more data and it tells us how tightly the sample average pins down . It says nothing about the distance between and the truth. Averaging leaves the bias untouched, since , so the mean squared error of the average is
More data makes the standard error vanish, but the error settles at the squared bias. We can become more and more confident in a number that is still wrong.
Bias is not always something to remove. Suppose we want to judge a personβs height from a blurry photo. The photo gives a reading , where is the true height and the noise has mean zero and standard deviation cm. We also know something before we look at the photo: people in this population are usually around cm, and true heights typically sit a distance from that average (formally, ). If the photo reads 180 cm, taking it at face value is not obviously the best guess. A reading well above average is more likely to be an ordinary person plus some upward noise than a genuinely tall person, so a better guess pulls the reading part of the way back towards 170.
One simple way to do this is a weighted average of the reading and the expected value,
where is a dial. At we take the reading as it is. At we ignore it and always answer . At a reading of 180 becomes 175.
Take a person whose true height is and set . On average the estimate is , which is 5 cm too low. In general,
The bias is the fraction of the distance from the truth to . The variance is because the noise only enters through , which now counts for a fraction of the answer. With our numbers the variance falls from to and the bias is , so , against for the unbiased reading ().
For a person who is exactly average () the bias is zero and the error is only . For a very tall person () the bias is and the error is , worse than trusting the photo. With these numbers pulling towards wins only when the true height is within about cm of the average. Since we do not know in advance, the pull is a bet that the true value is near what we expect.
We can judge the bet by averaging over the values we expect to meet, for which :
The first term falls as shrinks and the second rises, so some intermediate dial setting is best. It is smallest when2
The best blend weights the reading and the expectation by their precisions, the inverse of their variances. If the photo is as noisy as people are varied (), the weights are equal, , and the average error is instead of . If the photo is noisy but people are all much alike (, ), we should lean mostly on the average: and the error is . When the noise and the spread of true values are both Gaussian, this blend is exactly the posterior mean of Bayesian inference. The advantage holds on average over the values we expect to meet, not at every : for the very tall person above, the unbiased reading does better.
Because , the bias this estimator accepts is
With , a photo with is pulled by only about of the distance to , one with by , and one with by . Bias and precision are separate properties of a device, but an estimator that uses its evidence sensibly couples them: the noisier the evidence, the more it leans on what it expects, and the more it is biased towards that expectation. This is regression to the mean.
That coupling exists only if the estimator knows how reliable the evidence is on this occasion. Suppose it keeps a fixed dial , tuned for , while the photos change quality. Since is a quadratic in with its minimum at ,3
so the excess error grows with the square of the miscalibration. The table shows both ways to get it wrong, with .
| True noise | Dial | Variance | Bias | Total |
| 30 (noisier than assumed) | fixed, | 225 | 25 | 250 |
| 30 | adapted, | 9 | 81 | 90 |
| 2 (cleaner than assumed) | fixed, | 1 | 25 | 26 |
| 2 | adapted, | 3.7 | 0.1 | 3.8 |
If the measurement is noisier than assumed, the fixed estimator trusts it too much and pays in variance. If it is cleaner than assumed, the estimator shrinks too much and pays in bias. In this simple model, a change in measurement quality that goes unnoticed changes the variance but leaves the bias fixed at , while an estimator that is told about the change adjusts its bias on purpose.
Not every change in a measurement is noise. Suppose something shifts the measurement itself, so that with a systematic distortion, for example a lens that makes everyone look cm taller. An estimator that does not know about treats it as signal, and the distortion passes straight into its bias:
An estimator that knows , or can infer it, subtracts it, using , and the extra term disappears. Knowing why the measurement changed removes the bias that the change would otherwise cause. A change that only widens the noise is different: it cannot move the average of the measurements, only their spread.
Finally, whether an estimator is biased depends on the scale on which we judge it. Let be the usual sample variance (with in the denominator), which is unbiased for , so . Its square root , the sample standard deviation, is not unbiased for . Because the square root is concave, Jensenβs inequality gives
with strict inequality unless is constant. More generally, whenever is curved. An estimator that is unbiased on one scale is therefore generally biased on another, so bias is a property of an estimator together with the scale it is judged on.
Bias and precision are two separate axes of error, and the standard summaries of spread see only one of them. A standard error shrinks with more data whether or not the estimate is right. Bias can be a deliberate trade for lower total error, in which case it tracks the estimatorβs own knowledge of how reliable its evidence is. And a change in the quality of evidence need not produce a bias, provided the estimator can account for why it changed.