Unit 2 of 3 · Sampling and the sample mean
Calculate unbiased estimates
Connect the formulas to raw, frequency and shifted data.
Why the mean and variance estimates are unbiased
For iid observations with common finite mean and variance , let . By linearity,
This expectation calculation only needs the common mean. Independence is needed when dropping covariances in the variance calculation:
The standard error is . For and positive variance, this variance is smaller than the individual variance; at it is equal.
For dependent observations, covariance terms must be included. An exact finite-population sample without replacement may require a finite-population correction; do not silently replace that sampling design with iid draws.
For , define
Expand the centred sum:
because . Here is common to every summand, but it is still a random variable; the source’s phrase “ is a constant” is only meaningful with respect to the summation index. We do not pull it out of an expectation as a deterministic quantity.
Using and ,
Thus the observed is an unbiased variance estimate. This does not say that is generally unbiased for .
Formula and calculator notation tables
Choose the case that matches the supplied data. Calculate the mean and variance separately, then check which denominator the calculator uses.
Given data: and
- Mean estimate:
- Unbiased variance estimate:
Given data: and
- Mean estimate:
- Unbiased variance estimate:
Given data: Variance computed with denominator
- Mean estimate: Use the observed mean
- Unbiased variance estimate: Multiply that variance by
Quantity: Population parameter
- Mean notation:
- Variance notation:
Quantity: Observed sample summaries
- Mean notation:
- Variance notation: Source “sample variance”: ; calculator
Quantity: Unbiased population estimates
- Mean notation:
- Variance notation: ; calculator
“Sample variance” is used with different denominator conventions in different texts. This source uses the denominator- version in its MF27 comparison, then multiplies by . Check the formula rather than inferring it from the name.
For nonconstant data, calculator is larger than because its squared value has denominator ; both are zero for constant data.
Square the stored to obtain and avoid premature rounding.
Raw values go in L1; a frequency table also requires its frequencies in L2, as Examples 2 and 3 show.
Why shifting simplifies the arithmetic
The lecture contrasts with for . A shift changes the mean but not the centred sum of squares. First,
Next, expand both terms:
Dividing by proves the shifted variance formula. Do not add the shift back to a variance.
Calculate, then explain what the estimate means
For ten observations, and . Find estimates of the population mean and variance. Explain which estimate needs the shift restored and why the variance estimate uses 9.
After your attempt: compare the reasoning
The mean estimate is . The unbiased variance estimate is . Shifting changes the mean but leaves centred deviations unchanged. The deviations from the sample mean must sum to zero, so only nine can vary freely; this motivates the denominator . The estimate 10 is not a guarantee that the population variance equals 10.
Try these examples
Open an example in chapter practice. Try it first, then read its solution. Use “Learn this step” to return to this unit.