Are your rating categories too fragmented to explain?
Interpretable pricing segmentation
Group sparse categories into risk segments your actuarial team can read, test and defend, then compare the GLM with your current tariff.
What you receive
- Documented mappings and segment profiles.
- Model comparison and diagnostic figures.
- Validation notes and limitations.
To start the conversation
Exposure and claims by period, the rating variables and your current GLM or tariff.
What we check
- Align exposure and claims and check category definitions.
- Build category profiles inside the training process, then explore interpretable grouping.
- Compare the grouped GLM, and a GAM where effects are non-linear, with the existing model on a consistent scope.
- Review calibration, residuals and segment stability with your team.
Rigour note. Target-informed grouping must stay within the training/validation split. A BIC computed on different samples is not a controlled gain.
Featured case study
All case studies →K-means and GLMs: pricing 74 breeds that did not fit one tariff
Breed drives the risk of a pet policy, but 74 breeds are too many levels for a stable tariff. We grouped them by risk profile with K-means, found nine breeds priced below cost, and built frequency, severity and Tweedie GLMs on the groups.
Read the case studyKey results
- 74 → 3
- breeds grouped into risk groups
- 107%
- loss ratio of the nine riskiest breeds
- ≈ 39,000
- policy-years modelled
- 2.8×
- pure premium of older dogs vs average
Method notes
What we look at, why, and where the usual methods reach their limits.
Frequency × severity, or Tweedie?
Modelling frequency (Poisson, negative binomial when claims are over-dispersed, zero-inflated when many policies never claim) and severity (Gamma, lognormal or Weibull) separately shows which factor drives the cost: a breed may claim more often without claiming more expensively. A Tweedie model fits the pure premium in one step and is a useful cross-check. When the two approaches disagree on a segment, the disagreement itself is worth investigating.
Grouping rare levels before a GLM
A rating factor with dozens or hundreds of levels spreads exposure too thinly: many coefficients rest on a handful of claims and swing from one year to the next. Grouping levels by risk profile, with K-means on frequency and severity or with credibility weights, gives segments with enough exposure to be estimated and explained, as in our 74-breed pricing case. The grouping must be learned on the training data only; otherwise the model is tested on information it has already seen.
GLM, GAM or gradient boosting
The GLM remains the reference: each coefficient is a multiplier anyone can read. A GAM keeps that structure but lets continuous effects such as age or sum insured follow a smooth curve instead of arbitrary bands. Gradient boosting (XGBoost) often finds interactions the GLM missed; we use it as a detector, then bring the useful interactions back into the GLM or GAM, so the final tariff stays explainable to underwriters and regulators.
Why a better Gini is not always a better tariff
Discrimination measures such as the Gini index or the AUC check that the model ranks risks in the right order. A tariff must also be calibrated: in each segment, the predicted cost has to match the observed cost, otherwise some policyholders subsidise others. We look at both, with lift charts and observed-versus-predicted tables by segment, on a period the model has not seen.
Avoiding information leakage
Leakage happens when a variable carries information that would not exist when the price is set: a claim count updated after the period, a segment built on the full data, or a renewal flag that depends on the outcome. The model then looks excellent in testing and disappoints in production. We rebuild the timeline of each variable and split training and validation by time.
The diagnostics we look at
Deviance and residual plots by variable; leverage and Cook’s distance to find the few policies that drive a coefficient; stability of the relativities from one year to the next; and the impact of the new tariff on each segment of the current portfolio. A model is ready when its behaviour can be explained, not only when its score improves.
Further reading
GLM, GAM or gradient boosting: choosing a pricing model an insurer can defend
Which pricing model an insurer can defend: GLM relativities, smooth GAM effects, boosting as an interaction detector, and how to compare them.
Read the articleActuarial modellingClustering high-cardinality categories before a pricing GLM
74 breeds, too many for a stable tariff: making categories comparable with target-oriented K-means instead of dropping them, validated out of sample and in the GLM.
Read the articleData qualityMissing values: fill them without inventing anything
Every real database has holes: an amount not entered, a date left blank, a code 9999 that means “unknown”. A quick fill hides four traps: it shrinks the spread and invents effects, biases the estimates when the outcome is left out, lets the future fill the past, and turns codes into values. We measure each one on simulated data, then show how our engine avoids them, with the formulas behind each choice, and what no imputation can do.
Read the articleCausal inferenceDid it work? Measuring the effect of a decision without fooling yourself
A campaign, a new deductible, a reminder letter: did it change the outcome? Comparing those who received it with those who did not answers a different question. This article shows how we estimate the effect of a decision on observational data, what each estimate assumes, why the usual estimator can fail when the decision is rolled out in waves, what we do when only a few units received it, and how we keep a study of many segments from finding effects that do not exist.
Read the articlePricingStop grouping ages in fives: let the risk draw the classes
Most tariffs still group age, seniority or vehicle power into round bands chosen by hand, and categories with many values, breeds or products, by intuition. The bands rarely fall where the risk changes. Measured on simulated portfolios with a known truth, this article shows where the usual encodings go wrong, then how our engine lets the data draw the classes: compact in risk, precise enough to carry a coefficient, and in a number chosen on data the method has not seen.
Read the articleQuestions before we start
Which distributions do you use for frequency and severity?
Poisson, negative binomial or zero-inflated Poisson for frequency; Gamma, Weibull or lognormal for severity. The choice follows the diagnostics, not habit.
How do you handle a rating factor with hundreds of levels?
Levels are grouped by risk profile, for example with K-means on frequency and severity, and the groups are then validated inside the GLM.
Do you use GAMs or machine learning in pricing?
Yes, when they add measurable value. A GAM fits smooth curves for effects such as age or sum insured and stays as readable as a GLM; gradient boosting helps find interactions, which are then brought back into the GLM or GAM so the tariff remains explainable.
Can machine learning replace a pricing GLM?
It can, but for a filed tariff our documented sequence generally uses it to detect effects that are then tested in a GLM or GAM. Gradient boosting is excellent at finding what a GLM misses, often a few interactions, which are then brought back into a GLM or GAM the tariff can carry; it can be the final model where the decision allows it, such as claims triage or retention. See our <a href="/glm-gam-gradient-boosting-insurance-pricing/">article on GLM, GAM and boosting</a>.

Engagements led by Raphael Sebbah, actuary (ISUP) and data scientist, formerly at Amundi (CAAM), Dexia, AIG and Phoenix, co-author of peer-reviewed research.
Let’s build better decisions together
Tell us about the decision you need to make.
A few lines are enough: your sector, the data you have and what you want to improve. We reply personally with a first view of the approach.
- A few lines are enough
- NDA on request
- Code and documentation handed over

