Posts Tagged ‘ monad ’

MCMC as a Stream

April 1, 2017
By
MCMC as a Stream

Introduction This weekend I’ve been preparing some material for my upcoming Scala for statistical computing short course. As part of the course, I thought it would be useful to walk through how to think about and structure MCMC codes, and in particular, how to think about MCMC algorithms as infinite streams of state. This material … Continue reading MCMC as a Stream

Read more »

A scalable particle filter in Scala

July 22, 2016
By
A scalable particle filter in Scala

Introduction Many modern algorithms in computational Bayesian statistics have at their heart a particle filter or some other sequential Monte Carlo (SMC) procedure. In this blog I’ve discussed particle MCMC algorithms which use a particle filter in the inner-loop in order to compute a (noisy, unbiased) estimate of the marginal likelihood of the data. These … Continue reading A scalable particle filter in Scala

Read more »

First steps with monads in Scala

April 15, 2016
By
First steps with monads in Scala

Introduction In the previous post I gave a quick introduction to some important concepts in functional programming, such as HOFs, closures, currying and partial application, and hopefully gave some insight into why these concepts might be useful in the context of scientific computing. Another concept that is very important in modern functional programming is that … Continue reading First steps with monads in Scala

Read more »


Subscribe

Email:

  Subscribe