Section 3.3 The Binomial Formula
OpenIntro: Binomial Distribution video
Suppose we randomly selected four individuals to participate in the “shock” study. What is the chance exactly one of them will be a success? Let's call the four people Allen (\(A\)), Brittany (\(B\)), Caroline (\(C\)), and Damian (\(D\)) for convenience. Also, suppose 35% of people are successes as in the previous version of this example.
Let's consider a scenario where one person refuses:
But there are three other scenarios: Brittany, Caroline, or Damian could have been the one to refuse. In each of these cases, the probability is again \((0.35)^1(0.65)^3\text{.}\) These four scenarios exhaust all the possible ways that exactly one of these four people could refuse to administer the most severe shock, so the total probability is \(4\times(0.35)^1(0.65)^3 = 0.38\text{.}\)
Guided Practice 3.3.3
Verify that the scenario where Brittany is the only one to refuse to give the most severe shock has probability \((0.35)^1(0.65)^3\text{.}\) 1
Subsection 3.3.1 Understanding the formula
To solve the scenario outlined in Example 3.3.2 we use what is called the Binomal Formula. The binomal formula gives the probability of having \(k\) successes in \(n\) independent trials where probability of an individual success in one trial is \(p\) (in Example 3.3.2, \(n=4\text{,}\) \(k=1\text{,}\) \(p=0.35\)). In order to develop this formula, we reexamine each part of the example.
There were four individuals who could have been the one to refuse, and each of these four scenarios had the same probability. Thus, we could identify the final probability as
The first component of this equation is the number of ways to arrange the \(k=1\) successes among the \(n=4\) trials. The second component is the probability of any of the four (equally probable) scenarios.
Consider \(P(\)single scenario\()\) under the general case of \(k\) successes and \(n-k\) failures in the \(n\) trials. In any such scenario, we apply the Multiplication Rule for independent events:
This is our general formula for \(P(\)single scenario\()\text{.}\)
Secondly, we introduce a general formula for the number of ways to choose \(k\) successes in \(n\) trials, i.e. arrange \(k\) successes and \(n-k\) failures:
The quantity \({n\choose k}\) is read n choose k. 2 Other notation for \(n\) choose \(k\) includes \(_nC_k\text{,}\) \(C_n^k\text{,}\) and \(C(n,k)\text{.}\) The exclamation point notation (e.g. \(k!\)) denotes a factorial expression.
Using the formula, we can compute the number of ways to choose \(k=1\) successes in \(n=4\) trials:
This result is exactly what we found by carefully thinking of each possible scenario in Example 3.3.2.
Substituting \(n\) choose \(k\) for the number of scenarios and \(p^k(1-p)^{n-k}\) for the single scenario probability in Equation (3.3.1) yields the general binomial formula.
Binomial formula
Suppose the probability of a single trial being a success is \(p\text{.}\) Then the probability of observing exactly \(k\) successes in \(n\) independent trials is given by
Subsection 3.3.2 When and how to apply the formula
TIP: Is it binomial? Four conditions to check.
(1) The trials are independent.
(2) The number of trials, \(n\text{,}\) is fixed.
(3) Each trial outcome can be classified as a success or failure.
(4) The probability of a success, \(p\text{,}\) is the same for each trial.
Example 3.3.4
What is the probability that 3 of 8 randomly selected students will refuse to administer the worst shock, i.e. 5 of 8 will?
We would like to apply the binomial model, so we check our conditions. The number of trials is fixed (\(n=8\)) (condition 2) and each trial outcome can be classified as a success or failure (condition 3). Because the sample is random, the trials are independent (condition 1) and the probability of a success is the same for each trial (condition 4).
In the outcome of interest, there are \(k=3\) successes in \(n=8\) trials, and the probability of a success is \(p=0.35\text{.}\) So the probability that 3 of 8 will refuse is given by
Dealing with the factorial part:
Using \((0.35)^3(0.65)^5 \approx 0.005\text{,}\) the final probability is about \(56*0.005 = 0.28\text{.}\)
TIP: Computing binomial probabilities
The first step in using the binomial model is to check that the model is appropriate. If it is, the next step is to identify \(n\text{,}\) \(p\text{,}\) and \(k\text{.}\) The final step is to apply the formulas and interpret the results.
Guided Practice 3.3.5
The probability that a random smoker will develop a severe lung condition in his or her lifetime is about \(0.3\text{.}\) If you have 4 friends who smoke, are the conditions for the binomial model satisfied? 3 One possible answer: if the friends know each other, then the independence assumption is probably not satisfied. For example, acquaintances may have similar smoking habits.
Guided Practice 3.3.6
Suppose these four friends do not know each other and we can treat them as if they were a random sample from the population. Is the binomial model appropriate? What is the probability that (a) none of them will develop a severe lung condition? (b) One will develop a severe lung condition? (c) That no more than one will develop a severe lung condition? 4 To check if the binomial model is appropriate, we must verify the conditions. (i) Since we are supposing we can treat the friends as a random sample, they are independent. (ii) We have a fixed number of trials (\(n=4\)). (iii) Each outcome is a success or failure. (iv) The probability of a success is the same for each trials since the individuals are like a random sample (\(p=0.3\) if we say a “success” is someone getting a lung condition, a morbid choice). Compute parts (a) and (b) from the binomial formula in Equation (3.3.2): \(P(0) = {4 \choose 0} (0.3)^0 (0.7)^4 = 1\times1\times0.7^4 = 0.2401\text{,}\) \(P(1) = {4 \choose 1} (0.3)^1(0.7)^{3} = 0.4116\text{.}\) Note: \(0!=1\text{,}\) . Part (c) can be computed as the sum of parts (a) and (b): \(P(0) + P(1) = 0.2401 + 0.4116 = 0.6517\text{.}\) That is, there is about a 65% chance that no more than one of your four smoking friends will develop a severe lung condition.
Guided Practice 3.3.7
What is the probability that at least 2 of your 4 smoking friends will develop a severe lung condition in their lifetimes? 5 The complement (no more than one will develop a severe lung condition) as computed in Guided Practice 3.3.6 as 0.6517, so we compute one minus this value: 0.3483.
Guided Practice 3.3.8
Suppose you have 7 friends who are smokers and they can be treated as a random sample of smokers. What is the probability that at most 2 of your 7 friends will develop a severe lung condition. 6 \(P(\)0, 1, or 2 develop severe lung condition\() = P(k=0) + P(k=1)+P(k=2) = 0.6471\text{.}\)
Below we consider the first term in the binomial probability, \(n\) choose \(k\) under some special scenarios.
Guided Practice 3.3.9
Why is it true that \({n \choose 0}=1\) and \({n \choose n}=1\) for any \(n\text{?}\)
7 Frame these expressions into words. How many different ways are there to arrange 0 successes and \(n\) failures in \(n\) trials? (1 way.) How many different ways are there to arrange \(n\) successes and 0 failures in \(n\) trials? (1 way.)Guided Practice 3.3.10
How many ways can you arrange one success and \(n-1\) failures in \(n\) trials? How many ways can you arrange \(n-1\) successes and one failure in \(n\) trials? 8 One success and \(n-1\) failures: there are exactly \(n\) unique places we can put the success, so there are \(n\) ways to arrange one success and \(n-1\) failures. A similar argument is used for the second question. Mathematically, we show these results by verifying the following two equations:
Example 3.3.11
There are 13 marbles in a bag. 4 are blue and 9 are red. Randomly draw 5 marbles without replacement. Find the probability you get exactly 3 blue marbles.
Because the probability of success \(p\) is not the same for each trial, we cannot use the binomial formula. However, we can use the same logic to arrive at the following answer.
Subsection 3.3.3 Calculator: binomial probabilities
Needs video TI-83/84: Computing the binomial coefficient, \({n\choose k}\)
Use MATH
, PRB
, nCr
to evaluate \(n\) choose \(r\text{.}\) Here \(r\) and \(k\) are different letters for the same quantity.
Type the value of n.
Select
MATH
.Right arrow to
PRB
.Choose
3:nCr
.Type the value of k.
Hit
ENTER
.
Example: 5 nCr 3
means 5 choose 3.
Casio fx-9750GII: Computing the binomial coefficient, \({n\choose k}\)
Navigate to the
RUN-MAT
section (hitMENU
, then hit1
).Enter a value for \(n\text{.}\)
Go to
CATALOG
(hit buttonsSHIFT
and then7
).Type
C
(hit theln
button), then navigate down to the boldedC
and hitEXE
.Enter the value of \(k\text{.}\) Example of what it should look like:
7C3
.Hit
EXE
.
TI-84: Computing the binomial formula, \(P(X = k)={n\choose k}p^k(1-p)^{n-k}\)
Use 2ND
VARS
, binompdf
to evaluate the probability of exactly \(k\) occurrences out of \(n\) independent trials of an event with probability \(p\text{.}\)
Select
2ND
VARS
(i.e.DISTR
)Choose
A:binompdf
(use the down arrow to scroll down).Let
trials
be \(n\text{.}\)Let
p
be \(p\)Let
x
value be \(k\text{.}\)Select
Paste
and hitENTER
.
TI-83: Do step 1, choose 0:binompdf
, then enter \(n\text{,}\) \(p\text{,}\) and \(k\) separated by commas:
binompdf(n, p, k)
. Then hit ENTER
.
TI-84: Computing \(P(X \le k)= {n\choose 0}p^0(1-p)^{n-0} + ... + {n\choose k}p^k(1-p)^{n-k}\)
Use 2ND
VARS
, binomcdf
to evaluate the cumulative probability of at most \(k\) occurrences out of \(n\) independent trials of an event with probability \(p\text{.}\)
Select
2ND
VARS
(i.e.DISTR
)Choose
B:binomcdf
(use the down arrow).Let
trials
be \(n\text{.}\)Let
p
be \(p\)Let
x
value be \(k\text{.}\)Select
Paste
and hitENTER
.
TI-83: Do steps 1-2, then enter the values for \(n\text{,}\) \(p\text{,}\) and \(k\) separated by commas as follows: binomcdf(n,p,k)
. Then hit ENTER
.
Casio fx-9750GII: Binomial calculations
MISSINGVIDEOLINK
Navigate to
STAT
(MENU
, then hit2
).Select
DIST
(F5
), and thenBINM
(F5
).-
Choose whether to calculate the binomial distribution for a specific number of successes, \(P(X = k)\text{,}\) or for a range \(P(X \leq k)\) of values (0 successes, 1 success, ..., \(k\) successes).
For a specific number of successes, choose
Bpd
(F1
).To consider the range 0, 1, ..., \(k\) successes, choose
Bcd
(F1
).
If needed, set
Data
toVariable
(Var
option, which isF2
).Enter the value for
x
(\(k\)),Numtrial
(\(n\)), andp
(probability of a success).Hit
EXE
.
Guided Practice 3.3.12
Find the number of ways of arranging 3 blue marbles and 2 red marbles. 9 Use \(n\) = 5 and \(k\) = 3 to get 10.
Guided Practice 3.3.13
There are 13 marbles in a bag. 4 are blue and 9 are red. Randomly draw 5 marbles with replacement. Find the probability you get exactly 3 blue marbles. 10 Use \(n\) = 5, \(p\) = 4/13, and \(x\) (\(k\)) = 3 to get 0.1396.
Guided Practice 3.3.14
There are 13 marbles in a bag. 4 are blue and 9 are red. Randomly draw 5 marbles with replacement. Find the probability you get at most 3 blue marbles (i.e. less than or equal to 3 blue marbles). 11 Use \(n = 5\text{,}\) \(p = 4/13\text{,}\) and \(x = 3\) to get 0.9662.