AA HL · Statistics and probability · course

Discrete and binomial distributions.

AA HL resourcesPDF

A random variable gives a number to each outcome; its distribution says how likely each number is. The expected value is the balance point of that distribution. When the same independent trial is repeated $n$ times, the number of successes follows the binomial distribution.

IDiscrete random variablesSL 4.7 · distributions, $\sum P=1$, $E(X)$, fair games

I.1 A probability distribution

Definition 1

probability distribution

A discrete random variable $X$ takes values $x_i$ with probabilities $P(X=x_i)$, $\sum P(X=x_i)=1$. Its expected value is $E(X)=\sum x\,P(X=x)$: the mean of $X$ over many repetitions.
Example 1

$X$ takes the values $0,\,1,\,2,\,3$ with probabilities $0.15,\ 2k,\ 0.25,\ k$. Find $k$ and $P(X\le1)$.

What you do
What you write
Step 1 The probabilities add up to $1$
$0.4+3k=1$
Step 2 Solve
$k=0.2$
Step 3 Add the probabilities wanted
$P(X\le1)=0.15+0.4=0.55$

Apply

  1. $x=1,2,3$ with probabilities $0.35,\ k,\ 0.25$: find $k$.
    Answer$0.4$
  2. $P(X=x)=kx^{2}$ for $x=1,2,3$: find $k$.
    Answer$\frac1{14}$

I.2 The expected value

Example 2

Find $E(X)$ for the distribution of Example 1.

What you do
What you write
Step 1 Multiply each value by its probability
$0\times0.15+1\times0.4+2\times0.25+3\times0.2$
Step 2 Add
$E(X)=1.5$
Figure 1 — Exam-style question 1. $E(X)$ is the point where the distribution balances.

Apply

  1. $x=2,5,10$ with probabilities $0.5,\,0.3,\,0.2$: $E(X)$.
    Answer$4.5$
  2. $x=-1,\,3$ with probabilities $0.6,\,0.4$: $E(X)$.
    Answer$0.6$

I.3 Fair games

Property 1

fair games

Let $X$ be the gain of the player (winnings minus stake). The game is fair when $E(X)=0$.
Watch out 1
$E(X)$ need not be a value $X$ can take, nor the most likely value. Check $\sum P=1$ first.
Example 3

A player pays $5$ euros to roll a fair die: a six wins $12$ euros, a $4$ or a $5$ wins $3$ euros, otherwise nothing. Is the game fair? What stake would make it fair?

What you do
What you write
Step 1 Expected winnings
$12\times\dfrac16+3\times\dfrac26=3$
Step 2 Expected gain: minus the stake
$3-5=-2\ne0$: not fair
Step 3 Fair stake: the expected winnings
$3$ euros

Apply

  1. Stake $2$ euros, win $7$ euros with probability $0.25$: the expected gain.
    Answer$-0.25$ euros
  2. Stake $1$ euro, win probability $0.2$: the prize for a fair game.
    Answer$5$ euros

IIThe binomial distributionSL 4.8 · $X\sim B(n,\,p)$, $P(X=r)$, $P(X\le r)$, $E(X)=np$, $\mathrm{Var}(X)=np(1-p)$

II.1 Recognising a binomial

Definition 2

binomial distribution

The same two-outcome trial repeated $n$ times independently, with the same probability $p$ of success: the number of successes follows $X\sim B(n,\,p)$. The GDC gives $P(X=r)$ and $P(X\le r)$.
Example 4

A student guesses all $10$ answers of a test with $4$ options each. Let $X$ be the number of correct answers. Explain why $X$ is binomial and give its parameters.

What you do
What you write
Step 1 Fixed number of trials
$n=10$ questions
Step 2 Two outcomes, same $p$
right or wrong, $p=\frac14$ each time
Step 3 Independent
each guess does not affect the others
Step 4 Write the distribution
$X\sim B(10,\,0.25)$

Apply

  1. Two cards are drawn without replacement; $X$ the number of aces. Binomial?
    Answerno: $p$ changes at the second draw
  2. A die is thrown $30$ times; $X$ the number of sixes.
    Answer$B\left(30,\,\frac16\right)$

