IB Maths AA HL · Unit 4: Statistics and Probability
IB Maths AA HL Advanced Random Variables Questions
Updated October 2026
Exam-style IB Maths AA HL advanced random variables questions with worked solutions. Start with the 3 fully worked examples below — each is solved step by step, showing the working that earns the marks — then try the practice questions and check your working against the mark scheme.
Where students lose marks on advanced random variables
Examiner's noteContinuous random variables: mode, median and expectation from a pdf
Where marks are lost: In both HL sessions pdf questions lost marks: the mode found by differentiating instead of reading the graph (or not recognised as the x-value of the maximum), the median found algebraically when the GDC was quicker, wrong bounds for part of the domain, and very few able to set up an expectation. Comparing a probability with 0.5 to place the median was rarely used.
Examiners flagged this in 2 exam series (May 2024, November 2025). Summarised in our own words from IB subject reports, IB Programme Resource Centre. Read the full note →
Examiner's noteDiscrete probability: independence assumed, E(X²) and Var misused
Where marks are lost: November 2025: many mishandled P(A ∩ B) and the conditional probability that followed, gave the sum-to-1 condition when a range of values of a parameter was asked, squared the probabilities to find E(X²), and did not use Var(a − X) = Var(X). May 2024: choosing one group of people fixed the other (a combinations point missed). The SL reports show the same probability errors.
Examiners flagged this in 3 exam series (May 2024, November 2024, November 2025). Summarised in our own words from IB subject reports, IB Programme Resource Centre. Read the full note →
Advanced Random Variables worked examples
Worked example 1: Linear transformations of expected value and variance · easy
A discrete random variable has an expected value and variance . Find the exact values of and .
Solution
1. Identify the rule for the expected value of a linear transformation: .
2. Substitute the given expected value into the formula: .
3. Evaluate the expected value: .
4. Identify the rule for the variance of a linear transformation: .
5. Substitute the given variance into the formula: .
6. Evaluate to find the final exact variance: and.
3. Evaluate the expected value: .
6 steps · 1 to fill in
Examiner tip: A very common mistake is incorrectly subtracting the constant from the variance or forgetting to square the coefficient when applying the variance transformation rule.
Worked example 2: Finding constants for continuous probability density functions · medium
A continuous random variable has a probability density function for , and otherwise. Find the exact value of the constant .
Solution
1. State the fundamental property of continuous probability density functions: the total area under the valid curve must equal , so .
2. Set up the definite integral with the constant factored out: .
3. Integrate the polynomial terms inside the bracket with respect to : .
4. Substitute the upper limit (since the lower limit evaluates to ): .
5. Simplify the algebraic expression inside the bracket: .
6. Solve the resulting equation for the constant: .
6. Solve the resulting equation for the constant: .
6 steps · 1 to fill in
Examiner tip: Students often forget that the total area under a continuous PDF must equal exactly 1, or they make arithmetic errors when subtracting fractions after substituting the integral limits.
Worked example 3: Calculating variance from a discrete probability distribution · hard
A discrete random variable has a probability distribution given by for . Find the exact value of the constant , and hence calculate .
Solution
1. Set the sum of probabilities equal to to find : .
2. Rewrite the probability distribution explicitly: , , and .
3. Calculate the expected value : .
4. Calculate the expected value of the squares : .
5. Apply the discrete variance formula: .
6. Evaluate the final exact variance: .
4. Calculate the expected value of the squares : .
6 steps · 1 to fill in
Examiner tip: A frequent trap is calculating the sum of the squares and stopping there, forgetting to subtract the square of the expected value to find the actual variance.
Try these IB Maths AA HL advanced random variables questions
Three questions from the bank, easiest first. Mark schemes and AI marking of your written working are in the practice area. One of them has its full worked solution here, open to everyone.
Question 1 · easy · 2 marks · Paper 2
A continuous random variable follows a uniform distribution with probability density function for .
Find .
How many IB Maths AA HL advanced random variables questions are there?
There are 52 exam-style advanced random variables questions in the AA HL question bank (Paper 1: 29 · Paper 2: 23), graded 13 easy, 25 medium, 14 hard. Every question has a full IB-style mark scheme (M, A and R marks).
Is advanced random variables on Paper 1 or Paper 2?
Both. In the bank, Paper 1: 29 · Paper 2: 23. Paper 1 is non-calculator, so practise the exact-value algebra as well as the GDC methods.
Where can I get the mark schemes?
Open the AA HL Unit 4 practice page: every question has a step-by-step IB-style mark scheme, and you can photograph your working for instant AI marking. The worked examples on this page are free.