Linear & Piecewise Regression
Start simple with Bayesian linear regression, then extend to piecewise models using a Poisson point process.
LazyPPL is a Haskell library for Bayesian probabilistic programming.
It supports lazy use of probability, and we provide new Metropolis-Hastings algorithms to allow this.
LazyPPL is inspired by recent ideas in synthetic probability theory and synthetic measure theory, such as quasi-Borel spaces and Markov categories. Laziness appears to be a good paradigm for non-parametric statistics.
LazyPPL is inspired by many other languages, including Church, Anglican, and MonadBayes. Several aspects are now incorporated into MonadBayes (see here).
A Poisson process on , sampled lazily. Each draw becomes a gap .
Laziness lets us specify non-parametric models cleanly: processes or infinite-dimensional functions only have their finite explored portion materialised.
Start simple with Bayesian linear regression, then extend to piecewise models using a Poisson point process.
Model time series with Wiener process priors for continuous, nowhere-differentiable random functions.
Infer arithmetic expressions that explain observed data using probabilistic program induction.
Clusters
Dirichlet Process mixture models that discover the number of clusters automatically.
LazyPPL provides two monads:
Prob aprobability measures, supporting probability measures such as uniform :: Prob Double, normal :: Double -> Double -> Prob Double, bernoulli :: Double -> Prob Bool. This is lazy, in other words it is an affine monad.
Meas aunnormalized measures, as used in Monte Carlo simulations for Bayesian statistics. There are two key functions:
sample :: Prob a -> Meas a, which samples from a probability measure;score :: Double -> Meas (), which weights a measure by a given value, typically coming from a likelihood function.