Sampling distribution of the sample mean样本均值的抽样分布
Central Limit Theorem visualizer中心极限定理可视化
Pick a population shape and a sample size n. The simulator draws many random samples of size n, computes each sample mean, and stacks the means into a histogram. Whatever the population looks like, the means pile up in a bell shape centered at mu with spread sigma divided by the square root of n, and the fit improves as n grows.选择总体形状和样本量 n。模拟器抽取许多个容量为 n 的随机样本,计算每个样本的均值,并把这些均值堆成直方图。无论总体长什么样,样本均值都会堆成以 mu 为中心、离散程度为 sigma 除以 n 的平方根的钟形,且 n 越大拟合越好。
Controls控制
The same seed and settings always reproduce the same picture. Keyboard: Tab to a button, then press Enter or Space.相同的种子与设置总会得到相同的图形。键盘操作:用 Tab 移到按钮,再按 Enter 或空格。
Results结果
- Histogram of the sample means样本均值的直方图
- Normal curve with mean mu and SD sigma/sqrt(n)均值为 mu、标准差为 sigma/sqrt(n) 的正态曲线
- Population mean mu总体均值 mu
| Quantity量 | Simulated模拟值 | Theory理论值 |
|---|
What the theory predicts理论预测
Population: mean mu = , SD sigma = . Sample means: mean mu = , SD sigma/sqrt(n) = (n = ).总体:均值 mu = ,标准差 sigma = 。样本均值:均值 mu = ,标准差 sigma/sqrt(n) = (n = )。
The mean of the sample means stays at mu for every n. Only the spread shrinks, by a factor of sqrt(n). Quadrupling n cuts the SD of x-bar in half.对任何 n,样本均值的均值都保持为 mu,只有离散程度按 sqrt(n) 的倍数缩小。n 变为 4 倍,x-bar 的标准差减半。
Top panel: the population density. Bottom panel: sample means, drawn on a zoomed axis (mu plus or minus 4 sigma/sqrt n) so the narrowing is visible. Synthetic teaching data; no network needed.上图为总体密度,下图为样本均值,坐标轴已放大(mu 加减 4 倍 sigma/sqrt n),便于看清离散程度如何变小。 合成教学数据,无需联网。