Regression Through the Origin
Study guide: Exam MAS-I
Regression Through the Origin is a linear regression fitted with no intercept term, so the fitted response is zero when every explanatory variable is zero. It suits a response that is proportional to its predictor, or a model whose intercept tests as not significantly different from zero.
Y_i = \beta x_i + \varepsilon_i
\hat\beta = \frac{\sum_{i=1}^{n} x_i y_i}{\sum_{i=1}^{n} x_i^2}
\text{Var}(\hat\beta) = \frac{\sigma^2}{\sum_{i=1}^{n} x_i^2}
s^2 = \frac{1}{n - 1}\sum_{i=1}^{n}\left(y_i - \hat\beta x_i\right)^2
- The errors
\varepsilon_iare uncorrelated with mean 0 and variance\sigma^2.\hat\betais the least-squares slope and is unbiased.s^2is an unbiased estimate of\sigma^2onn - 1degrees of freedom, one more than with an intercept, and a confidence interval for\betais\hat\beta \pm t_{\alpha/2,\,n - 1}\, s\big/\sqrt{\sum x_i^2}. - When to use it: when theory says the response is zero at zero, such as profit at zero sales, or when the intercept in the full model is not significant. Leaving the intercept out can give non-intuitive results: the model then predicts a zero response whenever all the explanatory variables are zero, which may not be sensible. Data far from the origin say nothing about whether the line really runs through it.
- Residuals: only
\sum x_i e_i = 0holds, so the residualse_i = y_i - \hat\beta x_iusually have a nonzero mean. The decomposition of\sum(y_i - \bar{y})^2into regression and residual parts then fails. - R-Squared is not comparable. Packages disagree on
R^2without a constant. Some report\sum\hat{y}_i^2 / \sum y_i^2, the share of variation about zero: it is at least as large as the usualR^2of the same fit and cannot be compared with theR^2of a model with an intercept. Others apply the usual1 - \text{SSE}/\sum(y_i - \bar{y})^2, which can then be negative. To choose between the two models, use the intercept's t-test in the full model and the two residual standard errors. - With
kpredictors and no constant, the total, regression and residual sums of squares haven,kandn - kdegrees of freedom. - A factor is different: dropping the intercept while keeping indicators for all levels of a Categorical Predictor forces nothing through the origin. The indicators add up to the constant column, so the fit is unchanged and each level gets its own intercept.
- GLMs: with linear predictor
\eta = g(\mu) = \mathbf{x}^\top\boldsymbol\beta, a Generalized Linear Model with no intercept has\eta = 0when every predictor is zero, so\mu = g^{-1}(0)there: 1 under a log link, 0.5 under a logit link.
Fitting Losses Proportional to Premium Five cedants have earned premium
xand incurred lossesy(both $ millions):
x10 20 30 40 50 y10 15 19 29.5 34 Fit
y = \beta x, give a 95% confidence interval for\beta, and check whether the residuals sum to zero. Fitted with an intercept, the same data give\hat\beta_0 = 2.75with standard error1.95. Is the intercept needed?Answer
\sum x_i y_i = 3{,}850and\sum x_i^2 = 5{,}500:\begin{align*} \hat\beta &= \frac{3{,}850}{5{,}500} \\ &= 0.70 \end{align*}The fitted values are
7, 14, 21, 28, 35, so the residuals are3, 1, -2, 1.5, -1. They sum to2.5, not zero.\begin{align*} s^2 &= \frac{9 + 1 + 4 + 2.25 + 1}{5 - 1} \\ &= 4.3125 \\ \text{se}(\hat\beta) &= \sqrt{4.3125/5{,}500} \\ &= 0.0280 \end{align*}With
t_{0.025,\,4} = 2.776(two-sided area0.05in the CAS table), the interval is0.70 \pm 2.776(0.0280) = 0.70 \pm 0.078, or(0.622,\ 0.778). The slope is the expected loss ratio.For the intercept,
t = 2.75/1.95 = 1.41on5 - 2 = 3df, below the two-sided 5% value3.182. The intercept is not significant, which supports the no-intercept fit.
The R-Squared Trap Expenses
y($000s) are regressed on policy countx(hundreds) for five offices:
x10 12 14 16 18 y48 62 66 80 86 With an intercept the fit is
\hat{y} = 2.6 + 4.7x, with SSE23.60andR^2 = 0.974; the intercept's t-statistic is0.41. Through the origin, the software reportsR^2 = 0.999. A colleague concludes the no-intercept model fits better. Assess this.Answer Through the origin,
\hat\beta = \sum x_i y_i/\sum x_i^2 = 4{,}976/1{,}020 = 4.878. Its SSE is\begin{align*} \text{SSE} &= \sum y_i^2 - \hat\beta^2 \sum x_i^2 \\ &= 24{,}300 - 24{,}275.07 \\ &= 24.93 \end{align*}This is larger than
23.60, as it must be: dropping a parameter can never lower the SSE. The reported0.999is1 - 24.93/24{,}300, measured about zero. On the usual basis,1 - 24.93/907.2 = 0.973, just below the intercept model's0.974.The colleague's reason is wrong, but the conclusion can stand on valid grounds. The intercept is not significant (
t = 0.41). The residual standard error is\sqrt{24.93/4} = 2.50through the origin against\sqrt{23.60/3} = 2.80with an intercept, because the no-intercept model keeps one more degree of freedom.