Discrete Random Variables (AA HL)

A discrete random variable XX takes separate values, each with its own probability, and the probabilities in its distribution always sum to 1. Write the distribution as a table, use ∑P(X=x)=1\sum P(X=x)=1 to find any missing probability, and find the expected value with E(X)=∑xP(X=x)E(X)=\sum xP(X=x). It also covers interpreting E(X)=0E(X)=0 as a fair game. It's part of the broader Probability Distributions topic.

11 questions on this sub-topic.

Syllabus

CodeSyllabus content
SL4.7Concept of discrete random variables and their probability distributions. Expected value (mean) for discrete data. E(X)=0E(X)=0 indicates a fair game where XX is a player's gain.

Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).

Skills practised on this page:

Expectation and variance

Both formulas below are in the formula booklet.

Expected value

E(X)=∑xP(X=x)E(X)=\sum x\,P(X=x)

Multiply each value by its probability and add the results. E(X)E(X) doesn't have to equal any value XX can actually take.

Variance

Var(X)=E(X2)−[E(X)]2\text{Var}(X)=E(X^2)-[E(X)]^2

Find E(X2)=∑x2P(X=x)E(X^2)=\sum x^2 P(X=x) first, then subtract the square of E(X)E(X).

Need the full syllabus wording and formula-booklet reference table? See Probability Distributions.

Key terms

What is a probability distribution table?

It lists each value xx that the variable can take, with its probability P(X=x)P(X=x). Every probability lies between 00 and 11, and together they sum to 11.

e.g. P(X=1)=0.3P(X=1)=0.3, P(X=2)=0.5P(X=2)=0.5 and P(X=3)=0.2P(X=3)=0.2 is valid because 0.3+0.5+0.2=10.3+0.5+0.2=1.

What does E(X)E(X) represent?

The expected value is the mean of the distribution: the average outcome over a very large number of trials. It is a weighted average, with each value weighted by its probability.

e.g. If P(X=0)=0.5P(X=0)=0.5 and P(X=4)=0.5P(X=4)=0.5, then E(X)=0×0.5+4×0.5=2E(X)=0\times0.5+4\times0.5=2, although XX can never equal 22.

What makes a game fair?

A game is fair when E(X)=0E(X)=0, where XX is the player's gain. Neither the player nor the organiser is expected to win or lose in the long run.

e.g. If the gain is 33 with probability 0.250.25 and −1-1 with probability 0.750.75, then E(X)=3×0.25+(−1)×0.75=0E(X)=3\times0.25+(-1)\times0.75=0, so the game is fair.

What does P(X≤x)P(X\le x) mean for a discrete variable?

It is the probability that XX takes the value xx or any smaller value. Add the probabilities of every value up to and including xx.

e.g. If P(X=1)=0.2P(X=1)=0.2, P(X=2)=0.5P(X=2)=0.5 and P(X=3)=0.3P(X=3)=0.3, then P(X≤2)=0.2+0.5=0.7P(X\le2)=0.2+0.5=0.7.

Worked examples

1
Easy
No calc
[2 marks]

A discrete random variable XX takes the values shown in the table.

xx123
P(X=x)P(X=x)0.20.5?

Find P(3)P(3).

Worked solution

Probabilities sum to 1: P(3)=1−0.2−0.5P(3) = 1 - 0.2 - 0.5 M1
P(3)=0.3.P(3) = 0.3. A1

M1 ∑P=1\sum P=1 A1 Correct answer of 0.30.3
2
Hard
GDC
[5 marks]

A spinner has the payouts and probabilities shown in the table.

Payout$10$2$0
Probability0.10.40.5

Find the expected payout.

Worked solution

P($0)=1−0.1−0.4P($0) = 1 - 0.1 - 0.4 M1
P($0)=0.5.P($0) = 0.5. A1
E=10(0.1)+2(0.4)+0(0.5)E = 10(0.1) + 2(0.4) + 0(0.5) M1
E=1+0.8E = 1 + 0.8 A1
E=$1.80.E = $1.80. A1On the GDC. Find the expected payout. The calculator shows about 1.80.

TI-84 Plus CE: 2nd mode then type 10*0.1+2*0.4+0*0.5 enterCasio fx-CG50: MENU Run-Matrix then type 10*0.1+2*0.4+0*0.5 EXECasio fx-CG100: HOME Calculate then type 10*0.1+2*0.4+0*0.5 EXETI-Nspire CX: home Calculator then type 10*0.1+2*0.4+0*0.5 enterFull GDC guide: Enter a calculation on the home screen Topic page

M1 Remaining probability A1 Correct answer of 0.50.5 M1 Expected value A1 Multiplying out each payout by its probability to get 1+0.81 + 0.8 A1 $1.80$1.80
3
Medium
No calc
[4 marks]

A discrete variable has P(X=x)=k(x+1)P(X=x) = k(x+1) for x=0,1,2,3.x = 0, 1, 2, 3.

xx0123
P(X=x)P(X=x)kk2k2k3k3k4k4k

(a) Find kk.

(b) Find E(X)E(X).

Worked solution

(a) ∑P=k(1+2+3+4)=10k=1⇒k\sum P = k(1+2+3+4) = 10k = 1 \Rightarrow k M1
k=0.1.k = 0.1. A1

(b) E(X)=0(0.1)+1(0.2)+2(0.3)+3(0.4)E(X) = 0(0.1) + 1(0.2) + 2(0.3) + 3(0.4) M1
E(X)=2.E(X) = 2. A1

M1 Probabilities sum to 1 A1 k=0.1k=0.1 M1 ∑xP(x)\sum xP(x) A1 E(X)=2E(X)=2

Common mistakes

  • Forgetting probabilities must sum to 1. This is the standard way to find an unknown constant kk or a missing probability in a discrete distribution - if the values you've written down don't sum to 1, something upstream is wrong.
  • Treating E(X)E(X) as the most likely outcome. E(X)E(X) is a long-run average, not the value with the highest probability - it can easily land between two values XX never actually takes.
  • Applying Var(aX+b)=a2Var(X)\text{Var}(aX+b)=a^2\text{Var}(X) incorrectly. A shift by bb changes E(X)E(X) but has no effect on the spread, so bb drops out of the variance formula entirely - only the scale factor aa survives, and it gets squared.

Quick questions

How do you find a missing probability in a discrete distribution?

Use the fact that all the probabilities in a discrete probability distribution must sum to 1, then solve for the unknown value.

What is the expected value of a discrete random variable?

E(X)=∑xP(X=x)E(X) = \sum x\,P(X=x), summed over every value XX can take. It is the long-run average outcome, not necessarily a value XX actually takes. GDC guidance for computing it is covered on the Probability Distributions page.

Can the expected value be a number that X cannot take?

Yes. E(X)E(X) is a weighted average, not a value you expect to see on any single trial. For a fair six-sided die, E(X)=3.5E(X)=3.5, which is not a possible score.

Can a probability in a distribution be negative or greater than 1?

No, every probability lies between 00 and 11 inclusive. If solving for an unknown constant gives a probability outside this range, check your working or reject that value of the constant.

How do I find P(X > 2) from a distribution table?

Add the probabilities of every value greater than 22, or use the complement P(X>2)=1−P(X≤2)P(X>2)=1-P(X\le2). Either route gives the same answer.

Ready to practise properly?

11 discrete-random-variable questions, marked instantly like the real exam.