Mean and Variance of a Continuous Random Variable | Analysis and Approaches IB Maths notes

Free preview: Mean and Variance of a Continuous Random Variable

From Sums to Integrals

Analysis and approaches: HL only (AHL 4.14)

Watch: 1-minute explainer

Let's start with what you know for discrete X: E(X)=∑xP(X=x). But a continuous X has no list of values to add up. Here's the idea: chop the range into very thin strips. A strip at x of width dx has probability about f(x)dx. Adding "value × probability" over all the strips is exactly what an integral does.

  • So the sum becomes an integral, and the probability becomes f(x)dx.

E(X)=∫xf(x)dxE(g(X))=∫g(x)f(x)dxVar(X)=E(X2)−[E(X)]2

  • Integrate over the range where f is not zero.
  • E(X) is the balance point of the pdf: if you cut the shape out of card, it would balance there.
  • The variance formula is exactly the same as for discrete variables.

Diagram: The triangle is f(x) = x2 on [0, 2]. More of its area is on the right.

What the picture shows

  • The triangle is f(x)=x2 on [0, 2]. More of its area is on the right.
  • So it balances at E(X)=43, not at the midpoint 1.
  • Check: E(X)=∫02x22dx=43.

💡 In plain words

  • Mean: multiply by x, then integrate.
  • E(X²): multiply by x², then integrate.
  • Variance: E(X²) minus the mean squared.

👀 Watch me do it: f(x) = x/2 for 0⩽x⩽2. Find E(X) and Var(X)

What I writeWhy I do it
E(X)=∫02x·x2dx=∫02x22dxMultiply f by x.
=[x36]02=86=43Integrate and substitute.
E(X2)=∫02x32dx=[x48]02=2Multiply f by x2.
Var(X)=2−(43)2=2−169=29Mean of squares minus square of mean.

Coding still works

  • E(aX+b)=aE(X)+b and Var(aX+b)=a2Var(X), for the same reasons as before (integrals split just like sums).
  • Example: Var(3X+5)=9×29=2.

📝 Symmetry saves time

  • If the pdf is symmetrical about x = c, then E(X)=c with no integration. Say "by symmetry".
  • For example f(x)=332x(4−x) on [0, 4] is symmetrical about 2.
  • Wrong: E(X)=∫f(x)dx. That is always 1. You must multiply by x first.

✏️ YOUR TURN 1

Try this first:

X has pdf f(x)=38x2 for 0⩽x⩽2, 0 otherwise. Find E(X), Var(X) and Var(2−4X).

Answer:

  • E(X)=∫0238x3dx=38×4=1.5.
  • E(X2)=∫0238x4dx=38×325=2.4.
  • Var(X)=2.4−2.25=0.15.
  • Var(2−4X)=16×0.15=2.4.

✏️ YOUR TURN 2

Try this first:

For the same X, find E(1X) and compare it with 1E(X).

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in HL: Continuous random variables (AHL 4.14)

  1. Variance of a Discrete Random Variable and Coding with aX + b
  2. Continuous Random Variables: Probability Density Functions and Areas
  3. Medians, Quartiles, Mode and Skewness of a Continuous Random Variable
  4. Mean and Variance of a Continuous Random Variable

Video

What's inside for this topic

4 teacher notes, 72 practice questions, 40 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Medians, Quartiles, Mode and Skewness of a Continuous Random Variable

Mean and Variance of a Continuous Random Variable on other exam boards

All Analysis and Approaches IB Maths topics · IB Maths