Mean, Variance, Median and Percentiles of a Continuous Random Variable | Cambridge A Level Maths notes
Free preview: Mean, Variance, Median and Percentiles of a Continuous Random Variable
From Sums to Integrals
9709 Paper 6: Probability & Statistics 2 (A Level)
Watch: 1-minute explainer
Let's start with what you know for discrete X: . But a continuous X has no list of values to add up. Here's the idea: chop the range into very thin strips. A strip at x of width dx has probability about . Adding "value × probability" over all the strips is exactly what an integral does.
- So the sum becomes an integral, and the probability becomes .
- Integrate over the range where f is not zero.
- E(X) is the balance point of the pdf: if you cut the shape out of card, it would balance there.
- The variance formula is exactly the same as for discrete variables.
![Diagram: The triangle is f(x) = x2 on [0, 2]. More of its area is on the right.](https://cdn.globalphysicstutor.com/editor-images/0ae0122f-1598-46c3-a053-c604499d2fb6.png)
What the picture shows
- The triangle is on [0, 2]. More of its area is on the right.
- So it balances at , not at the midpoint 1.
- Check: .
💡 In plain words
- Mean: multiply by x, then integrate.
- E(X²): multiply by x², then integrate.
- Variance: E(X²) minus the mean squared.
👀 Watch me do it: f(x) = x/2 for . Find E(X) and Var(X)
| What I write | Why I do it |
|---|---|
| Multiply f by x. | |
| Integrate and substitute. | |
| Multiply f by . | |
| Mean of squares minus square of mean. |
Coding still works
- and , for the same reasons as before (integrals split just like sums).
- Example: .
📝 Symmetry saves time
- If the pdf is symmetrical about x = c, then with no integration. Say "by symmetry".
- For example on [0, 4] is symmetrical about 2.
- Wrong: . That is always 1. You must multiply by x first.
✏️ YOUR TURN 1
Try this first:
X has pdf for , 0 otherwise. Find E(X), Var(X) and .
Answer:
- .
- .
- .
- .
✏️ YOUR TURN 2
Try this first:
X has pdf for , 0 otherwise. Find E(X) and Var(X) by integration, and check E(X) by symmetry.
Answer:
- . Symmetry: the rectangle is centred on 4 ✓
- .
- .
✏️ YOUR TURN 3
Try this first:
X has pdf for , 0 otherwise. Write down E(X), giving a reason, then find Var(X) and .
Answer:
- f is symmetrical about x = 0 (replacing x by −x gives the same formula), so by symmetry.
- .
- , and . The +2 does nothing to the spread.
The Median and Percentiles by Area
The median m splits the area under the pdf into two halves. So you find it from an area equation, then solve.
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
All notes in Linear combinations and continuous random variables (6.2, 6.3)
- Combining Random Variables: Expectation and Variance of aX + bY
- Linear Combinations of Independent Normal Random Variables
- Continuous Random Variables: Probability Density Functions and Areas
- Mean, Variance, Median and Percentiles of a Continuous Random Variable
Video
What's inside for this topic
4 teacher notes, 187 practice questions, 37 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Previous note: Continuous Random Variables: Probability Density Functions and Areas