Draft (draft). Not yet checked against the textbook. Students cannot see this page until it is marked verified.

Mathematics & Statistics (Part II) · Chapter 3

Linear Regression

4 topics16 concepts6 self-test QsAsked in: Mar 2024 · Jul 2024 · Mar 2025 · Jul 2025 · Mar 2026 · Jun 2026

In one line: How least squares fits two straight regression lines through (x̄, ȳ) using b_YX and b_XY to predict X or Y.

Big picture flow

  1. 01Find x̄, ȳ or Raw Sums
  2. 02Compute b_YX & b_XY
  3. 03Write Lines Through (x̄, ȳ)
  4. 04Verify Signs & b_YX·b_XY ≤ 1
|r| ≤ 1
Correlation magnitude bound; r² = b_YX · b_XY ≤ 1
b_YX · b_XY = r²
Product of regression coefficients equals r squared
b_YX + b_XY ≥ 2r
AM-GM inequality when b_YX, b_XY, r are positive
(x̄, ȳ)
Point where both regression lines always intersect

Mind map

The whole chapter on one screen. Tap a branch to open it.

Tap any branch to jump to notes ↓

Open detailed mind map

Topics

1Concept and least squares4 concepts · 2 formulas
Key concepts
Meaning of regression
Estimates the average value of a dependent variable from an independent variable.
Two regression lines
Y on X predicts Y from X; X on Y predicts X from Y.
Residuals (errors)
Vertical deviation between observed value y_i and predicted value y_hat_i.
ei=yi−(a+bxi)e_i = y_i - (a + bx_i)
Principle of least squares
Chooses constants a and b to minimize the sum of squared residuals.
S2=∑(yi−a−bxi)2S^2 = \sum (y_i - a - bx_i)^2
Exam takeaways
  • Regression gives an equation to predict values, whereas correlation only measures strength of link.
  • There are two distinct regression lines unless all points lie strictly on one straight line.
  • Method of least squares minimizes the sum of squares of deviations parallel to the dependent axis.
FORMULAS & RULES
Y^=a+bX\hat{Y} = a + bX
regression line of Y on X
e.g. Line Y = 2 + 0.75X predicts Y = 9.5 when X = 10.
∑yi=na+b∑xi,∑xiyi=a∑xi+b∑xi2\sum y_i = na + b\sum x_i, \quad \sum x_i y_i = a\sum x_i + b\sum x_i^2
normal equations

Memory hookLeast squares penalizes big misses harshly by squaring errors before adding them up.

2Regression lines and coefficients4 concepts · 3 formulas
Key concepts
Regression line of Y on X
Passes through (x_bar, y_bar) with slope b_YX.
Y−yˉ=bYX(X−xˉ)Y - \bar{y} = b_{YX}(X - \bar{x})
Coefficient b_YX formulas
Ratio of covariance to variance of X, or r times sigma_Y / sigma_X.
bYX=cov(X,Y)σX2=rσYσXb_{YX} = \frac{\text{cov}(X,Y)}{\sigma_X^2} = r\frac{\sigma_Y}{\sigma_X}
Regression line of X on Y
Expresses X in terms of Y, passing through (x_bar, y_bar).
X−xˉ=bXY(Y−yˉ)X - \bar{x} = b_{XY}(Y - \bar{y})
Coefficient b_XY formulas
Ratio of covariance to variance of Y, or r times sigma_X / sigma_Y.
bXY=cov(X,Y)σY2=rσXσYb_{XY} = \frac{\text{cov}(X,Y)}{\sigma_Y^2} = r\frac{\sigma_X}{\sigma_Y}
Exam takeaways
  • Use deviation formulas when means x̄ and ȳ are whole numbers to keep arithmetic small.
  • Use raw-sum formulas with Σx, Σy, Σx², Σy², Σxy when means are decimals.
  • Always put the variable to be estimated on the left side of the equation.
