probabilistic programming in Haskell
Haskell Nix Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Language
LICENSE
Main.hs
README.md
Setup.hs
pp.cabal
reconfig.sh
shell.nix

README.md

PP

A DSL for probabilistic programming

Building

cabal sandbox init
cabal configure
cabal build

Running the example

cabal run

The example is a hidden markov model with two states, A and B. Each state generates observations from a standard normal distribution centered on 0 (for A) and 5 (for B).

The probability of switching state is 0.75 - independent of the current state.

The example generates a list of observations, and infers both the "switching probability" and the sequence of states that generated the observations.