Lesson 4: Expected value of a continuous random variable

Mean and median of p(x)=38x2p(x) = \frac{3}{8}x^2

SkillsExpected valueCumulative distribution functions

Worked example

  • Simple familiar
  • Technology free

XX has pdf p(x)=38x2p(x) = \frac{3}{8}x^2 for 0≤x≤20 \le x \le 2, and p(x)=0p(x) = 0 elsewhere.

(a) Find E⁡(X)\E(X).

(b) The median of XX is 43≈1.59\sqrt[3]{4} \approx 1.59. Explain why the mean is less than the median.

1 of 4 steps
  1. Step 1: Multiply by x and integrate over the support

    E⁡(X)=∫02x⋅38x2 dx=38∫02x3 dx\E(X) = \int_0^2 x \cdot \frac{3}{8}x^2\,dx = \frac{3}{8}\int_0^2 x^3\,dx

Try a similar one

A fresh question of the same kind, checked as you answer, with hints and a full solution.

Method

  1. E⁡(X)=∫x p(x) dx\E(X) = \int x\,p(x)\,dx over the support.

  2. Check the mean lies inside the support, towards the heavier side.

Watch out for

  • Integrating p(x)p(x) instead of x p(x)x\,p(x), which always gives 1.

Save your progress with a free account