Skip to main content
Further statistics
Lesson 53 of 75
Standard practice

Continuous expectation

Objective. Calculate moments from density functions.

  1. 1. Learn
  2. 2. Worked example
  3. 3. Practice
  4. 4. Feedback
  5. 5. Continue

Learn: the key idea

For a continuous random variable with density function f(x), the expectation (mean) is E(X) = ∫xf(x)dx over the domain, and more generally E(g(X)) = ∫g(x)f(x)dx for any function g. The variance is Var(X) = E(X²) − [E(X)]², requiring the separate calculation of E(X²) = ∫x²f(x)dx. These moments summarise the centre and spread of the distribution, directly analogous to the discrete formulae but using integration instead of summation. For example, for a uniform density on [0,2], E(X) = ∫₀^2 x(1/2)dx = 1, the midpoint, as expected by symmetry.

Worked example

A continuous random variable X has density f(x) = 3x² for 0 ≤ x ≤ 1. Find E(X) and Var(X).

3 … 0
Illustrated card showing 3 … 0
  1. 1E(X) = ∫₀^1 x(3x²)dx = ∫₀^1 3x³ dx = [3x⁴/4]₀^1 = 3/4
  2. 2E(X²) = ∫₀^1 x²(3x²)dx = ∫₀^1 3x⁴ dx = [3x⁵/5]₀^1 = 3/5
  3. 3Var(X) = E(X²) − [E(X)]² = 3/5 − (3/4)²
  4. 4Simplify: 3/5 − 9/16 = 48/80 − 45/80 = 3/80

Answer: E(X) = 3/4, Var(X) = 3/80

Concept mastery

Based on your past attempts at this lesson — the question types to practise again come first.

Complete a practice set to see your concept breakdown here.

Practice

Practice happens on its own screen, one question at a time. Answers stay hidden until you submit yours, and you can stop and pick up at the same question later.

Start practising

Common mistake. Students compute Var(X) as E((X−μ)²) by expanding incorrectly, or forget to square E(X) separately, writing Var(X) = E(X²) − E(X). Always compute E(X²) and [E(X)]² separately before subtracting.

Your progress

Tick each step as you finish it. Your exact reading position is saved automatically, so Continue drops you back on the same line.

0 of 5 steps complete

Your place saves automatically as you read.

My dashboard