a reproducible gallery of statistical graphics
In Probability Theory, the Central Limit Theorem (CLT) states that, given certain conditions, the mean of a sufficiently large number of independent random variables, each with a well-defined mean and well-defined variance, will be approximately normally distributed.
As shown in the Bean Machine article, CLT has a number of variants. This article shows you as long as the conditions of CLT are satisfied, the distribution of the sample mean will be approximate to the Normal distribution when the sample size n is large enough, no matter what is the original distribution.
In the animation package, there is a function named clt.ani()
.
It shows the distribution of the sample mean when the sample size grows up. The test
shapiro.test()
is provided as a measure of normality.
With the parameter FUN
in the function clt.ani()
you can select distribution which will be
shown in the animation. Here is the example with the Poisson
distribution.
The Cauchy distribution is an example of a distribution which has no mean, variance or higher moments defined, so we cannot apply CLT to this distribution.