Circumstellar habitable zone

From formulasearchengine
Revision as of 21:24, 3 February 2014 by en>Monkbot (Fix CS1 deprecated date parameter errors)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Distinguish

The forward algorithm, in the context of a hidden Markov model, is used to calculate a 'belief state': the probability of a state at a certain time, given the history of evidence. The process is also known as filtering. The forward algorithm is closely related to, but distinct from, the Viterbi algorithm.

For an HMM such as this one:

Temporal evolution of a hidden Markov model
Temporal evolution of a hidden Markov model

this probability is written as . (abbreviating as .) A belief state can be calculated at each time step, but doing this does not, in a strict sense, produce the most likely state sequence, but rather the most likely state at each time step, given the previous history.

Algorithm

The goal of the forward algorithm is to compute the joint probability , where for notational convenience we have abbreviated as and as . Computing directly would require marginalizing over all possible state sequences , the number of which grows exponentially with . Instead, the forward algorithm takes advantage of the conditional independence rules of the hidden Markov model (HMM) to perform the calculation recursively.

To demonstrate the recursion, let

.

Using the chain rule to expand , we can then write

.

Because is conditionally independent of everything but , and is conditionally independent of everything but , this simplifies to

.

Thus, since and are given by the model's emission distributions and transition probabilities, one can quickly calculate from and avoid incurring exponential computation time.

The forward algorithm is easily modified to account for observations from variants of the hidden Markov model as well, such as the Markov jump linear system.

Smoothing

In order to take into account future history (i.e., if one wanted to improve the estimate for past times), you can run the Backward algorithm, a complement of the Forward. This is called smoothing. Mathematically, it would be said that the forward/backward algorithm computes for . So the use of the full F/B algorithm takes into account all evidence.

Decoding

In order to achieve the most likely sequence, the Viterbi algorithm is required. It computes the most likely state sequence given the history of observations, that is, the state sequence that maximizes .

The difference between the state sequence that the Viterbi algorithm estimate generates and the state sequence that the Forward algorithm generates is that the Viterbi algorithm recalculates the entire sequence with each new data point whereas the Forward Algorithm only appends the new current value to the previous sequence computed.

See also

Further reading

  • Russel and Norvig's Artificial Intelligence, a Modern Approach, starting on page 541 of the 2003 edition, provides a succinct exposition of this and related topics


Template:Algorithm-stub