Markov Switch: Fixing the Regime Position
Posted: Tue Aug 23, 2016 2:15 pm
Hi,
Is it possible to fix the regime position, or impose a restriction, in a 2-regime Markov Switch? Re-estimating the model doesn't guarantee the regimes 1 and 2 will have the same order.
I would like to test an out-of-sample trading strategy based on the regime probabilities of the model. However, when I write a program to estimate a model on each date it is not guaranteed my regime 1 probabilities will be from within the same regime 1 as before. Basically, I need the regime probabilities on each date of the rolling-window sample the Markov model is estimated.
If it is not possible, maybe a way to compare the regime probability with the previously estimated would work. If they deviate a lot (which should not be the case with 1 extra data point), save the regimes on the inverse order.
I have already searched the forum and also tried to hold the seed constant, but I have had no success, yet.
Thank you in advance for your inputs on this issue,
Felipe
Is it possible to fix the regime position, or impose a restriction, in a 2-regime Markov Switch? Re-estimating the model doesn't guarantee the regimes 1 and 2 will have the same order.
I would like to test an out-of-sample trading strategy based on the regime probabilities of the model. However, when I write a program to estimate a model on each date it is not guaranteed my regime 1 probabilities will be from within the same regime 1 as before. Basically, I need the regime probabilities on each date of the rolling-window sample the Markov model is estimated.
If it is not possible, maybe a way to compare the regime probability with the previously estimated would work. If they deviate a lot (which should not be the case with 1 extra data point), save the regimes on the inverse order.
I have already searched the forum and also tried to hold the seed constant, but I have had no success, yet.
Thank you in advance for your inputs on this issue,
Felipe