Page 1 of 2

Markov switch state probabilities forecast

Posted: Mon Jul 29, 2019 7:22 am
by Nicotrader87
Hello everyone,

I need help estimating markov switch models. In particular I cannot understand how I can carry out forecast checks for probability states.

can you help me?
 

Re: Markov switch state probabilities forecast

Posted: Tue Jul 30, 2019 4:21 am
by Nicotrader87
can anyone help me?

Re: Markov switch state probabilities forecast

Posted: Tue Jul 30, 2019 10:10 am
by EViews Glenn
I'm afraid that I don't understand the question.

Re: Markov switch state probabilities forecast

Posted: Tue Jul 30, 2019 11:05 am
by Nicotrader87
Simply
I need to forecast a state probability but the software it allow the forecast of only fitting series.

Re: Markov switch state probabilities forecast

Posted: Tue Jul 30, 2019 11:08 am
by Nicotrader87

Re: Markov switch state probabilities forecast

Posted: Tue Jul 30, 2019 4:07 pm
by EViews Glenn
I'm sorry, but that is correct.

Re: Markov switch state probabilities forecast

Posted: Tue Jul 30, 2019 4:14 pm
by Nicotrader87
sorry but I do not understand.
The markov model is born to return the probabilities of state, right?
so how can I carry out goodness tests of the probabilities without being able to carry out forecasts in sample and out of sample?

Re: Markov switch state probabilities forecast

Posted: Tue Jul 30, 2019 4:21 pm
by startz
EViews produces several different measures of within-sample probabilities. Try Proc Make Regime Probabilities

I don't believe EViews does out-of-sample probability forecasts, but I don't think it should be hard to do.

Re: Markov switch state probabilities forecast

Posted: Tue Jul 30, 2019 4:44 pm
by Nicotrader87
sure, in fact I can extract the probabilities but how can I test the probabilities if in the "forecast" function I can only get the series fitted?

how do I test insample and outofsample without the forecast function?

Re: Markov switch state probabilities forecast

Posted: Tue Jul 30, 2019 4:51 pm
by startz
sure, in fact I can extract the probabilities but how can I test the probabilities if in the "forecast" function I can only get the series fitted?

how do I test insample and outofsample without the forecast function?
Well, the extracted probabilities are in-sample forecasts.

If you want to forecast out of sample, I believe you just take the final state probabilities and run them out in a GENR statement multiplying by the estimated transition probabilities.

Re: Markov switch state probabilities forecast

Posted: Tue Jul 30, 2019 4:57 pm
by Nicotrader87
sure, in fact I can extract the probabilities but how can I test the probabilities if in the "forecast" function I can only get the series fitted?

how do I test insample and outofsample without the forecast function?
Well, the extracted probabilities are in-sample forecasts.

If you want to forecast out of sample, I believe you just take the final state probabilities and run them out in a GENR statement multiplying by the estimated transition probabilities.

please for me it is very important can you make this process clearer?
maybe with a screenshot?

Re: Markov switch state probabilities forecast

Posted: Tue Jul 30, 2019 5:52 pm
by startz
Have you tried Proc Make Regime Probabilities?

Re: Markov switch state probabilities forecast

Posted: Wed Jul 31, 2019 1:19 am
by Nicotrader87
Have you tried Proc Make Regime Probabilities?
obvious but how to make the forecast? with make probabilities get only the estimate in samples.

Re: Markov switch state probabilities forecast

Posted: Wed Jul 31, 2019 6:08 am
by startz
If the last in sample probability is last_prob and the transition probabilities are p11 and p01, then I think you want something like

prob(T+1) = last_prob*p11 + (1-last_prob)*p01
prob(T+2) = prob(T+1)*p11 + (1-prob(T+1))*p01

etc

Re: Markov switch state probabilities forecast

Posted: Wed Jul 31, 2019 7:58 am
by Nicotrader87
Please i need the help with command line :oops:





https://ibb.co/1nRz1wd