A factory knows that 3% of its light bulbs are faulty. In a box of 50, how likely is it that more than 3 are faulty? Adult heights cluster around a mean, with fewer people very tall or very short. How many people are taller than 190 cm? A probability distribution lists every possible value of a random quantity and its probability. Two distributions cover most of this course: the binomial for counts and the normal for measurements.
A Galton board: balls falling through pins pile up into the bell-shaped normal distribution.A count and a measurement
Binomial $B(n,p)$
Normal $N(\mu,\sigma^2)$
Values
$0,1,\dots,n$ (a count)
any real number (a measurement)
Probability
$\binom nk p^k(1-p)^{n-k}$
the area under the curve
Mean
$np$
$\mu$
Variance
$np(1-p)$
$\sigma^2$
Discrete random variables
A discrete random variable 离散随机变量$X$ takes separate values, each with a probability. The probabilities add to 1. The expected value 期望值 (mean) is $E(X)=\sum xP(X=x)$.
Worked example.$P(X=x)=kx$ for $x=1,2,3$. Find $k$ and $E(X)$.
A uniform distribution 均匀分布 gives every value the same probability, like the score on a fair die: $P(X=x)=\frac16$ for $x=1,\dots,6$.
The binomial distribution
A count $X$ follows a binomial distribution 二项分布$B(n,p)$ when:
there is a fixed number of trials 试验, $n$;
each trial is a success or a failure;
the trials are independent;
the probability of success, $p$, is the same in every trial.
Then
$$P(X=k)=\binom nk p^k(1-p)^{n-k},\qquad E(X)=np,\qquad\operatorname{Var}(X)=np(1-p).$$
Not binomial. Drawing without replacement from a small bag ($p$ changes); throwing a die until the first six (no fixed $n$); faults that come in groups (not independent). In an exam, state the conditions in context: “each bulb is faulty independently of the others, with the same probability 0.03”.
B(5, 0.2): P(X = 0) = 0.8⁵ ≈ 0.328, mean 1; for N(100, 15²), x = 130 standardises to z = 2
$E(X)=5\times0.2=1$ and $\operatorname{Var}(X)=5\times0.2\times0.8=0.8$.
For sums of many terms, use the calculator's binomial cumulative function, which gives $P(X\le k)$.
Translating the words. Rewrite every phrase in the form $P(X\le k)$.
Words
Inequality
Using $P(X\le k)$
at most 4
$X\le4$
$P(X\le4)$
fewer than 4
$X\le3$
$P(X\le3)$
at least 4
$X\ge4$
$1-P(X\le3)$
more than 4
$X\ge5$
$1-P(X\le4)$
Common mistake. “At least 4” is $1-P(X\le3)$, not $1-P(X\le4)$. Write the inequality first.
Continuous variables and the normal curve
For a continuous random variable 连续随机变量, probability is an area under a curve. The probability of one exact value is 0: $P(X=130)=0$. So $P(X<130)$ and $P(X\le130)$ are the same.
The normal distribution 正态分布$N(\mu,\sigma^2)$ has a bell-shaped curve:
it is symmetric about the mean $\mu$, and the total area is 1;
its points of inflection are at $\mu\pm\sigma$;
about 68% of values lie within $1\sigma$ of the mean, 95% within $2\sigma$ and 99.7% within $3\sigma$.
Standardising
The standard normal distribution 标准正态分布 is $Z\sim N(0,1)$. Any normal variable can be standardised:
$$Z=\frac{X-\mu}\sigma.$$
$z$ tells you how many standard deviations $x$ is from the mean.
Worked example.$X\sim N(100,15^2)$. Find $P(X>130)$.
$z=\frac{130-100}{15}=2$, so $P(X>130)=P(Z>2)=0.0228$.
Worked example: intervals. With the same $X$:
$P(85<X<115)=0.6827$ (within 1 SD);
$P(X<110)=P(Z<0.667)=0.7475$;
$P(X>85)=P(Z>-1)=0.8413$, by symmetry.
Each answer is a shaded area. Sketch it first, and check that the answer looks the right size.
The inverse normal
Sometimes you know the area and need the boundary.
Worked example.$X\sim N(100,15^2)$. Find the score that puts someone in the top 10%.
$P(X>x)=0.1$, so $P(X<x)=0.9$. The calculator gives $z=1.2816$. Then
$$x=\mu+z\sigma=100+1.2816\times15=119.2.$$
Finding an unknown mean or standard deviation
Worked example: an unknown mean.$X\sim N(\mu,4^2)$ and $P(X<50)=0.2$. Find $\mu$.
Subtract: $30=2.9265\sigma$, so $\sigma=10.25$ and $\mu=40+1.2816\times10.25=53.14$.
Choosing a model
Situation
Model
number of faulty items in a batch of 50, each 3% faulty
$B(50,0.03)$
masses of apples from one orchard
normal
number of sixes in 30 throws
$B(30,\frac16)$
drawing 3 cards from 10 without replacement
neither: $p$ changes
A normal model is only sensible if the data are roughly symmetric and bell-shaped. Check with the data: about 95% should lie within $2\sigma$ of the mean. A normal model also gives a small probability to impossible values (such as negative masses), which is fine if that probability is tiny.
The normal approximation to the binomial. When $n$ is large and $p$ is not close to 0 or 1, $B(n,p)$ is close to $N(np,np(1-p))$. Because the binomial is discrete, use a continuity correction 连续性修正: for $X\sim B(50,0.4)$, $P(X\le15)\approx P(Y<15.5)$ with $Y\sim N(20,12)$, which gives $0.097$. The exact binomial value is $0.0955$.
Each bar k stretches from k − ½ to k + ½, so “at most 15” ends at 15.5; the inverse normal turns the top 10% into the boundary 119.2
Practice
Find the mean and variance of $B(40,0.25)$.
$X\sim B(40,0.25)$. Write “more than 6” using $P(X\le k)$, and find it.
$X$ is normal. What is $P(X=12)$?
$X\sim N(100,15^2)$. Find the $z$-value for $x=88$, and $P(X<88)$.
$X\sim N(30,5^2)$. Find $P(25<X<40)$.
$X\sim N(\mu,\sigma^2)$ with $\mu=60$ and $P(X>75)=0.1$. Find $\sigma$.
Answers.
Mean 10, variance 7.5.
$1-P(X\le6)=1-0.0962=0.904$.
$0$: a single value has no area.
$z=-0.8$; $P(Z<-0.8)=0.2119$.
$P(-1<Z<2)=0.8186$.
$\frac{75-60}\sigma=1.2816$, so $\sigma=11.7$.
Key points
A discrete distribution's probabilities add to 1; $E(X)=\sum xP(X=x)$.
Binomial needs fixed $n$, two outcomes, independence and constant $p$; state them in context.
Rewrite “fewer than”, “at least” and “more than” as $P(X\le k)$ first.
For a continuous variable, probability is area, and $P(X=a)=0$.
Standardise with $z=\frac{x-\mu}\sigma$; use the inverse normal to go from an area to a boundary.
For an unknown $\mu$ or $\sigma$, write $\frac{x-\mu}\sigma=z$ and solve.