A decoded path is a model-based best path, not guaranteed biological truth.

highlighted = computed this step

The best path can hide ties

The final I and N cells are exactly equal at 81/2048. Viterbi returns the first tied state by state order, not every equally good path.

tie value=812048\text{tie value}=\frac{81}{2048}
Viterbi model boundaryThe table separates what Viterbi returns from biological interpretation.Viterbi givesStill a modelling choicesingle best pathnear-ties and alternativestwo-state toy HMMricher CpG modelsexact fractions herelog-probabilities in practice

The HMM is a model, not measured truth

Real CpG-island detection uses richer models over four nucleotides and dinucleotides. The probabilities are model parameters, and practical code uses log-probabilities to avoid underflow; exact fractions sidestep that here.

decoded pathguaranteed biology\text{decoded path} \ne \text{guaranteed biology}
Viterbi model boundaryThe table separates what Viterbi returns from biological interpretation.Viterbi givesStill a modelling choicesingle best pathnear-ties and alternativestwo-state toy HMMricher CpG modelsexact fractions herelog-probabilities in practice