- Explain how a density curve represents a continuous distribution and why probabilities are areas.
- Work with the uniform and exponential distributions.
- State the properties of the normal distribution and use the 68-95-99.7 rule.
- Standardize values to z-scores, and find normal probabilities and percentiles both directions (with software, a table, or the tools here).
- Find the distribution of sums and differences of independent normal variables.
- Assess normality using histograms and normal probability (QQ) plots.
- Approximate binomial probabilities with the normal distribution using a continuity correction, and check when this is justified.
Chapter 6 dealt with counts. Many quantities we measure (height, weight, time, blood pressure, test scores) are continuous: they can take any value in an interval. This chapter builds the machinery for continuous random variables and then studies the most important distribution in statistics, the normal distribution. Its importance is not that most data are normal (many are not), but that sample means and many other statistics are approximately normal, which is the subject of Chapter 8.
Continuous random variables and density curves
A continuous random variable can take infinitely many values in an interval, so it cannot have a probability for each individual value: the probability of any exact value is zero. Instead we describe the distribution by a density curve \(f(x)\).
- \(f(x) \ge 0\) for all \(x\) and the total area under the curve is 1.
- \(P(a \le X \le b)\) is the area under the curve between \(a\) and \(b\): \(P(a \le X \le b) = \int_a^b f(x)\,dx\).
- \(P(X = a) = 0\), so for continuous variables \(P(X \le a) = P(X < a)\); it does not matter whether endpoints are included.
- The CDF is \(F(x) = P(X \le x)\), the area to the left of \(x\).
- The mean is the balance point of the curve; the median is the value with half the area on each side.
The height of the density curve is not a probability; it can exceed 1 (a very narrow distribution has a tall curve). Only areas are probabilities. Think of a histogram whose bins have been made infinitely narrow: the total area stays 1, and the height is "probability per unit of \(x\)".
The uniform distribution
The simplest density is flat. If \(X\) is equally likely to be anywhere in \([a, b]\), then \(X\) is uniform, \(X \sim U(a, b)\), with \(f(x) = \dfrac{1}{b-a}\) on \([a,b]\).
\[\mu = \frac{a+b}{2}, \qquad \sigma^2 = \frac{(b-a)^2}{12}, \qquad P(c \le X \le d) = \frac{d-c}{b-a}.\]Example 7.1: A bus that arrives at random
A bus arrives at a stop uniformly at random during a 10-minute window, so \(X \sim U(0, 10)\). The density is \(f(x) = 1/10\). Then \(P(2 < X < 5) = (5-2)/10 = 0.3\), \(P(X > 7) = 0.3\), the mean is 5 minutes, and the standard deviation is \(10/\sqrt{12} = 2.887\) minutes. The probability that the wait is exactly 5.000... minutes is 0.
The exponential distribution
Waiting times between random events (calls, arrivals, radioactive decays) are often modeled by the exponential distribution with rate \(\lambda > 0\): \(f(x) = \lambda e^{-\lambda x}\) for \(x \ge 0\).
\[P(X > x) = e^{-\lambda x},\qquad \mu = \frac{1}{\lambda},\qquad \sigma = \frac{1}{\lambda},\qquad \text{median} = \frac{\ln 2}{\lambda}.\]It is the continuous partner of the geometric distribution and shares its memoryless property. If events arrive as a Poisson process at rate \(\lambda\) per unit time, the number of events in time \(t\) is Poisson(\(\lambda t\)) and the waiting time until the next event is exponential(\(\lambda\)).
Example 7.2: Waiting time until the next customer
Customers arrive on average every 5 minutes, so the wait \(X\) is exponential with \(\lambda = 1/5 = 0.2\) per minute (hypothetical numbers). \(P(X > 8) = e^{-1.6} = 0.2019\). \(P(X < 3) = 1 - e^{-0.6} = 0.4512\). The median wait is \(5\ln 2 = 3.47\) minutes, less than the mean of 5, reflecting the right skew.
The normal distribution
The normal distribution \(N(\mu, \sigma)\) has the symmetric, single-peaked, bell-shaped density
\[f(x) = \frac{1}{\sigma\sqrt{2\pi}}\exp\!\left(-\frac{(x-\mu)^2}{2\sigma^2}\right), \qquad -\infty < x < \infty.\]- Completely described by its mean \(\mu\) (center, also the median and mode) and standard deviation \(\sigma\) (spread). Changing \(\mu\) slides the curve; changing \(\sigma\) stretches it.
- Symmetric about \(\mu\); the tails extend forever but the probability beyond 4 or 5 standard deviations is negligible.
- The inflection points (where the curve changes from bending down to bending up) are at \(\mu \pm \sigma\).
- Linear transformations of a normal variable are normal: if \(X \sim N(\mu, \sigma)\), then \(aX + b \sim N(a\mu + b, |a|\sigma)\).
- Sums of independent normal variables are normal (Section 7.4).
The 68-95-99.7 rule
For any normal distribution, approximately
- 68% of values lie within 1 standard deviation of the mean (\(\mu \pm \sigma\)); exactly 68.27%,
- 95% lie within 2 SDs; exactly 95.45% (and exactly 95% within 1.96 SDs),
- 99.7% lie within 3 SDs; exactly 99.73%.
Standardizing and finding normal probabilities
There is no simple formula for the area under a normal curve, so probabilities come from software or tables. The key step is to standardize: convert to the number of standard deviations from the mean,
\[z = \frac{x - \mu}{\sigma}.\]If \(X \sim N(\mu,\sigma)\), then \(Z \sim N(0,1)\), the standard normal distribution. So every normal probability can be found from one curve. Write \(\Phi(z) = P(Z \le z)\) for its CDF.
- State the problem and draw a sketch of the normal curve, shading the region.
- Standardize the boundary values to z-scores.
- Find the area with a table, calculator, or software: \(P(Z < z) = \Phi(z)\); \(P(Z > z) = 1 - \Phi(z)\); \(P(a < Z < b) = \Phi(b) - \Phi(a)\).
- Answer in the context of the problem.
Example 7.3: Forward problems: from a value to a probability
Scores on an intelligence-type test are modeled as \(N(100, 15)\).
\(z = (120-100)/15 = 1.333\). \(P(X > 120) = 1 - \Phi(1.333) = 1 - 0.9088 = 0.0912\). About 9.1 percent of scores exceed 120.
\(z\) values are \(-1\) and \(+1\): \(\Phi(1) - \Phi(-1) = 0.8413 - 0.1587 = 0.6827\), the 68 percent of the empirical rule.
\(z = -1.333\), \(P(X < 80) = 0.0912\). By symmetry this equals the upper tail above 120.
Inverse problems: from a probability to a value
Sometimes the area is given and we want the boundary value: "What score marks the top 10 percent?" The percentile or quantile function \(\Phi^{-1}\) reverses the CDF: find \(z^*\) with \(\Phi(z^*) = p\), then unstandardize: \(x = \mu + z^*\sigma\).
Example 7.4: Inverse problem: the 90th percentile
For \(N(100, 15)\), the 90th percentile has \(\Phi(z^*) = 0.90\), so \(z^* = 1.2816\). Then \(x = 100 + 1.2816(15) = 119.22\). A score of 119.2 puts you at the 90th percentile. The middle 95 percent of scores lie between \(100 \pm 1.96(15)\), that is, 70.6 and 129.4.
| Confidence / tail | Upper-tail area | \(z^*\) |
|---|---|---|
| 80% central | 0.10 | 1.2816 |
| 90% central | 0.05 | 1.6449 |
| 95% central | 0.025 | 1.9600 |
| 98% central | 0.01 | 2.3263 |
| 99% central | 0.005 | 2.5758 |
| 99.9% central | 0.0005 | 3.2905 |
These critical values will be used constantly in Chapters 9 and 10; they are worth memorizing (1.645, 1.96, 2.576).
A standard normal table gives \(\Phi(z)\) (area to the left). Row and column headers build up \(z\) to two decimals: the row is the first decimal, the column the second. To find \(P(Z < 1.33)\), go to row 1.3 and column 0.03. For negative \(z\) use symmetry, \(\Phi(-z) = 1 - \Phi(z)\). Appendix B has tables that are computed live and can be searched. In this course, use them to understand what software does, then use software.
Comparing values on different scales
The z-score expresses each value on a common scale (standard deviations from its own mean), so we can compare across different tests or measurements.
Example 7.5: Which result is more impressive?
Anna scores 620 on a test with mean 500 and SD 100. Ben scores 28 on a different test with mean 21 and SD 5 (hypothetical tests, both approximately normal). Anna: \(z = 1.2\), percentile \(\Phi(1.2) = 88.5\%\). Ben: \(z = 1.4\), percentile \(\Phi(1.4) = 91.9\%\). Ben's result is stronger relative to his test-takers, even though 28 is a smaller number than 620.
Combining normal random variables
If \(X \sim N(\mu_X, \sigma_X)\) and \(Y \sim N(\mu_Y, \sigma_Y)\) are independent, then
\[X + Y \sim N\!\left(\mu_X + \mu_Y,\ \sqrt{\sigma_X^2 + \sigma_Y^2}\right), \qquad X - Y \sim N\!\left(\mu_X - \mu_Y,\ \sqrt{\sigma_X^2 + \sigma_Y^2}\right).\]This is Chapter 6's rule for means and variances, plus the fact that the result is still normal. (Normality is not automatic for sums of arbitrary random variables; it is a special property of the normal family.)
Example 7.6: Total commute time and who arrives first
A commuter's drive is \(X \sim N(50, 6)\) minutes and the walk from the parking lot is \(Y \sim N(30, 4)\) minutes, independent.
Total time. \(T = X + Y \sim N(80, \sqrt{36 + 16}) = N(80, 7.211)\). \(P(T > 90) = P(Z > 1.387) = 0.0828\).
Comparison. \(D = X - Y \sim N(20, 7.211)\). \(P(X > Y) = P(D > 0) = P(Z > -2.774) = 0.9972\): the drive nearly always takes longer than the walk. Note the standard deviation of the difference is 7.211, not \(6 - 4 = 2\).
Assessing normality
Many methods in later chapters assume normality (or approximate normality of a sample mean). No real data are exactly normal, so the question is whether the data are close enough. Use graphs first.
- Histogram, dotplot, or boxplot: look for approximate symmetry, a single peak, and a lack of extreme outliers.
- Normal probability plot (QQ plot): plot the sorted data against the z-scores (normal quantiles) that a perfect normal sample would have at the same ranks. Data from a normal distribution fall along a straight line (with slope roughly \(s\) and intercept \(\bar{x}\)).
- Empirical rule check: about 68 percent of data within one SD of the mean, 95 percent within two.
| Pattern in the plot | What it means |
|---|---|
| Points close to a straight line | Approximately normal |
| Curved, bending upward (convex, like a smile) | Right skewed |
| Curved, bending downward (concave, like a frown) | Left skewed |
| S shaped: ends bend away from the line (low end below, high end above) | Heavy tails (more extreme values than normal) |
| Reverse S: ends flatter than the line | Light tails (for example uniform) |
| Steps or a staircase | Rounded or discrete data |
| One or two points far from the line | Outliers |
With fewer than about 20 observations, even truly normal data can look non-normal, and non-normal data can look fine. Use the tool below to draw repeated samples and calibrate your eye. Formal tests of normality (Shapiro-Wilk) exist but they are unhelpful in large samples (they reject for trivial departures) and weak in small ones. Graphs and subject knowledge are better guides.
The normal approximation to the binomial
Binomial probabilities involve many terms when \(n\) is large. A binomial random variable is the sum of \(n\) independent Bernoulli variables, so for large \(n\) its distribution looks like a normal curve with the same mean and standard deviation: \(X \approx N\big(np, \sqrt{np(1-p)}\big)\).
- Use the approximation when \(np \ge 10\) and \(n(1-p) \ge 10\) (some texts use 5).
- The binomial is discrete and the normal continuous. To match, treat each integer \(k\) as the interval \((k - 0.5,\ k + 0.5)\). This is the continuity correction: \[P(X \le k) \approx P\!\left(Z \le \frac{k + 0.5 - np}{\sigma}\right),\qquad P(X \ge k) \approx P\!\left(Z \ge \frac{k - 0.5 - np}{\sigma}\right),\qquad P(X = k) \approx P\!\left(\frac{k - 0.5 - np}{\sigma} \le Z \le \frac{k + 0.5 - np}{\sigma}\right).\]
Example 7.7: Normal approximation with and without the correction
\(X \sim \text{Bin}(100, 0.3)\): \(np = 30\), \(n(1-p) = 70\), both at least 10. \(\mu = 30\), \(\sigma = \sqrt{21} = 4.583\). Find \(P(X \le 35)\).
With the correction: \(z = (35.5 - 30)/4.583 = 1.200\), \(\Phi(1.200) = 0.8849\).
Without: \(z = (35 - 30)/4.583 = 1.091\), \(\Phi(1.091) = 0.8624\).
Exact binomial: 0.8839. The correction turns a 2.2-point error into a 0.1-point error. For \(P(X = 30)\) the approximation gives 0.0869 against the exact 0.0868.
Where the normal distribution goes next
The normal distribution is the parent of several others you will meet in inference. The \(t\) distribution (Chapter 9) describes a standardized sample mean when the population SD is estimated. The chi-square (Chapter 12) is the distribution of a sum of squared standard normals: \(\chi^2_k = Z_1^2 + \cdots + Z_k^2\). The F distribution (Chapter 13) is a ratio of scaled chi-squares. Chapter 8 will show why the normal curve shows up so often: the central limit theorem.
Going deeper: Why the density has the form it does, and the area under it
The normal density is the exponential of a negative quadratic, \(e^{-z^2/2}\), scaled to have total area 1. To show \(\int_{-\infty}^\infty e^{-z^2/2}dz = \sqrt{2\pi}\), square the integral and change to polar coordinates: \(\left(\int e^{-x^2/2}dx\right)\left(\int e^{-y^2/2}dy\right) = \iint e^{-(x^2+y^2)/2}\,dx\,dy = \int_0^{2\pi}\int_0^\infty e^{-r^2/2} r\,dr\,d\theta = 2\pi\). Hence the constant \(1/\sqrt{2\pi}\). The quadratic exponent explains why standardizing works and why sums of independent normals stay normal: quadratic exponents add.
Chapter summary
- Density curve: area is probability; \(P(X = a) = 0\); total area 1.
- Uniform \(U(a,b)\): \(\mu = (a+b)/2\), \(\sigma^2 = (b-a)^2/12\). Exponential(\(\lambda\)): \(P(X>x) = e^{-\lambda x}\), \(\mu = \sigma = 1/\lambda\).
- Normal \(N(\mu,\sigma)\): symmetric bell; 68-95-99.7 rule.
- \(z = (x-\mu)/\sigma\); \(Z \sim N(0,1)\). Forward: \(P(X \lt x) = \Phi(z)\). Inverse: \(x = \mu + z^*\sigma\).
- Key critical values: 1.282, 1.645, 1.960, 2.326, 2.576.
- Independent normals: \(X \pm Y\) is normal with mean \(\mu_X \pm \mu_Y\) and SD \(\sqrt{\sigma_X^2 + \sigma_Y^2}\).
- Check normality with histograms and QQ plots; small samples are hard to judge.
- Normal approximation to \(\text{Bin}(n,p)\) when \(np, n(1-p) \ge 10\), with mean \(np\), SD \(\sqrt{np(1-p)}\), and a continuity correction of 0.5.
Key terms
| Term | Meaning |
|---|---|
| Density curve / PDF | Nonnegative curve with total area 1; areas are probabilities |
| Standard normal | The normal distribution with mean 0 and SD 1 |
| \(\Phi(z)\) | The standard normal CDF, \(P(Z \le z)\) |
| Percentile / quantile | The value below which a given proportion of the distribution lies |
| Normal probability (QQ) plot | Sorted data against expected normal quantiles; straight means normal |
| Continuity correction | The adjustment of 0.5 when approximating a discrete distribution by a continuous one |
| Exponential distribution | Waiting time between random events; memoryless |