Medians, Quartiles, Mode and Skewness of a Continuous Random Variable | Analysis and Approaches IB Maths notes
Free preview: Medians, Quartiles, Mode and Skewness of a Continuous Random Variable
The Cumulative Distribution Function F(x)
Analysis and approaches: HL only (AHL 4.14)
Every probability for a continuous variable so far has meant a fresh integral. What if one function could give you every "less than" probability instantly?
Let's start with the median. Half the probability is below it, so the area under the pdf from the lowest value of X up to the median m is 0.5. To work with that, it helps to name the area so far: F(x) = P(X โค x). (AHL 4.14 does not list F(x) or the "cdf", but the idea is exactly this integral.)
- F is the cumulative distribution function (cdf).
- t is a dummy variable, used because x is already the upper limit.
- Differentiating F gives f back. That's the fundamental theorem of calculus.
- So the median equation is , which is the same as F(m) = 0.5.
- Any probability: . No more integrating.
๐ก In plain words
- F(x) is the area under f to the left of x.
- It starts at 0, climbs, never goes down, and ends at 1.
โ๏ธ YOUR TURN 1
Try this first:
X has pdf for , 0 otherwise. Find F(x) and use it to find .
Answer:
- for (0 below, 1 above).
- .
Building F for a piecewise pdf
Use the pdf from the previous note: on [0, 2] and on (2, 3].
- First piece: integrate from the start of the range up to x.
- Find the area up to the join. Why: the next piece must start from there.
- Later piece: area up to the join + integral from the join to x.
- Check: the pieces meet at each join, and F reaches 1 at the end.
๐ Watch me do it: build F(x) for the triangle pdf
| What I write | Why I do it |
|---|---|
| for | First piece. |
| Area up to the join. | |
| for | Carry the area so far. |
| At t = 2, . Then simplify. | |
| Check: at x = 3, ; at x = 2, | Joins up and ends at 1. Good. |
๐ Here's the trap
- Don't start the second piece from 0. Each piece of F must carry the total area of all earlier pieces.
- Check that the pieces join up (F is always continuous) and that F reaches 1.
- Give F for all x, including the 0 and 1 lines.

What the picture shows
- The blue part is for . It reaches .
- Wrong: on its own starts the second piece at 0. F drops at x = 2 and ends at . A running total can never go down, and it must finish at 1.
- Right: start from the area so far, .
- Check: the pieces join at and F reaches 1 at x = 3.
โ๏ธ YOUR TURN 2
Try this first:
X has pdf for , for , 0 otherwise. Find F(x) for all x.
Answer:
- For : . So .
- For : .
- F = 0 for x < 0 and F = 1 for x > 4. Check: F(4) = 4 โ 2 โ 1 = 1.
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.
Log in ยท Subscribe ยท Start free trial
All notes in HL: Continuous random variables (AHL 4.14)
- Variance of a Discrete Random Variable and Coding with aX + b
- Continuous Random Variables: Probability Density Functions and Areas
- Medians, Quartiles, Mode and Skewness of a Continuous Random Variable
- Mean and Variance of a Continuous Random Variable
What's inside for this topic
4 teacher notes, 72 practice questions, 40 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 Next note: Mean and Variance of a Continuous Random Variable