Understanding Uncertainty · Mini-Lesson · pairs with Class 04 & Class 10

What the Sample Mean Minimizes

One pinned sample, one slider, one geometric fact about the mean

A standalone mini-lesson in a small, growing set on estimator properties. See also an unbiased estimator that never gets more precise; this page builds the geometric fact used to explain why the naive sample variance undershoots.

A companion exploration built to accompany the sample-mean material in Class 04 — no external dataset, the widget recomputes everything from one pinned sample of five die rolls.

New vocabulary is underlined like this — hover or tap any term for a one-line explanation that appears right below the line you are reading.

Think · Pair · Share · minimizing spread around a guess
I've done the Think step — reveal Pair & Share
  • Pair · 3 minCompare your two totals. Try a third value of c neither of you picked — does it ever beat 4?
  • Share · 2 minAgree as a table on which single value of c minimizes the total, then check it against the widget below.

What the sample mean minimizes

Take the pinned sample {2, 6, 4, 3, 5} — five valid die rolls, sample mean \(\bar X = 4\), true die mean \(\theta = 3.5\). For any candidate center c, define the sum of squared deviations:

$$SS(c) = \sum_{i=1}^{5} (x_i - c)^2$$

This is a parabola in c, and it has exactly one minimum. Drag c across the slider below and watch where the marker bottoms out.

The gray tick marks along the bottom are the five rolls themselves. X̄ marks where SS(c) is smallest; θ marks the true population mean.
Verify by hand

Confirm \(SS(3.5) = 11.25\) and \(SS(4) = 10\) directly: \((2-3.5)^2+(6-3.5)^2+(4-3.5)^2+(3-3.5)^2+(5-3.5)^2\) versus the same sum centered at 4.

Show the arithmetic

At c = 3.5: \(2.25+6.25+0.25+0.25+2.25 = 11.25\). At c = 4: \(4+4+0+1+1 = 10\). The gap, 1.25, is exactly \(n(\bar X - \theta)^2 = 5\times(0.5)^2 = 1.25\) — no coincidence, that identity holds for every sample, and it's exactly what the sample-variance mini-lesson uses to explain the bias.

More estimator-properties mini-lessons: Unbiased, but never consistent Why the sample variance undershoots How bad is my estimator? One sample, one point One sample, one point (skewed) One sample, one point (variance)