Continuous Random Variables (Edexcel IAL Maths S2)
MathematicsΒ· 2018 Issue 3 WST02Β· 25 min read
1. Definition and Core Properties of Continuous Random Variablesβ β ββββ± 5 min
Continuous Random Variable (CRV)
A random variable that can take any value within a continuous range of possible outcomes, rather than discrete separate values. Probabilities are calculated as areas under its probability density function.
Unlike discrete random variables (covered in S1), the probability that a continuous random variable takes a single exact value is always 0, so for all .
State whether each of the following is a valid continuous random variable: (a) The height of a randomly selected 17-year-old student, (b) The number of heads obtained when flipping a fair coin 10 times, (c) The time taken for a runner to complete a 5km race.
- 1
(a) Height can take any value in a continuous range (e.g., 165.3cm, 165.34cm) so this is a CRV.
- 2
(b) The number of heads can only take integer values (0 to 10), so this is a discrete random variable, not continuous.
- 3
(c) Race time can take any positive real value, so this is a CRV.
Exam tip:
If an exam question asks for for a CRV, you can immediately write 0 as your answer with no calculation required.
2. Probability Density Functions (pdf) and Cumulative Distribution Functions (CDF)β β β βββ± 8 min
β Calculator OK
Probability Density Function (pdf, $f(x)$)
The function used to calculate probabilities for a continuous random variable. It satisfies two key conditions: 1. for all real , 2. The total area under the curve over all real is equal to 1: .
Probabilities for intervals are calculated as the integral of the pdf over that interval: .
Cumulative Distribution Function (CDF, $F(x)$)
The function that gives the probability that takes a value less than or equal to : . It is a non-decreasing function with and .
The pdf and CDF are directly related by differentiation: . This relationship lets you convert between the two representations as needed.
A continuous random variable has pdf . (a) Find the value of constant . (b) Calculate . (c) Find the CDF .
- 1
(a) Use the total area condition for pdfs:
- 2
- 3
Solve for : .
- 4
(b) Integrate the pdf over the interval [0.5, 1.5]:
- 5
- 6
- 7
(c) Split the CDF into three intervals: <0, 0β€xβ€2, >2. For , . For , . For :
- 8
- 9
Final CDF:
Exam tip:
Always check that your CDF is continuous at the boundaries of piecewise intervals. Discontinuities in your CDF indicate an integration error, and you will lose marks for this in exams.
3. Mean and Variance of Continuous Random Variablesβ β β βββ± 6 min
β Calculator OK
The expectation (mean) and variance of a CRV are calculated using formulae given in your formula booklet, using integration of the pdf. The formula for variance uses the result , the same as for discrete random variables.
Expectation and Variance for CRVs
Mean: . Expectation of a function of : . Variance: .
Using the pdf from the previous worked example ( for ), calculate (a) , (b) , (c) .
- 1
(a) Calculate E(X):
- 2
- 3
- 4
(b) Use linearity of expectation: . So .
- 5
(c) First calculate E(XΒ²):
- 6
- 7
- 8
Then Var(X) = E(XΒ²) - [E(X)]Β² =
Exam tip:
Linearity of expectation works for all linear combinations of random variables, so you do not need to re-integrate for functions like : use the rule to save time in exams.
4. Mode, Median and Quartilesβ β β β ββ± 6 min
β Calculator OK
Measures of location for CRVs include mode, median and quartiles, each calculated using different rules from the pdf or CDF as detailed below.
Measures of Location for CRVs
Mode: The value of where takes its maximum value. Median: The value such that . Lower quartile : . Upper quartile : . Any percentile is the value such that .
Using the same pdf and CDF as the previous examples, find (a) the mode of , (b) the median of , (c) the upper quartile .
- 1
(a) Find the maximum of for . Differentiate with respect to :
- 2
- 3
Set derivative equal to zero: . Check second derivative is negative (confirm maximum): . So mode = 1.
- 4
(b) Median satisfies . Use the CDF from earlier:
- 5
- 6
Factor the cubic: is a root, so factorize to . Only lies in [0,2], so median = 1.
- 7
(c) Upper quartile satisfies :
- 8
- 9
Solve numerically (calculator permitted): (2 decimal places).
Exam tip:
When solving cubics for median/quartiles, first test integer values in the domain of the distribution, as these are often roots. If not, use trial and improvement or your calculator's equation solver for the required accuracy.
5. Common Pitfalls
Wrong move:
Assuming pdf values cannot be greater than 1, treating them as direct probabilities
Why:
Pdfs measure density, not probability. Only the total area under the pdf equals 1, individual points can have values >1 for narrow distributions.
Correct move:
Validate pdfs by checking total area under the curve equals 1, not individual values.
Wrong move:
Forgetting to add cumulative probability from earlier intervals when calculating CDF for piecewise pdfs
Why:
The CDF accumulates all probability left of , so skipping previous intervals leads to a discontinuous, incorrect CDF.
Correct move:
For piecewise pdfs, calculate as the sum of total area of all left intervals plus the integral over the current interval to .
Wrong move:
Calculating variance as instead of
Why:
Variance measures spread around the mean, so subtracting the squared mean is required to get the correct value.
Correct move:
Write the full variance formula before substituting values to avoid missing the subtraction step.
Wrong move:
Setting to find the median, using the pdf instead of the CDF
Why:
The median is the point with 50% cumulative probability below it, which is defined by the CDF, not the pdf height.
Correct move:
Always use the CDF for median, quartiles and percentiles, setting for the required cumulative probability .
Wrong move:
Calculating for a CRV as a non-zero value
Why:
Continuous random variables have infinitely many possible outcomes, so the probability of any single exact value is zero.
Correct move:
Immediately answer 0 for any question for a CRV, and ignore equality signs when calculating interval probabilities.
6. Quick Reference Cheatsheet
Quantity | Formula | Key Notes |
|---|---|---|
Equal to | ||
CDF | , , non-decreasing | |
Pdf from CDF | Differentiate each interval for piecewise CDFs | |
Mean | ||
Variance | Given in formula booklet | |
Mode | Max of | Check boundaries and stationary points |
Median | Solve using CDF | |
Quartiles | , | Use numerical methods if needed |
7. Frequently Asked
Do I need to include integration constants when finding CDF from pdf?
No. The CDF satisfies and , so any constant of integration is fixed by these boundary conditions. For piecewise pdfs, ensure your CDF is continuous at interval boundaries.
Can the pdf take a value greater than 1?
Yes. Unlike probabilities, pdf values measure density, not direct probability. Only the total area under the entire pdf must equal 1; individual points can have values >1 for distributions concentrated over narrow intervals.
How do I find the mode for a piecewise pdf?
Evaluate the maximum value of across all intervals of its domain. Check stationary points by differentiating on each continuous interval, and compare with values at interval boundaries to find the global maximum.
Going deeper
What's Next
Now that you have mastered continuous random variables, you are ready to move on to named continuous distributions, starting with the continuous uniform (rectangular) distribution, the next core topic in Edexcel IAL S2. You will apply all the skills you learned here (pdf/CDF manipulation, mean, variance, median and mode calculation) to this standardized distribution, before moving on to hypothesis testing and sampling distributions later in the unit. Make sure you practice a range of past exam questions on this topic, as it is frequently tested as a standalone 8-12 mark question, and often combined with other S2 topics in later sections of the exam. Pay special attention to piecewise functions, as these appear in over 70% of CRV questions on Edexcel IAL S2 papers.
