This document discusses using hidden Markov models (HMM) for stock price prediction. HMMs can model time series data as a probabilistic finite state machine. The document explains that HMMs can handle new stock market data robustly and efficiently predict similar price patterns to past data. It provides an overview of HMM components like states, transition probabilities, and emission probabilities. The document also demonstrates building an HMM model on stock data using the RHMM package in R, including training the model with Baum-Welch and predicting state sequences with Viterbi.