Binomial Distribution - Lesson
Binomial Distribution - Lesson
Jamie Frost
www.drfrost.org
@DrFrostMaths
𝑥
123456
For example, a discrete
uniform distribution models
a single trial where each
outcome is equally likely,
e.g. the throw of a fair dice.
Introducing ‘Off-the-Shelf’ Probability
Distributions
Normal Distribution
Outcomes
Probability of a range
🫤
( ) ( )
5 5
a 1 𝟏 5 𝟑𝟏𝟐𝟓
=
? b ?=
6 𝟕𝟕𝟕𝟔 6 𝟕𝟕𝟕𝟔
10
?
0.8 =𝟎 . 𝟏𝟎𝟕
Probability of 1 Success
𝑝(𝑥)
8
𝑝 ( 8 ) =0.1
we want
8
𝑝 ( 0 ) =0.9 this It could have been
the 1st person on
𝑥 the table who was
01234 5678 the leftie.
If the probability of a L R R R R R R R
person being left- 𝟕
handed is what is the 0.1 × 0.9× 0.9 ×0.9 × 0.9× 0.9 ×0.9 × 0.9=𝟎 .𝟏 × 𝟎 .𝟗
probability of exactly R L R R R R R R
one person being 8 0.9 × 0.1× 0.9 ×0.9 × 0.9× 0.9 ×0.9 × 0.9=𝟎 .𝟏 × 𝟎 .𝟗𝟕
left-handed? But it could also
have been the 2nd
There’s ways in person.
total that of the R R R R R R R L
𝟕
people could be left- 0.9 × 0.1× 0.9 ×0.9 × 0.9× 0.9 ×0.9 × 0.9=𝟎 .𝟏 × 𝟎 .𝟗
handed, each with
𝟕
probability 𝑝 (1 )=𝟖 ×𝟎 . 𝟏 ×𝟎 . 𝟗 ≈ 𝟎 . 𝟑𝟖𝟑
Probability of Any Number of Successes
𝑝(𝑥) 8
𝑝 (1 )=8 × 0.1 ×0.9
8
𝑝 ( 8 ) =0.1
we want
8
𝑝 ( 0 ) =0.9 this It could have been
these particular
𝑥 people on the table
01234 5678 who were the lefties.
If the probability of a L L L L L L R R
person being left- 𝟔 𝟐
handed is , what is 0.1 × 0.1× 0.1× 0.1× 0.1 ×0.1 × 0.9× 0.9=𝟎 .𝟏 ×𝟎 . 𝟗
the probability of How many ways could of
exactly people the people be left-handed?Recall that “8 choose 6”
being left-handed? gives the number of
ways of choosing items
from . Use the ‘choose’
button on your
𝟔 𝟐
∴𝑝 ( 6 )=𝟐𝟖×𝟎.𝟏 ×𝟎.𝟗
calculator.
This is roughly a
in chance!
The Binomial Distribution
! We can model a random variable with a binomial distribution if
• there are a fixed number of trials, ,
• there are two possible outcomes: ‘success’ and ‘failure’,
• there is a fixed probability of success,
• the trials are independent of each other
If then:
2
I throw a fair dice times. I want to No Yes
know the probability I get sixes, fives
and ones. There’s a fixed number of trials
( throws) but each trial has outcomes,
not .
3
Customers enter my shop at an No Yes
average rate of a minute. I want to
know the probability that in the There’s not a fixed number of trials
(there’s no limit on the number of
minutes, I get no customers. customers) and no clear ‘success’ or
‘failure’ here.
4
An Olympic archer hits the bullseye of a No Yes
target with probability. Out of allowed
shots, what’s the probability that hit Fixed number of trials (8
shots), and two outcomes on
the bullseye? each trial (bullseye or not
bullseye)
Example
There is a table of people. Binomial distribution
Given the probability of any Parameters is number of trials
given person being left-handed is probability of
is , determine the probability success
that: Outcomes is number of
a successes
b exactly people are left-
handed Probability
exactly people are left- function
handed
a Let be the number of people who are left-
handed. It’s helpful to define in
words what our random
variable is
representing.
to 3sf Write the distribution
of .
because there are
b to 3sf trials (8 people)
is the probability that
each person is left-
handed.
Just substitute into
the formula above.
We can either write
or as shorthand.
Fill in the Gaps
a The probability of throwing b It rains on any given day
a Heads on a biased coin is with probability . What’s
. What’s the probability in the probability it rains for
throws that I see Heads? days next week?
𝑛=𝟏𝟎 𝑛 =𝟕
? ?
? ?
? ?
? ?
? ? ? ? ? ?
? ? ? ? ? ?
? ?
Test Your Understanding drfrost.org/ 639a
s/
639c
b
3sf ?
Link Between Binomial Expansion &
Distributions
Expand
3 𝟑 𝟐 𝟐 𝟑
( 𝑝 +𝑞 ) =𝒒 +𝟑 𝒑 𝒒 +𝟑
? 𝒑 𝒒 +𝒑
Probabilities of ?
? ? ? ?
What do you
notice?
If we let be the probability of ‘failure’ on
each trial, i.e. , then the probabilities in a
?
Binomial distribution are the same as the
terms of the expansion of .
Link Between Binomial Expansion &
Distributions
𝟑 𝟑 𝟐 𝟐 𝟑
( 𝒑 + 𝒒 ) =𝒒 +𝟑 𝒑 𝒒 +𝟑 𝒑 𝒒+ 𝒑
𝑝(𝑥)
𝑋 𝐵 ( 8 ,0.1 )
𝑃 ( 𝑋 ≤ 3 ) =?
𝑥
01234 5678
We might want to calculate the running total of the
probability up to a certain number of successes.
is known as a cumulative probability function
(CF on calculators).
These are
instructions for the
Casio fx-CG50 Choose Choose Binomial.
1 2
DISTRIBUTION.
For Tail, choose the first Execute, and read off the
3 4
option (F1). Enter the probability. Notice how all the
values as shown. 0, 1, 2, 3, 4 bars are
highlighted.
Test Your Understanding drfrost.org/
s/
639f 639g
sf ?
𝑋 𝐵 (?7 , 0.2 )
Probabilities of More General Ranges
Given that , calculate: Note: On calculators like the fx-CG50, you can
calculate these directly using the appropriate
‘Tail’ option. However, you do need to
understand how to manipulate probabilities like
this.
sf 23 45678
b ≤2 ≤6
We initially want
everything up to ,
but need to get rid
23 45678
of everything up to
sf in order to leave to .
Quickfire Questions
a ?
b ?
c ?
d ?
e ?
f ?
g ?
h ?
i ?
j ?
Test Your Understandingdrfrost.org/
s/
639f 639g 639h
𝑃 ( 𝐻≥ 4 )=1−𝑃 ( 𝐻≤3 )
?
?
Example Test Your
Understanding
We can use the 13 The probability of it raining on
probability of a range to any day is fixed. Given the
determine . probability it rains at least
In an archery competition once this week is , determine
where shots are taken, the the probability it rains on a
probability of an entrant given day.
hitting the target at least once
is . sf
Determine the probability she ?
is successful on each shot.
Recall that if there
are successes, then
we have ‘failed’
(with probability )
times.
drfrost.org/ 639j
s/
Harder Version drfrost.org/
s/
639l
=
distance m,
In this table, is
less than but is
too big.
Test Your Understanding drfrost.org/
s/
639m
?
Example Test Your
Understanding
We can problem solve by 17 [CCEA AS June 2019 P2 Stats
comparing binomial probabilities Q8(ii)]
to determine an unknown. A school sports club has
members. The probability of any
Let member, chosen at random,
Given that , determine the being injured throughout the year
value of . is .
Let be the random variable "the
number of members injured
throughout the school year".
It is known that
Find the value of .
(3 marks)
drfrost.org/ 639n
s/
Looking Ahead : Other ‘Off-the-Shelf’
Distributions
Binomial Skill 840
Poisson
𝐵(𝑛, 𝑝 ) 𝑃𝑜 ( 𝜆 )
A probability distribution over A probability distribution over
the number of ‘successes’ the number of events that
out of trials, given a occurred in a time interval,
probability of each success. given an average rate at which
they occur.
Skills 640-
Geometric
643 Skill 843
Normal
𝑁 ( 𝜇, 𝜎 2 ) 𝐺𝑒𝑜 (𝑝)
A probability distribution over
Models continuous variables the number of trials required
whose distributions are before the first ‘success’,
symmetrical in shape with given a probability of success.
the probability tailing off
around a mean , e.g.
measurement errors, heights e.g. “What’s the probability
of people in a population, etc. of having to flip a fair coin
times until I first see a
Head?”