Model Output
Study guides: Exam MAS-I, Exam MAS-II, Exam 7
Model Output is the set of tables and statistics that statistical software reports about a fitted model. The output of a regression or a generalized linear model has three parts:
- The parameter estimate table: each coefficient's estimate, standard error, test statistic and p-value.
- The ANOVA table, or for a GLM the analysis of deviance: degrees of freedom, sums of squares or deviances, and the test statistic for each source.
- The fit statistics: the residual standard error,
R^2, the dispersion estimate, the null and residual deviance, and AIC.
Output of a linear regression
A linear regression with an intercept and p predictors, fitted to n observations, leaves n - p - 1 residual degrees of freedom. The estimate of the error variance \sigma^2 is
\hat{\sigma}^2 = \frac{\text{RSS}}{n - p - 1}
\text{RSS}is the residual sum of squares.
The residual standard error in the output is \hat{\sigma}, so squaring it gives \hat{\sigma}^2. The F statistic for the regression as a whole is
F = \frac{(\text{TSS} - \text{RSS})/p}{\text{RSS}/(n - p - 1)}
\text{TSS}is the total sum of squares of the response about its mean.
The output also reports R^2 = 1 - \text{RSS}/\text{TSS}.
A regression with 3 predictors is fitted to 50 claims, with
\text = 3040and\text = 1840. One coefficient is 0.182 with standard error 0.046. What are\hat,F,R^2and that coefficient'ststatistic?
- The residual degrees of freedom are
50 - 3 - 1 = 46, so\hat{\sigma}^2 = 1{,}840/46 = 40and\hat{\sigma} = 6.32.- The regression sum of squares is
3{,}040 - 1{,}840 = 1{,}200, soF = (1{,}200/3)/40 = 10.0.R^2 = 1 - 1{,}840/3{,}040 = 0.395.- The
tstatistic is0.182/0.046 = 3.96.
Output of a generalized linear model
With a log link, the fitted mean is \mu_i = e^{\eta_i}, so the output's coefficients act multiplicatively. A one-unit increase in predictor x_j, or a move from the base level to another level, multiplies the expected response by
e^{\hat{\beta}_j}
\hat{\beta}_jis the estimated coefficient, with the other predictors held fixed.
The dispersion parameter \phi of a Gamma or normal GLM measures the spread of the response around its mean. It scales the standard errors, but it does not enter the prediction of the mean.
A Gamma severity GLM with a log link reports an intercept of 7.00, a coefficient of 0.18 for territory B (territory A is the base level) and a dispersion estimate of 1.4. What is the predicted mean severity in territory B?
- The linear predictor for territory B is
7.00 + 0.18 = 7.18.- The predicted mean severity is
e^{7.18} = 1{,}312.9.- Territory B's severity is
e^{0.18} = 1.197times territory A's, which ise^{7.00} = 1{,}096.6.- The dispersion estimate does not enter the predicted mean.
Output of a linear mixed model
A linear mixed model reports a table of fixed effects, read like a parameter estimate table, and the variance components of the random effects and the residual. It also reports -2 times the maximized log-likelihood. For two nested models, the likelihood ratio test statistic is
\text{LRT} = (-2l_0) - (-2l_1)
l_0is the maximized log-likelihood of the restricted (null) model.l_1is the maximized log-likelihood of the larger model.
The statistic is compared with a chi-squared distribution whose degrees of freedom are the number of added parameters, when the null value of each tested parameter lies inside its range. To test whether a random effect is needed, the null hypothesis is that its variance is zero. Zero is on the boundary of the range of a variance, so the reference distribution is an equal mixture of \chi^2_0 and \chi^2_1, and the p-value is half the \chi^2_1 p-value.
A model of loss ratios with a random intercept for each agency has
-2l = 412.8. The same model without the random intercept has-2l = 425.1. Is the random intercept needed?
- The likelihood ratio test statistic is
425.1 - 412.8 = 12.3.- The null hypothesis is that the agency variance is zero, which is on the boundary.
- The
\chi^2_1p-value of 12.3 is 0.00045, so the p-value is0.5 \times 0.00045 = 0.00023.- The random intercept is needed.
Output of a stochastic reserving model
A stochastic reserving model, such as the ODP bootstrap model, reports a simulated unpaid claim distribution: by accident year and in total, the mean unpaid, its standard error, its percentiles and its coefficient of variation. The coefficient of variation is
\text{CV} = \frac{\text{standard error of unpaid}}{\text{mean unpaid}}
Before the distribution is used, its output is checked for reasonableness:
- The standard error should increase from the oldest to the most recent accident year, because the more recent years have larger mean unpaid amounts.
- The standard error of the total should be larger than that of any single accident year.
- The CV should generally decrease from the oldest to the most recent accident year, because the variability is measured against a larger mean.
- The CV of the total should be smaller than that of any single accident year, because of diversification across years.
- The CV of the most recent year or two may rise again, when parameter uncertainty outweighs process uncertainty. A large rise, or a year with a CV below the total's, is a problem to investigate.
An ODP bootstrap reports the mean unpaid and its standard error by accident year, in thousands. Does the output pass the reasonableness checks?
Accident year Mean unpaid Standard error CV 2019 180 95 0.53 2020 520 190 0.37 2021 1,150 310 0.27 2022 2,400 520 0.22 2023 3,900 1,400 0.36 Total 8,150 1,650 0.20
- The standard error rises from 95 to 1,400, and the total's 1,650 is larger than every single year's.
- The CV falls from 0.53 to 0.22 through 2022, and the total's 0.20 is smaller than every single year's.
- The CV of 2023 rises from 0.22 to 0.36, which is a large rise for the most recent year.
- The output passes the first four checks, and the 2023 projection should be investigated before the distribution is used.
Practice questions
- CAS Exam 7 Spring 2014, Question 9
- CAS Exam MAS-I Fall 2018, Question 30
- Exam MAS-I Practice Question 97
- Exam MAS-I Practice Question 98
- Exam MAS-I Practice Question 108
- Exam MAS-I Practice Question 164
- CAS Exam MAS-II Fall 2018, Question 1
- CAS Exam MAS-II Fall 2018, Question 2
- CAS Exam MAS-II Fall 2019, Question 1
- CAS Exam MAS-II Fall 2019, Question 14
- CAS Exam MAS-II Fall 2019, Question 20
- CAS Exam MAS-II Spring 2019, Question 1
- CAS Exam MAS-II Spring 2019, Question 2
- CAS Exam MAS-II Spring 2019, Question 16