Markov chains backwards in time on a finite set #
In the backward passes of the paper, the indices form Markov chains backwards in time: a state is
drawn at the final time T, then, for t = T - 1, …, 1, a state at time t given the state at
time t + 1. For a finite state space S, the probability of a trajectory of such a chain and its
marginal distributions, computed by backward recursion, are defined here.
Time is indexed by Fin (n + 1), with T = n + 1. The step from time s.succ to time
s.castSucc is indexed by s : Fin n. The initial distribution μ is that of the state at time
Fin.last n. The probability of moving from y at time s.succ to z at time s.castSucc is
P s y z.
The marginal distributions of the backward chain, by backward recursion: μ at the final time
and z ↦ ∑ y, m y * P s y z at time s.castSucc, if m is the marginal at time s.succ.
Equations
- CSMC.chainMarg μ P = Fin.reverseInduction (motive := fun (x : Fin (n + 1)) => S → ℝ) μ fun (s : Fin n) (m : S → ℝ) (z : S) => ∑ y : S, m y * P s y z
Instances For
The probability of a trajectory which starts with x₀ at the first time and continues with x
is P_0(x_0, x₀) times the probability of x under the chain with the transitions P s.succ.
If the transition probabilities sum to one, the sum of the probabilities of the trajectories
which are at z at time t is the marginal at time t evaluated at z.
If the transition probabilities sum to one, the sum over the trajectories of their probability
times a function of the state at time t is the sum over the states of the marginal at time t
times this function.
If the transition probabilities sum to one, the sum over the trajectories of their probability
times a function φ of the states at the times s.succ and s.castSucc is
∑_y m(y) ∑_z P_s(y, z) φ(y, z), with the marginal m at time s.succ.
If the transition probabilities, with values in a commutative semiring, sum to one, the sum over the trajectories of the product of the transition probabilities times a function of the state at the final time is the sum of this function over the states.