Home › IB Maths AA HL › Questions by topic › Advanced Random Variables

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.

Practise Advanced Random Variables questions →

🖩 How do I do this on my calculator? Keystrokes for the Casio fx-CG50, TI-84 Plus CE and TI-Nspire.

Try it first

1 of 5

  1. Question 1 of 5
  2. Question 2 of 5
  3. Question 3 of 5
  4. Question 4 of 5
  5. Question 5 of 5

Start with one question on linear combinations of random variables. Stuck? Take a hint. No sign-in needed.

E(X)=10 and Var(X)=4. Find Var(3X+2).
Choose your answer · keys 1–4

What you need to know

E(X), Var(X), and the shortcut Var(X) = E(X²) - [E(X)]². HL AA Paper 1 tests these algebraically without a GDC. Discrete probability distributions — expectation and variance overview →

B(n, p) with mean np and variance np(1-p). HL AA combines the binomial with conditional probability, or asks you to find n or p from a given probability. Binomial distribution — mean, variance and unknown parameters overview →

What's examined in AA HL advanced random variables

The question bank covers these advanced random variables question types (number of questions in brackets):

Key formulas

Variance (continuous)
Var(X)=E(X2)−[E(X)]2

In the same notation as the IB formula booklet. All AA HL formulas →

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 X has an expected value E(X)=4 and variance Var(X)=3. Find the exact values of E(5X−2) and Var(5X−2).

Solution

6 steps · 1 to fill in
Examiner tip: A very common mistake is incorrectly subtracting the constant b from the variance or forgetting to square the coefficient a when applying the variance transformation rule.

Worked example 2: Finding constants for continuous probability density functions · medium

A continuous random variable X has a probability density function f(x)=k(4x−x2) for 0≤x≤4, and f(x)=0 otherwise. Find the exact value of the constant k.

Solution

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 X has a probability distribution given by P(X=x)=cx4 for x∈{1,2,3}. Find the exact value of the constant c, and hence calculate Var(X).

Solution

6 steps · 1 to fill in
Examiner tip: A frequent trap is calculating the sum of the squares E(X2) and stopping there, forgetting to subtract the square of the expected value [E(X)]2 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 T follows a uniform distribution with probability density function f(t)=0.5 for 2≤t≤4. Find P(T≥3.5).

Attempt it and see the mark scheme →

Question 2 · medium · 6 marks · Paper 2

A continuous random variable X has the probability density function f(x)=38x2 for 0≤x≤2. Calculate the expected value E(X) and the variance Var(X).

Full worked solution Free, no sign-in

Use E(X)=∫xf(x)dx: E(X)=∫0238x3dx M1
E(X)=38[x44]02=38×4=1.5 A1
Find E(X2)=∫0238x4dx M1
E(X2)=38[x55]02=38×325=2.4 A1
Use Var(X)=E(X2)−[E(X)]2: Var(X)=2.4−1.52 M1
Var(X)=0.15 A1

Every question here has a full worked solution. See them all →

Question 3 · hard · 6 marks · Paper 1

A continuous random variable X has the probability density function f(x)=12sin⁡x for 0≤x≤π. Using integration by parts, prove that the expected value E(X)=π2.

Attempt it and see the mark scheme →

Free account — sign in to download Topic PDF: 7 questions with worked answers · 5 pages · 236 KB

All 52 advanced random variables questions with mark schemes →

Save your progress and get 5 more questions on every topic, checked instantly. Free account, no card. Join free

Revise advanced random variables for the exam

FAQ

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.

What else is free here

Save your answers and track your progressA free account remembers the questions you have done on every topic and brings you back to this page.

Join free

Already have an account? Sign in

Teaching this topic?

Free ready-to-teach lesson (slides and teacher notes): Continuous random variables (pdf, cdf).

More AA HL Unit 4 topics

Keep revising AA HL: AA HL revision notes · IB Maths AA HL past papers · AA HL common exam mistakes · AA HL syllabus checklist · AA HL statistics and probability knowledge organiser

← All IB Maths AA HL topics