
Many variables have a symmetric, bell-shaped distribution.
Data: bdims and nba_heights in the openintro package.
The normal distribution is a symmetric, bell-shaped curve. It is completely described by two numbers:

Heights of active women are approximately normal with mean 165 cm and standard deviation 6.5 cm.
The mean moves the curve left and right.
The standard deviation makes the curve narrower or wider. The total area under the curve is always 1, so a narrower curve is taller.
From here on, we will use SAT scores as our example.
We will assume that total SAT scores have
and SAT Math scores have mean 500 and standard deviation 100.
These values are close to, but not the same as, recent SAT scores: we altered them to make mental math easier.
\[\text{random variable} \sim N(\text{mean}, \text{variance})\]
Example
Let \(X\) be the total SAT score of a randomly selected test taker.
\[X \sim N(1000, 200^2)\]
is read “\(X\) is normally distributed with mean 1000 and variance \(200^2\).” The standard deviation is 200 and the variance is \(200^2 = 40{,}000\).
All of these mean the same thing:
Note
Some books and some software put the standard deviation (not the variance) as the second number. In R, pnorm(), qnorm(), and rnorm() all use the standard deviation:
pnorm(1200, mean = 1000, sd = 200)
Always check whether the second number is the standard deviation or the variance. Writing it as \(200^2\) makes it clear.
Exercise
For each normal distribution, find the mean, the variance, and the standard deviation.
Note: \(N(0, 1)\) in (b) is called the standard normal distribution.
The random variable on the left of \(\sim\) can be many things.
| Notation | What is normally distributed? |
|---|---|
| \(X \sim N(1000, 200^2)\) | a random observation (in the population, and so also in a sample): the SAT score of one test taker |
| \(\mu \sim N(7, 0.5^2)\) | a random population parameter: our belief about the mean hours of sleep of all Harvard students |
In a few weeks, we will see that a random sample statistic, like \(\bar{X}\), can also be normally distributed.
This is why we say “mean” and “variance” for the two numbers in \(N(\ , \ )\) rather than giving them their own symbols: sometimes the random variable itself is a mean, like \(\mu\)!
The total area under a normal curve is 1. The probability that the random variable falls in an interval is the area under the curve over that interval.
We will never calculate these areas by hand. We will use functions.
plot_normal() functionlower and upper and writes the area under the plot.lower to shade everything below upper, and leave out upper to shade everything above lower.calc_prob_normal() functionplot_normal() draws the picture. To get the probability as a number that you can use in your answers, use calc_prob_normal() with the same arguments:
What is the probability that a randomly selected test taker scored below 800?
[1] 0.1586553
What is the probability that a randomly selected test taker scored above 1400?
[1] 0.02275013
What is the probability that a randomly selected test taker scored between 800 and 1400?
For any normal distribution, about 68% of the values are within 1 standard deviation of the mean, 95% within 2, and 99.7% within 3.
Exercise
SAT total scores are approximately \(N(1000, 200^2)\). Without using R, find the approximate probability that a randomly selected test taker scored
Then check (a) and (c) with calc_prob_normal().

Exercise
\(X \sim N(1000, 200^2)\). Match each picture to a probability.
Then write the plot_normal() code for each.
Discussion
\(X \sim N(1000, 200^2)\). According to this model, what is the probability that a randomly selected test taker scored exactly 1200? Not 1200.1, not 1199.99999, but exactly 1200.000000…
Answer: 0. The area of a single line under the curve is 0.
Just like the broken alarm last class: for a continuous random variable, we only ask about probabilities of intervals. This also means \(P(X < 1200) = P(X \le 1200)\).
Real SAT scores are reported in steps of 10, so some students do score exactly 1200. The normal distribution treats scores as continuous: it is a model.
find_normal_value()Sometimes we know the area and want the value. What total SAT score does a test taker need to be in the top 10%?
Exercise
SAT Math scores are approximately \(N(500, 100^2)\).
plot_normal() and calc_prob_normal().A z-score tells us how many standard deviations a value is away from the mean.
\[z = \frac{\text{value} - \text{mean}}{\text{standard deviation}}\]
Example
A total SAT score of 1400: \(z = \frac{1400 - 1000}{200} = 2\). The score is 2 standard deviations above the mean.
If \(X\) is normal, its z-score \(Z = \frac{X - \text{mean}}{\text{standard deviation}}\) follows \(N(0, 1)\), the standard normal distribution.
A score of 1400 has \(z = \frac{1400 - 1000}{200} =\) 2. \(P(X > 1400) = P(Z > 2)\): converting to z-scores changes the numbers on the axis, not the shape or the areas.
Exercise
SAT total scores are approximately \(N(1000, 200^2)\) and SAT Math scores are approximately \(N(500, 100^2)\).
Which is more unusual: a total SAT score of 1450 or an SAT Math score of 720?
plot_normal() draws the area, calc_prob_normal() calculates it (value → area), and find_normal_value() goes from area → value.