Unit 1 of 8 · about 4 hours · derive
Estimands, estimators, bias, variance and consistency
Uncertainty belongs to a sampling procedure, not just to a reported number. This is the foundation for deciding whether an apparently precise model comparison is trustworthy.
You'll be able to
- Distinguish a population estimand, a random estimator, its sampling distribution and the observed estimate.
- Derive the bias and mean squared error of variance estimates using and , and state where normality is needed.
- Prove consistency of the sample mean under finite variance and compare efficiency only within a stated estimator class.
Covers
Read
In this order, only the parts listed
0 of 3 done
- 14.310x Lecture 11: sample means and estimationMIT 14.310x - Data Analysis for Social Scientists
Slides 2 to 21, the sample mean and CLT; slides 22 to 30, statistics, parameters, estimators and estimates
- 14.310x Lecture 12: assessing estimatorsMIT 14.310x - Data Analysis for Social Scientists
Slides 2 to 25: unbiasedness, sample variance, efficiency, MSE and consistency
Stop before frameworks for finding estimators. Supply the algebra behind slide 14 rather than treating unbiased sample variance as a fact to memorize.
- 18.05 Class 22 reading: the variance pivotMIT 18.05 - Inference practice
Section 6, Chi-square confidence intervals for the variance
Use the normal-sample chi-square pivot to obtain moments of sample variance. Leave interval construction for the intervals unit.
Focus on
- For iid with mean and finite variance , expand . Expectations give . Independence removes covariance terms in , not in .
- Under normal sampling, is chi-square with degrees of freedom. Its variance gives . Multiplying by reduces variance but introduces bias .
- MSE = variance + squared bias. Unbiasedness need not minimize MSE; efficiency comparisons here are between unbiased estimators at the same sample size.
- Consistency is convergence in probability. Chebyshev gives , which tends to zero. The CLT concerns a scaled sampling distribution, not convergence of individual observations.
Common mistakes · 3
- Calling an estimate unbiased because it is close to truth in one sample. Bias is an expectation over repetitions.
- Using the normal-sample variance formula for an arbitrary distribution. Unbiasedness needs finite second moments; this variance calculation uses normality and hence finite fourth moments.
- Assuming unbiased means consistent. remains unbiased for at every but its variance never shrinks.
Try it yourself
Closed-book, before checking anything
[1, 2, 3], compute , variance with and with by hand. Then use NumPy float64: rng = numpy.random.default_rng(41); draw x = rng.normal(2, 3, size=(100000, 5)) once, with samples as rows. Compute x.mean(axis=1).var(ddof=0), then v0 = x.var(axis=1, ddof=0) and v1 = x.var(axis=1, ddof=1). The sample-mean variance is 1.789 against theory 1.8. The means of v0 and v1 are 7.216 and 9.020 against 7.2 and 9.0; their variances (ddof=0) are 25.867 and 40.418 against 25.92 and 40.5. Their empirical MSEs relative to 9 are 29.050 and 40.418 against 29.16 and 40.5. Require maximum absolute error below 0.2 over these seven moment checks; this is a Monte Carlo tolerance, not a floating-point identity. Seeded values came from NumPy 2.5.4.Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.Where does the lost degree of freedom enter the sample-variance derivation?Answer
Centering by subtracts . Its expectation is , using unbiasedness of and from iid finite-variance sampling. The expected residual sum of squares is therefore .
2.For and under normal sampling, which denominator has smaller MSE?Answer
Using gives bias -1.8, variance 25.92 and MSE 29.16. Using gives zero bias and variance/MSE 40.5. Lower MSE here does not make the biased estimate more efficient within the lecture's unbiased class.
3.Prove the sample mean is consistent and name the assumptions at each step.Answer
Common finite mean gives by linearity. Independence makes cross covariances zero, and common finite variance gives . Chebyshev bounds the deviation probability by . For fixed and fixed , that bound tends to zero.
You're done when
You derive both variance estimators' bias and normal-sample MSE, pass the seven moment checks, and explain why is unbiased but not consistent.
Only when you can do this without notes.
Leads to
Notes
Resources · 2 for this unit, 6 more in the section
- MIT 14.310x - Data Analysis for Social ScientistsMIT OpenCourseWare · primary
Follow lectures 11-15, 17-20 and 22 with matching slides and problem sets for inference, regression, causality and experiment design.
- MIT 18.05 - Inference practiceMIT OpenCourseWare · required
Use classes 17-20, 22-24 and 26 with their problem sets for tests, intervals, bootstrap and regression.
Also in this section
- Causal Inference: What IfHernán & Robins · required
Read Chapters 1-3 and 6-8 for causal effects, DAGs, confounding, selection bias and identification reasoning.
- Patterns of trustworthy experimentationMicrosoft ExP · required
Read after the course to connect health checks, guardrails and statistical interpretation to production launch decisions.
- Always Valid InferenceJohari, Pekelis & Walsh · depth
Use the introduction and worked motivation to understand optional-stopping failure. Reproducing the theory is outside this gate.
- Probabilistic Machine Learning: An IntroductionKevin P. Murphy · reference
Use the April 18, 2025 online edition: Sections 4.2.3 to 4.2.5, 4.5.1 and 4.6.4.1 for Bernoulli and Gaussian MLE/MAP; the definition and central intervals in 4.6.6; 2.1.2 and 11.7.4 for predictive uncertainty. Exercises 4.1 and 4.2 supply derivation practice.
- Permutation nulls and false discovery controlSciPy · reference
Read
permutation_testNotes, Unpaired statistics, for exchangeability and exact partitions;false_discovery_controlNotes and the named thrombolysis example for Bonferroni and Benjamini-Hochberg. Use as an independent implementation oracle, not as a substitute for stating assumptions. - Probability calibration: the statistical propertyscikit-learn · reference
Read the opening calibration definition, the proper-scoring-rule note, and Section 1.16.1, Calibration curves. Stop before recalibration methods; the later Classical ML unit implements them.