Hello Professor,
The observation sequence is:
1, 2, 3, 1, 1, 2, 1, 2, 3, 1, 1, 2, 2, 1, 3, 2, 2, 1, 1, 2, 1, 1, 1, 2, 1
There are 25 observations, so we need 25 hidden states.
The initial state is fixed as R.
The emission probabilities are the same for every state:
R emits 1, 2, and 3 with probability 1/3 each.
G emits 1, 2, and 3 with probability 1/3 each.
B emits 1, 2, and 3 with probability 1/3 each.
Since all states have the same emission probabilities, the observations do not help us choose between R, G, and B. No matter what hidden-state sequence we choose, the emission part of the probability is the same.
So we only need to maximize the transition probability.
The transition rules are:
From R:
R to R = 1/3
R to G = 1/3
R to B = 1/3
From G:
G to G = 1/2
G to B = 1/2
From B:
B to B = 1
Since B is absorbing, once we enter B, we stay in B with probability 1. That means the best choice is to move from R to B as early as possible.
We start at R, so the first hidden state is R.
For the second hidden state, choose B:
R to B = 1/3
After that, every remaining transition is:
B to B = 1
So the most likely hidden-state sequence is:
R, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B
The transition probability for this path is:
(1/3)(1)(1)(1)…(1) = 1/3
The emission probability is:
(1/3)^25
So the full probability is:
(1/3)^25 * (1/3) = (1/3)^26
Any path that stays in R or goes through G has a smaller transition probability, because it keeps multiplying by 1/3 or 1/2.
Final answer:
R, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B
So the most likely explanation is to start in R, move to B immediately, and then stay in B for the rest of the sequence