Cumulative Sums as Matrix Multiplication

I am in the process of drafting another post about what I call "decaying Bayes Theorem," which is a method for weighting recent data more heavily than older data during sequential updates of Bayesian statistical models. The implementation of decayed Bayesian updates uses a computational trick that has been useful many times, so I decided break it out into its own short post to avoid it getting…