Skip to content

Business Mathematics and Basic Statistics · Ch 16 — Bivariate Statistics — Correlation and Regression

Regression Coefficients — byx and bxy

4

Regression Coefficients — byx and bxy

Correlation tells us how strongly two variables are linearly related, but it does not by itself give a way to predict one variable's value from the other's. Regression is the technique for doing exactly that: fitting a straight line through the bivariate data so that, given a value of one variable, the corresponding value of the other can be estimated.

Because either variable could be the one we want to predict, there are genuinely two regression relationships to consider, not one — predicting yy from a given xx, and predicting xx from a given yy — and each has its own regression coefficient, a slope-like quantity built from the same covariance and variances already used for Pearson's rr.

Note

Regression Coefficients

byx=Cov(x,y)Var(x)=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2bxy=Cov(x,y)Var(y)=∑(xi−xˉ)(yi−yˉ)∑(yi−yˉ)2b_{yx} = \dfrac{\text{Cov}(x,y)}{\text{Var}(x)} = \dfrac{\sum(x_i-\bar{x})(y_i-\bar{y})}{\sum(x_i-\bar{x})^2} \qquad\qquad b_{xy} = \dfrac{\text{Cov}(x,y)}{\text{Var}(y)} = \dfrac{\sum(x_i-\bar{x})(y_i-\bar{y})}{\sum(y_i-\bar{y})^2}

byxb_{yx} (read 'regression coefficient of yy on xx') is the slope used to predict yy from xx; bxyb_{xy} ('of xx on yy') is the slope used to predict xx from yy.

Both coefficients always carry the same sign as rr (all three come from the same numerator, the sum of cross-products ∑(x−xˉ)(y−yˉ)\sum(x-\bar{x})(y-\bar{y})), and they are linked to Pearson's coefficient by a useful identity worth remembering as a built-in check on any calculation:

Note

Relation Between rr, byxb_{yx} and bxyb_{xy}

r2=byx⋅bxyr^2 = b_{yx}\cdot b_{xy} …

Definition 1Regression Coefficient of y on x (byx)

The slope of the line used to predict yy from a given xx: $b_{yx} = \text{Cov}(x,y) …

Definition 2Regression Coefficient of x on y (bxy)

The slope of the line used to predict xx from a given yy: $b_{xy} = \text{Cov}(x,y) …