Sampling distributions
Central Limit Theorem Experiment
Compare what repeated samples produce with what the population model predicts.
The same seed and inputs reproduce the same draws. Change the seed for a different experiment.
- Population mean · μ
- —
- Theoretical SE · σ/√n
- —
- Mean of simulated means
- —
- Observed SE of means
- —
Simulated meansNormal reference
Population parameters & interpretation
Uniform [0, 1]: μ = 0.5, σ² = 1/12. Exponential (rate 1): μ = 1, σ² = 1. Bernoulli (p = 0.3): μ = 0.3, σ² = 0.21. Independent samples have theoretical standard error σ/√n. The observed SE here is the sample standard deviation of the R simulated means, not the population standard deviation. More repetitions stabilize the histogram; larger n changes the sampling distribution itself. The normal reference is an approximation, not a claim of exact normality.