CHAPTER 02 · TOPIC 08
Binomial Distribution
Model success counts in independent repeated trials and derive the PMF, mean, variance, and normal approximation.
On this page
- Four conditions for using the binomial distribution
- Binomial distribution notation
- Probability of success exactly x times
- Calculating cumulative probability
- Average number of successes and variation
- When does the binomial distribution approach the normal distribution?
- Relationship with other distributions
The binomial distribution is the probability distribution of the number of successes, X, in repeated trials where the number of trials is fixed, independent of each other, and the probability of success is equal. It is classified as a discrete probability distribution.
Four conditions for using the binomial distribution#
- The number of trials n is fixed in advance
- There are only two mutually exclusive outcomes in each trial
- Each trial is independent and one result does not change another's result
- The probability of success for each trial is the same p, and the probability of failure is q=1−p
Binomial distribution notation#
If X is the number of successes in n trials and p is the probability of success in each trial, then X follows the binomial distribution with parameters n and p, and takes only integers from 0 to n.
| symbol | meaning |
| X | Total number of successes in n trials |
| x | Possible values of X |
| n | Fixed total number of attempts |
| p | Probability of success for each trial |
| q | Probability of failure for each trial, q=1−p |
Probability of success exactly x times#
The probability of a given array of x successes and n−x failures is the product of the probabilities of each trial. Since there are multiple ways to select a successful position, multiply it by the number of combinations in which x can be selected from n positions.
Calculating cumulative probability#
"At most" or "at least" or a range of probabilities sums the probabilities of multiple x's satisfying the condition. The probability of at least k times can be easily calculated with co-events.
Average number of successes and variation#
Each trial contributes an average of p successes, so the average of the total number of n successes is np. Adding the variance p(1−p) of each independent success indicator gives np(1−p).
Supplement: Deriving the mean and variance from success indicators
If Iᵢ=1 when the i-th trial is successful and Iᵢ=0 when it fails, the total number of successes is the sum of the indicators. Expected values can always be added, and if they are independent, the covariance is 0, so the variances can also be added.
Supplement: Deriving E(X) and Var(X) from the formula
In the combinatorial identity, remove x or x(x−1) before the sum, replace the subscript, and recognize the remainder as the sum of complete binomial probabilities. Since the sum is 1, we can simplify the expression.
Instead of finding E(X²) directly, we can first calculate the factorial moment E[X(X−1)], which can be easily organized in the same way.
When does the binomial distribution approach the normal distribution?#
If n is large and p is not too close to 0 or 1, the binomial distribution approaches a bell-shaped normal distribution. Check whether not only n, but also the expected number of successes np and number of failures n(1−p) are large enough.
Continuity correction can be used in probability calculations to approximate a discrete distribution with a continuous distribution. For example, for P(X≤k), change the boundary to k+0.5.
Relationship with other distributions#
- Bernoulli distribution: binomial distribution with n=1
- Multinomial distribution: extension to cases where each trial has three or more outcomes
- Poisson distribution: approximated by λ=np when n is large, p is small, and np is moderate
- Normal distribution: Approximate with mean np and variance np(1−p) when np and n(1−p) are sufficiently large.