Technique Masterclasses

Statistics 1

Deep Dive: Regression Gradient Interpretation Extrapolation

CODEX Deep-Dive — Regression Gradient Interpretation and Extrapolation: the Statistical Case Behind the Exam Convention (WST01 spec 4.1/4.2)

Provenance, 2026-09-29: written after reading research/veridian/WST01-verified-facts.md in full (§1 spec transcription, §2a formula-booklet contents, §2b AO weighting, §4 "Section 4," §7–§8, and — in full, as the primary anchor for this document — the per-lesson audit entry for wst01-regression-gradient-interpretation-extrapolation.ts, which discloses the real Jun 2022 Q2 data line used in §3 below); the existing lesson file content/veridian/curriculum/wst01/regression-gradient-interpretation-extrapolation.ts in full, end to end, including its header note, every teach/mechanism/worked-chain block, its trap taxonomy, and its closing flag block; content/veridian/curriculum/wst01/correlation-coefficient-and-regression-calculation.ts, specifically its beyond-spec coding-invariance derivation (§2 below builds directly on it); the four non-deep-dive technique-hub documents in this folder (codex-formula-and-method-bank.md §1.3/§2.4, forge-exam-technique-guide.md §3.2/§4.2/its trap table, signal-frequency-and-boundaries.md §1, and signal-topic-brief-regression-gradient-interpretation-extrapolation.md in full — see the count correction immediately below); and content/veridian/question-bank/wst01.ts (grepped for "regression"/"gradient"/"extrapolat" — zero matches; both its entries are Jun 2019 questions on box plots and discrete random variables, not this sub-topic). All new arithmetic below was computed independently and is flagged as such at each point it appears; the two derivations in §2 and §3 are standard mathematical/statistical reasoning carried out from first principles in this document, not sourced from a Pearson document, and are labelled as such throughout.

Revision note (2026-09-29, same pass): the sibling signal-topic-brief-regression-gradient- interpretation-extrapolation.md in this folder independently re-checked how many examiner-report series actually carry a confirmed 4.1/4.2 citation and found 4, not the "5" this document originally borrowed from the facts bank's own §7 top-line synthesis — no fifth series or quote for this exact sub-topic (as distinct from 4.3/PMCC) is named anywhere in the facts bank's detailed §4 write-up; Jan 2021's confirmed examiner report is real but its content addresses Section 6 (the Normal distribution), not Section 4. Every "of 5" below has been corrected to "of 4" accordingly, and the denominator series list is now stated as Oct 2021, Jun 2022, Jan 2023, Jun 2024 only.

Why this document exists, and what it does not re-teach

This is, by the facts bank's own top-line account, the single richest-evidenced sub-topic in the whole WST01 archive; re-verified for this document (see the revision note above), that holds as four examiner-report series with a distinct concrete slip each, not five, all mapping to the same skill gap — still the densest confirmed coverage of any WST01 sub-topic in the reviewed archive. The existing lesson file is, correspondingly, the most heavily audited lesson in this batch: a full bullet-by-bullet coverage audit against a real 14-mark anchor question (Jun 2022 Q2) already closed every gap that audit found. The lesson already teaches, in full, and this document does not repeat: fitting SxxS_{xx}/SxyS_{xy} → bb/aa and assembling the final line; reading the gradient as a rate at the correct scale of xx (with both real, quoted scale-slip examples — the $156/$1.56 case and the GDP/ population case); judging reliability by range-comparison when a range is given and by mean/SxxS_{xx}- comparison when only summary statistics are given (with the real Jun 2022 Q2(e) marking note quoted verbatim); the basic reverse-gradient-solve (Δy=bΔx\Delta y = b\Delta x); the calculus derivation of why a least-squares line always passes through (xˉ,yˉ)(\bar x,\bar y); and a full nine-item trap taxonomy. Reading any of that again here would be restatement, not depth.

What follows is four things the reviewed archive and the existing material together support but that no existing WST01 document currently states: (1) the half of the coding-transformation derivation the PMCC lesson leaves as a bare assertion — how the gradient bb, unlike rr, actually rescales under a linear change of variable, derived rather than asserted; (2) a real statistical mechanism, not just an intuitive caution, for why extrapolation risk grows the way it does, applied to the real disclosed numbers from the Jun 2022 anchor question; (3) a proof that the mark scheme's two credited methods for a reverse-gradient solve are the same calculation reached two different ways, with the second method (quoted in the facts bank, taught nowhere in this repo) worked through on numbers this course already uses; (4) an honest audit of what spec 4.1/4.2 explicitly permits or requires that the reviewed archive does not show being tested at all.

