Python for Actuaries
Hands-on, downloadable Jupyter & Google Colab notebooks designed for modern actuarial analysts and candidates. Master non-life claims reserving, GLM pricing, and statistical simulations in pure Python.
ChainLadder Reserving & Mack Bootstrap IBNR
Load historical paid and incurred triangle data, calculate age-to-age loss development factors (link ratios), fit tail factors, and simulate standard errors of IBNR reserves using the Mack bootstrap method.
chainladder-python, pandas, numpy, matplotlib
GLM Frequency & Severity Claim Pricing
Fit Poisson claim frequency models with offset=log(exposure), Gamma claim severity models with log link, and Tweedie compound Poisson models directly in Python using Statsmodels.
statsmodels, scipy, scikit-learn, seaborn
Gradient Boosted Trees & SHAP Explanations
Train XGBoost models with Poisson objective functions on insurance exposure data, perform hyperparameter tuning with cross-validation, and extract SHAP value explanations for actuarial pricing governance.
xgboost, lightgbm, shap, optuna