Statistics · Statistical distributions
1 / 10
Calculating binomial probabilities P(X = r)
The binomial probability formula P(X = r) = nCr · p^r · (1−p)^(n−r), why it has that shape (choose which r of the n trials succeed, then multiply the success and failure probabilities), how to evaluate it including the special cases r = 0 and r = n, and how it matches the binompdf function on a calculator.
Statistics · Statistical distributions
Calculating binomial probabilities P(X = r)
The binomial probability formula P(X = r) = nCr · p^r · (1−p)^(n−r), why it has that shape (choose which r of the n trials succeed, then multiply the success and failure probabilities), how to evaluate it including the special cases r = 0 and r = n, and how it matches the binompdf function on a calculator.
Why it works
For , the probability of getting exactly successes iswhere is the binomial coefficient. Writing for the probability of failure, this is .
Why this works. Picture one particular way to get successes — say the first trials succeed and the rest fail. That single sequence has probability
because the trials are independent. But the successes could fall in any of the positions, and the number of ways to choose which of the trials succeed is . Each of those arrangements has the same probability and they are mutually exclusive, so we add them — that is, multiply by .
The ends. (every trial a failure) and (every trial a success), since .
On a calculator. This single-value probability is
binompdf(n, p, r). Use it directly for "exactly", and keep full accuracy until the final rounding.