Professional Documents
Culture Documents
Binomial Experiments
• Each trial of the experiment has two outcomes, which we can label as
“success” and “failure.” (These are also known as Bernoulli trials.)
• The experiment consists of a specified number of trials.
• The probability of success, p, is the same on each trial.
• The trials are independent (i.e. the outcome of one trial does not affect the
outcome of any other trial).
We can therefore ask the following four questions to determine if an experiment is a binomial
experiment.
1. Are there only two outcomes?
2. Is there a specified number of trials?
3. Is the probability of success, p, the same on each trial?
4. Are the events independent?
If the answer to any of the above four questions is no, then the experiment is not a binomial
experiment.
Solution:
A. Checking the requirements for a binomial experiment,
1. Yes, there are 2 outcomes:
“success” = rolling a 1 or a 2
“failure” = rolling a 3, 4, 5, or 6
2. Yes, the number of trials is specified, 10 in this case.
3. Yes, the probability of success is the same on each trial: p = 26 .
4. Yes, the trials are independent, since the outcome of one roll does not affect the
outcome of any other roll.
Since all four conditions are met, this is a binomial experiment.
B. Checking the requirements for a binomial experiment,
1. Yes, there are 2 outcomes: “success” = heads and “failure” = tails.
2. No, the number of trials is not specified, since we do not know how many times
the coin will be tossed until heads is obtained.
We could stop at this point and conclude that the experiment is not a binomial
experiment. The answers to the other two questions are shown below.
3. Yes, the probability of success is the same on each trial. The coin is fair, so
p = 12 .
4. Yes, the trials are independent, since the outcome of one coin toss does not affect
the outcome of any other coin tosses.
This is not a binomial experiment.
***
Example 2: An urn contains 4 green marbles, 3 black marbles, and 2 red marbles. Determine if
each of the experiments described below is a binomial experiment.
A. Three marbles are drawn in succession and without replacement from the urn, noting
each time whether or not the marble is green.
B. Five marbles are drawn in succession and with replacement from the urn, noting each
time whether or not the marble is red.
C. Five marbles are drawn in succession and with replacement from the urn, noting each
time whether the marble is green, black, or red.
Solution: We have created a chart to check each of the requirements for a binomial experiment.
P(Success)
Specified # of Events
2 Outcomes? same for
Trials? independent?
each trial?
A. No, the experiment is not a binomial experiment. Since the marbles are not replaced, the
probability of a green marble changes depending on which marble has already been
drawn.
B. Yes, the experiment is a binomial experiment. Notice that the marble is replaced after
each drawn. The events are therefore independent and the probability of success remains
the same.
C. No, the experiment is not a binomial experiment, since it has been designed with three
outcomes rather than two. (Notice that this experiment is nearly identical to part B, but
without a design which allows us to identify “success” and “failure”.)
***
We have already mentioned that we use the letter p to denote the probability of a successful
outcome. Let q represent an unsuccessful outcome. Since there are only two outcomes in a
binomial experiment, p + q = 1 .
Example 3: Suppose that the probability of success in an experiment is 0.64. What is the
probability of failure?
***
Suppose that a binomial experiment consists of 4 trials, where p is the probability of success on
each trial and q is the probability of failure on each trial. We want to find the probability of
exactly 2 successes or exactly 3 successes.
There are 2 4 = 16 outcomes in this experiment. A tree diagram is shown below to display the
sample space.
There are six outcomes that indicate exactly 2 successes; we will denote this as S2 :
S2 = {SSFF , SFSF , SFFS , FSSF , FSFS , FFSS}
We can find the probability of each outcome occurring, using p as the probability of success and
q as the probability of failure.
Note that the probability for each outcome with two successes is the same. Since each of the six
outcomes contains two successes and two failures (in various arrangements), each of the six
probabilities is p 2 q 2 .
There are four outcomes that indicate 3 successes; we will denote this as S3 :
S3 = {SSSF , SSFS , SFSS , FSSS }
We can again find the probability of each outcome occurring, using p as the probability of
success and q as the probability of failure. Then
Note that the probability for each outcome with three successes is the same. Since each of the
four outcomes contains three successes and one failure (in various arrangements), each of the
four probabilities is p 3 q .
For probabilities like the ones above, it can be quite tedious to list all of the outcomes, so we
need a way to simplify the computation.
Recall that the result for 2 successes can be given by P ( X = 2 ) = 6 p 2 q 2 and the result for 3
successes can be given by P ( X = 3) = 6 p3 q1 = 6 p3 q . Notice that the power of p in each result is
the same as the number of successes, and the power of q in each result is the same as the number
of failures. Moreover, the sum of the powers (the number of successes plus the number of
failures) is the same as the number of trials.
Finding the coefficient for P ( X = 2 ) and P ( X = 3) may be less apparent. That value is found
by computing 4 C 2 = 6 for two successes, and 4 C 3 = 4 for three successes.
P ( X = 2) = 4 C 2 ⋅ p 2q 2 P ( X = 3) = 4 C 3 ⋅ p 3 q
We can generalize this computation as follows, and apply it to any number of trials, any number
of successes, and any probability of success.
P ( X = r ) = n C r ⋅ p r q n−r
where
r = the number of successes
n = the number of trials
p = the probability of success
q = 1 − p = the probability of failure
n − r = the number of failures
X is a random variable representing the number of successes in the experiment
Example 4: Suppose that a binomial experiment consists of tossing a biased coin 6 times and
observing if the coin lands on heads or on tails. The probability that the coin lands on heads is
0.56. Find the probability that the coin lands on heads exactly 4 times.
Solution: Define success to mean the coin lands on heads. In this binomial experiment, the
number of trials, n, is 6.
The probability of success is p = 0.56 , which means that the probability of failure is
q = 1 − 0.56 = 0.44 .
4 6−4
P ( X = 4 ) = 6 C 4 ( 0.56 ) ( 0.44 )
4 2
= 6 C 4 ( 0.56 ) ( 0.44 )
= 0.2856.
The probability that the coin lands on heads exactly 4 times is 0.2856.
***
Example 5: An automotive service station finds that the probability that a car passes emissions
inspections is 0.81. Suppose that 12 cars are inspected. Find each of the following probabilities.
Solution: Define success to mean that a car passed the emission inspection. In this binomial
experiment, the number of trials, n, is 12. The probability of success is p = 0.81 , which means
that the probability of failure (that is, that the car did not pass emissions inspection) is
q = 1 − 0.81 = 0.19 . Random variable X represents the number of cars passing inspection.
B. We want to find the probability that at least 1 car did not pass inspection. If we restate
this in terms of failures, we want to find the probability that there is at least 1 failure.
The above computation would be quite tedious. It is much more efficient to use the
complement of the event that is described, find its probability and then subtract from 1.
The only outcome not included in “at least 1 failure” is the outcome “0 failures”.
Therefore,
We need to state this in terms of success rather than in terms of failures. If no cars failed
the inspection, then all 12 cars passed the inspection.
P ( at least 1 failure ) = 1 − P ( X = 12 )
= 1 − 0.0798
= 0.9202
The probability that at least 1 of the 12 cars did not pass inspection is 0.9202.
P ( X ≥ 10 ) = P ( X = 10 ) + P ( X = 11) + P ( X = 12 )
10 2 11 1 12 0
= 12 C 10 ( 0.81) ( 0.19 ) + 12 C 11 ( 0.81) ( 0.19 ) + 12 C 12 ( 0.81) ( 0.19 )
≈ 0.2897 + 0.2245 + 0.0798
≈ 0.5940
Then
P ( X ≤ 10 ) = 1 − P ( X > 10 )
= 1 − P ( X = 11) + P ( X = 12 )
P ( X ≤ 10 ) = 1 − P ( X = 11) + P ( X = 12 )
= 1 − 12 C 11 ( 0.81)
11 1 12 0
( 0.19 ) + 12 C 12 ( 0.81) ( 0.19 )
≈ 1 − [0.2245 + 0.0798]
≈ 1 − 0.3043
≈ 0.6957
***
Example 6: A company ships its products in packages of 25 units. Past history shows that, on
average, 2 items in each package are defective. Find the probability of each event.
Solution: In any binomial experiment, we can choose which of the two outcomes we define as
“success” and which outcome we define as “failure”. Most of the above questions allude to the
number of items that are defective, rather than the number of items that are good. We therefore
define “success” to be that an item is defective. “Failure” then means that an item is not defective
(which means that it is good).
2
If 2 out of 25 items are defective, then p = 25 = 0.08 (the probability that an item is defective).
D. If at least 22 of the items are good, then at most 3 of the items are defective. We want to
find P ( X ≤ 3) . It is easiest to compute this directly, as shown below. (The complement
would require many more computations.)
1 24
P ( X = 1) = 25 C 1 ( 0.08 ) ( 0.92 ) ≈ 0.2704
2 23
P ( X = 2 ) = 25 C 2 ( 0.08 ) ( 0.92 ) ≈ 0.2821
So
P ( X ≤ 3) = P ( X = 0 ) + P ( X = 1) + P ( X = 2 ) + P ( X = 3)
≈ 0.1244 + 0.2704 + 0.2821 + 0.1881
≈ 0.8650
Note: If we had entered all computations in the calculator at the same time and then
rounded the final answer (rather than rounding them separately and then adding them
together), we would have obtained a slightly more accurate answer of 0.8649.
P ( X ≥ 3) = P ( X = 3) + P ( X = 4 ) + ... + P ( X = 24 ) + P ( X = 25 ) .
P ( X ≥ 3) = 1 − P ( X < 3)
= 1 − P ( X = 0 ) + P ( X = 1) + P ( X = 2 )
We found all of needed values in earlier parts of this example. Substituting and
evaluating,
1 − P ( X < 3) = 1 − P ( X = 0 ) + P ( X = 1) + P ( X = 2 )
≈ 1 − [ 0.1244 + 0.2704 + 0.2821]
≈ 1 − 0.6769
≈ 0.3231
***
Mean: µ = E ( x ) = np
Variance: σ 2 = Var ( X ) = npq
Standard Deviation: σ = Var ( X ) = npq
Example 7: Suppose that a binomial experiment consists of tossing a biased coin 6 times and
observing if the coin lands on heads or on tails. The probability that the coin lands on heads is
0.56. Find the mean, variance and standard deviation of this binomial experiment.
µ = E ( x ) = np = 6 ( 0.56 ) = 3.36
σ 2 = Var ( X ) = npq = 6 ( 0.56 )( 0.44 ) = 1.4784
σ = Var ( X ) = npq = 6 ( 0.56 )( 0.44 ) = 1.4784 ≈ 1.2159
The mean is 3.36, the variance is 1.4784 and the standard deviation is 1.2159.
***
Example 8: An automotive service station finds that the probability that a car passes emissions
inspections is 0.81. Suppose that 12 cars are inspected. Find the mean, variance and standard
deviation of this binomial experiment.
µ = E ( x ) = np = 12 ( 0.81) = 9.72
σ 2 = Var ( X ) = npq = 12 ( 0.81)( 0.19 ) = 1.8468
σ = Var ( X ) = npq = 12 ( 0.81)( 0.19 ) = 1.8468 ≈ 1.3590
The mean is 9.72, the variance is 1.8468 and the standard deviation is 1.3590.
***
488 University of Houston Department of Mathematics