Binomial distribution
The probability of exactly k successes in n independent trials that each succeed with probability p; also gives "at most k".
Calculator
The live calculator needs JavaScript. The worked example below shows the same steps it would.
See it move
- P(X = 3) = 0.1172 (highlighted); P(X ≤ 3) = 0.1719 (all shaded bars)
- Mean np = 5, standard deviation √(np(1 − p)) = 1.581
What the symbols mean
- the probability of exactly k successes
- the cumulative probability of at most k successes,
- the number of trials
- the number of successes (0 to n)
- the probability of success on each trial
When to use it
Use it when four conditions hold: a fixed number of trials n, each with two outcomes, the same success probability p every time, and trials independent of each other. Coin tosses, free throws, defective items in a batch and multiple-choice guessing all fit. For "at least k", use .
Worked example
A fair coin is tossed 10 times. What is the probability of exactly 3 heads? (n = 10, k = 3, p = 0.5)
Start from the formula.
Substitute = , = , = and work it out.
On average you would expect np = 5 successes in 10 trials.
Answer P(X = 3) = 0.1171875
Why it works
Any particular sequence with k successes and failures has probability , and there are ways to choose which trials are the successes.
Common mistakes
- Leaving out the factor, which gives the probability of one particular order only.
- Treating "at least 3" as "exactly 3"; use the cumulative probability and its complement.
- Using it when trials are not independent, such as drawing cards without replacing them.