1. What spec 4.1/4.2 and the formula booklet require, restated only as far as this document needs it

Spec 4.1: "Scatter diagrams. Linear regression. (Guidance: calculation of the least-squares regression line; students may be required to draw it on a scatter diagram.)" Spec 4.2: "Explanatory (independent) and response (dependent) variables. Applications and interpretations. (Guidance: use to make predictions within the range of the explanatory variable and the dangers of extrapolation; derivations not required; variables other than x/y may be used; linear change of variable may be required.)" Three of those five guidance clauses — drawing the line, variables other than xx/yy, and linear change of variable — are not the existing lesson's focus and are addressed directly in §5. The formula booklet prints SxxS_{xx}, SxyS_{xy} (both forms) and b=Sxy/Sxxb=S_{xy}/S_{xx}, a=yˉ−bxˉa=\bar y-b\bar x in full (facts bank §2a); nothing below needs memorising for that reason, only for the two derivations that follow.

2. Completing the coding derivation: what happens to bb that never happens to rr

Suppose xx and yy are linearly coded as u=x−pqu=\dfrac{x-p}{q} and v=y−stv=\dfrac{y-s}{t} for constants p,q,s,tp,q,s,t (q,t≠0q,t\neq0) — exactly the transform spec 4.2's own guidance names. The sibling lesson on the PMCC already derives, in its own beyond-spec block, the three sums this coding produces: Suu=Sxx/q2S_{uu}=S_{xx}/q^2, Svv=Syy/t2S_{vv}=S_{yy}/t^2, Suv=Sxy/(qt)S_{uv}=S_{xy}/(qt) — and uses them to prove rr survives coding unchanged up to sign. That lesson leaves the gradient's own behaviour under coding as a bare assertion elsewhere ("the gradient genuinely does need converting back through the coding constants"), with no derivation supplied anywhere in this repo. Completing that half of the same calculation:

buv=SuvSuu=Sxy/(qt)Sxx/q2=qt⋅SxySxx=qt bxy⟹bxy=tq buv.b_{uv} = \frac{S_{uv}}{S_{uu}} = \frac{S_{xy}/(qt)}{S_{xx}/q^2} = \frac{q}{t}\cdot\frac{S_{xy}}{S_{xx}} = \frac{q}{t}\,b_{xy} \quad\Longrightarrow\quad b_{xy} = \frac{t}{q}\,b_{uv}.

The reason rr and bb behave differently under the identical transform is visible directly in this algebra: rr divides SuvS_{uv} by SuuSvv\sqrt{S_{uu}S_{vv}}, and every factor of qq and tt cancels between numerator and denominator (up to the sign question the PMCC lesson already resolves), because rr is comparing two matched, same-kind spreads. bb divides SuvS_{uv} by SuuS_{uu} alone — a yy-shaped quantity over an xx-shaped one — so the tt and qq do not cancel; they combine into the single conversion factor t/qt/q that carries the coded gradient back to the real one. This is exactly why bb has units at all and rr does not, now shown as a formula rather than argued from unit-cancellation alone.

Micro-worked check. A dataset codes cost in thousands of dollars, u=x/1000u=x/1000 (p=0p=0, q=1000q=1000), against demand in single units, left uncoded (v=yv=y, so s=0s=0, t=1t=1). The fitted coded line is v^=40−0.6u\hat v = 40-0.6u, i.e. buv=−0.6b_{uv}=-0.6. Applying bxy=(t/q) buvb_{xy}=(t/q)\,b_{uv}: bxy=(1/1000)×(−0.6)=−0.0006b_{xy}=(1/1000)\times(-0.6)= -0.0006 — demand falls by 0.0006 units for every extra dollar spent, or equivalently by 0.6 units for every extra $1000, the number already visible in buvb_{uv} once its scale is correctly named. This is the same "name what one unit of the variable actually is" discipline the existing lesson already teaches case-by-case for the $156/$1.56 and GDP/population examples, now derived as a general rule rather than checked instance by instance. No examiner report or mark scheme reviewed for this unit applies a coding transform to a regression-gradient question specifically (as opposed to the PMCC or mean/ variance coding questions the archive does confirm — facts bank §4, "Coding (2.2)" and the Jan 2024 MS PMCC-coding citation) — this section is spec-grounded theory (4.2's own guidance permits it), not a documented exam pattern, and is presented as such.

3. Why extrapolation risk is a quantifiable statistical fact, not only a caution

Spec 4.2 names "the dangers of extrapolation" and waives derivations; the existing lesson's mechanism block argues the danger correctly but qualitatively — no data on the far side of the range to borrow strength from. Here is the quantitative version, standard simple-linear-regression theory (beyond spec, exactly in the spirit of the existing lesson's own least-squares beyond-spec block), carried out from first principles because no WST01 document states it.

