Welcome!

My blog for all things math, finance, and data science. I’m always looking for interesting work, so feel free to contact me on social media or LinkedIn!

Bayesian Method for Insurance Policy Resampling

Using pymc to build a model to provide posterior samples of policy-level claim and severity estimates

January 31, 2026 · Erik Dains

Extending Trend Filtering to the GAM Case

Extending the trend filtering approach to the multivariate additive case

December 18, 2024 · Erik Dains

Experience Rating With Exponential Smoothing

Modeling baseball win rates using exponential smoothing to illustrate insurance experience rating

November 1, 2024 · Erik Dains

Trend Filtering using CVXPY

Fitting a Trend Filtering Model Using CVXPY

September 15, 2024 · Erik Dains

Ergodicity Breaking and the Coin Toss Game

Revealing the strangeness of ergodicity breaking with a simple game

August 3, 2024 · Erik Dains

Simulation of Stochastic Processes

Simulating Brownian Motion and two common stochastic processes.

February 10, 2023 · Erik Dains