6  Standardized Regression Coefficients

The magnitude of a regression coefficient \(\hat\beta_j\) reflects the units of measurement of the \(j\)th explanatory variable \(x_j\). Consider, for example, the fitted model

\[\hat y=5+x_1+1000x_2,\]

where \(y\) is measured in litres, \(x_1\) in litres and \(x_2\) in millilitres. Although \(\hat\beta_2\gg\hat\beta_1\), the effect of both regressors is identical: a change of one litre in either \(x_1\) or \(x_2\) (one litre of \(x_2\) being 1000 mL) makes the same change in \(\hat y\) when the other variable is held fixed. Raw coefficients therefore cannot be compared to decide which regressor is “more important”.

Scaling the explanatory variables (and the response) produces dimensionless regression coefficients. These are called standardized regression coefficients or beta coefficients (Montgomery, Peck, and Vining 2021). Two popular approaches to scaling give standardized regression coefficients: unit normal scaling and unit length scaling.

6.1 Unit normal scaling

Each regressor and the response are centred and divided by their sample standard deviations:

\[z_{ij}=\frac{x_{ij}-\bar x_j}{s_j},\quad i=1,2,\ldots,n,\ j=1,2,\ldots,k;\qquad y_i^*=\frac{y_i-\bar y}{s_y}, \tag{6.1}\]

where

\[s_j^2=\frac1{n-1}\sum_{i=1}^n(x_{ij}-\bar x_j)^2,\qquad s_y^2=\frac1{n-1}\sum_{i=1}^n(y_i-\bar y)^2\]

are the sample variances of the \(j\)th explanatory variable and of the study variable respectively. Each scaled variable has mean 0 and variance 1. The regression model in the scaled variables is

\[y_i^*=\gamma_1z_{i1}+\gamma_2z_{i2}+\cdots+\gamma_kz_{ik}+\varepsilon_i,\qquad i=1,2,\ldots,n,\]

or \(\mathbf y^*=\mathbf Z\boldsymbol\gamma+\boldsymbol\varepsilon\). Centering removes the intercept term, since all variables have mean zero. The least squares estimate is

