



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Suppose there is a fixed probability p of having an occurrence (or “success”) on any single attempt, and a sequence of n independent attempts is made. Then the binomial random variable , denoted by X ~ b ( n , p ), counts the total number of occurrences in these n attempts. There may be anywhere from 0 to n occurrences in the n attempts; thus, Range X = {0, 1, ..., n }.
For example, roll one fair six-sided die 20 times and count the number of “fours” that are rolled. The probability of rolling a “four” on any attempt is p = 1/ 6. So X ~ b (20,1/ 6). Somewhere from 0 to 20 “fours” will be rolled, and X counts the exact number of “fours” rolled in a sequence of 20 rolls.
With p being the probability of success on any attempt, we shall let q = 1 − p be the probability of failure. For instance, if we are trying to draw a Heart from a complete shuffled deck of cards, then p = 1/ 4 and q = 3 / 4. We note that there are various ways to obtain exactly k successes in n attempts. For example, to have exactly 3 successes in 8 attempts, we must choose which 3 of the 8 tries resulted in the successes:
S S S F F F F F S S F S F F F F S S F F S F F F... S S F F F F F S
... F F F F F S S S
In all there are
= 56 ways to choose 3 success positions out of 8 spots. But each of
these 56 individual sequences occurs with probability p^3 q^5. In general, there are
n k
ways to have exactly k successes in n attempts and each such individual sequence
occurs with probability pk^ qn − k^. Thus the overall probability of obtaining exactly k
successes in n attempts is
n k
(^) pkqn −^ k^.
Probability Distribution Function
The probability distribution function (or pdf) of X ~ b ( n , p ) is the probability of having exactly k occurrences in n attempts and is given by
P ( X = k ) =
n k
(^) pkqn −^ k^ , for k = 0, 1,. .., n.
By the Binomial Expansion Theorem and the fact that p + q = 1 , the sum of the probabilities over the range of X equals 1:
P ( X = k ) k ∈ Range X
n k
(^) pk^ qn − k k = 0
n
n (^) = 1 n (^) = 1.
There is no closed-form formula for the cumulative probability P ( X ≤ k ) or for computing probabilities such as P ( j ≤ X ≤ k ). In each case, the individual probabilities must be summed, or we must use a calculator/computer command:
P ( X ≤ k ) = i = 0
k
n i
i = 0
k
i (^) qn − i (^) and P ( j ≤ X ≤ k ) = n i
i = j
k
i (^) qn − i (^).
Example 1. Draw a single card at random from a shuffled deck over and over, each time with replacement and re-shuffling. Do so for a total of 8 draws.
(a) What is the probability of exactly 3 Hearts being drawn? (b) What is the probability of at most 3 Hearts being drawn? (c) What is the probability of at least 2 Hearts being drawn?
Solution. The probability of drawing a Heart on any attempt is p =1 / 4. Because we have replacement and re-shuffling of cards, the 8 successive draws are independent of each other. So we have a binomial distribution and we may let X ~ b (8,1 / 4) count the number of Hearts drawn in the 8 attempts.
(a) We now have P ( X = 3) =
5 ≈ 0..
(b) Also,
P X ( ≤ 3 ) = P ( X = 0) + P ( X = 1) + P ( X = 2) + P ( X = 3)
=
8
7
6
5
8
7
6
5
(c) Finally, the probability of at least 2 Hearts being drawn is
P X (^ ≥ 2 ) = 1 − P ( X ≤ 1) = 1 − P ( X = 0) − P ( X = 1)
= 1 −
8 −
7
Expected Value, Variance, and Standard Deviation
The expected value (or mean ) of the binomial distribution is the average number of occurrences in repeated sequences of n attempts. This value is easily computed by = E [ X ] = n p. We shall derive it in two ways.
Mode
The mode is the most likely number of occurrences in n attempts. This value is always given by the largest integer k such that k ≤ ( n + 1) p , denoted by k = (^) ( n + 1) p . However, when ( n + 1) p is actually an integer, then the binomial distribution will be bi- modal (i.e., it will have two modes). In this case, this value of k = ( n + 1) p and the previous integer k − 1 will be the two modes.
To derive this expression for the mode, we let ak = P ( X = k ) =
n k
(^) pkqn − k^. We then
wish to find the largest integer k such that ak − 1 ≤ ak. (We then have
ak > ak + 1 > ak + 2 >. .. > an making k have the highest probability value ak .) We now consider the ratio ak / ak − 1. To have ak − 1 ≤ ak , we must have 1 ≤ ak / ak − 1 , which holds if and only if
ak ak − 1
n! k !( n − k )!
pk^ qn − k
n! ( k − 1)!( n − k + 1)!
pk −^1 qn − k^ +^1
n − k + 1 k
p q
This result holds if and only if k (1 − p ) ≤ ( n − k + 1) p which is equivalent to k ≤ ( n + 1) p. Note that we have ak − 1 = ak if and only if k = ( n + 1) p , which holds if and only if
( n + 1) p is an integer.
Example 2. Draw a single card from a deck, with replacement and re-shuffling for a total of 10 draws, and count the number of Hearts drawn. For 10 draws, what are the average and standard deviation of the number of Hearts drawn? What is the most likely number of Hearts drawn?
Solution. Here X ~ b (10,1/ 4) counts the number of Hearts drawn in a sequence of 10 independent draws. On average, we would draw E [ X ] = 10 ×1 / 4 = 2.5 Hearts, with a
standard deviation of (^) X = 10 × 1/ 4 × 3/ 4 ≈ 1.. The most likely number of Hearts in 10 draws is k = (^) 11 × 1/ 4 = (^) 2.75 = 2.
Moreover, P ( X = 2) =
Example 3. Suppose we roll two dice 44 times and we count the number of times that we roll a sum of either 7 or 11.
(a) What is the most likely number of rolls that will be either a 7 or 11?
(b) What is the probability of there being (i) at most 10 rolls that are either a 7 or 11? (ii) at least 10 rolls that are either a 7 or 11?
(c) What is the probability that the number of times we roll a 7 or an 11 is within one standard deviation of average?
Solution. On each roll, the probability of getting a sum of either a 7 or 11 is p = 8 / 36 = 2 / 9. So X ~ b (44, 2 / 9) counts the number of times we do so in 44 rolls.
(a) In 44 rolls, the most likely number of times a 7 or 11 will be rolled is k = (^) 45 × 2 / 9 = (^) (^10) = 10. Because this value is an integer, X is bi-modal and it is most likely and equally likely that a 7 or 11 is rolled either 9 times or 10 times. Moreover,
34 = P ( X = 10) ≈ 0.141786.
(b) Next, P X (^ ≤ 10 ) =
k
k (^) 7 9
44 − k
k = 0
10
k
k (^) 7 9
44 − k
k = 0
9
(c) The average number of rolls resulting in a 7 or 11 is = 44× 2/9 = 9.777... with a
standard deviation of = 44 × 2 / 9 × 7 / 9 ≈ 2.7577. So the range ± is from about 7.02 to 12.535. This range does not include 7, so the possible values in this range are 8, 9, 10, 11, 12. Thus,
k
k (^) 7 9
44 − k
k = 8
12
Calculator Commands
Binomial probability values can be computed with the built-in binompdf( and binomcdf( TI commands from the DISTR menu:
P X (^ = k )^ = binompdf(n,p,k) P X (^ ≤ k )^ = binomcdf(n,p,k)
P j ( ≤ X ≤ k ) = P X (^ ≤ k ) − P X ( ≤ j − 1 ) = binomcdf(n,p,k) – binomcdf(n,p,j–1)
P X (^ ≥ k )^ = 1 − P X (^ ≤ k − 1 )^ = 1 – binomcdf(n,p,k–1)
For X ~ b (44, 2 / 9) , (a) P X (^ = 10 )^ = binompdf(44,2/9,10) 0.
(b) P X (^ ≤ 10 )^ = binomcdf(44,2/9,10) 0. P X (^ ≥ 10 )^ = 1 – binomcdf(44,2/9,9) 0.
(c) P (8 ≤ X ≤ 12) = binomcdf(44,2/9,12) – binomcdf(44,2/9,7) 0.