83  The probability of standing still

Open in Google Colab | Download notebook

For a hidden Markov model, what is the probability of staying in state \(i\) for exactly \(T\) time steps?