Residual analysis is a useful tool for checking lack of fit and for providing insight into model improvement. However, literature on residual analysis and the goodness of fit for hidden Markov models
We develop a new hidden Markov model-based method to analyze C elegans locomotive behavior and use this method to quantitatively characterize behavioral states. In agreement with previous work, we fin