Open Mathhh

Continuous random variables and pdfs

Statistics · worksheets 25 to 30 · 3 min read

I can

  • use the fact that the total area under a pdf is 1 to find k
  • find a probability by integrating the pdf
  • give exact answers as fractions

Key idea

A probability density function (pdf) f(x) describes a continuous variable X. Its graph never goes below zero, and the total area under it is 1. So the integral of f(x) over its whole range equals 1. This lets you find a missing constant k.

To find P(a < X < b), integrate f(x) from a to b. Useful integrals: the integral of x is x²/2, of x² is x³/3, and of a constant c is cx.

Worked examples

Example 1: f(x) = kx² for 0 ≤ x ≤ 3, find k

Watch it: f(x) = kx² for 0 ≤ x ≤ 3: k, step by step:

  1. The total area under a pdf is 1.
  2. From 0 to 3: k × 27/3 = 9k.
  3. Set the area equal to 1.
  4. Divide by 9.
  5. The area under f(x) = x²/9 from 0 to 3 is 1.
  1. The integral of kx² is kx³/3.
  2. From 0 to 3: k × 27/3 = 9k.
  3. Set 9k = 1.

k = 1/9

Example 2: f(x) = k(x + 1) for 0 ≤ x ≤ 2, find k

Watch it: f(x) = k(x + 1) for 0 ≤ x ≤ 2: k, step by step:

  1. Find the area under x + 1 from 0 to 2.
  2. At 2: 4. At 0: 0. So the area is 4.
  3. The total area under the pdf is 1.
  4. Divide by 4.
  5. The area under f(x) = (x + 1)/4 from 0 to 2 is 1.
  1. The integral of (x + 1) is x²/2 + x.
  2. At 2 this is 2 + 2 = 4, and at 0 it is 0. So 4k = 1.

k = 1/4

Example 3: f(x) = (1/9)x² for 0 ≤ x ≤ 3, find P(1 < X < 2)

Watch it: f(x) = x²/9 for 0 ≤ x ≤ 3: P(1 < X < 2), step by step:

  1. Integrate x²/9.
  2. At 2 this is 8/27. At 1 it is 1/27. Subtract.
  3. The answer is 7/27.
  4. The shaded area between 1 and 2 is 7/27.
  1. The integral is x³/27.
  2. At 2 this is 8/27, and at 1 it is 1/27.
  3. Subtract.

P(1 < X < 2) = 7/27

Try it

The pdf of X is f(x) = kx for 0 ≤ x ≤ 4, and 0 otherwise. Find k. Give your answer as a fraction.
Show answer1/8
The pdf of X is f(x) = kx² for 0 ≤ x ≤ 2, and 0 otherwise. Find k. Give your answer as a fraction.
Show answer3/8
The pdf of X is f(x) = k(3 - x) for 0 ≤ x ≤ 3, and 0 otherwise. Find k. Give your answer as a fraction.
Show answer2/9
The pdf of X is f(x) = k for 0 ≤ x ≤ 5, and 0 otherwise. Find k. Give your answer as a fraction.
Show answer1/5
The pdf of X is f(x) = (1/8)x for 0 ≤ x ≤ 4, and 0 otherwise. Find P(X < 2). Give your answer as a fraction.
Show answer1/4

Common mistakes

  • Setting the integral equal to k instead of 1. The area must be 1.
  • Forgetting to subtract the value at the lower limit.
  • Dividing by the power wrongly. The integral of x² is x³/3, so divide by 3.

Remember

  • Total area = 1.
  • P(a < X < b) is the integral of f(x) from a to b.

Practise this

Worksheets 25 to 30 of Statistics practise this note. Sign in to Mathhh, write your answers by hand and see your marks straight away.

Open Mathhh

More Statistics notes

Keep learning

All Statistics notes · All study notes