Yangyang wrote:Thank you so much for your suggestions.
I have also one problem aboutthe two statements, how can i divide my data set to two states
accoding to Hamilton.
The mean the US GDP from the Markov switching model are both positive in two states, And i want to
divide it to two states and then compare with the NBER.
In the original Hamilton paper, GDP growth is -.36 in the contractions and 1.16 in the expansions, so I'm not sure why you're saying that they are both positive.
Yangyang wrote: I tried stock price and unemployment rate, they are positive in the state 1 and negative in the state 2.
What is the problem for the difference between GDP and stock price, How can i interpret it?
Thank you so much!

Stock price changes have very little persistence, so a Markov switching model is unlikely to show anything useful. Unemployment rate changes will usually have some similarities (other than being opposite sign) to GDP growth, but they are considered to be a "lagging indicator" so you will still see stable unemployment even after a recession has started, and rising (or at least not falling) unemployment after the recession has ended.
It's important to note, however, that a Markov switching model doesn't divide the data points into two regimes like the NBER dummy does. Instead, it provides a probability of each data point being in one regime or the other. There are a fair number of data points on one side or the other of a recession where the regime is unclear, and that is represented by a probability somewhere in the middle (say between .25 and .75).