Mean & Variance of a CRV (DP IB Analysis & Approaches (AA): HL): Revision Note

Paul

Written by: Paul

Reviewed by: Dan Finlay

Updated on

Guided study available on this topic

Understand this topic with deeper explanations and understanding checks.

Mean & variance of a CRV

What are the mean and variance of a continuous random variable?

  • E(X) is the expected value, or mean, of the continuous random variable X

    • E(X) can also be denoted by μ

  • Var(X) is the variance of the continuous random variable X

    • Var(X) can also be denoted by σ2

    • The standard deviation, σ, is the square root of the variance

How do I find the mean and variance of a continuous random variable?

  • The mean is given by
                                  μ=E(X)=∫−∞∞xf(x) dx

    • This is given in the exam formula booklet

    • If the graph of y = f(x) has an axis of symmetry at x = a, then E(X) = a

  • The variance is given by
                                 σ2=Var(x)=∫−∞∞x2f(x) dx−μ2

    • This is also given in the exam formula booklet

    • In the formula note that

      • μ=E(X) from above

      • E(X2)=∫−∞∞x2f(x) dx

      • So this is equivalent to Var(X)=E(X2)−[E(X)]2

  • The formula booklet also gives the formula  Var(x)=∫−∞∞(x−μ)2 f(x) dx

    • but this is usually not as practical for solving problems

  • Be careful not to confuse E(X2) and [E(X)]2

    •  E(X2)=∫−∞∞x2f(x) dx   "mean of the squares"

    • μ2= [E(X)]2=[∫−∞∞xf(x) dx]2   "square of the mean"

Examiner Tips and Tricks

Using your GDC to draw the graph of y = f(x) can highlight any symmetrical properties, and reduce the work involved in finding the mean and variance.

Examiner Tips and Tricks

Don't panic about those infinity symbols in the integrals! ∫−∞∞ basically just means "integrate over all values of x for which f(x)≠0".

E.g. if random variable X has the pdf

f(x)={364(3−x)(x+1)2      −1≤x≤30                                     otherwise

then the mean is given by

E(X)=∫−13x(364(3−x)(x+1)2) dx 

How do I find the mean and variance of a linear transformation of a continuous random variable?

  • For the continuous random variable X, with mean E(X) and variance Var(X), you can find the mean and variance of the associated random variable aX + b by using

 E(aX+b)=aE(X)+b

and

 Var(aX+b)=a2Var(X)

  • Note that adding on a constant b affects the mean, but it doesn't affect the variance

Worked Example

A continuous random variable, X, is modelled by the probability distribution function, f(x), such that

 f(x)={1.5x2(1−0.5x)0≤x≤20otherwise

a) Find the mean of X.

Answer:

4-7-1-ib-hl-aa-only-we3a-soltn

b) Find standard deviation of X.

Answer:

4-7-1-ib-hl-aa-only-we3b-soltn

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Paul

Author: Paul

Expertise: Maths Content Creator

Paul has taught mathematics for 20 years and has been an examiner for Edexcel for over a decade. GCSE, A level, pure, mechanics, statistics, discrete – if it’s in a Maths exam, Paul will know about it. Paul is a passionate fan of clear and colourful notes with fascinating diagrams.

Dan Finlay

Reviewer: Dan Finlay

Expertise: Portfolio Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.