Sampling Lab
Pick a population (any shape, as skewed as you like), then draw samples from it. Panel 2 shows each sample; panel 3 collects the sample means. Two of the most important theorems in statistics appear before your eyes: the running mean settles onto μ (Law of Large Numbers) and the histogram of sample means turns into a bell curve centered at μ with spread σ/√n (Central Limit Theorem).
How to use
- Choose a population and set its parameters. Try something skewed, like the Exponential.
- Set the sample size n, then click "Draw 100" a few times.
- In the CLT lens, compare the histogram of sample means to the overlaid normal curve, then increase n and reset.
- Switch to the LLN lens to watch the running mean converge to μ as observations accumulate.
- Check the readouts: the SD of the sample means should sit right next to σ/√n.
Sample cap reached. Reset to continue.
- μ
- —
- σ
- —
- σ/√n
- —
- Samples
- 0
- Mean of x̄
- —
- SD of x̄
- —