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

Paul

Written by: Paul

Reviewed by: Dan Finlay

Updated on

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
    space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space mu equals straight E left parenthesis X right parenthesis equals integral subscript negative infinity end subscript superscript infinity x f left parenthesis x right parenthesis space straight d x

    • 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
    space space space space space space space space space space space space space space space space space space space space space space space space space space space space space sigma squared equals Var left parenthesis x right parenthesis equals integral subscript negative infinity end subscript superscript infinity x squared f left parenthesis x right parenthesis space straight d x minus mu squared

    • This is also given in the exam formula booklet

    • In the formula note that

      • mu equals straight E open parentheses X close parentheses from above

      • straight E left parenthesis X squared right parenthesis equals integral subscript negative infinity end subscript superscript infinity x squared f left parenthesis x right parenthesis space straight d x

      • So this is equivalent to Var open parentheses X close parentheses equals straight E open parentheses X squared close parentheses minus open square brackets straight E open parentheses X close parentheses close square brackets squared

  • The formula booklet also gives the formula space Var left parenthesis x right parenthesis equals integral subscript negative infinity end subscript superscript infinity left parenthesis x minus mu right parenthesis squared space f left parenthesis x right parenthesis space straight d x

    • but this is usually not as practical for solving problems

  • Be careful not to confuse straight E open parentheses X squared close parentheses and open square brackets straight E open parentheses X close parentheses close square brackets squared

    • space straight E left parenthesis X squared right parenthesis equals integral subscript negative infinity end subscript superscript infinity x squared f left parenthesis x right parenthesis space straight d x   "mean of the squares"

    • mu squared equals space open square brackets straight E left parenthesis X right parenthesis close square brackets squared equals open square brackets integral subscript negative infinity end subscript superscript infinity x f left parenthesis x right parenthesis space straight d x close square brackets squared   "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! integral subscript negative infinity end subscript superscript infinity basically just means "integrate over all values of x for which f open parentheses x close parentheses not equal to 0".

E.g. if random variable X has the pdf

f open parentheses x close parentheses equals open curly brackets table row cell 3 over 64 open parentheses 3 minus x close parentheses open parentheses x plus 1 close parentheses squared space space space space space space minus 1 less or equal than x less or equal than 3 end cell row cell 0 space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space otherwise end cell end table close

then the mean is given by

straight E left parenthesis X right parenthesis equals integral subscript negative 1 end subscript superscript 3 x open parentheses 3 over 64 open parentheses 3 minus x close parentheses open parentheses x plus 1 close parentheses squared close parentheses space straight d x space

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

space straight E left parenthesis a X plus b right parenthesis equals a straight E left parenthesis X right parenthesis plus b

and

space Var left parenthesis a X plus b right parenthesis equals a squared Var left parenthesis X right parenthesis

  • 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

a) Find the mean of X.

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

b) Find standard deviation of X.

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

You've read 0 of your 5 free revision notes this week

Unlock more, it's free!

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

the (exam) results speak for themselves:

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: Maths Subject 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.