https://123dok.org/document/wq20lrez-markov-switching-model-bubble-detection-stock-market.html