Section 6.1 was about random variables in general. This one is about a particular random variable: the one that counts how many successes you get in a fixed number of tries.
Your favorite restaurant is giving away a coupon with every meal purchase. Twenty percent of the coupons entitle you to a free milkshake; the rest say “better luck next time.”
Ten of you order lunch. What is the probability that exactly three of you win a free milkshake?
This is not straightforward: the answer depends on the number of ways to get three winners from ten.
If we let be the number of winners out of ten, then follows what's called the binomial distribution, one of the most useful probability distributions.

In this example, each coupon examined is a “trial,” so there are 10 trials. A coupon good for a free milkshake is a “success.” The random variable represents the number of successes in 10 trials. The word success does not necessarily refer to a desirable outcome.
A random variable that counts successes in a series of trials has a binomial distribution if:
The number of trials is fixed.
Each trial has two possible outcomes: “success” or “failure.”
The probability of success is the same on each trial.
The trials are independent. The outcome of one trial does not affect the others.
The number of trials is denoted by . The probability of success is denoted by , and the probability of failure is .

ExampleDetermine whether is a binomial random variable:
A quiz has 8 true/false questions. A student guesses randomly on each one. Let be the number answered correctly.
This is a binomial random variable. Each question is a trial with two outcomes, the probability of success is 0.5 for each, and the trials are independent.

ExampleDetermine whether is a binomial random variable:
Five basketball players each attempt a free throw. Let be the number made.
This is not a binomial random variable. The probability of success differs from player to player.

ExampleDetermine whether is a binomial random variable:
A bowl contains 10 notes: 5 for indoor activities, 5 for outdoor. A team draws three notes without replacement. Let be the number of outdoor activities drawn.
This is not a binomial random variable. The trials are not independent.
When a simple random sample comprises less than 5% of the population, we will consider the sampled individuals to be independent.

Check your understanding
a) About 52% of never-married U.S. adults have used a dating app or site. A simple random sample of 20 never-married adults is selected. = number who have used one.
Binomial. The number of trials is fixed at 20, each adult has used one or not, the probability of success is 0.52 for each, and since the sample is less than 5% of the population, the trials are independent.

b) You open TikToks until you find one you like. = number opened.
Not binomial. The number of trials is not fixed: you keep going until you find one you like.

c) Five friends each play a different Wordle puzzle. = number who solve it.
Not binomial. The probability of success differs from puzzle to puzzle.
A biased coin has probability 0.6 of coming up heads. The coin is tossed three times. Let be the number of heads that come up. Find , the probability that exactly two of the tosses are heads.
Since is the number of heads, coming up heads is a success. Then is binomial, with trials and success probability .
There are three arrangements of two heads in three tosses: HHT, HTH, and THH. Each has probability .
The tosses are independent, so we multiply: the Multiplication Rule for Independent Events.
The three arrangements are mutually exclusive, so we add: the Addition Rule for Mutually Exclusive Events.
3 is the number of arrangements of two successes (heads) and one failure (tails). In general, it is the number of ways of arranging successes among trials.
0.6 is the success probability, which in general is . The exponent 2 is the number of successes, which in general is .
0.4 is the failure probability, which is , and the exponent 1 is the number of failures, which is .
where is the number of ways of arranging successes among trials. The possible values of are .
InteractiveThe shape of the binomial distribution depends on both and .
When is small, the probabilities pile up on the left: the distribution is skewed to the right.
When is large, they pile up on the right: skewed to the left.
As grows, for many values of the shape starts to look bell-shaped.
The binomial probability distribution can require tedious calculations. While we can compute simple probabilities by hand, for more involved problems it is better to use technology.
The Binomial tool computes binomial probabilities. Enter the number of trials , the success probability , choose the form of the probability to find, and enter .
https://barrymonk.com/stats-calculator/
Two commands compute binomial probabilities: binompdf and binomcdf. Both are on the DISTR menu (2nd → VARS).
Use binompdf to find the probability that equals a specific value. Use binomcdf to find the probability that is less than or equal to a specific value. The c stands for cumulative.

ExampleTen of you order lunch, and 20% of the coupons win a free milkshake. What is the probability that exactly three of you win a free milkshake?
Each lunch is a trial and a winning coupon is a success, so and . We want exactly three, .
Choose with .


