Technique Masterclasses

Statistics 1

Deep Dive: Expectation and Variance of Linear Transformations

CODEX Deep-Dive — Expectation and Variance of Linear Transformations (WST01 §5.3)

*Provenance, 2026-09-29: written after reading research/veridian/WST01-verified-facts.md in full (§1 spec table, §2a formula-booklet contents, §2b AO weighting, §5 Section-5 discrete-RV findings, §6 cross-cutting "show that" material, and the file's own 2026-09-12 audit-log entry for this exact lesson) and cross-checking it against the live lesson file content/veridian/curriculum/wst01/expectation-and-variance-of-linear-transformations.ts (read in full), the three existing technique-hub documents in content/veridian/technique-hub/wst01/ (codex-formula-and-method-bank.md, forge-exam-technique-guide.md, signal-frequency-and-boundaries.md), and content/veridian/question-bank/wst01.ts (grepped — its one spec-5.3 item concerns a different trap, E(X)>0 versus a favourable win-probability, and is correctly out of scope here; noted in §6). No new PDFs, web fetches, or external searches were performed. Everything below traces to one of those documents by name.


Why this document exists alongside the lesson file

The taught lesson already derives both shortcut formulae from first principles, works a real backward-solving question (Jun 2024 Q2(c)) end to end for both unknowns, drills a parallel chain-drill, and carries a marked-solution, three trap-taxonomy items and five MCQs. This document does not re-teach any of that. It exists to do three things the lesson's pedagogical shape has no room for: lay the complete sub-case structure of the linear-transformation rule out as one reference (rather than as a single narrative derivation), connect it explicitly to the two other spec points where the same mechanism resurfaces under a different name (coding, §2.2; PMCC invariance, §4.3), and give the exam-angle synthesis its own honest accounting — including a second real backward-solving anchor, Jan 2021 Q4(d), whose own numbers the lesson's audit trail explicitly logged as read and deliberately left unused.


1. The complete real model

1.1 The one formula everything is built from

The Mathematical Formulae and Statistical Tables booklet ("Statistics S1" section, verified in WST01-verified-facts.md §2a) prints exactly three general-purpose definitions for a discrete random variable XX: E(X)=μ=∑xiP(X=xi)E(X)=\mu=\sum x_iP(X=x_i); Var(X)=σ2=∑(xi−μ)2P(X=xi)=∑xi2P(X=xi)−μ2\text{Var}(X)=\sigma^2=\sum(x_i-\mu)^2P(X=x_i)=\sum x_i^2P(X=x_i)-\mu^2; and the general expectation-of-a-function rule E(g(X))=∑g(xi)P(X=xi)E(g(X))=\sum g(x_i)P(X=x_i). Every result in this document is that third formula with a specific gg substituted in — nothing in what follows is a separate axiom.

1.2 Deriving E(aX+b)=aE(X)+bE(aX+b)=aE(X)+b

Set g(x)=ax+bg(x)=ax+b. Then E(aX+b)=∑(axi+b)P(X=xi)E(aX+b)=\sum(ax_i+b)P(X=x_i). Because aa and bb are constants, not random quantities, the sum splits: a∑xiP(X=xi)+b∑P(X=xi)a\sum x_iP(X=x_i)+b\sum P(X=x_i). The first term is aE(X)aE(X) by definition; the second is bb times the total probability, which is 11 for any discrete distribution (spec 5.2), so it collapses to bb. Result: E(aX+b)=aE(X)+bE(aX+b)=aE(X)+b — linearity, and nothing more exotic.

1.3 Deriving Var(aX+b)=a2Var(X)\text{Var}(aX+b)=a^2\text{Var}(X)

Variance is not itself a value of g(X)g(X) summed directly — it is E ⁣[(X−μ)2]E\!\left[(X-\mu)^2\right], built from the squared deviation from the mean, so the mean of aX+baX+b has to be found first. From §1.2 that mean is aE(X)+baE(X)+b. The deviation of aX+baX+b from its own mean is therefore (aX+b)−(aE(X)+b)=a(X−E(X))(aX+b)-(aE(X)+b)=a\big(X-E(X)\big) — note bb has already cancelled, before any squaring happens. Squaring that deviation gives a2(X−E(X))2a^2\big(X-E(X)\big)^2, and taking the expectation pulls the constant a2a^2 back out: Var(aX+b)=a2E ⁣[(X−E(X))2]=a2Var(X)\text{Var}(aX+b)=a^2E\!\left[(X-E(X))^2\right]=a^2\text{Var}(X).

1.4 The sub-case table this collapses into

The general rule has three genuinely distinct special cases, each of which is a legitimate exam question shape in its own right, not merely an algebraic curiosity:

Sub-caseTransformationEE resultVar\text{Var} resultMicro-example
Pure shiftY=X+bY=X+b (a=1a=1)E(X)+bE(X)+bVar(X)\text{Var}(X) — unchangedE(X)=5E(X)=5, Var(X)=2\text{Var}(X)=2, Y=X+10⇒E(Y)=15Y=X+10 \Rightarrow E(Y)=15, Var(Y)=2\text{Var}(Y)=2. Every outcome slid by the same 10; the gaps between them, which is all variance measures, are untouched.
Pure scaleY=aXY=aX (b=0b=0)aE(X)aE(X)a2Var(X)a^2\text{Var}(X)E(X)=5E(X)=5, Var(X)=2\text{Var}(X)=2, Y=3X⇒E(Y)=15Y=3X \Rightarrow E(Y)=15, Var(Y)=18\text{Var}(Y)=18 (not 66).
CombinedY=aX+bY=aX+baE(X)+baE(X)+ba2Var(X)a^2\text{Var}(X)E(X)=5E(X)=5, Var(X)=2\text{Var}(X)=2, Y=3X+10⇒E(Y)=25Y=3X+10 \Rightarrow E(Y)=25, Var(Y)=18\text{Var}(Y)=18 — the shift changes E(Y)E(Y) again but still contributes nothing to Var(Y)\text{Var}(Y).
Decode (inverse direction)Given Var(Y)\text{Var}(Y) where Y=aX+bY=aX+b, recover Var(X)\text{Var}(X)E(X)=E(Y)−baE(X)=\dfrac{E(Y)-b}{a}Var(X)=Var(Y)a2\text{Var}(X)=\dfrac{\text{Var}(Y)}{a^2} — divide by a2a^2, never multiplyVar(Y)=18\text{Var}(Y)=18, a=3⇒Var(X)=18÷9=2a=3 \Rightarrow \text{Var}(X)=18\div9=2.

Every numeric value in this table is a fresh, hand-checked VERIDIAN-original illustration built to show the boundary between sub-cases side by side — none is a past-paper reproduction. The pure-shift and pure-scale rows are the two halves the lesson's derivation already proves together; this table's only job is to make each one individually checkable in isolation, plus name the decode direction as its own row, since that direction is where a distinct real error (§2 below) actually lives.

1.5 What this does not extend to

E(X2)≠[E(X)]2E(X^2)\neq\big[E(X)\big]^2 in general — squaring is not itself a linear transformation (g(x)=x2g(x)=x^2 is not of the form ax+bax+b), so none of the derivation above applies to it. This is not a side note: the verified record shows candidates on this exact spec point conflating the two directly. Examiner commentary on Jan 2021 Q4 records that some candidates believed E(X2)=Var(X)E(X^2)=\text{Var}(X) — collapsing two different quantities (a raw second moment, and that moment with [E(X)]2[E(X)]^2 already subtracted back off) into one. This sits one step upstream of the linear-transformation rule itself: get Var(X)\text{Var}(X) wrong via this conflation and every a2Var(X)a^2\text{Var}(X) calculation built on top of it inherits the error.

1.6 A direct mathematical consequence, not independently exam-verified

Square-rooting §1.3 gives SD(aX+b)=∣a∣⋅SD(X)\text{SD}(aX+b)=|a|\cdot\text{SD}(X) — the absolute value is required because a standard deviation cannot be negative even when aa is. This is a true, checkable consequence of the variance rule and is stated here only as that: nothing in the verified-facts record shows a WST01 question testing standard deviation under a transformation directly (as opposed to testing variance and leaving the candidate to root it). It is included for completeness of the real model, flagged explicitly as derived rather than exam-attested, per this document's own sourcing discipline.

1.7 The memorise/booklet boundary, stated once

The spec's own "Notation and formulae" box states plainly that formulae students are expected to know "will not appear in the booklet" (verified, WST01-verified-facts.md §2a) — and E(aX+b)=aE(X)+bE(aX+b)=aE(X)+b, Var(aX+b)=a2Var(X)\text{Var}(aX+b)=a^2\text{Var}(X) are named explicitly on that expected-to-know list, while the three base definitions in §1.1 above are printed in full. The practical consequence is asymmetric risk: a candidate who forgets E(X)=∑xiP(X=xi)E(X)=\sum x_iP(X=x_i) can recover it from the booklet in the exam room; a candidate who forgets the aa, a2a^2 shortcut pattern has nowhere to look it up and must reconstruct it from §1.2–1.3 live, under time pressure, or lose the mark outright.


2. The same mechanism under a different name: coding (spec 2.2)

Spec item 2.2 ("understanding and use of coding") is a different content area — summarising raw data, not discrete probability distributions — but a linear coding step y=x−aby=\dfrac{x-a}{b} or y=b(x−a)y=b(x-a) is algebraically the same aX+baX+b transformation run in reverse, and the verified record shows the identical failure mode surfacing there independently. Examiner commentary on Jun 2022 Q3(e) (log-length data, coded variable WW) records that correct variance answers were rare, with candidates not decoding at all, or decoding the mean but "scaling using 0.5 instead of 0.5²" — the same missing-square error as §1.3, arrived at from the data-summary side of the spec rather than the discrete-RV side. This confirms the trap is not an artefact of how discrete-RV questions happen to be phrased; it is a property of the underlying arithmetic, and it recurs wherever a linear rescaling and its inverse are both required in one question, regardless of which spec section supplies the cover story.


3. What does not change under a linear transformation: PMCC invariance (spec 4.3 contrast)

A genuinely different real exam fact worth holding up against §1's transformation rules, because it draws the boundary of what "linear transformation" affects and what it leaves alone. Examiner-report material on Jan 2024 Q2(d) confirms Pearson's own credited point that rr is "not affected by (linear) coding" — the product moment correlation coefficient is invariant under a linear rescaling of either variable. This is not a coincidence needing its own memorisation; it falls out of the booklet's own SxxS_{xx}, SyyS_{yy}, SxyS_{xy} formulae (verified, WST01-verified-facts.md §2a) by the identical substitution method as §1.2–1.3. If X′=aX+bX'=aX+b with a>0a>0, every deviation from the mean scales by aa, so Sx′x′=a2SxxS_{x'x'}=a^2S_{xx} and Sx′y=aSxyS_{x'y}=aS_{xy} (only one of the two deviations in the cross-product scales). Substituting into r=Sxy/SxxSyyr=S_{xy}/\sqrt{S_{xx}S_{yy}}:

r′=aSxya2Sxx⋅Syy=aSxy∣a∣SxxSyy=sign(a)⋅r.r'=\frac{aS_{xy}}{\sqrt{a^2S_{xx}\cdot S_{yy}}}=\frac{aS_{xy}}{|a|\sqrt{S_{xx}S_{yy}}}=\text{sign}(a)\cdot r.

For a>0a>0 (the case actual coding always uses) r′=rr'=r exactly — the credited fact. The algebra also shows, as a direct mathematical extension beyond what the cited exam material itself states, that a negative scaling constant would flip rr's sign rather than leave it invariant; no verified WST01 question tests that negative-aa case, so it is flagged here as derived, not attested. The contrast with §1 is the real teaching point: EE and Var\text{Var} of a single variable transform under aX+baX+b exactly as §1 describes, while a relationship between two variables can be completely untouched by the same transformation — two different objects, two different transformation behaviours, easy to blur if the word "coding" is treated as one undifferentiated topic rather than as an operation whose effect depends on what quantity it's being applied to.


4. The tested question shape: solving backwards for two unknowns

Both real anchors the verified-facts record attaches to this spec point ask a candidate to find two unknown constants, not one — and the two constants each come from a different one of §1's two equations, solved in a forced order. The lesson's own worked-chain already reproduces the first anchor (Jun 2024 Q2(c): E(X)=4.6E(X)=4.6, Var(X)=4.14\text{Var}(X)=4.14, Y=aX−bY=aX-b, E(Y)=13.4E(Y)=13.4, Var(Y)=66.24⇒a=4\text{Var}(Y)=66.24 \Rightarrow a=4, b=5b=5) in full, so it is not repeated here.

A second real anchor exists in the verified-facts record and was explicitly read but never written into the taught lesson (its own audit-log entry names this exactly: the numbers were "not written into the lesson," used only as corroboration). It is reproduced here for the first time as a short, standalone micro-example, since it is a genuinely different-shaped instance of the same question type — a non-integer multiplicative constant and a negative additive constant, where the first anchor's were both positive integers:

Jan 2021 Q4(d) (5 marks): W=aX+bW=aX+b, a>0a>0, given E(X)=13E(X)=13, Var(X)=5\text{Var}(X)=5, E(Y)=3E(Y)=3, Var(Y)=1.8\text{Var}(Y)=1.8, and E(W)=E(Y)E(W)=E(Y), Var(W)=Var(Y)\text{Var}(W)=\text{Var}(Y), find aa and bb.

Variance equation first, since it alone determines aa: a2(5)=1.8⇒a2=0.36⇒a=0.6a^2(5)=1.8 \Rightarrow a^2=0.36 \Rightarrow a=0.6 (taking the positive root, as given). Mean equation second, now that aa is known: 3=0.6(13)+b⇒3=7.8+b⇒b=−4.83=0.6(13)+b \Rightarrow 3=7.8+b \Rightarrow b=-4.8.

Both figures (a=0.6a=0.6, b=−4.8b=-4.8) match the verified-facts record exactly and were re-derived independently for this document rather than copied through unchecked. Two real anchors, three years apart, both requiring the identical two-equation, forced-order structure ("solve the variance equation for the multiplicative constant; only then can the mean equation be solved for the additive one") with different-shaped numbers is stronger evidence that this is the genuine tested question shape for this spec point, not an artefact of one series' paper design.


5. Synthesis: every real exam angle this spec point has actually been tested from

Using this course's own stated methodology (signal-frequency-and-boundaries.md): "N of 6" below means confirmed by a specific question/mark-scheme citation in N of the 6 WST01 series with a fully-read examiner report (Jun 2019, Jan 2021, Oct 2021, Jun 2022, Jan 2023, Jun 2024). Absence from a series' count is not evidence the angle was absent that series — only that no citation for it was located.

Exam angleConfirmed inMechanism
Forgetting to square aa in Var(aX+b)\text{Var}(aX+b)2 of 6 (Jan 2021; Jun 2024 — twice independently within that one series, Q2(c) and Q3(d))The headline trap on this spec point; identical mechanism each time.
E(X2)E(X^2) conflated with Var(X)\text{Var}(X)1 of 6 (Jan 2021 Q4)A different, upstream error feeding a wrong Var(X)\text{Var}(X) into any later a2Var(X)a^2\text{Var}(X) step.
Shortcut formulae not known from memory at all1 of 6 (Jan 2021 Q4)Distinct from the square-forgetting trap — a candidate with no formula, correct or not, to substitute into.
Decode-direction error under coding (dividing vs. multiplying by a2a^2; wrong assumed mean)1 of 6 (Jun 2022 Q3(e))Same missing-square mechanism, arrived at from spec 2.2 rather than 5.3 directly (§2 above).
Two-unknown backward solve, forced equation order2 real anchors located (Jun 2024 Q2(c); Jan 2021 Q4(d)), spanning 3 yearsVariance equation must be solved for the multiplicative constant before the mean equation can be solved for the additive one (§4 above).
PMCC invariant under linear coding1 of 6 (via mark-scheme citation, Jan 2024 Q2(d) — outside the 6 ER series, noted separately)Contrast case: shows what a linear transformation does not change (§3 above).

6. Honest boundaries — what this document does not claim


Sources