Actuarium
← All video courses

CS 102 · Year 1 · Semester 2 · 4 credits · Computer Science

Programming II & Object-Oriented Design

From ad-hoc actuarial scripts to robust, type-safe, and production-grade financial software engines.

Season 1 · 8 episodes

Code and Solvency: Engineering the Actuarial Engine

A junior actuarial developer at a growing annuity provider must replace a fragile legacy pricing script with a robust, production-grade actuarial software library before a multi-million-pound bulk purchase annuity deal faces regulatory scrutiny.

Protagonist · Maya Lin, Junior Actuarial Software Engineer at Apex Life & Pension
Setting · The Quantitative Modelling Desk at Apex Life, Edinburgh, under impending Prudential Regulation Authority review
Stakes · A faulty reserving calculation or crashing valuation run will trigger severe capital add-ons from regulators and forfeit a sixty-million-pound bulk purchase annuity bid.
Pick an episode
Cold open

It is 8:14 PM on a Tuesday. Maya stares at a four-thousand-line single-file Python script called pricing_final_v12.py. When she updates the discount rate curve for a simple immediate annuity portfolio, the entire script crashes with a global variable mutation error, producing negative policyholder liabilities.

Transcript

It is 8:14 PM on a Tuesday. Maya stares at a four-thousand-line single-file Python script called pricing_final_v12.py. When she updates the discount rate curve for a simple immediate annuity portfolio, the entire script crashes with a global variable mutation error, producing negative policyholder liabilities.

  • Model actuarial cash flow engines using encapsulation, polymorphism, and composition over inheritance.
  • Implement the Strategy pattern to decouple cash flow projections from discounting mechanisms.
  • Apply the Factory pattern and SOLID principles to build extensible insurance policy architectures.
Ask the tutor