Expectation and Variance of a Discrete Random Variable | Cambridge A Level Maths notes

Free preview: Expectation and Variance of a Discrete Random Variable

Expectation: the Mean of X

9709 Paper 5: Probability & Statistics 1

Watch: 1-minute explainer

Let's start with a question. If you spin a spinner thousands of times, what will the average score be? That long-run average is the mean of the random variable.

  • The expectation (or expected value) of X, written E(X) or μ, is the mean of X in the long run.
  • To find it, weight each value by how likely it is: multiply each x by its probability, then add.

E(X)=∑xP(X=x)

💡 In plain words

  • It is the same idea as the mean of a frequency table, ∑fx∑f.
  • The probabilities play the part of f∑f, the fraction of the time each value turns up.
  • E(X) need not be a value X can take. The mean score on a fair die is 3.5.

Recipe: finding E(X)

  1. Make a table of the values x and their probabilities. Why: you need every value with its weight.
  2. Add a row of xP(X=x). Why: each value counts as often as it turns up.
  3. Add that row: the total is E(X).
  4. Sense check: E(X) must lie inside the range of values, nearer the more likely ones.

👀 Watch me do it: X has probability function P(X=x)=x10 for x = 1, 2, 3, 4. Find E(X)

What I writeWhy I do it
Probabilities 0.1, 0.2, 0.3, 0.4Step 1: put x = 1, 2, 3, 4 into x10. They add to 1, as they must.
xP(X=x): 0.1, 0.4, 0.9, 1.6Step 2: multiply each value by its probability.
E(X)=0.1+0.4+0.9+1.6=3Step 3: add.
3 is between 1 and 4, nearer 4Step 4: 4 is the most likely value, so the mean leans that way.

The expectation of X²

  • We will also need E(X2), the mean of the squares, to find the spread.
  • Square each value first, then weight by the same probabilities:

E(X2)=∑x2P(X=x)

  • Example: E(X2)=1(0.1)+4(0.2)+9(0.3)+16(0.4)=0.1+0.8+2.7+6.4=10.

📝 Here's the trap

  • E(X2) is not [E(X)]2. Here 10 is not 32=9.
  • Never square the probabilities either: square the values only.

âœī¸ YOUR TURN 1

Try this first:

X is the score on one roll of a fair six-sided die. Find E(X) and E(X2).

Answer:

  • E(X)=16(1+2+3+4+5+6)=216=3.5.
  • E(X2)=16(1+4+9+16+25+36)=916=15.2 (3 s.f.). Not 3.52=12.25.

âœī¸ YOUR TURN 2

Try this first:

X takes the values −1, 0 and 2 with probabilities 0.2, 0.5 and k. Find k, E(X) and E(X2).

Answer:

  • The probabilities add to 1: 0.2+0.5+k=1, so k=0.3.
  • E(X)=(−1)(0.2)+0(0.5)+2(0.3)=−0.2+0.6=0.4.
  • E(X2)=1(0.2)+0(0.5)+4(0.3)=1.4. Squaring −1 gives +1.

â„šī¸ Cambridge exam tips

  • The syllabus asks you to draw up a probability distribution table and find E(X) and Var(X).
  • MF19 gives E(X)=∑xp and Var(X)=∑x2p−{E(X)}2 for a discrete random variable.
  • Show the sums in full before the answer: unsupported calculator answers get no marks.

Variance: Measuring the Spread of X

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 Discrete random variables (5.4)

  1. Discrete Random Variables and Their Probability Distributions
  2. Expectation and Variance of a Discrete Random Variable
  3. The Binomial Distribution: Conditions, Notation and the Probability Formula
  4. Cumulative Binomial Probabilities: At Most, At Least and Between
  5. The Binomial Mean, Variance and Expected Frequencies
  6. The Geometric Distribution: Waiting for the First Success
  7. The Mean of the Geometric Distribution

Video

What's inside for this topic

7 teacher notes, 274 practice questions, 40 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: Discrete Random Variables and Their Probability Distributions Next note: The Binomial Distribution: Conditions, Notation and the Probability Formula

All Cambridge A Level Maths topics ¡ A Level Maths