README.md

May 12, 2025 ยท View on GitHub

Logo

๐Ÿ Actuarial models in Python ๐Ÿ


Collection of useful models that actuaries can use to speed up their tasks.

Algorithms available

AlgorithmSourceDescription
Smith_WilsonTechnical-documentationInterpolation and extrapolation of missing interest rates.
Stationary_boot_calibWhitepaper-2004Automatic calibration of the stationary bootstrap algorithm.
Stationary_bootstrapPolitis-Romano-1994Resampling procedure for weakly dependent stationary observations.
Calibration_of_alphaTechnical-documentationCalibration of the Smith & Wilson's alpha parameter.
Correlated BrownianWiki Brownian motionSimple function to generate correlated Brownian motion in multiple dimensions.
Nel_Si_SvanssonBIS whitepaperNelson-Siegel-Svansson model for approximating the yield curve.
Black_ScholesWiki Black&SholesBlack&Scholes model for pricing option contracts.
Vasicek one factorWiki VasicekVasicek model for modelling the evolution of interest rates.
Vasicek two factorWiki VasicekVasicek model for modelling the evolution of a pair of interest rates.
1F Hull WhiteWiki Hull WhiteOne factor Hull White model of short rates.
Dothan one factorQuant ExchangeOne factor Dothan model of short rates.
Singular Spectrum analysisPaper SSANon-parametric technique used for time series analysis and forecasting.

Algorithms planned

AlgorithmSourceDescription
Matrix on fractionTBDHeuristics for calculating transition matrices on fractions of power
G2++ with piec cons volTBDCalibration of a G2++ model with piecewise constant volatility
Carter-Lee modelTBDSimple stochastic mortality model
Metropolis-HastingsTBDSampling of probability distributions

New suggestions for algorithms are welcome.

If anybody is interested in publishing an algorithm they implemented, or help with the project, contact us and we will make it happen.

Queries and suggestions; gregor@osmodelling.com