FORMULAS & RULES
bYX=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2=n∑xiyi−(∑xi)(∑yi)n∑xi2−(∑xi)2b_{YX} = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{\sum (x_i - \bar{x})^2} = \frac{n\sum x_i y_i - (\sum x_i)(\sum y_i)}{n\sum x_i^2 - (\sum x_i)^2}
e.g. cov(X,Y) = 12, σ_X = 4 ⇒ b_YX = 12/16 = 0.75.
bXY=∑(xi−xˉ)(yi−yˉ)∑(yi−yˉ)2=n∑xiyi−(∑xi)(∑yi)n∑yi2−(∑yi)2b_{XY} = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{\sum (y_i - \bar{y})^2} = \frac{n\sum x_i y_i - (\sum x_i)(\sum y_i)}{n\sum y_i^2 - (\sum y_i)^2}
e.g. r = 0.5, σ_X = 4, σ_Y = 3 ⇒ b_XY = 0.5×(4/3) = 2/3.
Y−yˉ=bYX(X−xˉ),X−xˉ=bXY(Y−yˉ)Y - \bar{y} = b_{YX}(X - \bar{x}), \quad X - \bar{x} = b_{XY}(Y - \bar{y})
e.g. x̄=25, ȳ=20, b_YX=0.375 ⇒ Y = 0.375X + 10.625.

Memory hookIn b_YX, the second letter X goes to the bottom (denominator); in b_XY, the second letter Y goes to the bottom.

Asked in: Mar 2024 · Jul 2024 · Mar 2025 · Jul 2025 · Mar 2026 · Jun 2026

3Properties of coefficients4 concepts · 3 formulas
Key concepts
Geometric mean gives r
Product of b_YX and b_XY equals r squared; r takes their common sign.
bYX⋅bXY=r2,r=±bYX⋅bXYb_{YX} \cdot b_{XY} = r^2, \quad r = \pm\sqrt{b_{YX} \cdot b_{XY}}
Same sign property
b_YX, b_XY and r always share the exact same sign (+, -, or 0).
Product bound (<= 1)
Since r^2 <= 1, if one regression coefficient exceeds 1, the other must be below 1.
AM-GM inequality
For positive coefficients, their arithmetic mean is at least r.
bYX+bXY≥2rb_{YX} + b_{XY} \ge 2r
Exam takeaways
  • b_YX, b_XY, and r always share the exact same sign because all depend on cov(X, Y).
  • Both b_YX and b_XY cannot exceed 1 in magnitude together because r² ≤ 1.
  • Both regression lines always intersect at the point of means (x̄, ȳ).
FORMULAS & RULES
r=±bYX⋅bXYr = \pm\sqrt{b_{YX} \cdot b_{XY}}
sign matches b_YX and b_XY
e.g. b_YX = −1.5, b_XY = −1/6 ⇒ r = −√(0.25) = −0.5.
0≤bYX⋅bXY≤10 \le b_{YX} \cdot b_{XY} \le 1
e.g. b_YX = 1.6 and b_XY = 0.8 gives 1.28 > 1 ⇒ inconsistent.
∣bYX+bXY∣≥2∣r∣|b_{YX} + b_{XY}| \ge 2|r|
e.g. b_YX = 0.2, b_XY = 0.4, r = 0.5 ⇒ 0.6 < 1.0 ⇒ inconsistent.

Memory hookThree musketeers: b_YX, b_XY, and r always march with the same sign, and one cannot let the other cross 1 together.

Asked in: Jul 2024 · Mar 2025 · Jul 2025 · Mar 2026 · Jun 2026

4Origin shift and solving lines4 concepts · 2 formulas
Key concepts
Change of origin (h = k = 1)
Shifting X and Y by constants a and b leaves b_YX and b_XY unchanged.
ui=xi−a,vi=yi−b  ⟹  bYX=bVUu_i = x_i - a, \quad v_i = y_i - b \implies b_{YX} = b_{VU}
Change of scale
Dividing by h and k scales b_YX by k/h and b_XY by h/k.
bYX=khbVU,bXY=hkbUVb_{YX} = \frac{k}{h} b_{VU}, \quad b_{XY} = \frac{h}{k} b_{UV}
Finding means from two lines
Solve the two given linear regression equations simultaneously for (x_bar, y_bar).
Identifying each line
Test an assignment of lines; accept only the choice where b_YX times b_XY <= 1.
Exam takeaways
  • Regression coefficients are invariant under change of origin, but NOT under change of scale.
  • To identify Y on X from two equations, rewrite one as Y = ... and the other as X = ... and check r² ≤ 1.
  • Solving the two regression equations simultaneously gives (x̄, ȳ) directly.
FORMULAS & RULES
U=X−ah,V=Y−bkU = \frac{X - a}{h}, \quad V = \frac{Y - b}{k}
bYX=khbVU,bXY=hkbUVb_{YX} = \frac{k}{h} b_{VU}, \quad b_{XY} = \frac{h}{k} b_{UV}
e.g. U=(X−50)/10, V=(Y−100)/5 ⇒ b_YX = (5/10)b_VU = 0.5 b_VU.

