Study Guide

Discrete probability distributions

IB Mathematics: Analysis and Approaches Higher LevelΒ· Unit 4: Statistics & ProbabilityΒ· 35 min read

1. Discrete Random Variables & Probability Mass Functionsβ˜…β˜…β˜†β˜†β˜†β± 10 min

A random variable assigns a numerical value to each outcome of a random experiment. A discrete random variable can only take a countable number of distinct values (e.g., 0, 1, 2, ..., 10).

πŸ“˜ Definition

Discrete Random Variable

A random variable that can only take a countable set of distinct possible values.

Example:

Number of red cards in a 5-card hand, number of defective items in a batch

πŸ“˜ Definition

Probability Mass Function (pmf)

p(x)=P(X=x)p(x) = P(X=x)

A function that satisfies two core conditions for all valid : , and the sum of over all possible values of equals 1.

πŸ“ Worked Example

A discrete random variable has pmf for , and 0 otherwise. Find the value of .

  1. 1

    Use the core property that the sum of all probabilities equals 1:

    βˆ‘x=14P(X=x)=1\sum_{x=1}^4 P(X=x) = 1
  2. 2

    Substitute the pmf into the sum:

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

    Solve for :

    k=110k = \frac{1}{10}

Exam tip:

Always check that the sum of your pmf equals 1. This is a quick check to catch calculation errors in exams.

2. Cumulative Distribution Functionsβ˜…β˜…β˜…β˜†β˜†β± 10 min

The cumulative distribution function (cdf) gives the probability that the random variable is less than or equal to a given value . It is useful for calculating probabilities of ranges of outcomes.

πŸ“˜ Definition

Cumulative Distribution Function (cdf)

F(x)=P(X≀x)F(x) = P(X \leq x)

For discrete , is the sum of the pmf for all values of that are less than or equal to . It is always non-decreasing and ranges from 0 to 1.

πŸ“ Worked Example

Using the pmf for , find the cumulative distribution function .

  1. 1

    For , no values of are less than or equal to , so .

  2. 2

    For , only is included:

    F(x)=P(X=1)=110F(x) = P(X=1) = \frac{1}{10}
  3. 3

    For , add the probability of :

    F(x)=110+210=310F(x) = \frac{1}{10} + \frac{2}{10} = \frac{3}{10}
  4. 4

    For , add the probability of :

    F(x)=310+310=35F(x) = \frac{3}{10} + \frac{3}{10} = \frac{3}{5}
  5. 5

    For , add all probabilities:

    F(x)=610+410=1F(x) = \frac{6}{10} + \frac{4}{10} = 1

Exam tip:

To find for discrete , use the shortcut . This saves time compared to summing all individual probabilities.

3. Expected Value and Varianceβ˜…β˜…β˜…β˜†β˜†β± 12 min

Expected value (or population mean) measures the center of the distribution, while variance measures the spread around the center. Both are core summary statistics for any discrete distribution.

πŸ“˜ Definition

Expected Value

E[X] or ΞΌE[X] \text{ or } \mu

The expected value is the long-run average of over many repeated trials, calculated as: .

πŸ“˜ Definition

Variance

Var(X) or Οƒ2\text{Var}(X) \text{ or } \sigma^2

Variance measures spread, calculated most efficiently with the shortcut formula:

Var(X)=E[X2]βˆ’(E[X])2,where E[X2]=βˆ‘xx2p(x)\text{Var}(X) = E[X^2] - (E[X])^2, \quad \text{where } E[X^2] = \sum_x x^2 p(x)
πŸ“ Worked Example

For the distribution , , calculate and .

  1. 1

    Calculate expected value by summing :

    E[X]=(1β‹…110)+(2β‹…210)+(3β‹…310)+(4β‹…410)=3010=3E[X] = (1 \cdot \frac{1}{10}) + (2 \cdot \frac{2}{10}) + (3 \cdot \frac{3}{10}) + (4 \cdot \frac{4}{10}) = \frac{30}{10} = 3
  2. 2

    Calculate for the variance formula:

    E[X2]=(12β‹…110)+(22β‹…210)+(32β‹…310)+(42β‹…410)=10010=10E[X^2] = (1^2 \cdot \frac{1}{10}) + (2^2 \cdot \frac{2}{10}) + (3^2 \cdot \frac{3}{10}) + (4^2 \cdot \frac{4}{10}) = \frac{100}{10} = 10
  3. 3

    Apply the shortcut variance formula:

    Var(X)=10βˆ’(3)2=1\text{Var}(X) = 10 - (3)^2 = 1

Exam tip:

Always use the shortcut. It avoids expanding squared deviations and reduces calculation errors.

4. Linear Transformations of Discrete Random Variablesβ˜…β˜…β˜…β˜†β˜†β± 8 min

Exams commonly ask for the expected value and variance of a linear transformation of a random variable, of the form where and are constants. There are simple rules for these calculations.

πŸ“˜ Definition

Linear Transformation Rules

For any constants and , the following rules hold:

E[aX+b]=aE[X]+bVar(aX+b)=a2Var(X)E[aX + b] = aE[X] + b \\ \text{Var}(aX + b) = a^2 \text{Var}(X)

The constant shifts the distribution but does not change its spread, so it does not affect variance.

πŸ“ Worked Example

Given and , find and .

  1. 1

    Apply the expected value rule:

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

    Apply the variance rule, squaring the coefficient 2:

    Var(2Xβˆ’5)=(2)2Var(X)=4(1)=4\text{Var}(2X - 5) = (2)^2 \text{Var}(X) = 4(1) = 4

5. Common Pitfalls

Wrong move:

Forgetting to find the scaling constant to normalize the pmf

Why:

You assume the given function is already a valid pmf without checking the sum of probabilities

Correct move:

Always calculate by setting the sum of all probabilities equal to 1 before any further calculations

Wrong move:

Calculating instead of

Why:

Confusing the expected value rule with the variance rule

Correct move:

Remember scaling by scales the spread by , so always square the coefficient for variance

Wrong move:

Calculating for discrete

Why:

Forgetting that includes , so it overcounts for strict inequality

Correct move:

For discrete ,

Wrong move:

Treating a discrete random variable as continuous and integrating over an interval

Why:

Confusing discrete and continuous random variable probability rules

Correct move:

Always sum the probabilities of individual discrete outcomes when working with discrete distributions

Wrong move:

Ignoring a negative variance result and proceeding

Why:

You don't remember that variance can't be negative

Correct move:

A negative variance always indicates an arithmetic error. Go back and recalculate and

6. Quick Reference Cheatsheet

Concept

Key Formula/Rule

Discrete Random Variable

Countable distinct values

pmf

,

cdf

Expected Value

Variance

,

Linear transform expectation

Linear transform variance

7. Frequently Asked

What is the difference between a pmf and a cdf?

A pmf gives the probability of being exactly equal to a value , while a cdf gives the probability of being less than or equal to . You can derive a cdf from a pmf by cumulative summation.

Can variance ever be negative?

No. Variance is the expected value of a squared deviation from the mean, so it is always non-negative. A negative variance indicates an arithmetic error in your calculation.

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.

  • 2021 Β· 2

    8 mark expectation calculation

  • 2022 Β· 1

    6 mark pmf finding

  • 2023 Β· 2

    Variance of transformed variable

What's Next

Discrete probability distributions form the foundation for all named discrete distributions you will study next, and are used extensively in statistical inference later in the course. Mastery of pmf, cdf, expected value, and variance here will make working with binomial, Poisson, and other common discrete distributions much simpler. The rules for linear transformations also prepare you for working with combinations of multiple random variables, a common topic in higher-level IB exam questions.