<p>An implementation of a statistical algorithm is a way to describe the statistical algorithm, and is therefore on-topic on this Stack Exchange website. It is distinct from a pure programming question as the goal is to learn the algorithm.</p>
