by Jabbles · 13y ago · 0 comments
EDIT: nm, I saw where you can increase the bins.
So, sample means (estimates of the population mean) tend to be normally distributed even when the population they are sampling is not.
The D3 demo here doesn't show multiple sample means, it shows that as you take more and more items from a normal population, the distribution of your sample of items gradually comes to resemble the distribution of the population as a whole.
As btilly points out elsewhere, to actually obtain the correct limit, you have to normalize the sum correctly. Because of the way the scaling is done in this graphic, as you increase the number of levels, it's in effect normalizing the sum by dividing by "n". To get the right limit, you need to divide by sqrt(n).
In this sense, the CLT is a high-resolution version of the SLLN ("law of averages"). If you normalize the sums by 1/n, the resulting average converges to a number, the mean.
But if instead you subtract this mean, and normalize by 1/sqrt(n) rather than 1/n, the result converges in distribution, and looks like a normal random variable.
By less aggressive normalization, you get information about the fluctuations rather than just pounding it down to a number, as the SLLN does.
I used to TA a probability class for undergrads, and I found the demo to be perfectly reasonable.
[†] x is where it is centered.
In the visualization as you increase the number of bins, the Gaussian approximation becomes more and more squeezed, and by the weak law of large numbers the limit is a Dirac delta.
In order to get the Gaussian you'd need to be looking at a window whose width is proportional to the square root of the number of bins.