In simple terms
A friendly intro before the formal notes — no formulas yet.
From Bars to Area
For a discrete variable, probability sits on top of separate values like bars on a chart. For a continuous variable — a height, a time, a mass — there are infinitely many possible values, so probability is spread out as area beneath a smooth curve . The height of the curve is a density, not a probability; you only get a probability once you sweep out an interval and measure the area under the curve above it.
Think of a long, thin strip of gold leaf whose total mass is exactly 1 gram, laid along a ruler. It is thicker in some places and thinner in others; the thickness at a point is the density . Asking for the mass at a single point is meaningless — a point has no width, so it holds no mass. But ask for the mass of the piece between and and there is a definite answer: it is the area of that slice of leaf, found by integrating the thickness across the interval. Probability behaves exactly like that mass: none at a point, a real amount over an interval, and 1 gram in total.
- 1
Identify the pdf and the interval on which it is non-zero; everywhere else .
- 2
Check it is a valid pdf: it is never negative, , and the total area is one, . Use the second condition to find any unknown constant.
- 3
Find a probability by integrating over the interval: (endpoints do not matter, since ).
- 4
Find the summary numbers by integration: , , the median from , and the mode from the maximum of .
Explore the concept
Use the live diagram and synced steps — play it or tap a step card to walk through.
Key formulas
Tap any symbol to reveal exactly what it means and its units.
Tap a symbol — great for exam definitions
Tap a symbol — great for exam definitions
Full topic notes
Formal explanation with the rigour you need for the exam.
The probability density function
A continuous random variable can take any value in an interval of the real line. Because the possible values cannot be listed, we describe its behaviour with a probability density function (pdf), written . The single most important idea in the whole topic is this: for a continuous variable, probability is area. The height of the curve at a point is a density, not a probability — it tells you how concentrated the probability is near , but on its own it is not a chance of anything. You only obtain a probability once you integrate the density across an interval, sweeping out an area.
This immediately explains a fact that surprises students: the probability of any single exact value is zero, , because a point has no width and so bounds no area. As a result, for a continuous variable it never matters whether endpoints are included: .
The two properties of a valid pdf
The probability that falls in an interval is then the area under the pdf over that interval, obtained by a definite integral.
P(a \le X \le b) = \int_a^b f(x),dx
Non-negative: a density can never be negative, so for all . (Note it may exceed 1 — it is a density, not a probability.)
Total area one: the variable must take some value, so the whole area under the curve is exactly one, . In practice outside a finite interval, so this reduces to an integral over that interval.
The total-area rule is the engine of the topic — it is what lets you pin down an unknown constant in the formula for .
Expected value and variance
The summary numbers you met for discrete variables all carry over — but the sum becomes an integral . The expected value (mean) weights each value by its density and integrates; the variance measures spread using and the mean.
The pattern is always the same: to average any quantity of , integrate that quantity multiplied by the density across the interval. Multiply by for the mean, by for , and the variance follows by subtracting the square of the mean. As with discrete variables, the mean need not be a value is especially likely to take — it is a balance point of the area.
Median and mode
The median is the value that divides the area under the pdf into two equal halves, so it satisfies . The mode is the value of where the density is greatest — the peak of the curve. If has a turning point inside the interval you find the mode with ; if is increasing or decreasing throughout, the mode is at an endpoint. The next example finds the mode, median and variance of one distribution in a single pass.
The cumulative distribution function (brief)
It is often convenient to accumulate probability from the left. The cumulative distribution function (cdf) is . It starts at 0, rises to 1, and never decreases. Two relationships make it useful: the pdf is the derivative of the cdf, , and any interval probability can be read off directly as . The median condition can then be stated compactly as .
For the density on , integrating gives for (with for and for ). Notice as required, and setting recovers the median found above — the same result reached through the cdf instead of a fresh integral.
Common mistakes examiners penalise
Forgetting the total-area rule — when the pdf contains an unknown constant, your first line must be over the correct interval; skipping it loses the opening method mark and every mark that depends on the constant.
Treating as a probability — the height of the pdf is a density and may exceed 1; a probability is only produced by integrating over an interval, never by reading off at a point.
Thinking can be non-zero — for a continuous variable it is always 0, so ; do not fuss over strict versus non-strict endpoints.
Confusing with — the expected value weights by the density, ; the bare integral of is just the total probability (which is 1).
Forgetting to square the mean in the variance — , not ; the mean must be squared before subtracting.
Solving the wrong equation for the median — the median splits the area in half, ; it is not the value where (that would be a density, not an area).
Confusing mode with median or mean — the mode is where peaks, found from or at an endpoint, not from an integral.
Giving a rounded decimal when an exact form is available — leave answers such as , or exact unless the question asks for a decimal; premature rounding can lose the accuracy mark.
Where this leads
Every technique in this lesson is a single idea worn many ways: integrate the density against whatever you want to average. That is exactly the machinery behind the continuous distribution you will meet most often — the normal distribution, whose bell-shaped pdf you already handle on the GDC and whose probabilities are these same areas under a curve. The cdf you met briefly here is precisely what a GDC evaluates when it returns a normal probability, and the mean, variance, median and mode transfer unchanged. Master the routine now — check the pdf, enforce total area 1, then integrate to find probabilities and summary numbers — and continuous probability becomes one method you apply again and again.
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
A continuous random variable has probability density function for , and otherwise. (a) Find the value of . (b) Hence find . [5]
- 1
(a) Use the total-area rule. For a valid pdf the whole area is 1. [M1: set the integral of the pdf equal to 1] [M1: integrate] [A1: ]
A continuous random variable has pdf for and 0 otherwise. Find the value of and then . [6]
- 1
Model answer — full working.
A continuous random variable has pdf for and 0 otherwise. (a) Write down the mode. (b) Find the median . (c) Find . [8]
- 1
(a) Mode. On the density is increasing, so its greatest value is at the right endpoint. [R1: is increasing on the interval] Mode . [A1]
How it all connects
The big idea sits in the middle — tap a linked idea to explore the link.
Tap a linked idea to see how it connects back to the main topic — that connection is what examiners reward.
Glossary
Try to recall each definition before you reveal it.
Quick check
Answer in your head first — then tap to check. No pressure.
Revision flashcards
Flip the card. Test yourself before the exam.
Continuous random variable
A random variable that can take any value in an interval of the real line — something you measure, such as a height, a time or a mass — rather than a countable list of separate values.
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
- ✓
Non-negative: a density can never be negative, so for all . (Note it may exceed 1 — it is a density, not a probability.)
- ✓
Total area one: the variable must take some value, so the whole area under the curve is exactly one, . In practice outside a finite interval, so this reduces to an integral over that interval.
- ✓
The total-area rule is the engine of the topic — it is what lets you pin down an unknown constant in the formula for .
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Get a Paper 2 calculation marked: find $k$ and $E(X)$ for a pdf with full working
Get a Paper 2 calculation marked: find and for a pdf with full working
Extra simulations & links
PhET, GeoGebra and other curated tools — open in a new tab.
Frequently asked
Checkpoint
One marked question is worth ten re-reads — close the loop before you move on.
Reading it isn’t knowing it — prove it.
Before you move on: do Get a Paper 2 calculation marked: find $k$ and $E(X)$ for a pdf with full working on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.