Memory hookOrigin shift is free (no factor); scale shift flips back with k/h for Y on X.

Asked in: Mar 2024 · Jul 2024 · Mar 2025 · Jul 2025 · Jun 2026

Key terms & definitions

Tap any card to test yourself before peeking.

Quick comparisons (VS.)

Regression of Y on X vs X on Y

VS
Purpose
Line of Y on X:Estimates dependent Y from given X.
Line of X on Y:Estimates dependent X from given Y.
Minimized Error
Line of Y on X:Minimizes vertical squared errors Σ(y_i − ŷ_i)².
Line of X on Y:Minimizes horizontal squared errors Σ(x_i − x̂_i)².
Line Equation
Line of Y on X:Y − ȳ = b_YX(X − x̄).
Line of X on Y:X − x̄ = b_XY(Y − ȳ).
Slope Formula
Line of Y on X:b_YX = cov(X,Y)/σ_X² = r(σ_Y/σ_X).
Line of X on Y:b_XY = cov(X,Y)/σ_Y² = r(σ_X/σ_Y).

Change of Origin vs Change of Scale

VS
Transformation
Change of Origin:u = X − a, v = Y − b (constant shift).
Change of Scale:U = (X − a)/h, V = (Y − b)/k.
Effect on b_YX, b_XY
Change of Origin:Invariant: b_YX = b_VU and b_XY = b_UV.
Change of Scale:Not invariant: b_YX = (k/h)b_VU.
Effect on r
Change of Origin:Unchanged: r(X,Y) = r(U,V).
Change of Scale:Magnitude unchanged when h, k > 0.
When Used
Change of Origin:Reduces large numbers without rescaling b.
Change of Scale:Used when data share common factors h, k.

Quick check (Board Q.1 practice)

0 / 6 answered
Q1 · Choose one

If b_XY < 0 and b_YX < 0, then the correlation coefficient r is:

Q2 · Choose one

Both lines of regression always intersect at the point:

Q3 · True or False

If b_YX > 1, then b_XY must also be greater than 1.

Q4 · True or False

If u = x − a and v = y − b, then b_YX = b_VU (regression coefficients are invariant under change of origin).

Q5 · One word / term

The difference y_i − ŷ_i between an observed value and the regression-predicted value is called:

Q6 · One word / term

Number of distinct regression lines when points do not all lie on one straight line.

Exam answers

Numerical

Given means x_bar = 25, y_bar = 20, standard deviations sigma_X = 4, sigma_Y = 3, and r = 0.5, find the two regression equations and estimate Y when X = 10.

  1. Step 1: Compute the regression coefficient b_YX using r and standard deviations.
    bYX=rσYσX=0.5×34=0.375b_{YX} = r\frac{\sigma_Y}{\sigma_X} = 0.5 \times \frac{3}{4} = 0.375
  2. Step 2: Write the regression equation of Y on X passing through (25, 20).
    Y−20=0.375(X−25)  ⟹  Y=0.375X+10.625Y - 20 = 0.375(X - 25) \implies Y = 0.375X + 10.625
  3. Step 3: Compute the regression coefficient b_XY.
    bXY=rσXσY=0.5×43=23b_{XY} = r\frac{\sigma_X}{\sigma_Y} = 0.5 \times \frac{4}{3} = \frac{2}{3}
  4. Step 4: Write the regression equation of X on Y.
    X−25=23(Y−20)  ⟹  X=23Y+353X - 25 = \frac{2}{3}(Y - 20) \implies X = \frac{2}{3}Y + \frac{35}{3}
  5. Step 5: Substitute X = 10 into the Y on X equation to estimate Y.
    Y=0.375(10)+10.625=14.375Y = 0.375(10) + 10.625 = 14.375

Step marks show only when linked to an official marking scheme.

Common mistake: Swapping sigma_X and sigma_Y in b_YX and b_XY, or plugging X = 10 into the X on Y equation.

Numerical

