Forward–backward algorithm: Difference between revisions

Content deleted Content added
Python example: code style Black
Disambiguated phrasing.
Line 46:
:<math>\mathbf{P}(O = j)=\sum_{i} \pi_i B_{i,j}</math>
 
ThisThe probability of a given state leading to the observed event j can be represented in matrix form by multiplying the state row-vector (<math>\mathbf{\pi}</math>) bywith an observation matrix (<math>\mathbf{O_j} = \mathrm{diag}(B_{*,o_j})</math>) containing only diagonal entries. Each entry is the probability of the observed event given each state. Continuing the above example, anthe observation ofmatrix for event 1 would be:
 
:<math>\mathbf{O_1} = \begin{pmatrix}