Binomial distribution calculator

X ~ B(20, 0.4)

P(X ≤ 5) = 0.1256

Mean np = 8, variance np(1 − p) = 4.8.

020

Working

  1. X ~ B(20, 0.4): 20 independent trials, each a success with probability 0.4.
  2. P(X ≤ 5) = P(X = 0) + P(X = 1) + … + P(X = 5): the cumulative binomial probability.
  3. P(X ≤ 5) = 0.1256.

Your result

P(X ≤ 5) = 0.1256. Mean np = 8, variance np(1 − p) = 4.8.

Practise binomial questions

A-level Maths Pro

Get an A* or your money back

£129 once

Price rises to £199 on 1 January. Save £70 by joining before then.

At least 12 months' access

By paying you agree to our Terms and get access straight away, which ends your 14-day cancellation right.

No VAT is charged. Conditions

For X ~ B(20, 0.4), a binomial distribution calculator gives the cumulative P(X ≤ 5) = 0.1256 and the point probability P(X = 5) = 0.0746, with the working.

Questions people ask

How do you find P(X ≥ r) for a binomial distribution?

Use the complement: P(X ≥ r) = 1 − P(X ≤ r − 1). Calculators and tables give P(X ≤ r), so turn every question into that form.

What is the difference between P(X < r) and P(X ≤ r)?

X only takes whole numbers, so P(X < r) = P(X ≤ r − 1). Unlike the normal distribution, the inequality sign matters.

What are the conditions for a binomial distribution?

A fixed number of trials, each with two outcomes, trials independent of each other, and the same probability of success each time.

What are the mean and variance of B(n, p)?

The mean is np and the variance is np(1 − p). For B(20, 0.4) that is 8 and 4.8.

Keep going

How we work this out

What it does

Find P(X = r) or any cumulative probability for X ~ B(n, p), with the bar chart and the working.

X ~ B(n, p) for n up to 1,000: point and cumulative probabilities.

Method

  1. Point probabilities use P(X = r) = ⁿCᵣ pʳ (1 − p)ⁿ⁻ʳ, computed with logarithms so large n stays exact.
  2. Cumulative probabilities add the point probabilities; P(X ≥ r) is 1 − P(X ≤ r − 1) and P(X < r) is P(X ≤ r − 1).