Probability distributions
Draw one card and read its score. That score is a random variable, X: a number decided by chance. Group the cards by score. Each score with its probability makes the probability distribution, which adds up to 1.
1From cards to a table
One of these 20 cards is drawn at random. Find the distribution of its score X.
- Each card has probability 1/20P(X=4) = 6/20 = 0.3
- Do the same for every score4/20, 7/20, 6/20, 3/20
- Check the total0.2 + 0.35 + 0.3 + 0.15=1
- AnswerP(X = −2, 1, 4, 7) = 0.2, 0.35, 0.3, 0.15
| x | −2 | 1 | 4 | 7 |
|---|---|---|---|---|
| P(X = x) | 0.2 | 0.35 | 0.3 | 0.15 |
- The support is {−2, 1, 4, 7}: the values X can take.
- A score can be negative; a probability cannot.
- No card scores 2, so P(X = 2) = 0.
- The most likely score, 1, is the mode.
2Find a missing constant: make the total 1
P(X = x) is 4k, 7k, 6k, 3k for x = −2, 1, 4, 7. Find k.
- Add all four4k + 7k + 6k + 3k=1
- Answer20k = 1, so k = 1/20k multiplies the counts, not the scores.
W takes −1, 0, 2 only, with P(W = w) = k(w² + 2). Find k.
- Put each listed w into w² + 23k, 2k, 6k
- Answer11k = 1, so k = 1/11P(W = −1, 0, 2) = 3/11, 2/11, 6/11.
3A variable made from two draws
Find P(Y = 6).
- Pairs 6 apart: (−2, 4), (4, −2), (1, 7), (7, 1)0.2 × 0.3=0.06, twice0.35 × 0.15=0.0525, twice
- Add the four blue cells0.06 + 0.06 + 0.0525 + 0.0525
- AnswerP(Y = 6) = 0.225
| y | 0 | 3 | 6 | 9 |
|---|---|---|---|---|
| P(Y = y) | 0.275 | 0.44 | 0.225 | 0.06 |
4Try it
1 A bag holds 10 discs: 3 show 0, 5 show 1 and 2 show 5. One is drawn. Write the distribution of the number shown.
2 P(Y = y) = ky for y = 1, 2, 3, 4. Find k.
3 A fair spinner shows 1, 2 or 3. It is spun twice and D = |first − second|. Find the distribution of D.
- 1P(0) = 0.3, P(1) = 0.5, P(5) = 0.2
- 210k = 1, so k = 1/10
- 3P(D = 0) = 3/9 = 1/3, P(D = 1) = 4/9, P(D = 2) = 2/9
Events and the expected value
“More than 1” asks about values, not about the number line: list the scores that count, then add their probabilities. The same table gives the expected value E(X), the average score per draw over a long run.
1Events: list the values that count
| x | −2 | 1 | 4 | 7 |
|---|---|---|---|---|
| P(X = x) | 0.2 | 0.35 | 0.3 | 0.15 |
Find P(X > 1).
- Which scores are more than 1?4 and 7
- Add their probabilities0.3 + 0.15
- AnswerP(X > 1) = 0.45
| Event | Values that count | Probability |
|---|---|---|
| X < 1 | −2 | 0.2 |
| X ≤ 1 | −2, 1 | 0.55 |
| −2 < X < 7 | 1, 4 | 0.35 + 0.3 = 0.65 |
| X ≥ 4 | 4, 7 | 0.45 |
| 1 ≤ X ≤ 4 | 1, 4 | 0.65 |
2Expected value: weight each value by its probability
| x | P(X = x) | x P(X = x) |
|---|---|---|
| −2 | 0.2 | −0.4 |
| 1 | 0.35 | 0.35 |
| 4 | 0.3 | 1.2 |
| 7 | 0.15 | 1.05 |
Find E(X).
- Multiply each score by its probability−0.4, 0.35, 1.2, 1.05
- Add, keeping the negative term−0.4 + 0.35 + 1.2 + 1.05
- AnswerE(X) = 2.2
3A long-run total, and a value no card has
4Try it
X has this distribution.
| x | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| P(X = x) | 0.1 | 0.4 | 0.3 | 0.2 |
1 Find P(X ≥ 2).
2 Find P(0 < X < 3).
3 Find E(X).
4 Find the expected total over 50 independent repeats.
- 10.3 + 0.2 = 0.5
- 20.4 + 0.3 = 0.7
- 30 + 0.4 + 0.6 + 0.6 = 1.6
- 450 × 1.6 = 80
Variance, and unknown probabilities
Two games can have the same average score but very different swings. Variance measures the spread: the average squared distance from the mean. Its square root, the standard deviation, is back in the units of X.
1Variance: E(X²) minus the square of the mean
X has the distribution below and E(X) = 2.2. Find Var(X) and the standard deviation, to 3 significant figures.
| x | −2 | 1 | 4 | 7 |
|---|---|---|---|---|
| P(X = x) | 0.2 | 0.35 | 0.3 | 0.15 |
- Find E(X²): square each value, then weight itE(X²)=4(0.2) + 1(0.35) + 16(0.3) + 49(0.15)=0.8 + 0.35 + 4.8 + 7.35=13.3
- Subtract the square of the meanVar(X)=13.3 − 2.2²=13.3 − 4.84 = 8.46
- Take the square rootSD=√8.46 = 2.9086…
- AnswerVar(X) = 8.46; standard deviation = 2.91 (3 s.f.)
2Unknown probabilities: one equation for each fact
X takes −2, 1, 4, 7 with probabilities 0.2, a, b, 0.15, and E(X) = 2.2. Find a and b.
- The total is 10.2 + a + b + 0.15=1a + b=0.65
- Use the mean−0.4 + a + 4b + 1.05=2.2a + 4b=1.55
- Subtract the first equation3b=0.9, so b = 0.3
- Back-substitutea=0.65 − 0.3 = 0.35
- Answera = 0.35, b = 0.3
3Try it
X has this distribution.
| x | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| P(X = x) | 0.1 | 0.4 | 0.3 | 0.2 |
1 This table has E(X) = 1.6. Find E(X²) and Var(X).
2 Find the standard deviation to 3 significant figures.
3 Y takes 1, 2, 3 with probabilities 0.2, a, b, and E(Y) = 2.3. Find a and b.
- 1E(X²) = 0.4 + 1.2 + 1.8 = 3.4; Var(X) = 3.4 − 1.6² = 0.84
- 2√0.84 = 0.917
- 3a + b = 0.8 and 2a + 3b = 2.1, so b = 0.5, a = 0.3
The binomial distribution
Draw a card eight times, putting it back each time, and count how often you get a 4. When the number of trials is fixed, the trials are independent and each has the same chance, that count follows the binomial distribution, written B(n, p).
1When B(n, p) fits: check the experiment
| Condition | Eight draws with replacement |
|---|---|
| A fixed number of trials | Eight draws, whatever happens. |
| Two results per trial | Score 4 is success; any other score is failure. |
| Independent trials, same p | Each card goes back, so p = 6/20 = 0.3 every time. |
2When it does not fit
3Exactly r successes: positions × one order
N ~ B(8, 0.3). Find P(N = 3).
- Choose the 3 success positions⁸C₃=56
- One order of 3 successes and 5 failures0.3³ × 0.7⁵
- Multiply56 × 0.3³ × 0.7⁵=0.25412184
- AnswerP(N = 3) ≈ 0.254
4Try it
1 N ~ B(6, 0.4). Find P(N = 2).
2 N ~ B(6, 0.4). Find P(N = 0).
3 A bag holds 10 counters, 3 of them red. Four are drawn without replacement. Is the number of red B(4, 0.3)?
- 1⁶C₂ × 0.4² × 0.6⁴ = 15 × 0.16 × 0.1296 = 0.311
- 20.6⁶ = 0.0467
- 3no: without replacement the chance of red changes after each draw
Binomial ranges, mean and variance
N can only be a whole number from 0 to 8, so “between 1 and 3” or “more than 5” is a short list of counts. List them first, then add. The mean and variance of a binomial count have their own short formulas.
1Choose the counts, then add
N ~ B(8, 0.3). Find P(1 ≤ N ≤ 3).
- List the counts: 1, 2 and 30 is left out
- Add the three terms0.19765032 + 0.29647548 + 0.25412184
- AnswerP(1 ≤ N ≤ 3) ≈ 0.748
Find P(N > 5).
- List the counts: 6, 7 and 85 is left out
- Add the three terms0.01000188 + 0.00122472 + 0.00006561
- AnswerP(N > 5) ≈ 0.0113
2At least one: use the complement
3Mean and variance: np and np(1 − p)
N ~ B(8, 0.3). Work out E(N), Var(N) and the standard deviation.
- Mean: npE(N)=8 × 0.3 = 2.4
- Variance: np(1 − p)Var(N)=8 × 0.3 × 0.7 = 1.68
- Standard deviation: the square root of the varianceSD=√1.68 ≈ 1.30
- AnswerE(N) = 2.4, Var(N) = 1.68, SD ≈ 1.30
4Work back to n and p
A binomial count has mean 2.4 and variance 1.68. Find n and p.
- Write both equationsnp=2.4np(1 − p)=1.68
- Divide the second by the first1 − p=1.68 ÷ 2.4 = 0.7p=0.3
- Find nn=2.4 ÷ 0.3 = 8
- Answern = 8, p = 0.3
5Try it
1 N ~ B(10, 0.2). Find P(N ≥ 1).
2 Find P(2 ≤ N ≤ 3).
3 Find E(N) and Var(N).
4 A binomial count has mean 6 and variance 4.2. Find n and p.
- 11 − 0.8¹⁰ ≈ 0.893
- 2P(N = 2) + P(N = 3) ≈ 0.302 + 0.201 = 0.503
- 3E(N) = 2, Var(N) = 1.6
- 41 − p = 0.7, so p = 0.3 and n = 20
Waiting for a success: the geometric distribution
Keep drawing, with replacement, until a −2 turns up. The number of draws needed, T, follows the geometric distribution, Geo(p). There is no fixed number of trials, and T starts at 1 because the successful draw is counted.
1First success on trial r
T ~ Geo(0.2). Find P(T = 4) and P(T > 4).
- Three failures, then a successP(T=4) = 0.8³ × 0.2 = 0.1024
- T > 4: the first four draws all failP(T > 4)=0.8⁴
- AnswerP(T = 4) = 0.1024; P(T > 4) = 0.4096
2By, before and after trial r
| Words | Event | Probability for p = 0.2, r = 4 |
|---|---|---|
| after draw 4 | T > 4 | 0.8⁴ = 0.4096 |
| by draw 4 | T ≤ 4 | 1 − 0.8⁴ = 0.5904 |
| before draw 4 | T < 4, so T ≤ 3 | 1 − 0.8³ = 0.488 |
3Second or third success: count the earlier positions
Find the probability that the second −2 comes on draw 5.
- One success among draws 1–4⁴C₁=4 positions
- Two successes and three failures in all4 × 0.2² × 0.8³
- AnswerP = 0.08192
Third −2 on draw 7.
- Two successes among draws 1–6⁶C₂=15
- Answer15 × 0.2³ × 0.8⁴ = 0.049152Three successes, four failures.
Second −2 on draw 5 or draw 6.
- Draw 6: one success among draws 1–54 × 0.2² × 0.8³ + 5 × 0.2² × 0.8⁴
- Answer0.08192 + 0.08192 = 0.16384The two events cannot both happen: add.
4Try it
1 T ~ Geo(0.25). Find P(T = 3).
2 Find P(T > 3).
3 Find E(T).
4 With p = 0.25 on every trial, find the probability that the second success comes on trial 4.
- 10.75² × 0.25 = 0.140625
- 20.75³ = 0.421875
- 31/0.25 = 4
- 4³C₁ × 0.25² × 0.75² = 0.10546875
Check the model first
Binomial and geometric tables only work when every trial is independent with the same chance. When cards are not put back, or one “trial” is really two draws, stop and build what the question describes.
1Without replacement: build the table
Six cards score −2, −2, 1, 1, 4, 7. Draw without replacement until a −2 appears; R is the number of draws. Find P(R = 2), then the distribution of R.
- Not −2, then −2(4/6) × (2/5)=4/15
- The two −2 cards sit in one of ⁶C₂ = 15 position pairsfirst −2 at r leaves 6 − r places for the second
- AnswerP(R = 1, 2, 3, 4, 5) = 5/15, 4/15, 3/15, 2/15, 1/15
| r | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| P(R = r) | 5/15 | 4/15 | 3/15 | 2/15 | 1/15 |
2Its mean and variance: the usual table method
3A trial made of two draws: find its chance first
One trial is two draws with replacement from the 20 cards; it succeeds if exactly one card scores 4 (0.3 per draw). K counts trials up to the first success.
- Two orders: 4 then not 4, or not 4 then 40.3 × 0.7 + 0.7 × 0.3=0.42
- K ~ Geo(0.42): three failed trials, then a successP(K=4) = 0.58³ × 0.42 = 0.08194704
- Mean number of trialsE(K)=1/0.42 = 50/21
- AnswerP(K = 4) ≈ 0.0819; E(K) ≈ 2.38 trials
4Try it
1 Five cards: two red, three black. Draw without replacement until a red appears; R is the number of draws. Find the distribution of R.
2 Find E(R).
3 One trial is rolling two fair dice; it succeeds if exactly one shows a six. Find the probability that the first success is on trial 2.
- 1P(R = 1, 2, 3, 4) = 2/5, 3/10, 1/5, 1/10
- 20.4 + 0.6 + 0.6 + 0.4 = 2
- 3one trial: 10/36 = 5/18; (13/18) × (5/18) = 65/324