Hidden Markov models (HMMs) are probabilistic graphical models that allow prediction of a sequence of hidden states from observed variables. HMMs make the Markov assumption that the next state depends only on the current state, not past states. They require specification of transition probabilities between hidden states, emission probabilities of observations given states, and initial state probabilities to compute the joint probability of state sequences given observations. The most probable hidden state sequence, determined from these probabilities, is taken as the best inference.