Concept of regression, linear vs non-linear, regression lines, regression coefficients & properties, angle between two lines, correlation vs regression, explained & unexplained variation.
Topics Covered
ConceptLinear vs Non-linearRegression LinesRegression CoefficientsAngle between LinesCorrelation vs RegressionExplained & Unexplained
Regression is the statistical method of estimating (predicting) the value of one
variable from the value of another. It is the average functional relationship between the
variables. The term was coined by Francis Galton in his study of "regression toward mediocrity"
in human heights.
If \(Y\) is the dependent (response) and \(X\) is the independent (predictor) variable, then the
regression of \(Y\) on \(X\) is the relation \(Y = f(X) + \epsilon\) where \(f(x) = E(Y | X = x)\).
2. Linear and Non-linear Regression
Linear regression: \(E(Y|X) = a + b X\). The regression curve is a straight line.
Non-linear regression: \(E(Y|X)\) is not linear — could be quadratic, exponential, logarithmic, logistic, etc.
This unit focuses on simple linear regression (one predictor).
3. Two Lines of Regression
For bivariate data we fit two regression lines:
Regression of \(Y\) on \(X\) — used to estimate \(Y\) given \(X\).
Regression of \(X\) on \(Y\) — used to estimate \(X\) given \(Y\).
3.1 Line of Regression of \(Y\) on \(X\)
\[
Y - \bar y \;=\; b_{yx}(X - \bar x), \qquad
b_{yx} \;=\; \dfrac{\text{Cov}(X, Y)}{\sigma_x^2} \;=\; r \cdot \dfrac{\sigma_y}{\sigma_x}.
\]
3.2 Line of Regression of \(X\) on \(Y\)
\[
X - \bar x \;=\; b_{xy}(Y - \bar y), \qquad
b_{xy} \;=\; \dfrac{\text{Cov}(X, Y)}{\sigma_y^2} \;=\; r \cdot \dfrac{\sigma_x}{\sigma_y}.
\]
Both lines pass through \((\bar x, \bar y)\).
Fig 4.1 — Two regression lines and their common point (x̄, ȳ)
4. Properties of Regression Coefficients
Geometric mean of the two regression coefficients = correlation coefficient:
\[
r \;=\; \pm \sqrt{b_{yx} \cdot b_{xy}}.
\]
Both regression coefficients have the same sign, which is also the sign of \(r\).
If one regression coefficient is > 1, the other must be < 1, because their product = \(r^2 \le 1\).
Arithmetic mean of the two regression coefficients \(\ge |r|\):
\(\dfrac{b_{yx} + b_{xy}}{2} \ge |r|\) (AM ≥ GM).
Regression coefficients are independent of change of origin but not of scale.
If \(r = \pm 1\): both lines coincide (perfect linear relationship).
If \(r = 0\): the two lines are perpendicular and parallel to the axes (\(Y = \bar y\) and \(X = \bar x\)).
Form the regression lines: Y on X is \(Y - \bar Y = b_{yx}(X - \bar X)\); X on Y is \(X - \bar X = b_{xy}(Y - \bar Y)\).
To estimate, substitute the known value into the appropriate line (use Y-on-X to predict Y, X-on-Y to predict X).
Checks: \(b_{yx}\) and \(b_{xy}\) must have the same sign; \(r = \pm\sqrt{b_{yx}\,b_{xy}}\) (sign = sign of the coefficients); the two lines intersect at \((\bar X, \bar Y)\); one coefficient may exceed 1 but their product cannot.
Test of significance of a regression coefficient uses a \(t\) statistic with \(n-2\) df.
Problem 1 — Are these valid regression lines?
DATA
Given lines \(Y = 5 + 2.8X\) and \(X = 3 - 0.5Y\).
Treating the first as the regression of \(Y\) on \(X\) gives \(b_{yx} = +2.8\); treating the second
as the regression of \(X\) on \(Y\) gives \(b_{xy} = -0.5\). The two regression coefficients must have
the same sign (both equal the sign of \(r\), since \(r = \pm\sqrt{b_{yx}\,b_{xy}}\) requires
\(b_{yx}\,b_{xy} = r^2 \ge 0\)). Here \(b_{yx} = +2.8\) and \(b_{xy} = -0.5\) differ in sign —
impossible. Hence these are not valid regression equations.
Problem 2 — Two Regression Lines: Means & Variance
Take line 1 as Y-on-X: \(Y = -0.5X + 2.5 \Rightarrow b_{yx} = -0.5\). Take line 2 as X-on-Y:
\(X = -1.5Y + 4 \Rightarrow b_{xy} = -1.5\). Check: \(r = -\sqrt{b_{yx}\,b_{xy}} = -\sqrt{0.75} = -0.87\)
(valid, in [−1, 1], signs consistent).
Means — both lines pass through \((\bar X, \bar Y)\); solving
\(\bar X + 2\bar Y = 5\) and \(2\bar X + 3\bar Y = 8\) gives \(\bar X = 1,\ \bar Y = 2\).
Variance of Y — \(b_{yx} = r\dfrac{\sigma_y}{\sigma_x}\Rightarrow -0.5 = -0.87\cdot\dfrac{\sigma_y}{3.46}\)
gives \(\sigma_y \approx 2\), so \(\sigma_y^2 = 4\).
Problem 3 — Regression Line & Estimation (means, SDs, r given)
DATA
Cinchona plants (n = 200): age X (mean 9.2, SD 2.1), yield Y (mean 16.5, SD 4.2), \(r = +0.84\).
\(b_{yx} = r\dfrac{\sigma_y}{\sigma_x} = 0.84\times\dfrac{4.2}{2.1} = 1.68\); line of Y on X:
\(Y - 16.5 = 1.68(X - 9.2)\Rightarrow Y = 1.68X + 1.04\).
\(b_{xy} = r\dfrac{\sigma_x}{\sigma_y} = 0.84\times\dfrac{2.1}{4.2} = 0.42\); line of X on Y:
\(X = 0.42Y + 2.27\).
Estimate yield for age 8: \(Y = 1.68(8) + 1.04 = \) 14.48 oz.
Problem 4 — Correlation, Both Regression Lines & Two-way Estimation
DATA
Stature (inches) of brother (X) and sister (Y) for 11 families (Pearson & Lee):
Estimate Y for X = 70: \(Y = 64 + 0.527(1) = 64.53\).
Estimate X for Y = 62: \(X = 69 + 0.591(-2) = 67.82\).
Unsolved Exercises
PRACTICE
Define the regression coefficient and state its properties.
X (Economics) = 59,65,45,52,60,62,70,55,45,49; Y (Maths) = 75,70,55,65,60,69,80,65,59,61.
Find both least-squares regression equations and estimate Y for X = 61.
(Ans: \(Y-65.9 = 0.76(X-56.2)\); \(X-56.2 = 0.92(Y-65.9)\); Y = 69.54)
Subject A: mean 39.5, SD 10.8; Subject B: mean 47.5, SD 16.8; \(r = 0.42\). Find both regression
lines and estimate B for A = 50. (Ans: \(Y = 0.65X + 21.82\); \(X = 0.27Y + 26.67\); Y = 54.34)
\(\bar X = 60, \bar Y = 141, \sum x^2 = 1000, \sum y^2 = 1936, \sum xy = 1380\) (deviation sums about
the means). Find Y on X and estimate blood pressure at age 35.
(Ans: \(b_{yx} = 1380/1000 = 1.38\), \(a = 141 - 1.38(60) = 58.2\), so \(Y = 1.38X + 58.2\); at \(X = 35\), Y = 106.5)