Definition
For a power p between 1 and 2, a Tweedie variable is a Poisson number of claims, each with a gamma-distributed cost. It has a positive probability of being exactly zero and is continuous above zero. Its variance is a power of its mean:
Var( Y ) = φ × μp, 1 < p < 2
At p = 1 the distribution is Poisson and at p = 2 it is gamma. In a generalised linear model with a log link, the rating factors multiply the pure premium, the expected cost per unit of exposure. Jørgensen and de Souza introduced the approach for insurance tariffs in 1994.
Worked example
Fifty thousand policies are simulated with a claim frequency and a claim severity that both depend on two rating factors. A Tweedie model is fitted on the cost per year of exposure, weighted by the exposure, and its multiplicative effects are compared with the truth.
import numpy as np
from sklearn.linear_model import TweedieRegressor
rng = np.random.default_rng(32)
n = 50_000
young, urban = rng.random(n) < 0.3, rng.random(n) < 0.5
exposure = rng.uniform(0.2, 1.0, n)
freq = np.exp(-2.3 + 0.5 * young + 0.3 * urban) # claims per year
sev = np.exp(7.0 + 0.2 * young) # mean cost of a claim
counts = rng.poisson(exposure * freq)
cost = np.array([rng.gamma(2.0, s / 2.0, k).sum() for s, k in zip(sev, counts)])
X = np.column_stack([young, urban]).astype(float)
model = TweedieRegressor(power=1.5, alpha=0, link="log", max_iter=1000).fit(X, cost / exposure, sample_weight=exposure)
print(f"policies with no claim: {np.mean(cost == 0):.1%}")
print(f"observed pure premium: {cost.sum() / exposure.sum():.1f} per year predicted: {np.average(model.predict(X), weights=exposure):.1f}")
print("multiplicative effect on pure premium true fitted")
print(f"young driver {np.exp(0.5 + 0.2):6.2f} {np.exp(model.coef_[0]):6.2f}")
print(f"urban {np.exp(0.3):6.2f} {np.exp(model.coef_[1]):6.2f}")Output, produced by running the code above when this page was built:
policies with no claim: 91.8% observed pure premium: 175.1 per year predicted: 175.1 multiplicative effect on pure premium true fitted young driver 2.01 1.95 urban 1.35 1.31
About nine policies in ten have a cost of zero, and the model still recovers the effects of the two factors on the pure premium. The predicted total matches the observed total, a property of the log link with weights.
Where it misleads
- One model for the pure premium forces every factor to act in the same direction on frequency and severity combined. A factor that raises the number of claims and lowers their cost is blurred. Separate frequency and severity models keep the two effects visible.
- The power parameter p has to be chosen. Deviances computed with different powers are not comparable; the choice is made by likelihood, or the power is fixed at a conventional value such as 1.5 and its influence checked.
- The dispersion is assumed constant. Smyth and Jørgensen showed how to model it when it varies between policies, which is common.
- Large claims dominate the fit. A handful of them can move a coefficient, so they are usually capped and priced separately.
Exposure enters as a weight on the cost per year, the counterpart of the offset of a Poisson frequency model.
In our work
Insurance pricing is one of the fields where we apply the same validation as elsewhere: a sealed test set, a benchmark model, and the comparison of predicted and observed costs by band. On the public motor claims benchmark our frequency model ranked first of nine published scores.
Service: machine learning and model validation Research note: our benchmark record
References
- Jørgensen, B., Paes de Souza, M. C. (1994). Fitting Tweedie's compound Poisson model to insurance claims data. Scandinavian Actuarial Journal, 1994(1), 69-93. doi:10.1080/03461238.1994.10413930
- Smyth, G. K., Jørgensen, B. (2002). Fitting Tweedie's compound Poisson model to insurance claims data: dispersion modelling. ASTIN Bulletin, 32(1), 143-157. doi:10.2143/AST.32.1.1020
- Goldburd, M., Khare, A., Tevet, D., Guller, D. (2020). Generalized linear models for insurance rating, 2nd edition. Casualty Actuarial Society, Monograph 5. www.casact.org/sites/default/files/2021-01/05-Goldburd-Khare-Tevet.pdf