IB Maths Help logoIB Maths Help

Binomial distribution

Find P(X = k), P(X ≤ k) and P(X ≥ k) for a binomial variable, with the exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, plus what to write in the exam.

Used inAA SLAA HLAI SLAI HL

A binomial probability is found with your calculator's binomial commands (binompdf and binomcdf, Bpd and Bcd, or Binomial Pdf and Binomial Cdf). Enter the number of trials, the probability of success and x. Use the pdf for exactly k and the cdf for at most k. For at least k, subtract the cdf at k - 1 from 1. Check whether the question says at most or fewer than.

Example

X∼B(20,0.4)X \sim B(20, 0.4). Find (a) P(X=8)P(X = 8), (b) P(X≤8)P(X \le 8), (c) P(X≥10)P(X \ge 10).

The pdf gives one value: P(X=8)=0.18P(X = 8) = 0.18. The cdf adds from 0 up to 8: P(X≤8)=0.596P(X \le 8) = 0.596. For (c), P(X≥10)=1−P(X≤9)=1−0.7553=0.245P(X \ge 10) = 1 - P(X \le 9) = 1 - 0.7553 = 0.245.

Choose your calculator

How to find a binomial probability on a TI-84 Plus CE

binompdf and binomcdf

For exactly 8 (P(X=8)P(X = 8)), press 2nd vars (DISTR) and choose A:binompdf(. With the Stat Wizards on, a screen asks for each value in turn: type it and press enter each time.

Enter the number of trials 20, the probability of success 0.4 and the value of x, 8, then press enter on Paste.

binompdf(
trials:20
p:0.4
x value:8

Press enter to run it. If the Stat Wizards are off, type binompdf(20,0.4,8) with commas between the three values and press enter.

P(X=8)=0.180P(X = 8) = 0.180 to 3 significant figures.

binompdf(20,0.4,8)
0.1797058

For at most 8 (P(X≤8)P(X \le 8)), press 2nd vars (DISTR) and choose B:binomcdf(. It adds the probabilities from 0 up to x.

P(X≤8)=0.596P(X \le 8) = 0.596 to 3 significant figures.

binomcdf(20,0.4,8)
0.5955987

For at least 10 (P(X≥10)P(X \ge 10)), the calculator only adds up from 0, so find P(X≤9)P(X \le 9) and subtract it from 1: type 1-binomcdf(20,0.4,9).

P(X≥10)=0.245P(X \ge 10) = 0.245 to 3 significant figures.

1-binomcdf(20,0.4,9)
0.2446628

"At least 10" is 1 minus the cumulative probability up to 9, not up to 10. For "fewer than 10" use binomcdf at 9.

How to find a binomial probability on a Casio fx-CG50

Bpd and Bcd

Press MENU and choose Statistics. Press F5 (DIST), then F5 (BINOMIAL), then F1 (Bpd) for exactly.

Set Data to Variable by pressing F2 (Var), then press ▼ to move to the first line. Enter x 8, Numtrial 20 and p 0.4, pressing EXE after each.

Data:Variable
x:8
Numtrial:20
p:0.4

Use ▼ to move to Execute and press F1 (CALC).

P(X=8)=0.180P(X = 8) = 0.180 to 3 significant figures.

p=0.1797058

For at most 8, go back to the BINOMIAL menu and press F2 (Bcd). It gives the cumulative probability up to x. Enter x 8, Numtrial 20 and p 0.4, then Execute.

P(X≤8)=0.596P(X \le 8) = 0.596 to 3 significant figures.

p=0.5955987

For at least 10, run Bcd with x 9 and subtract the answer from 1.

P(X≥10)=1−0.7553=0.245P(X \ge 10) = 1 - 0.7553 = 0.245 to 3 significant figures.

p=0.7553372

Keep the full value of the cumulative probability when you subtract it from 1, rather than a rounded one. "Fewer than 10" is Bcd at 9.

How to find a binomial probability on a Casio fx-CG100

Distribution app (Binomial)

Press HOME and choose Distribution. Move down to Binomial in the list and press OK.

On the Setup tab, set Tail to the fourth option, (X=), for exactly, and leave Data as Variable. Move down to each line, type the value and press OK, which moves the cursor to the next line. Enter x 8, Numtrial 20 and p 0.4.

Tail: X=
Data:Variable
x:8
Numtrial:20
p:0.4

Choose Execute and press OK. The Result tab shows the probability.

P(X=8)=0.180P(X = 8) = 0.180 to 3 significant figures.

p=0.1797058

For at most 8, set Tail to [LX] (x or lower) and keep x 8.

P(X≤8)=0.596P(X \le 8) = 0.596 to 3 significant figures.

p=0.5955987

For at least 10, set Tail to [XU] (x or higher) and enter x 10. There is nothing to subtract.

P(X≥10)=0.245P(X \ge 10) = 0.245 to 3 significant figures.

p=0.2446628

Pick the Tail option before entering x. For a range such as 5 to 9, choose [LXU] and enter Lower 5 and Upper 9.

How to find a binomial probability on a TI-Nspire CX

Binomial Pdf and Binomial Cdf

For exactly 8, on a Calculator page press menu → Probability → Distributions → Binomial Pdf. A box asks for the values: move between the fields with tab.

Enter Num Trials 20, Prob Success 0.4 and X Value 8, then press enter.

P(X=8)=0.180P(X = 8) = 0.180 to 3 significant figures.

binomPdf(20,0.4,8)
0.17971

For at most 8, choose Binomial Cdf from the same menu. Enter Num Trials 20, Prob Success 0.4, Lower Bound 0 and Upper Bound 8, then press enter.

P(X≤8)=0.596P(X \le 8) = 0.596 to 3 significant figures.

binomCdf(20,0.4,0,8)
0.59560

For at least 10, use the same Binomial Cdf with Lower Bound 10 and Upper Bound 20 (the number of trials): binomCdf(20,0.4,10,20).

P(X≥10)=0.245P(X \ge 10) = 0.245 to 3 significant figures.

binomCdf(20,0.4,10,20)
0.24466

You can also type binomPdf( or binomCdf( directly. The bounds in Binomial Cdf are both included, so lower 10 and upper 20 gives X from 10 to 20.

Sources. Key presses follow the manufacturers' documentation: the TI-84 Plus CE eGuide, the TI-Nspire eGuide, the Casio fx-CG50 Software User's Guide (version 3.30) and the Casio fx-CG100 online manual.

What to write in the exam

  • State the distribution and write the probability, for example X∼B(20,0.4)X \sim B(20, 0.4) and P(X≤8)=0.596P(X \le 8) = 0.596. Calculator syntax such as binomcdf( is not standard notation, so on its own it may not earn the method mark.
  • Turn the words into an inequality first. "At most 8" is X≤8X \le 8, "fewer than 8" is X≤7X \le 7, "at least 10" is X≥10X \ge 10, "more than 10" is X≥11X \ge 11.
  • Show the subtraction for "at least". Write P(X≥10)=1−P(X≤9)P(X \ge 10) = 1 - P(X \le 9) so the examiner sees the method, then give the value.
  • Give 3 significant figures unless the question says otherwise, and keep the full calculator value for later parts instead of re-typing a rounded one.
  • Check which papers allow a calculator. In AA SL and AA HL, Paper 1 is calculator-free, so use the formula (nk)pk(1−p)n−k\binom{n}{k}p^k(1-p)^{n-k} there. In AI SL and AI HL a calculator is allowed on every paper (check your syllabus).

Choosing the command

For a continuous variable see normal distribution probabilities.

Error messages and what to do

CalculatorMessageUsual causeWhat to try
TI-84 Plus CEERR:DOMAINA value is outside the allowed range, for example a probability p that is below 0 or above 1.Check the order of the three values: number of trials, probability p, then x. The probability must be between 0 and 1.
Casio fx-CG50Out of DomainA value is outside the allowed input range, for example a probability p written as a percentage such as 40.Enter p as a decimal between 0 and 1, such as 0.4.
Casio fx-CG100Out of DomainA value is outside the allowed input range, for example a probability p written as a percentage such as 40.Enter p as a decimal between 0 and 1, such as 0.4.
TI-Nspire CXDomain errorA value is outside the allowed range, for example a probability that is not between 0 and 1.Check that Prob Success is a decimal between 0 and 1 and that the bounds are in the right fields.

Common mistakes

  • Using cdf for "exactly". The cdf adds all the values up to x; "exactly" needs the pdf.
  • Off by one on "at least" and "fewer than". P(X≥10)=1−P(X≤9)P(X \ge 10) = 1 - P(X \le 9), not 1 minus the cdf at 10. "Fewer than 10" is the cdf at 9.
  • Values in the wrong order. Number of trials first, then probability, then x. Swapping n and p gives an error or a wrong answer.
  • Typing p as a percentage. Enter 0.4, not 40.
  • Writing binomcdf as working. Write the probability statement and the value. The examiner needs the notation, not the command.

Try it yourself

Real questions from the IB Maths Help question bank. Type your answer and press Mark it: the worked solution and mark scheme then appear. Use your calculator for the probabilities.

Practise with your calculator

Choose your course to see the practice sets that use this skill. You can also try practice mode or browse every GDC guide.

Quick questions

How do I find a binomial probability on a calculator?

Use the binomial commands: binompdf and binomcdf on the TI-84 Plus CE (2nd VARS, DISTR), Bpd and Bcd on the fx-CG50 (Statistics, DIST, BINOMIAL), Distribution then Binomial on the fx-CG100, or Binomial Pdf and Binomial Cdf on the TI-Nspire (Probability, Distributions). Enter the number of trials, the probability of success and x.

How do I find P(X is at least k)?

Subtract the cumulative probability up to k - 1 from 1. For P(X ≥ 10) with n = 20, find the cdf at 9 and take it from 1. The fx-CG100 can do it directly with the [XU] tail and x = 10.

What is the difference between pdf and cdf?

The pdf gives the probability of exactly x successes. The cdf gives the probability of x successes or fewer, adding the pdf from 0 up to x.

Do I need to write binomcdf in my exam working?

No. Write the probability statement, for example P(X ≤ 8) = 0.596, and the subtraction if you used one. Examiners look for the notation and the value, not the command or the key presses.