Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.If you asked again, would you get the same answer?
You test a robot on 10 grasps and it succeeds 8 times: 80%. Test it again on another 10 and you might get 7, or 9. The number you computed depends on which trials you happened to get. If you imagine repeating the whole experiment many times, the answers form a spread-out pile. That pile is the sampling distribution, and its width, the standard error, tells you how much your 80% could be off.
Bigger samples give narrower piles. Four times as many trials roughly halves the wobble.
Every number reported from tests or simulations (success rates, mean errors, worst-case percentiles) should come with a standard error. Without one, you can’t tell a real improvement from luck, or know whether you ran enough simulations.
- 1. Repeating an experiment gives slightly different answers because…
- 2. To halve the wobble of an average you need about…
- 3. The spread of a statistic across repeated samples is called its…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.The standard error of the mean
For iid samples with standard deviation ,
and by the CLT, for moderate (A4.3-5).
- Proportions: . For 360 successes in 400 trials, .
- Report both: the estimate and its SE, for example “0.90 (SE 0.015)”, or a confidence interval (A5.1-6).
Other statistics have sampling distributions too
The median, the sd, a regression slope and the maximum each have a sampling distribution with its own SE. For normal data, the median’s SE is about : noisier than the mean’s.
- 1. s = 12, n = 36: SE of the mean?
- 2. SE of a proportion p̂ = 0.5 with n = 100?
- 3. For normal data, which has the smaller SE?
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Exact sampling distributions for normal data
If iid:
- exactly.
- , with mean and variance .
- and are independent. This property characterizes the normal distribution.
- Therefore , Student’s t. It has heavier tails than because is itself noisy. With , about 12% of the time, not 5% (Gosset, writing as “Student”, 1908).
Quantiles are expensive
The sample -quantile has . In the tails, the density is tiny, so the SE is large. Estimating the 99th-percentile landing miss of a vehicle to ±10 m can need over 20,000 Monte Carlo runs, where the mean needs a few hundred (Exercise 2).
Correlated samples
For a stationary series with autocorrelations , . For AR(1) with , that inflates the variance about 19× (the SE about 4.4×). Batch means: split the series into contiguous batches, average each batch, and use the spread of the batch means.
- 1. (n − 1)s²/σ² for normal data follows…
- 2. Using s instead of σ makes the standardized mean follow…
- 3. Positive autocorrelation makes the naive SE…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Proof that x̄ and s² are independent (normal data)
Let be an orthogonal matrix whose first row is , and set .
- Rotation. The vector is isotropic Gaussian, so are independent normals, all with variance .
- The mean is one coordinate. .
- The rest give the variance. .
- Conclude. depends only on and only on , so they’re independent. Also is a sum of squared standard normals: . ∎
Why n − 1?
. Estimating uses up one degree of freedom (A5.1-3).
The quantile SE
iff at least samples are . That count is binomial, with variance . Linearizing near converts a spread of in probability into in : the Bahadur representation.
Exercise 3.1: Derive the median’s SE for normal data
Take and : .
- 1. The independence of x̄ and s² is proved by…
- 2. The quantile SE is large in the tails because…
- 3. E Σ(Xᵢ − X̄)² =
Level 4: Expert
★★★★★ Expert⏱ 40 minResearchers: original papers and open problems.How many Monte Carlo runs? Tails and correlation
Monte Carlo dispersion analyses for entry, descent and landing report means and tail percentiles of quantities like the landing miss, peak heating and fuel left. Tail percentiles need many more runs. The SE formula above says how many, and order-statistic arguments give distribution-free bounds: with 59 runs, the largest has a 95% chance of exceeding the 95th percentile, and with 299 runs, the 99th (Wilks, 1941). Correlated outputs, such as MCMC chains, long simulations sampled finely, or sensor logs, need batch-means or spectral standard errors, or the uncertainty is badly understated.
Sampling distributions in AI, robotics and aerospace
- Benchmark claims. Mean returns over 5 seeds have large SEs. Many reported RL “improvements” disappear once you compute them (Henderson et al., 2018).
- Wilks’ formula sets run counts for nuclear-safety and aerospace dispersion analyses in a distribution-free way (Wilks, 1941; NASA-STD-7009).
- MCMC output uses effective sample size and batch-means or spectral SEs (Flegal and Jones, 2010; Vehtari et al., 2021 for R-hat and ESS).
- SGD noise is the sampling distribution of a minibatch gradient, with SE (A4.3-5).
- Sensor calibration reports the bias with an SE from repeated measurements. Autocorrelated noise, such as gyro bias drift, needs Allan-variance-style analysis instead (A4.4-2).
References
- “Student” (W. S. Gosset) (1908). “The probable error of a mean.” Biometrika, 6(1).
- R. A. Fisher (1925). Statistical Methods for Research Workers. Oliver & Boyd.
- G. Casella, R. Berger (2002). Statistical Inference, 2nd ed., Ch. 5. Duxbury.
- S. Wilks (1941). “Determination of sample sizes for setting tolerance limits.” Annals of Mathematical Statistics, 12(1).
- R. Bahadur (1966). “A note on quantiles in large samples.” Annals of Mathematical Statistics, 37(3).
- J. Flegal, G. Jones (2010). “Batch means and spectral variance estimators in Markov chain Monte Carlo.” Annals of Statistics, 38(2).
- A. Vehtari, A. Gelman, D. Simpson, B. Carpenter, P.-C. Bürkner (2021). “Rank-normalization, folding, and localization: an improved R-hat.” Bayesian Analysis, 16(2).
- P. Henderson et al. (2018). “Deep reinforcement learning that matters.” AAAI.
- NASA (2016). NASA-STD-7009A: Standard for Models and Simulations.
- A. van der Vaart (1998). Asymptotic Statistics, Ch. 21 (quantiles). Cambridge University Press.