The approach taken in the Haskell’s probability library makes it especially convenient for modeling Markov chains.
Suppose is a Markov chain on a state space
. Distribution of the process
is determined by the distribution of
and the numbers
,
, called transition probabilities. For simplicity let’s consider only time-homogeneous Markov chains where these numbers don’t depend on
and let’s assume that the initial distribution is a point mass, i.e.
for some
. Then we can define a function
, where for each
the value
is a distribution on
defined by
. Here
denotes the set of finitely supported nonnegative functions on
that sum up to 1. Conceptually,
is the the distribution of the next value of the chain given the current value is
. This is exactly the kind of distribution-valued function that is the right hand side operand of the
operation from the previous post, which corresponds to the Haskell’s
>>= operation in the probability monad. (more…)
Posts Tagged ‘mathematics’
Markov chains
June 5, 2009Hello world!
September 22, 2007This blog will be devoted to formalized mathematics.
Formalized mathematics is the craft of writing mathematical proofs in a formal proof language so that they can be verified by a machine.