Probability Distribution - Binomial Distribution
Probability Distribution - Binomial Distribution
A die is thrown 10 times. Let X be equal to the number of times a ‘6’ appears.
Two complementary outcomes >> a ‘6’ (success) and a ‘1, 2, 3, 4 or 5’ (failure)
n = 10, p = P(success) =
1
6
Therefore, X~Bin(10, )
1
6
Example
Fourteen percent (14%) of flights from a certain airport are delayed. Consider the next
20 independent flights and the number of flights that take off on-time.
Two complementary outcomes >> on-time (success) and delayed (failure)
X = number of on-time flights, n = 20, p = P(success) = 0.86
Therefore, X~Bin(20, 0.86)
For any value of n, the P.M.F for a binomially distributed random variable is:
𝑃 𝑋 = 𝑥 = 𝑛𝐶𝑥 𝑝 𝑥 1 − 𝑝 𝑛−𝑥 𝑥 = 0, 1, 2, … , 𝑛
(ON FORMULA SHEET)
𝑞
Since a binomially distributed random variable is discrete, we can use the usual
formula (from the previous section) to find the mean/expected value and variance
of the random variable. However…
It has been shown that these formulae reduce to the following for any binomially
distributed random variable:
E(X) = 𝜇 = 𝑛𝑝
(ON FORMULA SHEET)
Var(X) = 𝜎2 = 𝑛𝑝𝑞
Example
a) 3 answers correctly?
b) 7 answers correctly?
c) fewer than 3 answers correctly?
d) at least 5 answers correctly?
e) What is the expected number of questions the student answers correctly?
f) What is the variance and standard deviation of the number of questions the
student answers correctly?
Solution
We can consider a “success” as getting a question right and consider the 10 questions as 10 independent
Bernoulli trials, then X ~ Bin(10 , 0.2) where X is the random variable representing the number of correct
a) 3 answers correctly?
P(X=3) = 10C3 (0.2)3 (0.8)10-3 = 0.2013 10 (shift) nCr 3 x 0.23 x 0.87 = 0.2013
b) 7 answers correctly?
𝑃 𝑋 = 𝑥 = 𝑛𝐶𝑥 𝑝 𝑥 1 − 𝑝 𝑛−𝑥
𝑃 𝑋 = 𝑥 = 𝑛𝐶𝑥 𝑝 𝑥 1 − 𝑝 𝑛−𝑥
= 0.0328
E(X) = 𝑛𝑝 = 10 × 0,2 = 2
f) What is the variance and standard deviation of the number of questions the
student answers correctly?
∴ 𝜎 = 1.6 = 1.26
CUMULATIVE BINOMIAL DISTRIBUTION TABLES
Notice that the calculations needed in parts (c) and (d) of the previous example (on
slides 11 and 12) are time consuming. Instead of using the PMF p(x) to solve the
problems, the CDF F(x) can be used.
Values for the CDF are found in the Cumulative Binomial Distribution tables (Table A).
There are several tables – one for each different value of n. The first column gives the
value of n while the second column gives the possible values that the random variable X
can take on. The top row gives common values of p.
Note: These tables give cumulative probabilities P(X ≤ x), so situations that involve the
“<”, “>”and “≥” signs must be adjusted so that they are in a form that uses the “≤” sign
i.e. a “less than or equal to” situation.
Example
n p
1) Suppose X ~ Bin(12 , 0.6). Find the probability that X is less than or equal to 5:
Here we want to find 𝐹 5 = 𝑃(𝑋 ≤ 5).
Part (c): What is the probability that the student chooses fewer than 3 answers correctly?
To find this go to the table with 𝑛 = 10 in the first column. Choose 𝑥 = 2 in the second column
and choose 𝑝 = 0.2 in the top row. Line up the column and row and the value is
𝐹(2) = 𝑃(𝑋 ≤ 2) = 0.67780
Part (d): What is the probability that the student chooses at least 5 answers correctly?
n = number of components = 20
Let X = number of components that have no defect
= 1 – P(X ≤ 12)
= 1 – 0.0321
= 0.9679
If 200 components are released from the electric repair shop, what is the expected number
of components that may have a defect?
E(X) = 𝜇 = 𝑛𝑝
n = 200
defective components = 16% and 8%
E(number of defects) = np
= 200 x (0.16 + 0.08) = 48