Binomial distribution calculator

Enter your values. The answer and the full worked solution update as you type.

Result

P(X ≤ 4)0.8497
P(X = 4)0.2001
Mean3
Standard deviation1.449
Variance2.1
kP(X = k)P(X ≤ k)
00.028250.02825
10.12110.1493
20.23350.3828
30.26680.6496
40.20010.8497
50.10290.9527
60.036760.9894
70.0090020.9984
80.0014470.9999
90.00013781
105.905 × 10⁻⁶1

Work out binomial probabilities for n independent trials that each succeed with probability p: exactly x successes, at most x, at least x, fewer than x or more than x. The calculator shows the binomial formula, every term it adds (or the shorter complement), the mean np and the standard deviation √(np(1 − p)). For n up to 30 it also lists the whole distribution in a table.

Step-by-step solution

Binomial probability formula

P(X = k) = C(n, k)·pk·(1 − p)n − k
n = 10, p = 0.3, 1 − p = 0.7

Add the probabilities

P(X = 0) = C(10, 0)·0.30·0.710 = 0.02825
P(X = 1) = C(10, 1)·0.31·0.79 = 0.1211
P(X = 2) = C(10, 2)·0.32·0.78 = 0.2335
P(X = 3) = C(10, 3)·0.33·0.77 = 0.2668
P(X = 4) = C(10, 4)·0.34·0.76 = 0.2001
P(X ≤ 4) = 0.02825 + 0.1211 + 0.2335 + 0.2668 + 0.2001 = 0.8497

Mean and standard deviation

μ = np = 10·0.3 = 3
σ² = np(1 − p) = 2.1
σ = √2.1 = 1.449

Key formulas

Binomial
P(X = k) = C(n,k)·pk(1 − p)n−k
Complement
P(not A) = 1 − P(A)

How to calculate binomial probabilities

  1. Check that the situation is binomial: a fixed number of trials n, two outcomes per trial, the same probability of success p every time and independent trials.
  2. For exactly x successes use P(X = x) = C(n, x)·pˣ·(1 − p)ⁿ⁻ˣ, where C(n, x) = n!/(x!(n − x)!) counts the orders in which the successes can occur.
  3. For “at most x”, add P(X = 0) up to P(X = x). For “at least x”, add P(X = x) up to P(X = n).
  4. If the sum has many terms, use the complement: P(X ≥ x) = 1 − P(X ≤ x − 1).
  5. Translate the words carefully: “fewer than 4” is X ≤ 3 and “more than 4” is X ≥ 5.

Questions and answers

What are the mean and standard deviation of a binomial distribution?

The mean is μ = np and the variance is σ² = np(1 − p), so the standard deviation is σ = √(np(1 − p)). For n = 10 and p = 0.3 that gives μ = 3 and σ = 1.449.

What is the difference between “at least” and “more than”?

“At least 3” includes 3: P(X ≥ 3). “More than 3” does not: P(X > 3) = P(X ≥ 4). For a discrete distribution these are different numbers, so choose the option that matches the wording of the question.

Why does the calculator sometimes use the complement?

Because all the probabilities add up to 1, P(X ≥ x) = 1 − P(X ≤ x − 1). When the complement has fewer terms it is quicker by hand, and the steps show that route. The result is the same.

How large can n be?

Up to 10 000 trials. The terms are computed with logarithms, so the large factorials do not overflow and the probabilities stay accurate.

When is the binomial distribution not the right model?

When the trials are not independent or p changes, for example when you draw without replacement from a small group: that follows the hypergeometric distribution. When n is large and p is small, the Poisson distribution with λ = np is a good approximation.

Practise it yourself

Practise Probability

A calculator gives the answer. In the exam you need the method: practise it with new problems, hints and worked solutions.

</> Embed

Free for teachers and schools: paste this code into your course page, LMS or website. Students can use the calculator and its worked solution without an account.

More calculators