Does machine learning beat the actuarial GLM? An honest benchmark on French motor insurance
Gradient-boosted trees are increasingly proposed as an alternative to the Poisson generalised linear model (GLM) that insurers use to price motor claim frequency. We compare the two on 678,013 French motor third-party liability policies (freMTPL2, CASdatasets). The GLM uses the published actuarial banding; the boosting model uses the same exposure offset and the raw rating factors. Both are fitted on about 80% of policies and scored on 136,090 held-out policies, with policies that share identical rating factors kept on the same side of the split. Boosting lowers the held-out Poisson deviance from 31.317 to 30.223 (×10⁻²), a 3.49% reduction (95% paired bootstrap interval [3.13, 3.82]%), and raises the Gini index by 0.057 [0.049, 0.066], from 0.275 to 0.332. It has the lower deviance on all 5 further splits. In a double-lift chart, actual claims are closer to the boosting prediction in 10 of 10 groups. The segments the GLM misses most are pairs of factors, such as new vehicles by fuel type. A Gamma GLM for claim size did not beat a flat average on held-out claims. Both models run in a web browser and match Python to within 7.9e-8. Code and results: https://github.com/vickymitra786/insurance-pricing-glm-vs-ml (GNU AGPL-3.0). One command, python run_all.py, rebuilds every number in this paper from public data.
Authors
- Vivek Mitra (ORCID: https://orcid.org/0009-0003-9437-5347)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-23
- DOI
- https://doi.org/10.5281/zenodo.24475349
- Primary Topic
- Probability and Risk Models
- Type
- preprint