II.2 $P(X=r)$

Example 5

$X\sim B(10,\,0.25)$. Find $P(X=3)$.

What you do
What you write
Step 1 Write the probability statement
$P(X=3)$
Step 2 Binomial pdf on the GDC: $n=10$, $p=0.25$, $r=3$
$0.250282\ldots$
Step 3 Answer, 3 s.f.
$0.250$

Apply

  1. $B(6,\,0.5)$: $P(X=2)$.
    Answer$0.234$
  2. $B(15,\,0.1)$: $P(X=0)$.
    Answer$0.206$

II.3 At least, at most, more than

Watch out 2
“At least $5$”: $P(X\ge5)=1-P(X\le4)$. “More than $4$”: the same. “Fewer than $3$”: $P(X\le2)$. Write the statement before the number.
Example 6

$X\sim B(10,\,0.25)$. Find $P(X\le2)$ and the probability of at least $4$ successes.

What you do
What you write
Step 1 At most $2$: cumulative
$P(X\le2)=0.526$
Step 2 At least $4$: the complement
$P(X\ge4)=1-P(X\le3)$
Step 3 Compute
$0.224$
Figure 2 — The peak of $B(10,\,p)$ moves with the mean $np$.

Apply

  1. $B(8,\,0.6)$: $P(X\lt 3)$.
    Answer$0.0498$
  2. $B(8,\,0.6)$: $P(X\gt 6)$.
    Answer$0.106$

II.4 Mean and variance

Property 2

mean and variance

$E(X)=np$, $\mathrm{Var}(X)=np(1-p)$; standard deviation $\sqrt{np(1-p)}$.
Example 7

$X\sim B(40,\,0.15)$. Find the mean, the variance and the standard deviation of $X$.

What you do
What you write
Step 1 $E(X)=np$
$40\times0.15=6$
Step 2 $\mathrm{Var}(X)=np(1-p)$
$6\times0.85=5.1$
Step 3 Square root
$\sigma=2.26$

Apply

  1. $B(25,\,0.4)$: mean and variance.
    Answer$10$; $6$
  2. $X\sim B(48,\,p)$ and $E(X)=12$: find $p$.
    Answer$0.25$

IIIExam-style questionsfrom the shortest to the longest · every one in steps, with its marks

A Discrete random variables

Exam-style question 1Paper 1 · no calculator · [Maximum mark: 5]

The probability distribution of a discrete random variable $X$ is $\displaystyle \begin{array}{c|cccc}x\&1\&2\&3\&4\\\hline P(X=x)\&0.1\&k\&0.3\&2k\end{array}$

(a)Find the value of $k$.[2]
(b)Find $E(X)$.[2]
(c)Find $P(X\ge3)$.[1]
More questions like this

Working (a)

What you do
What you write
Step 1 The probabilities add up to $1$
$0.1+k+0.3+2k=1$
The probabilities add up to $1$.
Step 2 Solve
$k=0.2$

Working (b)

What you do
What you write
Step 1 Multiply each value by its probability
$1\times0.1+2\times0.2+3\times0.3+4\times0.4$
Step 2 Add
$E(X)=3$

Working (c)

What you do
What you write
Step 1 Add the probabilities wanted
$0.3+0.4=0.7$

Play this question in Mark it: find each mark yourself →

Exam-style question 2Paper 1 · no calculator · [Maximum mark: 5]

In a game, a player pays $k$ euros to play. The player wins $10$ euros with probability $0.2$, $3$ euros with probability $0.3$, and nothing otherwise.

(a)Find the value of $k$ for which the game is fair.[3]
(b)The organiser sets $k=4$. Find the expected loss of a player per game.[2]
More questions like this

Working (a)

What you do
What you write
Step 1 Expected winnings
$E(\text{winnings})=10\times0.2+3\times0.3=2.9$
Or the gain: $E(X)=2.9-k$.
Step 2 Fair: the stake equals them
fair: $k=2.9$
$E(\text{gain})=0$.

