Note AcademyNote Academy

Mathematics (AS & A Level) 9709 · Chapter 26

Discrete random variables

Paper 5. Probability distribution tables, expectation and variance, the binomial distribution, and the geometric distribution.

Written for the 2026–2027 syllabus · 5 min read

5.4 Discrete random variables

Probability distributions

A discrete random variable takes separate values, each with a probability. A probability distribution lists them, and the probabilities add to 1.

k+2k+3k+4k=1k + 2k + 3k + 4k = 1, so k=0.1k = 0.1.

To draw up a table from a situation, list every possible value of XX first, then work out each probability. Check that they total 1.

Expectation and variance

xx123
P(X=x)\mathrm{P}(X = x)0.20.50.3

E(X)=0.2+1.0+0.9=2.1\mathrm{E}(X) = 0.2 + 1.0 + 0.9 = 2.1

∑x2p=0.2+2.0+2.7=4.9\sum x^2 p = 0.2 + 2.0 + 2.7 = 4.9, so Var(X)=4.9−2.12=0.49\mathrm{Var}(X) = 4.9 - 2.1^2 = 0.49.

The binomial distribution

X∼B(n,p)X \sim \mathrm{B}(n, p) counts the number of successes in nn trials. It is suitable when:

  • There is a fixed number of trials, nn.
  • Each trial has two outcomes, success and failure.
  • The trials are independent.
  • The probability pp of success is constant.

P(X=2)=(102)(0.3)2(0.7)8=45×0.09×0.05765=0.233\mathrm{P}(X = 2) = \binom{10}{2}(0.3)^2(0.7)^8 = 45 \times 0.09 \times 0.05765 = 0.233

P(X≥1)=1−P(X=0)=1−0.710=0.972\mathrm{P}(X \geq 1) = 1 - \mathrm{P}(X = 0) = 1 - 0.7^{10} = 0.972

Inequalities

Translate the words carefully:

WordsMeansFor B(10,p)\mathrm{B}(10, p)
At most 2X≤2X \leq 2Add P(0)+P(1)+P(2)\mathrm{P}(0) + \mathrm{P}(1) + \mathrm{P}(2)
Fewer than 2X≤1X \leq 1Add P(0)+P(1)\mathrm{P}(0) + \mathrm{P}(1)
At least 2X≥2X \geq 21−P(0)−P(1)1 - \mathrm{P}(0) - \mathrm{P}(1)
More than 2X≥3X \geq 31−P(0)−P(1)−P(2)1 - \mathrm{P}(0) - \mathrm{P}(1) - \mathrm{P}(2)

Finding the number of trials

1−0.7n>0.95⇒0.7n<0.05⇒n>ln⁡0.05ln⁡0.7=8.41 - 0.7^n > 0.95 \quad\Rightarrow\quad 0.7^n < 0.05 \quad\Rightarrow\quad n > \frac{\ln 0.05}{\ln 0.7} = 8.4

So n=9n = 9. The inequality reverses because ln⁡0.7\ln 0.7 is negative.

The geometric distribution

X∼Geo(p)X \sim \mathrm{Geo}(p) counts the number of trials up to and including the first success. There is no upper limit. The trials are independent, with constant probability of success, as for the binomial, but with no fixed number of them.

Getting the first success on trial rr needs r−1r - 1 failures, then one success.

These two results come from the same idea:

P(X>r)=(1−p)rP(X≤r)=1−(1−p)r\mathrm{P}(X > r) = (1 - p)^r \qquad \mathrm{P}(X \leq r) = 1 - (1 - p)^r

P(X>r)\mathrm{P}(X > r) is the probability that the first rr trials are all failures.

P(X=3)=(56)216=25216=0.116\mathrm{P}(X = 3) = \left(\frac{5}{6}\right)^2\frac{1}{6} = \frac{25}{216} = 0.116

P(X>4)=(56)4=0.482E(X)=6\mathrm{P}(X > 4) = \left(\frac{5}{6}\right)^4 = 0.482 \qquad \mathrm{E}(X) = 6

Which distribution?

QuestionDistribution
How many successes in a fixed number of trials?Binomial
How many trials until the first success?Geometric

When a question combines distributions

A common type of question has two levels: first, the probability for one group, then a binomial on the number of groups.

For one bag: P(good)=10(0.9)9(0.1)+(0.9)10=0.3874+0.3487=0.7361\mathrm{P}(\text{good}) = 10(0.9)^9(0.1) + (0.9)^{10} = 0.3874 + 0.3487 = 0.7361.

For the bags, with B(3,0.7361)\mathrm{B}(3, 0.7361):

(32)(0.7361)2(0.2639)=0.429\binom{3}{2}(0.7361)^2(0.2639) = 0.429

Test yourself15 flashcards on this chapter.Flashcards →