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.

In simpler words

A continuous random variable can be any value in a range. The chance of one exact value is zero. Chances are areas under a curve called the PDF. The total area is 1. The CDF gives the chance of being up to x. Integrate the PDF to get the CDF, and differentiate the CDF to get the PDF.

An everyday comparison

The PDF is like the outline of a sand pile on a ruler. The amount of sand above any stretch of ruler is the probability of landing there, and the whole pile is exactly one bucket. The comparison stops working because the height of the pile is a density, not a probability, so it can be greater than 1.

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.

In the exam

To find k, write ∫f(x) dx = 1 over the full range and solve. For probabilities, integrate f between the limits or use F(b) − F(a). To build F, integrate each piece, adding the area from earlier pieces, and state F for every interval. For the median, solve F(m) = 0.5. For E(X) and Var(X), write the integrals, then Var = E(X2) − [E(X)]2. For Y = g(X), go through the CDF and state the new range.

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