aliquot

< a quantity that can be divided into another a whole number of time />

March 5, 2020

Conjugate models have the structure of a fold in functional programming, also known as a reduce or accumulate operation. We’ll show below how to compute the posterior distribution in a beta-binomial and normal-normal model using folds in Haskell. — Functional folds and conjugate models