The two regression equations are 3x + 2y - 26 = 0 and 6x + y - 31 = 0. Find the means of X and Y, the coefficients b_YX and b_XY, and correlation coefficient r.

  1. Step 1: Solve the two equations simultaneously to find the point of intersection (x_bar, y_bar).
    6x+4y=52 and 6x+y=31  ⟹  3y=21  ⟹  yˉ=7, xˉ=46x + 4y = 52 \text{ and } 6x + y = 31 \implies 3y = 21 \implies \bar{y} = 7,\ \bar{x} = 4
  2. Step 2: Assume 3x + 2y - 26 = 0 is Y on X and 6x + y - 31 = 0 is X on Y.
    Y=−32X+13  ⟹  bYX=−32;X=−16Y+316  ⟹  bXY=−16Y = -\frac{3}{2}X + 13 \implies b_{YX} = -\frac{3}{2}; \quad X = -\frac{1}{6}Y + \frac{31}{6} \implies b_{XY} = -\frac{1}{6}
  3. Step 3: Verify the consistency condition 0 <= b_YX * b_XY <= 1.
    r2=bYX⋅bXY=(−32)(−16)=14≤1r^2 = b_{YX} \cdot b_{XY} = \left(-\frac{3}{2}\right)\left(-\frac{1}{6}\right) = \frac{1}{4} \le 1
  4. Step 4: Take the negative square root because both regression coefficients are negative.
    r=−14=−0.5r = -\sqrt{\frac{1}{4}} = -0.5

Step marks show only when linked to an official marking scheme.

Common mistake: Writing r = +0.5 when b_YX and b_XY are negative, or skipping the r^2 <= 1 check.

Board PYQs (2024–2026)

18 questions asked across 6 official board papers

  • Jun 2026Q.6 (C) (ii)4 marksShift & two lines

    Activity: find regression and correlation coefficients from lines 16y + x = 64 and x + 4y = 5.

  • Jun 2026Q.6 (A) (ii)3 marksLines & coefficients

    Obtain equation of regression line Y on X for X = 1..5 and Y = 5, 7, 9, 11, 13.

  • Jun 2026Q.4 (A) (iii)1 markProperties of b

    Identify what b_yx * b_xy equals in regression analysis (MCQ).

  • Mar 2026Q.6 (B) (i)4 marksLines & coefficients

    Obtain equation of regression line of Y on X for X = 1..5 and Y = 5, 7, 9, 11, 13.

  • Mar 2026Q.5 (A) (ii)3 marksLines & coefficients

    Given means (85, 90), SDs (5, 6), r = 0.6, find regression line X on Y and estimate X at Y = 100.

  • Mar 2026Q.4 (A) (iii)1 markProperties of b

    Determine bound on b_XY given b_YX > 1 (MCQ).

  • Jul 2025Q.6 (B) (i)4 marksShift & two lines

    From regression lines 8x - 10y + 66 = 0 and 40x - 18y = 214, find means and correlation coefficient.

  • Jul 2025Q.5 (A) (ii)3 marksLines & coefficients

    Given means (10, 90), SDs (3, 12), r = 0.8, find regression of Y on X and estimate sales for X = 15.

  • Jul 2025Q.4 (A) (iii)1 markProperties of b

    Identify lower bound for |b_xy + b_yx| in terms of r (MCQ).

  • Mar 2025Q.6 (B) (i)4 marksShift & two lines

    Given lines 10x - 4y = 80 and 10y - 9x = -40, find means, b_YX, b_XY, r, and var(X) for var(Y) = 36.

  • Mar 2025Q.5 (A) (i)3 marksLines & coefficients

    Compute regression equation of Y on X for X = 1..5 and Y = 5, 7, 9, 11, 13.

  • Mar 2025Q.4 (B) (i)1 markProperties of b

    True or False: if b_yx + b_xy = 1.30 and r = 0.75, then the given data is inconsistent.

  • Jul 2024Q.6 (C) (i)4 marksShift & two lines

    Activity: find correlation coefficient between x and y from lines 3x + 2y - 26 = 0 and 6x + y - 31 = 0.

  • Jul 2024Q.6 (A) (i)3 marksProperties of b

    Given x_bar = 53, y_bar = 28, b_yx = -1.2, b_xy = -0.3, find r and estimate y for x = 50.

  • Jul 2024Q.4 (B) (i)1 markLines & coefficients

    True or False: in regression of Y on X, X is independent and Y is dependent.

  • Mar 2024Q.6 (C) (i)4 marksLines & coefficients

    Activity: given x_bar = 10, y_bar = 12, V(X) = 9, sigma_y = 4, r = 0.6, estimate y when x = 5.

  • Mar 2024Q.5 (A) (ii)3 marksLines & coefficients

    Given b_YX = 0.4, b_XY = 0.9, and Var(X) = 9, find Var(Y).

  • Mar 2024Q.4 (A) (iii)1 markShift & two lines

    Identify dependence of regression coefficients b_xy and b_yx on origin and scale (MCQ).

Open last-day bento cheat sheetSpotted a mistake or want to suggest an improvement?Telegram feedback ↗