\[\hat{\boldsymbol\gamma}=(\mathbf Z'\mathbf Z)^{-1}\mathbf Z'\mathbf y^*. \tag{6.2}\]

6.2 Unit length scaling

Each variable is centred and divided by the square root of its corrected sum of squares:

\[w_{ij}=\frac{x_{ij}-\bar x_j}{S_{jj}^{1/2}},\quad i=1,\ldots,n,\ j=1,\ldots,k;\qquad y_i^0=\frac{y_i-\bar y}{SS_T^{1/2}}, \tag{6.3}\]

where

\[S_{jj}=\sum_{i=1}^n(x_{ij}-\bar x_j)^2\]

is the corrected sum of squares of the \(j\)th explanatory variable and \(SS_T=\sum_{i=1}^n(y_i-\bar y)^2\) is the total sum of squares. Each new explanatory variable \(w_j\) has mean

\[\bar w_j=\frac1n\sum_{i=1}^nw_{ij}=0\]

and length

\[\sqrt{\sum_{i=1}^n(w_{ij}-\bar w_j)^2}=1.\]

The regression model is

\[y_i^0=\delta_1w_{i1}+\delta_2w_{i2}+\cdots+\delta_kw_{ik}+\varepsilon_i^*,\qquad \mathbf y^0=\mathbf W\boldsymbol\delta+\boldsymbol\varepsilon^*,\]

with least squares estimate

\[\hat{\boldsymbol\delta}=(\mathbf W'\mathbf W)^{-1}\mathbf W'\mathbf y^0. \tag{6.4}\]

The correlation form

With unit length scaling, \(\mathbf W'\mathbf W\) is the correlation matrix of the explanatory variables,

\[\mathbf W'\mathbf W=\begin{bmatrix}1&r_{12}&r_{13}&\cdots&r_{1k}\\r_{12}&1&r_{23}&\cdots&r_{2k}\\r_{13}&r_{23}&1&\cdots&r_{3k}\\\vdots&\vdots&\vdots&\ddots&\vdots\\r_{1k}&r_{2k}&r_{3k}&\cdots&1\end{bmatrix}, \tag{6.5}\]

\[r_{ij}=\frac{\sum_{u=1}^n(x_{ui}-\bar x_i)(x_{uj}-\bar x_j)}{(S_{ii}S_{jj})^{1/2}}=\frac{S_{ij}}{(S_{ii}S_{jj})^{1/2}},\]

where \(r_{ij}\) is the simple correlation between the explanatory variables \(x_i\) and \(x_j\). Similarly,

\[\mathbf W'\mathbf y^0=(r_{1y},r_{2y},\ldots,r_{ky})', \tag{6.6}\]

the vector of correlations between each explanatory variable and \(y\). So \(\hat{\boldsymbol\delta}=\mathbf R_{xx}^{-1}\mathbf r_{xy}\) can be computed from correlations alone.

6.3 Equivalence of the two scalings

If unit normal scaling is used, \(z_{ij}=w_{ij}\sqrt{n-1}\) and \(y_i^*=y_i^0\sqrt{n-1}\), so

\[\mathbf Z'\mathbf Z=(n-1)\mathbf W'\mathbf W,\qquad \mathbf Z'\mathbf y^*=(n-1)\mathbf W'\mathbf y^0.\]

The factor \((n-1)\) cancels in Equation 6.2, and the estimates in both scalings are identical:

\[\hat{\boldsymbol\gamma}=\hat{\boldsymbol\delta}. \tag{6.7}\]

6.4 Relationship between original and standardized coefficients

The original least squares coefficients \(b_j=\hat\beta_j\) are recovered from the standardized ones by

\[b_j=\hat\delta_j\left(\frac{SS_T}{S_{jj}}\right)^{1/2}=\hat\delta_j\,\frac{s_y}{s_j},\qquad j=1,2,\ldots,k, \tag{6.8}\]

\[b_0=\bar y-\sum_{j=1}^kb_j\bar x_j. \tag{6.9}\]

Equivalently \(\hat\delta_j=b_j\,s_j/s_y\): a standardized coefficient is the change in \(y\), in standard deviations of \(y\), for a change of one standard deviation in \(x_j\), the other regressors held fixed.

Note
  1. Standardized coefficients make the effects of regressors measured in different units comparable, but they depend on the spread of the \(x\) values in the particular sample. A regressor that varies little in the sample will appear unimportant even if its effect per unit is large. Use them with care for judging “importance”.
  2. Scaling does not change \(t\) statistics, \(F\), \(R^2\) or residual patterns; it changes only the units of the coefficients.
  3. Working with the correlation matrix \(\mathbf W'\mathbf W\) improves the numerical accuracy of computations and is the starting point for studying multicollinearity (Chapter 11) and for path analysis in plant breeding, where standardized coefficients are called path coefficients (direct effects).
  4. In economics the elasticity at the means, \(\eta_j=b_j\,\bar x_j/\bar y\), is another unit-free measure: the percentage change in \(y\) for a 1% change in \(x_j\).

Example 6.1 For the data of Example 4.1, compute the standardized regression coefficients and recover the original coefficients.

Solution

The correlation matrix of the regressors and the vector of correlations with \(y\) are

\[\mathbf W'\mathbf W=\mathbf R_{xx}=\begin{bmatrix}1.0000 & 0.9553 \\ 0.9553 & 1.0000\end{bmatrix},\qquad \mathbf W'\mathbf y^0=\mathbf r_{xy}=\begin{bmatrix}0.8520 \\ 0.7117\end{bmatrix}.\]

By Equation 6.4,

\[\hat{\boldsymbol\delta}=\mathbf R_{xx}^{-1}\mathbf r_{xy}=\begin{bmatrix}11.4527 & -10.9413 \\ -10.9413 & 11.4527\end{bmatrix}\begin{bmatrix}0.8520 \\ 0.7117\end{bmatrix}=\begin{bmatrix}1.9710 \\ -1.1713\end{bmatrix}.\]

With \(SS_T=165.000\), \(S_{11}=70.667\) and \(S_{22}=137.000\), Equation 6.8 gives

\[b_1=1.9710\sqrt{\frac{165.000}{70.667}}=3.0118,\qquad b_2=-1.1713\sqrt{\frac{165.000}{137.000}}=-1.2855,\]

and by Equation 6.9, \(b_0=7.500-(3.0118)(4.333)-(-1.2855)(8.500)=5.3754\), in agreement with Example 4.1.

In standardized units, \(x_1\) has an effect of 1.971 and \(x_2\) an effect of -1.171 standard deviations of \(y\) per standard deviation of the regressor. The large opposite-signed standardized coefficients, much larger in magnitude than the simple correlations, are a symptom of the high correlation \(r_{12}=0.955\) between the regressors.

6.5 R practical

d12 <- read.csv("csv/notes12.csv")

# Unit normal scaling with scale(); no intercept needed
zs  <- as.data.frame(scale(d12))
fz  <- lm(y ~ x1 + x2 - 1, data = zs)
coef(fz)                                  # gamma-hat
#>        x1        x2 
#>  1.971041 -1.171350
# Unit length scaling
ul  <- function(v) (v - mean(v)) / sqrt(sum((v - mean(v))^2))
wd  <- as.data.frame(lapply(d12, ul))
fw  <- lm(y ~ x1 + x2 - 1, data = wd)
coef(fw)                                  # delta-hat, identical
#>        x1        x2 
#>  1.971041 -1.171350
crossprod(as.matrix(wd[, -1]))            # W'W = correlation matrix
#>           x1        x2
#> x1 1.0000000 0.9553451
#> x2 0.9553451 1.0000000
# From correlations directly
solve(cor(d12[, -1]), cor(d12[, -1], d12$y))
#>         [,1]
#> x1  1.971041
#> x2 -1.171350
# Back to the original scale
fit <- lm(y ~ x1 + x2, data = d12)
coef(fw) * sd(d12$y) / sapply(d12[, -1], sd)
#>        x1        x2 
#>  3.011830 -1.285489
coef(fit)[-1]
#>        x1        x2 
#>  3.011830 -1.285489
Historical Insights

Path coefficients

Standardized regression coefficients were put to their most famous use by the geneticist Sewall Wright, who in 1921 introduced path analysis to separate the correlation between two variables into direct and indirect effects along a causal diagram. Wright’s path coefficients are exactly the standardized partial regression coefficients of this chapter. Dewey and Lu brought path analysis to plant breeding in 1959 with a study of yield components of crested wheatgrass, and it remains a standard tool for analysing yield components in crop improvement.

Quotes to Inspire

“Not everything that can be counted counts, and not everything that counts can be counted.”
- William Bruce Cameron

6.6 Practical exercises

6.6.1 Practical 6.1: Which input matters more?

For the milk yield data of Practical 4.1, compute the standardized regression coefficients of concentrate (\(x_1\)) and green fodder (\(x_2\)) by unit length scaling, interpret them, and recover the original coefficients.

Solution

\[\mathbf W'\mathbf W=\begin{bmatrix}1.0000 & 0.8352 \\ 0.8352 & 1.0000\end{bmatrix},\qquad \mathbf W'\mathbf y^0=\begin{bmatrix}0.9910 \\ 0.8562\end{bmatrix},\qquad \hat{\boldsymbol\delta}=(\mathbf W'\mathbf W)^{-1}\mathbf W'\mathbf y^0=\begin{bmatrix}0.9124 \\ 0.0941\end{bmatrix}.\]

A one standard deviation increase in concentrate raises milk yield by 0.912 standard deviations, and one in green fodder by 0.094 standard deviations, each with the other held fixed: concentrate has the larger standardized effect. Back-transforming by Equation 6.8 with \(SS_T=151.333\), \(S_{11}=17.5\), \(S_{22}=10.833\) gives \(b_1=2.6831\) and \(b_2=0.3517\), and by Equation 6.9 \(b_0=6.2791\), the same as Practical 4.1.

Doing it in R

cows <- data.frame(y = c(10, 12, 15, 18, 20, 25), x1 = 1:6, x2 = c(2, 1, 3, 2, 4, 5))
ul <- function(v) (v - mean(v)) / sqrt(sum((v - mean(v))^2))        # unit length
d  <- coef(lm(y ~ x1 + x2 - 1, data = as.data.frame(lapply(cows, ul))))
d
#>         x1         x2 
#> 0.91242039 0.09411106
coef(lm(y ~ x1 + x2 - 1, data = as.data.frame(scale(cows))))         # unit normal: same
#>         x1         x2 
#> 0.91242039 0.09411106
d * sd(cows$y) / sapply(cows[, -1], sd)                              # back to original scale
#>        x1        x2 
#> 2.6831395 0.3517442
coef(lm(y ~ x1 + x2, data = cows))
#> (Intercept)          x1          x2 
#>   6.2790698   2.6831395   0.3517442

6.7 Chapter Summary

Fill in the blanks

Answers are given at the end of the chapter.

  1. The magnitude of \(\hat\beta_j\) depends on the __________ of \(x_j\).

  2. Scaled explanatory variables give __________ regression coefficients.

  3. In unit normal scaling, each scaled variable has mean __________ and variance __________.

  4. Centering the variables removes the __________ term.

  5. In unit length scaling, each scaled regressor has length __________.

  6. With unit length scaling, \(\mathbf W'\mathbf W\) is the __________ matrix of the regressors.

  7. \(\mathbf Z'\mathbf Z=\) __________ \(\mathbf W'\mathbf W\).

  8. The estimates under unit normal and unit length scaling are __________.

  9. The original coefficient is recovered as \(b_j=\hat\delta_j\,\times\) __________.

  10. In plant breeding, standardized partial regression coefficients are called __________ coefficients.

Short-answer questions

  1. Why can raw regression coefficients not be compared directly?

  2. Describe unit normal scaling.

  3. Describe unit length scaling.

  4. Show that with unit length scaling \(\mathbf W'\mathbf W\) is the correlation matrix.

  5. Prove that the two scalings give identical estimates.

  6. How are the intercept and slopes recovered from standardized coefficients?

  7. Interpret a standardized coefficient of \(0.6\).

  8. State the limitations of standardized coefficients for judging importance.

  9. What quantities are unchanged by scaling?

  10. Define elasticity at the means.

Numerical and conceptual questions

Answers are given at the end of the chapter.

  1. A regression of yield (kg/ha) on rainfall (mm) gives \(b=4.2\); \(s_y=600\), \(s_x=150\). Find the standardized coefficient.

  2. With two regressors, \(r_{12}=0.5\), \(r_{1y}=0.7\), \(r_{2y}=0.6\). Find \(\hat\delta_1\) and \(\hat\delta_2\).

  3. For Question 2, find \(R^2=\hat{\boldsymbol\delta}'\mathbf r_{xy}\).

  4. If \(\hat\delta_1=0.45\), \(SS_T=900\) and \(S_{11}=100\), find \(b_1\).

  5. If \(b_1=2\), \(b_2=-0.5\), \(\bar x_1=10\), \(\bar x_2=20\) and \(\bar y=50\), find \(b_0\).

  6. For Question 5, find the elasticities of \(y\) with respect to \(x_1\) and \(x_2\) at the means.

  7. If \(r_{12}=0\), what are the standardized coefficients in terms of simple correlations?

  8. A sample has \(n=15\); what is the relation between \(\mathbf Z'\mathbf Z\) and \(\mathbf W'\mathbf W\)?

Important formulae

Unit normal scaling:

\[ z_{ij}=\frac{x_{ij}-\bar x_j}{s_j},\qquad y_i^*=\frac{y_i-\bar y}{s_y} \]

Unit length scaling:

\[ w_{ij}=\frac{x_{ij}-\bar x_j}{S_{jj}^{1/2}},\qquad y_i^0=\frac{y_i-\bar y}{SS_T^{1/2}} \]

Standardized estimates:

\[ \hat{\boldsymbol\delta}=(\mathbf W'\mathbf W)^{-1}\mathbf W'\mathbf y^0=\mathbf R_{xx}^{-1}\mathbf r_{xy}=\hat{\boldsymbol\gamma} \]

Back-transformation:

\[ b_j=\hat\delta_j\left(\frac{SS_T}{S_{jj}}\right)^{1/2},\qquad b_0=\bar y-\sum_{j=1}^kb_j\bar x_j \]

Quick revision

  • Raw coefficients depend on units → not comparable.
  • Unit normal scaling → divide by standard deviation; unit length scaling → divide by \(\sqrt{\text{corrected SS}}\).
  • Centering removes the intercept; \(\mathbf W'\mathbf W\) = correlation matrix.
  • Both scalings give the same \(\hat{\boldsymbol\delta}\).
  • \(b_j=\hat\delta_js_y/s_j\); \(b_0=\bar y-\sum b_j\bar x_j\).
  • Standardized coefficients = path coefficients (direct effects).

Answers to fill in the blanks

1. Unit of measurement 2. Dimensionless 3. 0; 1 4. Intercept 5. One 6. Correlation 7. \((n-1)\) 8. Identical 9. \((SS_T/S_{jj})^{1/2}\) 10. Path

Solutions to numerical and conceptual questions

  1. \(\hat\delta=b\,s_x/s_y=4.2(150/600)=1.05\).

  2. \(\hat\delta_1=\dfrac{r_{1y}-r_{12}r_{2y}}{1-r_{12}^2}=\dfrac{0.7-0.3}{0.75}=0.533\); \(\hat\delta_2=\dfrac{0.6-0.35}{0.75}=0.333\).

  3. \(R^2=0.533(0.7)+0.333(0.6)=0.573\).

  4. By Equation 6.8, \(b_1=0.45\sqrt{900/100}=1.35\).

  5. By Equation 6.9, \(b_0=50-2(10)-(-0.5)(20)=40\).

  6. \(\eta_1=2(10/50)=0.4\); \(\eta_2=-0.5(20/50)=-0.2\).

  7. \(\mathbf R_{xx}=\mathbf I\), so \(\hat\delta_j=r_{jy}\).

  8. \(\mathbf Z'\mathbf Z=14\,\mathbf W'\mathbf W\).