A lesson from Essential Probability & Statistics for ML
£29/month
£29/month£29/month or £249/year · 30-day money-back guarantee
Get full accessOur content is best on a larger screen
The normal PDF
A uniform PDF is constant on its support, so every interval of the same length inside the support has the same probability. Many quantities behave differently: their values cluster around a central value, and values further from it are less likely.
This pattern appears again and again across the natural and social sciences, from measurement errors and heights to exam scores and economic data. The distribution that describes it is the normal distribution, the most widely used in probability and statistics.
Definition
A continuous random variable has the normal distribution, also called the Gaussian distribution, with mean and variance , so standard deviation , written , when its PDF is
for every number .
The constant makes a valid PDF: the total area under it is .
In the exponent, is the number of standard deviations lies from the mean. So the exponent is at and more negative the further is from the mean.
Tip
Some books, and code libraries such as NumPy, put the standard deviation second: np.random.normal(0, 4) draws from . We always put the variance second.
A random variable satisfies . Its PDF is . Find , the density of at .
Solution
The PDF of is
Here and the variance is , so and the constant is . is standard deviations from the mean:
Squaring gives and halving gives , so
Practice questions
5 questions
The score on a test is normal with mean and standard deviation . How is the distribution of written?
Select the correct answer:
+ 4 more questions · unlocked with a subscription
The bell curve
The graph of a normal PDF is called a bell curve. The diagram below shows its properties one at a time.
The blue curve is the PDF of a normal random variable with mean
Here
Its height is
The table below summarises these properties.
| Property | Statement |
|---|---|
| Peak | At , with height |
| Symmetry | for every number |
| Positive | for every |
| Changing | Moves the curve along the axis without changing its shape |
| Changing | Multiplying by divides the peak height by and stretches the curve horizontally by a factor of |
Practice questions
5 questions
is normal with mean and standard deviation . Four curves are drawn below. Which one is the graph of the PDF of ? (Use .)
Select the correct answer:
+ 4 more questions · unlocked with a subscription
Every time you pull an answer from memory, the memory gets stronger. Reading doesn't do that. Nodeledge asks you questions on every step of every lesson, then asks again after days, weeks and months.