@recursive I took a math class in university where I was supposed to find an optimal way to hedge the risk of a whole life insurance plan with term life insurance.
I actually invented an algebra of annuity functions, then built a genetic programming system to generate arbitrary compositions, then ran Monte Carlo simulations to approach an optimum. It was a beautiful thing, ruby calling gmp & gnuplot reporting. (1/2)