Working (b)

What you do
What you write
Step 1 Expected gain: minus the stake
$E(\text{gain})=2.9-4=-1.1$
Step 2 Say it as a loss
expected loss $1.10$ euros

Play this question in Mark it: find each mark yourself →

B The binomial distribution (Paper 2)

Exam-style question 3Paper 2 · calculator · [Maximum mark: 6]

A spinner lands on red with probability $0.3$. It is spun $12$ times. Let $X$ be the number of times it lands on red.

(a)Find $P(X=4)$.[2]
(b)Find the probability that it lands on red at least $5$ times.[2]
(c)Write down $E(X)$ and find $\mathrm{Var}(X)$.[2]
More questions like this

Working (a)

What you do
What you write
Step 1 Write the distribution
$X\sim B(12,\,0.3)$
Step 2 Binomial pdf
$0.231$ ($0.231139\ldots$)

Working (b)

What you do
What you write
Step 1 At least $5$: the complement
$P(X\ge5)=1-P(X\le4)$
“At least $5$”: $4$ is the last value excluded.
Step 2 Compute
$0.276$ ($0.276344\ldots$)

Working (c)

What you do
What you write
Step 1 $E(X)=np$
$E(X)=3.6$
Step 2 $\mathrm{Var}(X)=np(1-p)$
$\mathrm{Var}(X)=12\times0.3\times0.7=2.52$

Play this question in Mark it: find each mark yourself →

Exam-style question 4Paper 2 · calculator · [Maximum mark: 7]

On any school day, the probability that a bus is late is $0.15$, independently of other days. Consider $20$ school days.

(a)Write down the expected number of days on which the bus is late.[1]
(b)Find the probability that the bus is late on exactly $2$ days.[2]
(c)Find the probability that the bus is late on more than $4$ days.[2]
(d)Find the least number of days $n$ for which the probability that the bus is late at least once is greater than $0.99$.[2]
More questions like this

Working (a)

What you do
What you write
Step 1 $E(X)=np$
$20\times0.15=3$

Working (b)

What you do
What you write
Step 1 Write the distribution, binomial pdf
$X\sim B(20,\,0.15)$
Step 2 Compute
$0.229$ ($0.229338\ldots$)

Working (c)

What you do
What you write
Step 1 More than $4$: the complement
$P(X\gt 4)=1-P(X\le4)$
Step 2 Compute
$0.170$ ($0.170153\ldots$)

Working (d)

What you do
What you write
Step 1 Write the inequality in $n$
$1-0.85^{n}\gt 0.99$
Or a table of values on the GDC.
Step 2 Solve on the GDC, next integer
$n=29$
$n\gt 28.3$: the least whole number is $29$.

Play this question in Mark it: find each mark yourself →

IVWhich method? Read the questionthe whole topic on one page

The question says
You write
A table of probabilities is given with one unknown, $k$: the probabilities add up to $1$.
an equation in $k$ D1
You must find the “expected value” of a variable, or what happens “on average”: $\sum x\,P(X=x)$.
multiply each value by its probability, add D1
A game has a stake and winnings, and the question says “the game is fair”: the expected gain is $0$.
gain = winnings $-$ stake P1
The context has “$n$ independent trials” with the same “probability $p$” of success: $X\sim B(n,\,p)$.
write the distribution first D2
You must find the probability of “exactly $r$” successes: it is $P(X=r)$.
binomial pdf on the GDC D2
You must find the probability of “at least”, “more than” or “at most” $r$ successes: use $P(X\le r)$ and complements.
$P(X\ge r)=1-P(X\le r-1)$ W2
You must find the “mean” or the “variance” of a binomial variable: $np$ and $np(1-p)$.
no GDC needed P2
In the exam 1

command terms

Expected value: $E(X)$, a mean. Fair: expected gain $0$. State the distribution: “$X\sim B(n,\,p)$” with the numbers. At least: $\ge$; more than: $\gt $; at most: $\le$; fewer than: $\lt $.