Study Guide

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

πŸ“˜ Definition

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 .

πŸ“ Worked Example

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. 1

    (a) Height can take any value in a continuous range (e.g., 165.3cm, 165.34cm) so this is a CRV.

  2. 2

    (b) The number of heads can only take integer values (0 to 10), so this is a discrete random variable, not continuous.

  3. 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

πŸ“˜ Definition

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: .

πŸ“˜ Definition

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.

πŸ“ Worked Example

A continuous random variable has pdf . (a) Find the value of constant . (b) Calculate . (c) Find the CDF .

  1. 1

    (a) Use the total area condition for pdfs:

  2. 2
    ∫02kx(2βˆ’x)dx=k∫02(2xβˆ’x2)dx=k[x2βˆ’x33]02=k(4βˆ’83)=kβ‹…43=1\int_0^2 kx(2-x) dx = k \int_0^2 (2x - x^2) dx = k \left[ x^2 - \frac{x^3}{3} \right]_0^2 = k \left(4 - \frac{8}{3}\right) = k \cdot \frac{4}{3} = 1
  3. 3

    Solve for : .

  4. 4

    (b) Integrate the pdf over the interval [0.5, 1.5]:

  5. 5
    P(0.5<X<1.5)=34∫0.51.5(2xβˆ’x2)dx=34[x2βˆ’x33]0.51.5P(0.5 < X < 1.5) = \frac{3}{4} \int_{0.5}^{1.5} (2x - x^2) dx = \frac{3}{4} \left[ x^2 - \frac{x^3}{3} \right]_{0.5}^{1.5}
  6. 6
    =34((2.25βˆ’1.125)βˆ’(0.25βˆ’0.0417))=34Γ—0.9167=0.6875=1116= \frac{3}{4} \left( \left(2.25 - 1.125\right) - \left(0.25 - 0.0417\right) \right) = \frac{3}{4} \times 0.9167 = 0.6875 = \frac{11}{16}
  7. 7

    (c) Split the CDF into three intervals: <0, 0≀x≀2, >2. For , . For , . For :

  8. 8
    F(x)=34∫0x(2tβˆ’t2)dt=34[t2βˆ’t33]0x=3x2βˆ’x34F(x) = \frac{3}{4} \int_0^x (2t - t^2) dt = \frac{3}{4} \left[ t^2 - \frac{t^3}{3} \right]_0^x = \frac{3x^2 - x^3}{4}
  9. 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.

πŸ“˜ Definition

Expectation and Variance for CRVs

Mean: . Expectation of a function of : . Variance: .

πŸ“ Worked Example

Using the pdf from the previous worked example ( for ), calculate (a) , (b) , (c) .

  1. 1

    (a) Calculate E(X):

  2. 2
    E(X)=∫02xβ‹…34(2xβˆ’x2)dx=34∫02(2x2βˆ’x3)dx=34[2x33βˆ’x44]02E(X) = \int_0^2 x \cdot \frac{3}{4}(2x - x^2) dx = \frac{3}{4} \int_0^2 (2x^2 - x^3) dx = \frac{3}{4} \left[ \frac{2x^3}{3} - \frac{x^4}{4} \right]_0^2
  3. 3
    =34(163βˆ’4)=34Γ—43=1= \frac{3}{4} \left( \frac{16}{3} - 4 \right) = \frac{3}{4} \times \frac{4}{3} = 1
  4. 4

    (b) Use linearity of expectation: . So .

  5. 5

    (c) First calculate E(XΒ²):

  6. 6
    E(X2)=∫02x2β‹…34(2xβˆ’x2)dx=34∫02(2x3βˆ’x4)dx=34[x42βˆ’x55]02E(X^2) = \int_0^2 x^2 \cdot \frac{3}{4}(2x - x^2) dx = \frac{3}{4} \int_0^2 (2x^3 - x^4) dx = \frac{3}{4} \left[ \frac{x^4}{2} - \frac{x^5}{5} \right]_0^2
  7. 7
    =34(8βˆ’6.4)=34Γ—1.6=1.2=65= \frac{3}{4} \left( 8 - 6.4 \right) = \frac{3}{4} \times 1.6 = 1.2 = \frac{6}{5}
  8. 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.

πŸ“˜ Definition

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 .

πŸ“ Worked Example

Using the same pdf and CDF as the previous examples, find (a) the mode of , (b) the median of , (c) the upper quartile .

  1. 1

    (a) Find the maximum of for . Differentiate with respect to :

  2. 2
    fβ€²(x)=34(2βˆ’2x)=32(1βˆ’x)f'(x) = \frac{3}{4}(2 - 2x) = \frac{3}{2}(1 - x)
  3. 3

    Set derivative equal to zero: . Check second derivative is negative (confirm maximum): . So mode = 1.

  4. 4

    (b) Median satisfies . Use the CDF from earlier:

  5. 5
    3m2βˆ’m34=0.5β€…β€ŠβŸΉβ€…β€Š3m2βˆ’m3=2β€…β€ŠβŸΉβ€…β€Šm3βˆ’3m2+2=0\frac{3m^2 - m^3}{4} = 0.5 \implies 3m^2 - m^3 = 2 \implies m^3 - 3m^2 + 2 = 0
  6. 6

    Factor the cubic: is a root, so factorize to . Only lies in [0,2], so median = 1.

  7. 7

    (c) Upper quartile satisfies :

  8. 8
    3Q32βˆ’Q334=0.75β€…β€ŠβŸΉβ€…β€Š3Q32βˆ’Q33=3β€…β€ŠβŸΉβ€…β€ŠQ33βˆ’3Q32+3=0\frac{3Q_3^2 - Q_3^3}{4} = 0.75 \implies 3Q_3^2 - Q_3^3 = 3 \implies Q_3^3 - 3Q_3^2 + 3 = 0
  9. 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.