Mean and Variance of Binomial Distributions
In Bernoulli Trials and the Binomial Distribution, we used the combination formula to compute probabilities for individual outcomes. But imagine a polling firm interviewing voters, or an assembly line producing computer chips daily.
If we had to construct a -row probability table to calculate the expected number of defective chips and their standard deviation using the general formulas and , it would take days on paper.
Fortunately, because the binomial random variable is composed of independent, identical Bernoulli trials, mathematicians derived extraordinary paper shortcut formulas that compute the mean, variance, and standard deviation in seconds!
1. The Closed-Form Binomial Formulas
For any binomial random variable , where is the number of independent trials, is the probability of success, and is the probability of failure:
[!IMPORTANT] These formulas apply only when the four BINS criteria are strictly satisfied. They cannot be used if trials are dependent or if the probability of success changes between trials.
2. Paper Proof and Mathematical Intuition
Why do these simple formulas work? Let us write out the mathematical proof using paper algebra.
Step 1: The Single Bernoulli Trial Indicator
Let be an indicator random variable for the outcome of trial :
- if trial is a Success (probability )
- if trial is a Failure (probability )
The expected value of a single indicator trial is:
The second moment of is:
The variance of a single trial is:
Step 2: Summing Across Independent Trials
The total number of successes in trials is the sum of these indicators:
- Mean: By the linearity of expectation (which holds for any random variables):
- Variance: Because the trials are strictly independent, the variance of the sum equals the sum of the variances:
- Standard Deviation: Taking the positive square root:
3. The Maximum Variance Property of
Consider the factor . What value of produces the greatest uncertainty (highest variance)?
On paper, this is a downward-opening quadratic function with roots at and . The vertex occurs midway:
At :
[!TIP] When an event is extremely rare () or virtually guaranteed (), the outcome is highly predictable, meaning the variance is very small. The spread is greatest when an outcome is completely uncertain ().
4. The Two-Standard-Deviation () Rule for Outliers
In paper examinations, you are often asked: "Is an observed count of successes unusually high or low?"
A standard statistical guideline classifies an observation as unusual (an outlier) if it lies more than standard deviations away from the mean:
- An observed value is considered usual if .
- An observed value is considered unusual if or .
5. Step-by-Step Worked Examples
Worked Example 1: Hundred Coin Flips and Unusual Outliers
Problem: A researcher tests a suspected loaded coin by tossing it times. Assuming the coin is fair ():
- Calculate the expected number of Heads .
- Calculate the variance and standard deviation .
- Establish the usual range .
- The coin lands on Heads times. Is this result statistically unusual?
Step 1: Identify Parameters
Step 2: Compute Mean and Variance
Step 3: Compute the Usual Range
The interval of typical outcomes is .
Step 4: Evaluate the Observation
The experiment produced Heads. Since (), obtaining heads is unusually high for a fair coin. In fact, the deviation is:
There is strong paper evidence that the coin is biased toward Heads.
Worked Example 2: Industrial Defect Inspection
Problem: An automated assembly line produces smartphone batteries with an established defective rate of (). A daily production batch contains batteries.
- Find the mean number of defective batteries per batch.
- Find the variance and standard deviation.
Step 1: Identify Parameters
Step 2: Mean
Step 3: Variance and Standard Deviation
Take the square root:
Worked Example 3: Reversing the Formulas (Exam Reverse Problem)
Problem: A discrete random variable follows a binomial distribution . A paper examination states that:
- The mean is
- The standard deviation is
Find the number of trials and the probability of success .
Step 1: Set Up the System of Equations
Step 2: Square Equation 2 to find Variance
Step 3: Substitute Equation 1 into Variance
Replace with :
Step 4: Solve for
Substitute back into Equation 1:
Step 5: Verification Check
Final Answer: and .
6. Common Mistakes & Paper Traps
[!CAUTION] Trap 1: Confusing (Standard Deviation) with (Variance). In the reverse problem above, students frequently write instead of . Always check whether the given information provides the standard deviation () or the variance ().
[!WARNING] Trap 2: Forgetting Units. If represents the number of defective cars:
- The mean .
- The standard deviation (same unit as ).
- The variance (squared units). Never attach the unit "cars" to variance on an examination paper.
7. Pencil & Paper Practice
Practice 1
A fair 20-sided die (icosahedron numbered to ) is rolled times. Let count the number of times a multiple of appears (the outcomes ).
- Determine the parameters .
- Calculate the expected count .
- Calculate the variance and standard deviation of .
??? success "Solution to Practice 1"
1. There are multiples of out of possible faces:
math p = \frac{4}{20} = \frac{1}{5} = 0.20 \implies q = 1 - 0.20 = 0.80 = \frac{4}{5}
Number of trials: .
2. Expected count:
```math
\mu = n p = 300 \times \frac{1}{5} = 60\text{ times}
```
3. Variance:
```math
\sigma^2 = n p q = 300 \times \frac{1}{5} \times \frac{4}{5} = 60 \times \frac{4}{5} = 48
```
Standard deviation:
```math
\sigma = \sqrt{48} = \sqrt{16 \times 3} = 4\sqrt{3} \approx 6.928
```Practice 2
For a binomial distribution , the mean is and the variance is .
- Find the probability of success .
- Find the number of trials .
??? success "Solution to Practice 2"
1. We know:
math \frac{\sigma^2}{\mu} = \frac{n p (1 - p)}{n p} = 1 - p
Substitute the numerical values:
math 1 - p = \frac{6}{15} = \frac{2}{5} = 0.4 \implies p = 1 - 0.4 = 0.6
2. Now solve for $n$ using $\mu = n p$:
```math
n (0.6) = 15 \implies n = \frac{15}{0.6} = \frac{150}{6} = 25
```
**Check:** $\sigma^2 = 25 \times 0.6 \times 0.4 = 15 \times 0.4 = 6 \quad \checkmark$.Test yourself
A binomial experiment has trials with success probability . What is the standard deviation ?
For a fixed number of trials , at what value of is the variance of a binomial distribution at its absolute maximum?
If a binomial distribution has mean and standard deviation , what is the probability of failure ?