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).
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
Probability Mass Function (pmf)
A function that satisfies two core conditions for all valid : , and the sum of over all possible values of equals 1.
A discrete random variable has pmf for , and 0 otherwise. Find the value of .
- 1
Use the core property that the sum of all probabilities equals 1:
- 2
Substitute the pmf into the sum:
- 3
Solve for :
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.
Cumulative Distribution Function (cdf)
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.
Using the pmf for , find the cumulative distribution function .
- 1
For , no values of are less than or equal to , so .
- 2
For , only is included:
- 3
For , add the probability of :
- 4
For , add the probability of :
- 5
For , add all probabilities:
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.
Expected Value
The expected value is the long-run average of over many repeated trials, calculated as: .
Variance
Variance measures spread, calculated most efficiently with the shortcut formula:
For the distribution , , calculate and .
- 1
Calculate expected value by summing :
- 2
Calculate for the variance formula:
- 3
Apply the shortcut variance formula:
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.
Linear Transformation Rules
For any constants and , the following rules hold:
The constant shifts the distribution but does not change its spread, so it does not affect variance.
Given and , find and .
- 1
Apply the expected value rule:
- 2
Apply the variance rule, squaring the coefficient 2:
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.
