Outlier
Study guides: ATPA, Exam PCPA, Exam ACIA-CAPSTONE
An Outlier is an observation that lies far from the bulk of the data, or far from what a model predicts for it. The first question to ask about one is always why: an outlier is either an error to be corrected, or a real but extreme value, such as a large loss, that has to be kept but kept from dominating the fit.
A value is flagged as an outlier when it falls outside the fences, which are
\text{Lower fence} = Q_1 - 1.5 \times \text{IQR}
\text{Upper fence} = Q_3 + 1.5 \times \text{IQR}
Q_1andQ_3are the first and third quartiles.\text{IQR} = Q_3 - Q_1is the interquartile range.
This is the rule a box plot draws. It relies on quartiles, which the outliers themselves barely move.
For
2000auto physical damage claims,Q_1 = \$1200andQ_3 = \$6800. Which of the claims\$14000,\$95000and-\$3000are flagged?
- The IQR is
6{,}800 - 1{,}200 = 5{,}600.- The upper fence is
6{,}800 + 1.5 \times 5{,}600 = 15{,}200.- The lower fence is
1{,}200 - 1.5 \times 5{,}600 = -7{,}200.- Only the
\$95{,}000claim is flagged. It could be a genuine total loss on an expensive vehicle, so it is checked rather than dropped.- The
-\$3{,}000claim passes the fence but is still wrong. It is probably a salvage or subrogation recovery recorded as a separate transaction, a data quality problem the fence cannot see.
Outliers and leverage in a regression
In a model, an outlier is a point with a large standardized residual: its response is unusual given its predictors. A high-leverage point is different: its predictor values are unusual, measured by the leverage h_{ii} (the i-th diagonal of the hat matrix, which depends only on the x values). A point is influential when removing it would change the fitted coefficients materially.
Outliers and high-leverage points only have the potential to be influential. Whether a point is influential depends on both its residual and its leverage, and Cook's distance combines the two:
D_i = \dfrac{e_i^2}{p \cdot \text{MSE}} \cdot \dfrac{h_{ii}}{(1 - h_{ii})^2}
e_iis the residual of observationi.pis the number of coefficients, including the intercept.\text{MSE}is the mean squared error of the fit.
A high-leverage point can be influential without having a large residual, because it pulls the fit toward itself.
A regression with an intercept and one predictor has
\text = 4. An observation has residual3and leverage0.5. What is its Cook's distance?
- The model has an intercept and one slope, so
p = 2.- The first factor is
3^2/(2 \times 4) = 1.125.- The second factor is
0.5/(1 - 0.5)^2 = 2.- Cook's distance is
D_i = 1.125 \times 2 = 2.25.
Treating an outlier
Insurance losses are right-skewed by nature, so a fence built for symmetric data flags many legitimate claims. A flagged value is judged against the business, not only against the rule.
A data error is corrected at source. A real extreme value can be capped at a threshold, with the excess loaded back separately. The variable can be transformed, since a log compresses the tail, or modelled with a distribution suited to heavy tails. Deleting a real observation because it is inconvenient biases the result. Whatever is done has to be described: the PCPA project rubric awards credit for stating which anomalies were found and how they were handled.
Five claims of
\$10000,\$40000,\$80000,\$300000and\$600000are capped at\$250000. How much loss does the cap remove?
- The uncapped losses total
10 + 40 + 80 + 300 + 600 = 1{,}030thousand.- The capped losses total
10 + 40 + 80 + 250 + 250 = 630thousand.- The cap removes
1{,}030 - 630 = \$400{,}000.- The severity model now fits without two claims driving it, and the
\$400{,}000comes back as an excess load, estimated from a longer or broader base than these five claims.
Deleting every value outside the fences A fixed removal rule applied before looking at the data deletes genuine large claims along with the errors. Investigate each flagged value, correct the errors, and cap or model the real ones.