Time series example

Hi twiecki, I looked at it and it was quite helpful, thanks.
I am also interested in identifying the state of the system, sometimes readings are range bound and dont change much but at other times there is a very strong move either up or down.
I looked at the possibility of using Hidden Markov Model to identify the state of the system. Is there any worked out example in PyMc3 for something similar? thanks