Free IB Maths AA HL lesson: Continuous random variables (pdf, cdf)
A ready-to-teach IB Maths AA HL lesson on Continuous random variables (pdf, cdf) (Unit 4 · Statistics & Probability): editable slides and teacher notes, free; a printable worksheet in 3 levels with answers for school plans. About 55 minutes.

Free with a teacher account. Sign in with Google, Microsoft or email and download the slides and teacher notes.
What's inside
- Slides (PowerPoint, editable) · freeabout 12 slides: do now, objectives, key ideas, a worked example step by step, “your turn”, practice QR code, exit ticket
- Teacher notes (PDF) · freelesson plan with timings, common mistakes, homework links
- Worksheet (PDF) · school plans6 questions, 23 marks: Fluency, Reasoning, Exam-style. Included with school plans and the teacher trial.
- Answers (PDF) · school plansthe answer to every worksheet question, from its mark scheme. Included with school plans and the teacher trial.
Learning objectives
- Probability Density Functions
- Mode, Median & Probabilities from a pdf
- Piecewise pdfs & Linear Transformations
- Finding Constants & Probabilities
- Mean, Variance, Median & Mode
Key ideas on the slides
- A pdf f(x) satisfies f(x) ≥ 0 and ∫ f(x) dx = 1 over its domain; P(a < X < b) = ∫ₐᵇ f(x) dx.
- E(X) = ∫ xf(x) dx; Var(X) = ∫ x²f(x) dx − [E(X)]².
- The median m solves ∫_(−∞)ᵐ f(x) dx = 0.5; the mode is where f(x) is greatest (check end points).
- For a piecewise pdf, integrate each piece over its own interval.
By the end of the lesson, students should be able to answer a question like: Find k if f(x) = kx2 on [0, 2] is a pdf.
Key vocabulary
- probability density function: A function whose area gives probabilities.
- median: The value with half the probability below it.
- mode: The value where the pdf is greatest.
Common mistakes this lesson tackles
- Continuous random variables: mode, median and expectation from a pdf. Mode: x where f(x) is greatest on the domain (look at the graph and the endpoints). Median m: ∫ from the lower end to m of f(x) dx = 0.5, solved on the GDC. E(X) = ∫ x f(x) dx over the whole domain.
- Treating f(a) as P(X = a).
- Finding the median by setting f(m) = 0.5.
- Forgetting to subtract [E(X)]² for the variance.
The worked example
A continuous random variable X has a probability density function f(x) = k(4x − x²) for 0 ≤ x ≤ 4, and f(x)=0 otherwise. Find the exact value of the constant k.
- State the fundamental property of continuous probability density functions: the total area under the valid curve must equal 1, so ∫₀⁴ f(x) dx = 1.
- Set up the definite integral with the constant k factored out: k ∫₀⁴ (4x − x²) dx = 1.
- Integrate the polynomial terms inside the bracket with respect to x: k [2x² − x³/3]₀⁴ = 1.
- Substitute the upper limit (since the lower limit evaluates to 0): k (2(16) − 64/3) = 1.
- Simplify the algebraic expression inside the bracket: k (32 − 64/3) = k ((96 − 64)/3) = k (32/3) = 1.
- Solve the resulting equation for the constant: k = 3/32.
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.
Calculator tips
- Use the GDC's numerical integral to check that the area is 1.
Where this lesson fits
Continuous random variables (pdf, cdf) is in Unit 4 · Statistics & Probability of the IB Maths AA HL scheme of work.
- The lesson before: Variance of a discrete random variable; E(aX + b) & Var(aX + b) (scheme-of-work lessons: Linear Transformations — E(aX + b), Var(aX + b) & Effect of Constant Changes on Data; Random Variables: E(aX + b) and Var(aX + b))
- The next lesson: Bayes' theorem (scheme-of-work lessons: Applications & Problem Solving; Problems with Three Events)
Lesson plan
| 0–5 min | Do now: students write down what they remember about Binomial distribution and Variance of a discrete random variable; E(aX + b) & Var(aX + b) |
| 5–8 min | Share the learning objective and success criteria |
| 8–20 min | Teach: the worked example, step by step; students copy the method |
| 20–25 min | Your turn: 1 mini-whiteboard question; check every board before moving on |
| 25–42 min | Practise: the worksheet (6 questions in 3 levels, with school plans and the teacher trial) or the topic's practice questions online; move up a level after two right in a row |
| 42–47 min | Plenary: 1-question exit ticket; collect it to plan the next lesson |
For students: practise this topic
The worksheet's QR code opens the IB Maths AA HL Unit 4: Advanced Random Variables practice questions.
With a school plan
Set Continuous random variables (pdf, cdf) as homework marked by AI, print this lesson's levelled worksheet with answers, and rebuild the lesson for your class with Create lesson. Free for 30 days as a teacher, no card.
Is it free, can I edit the slides, what do students use for homework? See questions teachers ask.