Linear Regression
Study guides: Exam SRM, Exam MAS-I, Exam MAS-II, DISC-DA, FIE-M1
A Linear Regression is a model in which a response Y is a linear function of predictors x_1, \ldots, x_p plus a random error. For observation i of n, the multiple linear regression model is
Y_i = \beta_0 + \beta_1 x_{i1} + \cdots + \beta_p x_{ip} + \varepsilon_i
\beta_0is the intercept, the expected response when every predictor is zero.\beta_jis the expected change in the response for a one-unit increase inx_j, holding the other predictors fixed.\varepsilon_iis the error, independent of the predictors and of the other errors, with mean0and variance\sigma^2.
The coefficients are estimated by ordinary least squares, which gives the estimates \hat\beta_0, \ldots, \hat\beta_p. The predicted response at predictor values x_1, \ldots, x_p is
\hat{y} = \hat\beta_0 + \hat\beta_1 x_1 + \cdots + \hat\beta_p x_p
At the predictor values of an observation in the data, \hat{y}_i is that observation's fitted value.
A fitted model is
\hat = 12 + 3x_1 - 2x_2. What is the predicted response atx_1 = 4andx_2 = 5, and what happens to the prediction whenx_2increases by 1?
- The predicted response is
12 + 3(4) - 2(5) = 14.- The coefficient of
x_2is-2, so a one-unit increase inx_2, withx_1held at 4, lowers the prediction by 2, to 12.
Simple linear regression
With one predictor, the model is
Y_i = \beta_0 + \beta_1 x_i + \varepsilon_i
The intercept \beta_0 is the expected value of Y when x = 0, not the overall mean of Y. The slope \beta_1 is the average change in Y for a one-unit increase in x. The least squares estimates of \beta_0 and \beta_1 are given by the simple linear regression formulas.
A regression of claim severity on driver age, in years, gives
\hat = 4000 - 25x. What do the intercept and the slope say?
- The slope says that expected severity falls by 25 for each additional year of driver age.
- The intercept is the expected severity at age 0, which lies far outside the data, so it is not the average severity and has no direct meaning here.
Assumptions of the linear model
The normal linear model assumes:
- The mean of the response is linear in the coefficients.
- The errors are independent.
- The errors have the same variance
\sigma^2at every value of the predictors. - The errors are normally distributed.
A residual plot checks the first and third assumptions, and a QQ plot checks the fourth. Under these assumptions the least squares estimates are the maximum likelihood estimates, and the model is the generalized linear model with a normal response and the identity link.
A normal response can take negative values and has a variance that does not depend on its mean. Claim counts and claim severities are non-negative, and their variance grows with their mean, so they are usually modelled with a generalized linear model instead.
An actuary fits claim counts, mostly 0, 1 or 2, by linear regression on territory and exposure. The residual plot fans out and some fitted values are negative. Which assumptions fail, and what model is better?
- The variance of a count grows with its mean, so the constant-variance assumption fails, which is why the residuals fan out.
- The identity link lets the fitted mean fall below zero, which is impossible for a count.
- A Poisson regression with a log link fits better: its variance equals its mean, and its fitted means
e^{\hat\eta}are always positive.
Coefficients of transformed predictors
When the model uses \ln x as its predictor, the expected response is
E[Y] = \beta_0 + \beta_1 \ln x
\beta_1is the change in the expected response for a one-unit increase in\ln x.
Multiplying x by a factor c adds \beta_1 \ln c to the expected response. When a predictor is standardized, by subtracting its mean and dividing by its standard deviation, its coefficient is the change in the expected response for a one-standard-deviation increase in the original predictor.
A model gives
\hat = 2.0 + 0.8 \ln x. By how much does the predicted response change whenxdoubles?
- Doubling
xadds\ln 2to\ln x.- The predicted response increases by
0.8 \ln 2 = 0.5545.
Reading a coefficient without holding the other predictors fixed In a multiple regression,
\hat\beta_jis the change in the predicted response whenx_jincreases by one and the other predictors do not change. It is not the change seen when the response is regressed onx_jalone, and the two can differ in size and even in sign when the predictors are correlated.
Practice questions
- CAS Exam 7 Spring 2012, Question 4
- CAS Exam 7 Spring 2016, Question 2
- CAS Exam 7 Spring 2017, Question 2
- CAS Exam 7 Spring 2018, Question 4
- CAS Exam 7 Spring 2018, Question 10
- CAS Exam 9 Spring 2016, Question 9
- CAS Exam 9 Spring 2019, Question 3
- Exam DISC-DA Practice Question 225
- CAS Exam MAS-I Fall 2018, Question 44
- CAS Exam MAS-I Fall 2019, Question 30
- CAS Exam MAS-I Fall 2019, Question 31
- CAS Exam MAS-I Fall 2019, Question 35
- CAS Exam MAS-I Spring 2019, Question 29
- CAS Exam MAS-I Spring 2019, Question 30
- CAS Exam MAS-I Spring 2019, Question 31
- CAS Exam MAS-I Spring 2019, Question 32
- CAS Exam MAS-I Spring 2019, Question 36
- CAS Exam MAS-I Spring 2019, Question 44
- Exam MAS-I Practice Question 91
- Exam MAS-I Practice Question 107
- Exam MAS-I Practice Question 108
- Exam MAS-I Practice Question 109
- Exam MAS-I Practice Question 125
- Exam MAS-I Practice Question 126
- Exam MAS-I Practice Question 161
- Exam MAS-I Practice Question 170
- CAS Exam MAS-I Sample Question 4
- CAS Exam MAS-II Fall 2018, Question 23
- CAS Exam MAS-II Fall 2018, Question 32
- CAS Exam MAS-II Fall 2019, Question 22
- CAS Exam MAS-II Fall 2019, Question 26
- CAS Exam MAS-II Fall 2019, Question 32
- SOA Exam SRM Sample Question 11
- SOA Exam SRM Sample Question 13
- SOA Exam SRM Sample Question 18
- SOA Exam SRM Sample Question 23
- SOA Exam SRM Sample Question 27
- SOA Exam SRM Sample Question 44
- SOA Exam SRM Sample Question 49
- SOA Exam SRM Sample Question 53
- SOA Exam SRM Sample Question 54
- SOA Exam SRM Sample Question 62
- SOA Exam SRM Sample Question 71