QED
Probability · step 12 of 13

Linearity of expectation

E[aX + bY] = aE[X] + bE[Y] holds always — no independence required. This is remarkable and enormously useful, because it lets you decompose a complicated count into simple pieces whose dependence you can completely ignore. Problems that look intractable by distribution become one-line calculations.

Unlimited questions · marked criterion by criterion · no card needed

Method: how to approach it

The order below is what examiners expect to see, and each step carries its own marks.

  1. Decompose the quantity into a sumWrite X = X₁ + X₂ + … where each piece is simple, typically an indicator.
  2. Compute each expectation separatelyFor an indicator, E[Xᵢ] is just the probability of the corresponding event.
  3. Add them upE[X] = Σ E[Xᵢ]. Ignore all dependence between the pieces — that is the whole point.
  4. Do NOT do this for varianceVar only adds for uncorrelated variables. Linearity is a property of expectation alone.

Worked example

n letters are placed at random into n addressed envelopes. Find the expected number of correct matches.

  1. Let Xᵢ = 1 if letter i lands in its own envelope, and 0 otherwise. Then X = ΣXᵢ.
  2. Each letter is equally likely to land in any envelope, so P(Xᵢ = 1) = 1/n.
  3. E[Xᵢ] = 1/n for each i.
  4. By linearity, E[X] = n × (1/n).

Answer. E[X] = 1, regardless of n. The Xᵢ are strongly dependent, but linearity does not care.

Where marks get dropped

These are the specific errors that cost credit on linearity of expectation questions — QED's rubric penalises each of them separately.

Practise this until it is automatic

Unlimited fresh questions

QED generates new linearity of expectation problems on demand at warm-up, exam and challenge level, so you can drill this one skill until it stops costing you marks.

Marked like an examiner

Every answer is scored against a point-by-point rubric with partial credit, so you see exactly which step of the method broke down — not just a tick or a cross.

Answer in real notation

A one-tap symbol palette, a visual equation editor and a truth-table builder — or photograph your handwritten working and QED converts it to LaTeX.

Saved to your library

Every question you generate is kept and re-takeable as a timed exam, and your Probability mastery is tracked so you know when this is exam-ready.

Linearity of expectation — frequently asked questions

Why does it work without independence?

Because expectation is a sum over outcomes, and summation is linear. The joint distribution never enters the calculation.

What is the classic application?

Coupon collecting, the matching problem above, and expected running times of randomised algorithms — all decompose into indicators.

Does it extend to infinitely many terms?

Yes under mild conditions (absolute convergence), which is what makes E[X] = Σ P(X ≥ k) valid for non-negative integer variables.

The rest of Probability

Events, conditional probability, random variables. Each subtopic below has its own method, worked example and mark-losing traps.

Ready to make linearity of expectation exam-proof?

Generate your first questions free — no card, no setup, no personal data stored. Practise until the method is second nature.

Start practising free →