Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 12 Maths Advanced (2027) Random variables

Expected Value & Variance (Continuous)

20 practice questions 2 video lessons Theory + worked examples

Learn expected value and variance for continuous random variables in NSW Year 12 Mathematics Advanced (NESA outcome MAV-12-07). With a probability density function in place of a table, integrals replace sums when finding the centre and spread of the distribution.

You will learn to find the mean by integrating \(x\) times the density over its domain, find the variance from the integral of \(x^2\) times the density minus the square of the mean, and take the standard deviation — the integral version of the discrete methods.

Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • How to Calculate the Mean, or Expected Value, of a Continuous Random Variable Watch
  • Expected value and Variance of Continuous Random Variables Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

For a continuous variable, expected value and variance use integrals. This Year 12 Mathematics Advanced topic computes \(E(X)\) and \(\mathrm{Var}(X)\) by integration.

\(E(X)=\mu=\int_a^b x\,f(x)\,dx\) and \(\mathrm{Var}(X)=\int_a^b x^{2}f(x)\,dx-\mu^{2}\). A continuous uniform on \([a,b]\) has mean the midpoint \(\dfrac{a+b}{2}\).

A density curveThe density f = 3x squared on 0 to 1, whose mean and variance are found by integration. xy f=3x^2
\(E(X)\) and \(\mathrm{Var}(X)\) come from integrating against \(f(x)\).
\[E(X)=\int_a^b x f(x)\,dx,\qquad \mathrm{Var}(X)=\int_a^b x^{2}f(x)\,dx-\mu^{2}\]
continuous expected value integral of x f; variance integral of x squared f minus mu squared

Method

  1. Integrate \(x f(x)\) for \(E(X)\).
  2. Integrate \(x^{2}f(x)\) for \(E(X^{2})\).
  3. Subtract \(\mu^{2}\) for the variance.
Example 1 — Uniform mean
Find \(E(X)\) for a uniform variable on \([0,4]\).
Solution
\(E(X)\)\(=\)\(\dfrac{0+4}{2}=2\)
Example 2 — Mean by integration
\(f(x)=3x^{2}\) on \([0,1]\). Find \(E(X)\).
Solution
\(\int_0^1 3x^{3}\,dx\)\(=\)\(0.75\)
Example 3 — E(X^2)
For the same \(f\), find \(E(X^{2})\).
Solution
\(\int_0^1 3x^{4}\,dx\)\(=\)\(0.6\)
Example 4 — Variance
Using \(\mu=0.75,\ E(X^{2})=0.6\), find \(\mathrm{Var}(X)\).
Solution
\(\mathrm{Var}(X)\)\(=\)\(0.6-0.5625=0.0375\)

Common pitfalls

Multiply by \(f(x)\) inside the integral.
\(E(X^{2})\) integrates \(x^{2}f(x)\).
Integrate over the whole domain.

Frequently asked questions

How do you find the mean of a continuous random variable?

Integrate x times the density f of x over the domain.

How do you find the variance?

Integrate x squared times f of x, then subtract the mean squared.

What is the mean of a continuous uniform distribution?

The midpoint of the interval, (a plus b) over 2.

Do you multiply by the density inside the integral?

Yes, the integrand is x times f of x for the mean and x squared times f of x for E of X squared.