In simple terms
A friendly intro before the formal notes — no formulas yet.
From Histograms to Curves
A continuous random variable can take any value in a given range, like height or time. We use a function called a Probability Density Function (PDF) to describe the likelihood of the variable falling within a particular interval, where probability is found by calculating the area under the curve.
Imagine you have a very fine, smooth pile of sand representing all possible outcomes. The height of the sand pile at any point is the PDF - it tells you where values are more likely to occur. To find the probability of a value falling in a certain range, you don't pick a single grain of sand (which has zero width and zero probability); instead, you scoop up a section of sand and measure its volume (the area under the curve). The total volume of sand is always 1.
- 1
Define the Probability Density Function (PDF), , and verify its two key properties: and the total area .
- 2
To find the probability , calculate the definite integral of the PDF between the limits and : .
- 3
Calculate the expectation (mean) using .
- 4
Calculate the variance using , where .
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
Tap a symbol — great for exam definitions
At a glance — side by side
Compare key properties side by side — ideal for exam contrasts.
Discrete vs. Continuous Random Variables
| Feature | Discrete Random Variable (DRV) | Continuous Random Variable (CRV) |
|---|---|---|
| Possible Values | Countable set of distinct values (e.g., 0, 1, 2, ...) | Any value within a given continuous range (e.g., 0 ≤ x ≤ 1) |
| Probability Function | Probability Mass Function (PMF), P(X=x) | Probability Density Function (PDF), f(x) |
| Probability of a single point | P(X=x) can be > 0 | P(X=x) = 0 |
| Total Probability | Sum of all P(X=x) equals 1 (Σ P(X=x) = 1) | Total area under f(x) equals 1 (∫ f(x) dx = 1) |
| Calculating E(X) | E(X) = Σ x * P(X=x) | E(X) = ∫ x * f(x) dx |
| Interval Probability | P(a ≤ X ≤ b) ≠ P(a < X < b) in general | P(a ≤ X ≤ b) = P(a < X < b) |
Possible Values
Discrete Random Variable (DRV)
Continuous Random Variable (CRV)
Probability Function
Discrete Random Variable (DRV)
Continuous Random Variable (CRV)
Probability of a single point
Discrete Random Variable (DRV)
Continuous Random Variable (CRV)
Total Probability
Discrete Random Variable (DRV)
Continuous Random Variable (CRV)
Calculating E(X)
Discrete Random Variable (DRV)
Continuous Random Variable (CRV)
Interval Probability
Discrete Random Variable (DRV)
Continuous Random Variable (CRV)
Full topic notes
Formal explanation with the rigour you need for the exam.
Understanding Continuous Random Variables and the PDF
A continuous random variable (CRV) is a variable that can take any value within a given range or interval. Unlike discrete random variables which have countable outcomes (like the score on a die), a CRV's possible values are infinite (like the exact height of a person). The behaviour of a CRV is described by its probability density function (PDF), denoted f(x). It is crucial to understand that for a CRV, the value of f(x) itself is not a probability. Instead, the area under the graph of f(x) between two points represents the probability that the variable falls within that interval. A direct consequence of this is that the probability of a CRV taking any single exact value is zero, i.e., P(X = c) = 0.
A CRV can take any value in a continuous interval.
The probability density function, f(x), describes the distribution.
Probability is the area under the PDF curve: P(a ≤ X ≤ b) = ∫[a,b] f(x) dx.
The probability of a CRV equalling a specific value is always zero: P(X = c) = 0.
Since P(X=a) = 0 and P(X=b) = 0, remember that P(a ≤ X ≤ b), P(a < X ≤ b), P(a ≤ X < b), and P(a < X < b) are all identical for a continuous random variable. Do not waste time considering the endpoints.
Verifying a Probability Density Function
For a function f(x) to be a valid PDF, it must satisfy two fundamental conditions. Firstly, the function must be non-negative for all possible values of x, meaning f(x) ≥ 0. This makes intuitive sense, as probability density cannot be negative. Secondly, the total area under the curve over its entire domain must be equal to 1. This represents the certainty that the variable will take some value within its range. This condition is expressed mathematically as ∫[-∞,∞] f(x) dx = 1, though in practice the integral is taken over the interval where f(x) is non-zero. Exam questions frequently require you to use this second property to find the value of an unknown constant within a given PDF.
Condition 1: f(x) ≥ 0 for all x in the domain.
Condition 2: The total integral of f(x) over its entire domain is 1.
These two properties are used to validate a function as a PDF.
Finding an unknown constant 'k' in a PDF usually involves setting the total integral equal to 1.
When showing that f(x) ≥ 0, consider the nature of the function. For example, if f(x) = kx² for x > 0, you only need to show that the constant k is positive. If the function is more complex, a sketch or consideration of its minimum value may be required.
The Cumulative Distribution Function (CDF)
The cumulative distribution function (CDF), denoted F(x), gives the probability that the random variable X takes a value less than or equal to x. That is, F(x) = P(X ≤ x). It is obtained by integrating the PDF, f(t), from the lower limit of the domain up to x: F(x) = ∫[-∞,x] f(t) dt. The CDF is a non-decreasing function that starts at 0 and ends at 1. It provides a convenient way to calculate probabilities for intervals, using the property P(a < X ≤ b) = F(b) - F(a). Conversely, the PDF can be found by differentiating the CDF: f(x) = F'(x). A complete definition of F(x) must cover all real numbers, including being 0 below the domain and 1 above it.
F(x) = P(X ≤ x).
F(x) is found by integrating the PDF: F(x) = ∫[lower bound, x] f(t) dt.
The PDF is the derivative of the CDF: f(x) = F'(x).
Probabilities of intervals are found easily: P(a < X ≤ b) = F(b) - F(a).
F(x) must be defined for all real x, typically as a piecewise function.
When constructing a piecewise CDF, be meticulous. Define F(x) = 0 for x less than the lower bound, F(x) = 1 for x greater than the upper bound, and the integral expression for x within the bounds. Check that your function is continuous at the boundaries.
Expectation and Variance of a CRV
The expectation or mean of a CRV, E(X), represents its long-term average value. It is calculated by integrating the product of x and the PDF f(x) over the variable's domain: E(X) = ∫ x * f(x) dx. The variance, Var(X), measures the spread of the distribution around the mean. It is calculated using the formula Var(X) = E(X²) - [E(X)]². To use this, you must first calculate E(X) and E(X²). The term E(X²) is found using the general formula for the expectation of a function of X, E(g(X)) = ∫ g(x) * f(x) dx, where here g(x) = x². Thus, E(X²) = ∫ x² * f(x) dx. The standard deviation is the square root of the variance.
Expectation (Mean): E(X) = ∫ x * f(x) dx.
Expectation of a function g(X): E(g(X)) = ∫ g(x) * f(x) dx.
Specifically, E(X²) = ∫ x² * f(x) dx.
Variance: Var(X) = E(X²) - [E(X)]².
Standard Deviation: SD(X) = √Var(X).
A common mistake is confusing E(X²) with [E(X)]². Calculate E(X) and E(X²) as two separate, distinct steps before substituting them into the variance formula. This systematic approach reduces the chance of calculation errors.
The Probability Density Function (PDF)
For a continuous random variable , we can't assign a probability to a specific outcome. Instead, we use a Probability Density Function, , to describe the distribution of probabilities. The function itself is not a probability, but the area under its curve between two points gives the probability that lies in that interval. For to be a valid PDF, it must satisfy two crucial conditions.
A function is a valid PDF if and only if:
- for all in the domain.
- (The total area under the curve is 1).
The probability of lying in the interval is given by .
For any single point , .
This means .
Cumulative Distribution Function (CDF)
The Cumulative Distribution Function, , gives the probability that the random variable is less than or equal to a particular value . It is the 'running total' of the probability. The CDF is found by integrating the PDF from the lower bound of its domain up to . This is particularly useful for finding probabilities, as .
CDF: Relationship to PDF:
When asked to find the CDF, remember it's a piecewise function. For the example on , the CDF is for , for , and for . Don't forget to define the function for all real numbers.
Expectation and Variance
Just as with discrete variables, we can calculate the mean (or expectation) and variance of a continuous random variable. The expectation, , is the long-run average value of , and the variance, , measures the spread or dispersion of the distribution. The calculations involve integrating and over the domain of the variable.
Expectation: Variance: , where
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
A continuous random variable has the probability density function given by (a) Show that . (b) Find .
- 1
(a) For to be a valid PDF, the total area under the curve must be 1. [M1 for integration, A1 for correct value]
The lifetime, years, of a particular electronic component has PDF given by Find the mean lifetime, , and the variance of the lifetime, .
- 1
First, we find the expectation, . This requires integration by parts: . Let . Let . [M1 for setting up correct integral and identifying integration by parts] As , . At , the term is 0. So the first part is 0. . The mean lifetime is 4 years. [A1 for E(T)]
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.
What is a continuous random variable (CRV)?
A random variable that can take any value within a given range or interval. Examples include height, weight, and time.
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
- ✓
A CRV can take any value in a continuous interval.
- ✓
The probability density function, f(x), describes the distribution.
- ✓
Probability is the area under the PDF curve: P(a ≤ X ≤ b) = ∫[a,b] f(x) dx.
- ✓
The probability of a CRV equalling a specific value is always zero: P(X = c) = 0.
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Practice Questions on Continuous Random Variables
Practice Questions on Continuous Random Variables
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 Practice Questions on Continuous Random Variables on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.