Ten libraries for the hard problems in UK pricing. Free, MIT-licensed, Databricks-native. All libraries also work standalone via pip — Databricks is optional.
Real adoption from pricing teams — each download is a pip install on someone's work machine or Databricks cluster. Without-mirrors counts only, stripping CI bots and PyPI mirrors.
A runnable example that fits a CatBoost frequency model, extracts SHAP factor tables, runs a proxy discrimination audit, monitors for drift, and attaches conformal prediction intervals — all on the same synthetic UK motor dataset. Opens in Google Colab with no local setup required.
Uses: shap-relativities · insurance-fairness · insurance-monitoring · insurance-conformal
Most UK pricing teams have adopted GBMs but are still taking GLM outputs to production. The GBM sits on a server outperforming the production model, but the outputs are not in a form that a rating engine, regulator, or pricing committee can work with. The model never makes it to rates.
Each library here solves one specific problem in the pricing workflow. Actuarial tests are included. Outputs use the formats pricing teams already recognise: factor tables, Lorenz curves, A/E ratios, movement-capped rate changes.
sklearn-compatible where it matters. Documented by people who have sat in the same sign-off meetings you have.
Real API calls from the libraries. Not wrappers around wrappers. Each one does the specific thing a pricing team needs.
These libraries assume you understand insurance pricing. They do not explain what a GLM is.
You know the techniques. These libraries give you Python equivalents that produce outputs in the same formats you already use: factor tables, A/E ratios, Lorenz curves.
You have the ML skills but lack the actuarial context. These libraries encode that context: correct cross-validation for IBNR, credibility-weighted factors, fairness tests that map to FCA requirements.
You need to know what is production-ready and what is a research prototype. Each library here has actuarial tests, a clear scope, and outputs a pricing team lead can explain to a committee.
We implement recent literature: Manna et al. (2025) on conformal prediction, BYM2 spatial models, variance-weighted non-conformity scores. Reproducible, documented, testable.
These are the libraries we think are genuinely differentiated. Each addresses a specific hard problem in UK pricing — regulatory compliance, causal inference, uncertainty quantification, smoothing — where no adequate open-source Python tooling existed before. The full portfolio of 34 libraries is below.
All 34 libraries. Each solves one well-defined problem. Actuarial tests included. sklearn-compatible where it matters.
If you are a pricing actuary visiting for the first time, these are the posts worth reading first. Picked for coverage, not for clicks.
A guided path through the full pricing workflow — GLMs to GAMs, causal inference, fairness auditing, and conformal prediction — in 12 hands-on modules with real pricing notebooks. Free and open source on GitHub.
View the Course →