5.4 Binomial Distribution
The binomial distribution is a discrete probability distribution used to find the probability of success when there are two outcomes to each trial, and there are a set number of independent trials with the same probability of occurrence. To develop the process for calculating the probabilities in a binomial experiment, consider the following example.
First, the random variable in a binomial experiment is x = number of successes.
A binomial probability distribution results from a random experiment that meets all of the following requirements.
- The procedure has a fixed number of trials (or steps), which is denoted by n.
- The trials must be independent.
- Each trial must have exactly two categories that can be labeled “success” and “failure.”
- The probability of a “success,” denoted by p, remains the same in all trials. The probability of “failure” is often denoted by q, thus q = 1 – p.
- Random Variable, X, counts the number of “successes.”
If a random experiment satisfies all of the above, the distribution of the random variable X, where X counts the number of successes, is called a binomial distribution. A binomial distribution is described by the population proportion p and the sample size n. If a discrete random variable X has a binomial distribution with population proportion p and sample size n, we write X ~ B(n, p).
Be careful, a “success” is not always a “good” thing. Sometimes a success is something that is “bad,” like finding a defect or getting in a car crash. The success will be the event from the probability question.
The geometric and binomial distributions are easy to mix up. Keep in mind that the binomial distribution has a given sample size, whereas the geometric is sampling until you get a success.
Excel Formula for Binomial Distribution: For exactly P(X = x) use =binom.dist(x,n,p,false).
For P(X ≤ x) use =binom.dist(x,n,p,true).
TI-84: Press [2nd] [DISTR]. This will get you a menu of probability distributions. Press 0 or arrow down to 0:binompdf( and press [ENTER]. This puts binompdf( on the home screen. Enter the values for n, p and x with a comma between each. Press [ENTER]. This is the probability density function and will return you the probability of exactly x successes. If you leave off the x value and just enter n and p, you will get all the probabilities for each x from 0 to n. Press [ALPHA] A or arrow down to A:binomcdf( and press [ENTER]. This puts binomcdf( on the home screen. Enter the values for n, p and x with a comma between each. If you have the newer operating system on the TI84, the screen will prompt you for each value. Press [ENTER]. This is the cumulative distribution function and will return you the probability of at most (≤) x successes. If you have at least x success (≥), use the complement rule. If you have < or > adjust x to get ≤ or ≥.
TI-89: Go to the [Apps] Stat/List Editor, then select F5 [DISTR]. This will get you a menu of probability distributions. Arrow down to binomial Pdf and press [ENTER]. Enter the values for n, p and x into each cell. Press [ENTER]. This is the probability density function and will return you the probability of exactly x successes. If you leave off the x value and just enter n and p, you will get all the probabilities for each x from 0 to n. Arrow down to binomial Cdf and press [ENTER]. Enter the values for n, p and lower and upper value of x into each cell. Press [ENTER]. This is the cumulative distribution function and will return you the probability between the lower and upper x-values, inclusive.
As you read through a problem look for some of the following key phrases in Figure 5-6. Once you find the phrase then match up to what sign you would use and then use the table to walk you through the computer or calculator formula. The same idea about signs applies to all the discrete probabilities that follow.

Figure 5-6
So far, most of the examples for the binomial distribution were for exactly x successes. If we want to find the probability of accumulation of x values then we would use the cumulative distribution function (cdf) instead of the pdf. Phrases such as “at least,” “more than,” or “below” can drastically change the probability answers.
Example 5
Approximately 10.3% of American high school students drop out of school before graduation. Choose 10 students entering high school at random. Find the following probabilities.
Try it in XYZ Crunch
Watch the answer change when you switch the success
Part (a) counts dropouts (p = 0.103) and part (b) counts graduates (p = 0.897) - the same ten students, two different p values, exactly as the book warns. Each link opens pre-computed; parts (b) and (c) then need the complement rule, 1 - P(X <= k), because the panel only reports cumulative probability. Flip p between 0.103 and 0.897 on one link to see the distribution mirror itself.
a) No more than two drop out.
b) At least 6 students graduate.
c) Exactly 10 stay in school and graduate.
Show solution
a) There is a set sample size of independent trials. The person either has or has not dropped out of school before graduation. A “success” is what we are finding the probability for, so in this case a success is to drop out so p = 0.103 and q = 1 – 0.103 = 0.897.
P(X ≤ 2) = P(X = 0) + P(X = 1) + P(X = 2) = 10C0 · 0.1030 · 0.89710 + 10C1 · 0.1031 ·0.8979 + 10C2 · 0.1032 · 0.8978 = 0.3372 + 0.3872 + 0.2001 = 0.9245
Calculator shortcut use binompdf(10,0.103,0) + binompdf(10,0.103,1) + binompdf(10,0.103,2) = 0.9245 or the binomcdf(10,0.103,2) = 0.9245. On the TI-89 cdf enter the lower value of x as 0 and upper value of x as 2.
In Excel use the function =BINOM.DIST(2,10,0.103,TRUE). Note that if you choose False under cumulative this would return just the P(X = 2) not P(X ≤ 2).
b) A success is to graduate so p = 0.897 and q = 0.103.
P(X ≥ 6) = P(X = 6) + P(X = 7) + P(X = 8) + P(X = 9) + P(X = 10) = 10C6 · 0.8976 · 0.1034 + 10C7 · 0.8977 · 0.1033 + 10C8 · 0.8978 · 0.1032 + 10C9 · 0.8979 · 0.1031 + 10C10 · 0.89710 · 0.1030 = 0.0123 + 0.0613 + 0.2001 + 0.3872 + 0.3372 = 0.9981.
This is a lot of work to do each one so we can use technology to find the answer.
Note that Excel and the older TI-84 programs only find the probability below x so you have to use the complement rule.
For the TI-84 calculator shortcut use binompdf(10,0.897,6) + binompdf(10,0.897,7) + binompdf(10,0.897,8) + binompdf(10,0.897,9) + binompdf(10,0.897,10) = 0.9981 or use the complement rule P(X ≥ 6) = 1– P(X≤5) = 1–binomcdf(10,0.897,5) = 0.9981.
On the TI-89, just use the binomcdf with the lower x value as 6 and the upper x value as 10.
In Excel use =1–BINOM.DIST(5,10,0.897,TRUE).
c) A success is to graduate so p = 0.897 and q = 0.103. Find P(X = 10) = 10C10 · 0.89710 · 0.1030 = 0.3372.
On the TI-84 use binompdf(10,0.897,10) = 0.3372.
In Excel =BINOM.DIST(10,10,0.897,FALSE) = 0.3372.
Example 6
When looking at a person’s eye color, it turns out that only 2% of people in the world have green eyes (not to be confused with hazel colored eyes). Consider a randomly selected group of 20 people.
a) Compute the probability that at most 3 have green eyes.
Try it in XYZ Crunch
All four phrasings from two cumulative reads
Figure 5-6's phrase table collapses to this: with n = 20 and p = 0.02, "at most 3" is P(X <= 3) = 0.9994 and "more than 3" is its complement 0.0006; "less than 3" is P(X <= 2) = 0.9929 and "at least 3" is its complement 0.0071. Open both links, then change k by one and re-read all four answers to feel how much the wording moves.
b) Compute the probability that less than 3 have green eyes.
c) Compute the probability that more than 3 have green eyes.
d) Compute the probability that 3 or more have green eyes.
Show solution
a) This fits a binomial experiment. P(X ≤ 3) = P(X = 0) + P(X = 1) + P(X = 2) + P(X = 3) = 20C0 · 0.020 · 0.8020 + 20C1 · 0.021 · 0.8019 + 20C2 · 0.022 · 0.8018 + 20C3 · 0.023 · 0.8017 = 0.667608 + 0.272493 + 0.05283 + 0.006469 = 0.9994.
On the TI-84 use binomcdf(20,0.02,3) = 0.9994.
In Excel =BINOM.DIST(3,20,0.02,true) = 0.9994.
b) P(X < 3) = P(X = 0) + P(X = 1) + P(X = 2) = 0.667608 + 0.272493 + 0.05283 = 0.9929.
On the TI-84 use binomcdf(20,0.02,2) = 0.9929.
In Excel =BINOM.DIST(2,20,0.02,true) = 0.9929.
c) P(X > 3) = 1 – P(X ≤ 3) = 1 – 0.9994 = 0.0006.
On the TI-84 use 1-binomcdf(20,0.02,3) = 0.0006.
In Excel =1-BINOM.DIST(3,20,0.02,true) = 0.0006.
d) P(X ≥ 3) = 1 – P(X ≤ 2) = 1 – 0.9929 = 0.0071
On the TI-84 use 1-binomcdf(20,0.02,2) = 0.0071.
In Excel =1-BINOM.DIST(2,20,0.02,true) = 0.0071.
Example 7
As of 2018, the Centers for Disease Control and Prevention (CDC) reported that about 1 in 88 children in the United States have been diagnosed with autism spectrum disorder (ASD). A researcher randomly selects 10 children. Compute the probability that at least 2 children have been diagnosed with ASD.
Show solution
On the TI-84 use 1-binomcdf(10,1/88,1) = 0.0055.
In Excel =1-BINOM.DIST(1,10,1/88,true) = 0.0055.
Mean, Variance & Standard Deviation of a Binomial Distribution
If you list all possible values of x in a Binomial distribution, you get the Binomial Probability Distribution (pdf). You can then find the mean, the variance, and the standard deviation using the general formulas μ = Σ(xi ∙ P(xi)) and σ2 = ∑(xi2 ∙P(xi)) – μ2. This, however, would take a lot of work if you had a large value for n. If you know the type of distribution, like binomial, then you can find the mean, variance and standard deviation using easier formulas. They are derived from the general formulas. For a Binomial distribution, μ, the expected number of successes, σ2, the variance, and σ, the standard deviation for the number of success are given by the formulas, where p is the probability of success and q = 1 – p.
Definition
Example 8
A random experiment consists of flipping a coin three times. Let X = the number of heads that show up. Compute the mean and standard deviation of X, that is, the mean and standard deviation for the number of heads that show up when a coin is flipped three times.
Show solution
This experiment follows a binomial distribution; hence, we can use the mean and standard deviation formulas for a binomial. The mean of number of heads is µ = 3·0.5 = 1.5. The standard deviation of X is
Example 9
When looking at a person’s eye color, it turns out that only 2% of people in the world have green eyes (not to be confused with hazel colored eyes). Consider a randomly selected group of 20 people. Compute the mean, variance and standard deviation.
Show solution
Since this is a binomial experiment, then you can use the formula μ = n ∙ p. So μ = 20 · 0.02 = 0.4 people. You would expect on average that out of 20 people, less than 1 would have green eyes. The variance would be σ2 = n ∙ p ∙ q = 20(0.02)(0.98) = 0.392 people2. Once you have the variance, you just take the square root of the variance to find the standard deviation σ = = 0.6261 people. We would expect on average spread of the distribution to have 0.4 0.6261 or 0 to 1 person out of 20 people to have green eyes.
Example 10
Adapted from Mostly Harmless Statistics by Rachel Webb (Portland State University), hosted on LibreTexts (stats.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.