Continuous distribution · also called Gaussian

Normal distribution

A quantity that is the sum of many small independent effects, which the central limit theorem says will be close to normal whatever the effects are: measurement error, heights, test scores, the average of a large sample. It is fixed by its mean and standard deviation ; about 68% of it lies within of the mean and 95% within .

Normal probability calculator

P(X ≤ 0) = 0.5

At the parameters set by the sliders. The shaded region on the plot is the probability; the dots on the CDF mark F at its ends.

PDF

00.20.4−5−2.502.55f(x)mean

CDF

00.250.50.751−5−2.502.55F(x)

mean 0 · variance 1 · sd 1 · mode 0 · entropy 1.419 nats

Formulas

Parameters
  • , the mean
  • , the standard deviation
Support
PDF
CDF
Mean
Variance
Mode
MGF
Entropy

Of all distributions with a given variance, the normal has the largest entropy. Libraries take the standard deviation , not the variance.

Worked example

Adult heights in a population are normal with mean 170 cm and standard deviation 7 cm. What fraction are taller than 180 cm?

Standardize: . Then , about 7.7%. answer checked by code

How it relates to others

All the relationships, as a diagram →

In Python

from scipy import stats
import numpy as np

X = stats.norm(loc=0, scale=1)
X.pdf(0.5)  # f(0.5) = 0.3521
X.cdf(0.5)  # P(X ≤ 0.5) = 0.6915
X.mean(), X.var()  # 0, 1
X.ppf(0.95)  # 95th percentile
X.rvs(size=10, random_state=0)

rng = np.random.default_rng(0)
rng.normal(loc=0, scale=1, size=10)

Choosing between this and its neighbours? Which distribution for measurements and errors? · Which prior distribution should I use?

← TriangularHalf-normal →