This post is about writing readable code using chaining in both Python and R.
Earlier this year we worked with a couple of data scientists on the prediction of financial markets. Our project, nicknamed Back2Future, aimed at getting a better understanding of the price movements at foreign exchange markets (Forex).
Last year, Tony Stenning explained on Blackrock Blog why it makes sense to introduce retirement plans for babies. In this post, I will discuss this interesting idea from an actuarial perspective. First I will provide some social background on the current global pension situation. Next, I will perform an analysis giving insight into the benefits and expenses of lifetime retirement savings. Finally, I will reserve the last part of this post for readers interested in the R code I used to perform the calculations and visualizations.