The Binomial Distribution
The pattern of successes in repeated trials
Think about flipping a coin 10 times. How likely are you to get exactly 6 heads? What about at least 8 heads? Or consider a basketball player who makes 75% of her free throws. If she takes 12 free throws in a game, what is the probability she makes exactly 9? What is her expected number of makes?
These questions all share something in common: they involve repeated trials where each trial has two possible outcomes (heads or tails, make or miss, success or failure), and we want to know how many successes to expect. This pattern shows up constantly in real life - from quality control in manufacturing to medical trials, from survey responses to games of chance.
The binomial distribution gives us a complete framework for answering these questions. Once you learn to recognize when a situation fits the binomial setting and how to apply the formula, you will have a powerful tool for analyzing success and failure in repeated trials.
Core Concepts
The Binomial Setting: When Does Binomial Apply?
Not every situation involving repeated trials follows a binomial distribution. For the binomial distribution to apply, four specific conditions must be met. These conditions form the binomial setting, sometimes remembered by the acronym BINS:
B - Binary outcomes: Each trial has exactly two possible outcomes. We call one outcome “success” and the other “failure.” These labels are arbitrary - “success” just means the outcome we are counting.
I - Independent trials: The outcome of one trial does not affect the outcome of any other trial. Knowing what happened on flip 1 tells you nothing about what will happen on flip 2.
N - Number of trials is fixed: You decide in advance how many trials you will perform. The number of trials, called $n$, is set before you begin.
S - Same probability: The probability of success, called $p$, remains constant from trial to trial. The first flip has the same 50% chance of heads as the tenth flip.
If all four conditions are satisfied, you are in a binomial setting, and the binomial distribution applies.
Example of a binomial setting: Flip a fair coin 20 times and count the number of heads.
- Binary: Each flip results in heads (success) or tails (failure). ✓
- Independent: Each flip is independent of the others. ✓
- Number fixed: We decided in advance to flip 20 times. ✓
- Same probability: $P(\text{heads}) = 0.5$ for every flip. ✓
Example that is NOT binomial: Draw 5 cards from a standard deck without replacement and count the number of hearts.
- Binary: Each card is either a heart or not. ✓
- Independent: No! After drawing a heart, fewer hearts remain, changing the probability for the next draw.
- The trials are not independent, so this is not binomial.
The Binomial Random Variable
When you are in a binomial setting, the count of successes is called a binomial random variable. We use the notation:
$$X \sim B(n, p)$$
This is read as “$X$ follows a binomial distribution with parameters $n$ and $p$,” or simply “$X$ is binomial with $n$ trials and success probability $p$.”
For example, if you flip a fair coin 10 times and let $X$ = number of heads:
$$X \sim B(10, 0.5)$$
The possible values of $X$ are 0, 1, 2, 3, …, up to $n$. You could get anywhere from zero successes (none of the trials succeed) to $n$ successes (every trial succeeds).
The Binomial Coefficient: Counting Arrangements
Before we can write the binomial probability formula, we need to understand how to count the number of ways to arrange successes among trials. This is where the binomial coefficient comes in.
The binomial coefficient $\binom{n}{k}$ (read as “$n$ choose $k$”) counts the number of ways to choose $k$ items from $n$ items, where order does not matter. In our context, it counts the number of ways to arrange $k$ successes among $n$ trials.
The formula is:
$$\binom{n}{k} = \frac{n!}{k!(n-k)!}$$
where $n!$ (read “$n$ factorial”) means $n \times (n-1) \times (n-2) \times \cdots \times 2 \times 1$.
Example: How many ways can you get exactly 2 heads in 5 coin flips?
$$\binom{5}{2} = \frac{5!}{2!(5-2)!} = \frac{5!}{2! \cdot 3!} = \frac{5 \times 4 \times 3 \times 2 \times 1}{(2 \times 1)(3 \times 2 \times 1)} = \frac{120}{2 \times 6} = \frac{120}{12} = 10$$
There are 10 different sequences of 5 flips that contain exactly 2 heads: HHTTT, HTHTT, HTTHT, HTTTH, THHTT, THTHT, THTTH, TTHHT, TTHTH, TTTHH
The Binomial Probability Formula
Now we can state the formula for calculating binomial probabilities. If $X \sim B(n, p)$, then the probability of getting exactly $k$ successes is:
$$P(X = k) = \binom{n}{k} p^k (1-p)^{n-k}$$
Let’s understand what each part means:
- $\binom{n}{k}$ counts the number of ways to arrange $k$ successes among $n$ trials
- $p^k$ is the probability of $k$ successes (each with probability $p$)
- $(1-p)^{n-k}$ is the probability of the remaining $(n-k)$ failures (each with probability $1-p$)
The formula multiplies the number of arrangements by the probability of each arrangement. Since each arrangement has the same probability, this gives us the total probability.
Example: What is the probability of getting exactly 3 heads in 5 flips of a fair coin?
Here $n = 5$, $k = 3$, and $p = 0.5$.
$$P(X = 3) = \binom{5}{3} (0.5)^3 (0.5)^{5-3}$$
$$= \binom{5}{3} (0.5)^3 (0.5)^2$$
First, calculate the binomial coefficient: $$\binom{5}{3} = \frac{5!}{3! \cdot 2!} = \frac{120}{6 \times 2} = 10$$
Then: $$P(X = 3) = 10 \times (0.5)^3 \times (0.5)^2 = 10 \times 0.125 \times 0.25 = 10 \times 0.03125 = 0.3125$$
There is a 31.25% chance of getting exactly 3 heads in 5 flips.
Mean and Standard Deviation of a Binomial Distribution
One of the beautiful things about the binomial distribution is that the mean (expected value) and standard deviation have simple formulas.
Mean (Expected Value): $$\mu = E(X) = np$$
Standard Deviation: $$\sigma = \sqrt{np(1-p)}$$
These formulas make intuitive sense. If you flip a fair coin ($p = 0.5$) 100 times, you would expect about $np = 100 \times 0.5 = 50$ heads on average. The standard deviation tells you how much the actual count typically varies from this expectation.
Example: A basketball player makes 80% of her free throws. In a game where she attempts 25 free throws:
$$\mu = np = 25 \times 0.8 = 20$$
$$\sigma = \sqrt{np(1-p)} = \sqrt{25 \times 0.8 \times 0.2} = \sqrt{4} = 2$$
On average, she makes 20 free throws, with a standard deviation of 2. Most games, she will make somewhere between 18 and 22 free throws (within one standard deviation of the mean).
“At Least” and “At Most” Problems
Often we want to find the probability of getting at least a certain number of successes, or at most a certain number. These problems require adding up multiple binomial probabilities.
$P(X \geq k)$ means “at least $k$ successes”: Add up the probabilities for $k$, $k+1$, $k+2$, …, up to $n$.
$P(X \leq k)$ means “at most $k$ successes”: Add up the probabilities for 0, 1, 2, …, up to $k$.
The complement rule is often easier. Instead of adding many probabilities, use:
$$P(X \geq k) = 1 - P(X \leq k-1) = 1 - P(X < k)$$
$$P(X \leq k) = 1 - P(X \geq k+1) = 1 - P(X > k)$$
Example: In 10 coin flips, what is the probability of getting at least 8 heads?
We need $P(X \geq 8) = P(X = 8) + P(X = 9) + P(X = 10)$.
$$P(X = 8) = \binom{10}{8}(0.5)^8(0.5)^2 = 45 \times 0.5^{10} = 45 \times \frac{1}{1024} \approx 0.0439$$
$$P(X = 9) = \binom{10}{9}(0.5)^9(0.5)^1 = 10 \times 0.5^{10} = 10 \times \frac{1}{1024} \approx 0.0098$$
$$P(X = 10) = \binom{10}{10}(0.5)^{10}(0.5)^0 = 1 \times 0.5^{10} = \frac{1}{1024} \approx 0.00098$$
$$P(X \geq 8) \approx 0.0439 + 0.0098 + 0.00098 = 0.0547$$
There is about a 5.5% chance of getting 8 or more heads in 10 flips.
Using Technology for Binomial Calculations
While the binomial formula is not difficult, the calculations can become tedious for large values of $n$. Most calculators and software have built-in binomial functions.
Calculator notation (varies by model):
binompdf(n, p, k)gives $P(X = k)$ (the probability of exactly $k$ successes)binomcdf(n, p, k)gives $P(X \leq k)$ (the cumulative probability up to and including $k$)
Using the cumulative function for different probability types:
- $P(X = k)$: Use
binompdf(n, p, k) - $P(X \leq k)$: Use
binomcdf(n, p, k) - $P(X < k)$: Use
binomcdf(n, p, k-1) - $P(X \geq k)$: Use
1 - binomcdf(n, p, k-1) - $P(X > k)$: Use
1 - binomcdf(n, p, k)
Example with technology: Find $P(X \geq 8)$ when $X \sim B(10, 0.5)$.
Using the complement: $P(X \geq 8) = 1 - P(X \leq 7) = 1 - \text{binomcdf}(10, 0.5, 7)$
On a TI calculator: 1 - binomcdf(10, 0.5, 7) $\approx 0.0547$
This matches our hand calculation and takes only seconds.
When Binomial Does NOT Apply
It is just as important to recognize when the binomial distribution does NOT apply. Here are common situations that look like they might be binomial but are not:
Sampling without replacement from a small population: If you draw cards from a deck without replacing them, the probabilities change with each draw. However, if the population is very large compared to the sample (at least 20 times larger), the changing probabilities are negligible and binomial is a good approximation.
Number of trials not fixed: If you keep flipping until you get 3 heads, the number of trials is random, not fixed. This requires a different distribution (the negative binomial).
More than two outcomes: If you roll a die and care about getting a 1, 2, or 3+ (three categories), that is not binomial. Binomial requires exactly two outcomes per trial.
Changing probabilities: If the probability of success changes from trial to trial (like a shooter getting tired or a machine wearing out), the binomial distribution does not apply.
Notation and Terminology
| Term | Meaning | Example |
|---|---|---|
| Binomial setting | $n$ independent trials, probability $p$ of success | Flipping a coin 10 times |
| $n$ | Number of trials | 10 coin flips |
| $p$ | Probability of success on each trial | 0.5 for a fair coin |
| $k$ | Number of successes | Getting 6 heads |
| $X \sim B(n,p)$ | $X$ follows binomial distribution | $X \sim B(10, 0.5)$ |
| $\binom{n}{k}$ | Binomial coefficient, “$n$ choose $k$” | $\binom{10}{6} = 210$ |
| binompdf | Probability of exactly $k$ successes | $P(X = k)$ |
| binomcdf | Cumulative probability up to $k$ | $P(X \leq k)$ |
Examples
Determine whether each scenario describes a binomial setting. If not, explain which condition fails.
a) A company tests 50 computer chips and records whether each is defective or working.
b) You draw 10 cards from a deck without replacement and count the number of spades.
c) A basketball player shoots free throws until she misses, counting the number of makes.
d) A survey asks 200 randomly selected adults whether they support a policy (yes/no).
Solution:
a) This IS a binomial setting. ✓
- Binary: Each chip is defective or working. ✓
- Independent: One chip’s status does not affect another’s. ✓
- Number fixed: Testing exactly 50 chips. ✓
- Same probability: Each chip has the same defect rate. ✓
b) This is NOT a binomial setting. ✗
- Binary: Each card is a spade or not. ✓
- Independent: No! Without replacement, probabilities change. After drawing a spade, there are fewer spades left, so the probability of the next card being a spade decreases.
- The independence condition fails.
(Note: If the deck were very large or we used replacement, this would be binomial.)
c) This is NOT a binomial setting. ✗
- Binary: Each shot is a make or miss. ✓
- Independent: Assuming each shot is independent. ✓
- Number fixed: No! She shoots until she misses, so the number of trials is random.
- The fixed number condition fails.
d) This IS a binomial setting. ✓
- Binary: Each person says yes or no. ✓
- Independent: With random selection from a large population, responses are essentially independent. ✓
- Number fixed: Surveying exactly 200 adults. ✓
- Same probability: Each adult has the same chance of supporting the policy. ✓
A multiple choice quiz has 8 questions, each with 4 options. A student who guesses randomly has a 1/4 = 0.25 probability of getting each question correct. What is the probability the student gets exactly 5 questions correct by guessing?
Solution:
Step 1: Verify this is binomial.
- Binary: Each question is correct or incorrect. ✓
- Independent: Guessing on one question does not affect others. ✓
- Number fixed: $n = 8$ questions. ✓
- Same probability: $p = 0.25$ for each question. ✓
So $X \sim B(8, 0.25)$, and we want $P(X = 5)$.
Step 2: Apply the binomial formula.
$$P(X = 5) = \binom{8}{5}(0.25)^5(0.75)^{8-5}$$
Step 3: Calculate the binomial coefficient.
$$\binom{8}{5} = \frac{8!}{5! \cdot 3!} = \frac{8 \times 7 \times 6}{3 \times 2 \times 1} = \frac{336}{6} = 56$$
Step 4: Complete the calculation.
$$P(X = 5) = 56 \times (0.25)^5 \times (0.75)^3$$ $$= 56 \times 0.0009765625 \times 0.421875$$ $$= 56 \times 0.000412$$ $$\approx 0.0231$$
The probability of guessing exactly 5 correct is about 2.3%.
This makes sense - getting 5 out of 8 correct by pure guessing would be quite lucky!
A quality control inspector tests 15 items from a production line. Historically, 10% of items are defective. What is the probability that at least 3 items are defective?
Solution:
Step 1: Set up the problem. Let $X$ = number of defective items. $X \sim B(15, 0.10)$
We want $P(X \geq 3)$.
Step 2: Use the complement rule.
Instead of calculating $P(X = 3) + P(X = 4) + \cdots + P(X = 15)$ (13 terms!), we use:
$$P(X \geq 3) = 1 - P(X \leq 2) = 1 - [P(X = 0) + P(X = 1) + P(X = 2)]$$
Step 3: Calculate each probability.
$$P(X = 0) = \binom{15}{0}(0.10)^0(0.90)^{15} = 1 \times 1 \times 0.90^{15} \approx 0.2059$$
$$P(X = 1) = \binom{15}{1}(0.10)^1(0.90)^{14} = 15 \times 0.10 \times 0.90^{14} \approx 0.3432$$
$$P(X = 2) = \binom{15}{2}(0.10)^2(0.90)^{13} = 105 \times 0.01 \times 0.90^{13} \approx 0.2669$$
Step 4: Apply the complement.
$$P(X \leq 2) \approx 0.2059 + 0.3432 + 0.2669 = 0.8160$$
$$P(X \geq 3) = 1 - 0.8160 = 0.1840$$
There is about an 18.4% chance that at least 3 items are defective.
Using technology: 1 - binomcdf(15, 0.10, 2) = 0.1841, which confirms our calculation.
A pharmaceutical company is testing a new medication. In clinical trials, the medication is effective for 70% of patients. If 50 patients are enrolled in a trial:
a) What is the expected number of patients for whom the medication will be effective? b) What is the standard deviation? c) Would it be surprising if the medication worked for only 28 patients?
Solution:
Step 1: Identify the parameters. $X$ = number of patients for whom the medication is effective $X \sim B(50, 0.70)$
a) Expected value (mean):
$$\mu = np = 50 \times 0.70 = 35$$
We expect the medication to work for 35 patients on average.
b) Standard deviation:
$$\sigma = \sqrt{np(1-p)} = \sqrt{50 \times 0.70 \times 0.30} = \sqrt{10.5} \approx 3.24$$
The standard deviation is about 3.24 patients.
c) Is 28 surprising?
Let’s see how many standard deviations 28 is from the mean:
$$z = \frac{28 - 35}{3.24} = \frac{-7}{3.24} \approx -2.16$$
The value 28 is about 2.16 standard deviations below the mean.
Using the empirical rule (or more precisely, looking at normal distribution tables), values more than 2 standard deviations from the mean occur less than 5% of the time.
Yes, getting only 28 successes would be somewhat surprising. It is more than 2 standard deviations below what we expect. This might prompt the researchers to investigate whether something unusual happened in that trial.
A hospital emergency room finds that 15% of patients arriving on weekend nights require admission to the hospital. On a particular Saturday night, 20 patients arrive.
a) What is the probability that exactly 4 patients require admission? b) What is the probability that at most 2 patients require admission? c) What is the probability that more than 5 patients require admission? d) Find the expected number and standard deviation of admissions. e) The hospital has 5 beds available. What is the probability they will need to turn patients away (more than 5 admissions)? f) How would you interpret these results for hospital planning?
Solution:
Setup: Let $X$ = number of patients requiring admission. $X \sim B(20, 0.15)$
a) $P(X = 4)$:
$$P(X = 4) = \binom{20}{4}(0.15)^4(0.85)^{16}$$
$$\binom{20}{4} = \frac{20!}{4! \cdot 16!} = \frac{20 \times 19 \times 18 \times 17}{4 \times 3 \times 2 \times 1} = 4845$$
$$P(X = 4) = 4845 \times (0.15)^4 \times (0.85)^{16}$$ $$= 4845 \times 0.00050625 \times 0.07427$$ $$\approx 0.1821$$
The probability that exactly 4 patients need admission is about 18.2%.
b) $P(X \leq 2)$:
$$P(X \leq 2) = P(X = 0) + P(X = 1) + P(X = 2)$$
$$P(X = 0) = \binom{20}{0}(0.15)^0(0.85)^{20} = 1 \times 1 \times 0.85^{20} \approx 0.0388$$
$$P(X = 1) = \binom{20}{1}(0.15)^1(0.85)^{19} = 20 \times 0.15 \times 0.85^{19} \approx 0.1368$$
$$P(X = 2) = \binom{20}{2}(0.15)^2(0.85)^{18} = 190 \times 0.0225 \times 0.85^{18} \approx 0.2293$$
$$P(X \leq 2) \approx 0.0388 + 0.1368 + 0.2293 = 0.4049$$
The probability that at most 2 patients need admission is about 40.5%.
Using technology: binomcdf(20, 0.15, 2) $\approx 0.4049$ ✓
c) $P(X > 5)$:
Using the complement: $P(X > 5) = 1 - P(X \leq 5)$
Using technology: 1 - binomcdf(20, 0.15, 5) $\approx 0.0673$
The probability that more than 5 patients need admission is about 6.7%.
d) Mean and standard deviation:
$$\mu = np = 20 \times 0.15 = 3$$
$$\sigma = \sqrt{np(1-p)} = \sqrt{20 \times 0.15 \times 0.85} = \sqrt{2.55} \approx 1.60$$
On average, 3 patients need admission, with a standard deviation of about 1.6 patients.
e) Probability of needing to turn patients away:
This is $P(X > 5)$, which we calculated in part (c).
There is about a 6.7% chance they will need more than 5 beds.
f) Interpretation for hospital planning:
The hospital expects about 3 admissions per Saturday night, but there is considerable variability (standard deviation of 1.6). With 5 beds available:
- About 93.3% of Saturday nights, 5 beds will be sufficient
- About 6.7% of the time (roughly 1 in 15 Saturday nights), demand will exceed capacity
If turning patients away is unacceptable, the hospital might:
- Keep 6 or 7 beds available for a smaller chance of overflow
- Have a contingency plan for overflow situations
- Analyze whether the 15% admission rate varies by time of year or other factors
The binomial model helps quantify the trade-off between keeping extra capacity (costly) versus occasionally being unable to serve all patients (also costly in different ways).
Key Properties and Rules
The Binomial Probability Formula
For $X \sim B(n, p)$, the probability of exactly $k$ successes:
$$P(X = k) = \binom{n}{k} p^k (1-p)^{n-k}$$
where $\binom{n}{k} = \frac{n!}{k!(n-k)!}$
Mean and Standard Deviation
| Measure | Formula | Interpretation |
|---|---|---|
| Mean | $\mu = np$ | Expected number of successes |
| Variance | $\sigma^2 = np(1-p)$ | Measure of spread (squared units) |
| Standard Deviation | $\sigma = \sqrt{np(1-p)}$ | Typical deviation from the mean |
Cumulative Probability Rules
| Probability Type | How to Calculate | Calculator |
|---|---|---|
| $P(X = k)$ | Use binomial formula | binompdf(n, p, k) |
| $P(X \leq k)$ | Sum $P(X = 0)$ through $P(X = k)$ | binomcdf(n, p, k) |
| $P(X < k)$ | Same as $P(X \leq k-1)$ | binomcdf(n, p, k-1) |
| $P(X \geq k)$ | $1 - P(X \leq k-1)$ | 1 - binomcdf(n, p, k-1) |
| $P(X > k)$ | $1 - P(X \leq k)$ | 1 - binomcdf(n, p, k) |
Conditions for a Binomial Setting (BINS)
- Binary: Two outcomes per trial (success/failure)
- Independent: Trials do not affect each other
- Number: Fixed number of trials $n$
- Same probability: Constant probability $p$ for each trial
When Binomial Approximation Works
Even if independence is slightly violated (like sampling without replacement), the binomial is a good approximation when: $$\text{Sample size} \leq \frac{\text{Population size}}{20}$$
In other words, if your sample is less than 5% of the population, the binomial approximation works well.
Real-World Applications
Quality Control in Manufacturing
Manufacturers use the binomial distribution to monitor product quality. If a machine typically produces 2% defective items, quality control can use binomial probability to determine:
- What is the expected number of defects in a batch of 500?
- What is the probability of finding more than 15 defects in a batch?
- How large should a sample be to have a 95% chance of detecting at least one defect if the defect rate has increased to 5%?
This helps set inspection procedures and identify when a manufacturing process needs adjustment.
Medical Trials and Drug Effectiveness
Clinical trials often measure success rates - did the treatment work or not? The binomial distribution helps researchers:
- Determine how many patients to include in a study
- Assess whether an observed success rate is significantly different from the expected rate
- Calculate confidence intervals for drug effectiveness
For example, if a new drug claims 80% effectiveness, and 45 out of 50 patients improve, researchers can use binomial probability to evaluate whether this result supports or contradicts the claim.
Survey Sampling and Polling
Political polls and market research surveys often involve yes/no questions. If 40% of a population supports a policy, and you survey 500 people:
- What is the expected number who will say “yes”?
- What range of responses should we expect with 95% confidence?
- Is our sample result significantly different from what we expected?
The binomial distribution (or its normal approximation for large samples) underlies the margin of error reported in polls.
Sports Analytics
In sports, many events can be modeled as success/failure trials:
- Free throws in basketball (make or miss)
- At-bats in baseball (hit or out)
- Penalty kicks in soccer (goal or save)
If a player has a known success rate, the binomial distribution predicts the probability of various outcomes. How likely is a 75% free throw shooter to go 6-for-10 in a game? What about 10-for-10? These probabilities help analysts evaluate player performance and make in-game decisions.
Genetics and Biology
Many genetic traits follow binomial patterns. If two carriers of a recessive gene have children, each child has a 25% chance of expressing the trait. For a family with 4 children:
- What is the probability none have the trait?
- What is the probability at least one has the trait?
- What is the expected number with the trait?
Binomial probability is fundamental to understanding how traits are distributed across generations.
Self-Test Problems
Problem 1: A fair die is rolled 12 times. Find the probability of rolling exactly 3 sixes.
Show Answer
Let $X$ = number of sixes. $X \sim B(12, 1/6)$.
$$P(X = 3) = \binom{12}{3}\left(\frac{1}{6}\right)^3\left(\frac{5}{6}\right)^9$$
$$\binom{12}{3} = \frac{12!}{3! \cdot 9!} = \frac{12 \times 11 \times 10}{3 \times 2 \times 1} = 220$$
$$P(X = 3) = 220 \times \left(\frac{1}{6}\right)^3 \times \left(\frac{5}{6}\right)^9$$ $$= 220 \times \frac{1}{216} \times \frac{1,953,125}{10,077,696}$$ $$= 220 \times 0.004629 \times 0.1938$$ $$\approx 0.1974$$
The probability of rolling exactly 3 sixes is about 19.7%.
Problem 2: Determine if each situation is binomial. If not, identify which condition fails.
a) You flip a coin repeatedly until you get heads, counting the number of flips.
b) A bag contains 100 marbles: 30 red and 70 blue. You draw 5 marbles with replacement and count the red ones.
c) A basketball player’s free throw percentage improves throughout a game due to warming up. You count how many she makes out of 10 attempts.
Show Answer
a) NOT binomial. The number of trials is not fixed. You stop when you get heads, so the number of flips varies randomly.
b) IS binomial. ✓
- Binary: Each marble is red or blue. ✓
- Independent: With replacement, each draw is independent. ✓
- Fixed number: Drawing exactly 5 marbles. ✓
- Same probability: $p = 0.30$ for red on each draw. ✓
c) NOT binomial. The probability of success changes throughout the game (she improves), violating the constant probability condition.
Problem 3: A package of flower seeds has a 90% germination rate. If you plant 20 seeds, find: a) The expected number that will germinate b) The standard deviation c) The probability that all 20 will germinate
Show Answer
$X \sim B(20, 0.90)$
a) Expected value: $$\mu = np = 20 \times 0.90 = 18$$
18 seeds are expected to germinate.
b) Standard deviation: $$\sigma = \sqrt{np(1-p)} = \sqrt{20 \times 0.90 \times 0.10} = \sqrt{1.8} \approx 1.34$$
The standard deviation is about 1.34 seeds.
c) Probability all 20 germinate: $$P(X = 20) = \binom{20}{20}(0.90)^{20}(0.10)^0 = 1 \times 0.90^{20} \times 1 \approx 0.1216$$
There is about a 12.2% chance all 20 seeds will germinate.
Problem 4: A test has 10 true/false questions. A student who guesses randomly on every question needs at least 7 correct to pass. What is the probability of passing by guessing?
Show Answer
$X \sim B(10, 0.5)$
We need $P(X \geq 7) = P(X = 7) + P(X = 8) + P(X = 9) + P(X = 10)$
$$P(X = 7) = \binom{10}{7}(0.5)^{10} = 120 \times \frac{1}{1024} \approx 0.1172$$
$$P(X = 8) = \binom{10}{8}(0.5)^{10} = 45 \times \frac{1}{1024} \approx 0.0439$$
$$P(X = 9) = \binom{10}{9}(0.5)^{10} = 10 \times \frac{1}{1024} \approx 0.0098$$
$$P(X = 10) = \binom{10}{10}(0.5)^{10} = 1 \times \frac{1}{1024} \approx 0.00098$$
$$P(X \geq 7) \approx 0.1172 + 0.0439 + 0.0098 + 0.00098 = 0.1719$$
There is about a 17.2% chance of passing by random guessing.
Using technology: 1 - binomcdf(10, 0.5, 6) $\approx 0.1719$ ✓
Problem 5: A doctor knows that a certain vaccine is effective in 85% of patients. She gives the vaccine to 40 patients.
a) What is the expected number of patients for whom the vaccine will be effective? b) Find the standard deviation. c) Would you be surprised if the vaccine was effective for only 30 patients? Explain.
Show Answer
$X \sim B(40, 0.85)$
a) Expected value: $$\mu = np = 40 \times 0.85 = 34$$
34 patients are expected to have an effective response.
b) Standard deviation: $$\sigma = \sqrt{np(1-p)} = \sqrt{40 \times 0.85 \times 0.15} = \sqrt{5.1} \approx 2.26$$
The standard deviation is about 2.26 patients.
c) Is 30 surprising?
How many standard deviations is 30 from the mean? $$z = \frac{30 - 34}{2.26} = \frac{-4}{2.26} \approx -1.77$$
The value 30 is about 1.77 standard deviations below the mean. This is notable but not extremely rare - values this far from the mean occur in roughly 8% of samples.
While 30 is below expectations, it would not be shocking. It is unusual enough to warrant attention but not so extreme as to suggest something is wrong with the vaccine. The doctor might want to monitor future results to see if this was just random variation or the start of a concerning trend.
Problem 6: A company knows that 8% of orders placed online are returned. In a week with 200 online orders:
a) Find the mean and standard deviation of the number of returns. b) Find the probability that there are more than 20 returns. c) Find the probability that there are between 10 and 20 returns (inclusive).
Show Answer
$X \sim B(200, 0.08)$
a) Mean and standard deviation: $$\mu = np = 200 \times 0.08 = 16$$ $$\sigma = \sqrt{np(1-p)} = \sqrt{200 \times 0.08 \times 0.92} = \sqrt{14.72} \approx 3.84$$
The expected number of returns is 16, with standard deviation about 3.84.
b) $P(X > 20)$:
Using technology: $P(X > 20) = 1 - P(X \leq 20) = 1 - \text{binomcdf}(200, 0.08, 20)$
$\approx 1 - 0.8878 = 0.1122$
There is about an 11.2% chance of more than 20 returns.
c) $P(10 \leq X \leq 20)$:
$P(10 \leq X \leq 20) = P(X \leq 20) - P(X \leq 9)$
Using technology: $= \text{binomcdf}(200, 0.08, 20) - \text{binomcdf}(200, 0.08, 9)$ $\approx 0.8878 - 0.0838 = 0.8040$
There is about an 80.4% chance of having between 10 and 20 returns (inclusive).
Summary
-
The binomial setting requires four conditions (BINS): Binary outcomes, Independent trials, fixed Number of trials, and Same probability for each trial.
-
A binomial random variable $X \sim B(n, p)$ counts the number of successes in $n$ independent trials, each with success probability $p$.
-
The binomial probability formula gives the probability of exactly $k$ successes: $$P(X = k) = \binom{n}{k} p^k (1-p)^{n-k}$$
-
The binomial coefficient $\binom{n}{k} = \frac{n!}{k!(n-k)!}$ counts the number of ways to arrange $k$ successes among $n$ trials.
-
The mean of a binomial distribution is $\mu = np$. The standard deviation is $\sigma = \sqrt{np(1-p)}$.
-
For “at least” or “at most” problems, use the complement rule: $P(X \geq k) = 1 - P(X \leq k-1)$.
-
Technology functions
binompdf(n, p, k)andbinomcdf(n, p, k)calculate exact probabilities and cumulative probabilities efficiently. -
The binomial distribution does NOT apply when: trials are not independent, the number of trials is not fixed, there are more than two outcomes, or the probability changes between trials.
-
Applications include quality control, medical trials, survey sampling, sports analytics, and genetics - anywhere you count successes in repeated independent trials with constant probability.