Hidden Markov models and mixture models