Actuarial Notes

Regression Through the Origin

Study guide: Exam MAS-I

Regression Through the Origin is a linear regression fitted without an intercept, so the fitted response is zero when every predictor is zero. With one predictor, the model is

Y_i = \beta_1 x_i + \varepsilon_i

  • The errors \varepsilon_i are uncorrelated, with mean 0 and variance \sigma^2.

It suits a response that is proportional to its predictor, such as losses to premium, or a model whose intercept is not significantly different from zero. The least squares estimate of the slope is

\hat\beta_1 = \frac{\sum_{i=1}^{n} x_i y_i}{\sum_{i=1}^{n} x_i^2}

The same formula gives the least squares slope of a regression with an intercept when x and y have both been centred to mean zero. If the no-intercept model is correct, \hat\beta_1 is unbiased, and its variance is

\text{Var}(\hat\beta_1) = \frac{\sigma^2}{\sum_{i=1}^{n} x_i^2}

Only one coefficient is estimated, so the error variance is estimated on n - 1 degrees of freedom, one more than with an intercept:

\hat\sigma^2 = \frac{1}{n - 1}\sum_{i=1}^{n} (y_i - \hat\beta_1 x_i)^2

Five cedants have earned premiums of 10, 20, 30, 40 and 50 and incurred losses of 10, 15, 19, 29.5 and 34. What is the fitted model y = \beta_1 x, and what is a 95% confidence interval for \beta_1?

  • \sum x_i y_i = 3{,}850 and \sum x_i^2 = 5{,}500, so \hat\beta_1 = 3{,}850/5{,}500 = 0.70, the expected loss ratio.
  • The fitted values are 7, 14, 21, 28 and 35, so the residuals are 3, 1, -2, 1.5 and -1.
  • \hat\sigma^2 = (9 + 1 + 4 + 2.25 + 1)/4 = 4.3125, and the standard error of \hat\beta_1 is \sqrt{4.3125/5{,}500} = 0.0280.
  • With t_{0.025,\,4} = 2.776, the interval is 0.70 \pm 2.776(0.0280), or (0.622, 0.778).

Residuals and R-squared without an intercept

Without an intercept, the least squares fit makes only \sum x_i e_i = 0, so the residuals e_i = y_i - \hat\beta_1 x_i need not sum to zero. The division of \sum (y_i - \bar{y})^2 into regression and residual parts no longer holds. Software usually measures R^2 about zero instead of about the mean:

R^2 = 1 - \frac{\text{RSS}}{\sum_{i=1}^{n} y_i^2}

This R^2 is not comparable with the R^2 of a model with an intercept. Dropping the intercept always raises the RSS, so the choice between the two models rests on the t test of the intercept in the model with one and on the two residual standard errors, \hat\sigma. Both models estimate the same \sigma, and dropping a parameter raises the RSS but also adds a degree of freedom, so the residual standard error can fall or rise.

Expenses of 48, 62, 66, 80 and 86 are regressed on policy counts of 10, 12, 14, 16 and 18. With an intercept, the RSS is 23.60, R^2 = 0.974 and the intercept's t statistic is 0.41. Through the origin, the software reports R^2 = 0.999. Does the no-intercept model fit better?

  • Through the origin, \hat\beta_1 = 4{,}976/1{,}020 = 4.878, and the RSS is 24.93, larger than 23.60 because a parameter was dropped.
  • The reported 0.999 is 1 - 24.93/24{,}300, measured about zero, so it cannot be compared with 0.974.
  • Measured about the mean, the no-intercept fit has 1 - 24.93/907.2 = 0.973.
  • The intercept is not significant (t = 0.41), and the residual standard error is \sqrt{24.93/4} = 2.50 through the origin against \sqrt{23.60/3} = 2.80 with an intercept.
  • The no-intercept model is preferred on these two grounds, not because of its larger reported R^2.

A categorical predictor without an intercept

Dropping the intercept while keeping an indicator for every level of a categorical predictor does not force the fit through the origin. The indicators add up to the intercept column, so the model spans the same space, the fitted values are unchanged, and each level gets its own intercept. Recoding a two-level indicator, by swapping which level is 0 and which is 1, changes only the base level. The fitted values and the other coefficients stay the same, and the indicator's coefficient changes sign.

Rural claims of 2 and 4 and urban claims of 7 and 9 are fitted as \beta_0 + \beta_1 I_}, giving 3 and 5. What are the coefficients with the indicator recoded as I_}, and with no intercept and both indicators?

  • With I_{\text{rural}}, the base level is urban, so the intercept is the urban mean, 8, and the rural coefficient is 3 - 8 = -5.
  • With no intercept and both indicators, each coefficient is its level's mean, 3 for rural and 8 for urban.
  • In all three versions the fitted values are 3, 3, 8 and 8.

Forcing the line through the origin on data far from it When the observed predictor values are all far from zero, the data say nothing about whether the line really passes through the origin. Dropping the intercept then imposes an assumption the data cannot check, and the model predicts a zero response at zero predictors whether or not that is sensible.

Practice questions

Actuarial Notes