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, PhET or GeoGebra sim, and synced steps — play it, drag controls, or tap a step.
Identify the pdf and the interval on which it is non-zero; everywhere else .
1 more simulation for this topic — run them in the Simulations section below
Simulations
Every simulation here runs the real model — try the steps on a card, then check what you see against the notes.
1 simulation
- GeoGebraIB AA 4.8
Density and cumulative distribution
Shows a probability function or density next to its cumulative distribution function for discrete and continuous examples.
Try this
- Choose a continuous example.
- Pick a value x and compare the area to its left under the density with the height of F at x.
- Find where F reaches 0.5.
Look for F(x) = P(X ≤ x) is the area accumulated so far; F climbs fastest where f is tallest and the median is where F = 0.5.
University of Melbourne School of Mathematics and Statistics · GeoGebra · GeoGebra Terms of Service
Key formulas
Tap any symbol to reveal exactly what it means and its units.
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.
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 .
Paper 2 is a calculator paper, so you may evaluate any of these definite integrals numerically on your GDC — it is faster and safer than hand arithmetic. But you MUST write down the integral you are evaluating, e.g. , because that line is where the method mark lives. A bare final number with no integral on the page throws marks away even when the answer is right.
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.
The Practice button marks YOUR working exactly this way — analytically, mark by mark, with follow-through. So always show the method: write the total-area integral and set it to 1, solve for the constant, state , show the integration, then give the value. Leave answers in exact form (, ) unless a decimal is asked for. The method marks and FT are what protect your score when a single number slips — and you only get that protection if the working is on the page.
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
Key terms for this topic — skim now; the Check step will test them.
- probability density function
Because the possible values cannot be listed, we describe its behaviour with a probability density function (pdf), written .
- Non-negative
A density can never be negative, so for all .
- Total area one
The variable must take some value, so the whole area under the curve is exactly one, .
- expected value
The expected value (mean) weights each value by its density and integrates; the variance measures spread using and the mean.
- mode
The mode is the value of where the density is greatest — the peak of the curve.
- cumulative distribution function
The cumulative distribution function (cdf) is .
- 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.
- Probability density function (pdf)
A function that describes how probability is distributed for a continuous random variable. Probability is the area under ; the height itself is a density, not a probability.
- The two defining properties of a pdf
- for all (density is never negative). 2. (the total area under the curve is exactly one).
- Probability as area
— the probability that lies in an interval is the area under the pdf over that interval.
- Expected value
— the continuous analogue of : the sum becomes an integral of against the density.
- Variance of a continuous variable
, where . Compute and by integration, then subtract the square of the mean.
- Median of a continuous distribution
The value that splits the area in half: . Equivalently, where is the cumulative distribution function.
- Mode of a continuous distribution
The value of at which the pdf is largest. On an interval it is found by locating the maximum of — often via , or at an endpoint if is monotonic.
- Cumulative distribution function (cdf)
. It runs from 0 up to 1, and the pdf is its derivative, .
Name it
Read the meaning, then pick which of this lesson’s terms it describes. Miss one and you see what your choice really means.
. It runs from 0 up to 1, and the pdf is its derivative, .
Quick check
Write your answer first, then compare it with the model one — the gap is what you would have lost.
Teach it back
If you can explain it simply, you own it — gaps here are marks you’d lose.
Teach it back
Explain this topic as if teaching a friend. We name the gaps an examiner would still dock.
Revision flashcards
Guess first, then flip — retrieval beats re-reading.
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 and 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 and for a pdf with full working on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.
Discuss Continuous random variables and probability density functions
Ask, share and discuss with other Mathematics: Analysis and Approaches HL students