IB Maths · Probability

Binomial distribution calculator

Enter the number of trials n and the probability of success p, then pick the probability you need. You get the answer to 6 significant figures and the exact binompdf or binomcdf input for your GDC, so you can check your own working.

Find

How to use it

  1. Check the situation is binomial: fixed n, two outcomes, constant p, independent trials.
  2. Choose what you need: exactly x, at most x, at least x, or between a and b (inclusive).
  3. Enter n, p and x, then press Calculate.

Words in the question map to the options: “exactly” is P(X = x), “at most” or “no more than” is P(X ≤ x), “at least” or “no fewer than” is P(X ≥ x). “More than 3” means P(X ≥ 4), because X only takes whole numbers.

Worked example

A student guesses every answer on a 10-question multiple-choice quiz. Each question has 4 options. Let X be the number of correct answers, so X ~ B(10, 0.25).

QuestionGDC inputAnswer
Exactly 3 correct, P(X = 3)binompdf(10, 0.25, 3)0.250
At most 3 correct, P(X ≤ 3)binomcdf(10, 0.25, 3)0.776
At least 5 correct, P(X ≥ 5)1 − binomcdf(10, 0.25, 4)0.0781
Between 2 and 4 correct, P(2 ≤ X ≤ 4)binomcdf(10, 0.25, 4) − binomcdf(10, 0.25, 1)0.678

The expected number correct is E(X) = 10 × 0.25 = 2.5, with variance 10 × 0.25 × 0.75 = 1.875.

The formula

P(X = x) = nCx px (1 − p)n − x, for x = 0, 1, …, n. In a paper 1 question with no calculator, you will usually only need this for small n.

Where this comes up

Binomial probability is in IB Maths AA and AI at both SL and HL, usually as a part (b) or (c) after a tree diagram or a normal distribution part. If you are deciding between the two courses, see IB Maths AA vs AI. For 1-on-1 help, see online IB Maths tutoring.

Stuck on a probability question? Send it to us. A maths teacher replies, not a bot.

Ask on WhatsApp →

Questions

What is the difference between binompdf and binomcdf?

binompdf gives the probability of exactly x successes, P(X = x). binomcdf gives the probability of x or fewer, P(X ≤ x). Every other binomial probability is built from these two.

How do I find P(X ≥ x) on a calculator?

Use the complement: P(X ≥ x) = 1 − P(X ≤ x − 1), so type 1 − binomcdf(n, p, x − 1). The most common mistake is writing binomcdf(n, p, x) instead of x − 1, which leaves out P(X = x).

When can I use the binomial distribution?

When there is a fixed number of trials n, each trial is a success or a failure, the probability of success p is the same every time, and the trials are independent. If any of these fail, X is not binomial.

What are the mean and variance of a binomial distribution?

For X ~ B(n, p), the mean is E(X) = np and the variance is Var(X) = np(1 − p). Both are in the IB formula booklet.

How accurate is this calculator?

It works in double precision and agrees with a TI-84 or Casio GDC well beyond the 3 significant figures that IB mark schemes ask for.

More free tools