Study Guide

Discrete probability distributions, expectation and variance

IB Mathematics: Analysis and Approaches SLΒ· Unit 4: Statistics & Probability, Topic 6Β· 15 min read

1. Discrete Random Variables and Valid Distributionsβ˜…β˜…β˜†β˜†β˜†β± 4 min

πŸ“˜ Definition

Discrete random variable

A variable that takes a countable set of distinct values, where each value corresponds to a random outcome.

Example:

Number of heads in 3 coin flips, number of customers entering a shop per hour

A discrete probability distribution is described by a probability mass function (PMF) , which gives the probability of the random variable taking each value . For a PMF to be valid, it must satisfy two core conditions:

  • All probabilities satisfy

  • The sum of all probabilities equals 1:

πŸ“ Worked Example

A random variable has PMF for , and 0 otherwise. Find the value of that makes this a valid distribution.

  1. 1

    Use the condition that the sum of all probabilities must equal 1:

  2. 2
    P(X=1)+P(X=2)+P(X=3)=1P(X=1) + P(X=2) + P(X=3) = 1
  3. 3

    Substitute the PMF into the equation:

  4. 4
    k(1)+k(2)+k(3)=1β€…β€ŠβŸΉβ€…β€Š6k=1k(1) + k(2) + k(3) = 1 \implies 6k = 1
  5. 5

    Solve for , then check all probabilities are between 0 and 1:

  6. 6
    k=16,16,26,36∈[0,1] so validk = \frac{1}{6}, \quad \frac{1}{6}, \frac{2}{6}, \frac{3}{6} \in [0,1] \text{ so valid}

Exam tip:

Always check both conditions (sum to 1, all probabilities between 0 and 1) when asked to find a constant in an exam.

2. Expectation of a Discrete Distributionβ˜…β˜…β˜†β˜†β˜†β± 5 min

πŸ“˜ Definition

Expected Value (Expectation)

or

The long-run average value of the random variable over many repeated trials, calculated as a weighted average of outcomes weighted by their probability.

For any discrete random variable , expectation is calculated with the formula:

E[X]=βˆ‘xxβ‹…P(X=x)E[X] = \sum_{x} x \cdot P(X=x)
πŸ“ Worked Example

For the valid distribution for , calculate the expected value of .

  1. 1

    Substitute into the expectation formula:

  2. 2
    E[X]=(1β‹…16)+(2β‹…26)+(3β‹…36)E[X] = (1 \cdot \frac{1}{6}) + (2 \cdot \frac{2}{6}) + (3 \cdot \frac{3}{6})
  3. 3

    Simplify the sum:

  4. 4
    E[X]=1+4+96=146=73β‰ˆ2.33E[X] = \frac{1 + 4 + 9}{6} = \frac{14}{6} = \frac{7}{3} \approx 2.33

3. Variance and Standard Deviationβ˜…β˜…β˜…β˜†β˜†β± 5 min

πŸ“˜ Definition

Variance

or

A measure of the spread of the distribution around the expected value, equal to the expected value of the squared deviation from the mean.

For IB exams, the computational formula below is almost always faster and less error-prone than the definition formula:

Var(X)=E[X2]βˆ’(E[X])2,E[X2]=βˆ‘xx2P(X=x)\text{Var}(X) = E[X^2] - (E[X])^2, \quad E[X^2] = \sum_{x} x^2 P(X=x)

Standard deviation is also a measure of spread, in the same units as the original variable .

πŸ“ Worked Example

Given for for , calculate the variance of .

  1. 1

    First calculate , the expected value of :

  2. 2
    E[X2]=(12β‹…16)+(22β‹…26)+(32β‹…36)=1+8+276=6E[X^2] = (1^2 \cdot \frac{1}{6}) + (2^2 \cdot \frac{2}{6}) + (3^2 \cdot \frac{3}{6}) = \frac{1 + 8 + 27}{6} = 6
  3. 3

    Substitute into the variance formula:

  4. 4
    Var(X)=6βˆ’(73)2=6βˆ’499=59β‰ˆ0.56\text{Var}(X) = 6 - \left(\frac{7}{3}\right)^2 = 6 - \frac{49}{9} = \frac{5}{9} \approx 0.56

Exam tip:

If you are running low on time, use the computational formula to avoid mistakes with squared deviations.

4. Properties of Expectation and Varianceβ˜…β˜…β˜…β˜†β˜†β± 5 min

For any constants and , the following linear properties hold for transformed random variables , and are heavily tested in IB exams:

πŸ“ Worked Example

Given has and , find and for .

  1. 1

    Calculate expectation using the linear property:

  2. 2
    E[2Xβˆ’4]=2E[X]βˆ’4=2(3)βˆ’4=2E[2X - 4] = 2E[X] - 4 = 2(3) - 4 = 2
  3. 3

    Calculate variance, note the constant term disappears:

  4. 4
    Var(2Xβˆ’4)=22Var(X)=4(2)=8\text{Var}(2X - 4) = 2^2 \text{Var}(X) = 4(2) = 8

5. Common Pitfalls

Wrong move:

Forgetting to square the scaling factor when calculating

Why:

Variance measures squared spread, so scaling by changes variance by , not

Correct move:

Always use , the constant term is removed completely

Wrong move:

Only checking that probabilities sum to 1 when finding a constant , ignoring the condition

Why:

Solving for can give a value that produces negative probabilities or probabilities greater than 1

Correct move:

Always verify that all individual probabilities are between 0 and 1 after solving for

Wrong move:

Calculating expectation as an unweighted average of values, ignoring their probabilities

Why:

Confusing the sample mean of data with the expected value of a distribution

Correct move:

Always multiply each by its probability before summing to get expectation

Wrong move:

Mixing up the variance formula to get

Why:

Misremembering where the square goes in the computational formula

Correct move:

The square is only on the second term:

Wrong move:

Expecting expectation to always be one of the possible values of

Why:

Thinking expectation is a possible outcome, not a long-run average

Correct move:

It is completely acceptable for expectation to be a non-integer or value not in the sample space of

6. Quick Reference Cheatsheet

Concept

Formula

Exam Note

Valid PMF

,

Check both conditions

Expectation

Weighted average of outcomes

Variance

Use this formula for exams

Intermediate step for variance

Linear Expectation

Always holds for any constants

Linear Variance

Constant does not change variance

7. Frequently Asked

Do I need to calculate expectation and variance for continuous distributions in AA SL?

No, for IB AA SL you are only required to calculate expectation and variance explicitly for discrete probability distributions.

When this came up on past exams

AI-estimated based on syllabus patterns β€” cross-check with official past papers for accuracy. Use only as revision-focus signals.

  • 2023 Β· 1

    6 mark variance calculation question

  • 2022 Β· 2

    5 mark expectation of transformed X

  • 2021 Β· 1

    4 mark valid distribution check

Going deeper

What's Next

This sub-topic lays the foundation for all named discrete probability distributions you will study next in IB AA SL, including the binomial and Poisson distributions. The expectation and variance rules you learned here apply directly to these distributions, and you can use them to derive the standard formulas for named distributions. These concepts also form the basis for statistical inference, where you use sample statistics to estimate unknown population parameters like the true population mean. Mastery of these calculation methods is required for almost all probability questions on both Paper 1 and Paper 2 of the IB AA SL exam.