Model yi=α+βxi+εiy_i=\alpha+\beta x_i+\varepsilon_i, with the xix_i fixed and the errors εi\varepsilon_i independent, mean 0, constant variance σ2\sigma^2 — the standard assumption behind least squares, never stated explicitly in spec 4.1/4.2 itself. Writing the fitted value at a new point x0x_0 as y^0=a+bx0=yˉ+b(x0−xˉ)\hat y_0=a+bx_0=\bar y+b(x_0-\bar x) and substituting b=∑(xi−xˉ)(yi−yˉ)/Sxxb=\sum(x_i-\bar x)(y_i-\bar y)/S_{xx}, the terms involving yˉ\bar y cancel (since ∑(xi−xˉ)=0\sum(x_i-\bar x)=0), leaving y^0\hat y_0 as a weighted sum of the original yiy_i alone:

y^0=∑i=1nyi[1n+(x0−xˉ)(xi−xˉ)Sxx].\hat y_0 = \sum_{i=1}^n y_i\left[\frac1n + \frac{(x_0-\bar x)(x_i-\bar x)}{S_{xx}}\right].

Since the yiy_i are independent with variance σ2\sigma^2, Var⁡(y^0)=σ2\operatorname{Var}(\hat y_0)=\sigma^2 times the sum of the squared weights. The cross term in that expansion vanishes because ∑(xi−xˉ)=0\sum(x_i-\bar x)=0 by definition of xˉ\bar x; the remaining squared term collapses because ∑(xi−xˉ)2=Sxx\sum(x_i-\bar x)^2=S_{xx} exactly. What survives is

Var⁡(y^0)=σ2[1n+(x0−xˉ)2Sxx].\operatorname{Var}(\hat y_0) = \sigma^2\left[\frac1n + \frac{(x_0-\bar x)^2}{S_{xx}}\right].

This is the real mechanism behind "the dangers of extrapolation": prediction uncertainty has a fixed floor of σ2/n\sigma^2/n that never disappears (no fitted line, however good, predicts with zero uncertainty, even exactly at xˉ\bar x), plus a second term that grows with the square of the distance from the mean — not gently, quadratically. It also explains, rather than merely describes, why the real mark scheme's credited fallback compares a predicted x0x_0 against xˉ\bar x using SxxS_{xx} as the reference spread (Jun 2022 Q2(e)'s own marking note, already quoted in the existing lesson) instead of inventing a range that question never supplied: xˉ\bar x and SxxS_{xx} are exactly the two quantities this formula says actually drive the uncertainty.

Applying it to the real disclosed numbers. The facts bank's audit of the Jun 2022 anchor question discloses n=9n=9, ∑t=7.87\sum t=7.87, Stt=1.29S_{tt}=1.29, and the prediction point t0=7t_0=7 directly. From these: tˉ=7.87/9=0.8744\bar t = 7.87/9 = 0.8744 (4 d.p.), matching the "[=0.874][=0.874]" the facts bank itself quotes from the marking note. (t0−tˉ)2/Stt=(7−0.8744)2/1.29=37.52/1.29≈29.1(t_0-\bar t)^2/S_{tt} = (7-0.8744)^2/1.29 = 37.52/1.29 \approx 29.1 — roughly 260 times the fixed floor 1/n=1/9≈0.1111/n=1/9\approx0.111, even before either is multiplied by σ2\sigma^2. Framed the way this course already teaches "typical spread" (via Sxx/n\sqrt{S_{xx}/n}): a typical single point sits about 1.29/9≈0.379\sqrt{1.29/9}\approx0.379 (million people) from tˉ\bar t; t0=7t_0=7 sits 7−0.874≈6.137-0.874\approx6.13 from it — about 16.2 of those typical spreads away. Both figures are this document's own computation from the four disclosed numbers, not a transcription of a printed mark-scheme target (no variance/σ\sigma figure for this question is disclosed anywhere in the facts bank), but they quantify, for the first time in this course's material, exactly how far "much greater than the mean" (the mark scheme's own words) actually is: not a marginal, arguable distance, but sixteen-plus multiples of the data's own typical spread.

4. The mark scheme's two reverse-gradient-solve methods are one method in disguise

The facts bank's audit of the same anchor question quotes its Q2(f) marking note in full: "M1: Equating 0.1 with 'their b' × x. Or substituting two values for g with a difference of 0.1 in their equation leading to a value of x... Do not allow fractions." The existing lesson teaches, and its reg-mcq-5 tests, only the first of these two credited methods. The second — checked by grep across the existing lesson, the formula-and-method bank, and the FORGE guide, with zero matches for its wording — appears nowhere else in this repo, despite being explicitly credited by the real mark scheme.

