Continuous Random Variables (Edexcel A-Level Further Mathematics): Revision Notes
16.1.2 Continuous Random Variables
Continuous Random Variables
- Discrete random variables can only take discrete values.
- Example:
- does not make sense.
- Continuous random variables can take values across a continuous scale, allowing us to model real-life occurrences such as heights of trees, masses of babies, etc.
Functions of Continuous Random Variables
Given the probability density function of a continuous random variable , it is possible to find the probability density function or cumulative distribution function of where is any function.
Worked Example
Example is a random variable that represents the length of the side of a square. The length of the side of the square is equally likely to take any value between 1 and 3.
Find the cumulative distribution function for the area of the square and hence its probability density function.
Step 1: Define the probability density function for the given variable:

Step 2: Determine the cumulative distribution function for this variable:
Thus:
Step 3: State the relationship between the two variables:
- = length of the side of the square.
- = area of the square. Thus:
Step 4: Define the cumulative distribution function () of the target distribution in terms of probabilities:
Using to define the of .
Step 5: Rewrite the above cumulative distribution function in terms of the original variable. This rearranges to make the original variable the subject:

At this point, check whether the two limits make sense. In this case, can only take values between 1 and 3 from its initial definition.
Step 6: Evaluate the probability using the original cumulative distribution function:
(Remember to state the domain):
Step 7: If asked to find the probability density function, we find that :
Thus:
Past Paper Example
Q4 (June 2010, Q8)
The continuous random variable has a probability density function given by:
An isosceles triangle has equal sides of length , and the angle between them is 30°. (See diagram.)

(i) Find the (cumulative) distribution function of the area of the triangle, and hence show that the probability density function of is over an interval to be stated.
(ii) Find the median value of .
Solution: i)
Thus:
The area of the triangle is given by:
Thus:
Thus:
From the given diagram, we note that and .
Thus:
Thus:
Solution: (ii) Find the median value of .
The median is such that :
Thus:
Mean and Variance of Continuous Random Variables (CRVs)
Recap of Mean and Variance of Discrete Random Variables:
For CRVs, the concept of mean and variance does not change.
To calculate E(X) , we take all the x values multiplied by the corresponding p -values, then calculate the sum.
As the number of strips becomes infinite, becomes
For CRVs:
Where p(x) is the probability density function.
Worked Example

a)
b)
c) Remember:
d)
e)
f)
Remember:
Median, Mode, and Skewness of CRV
Mode
The mode of a continuous random variable (CRV) is the maximum of its probability density function (if a maximum exists).
Example The continuous random variable has a probability density function given by:
Tasks
a) Sketch the probability density function of .
b) Find the mode of .
a)
(Root at $ x = 4$ or $x = -2$
LHS (left-hand side) is in .
RHS (right-hand side) is .

b) The mode may or may not be a local maximum as found by differentiation.

In this P.D.F., differentiating and finding the stationary point would lead to a mode outside of the domain of validity of the P.D.F. Here, from observing where the function is valid, we see the mode is f(0) .
(In this question, the mode is found by differentiation.)
(i.e., mode on this function is the stationary point)
Mode = point with the highest frequency.
:::
Median
The median is the value of to the left of which 0.5 of the probability lies and to the right of which 0.5 of the probability lies.
Method 1: Using P.D.F.
Method 2: Use C.D.F.
Solve
Example: The continuous random variable has a cumulative distribution function given by:
Tasks
a) Find the median value of .
b) Find the quartiles and the interquartile range (IQR) of .
Note: Ensure answers are given to 3 decimal places.
a)
(Since and , this is valid.)
b) (Upper quartile)
(But this is not valid, so we use the second part of the function.)
Thus,
Thus,
Interquartile Range (IQR):