Continuous probability distributions · Subtopic 3 of 4
Mean and Variance of a Continuous Variable
Swap the sum for an integral: E(X)=∫xf(x)dx and E(X2)=∫x2f(x)dx, then Var(X)=E(X2)−[E(X)]2 exactly as before. For a symmetric pdf, the mean is simply the centre.
Cambridge 9709 Paper 6Cambridge 9231 Paper 4Edexcel YMA01 WST02Edexcel 9FM0 OptionAQA 7367 Paper 3≈ 35 minRevision 5 · updated 2026-10-27
Section 1 of 14
Learning objectives
Calculate E(X)=∫xf(x)dx.
Calculate E(X2) and Var(X)=E(X2)−[E(X)]2.
Use symmetry to write down the mean.
Use E(aX+b) and Var(aX+b) for continuous variables.
Pause and think
For a discrete variable, E(X)=∑xP(X=x). A continuous variable has no individual probabilities. What should replace the sum?
Section 2 of 14
Core idea
Start hereThe balance point of a shape
Cut the shape under a pdf out of card and balance it on a pencil. The balance point is the mean. For discrete variables we summed x×probability; for continuous ones, we integrate.
f(x) = x/2 on [0, 2] balances at E(X) = 4/3More of the area is on the right, so the balance point is right of the middle: ∫02x⋅2xdx=[6x3]02=34.
Worked examplef(x)=2x on [0,2]
Find E(X) and Var(X).
Goal
Values.
Strategy
Integrate.
1
E(X)=∫022x2dx=[6x3]02=34
Mean.
2
E(X2)=∫022x3dx=[8x4]02=2
Second moment.
3
Var=2−916=92
Formula.
AnswerE=34, Var=92.
✓ CheckMean right of the midpoint 1, since density increases ✓.
⚠️ Common misconceptionE(X2) uses x2f(x)Not (xf(x))2.
Pause and think
Uniform on [0,10]: mean?
Summary
∫xf, ∫x2f.
Var =E(X2)−E(X)2.
Key words
Expectation
Balance point.
📜 HistoryCentres of mass.∫xf(x)dx is exactly the formula for the centre of mass of a thin rod whose density is f(x), which Archimedes studied (without calculus) over 2000 years ago. Statisticians borrowed the idea, and even the word "moment" comes from mechanics.
🤯 Fun factA mean that doesn't exist.Some pdfs have no mean at all. For the Cauchy distribution, ∫xf(x)dx diverges: averages of samples from it never settle down, no matter how many values you take. Exam pdfs are always well-behaved, but nature isn't always.
Keep reading for free
Create a free account to read the rest of this lesson: key formulae, worked examples, explore the graph, common mistakes, exam tip, guided practice and more. Your answers are checked and your progress is saved.