It is worth teaching because it looks like a different calculation and provably isn't. Suppose the fitted line is y^=a+bx\hat y=a+bx, and two response values y1,y2y_1,y_2 differ by a known amount Δy=y2−y1\Delta y=y_2-y_1. Method 2 solves y1=a+bx1y_1=a+bx_1 and y2=a+bx2y_2=a+bx_2 separately for x1x_1 and x2x_2, then reports Δx=x2−x1\Delta x=x_2-x_1. Subtracting the two equations directly: y2−y1=b(x2−x1)y_2-y_1=b(x_2-x_1), i.e. Δy=b Δx\Delta y=b\,\Delta x — Method 1's equation exactly, with the intercept aa cancelling out of the subtraction regardless of which two yy-values were chosen. This is why the mark scheme is indifferent between them: they are algebraically the same statement, and Method 2 is the more useful route for a candidate who has correctly fitted the line but hasn't spotted that only bb matters for a rate-of-change question.

Micro-worked check, on numbers this course already uses. The existing lesson's reg-mcq-5 already establishes y^=10.1+4.25x\hat y=10.1+4.25x, a stated rise of 21.25 in yy, and the correct answer Δx=5\Delta x=5 units of xx ($500) via Method 1. Applying Method 2 to the identical line, picking an arbitrary pair of yy-values 21.25 apart — say y1=35y_1=35, y2=56.25y_2=56.25 — and solving each separately: x1=(35−10.1)/4.25=5.859x_1=(35-10.1)/4.25= 5.859 (3 d.p.), x2=(56.25−10.1)/4.25=10.859x_2=(56.25-10.1)/4.25=10.859 (3 d.p.). Δx=10.859−5.859=5.000\Delta x=10.859-5.859=5.000 exactly, the identical answer, for a genuinely arbitrary choice of y1y_1 — choosing a different starting value moves x1x_1 and x2x_2 individually but never their difference, exactly as the general proof above predicts.

5. What spec 4.1/4.2 explicitly permits or requires that the reviewed archive does not confirm tested

Named honestly, since the hard rule against manufacturing exam evidence applies here as much as anywhere else in this document:

6. Synthesis: every real exam angle this specific sub-topic has actually been tested from

Denominators throughout use the four examiner-report series that actually carry a confirmed 4.1/4.2 citation in the facts bank's own §4 write-up — Oct 2021, Jun 2022, Jan 2023, Jun 2024. Jan 2021 and Jun 2019 are excluded from the denominator: Jan 2021's confirmed examiner report addresses Section 6 (the Normal distribution) in the facts bank, with no cited content for Section 4, and the 2026-09-25 Jun 2019 spot-check added findings for two other lessons (outliers/box plots; discrete random variables), not this one. This corrects an unsupported "5" carried in this document's own §7 flags before this revision — see the revision note at the top of this document.

Real angleConfirmed inSource typeDenominator
Fitting Sxx/SxyS_{xx}/S_{xy} → b,ab,a; assembling the final line as an equationOct 2021 Q2(c)Mark scheme + examiner report1 of 4 — mechanical fit itself rarely separately flagged as an error site beyond this one series
Gradient interpreted at the wrong scale of xxOct 2021 Q2(d), Jun 2022 Q2(d)Examiner report, verbatim, both directions (expanded and compressed scale)2 of 4
Interpretation collapses to bare direction/correlation, or drops/swaps unitsJan 2023 Q6(a), Jun 2024 Q4(d)Examiner report, verbatim2 of 4
Reliability judged with no value/reference point named; range-based and mean-based variants both creditedJun 2022 Q2(e), Jan 2023 Q6(c)Mark scheme + examiner report2 of 4
Reverse gradient solve, two credited methodsJun 2022 Q2(f)Mark scheme + examiner report1 of 4 — the single thinnest-evidenced sub-case in this topic
Mean-squared substituted for the true correction term in an SS-formula feeding this topic's fitOct 2021 Q2(b) — verified case is SppS_{pp}, structurally identical, not SxxS_{xx} itselfExaminer report, verbatim1 of 4, and not a direct SxxS_{xx} instance (see the existing lesson's own corrected header)
Fraction left in the final regression equationJun 2022 Q2(c)Examiner report, verbatim1 of 4
Coding applied to the gradient specificallyNot found in the reviewed archive—Spec-permitted (§2), 0 of 4
Drawing the fitted line on a scatter diagramNot found in the reviewed archive—Spec-named (§5), 0 of 4

7. What remains flagged, not resolved, by this document