Mean and Variance of a Continuous Random Variable, and Functions of X | Edexcel A Level Further Maths notes

Free preview: Mean and Variance of a Continuous Random Variable, and Functions of X

From Sums to Integrals

Watch: 1-minute explainer

All four boards teach this (AQA, Edexcel, OCR A, OCR B (MEI)); check your own specification for whether it is AS or A level content.

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).

Answer:

  • E(1X)=∫021x·38x2dx=∫0238xdx=38×2=0.75.
  • 1E(X)=11.5=0.667. Not the same.

✏️ YOUR TURN 3

Try this first:

X has pdf f(x)=34(1−x2) for −1⩽x⩽1, 0 otherwise. Write down E(X), giving a reason, then find Var(X) and Var(5X+2).

Answer:

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 Continuous Random Variables

  1. Continuous Random Variables: Probability Density Functions and Areas
  2. Cumulative Distribution Functions, Medians, Quartiles, Mode and Skewness
  3. Mean and Variance of a Continuous Random Variable, and Functions of X

Video

What's inside for this topic

3 teacher notes, 78 practice questions, 47 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: Cumulative Distribution Functions, Medians, Quartiles, Mode and Skewness

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

All Edexcel A Level Further Maths topics · A Level Further Maths