Continuous random variables

Further Maths · Further Probability & Statistics. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Further Maths topics

The idea

A continuous random variable X can take any value in a range, so the probability of one exact value is zero. Probabilities are areas under the probability density function (PDF), f(x). The total area is 1 and f(x) is never negative. The PDF may have different formulae on different parts of the range.

The cumulative distribution function (CDF), F(x), is the probability that X is at most x. It is the area under f to the left of x, so integrating f gives F and differentiating F gives f.

To find the distribution of a function of X, such as Y = X3, work with the CDF: write P(Y ≤ y) as a probability about X, then differentiate to get the PDF of Y.

Rules to remember

Common mistake

To find the PDF of Y = g(X), students just replace x by y in f(x). Probabilities transform through the CDF, so find FY(y) first and then differentiate. Also change the range: if 0 ≤ x ≤ 2 and Y = X3, then 0 ≤ y ≤ 8.

Worked example

X has probability density function f(x) = 4x3 for 0 ≤ x ≤ 1, and f(x) = 0 otherwise. Y = X2. Find the probability density function of Y.

  1. CDF of X: F(x) = ∫ 4t3 dt from 0 to x = x4, for 0 ≤ x ≤ 1.
  2. CDF of Y: P(Y ≤ y) = P(X2 ≤ y) = P(X ≤ √y) = (√y)4 = y2.
  3. Differentiate: the PDF of Y is 2y. Since 0 ≤ x ≤ 1, the range is 0 ≤ y ≤ 1.
  4. Check: ∫ 2y dy from 0 to 1 = 1.

Answer: PDF of Y is 2y for 0 ≤ y ≤ 1, and 0 otherwise

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Keep going

← MomentumInference using normal and t-distributions →Take a Further Maths test