Skip to main content

Week 5: Question the estimate

Bias and noise are different problems. Return to the week 2 baseline, measure the bias on the bench, and take its price with it.

31 August 2026

Try it in the workspace →

Optional self-check ↓

Averaging independent measurements reduces sampling variation. It does not remove bias. On the small-sample bench, the discrepancy can dominate the population score: repeating a biased procedure estimates its expectation more precisely, not necessarily the quantity we wanted.

So the question this lecture asks of the bench is not how much the estimate moves. Week 1 answered that. It is where the estimate is moving around, and whether that place can be found from measurements you can afford.

Bring the discrepancy

Bring the scores and sample sizes from your measurement log, and keep the closed-form baseline from week 2 beside them. Week 4 pinned the implementation. With the same construction and protocol, we can investigate sampling effects without deliberately changing the implementation. Numerical errors still need their own checks.

The ladder

The instrument below runs the repair the session describes. Choose a candidate: A differs from the reference in its mean alone, B in its covariance alone. Set d, the number of dimensions, and the number of draws averaged at each sample size. Press run, and it scores the same fixed candidate at N = 60, 100, 200, 400 and 800, plots each average against 1/N, and fits a line through the five points.

Read the line at 1/N = 0. Its intercept estimates the unlimited-sample limit; it is the middle number below the plot. A linear fit removes a leading 1/N trend, but higher-order bias and sampling variation can remain. Compare its error with the shortest rung’s error rather than assuming a fixed improvement.

It is the same arithmetic as the week 1 bench, scored many times instead of once.

Read the second number too

Press run again. The intercept moves and can land below zero, where no squared distance can be. This unconstrained fit is an estimate, not an exact distance. A negative intercept is a reason to inspect sampling variation and fit error, not to silently clip the answer or declare the correction exact.

The strip keeps the most recent twenty intercepts at the scale of the answer. Inspect both the spread and the centre of the dots. A few runs can illustrate variability; they cannot prove that the fitted intercept is unbiased. Vary the sample-size range in a fuller analysis and inspect residuals.

So an extrapolated score is not a measurement until it is reported with the ladder that produced it: which sample sizes, how many draws at each, and how far the intercept moved across repeats. An N-honest comparison fixes the sample size for both candidates. An extrapolated comparison fixes the ladder instead, and owes its reader the same discipline.

Carry it forward

Record the ladder beside the result in your measurement log, and work the full task in the week 5 session. The week 8 lecture asks which of these checks survive when the feature extractor and the input medium change.

Sample → fit → compare

Can the correction recover the fixed score?

Measure one Gaussian candidate at five sample sizes. Fit the averages, then compare the extrapolated estimate with its known population value.

A / Mean changes
Every coordinate's mean shifts by 0.05; covariance stays fixed.
B / Covariance changes
The mean stays fixed; each coordinate's variance rises from 1 to 1.1.

A reduced-dimensional teaching experiment, not image-based FID or the full 2,048-dimensional bench.

1. Set the experiment

candidate

Five sample sizes, one line, one number at the end of it.

2. Inspect the fit

Every point estimates the same fixed number. Both sample size and random draws affect the result; the candidate stays fixed.
Sample estimate / N = 60
 
Extrapolated estimate
 
Population value
 

3. Check repeatability

Run again for fresh draws with the same candidate. The history retains up to 20 intercepts; changing the settings clears it.

Run it again. This strip is the same numbers at the scale of the answer: one dot per ladder, against the true value.
How the extrapolation works
FID¯N≈a+bN

The left side is the average of the draws at a sample size N. The fitted slope b describes the leading inverse-sample-size trend. The intercept a estimates the limit as N grows.

Averages are fitted at N = 60, 100, 200, 400, 800. Higher-order bias and sampling variation can remain; a negative intercept is a fit result, not a negative squared distance. Compare the errors against the known population value.

The ladder above spent its draws across five sample sizes and fitted a line to estimate where the bias runs out. The activity below spends them differently: the distributions stay fixed, and you change only the seed, then only the number of repetitions. Watch which part of the gap moves. Repetition tightens the spread around what the estimator expects to report. It leaves that expectation where it was, above the population value, at every sample size you hold fixed.

Supporting experiment / Workspace

More repetitions need not remove estimator bias.

  1. 01 Predict

    If the distributions stay fixed, what should change when you change the seed, then increase repetitions? Distinguish variation from a persistent gap.

  2. 02 Open the lab

    Python workspace / sample-size experiment

    Run all starter cells. Change only the seed, run all again, then increase repetitions in a separate run.

  3. 03 Record

    Save the source cells and record seed, sample sizes, repetitions, moment estimator and reference-drawing protocol. Keep the population values as the baseline.

  4. 04 Result

    Copy the mean estimates and their discrepancies from the population values into a small comparison table. Check your prediction across runs rather than selecting one favourable seed.

  5. 05 Explain the limitation

    The starter uses local one-dimensional Gaussians, not the course’s 2,048-dimensional A and B. It does not compute FID∞; neither a ranking reversal nor an exact bias correction is guaranteed.

Keep this supporting experiment distinct from the task above. Workspace use and reporting guidance →

L05 / Optional self-check · Not assessed

Before you leave

No marks or penalties. Try it, retry it, or read the explanation. Nothing here is submitted.

At one fixed N, a biased estimator has expected score 7 while the population score is 5. You average more independent repetitions at that same N. What does this do?

Answer and explanation

Correct: A. Averaging independent repetitions with finite variance reduces the variance of the average. Its expectation remains 7, so its bias relative to 5 remains 2. More precise estimation of a biased expectation is not the same as removing bias.

Feedback for B: Increasing the number of repeats is not increasing N within each estimate, nor is it performing the lecture's extrapolation in 1/N.

Feedback for C: Reduced variance is a statement about repeated experiments; it does not promise monotonically improving accuracy in one sequence of averages.

Teaching takeaway: Precision and accuracy answer different questions.