Normal Distribution
Compare a histogram of 800 normal samples with the bell curve (1/√(2π))e^(−x²/2) laid over it. Edit the data or the density formula.
Add up many small, independent effects, and under broad conditions the total falls on a bell curve. This, the central limit theorem, is why the normal distribution appears wherever measurements aggregate additively: in physics, biology, economics and machine learning. Abraham de Moivre studied the curve in 1738 as an approximation to the binomial coefficients. Carl Friedrich Gauss, after whom it is also called the Gaussian distribution, used it in 1809 in his work on celestial mechanics to justify least squares. Its mean and standard deviation fix it, and it is the maximum-entropy distribution for a fixed mean and variance.
The plot draws 800 seeded samples from the standard normal (mean 0 , variance 1 ) as a histogram of 28 bins. Normalized to an area of one, its bars compare directly with the red curve, the density (1/\sqrt{2\pi})\exp(-x^2/2) ; the gap between them is sampling variation. Notice that 546 samples (68%) lie between -1 and 1 , where the exact curve gives 68.3%. Cut the data to 100 values and notice the bars stray further.
JavaScript is required to view the interactive plot.