This is an example from Zucchini & MacDonald’s book on Hidden Markov Models for Time Series (exercise 1.3). The data is annual counts of earthquakes of magnitude 7 or greater, which exhibits both overdispersion for a Poisson (where the mean should equal the variance) as well as serial dependence. The aim is to fit a mixture of...