Further Statistics 1 (Paper 3B or 4B), topic 1 (Discrete probability distributions), spec point 1.1
Expected value
For a discrete random variable X X X , the expected value (mean) is the probability-weighted average of its values:
E ( X ) = μ = ∑ x P ( X = x ) \mathrm{E}(X) = \mu = \sum x\,\mathrm{P}(X = x) E ( X ) = μ = ∑ x P ( X = x )
Variance
The variance measures spread about the mean. The easiest form to calculate with is
V a r ( X ) = σ 2 = ∑ x 2 P ( X = x ) − μ 2 = E ( X 2 ) − [ E ( X ) ] 2 \mathrm{Var}(X) = \sigma^2 = \sum x^2\,\mathrm{P}(X = x) - \mu^2 = \mathrm{E}(X^2) - \left[\mathrm{E}(X)\right]^2 Var ( X ) = σ 2 = ∑ x 2 P ( X = x ) − μ 2 = E ( X 2 ) − [ E ( X ) ] 2
The standard deviation is σ = V a r ( X ) \sigma = \sqrt{\mathrm{Var}(X)} σ = Var ( X ) .
Expected value of a function
For any function g g g ,
E ( g ( X ) ) = ∑ g ( x ) P ( X = x ) \mathrm{E}\left(g(X)\right) = \sum g(x)\,\mathrm{P}(X = x) E ( g ( X ) ) = ∑ g ( x ) P ( X = x )
Two useful results for linear functions:
E ( a X + b ) = a E ( X ) + b V a r ( a X + b ) = a 2 V a r ( X ) \mathrm{E}(aX + b) = a\mathrm{E}(X) + b \qquad \mathrm{Var}(aX + b) = a^2\,\mathrm{Var}(X) E ( a X + b ) = a E ( X ) + b Var ( a X + b ) = a 2 Var ( X )
Adding b b b shifts every value, so it changes the mean but not the spread.
Worked example
x x x
1
2
3
4
P ( X = x ) \mathrm{P}(X = x) P ( X = x )
0.1
0.3
0.4
0.2
E ( X ) = 0.1 + 0.6 + 1.2 + 0.8 = 2.7 \mathrm{E}(X) = 0.1 + 0.6 + 1.2 + 0.8 = 2.7 E ( X ) = 0.1 + 0.6 + 1.2 + 0.8 = 2.7
E ( X 2 ) = 0.1 + 1.2 + 3.6 + 3.2 = 8.1 ⇒ V a r ( X ) = 8.1 − 2.7 2 = 0.81 \mathrm{E}(X^2) = 0.1 + 1.2 + 3.6 + 3.2 = 8.1 \quad\Rightarrow\quad \mathrm{Var}(X) = 8.1 - 2.7^2 = 0.81 E ( X 2 ) = 0.1 + 1.2 + 3.6 + 3.2 = 8.1 ⇒ Var ( X ) = 8.1 − 2. 7 2 = 0.81
So E ( 3 X − 2 ) = 3 ( 2.7 ) − 2 = 6.1 \mathrm{E}(3X - 2) = 3(2.7) - 2 = 6.1 E ( 3 X − 2 ) = 3 ( 2.7 ) − 2 = 6.1 and V a r ( 3 X − 2 ) = 9 ( 0.81 ) = 7.29 \mathrm{Var}(3X - 2) = 9(0.81) = 7.29 Var ( 3 X − 2 ) = 9 ( 0.81 ) = 7.29 .
For a non-linear function, work it out directly: E ( 2 X ) = 2 ( 0.1 ) + 4 ( 0.3 ) + 8 ( 0.4 ) + 16 ( 0.2 ) = 7.8 \mathrm{E}(2^X) = 2(0.1) + 4(0.3) + 8(0.4) + 16(0.2) = 7.8 E ( 2 X ) = 2 ( 0.1 ) + 4 ( 0.3 ) + 8 ( 0.4 ) + 16 ( 0.2 ) = 7.8 . Notice that this is not 2 2.7 2^{2.7} 2 2.7 .
Checking a model
If a model gives a mean and variance that are close to the mean and variance of observed data, that supports the model. A big difference suggests the model is not suitable.
Common mistake: writing V a r ( a X + b ) = a V a r ( X ) + b \mathrm{Var}(aX + b) = a\,\mathrm{Var}(X) + b Var ( a X + b ) = a Var ( X ) + b . The constant b b b disappears and a a a is squared. Also, E ( g ( X ) ) \mathrm{E}(g(X)) E ( g ( X )) is not g ( E ( X ) ) g(\mathrm{E}(X)) g ( E ( X )) unless g g g is linear.
Exam tip: set the working out in a table with rows for x x x , P ( X = x ) \mathrm{P}(X = x) P ( X = x ) , x P ( X = x ) x\mathrm{P}(X = x) x P ( X = x ) and x 2 P ( X = x ) x^2\mathrm{P}(X = x) x 2 P ( X = x ) . Check the probabilities add to 1 before you start.
Check yourself
E ( X ) = 5 \mathrm{E}(X) = 5 E ( X ) = 5 and V a r ( X ) = 2 \mathrm{Var}(X) = 2 Var ( X ) = 2 . Find E ( 4 X + 1 ) \mathrm{E}(4X + 1) E ( 4 X + 1 ) and V a r ( 4 X + 1 ) \mathrm{Var}(4X + 1) Var ( 4 X + 1 ) .
21 21 21 and 32 32 32 .
E ( X 2 ) = 13 \mathrm{E}(X^2) = 13 E ( X 2 ) = 13 and E ( X ) = 3 \mathrm{E}(X) = 3 E ( X ) = 3 . Find V a r ( X ) \mathrm{Var}(X) Var ( X ) .
13 − 9 = 4 13 - 9 = 4 13 − 9 = 4 .
How do you find E ( 1 X ) \mathrm{E}\left(\dfrac{1}{X}\right) E ( X 1 ) ?
Work out ∑ 1 x P ( X = x ) \sum \dfrac{1}{x}\,\mathrm{P}(X = x) ∑ x 1 P ( X = x ) from the table.
Stuck on this topic? Get friendly one-to-one help with Further Maths. Pick a time that suits you and pay only after the lesson.