01 / 20

Discrete Random
Variables

Master the fundamentals of probability distributions, expected value \( E(X) \), and variance \( \text{Var}(X) \) for discrete random variables.

IB Math: Applications & Interpretation

What Is a Random Variable?

A random variable is a function that assigns a numerical value to each outcome of a random experiment. We use capital letters like \( X \) to denote them.

Discrete
Takes countable values: 0, 1, 2, 3, ... Examples: number of heads in coin flips, dice score.
Continuous
Takes any value in an interval. Examples: height, temperature, time. (Not our focus today.)

Probability Distributions

A probability distribution lists every possible value of \( X \) alongside its probability \( P(X = x) \). It's the complete description of how likely each outcome is.

0 0.1 0.2 0.3 0.4 0.1 0.25 0.35 0.2 0.1 1 2 3 4 5 x
\( P(X = x) \)

Reading a Probability Table

The most common way to represent a discrete distribution is a probability table. Each row (or column) maps an outcome to its probability.

\( x \) 12345
\( P(X = x) \) 0.10.250.350.20.1

Expected Value: \( E(X) \)

The expected value (or mean \( \mu \)) is the long-run average of a random variable. It tells you the centre of the distribution.

Think of it as a weighted average: values that are more likely pull the mean toward them, just like heavier masses pull a balance point.

Visualising \( E(X) \)

1 2 3 4 5
\( E(X) = 2.95 \)
\( P(X = x) \)

Variance: \( \text{Var}(X) \)

Variance measures how spread out the values are from the mean. A larger variance means the outcomes are more widely scattered.

\( E(X) \) vs \( \text{Var}(X) \)

\( E(X) \): Centre
Tells you where the distribution is located on average. Units match \( X \).
\( \text{Var}(X) \): Spread
Tells you how spread out values are from the mean. Units are \( X^2 \).
Low Variance 1 2 3 4 5 High Variance 1 2 3 4 5

How to Calculate Step by Step

1
List all values. Write down every possible \( x \) and its probability \( P(X = x) \).
2
Verify validity. Confirm \( \sum P(X = x) = 1 \) and all \( P \geq 0 \).
3
Compute \( E(X) \). Find \( \sum x \cdot P(X = x) \).
4
Compute \( E(X^2) \). Find \( \sum x^2 \cdot P(X = x) \).
5
Find Var and SD. \( \text{Var}(X) = E(X^2) - [E(X)]^2 \), then \( \sigma = \sqrt{\text{Var}(X)} \).

Example 1: Finding \( E(X) \)

A spinner has outcomes with this distribution:

\( x \) 1234
\( P(X=x) \) 0.20.30.30.2

On average, the spinner lands on 2.5. Note: this value is not an actual outcome, it is the theoretical long-run mean.

Example 2: \( \text{Var}(X) \) and \( \sigma \)

Using the same spinner from Example 1, find the variance and standard deviation.

Example 3: Missing Probability

The distribution of \( X \) is given below. Find the value of \( k \).

\( x \) 0123
\( P(X=x) \) 0.1\( k \)0.30.2

Example 4: Full Calculation

A game awards points \( X \) with the distribution below. Find \( E(X) \), \( \text{Var}(X) \), and \( \sigma \).

\( x \) 051020
\( P(X=x) \) 0.40.30.20.1

Common Mistakes

✕ Forgetting \( \sum P = 1 \)
Always verify probabilities sum to 1 before doing any calculation. If they don't, the distribution is invalid.
✕ Confusing \( E(X^2) \) with \( [E(X)]^2 \)
\( E(X^2) \) means "square each \( x \), then take weighted average." \( [E(X)]^2 \) means "find the mean first, then square it." They are different.
✕ Averaging without weights
Don't just add values and divide by the count. Each value must be weighted by its probability: \( E(X) \neq \frac{\sum x}{n} \).

Summary: Key Formulas

Concept Formula Measures
Expected Value \( E(X) = \sum x \cdot P(X=x) \) Centre (mean)
\( E(X^2) \) \( \sum x^2 \cdot P(X=x) \) Needed for variance
Variance \( \text{Var}(X) = E(X^2) - [E(X)]^2 \) Spread (squared units)
Standard Deviation \( \sigma = \sqrt{\text{Var}(X)} \) Spread (original units)
Validity Check \( \sum P(X=x) = 1 \), all \( P \geq 0 \) Distribution is valid

Question 1 of 5

A discrete random variable \( X \) has \( P(X=1) = 0.3 \), \( P(X=2) = 0.5 \), \( P(X=3) = 0.2 \). What is \( E(X) \)?

Question 2 of 5

For a valid probability distribution, which condition must always be true?

Question 3 of 5

Given \( E(X) = 4 \) and \( E(X^2) = 20 \), what is \( \text{Var}(X) \)?

Question 4 of 5

A distribution has \( P(X=0) = 0.5 \), \( P(X=1) = k \), \( P(X=2) = 0.2 \). Find the value of \( k \).

Question 5 of 5

If \( \text{Var}(X) = 9 \), what is the standard deviation \( \sigma \)?