For the selected HMM get the probability that it stays exactly the given number of times in that state.
This probability is α_{ii}^{numberOfTimes-1}(1 - α_{ii}), where α_{ii} is the probability of staying in state i.
© djmw, October 10, 2010