Central Limit Theorem Calculator
Visualize the Central Limit Theorem with interactive sampling simulations. Choose distribution, sample size, and observe convergence to Normal.
About
The Central Limit Theorem (CLT) states that the distribution of sample means converges to a Normal distribution as sample size n increases, regardless of the population's original shape. The approximation becomes reliable around n ≥ 30 for most distributions, but highly skewed populations (exponential, Pareto) may require n ≥ 50 - 100. Misapplying the CLT to small samples drawn from non-Normal populations produces confidence intervals and hypothesis tests with incorrect coverage probabilities. This calculator generates actual random samples from six distribution families, computes the empirical sampling distribution, and overlays the theoretical Normal curve N(μ, σ2/n) so you can observe convergence directly. The simulation runs inside a Web Worker to handle up to 100,000 replications without freezing your browser.
Note: this tool assumes independent, identically distributed draws with finite variance. Distributions with infinite variance (Cauchy) violate CLT assumptions and will not converge. The empirical histogram uses Sturges' rule for bin count, which may under-resolve multimodal artifacts at low replication counts.
Formulas
The Central Limit Theorem provides the following convergence result for the sampling distribution of the mean:
The standard error of the mean is computed as:
The Normal probability density function used for the theoretical overlay curve:
Where μ = population mean, σ = population standard deviation, n = sample size (observations per sample), = sample mean, and σ = standard error of the mean. Skewness is measured as γ1 = E[(X − μσ)3] and excess kurtosis as γ2 = E[(X − μσ)4] − 3.
Reference Data
| Distribution | Parameters | Population Mean (μ) | Population Std Dev (σ) | Skewness | Kurtosis (Excess) | Min n for CLT |
|---|---|---|---|---|---|---|
| Uniform(a, b) | a, b | a + b2 | b − a√12 | 0 | −1.2 | 12 |
| Exponential(λ) | λ | 1λ | 1λ | 2 | 6 | 40 - 80 |
| Binomial(n, p) | n, p | np | √np(1 − p) | 1 − 2p√np(1−p) | Varies | 20 - 30 |
| Poisson(λ) | λ | λ | √λ | 1√λ | 1λ | 20 - 50 |
| Beta(α, β) | α, β | αα + β | Complex | Depends on α, β | Depends | 15 - 60 |
| Gamma(k, θ) | k, θ | kθ | √kθ | 2√k | 6k | 30 - 80 |
| Normal(μ, σ) | μ, σ | μ | σ | 0 | 0 | 1 (exact) |
| Chi-Squared(k) | k | k | √2k | √8k | 12k | 30 - 50 |
| Log-Normal(μ, σ) | μ, σ | eμ + σ2/2 | Complex | Right-skewed | High | 50 - 100 |
| Bernoulli(p) | p | p | √p(1−p) | 1−2p√p(1−p) | Varies | 30 |
| Cauchy(x₀, γ) | x₀, γ | Undefined | ∞ | Undefined | Undefined | CLT fails |