Time series modeling and forecasting based on a Markov chain with changing transition matrices · Study