The probability that exactly three of the ten win a free milkshake is approximately 0.201.
ExampleApproximately 30% of people use the image sharing website Pinterest. A simple random sample of 15 people is taken. Use the binomial probability distribution to find the following probabilities.
Find the probability that exactly four of the sampled people use Pinterest.
Find the probability that fewer than three of the people use Pinterest.
Find the probability that more than one person uses Pinterest.
Find the probability that the number of people who use Pinterest is between 1 and 4, inclusive.
We use the binomial probability distribution with and .

Example
(a) Find the probability that exactly four of the sampled people use Pinterest.
We want exactly four: .
Choose with .


The probability that exactly four people use Pinterest is approximately 0.219.
Example
(b) Find the probability that fewer than three of the people use Pinterest.
The possible numbers of people that are fewer than three are 0, 1, and 2. So “fewer than three” is .
Choose with .


Entering 3 would give , which is wrong here.
The probability that fewer than three people use Pinterest is approximately 0.127.
Example
(c) Find the probability that more than one person uses Pinterest.
The complement of “more than 1” is “1 or fewer,” so .
The calculator finds it directly: choose with .


The probability that more than one person uses Pinterest is approximately 0.965.
Example
(d) Find the probability that the number of people who use Pinterest is between 1 and 4, inclusive.
Between 1 and 4 inclusive means 1, 2, 3, or 4. So .
Choose Between and with and .


The probability that between 1 and 4 people, inclusive, use Pinterest is approximately 0.511.
Check your understandingAn environmentalist plants three types of trees, each with probability 0.4 of adapting to the local climate.
Find the probability that none of these successfully adapt to the environment.
:
Find the probability that at least two of the trees adapt to the local climate.

Check your understandingA 2017 government investigation found that airport screeners failed to detect prohibited items approximately 80% of the time. If someone attempts to sneak 3 prohibited items through security, find the probability that at least one is caught.
Let a success be an item that is caught: , .

Let be a binomial random variable with trials and success probability .
If we toss a fair coin 10 times, we expect to get 5 heads, on the average: .
In Section 6.1, the mean was .

ExampleThe probability that a new car of a certain model will require repairs during the warranty period is 0.15. A dealership sells 80 such cars. Let be the number that will require repairs during the warranty period.
Find the mean and standard deviation of .
There are trials, with success probability . The mean is .
The standard deviation is
In the long run, 12 out of every 80 cars will require repairs.
The standard deviation measures the spread in the number of cars requiring repairs.

Check your understandingGregor Mendel studied heredity in pea plants. When parent plants carry genes for both green and yellow pods, offspring have a 0.75 probability of green pods. Assume 80 such plants are produced.
Find the mean number of plants with green pods.
. In the long run, 60 out of every 80 plants have green pods.
Find the standard deviation.

Case studyImagine that you work in the advertising department of a fast-growing social media tech firm. Your team has been tasked with an ad campaign with a budget of $10,000.
Each ad costs $100. A better ad costs more to make: the creative team on it, research into what this audience responds to, a stronger image. That work raises the chance somebody buys. Increasing the probability of a sale by 1% (or 0.01) costs $500.

More ads, or better ads? Which way of spending the $10,000 brings the most sales?
Here are three ways to spend all of it.
| Plan | Ads, | Sale probability, | Spent on ads | Spent on sale probability | Total |
|---|---|---|---|---|---|
| Reach | 90 | 0.02 | $9,000 | $1,000 | $10,000 |
| Balance | 50 | 0.10 | $5,000 | $5,000 | $10,000 |
| Premium | 25 | 0.15 | $2,500 | $7,500 | $10,000 |
Case studyEach ad is one trial and a sale is a success. The number of trials is fixed at , each ad has the same probability of a sale, , and the ads are independent. So for each plan, the number of sales is binomial.
Reach:
Balance:
Premium:
Balance gives the most expected sales.
Premium buys the best ads and still comes out behind, because every dollar spent on sale probability is a dollar not spent on ads.
Expected sales for every split of the budget
Case studyThe Balance plan expects 5.00 sales. No single campaign makes exactly 5.00 sales. What does the number mean?
In the long run, the average number of sales per campaign is 5.00.
Early on, with only a handful of campaigns, the average swings around a good deal. As the number of campaigns grows, it settles down onto the mean.