Key takeaways
- A binomial experiment has a fixed number n of independent trials, each a success or failure with the same success probability p.
- The probability of exactly k successes is C(n, k) pᵏ (1 − p)ⁿ⁻ᵏ.
- C(n, k) counts which trials are the successes; the powers give the probability of any one such pattern.
- The mean is np and the variance np(1 − p).
- For 'at least one success', use the complement: 1 − (1 − p)ⁿ.
Flip a coin 10 times and count the heads. Guess on 10 multiple-choice questions and count the right answers. Test 20 parts and count the defective ones. Each is the same structure: repeated independent attempts, each a success or a failure, and a count of successes. The probabilities of those counts form the binomial distribution.
When a situation is binomial
OpenStax's Introductory Statistics lists three characteristics of a binomial experiment:
- A fixed number of trials, n.
- Two possible outcomes per trial, called success and failure, with the success probability p the same on every trial.
- Independent trials, repeated under identical conditions, so one outcome does not help predict another.
The random variable X is the number of successes in the n trials. A single trial of this kind is a Bernoulli trial, named after Jacob Bernoulli, who studied them in the late 1600s.
Not binomial:
- Drawing 5 cards and counting hearts, without replacement: the probability changes after each draw, so the trials are not independent.
- Rolling until the first six: the number of trials is not fixed.
- Counting how many of 10 people choose each of three options: more than two outcomes.
The formula, and where it comes from
The probability of exactly k successes is
P(X = k) = C(n, k) · pᵏ · (1 − p)ⁿ⁻ᵏ.
Each part has a job.
- pᵏ(1 − p)ⁿ⁻ᵏ is the probability of one particular pattern with k successes, say success on the first k trials and failure on the rest. Independence lets the probabilities multiply.
- C(n, k) counts the patterns: the number of ways to choose which k of the n trials are the successes. Every pattern has the same probability, so multiply.
The coefficient is the binomial coefficient from the binomial theorem, and that is no coincidence: the probabilities are the terms of the expansion of (p + (1 − p))ⁿ, which is why they add up to 1ⁿ = 1.
Worked example: guessing on a quiz
Ten multiple-choice questions, four options each, every answer a pure guess, so n = 10 and p = 0.25.
Exactly 3 right:
P(X = 3) = C(10, 3)(0.25)³(0.75)⁷ = 120 × 0.015625 × 0.1335 ≈ 0.250.
None right: (0.75)¹⁰ ≈ 0.056.
At least 5 right, enough to pass a 50% threshold: add P(X = 5) through P(X = 10), which comes to about 0.078. Guessing passes fewer than 1 attempt in 12.
At least 6 right: about 0.020.
The expected number correct is np = 10 × 0.25 = 2.5.
Worked example: free throws
A player makes 80% of free throws, independently. In 5 attempts:
- All 5: (0.8)⁵ = 0.328.
- At least 4: C(5, 4)(0.8)⁴(0.2) + (0.8)⁵ = 0.4096 + 0.3277 = 0.737.
Mean and variance
For a binomial random variable,
mean μ = np and variance σ² = np(1 − p),
both given by OpenStax. The mean follows directly from linearity of expectation: X is the sum of n indicator variables, one per trial, each with expected value p. The expected value guide explains that argument. The variance also adds across independent trials, and each trial contributes p(1 − p).
For the quiz, the standard deviation is √1.875 ≈ 1.37 correct answers. Measuring a result in standard deviations from the mean is the idea behind standard scores, covered in percentiles and standard scores.
The complement trick
"At least one success" is the complement of "no successes":
P(X ≥ 1) = 1 − (1 − p)ⁿ.
At least one six in 4 rolls: 1 − (5/6)⁴ ≈ 0.518. At least one six in 24 rolls of two dice, looking for a double six: 1 − (35/36)²⁴ ≈ 0.491. These two bets look alike, yet they fall on opposite sides of an even chance, a good reminder to calculate rather than guess.
The shape of the distribution
With p = 0.5, the distribution is symmetric around n/2; 10 fair coin flips give exactly 5 heads with probability C(10, 5)/2¹⁰ ≈ 0.246, the most likely single count but still less than one chance in four. With p far from 0.5, it leans toward 0 or n. For large n it takes on the familiar bell shape; MathWorld derives the normal distribution approximation to the binomial from this behaviour.
A checklist
- Check the conditions: fixed n, two outcomes, constant p, independence.
- Identify n, p and the k (or range of k) you need.
- Apply the formula, or the complement for "at least one".
- Sanity-check against the mean np.
Probabilities of repeated trials build on the counting in permutations versus combinations and the conditional reasoning in conditional probability and Bayes' theorem. The probability unit of Discrete Math: Study & Quiz can be practised with its topic and timed quizzes. Our education apps list it with the rest of the collection; the discrete math hub has the other probability guides.
Good to know
Frequently asked questions
What is the binomial probability formula?
What are the conditions for a binomial distribution?
What are the mean and variance of a binomial distribution?
How do I find the probability of at least one success?
Sources
- 4.3 Binomial Distribution (Introductory Statistics 2e) (opens in a new tab)OpenStax — accessed
- 7.10 The Binomial Distribution (Contemporary Mathematics) (opens in a new tab)OpenStax — accessed
- Binomial Distribution (opens in a new tab)Wolfram MathWorld — accessed
About the author
Reign Creative LLC — The independent app studio that builds the apps covered on this site and publishes every article here. On Google Play it publishes as Reign Collective Apps.
We use AI tools to help research, draft and edit our articles. Each article lists the sources its factual claims rely on, and details about our apps come from their live Google Play listings. No article on this site has been reviewed by an independent expert unless the reviewer is named on it.
No person at Reign Creative LLC has read this article in full. It was published after automated checks and an AI editorial review, which are described in our editorial policy and are not the same as a person reading every sentence.
Spotted an error? Tell us — how corrections are handled is set out in our editorial policy.