13.08.2022 Views

advanced-algorithmic-trading

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

209

Figure 14.3: Simulated market returns from two Gaussian distributions

> matplot(post_probs[,-1], type=’l’,

main=’Regime Posterior Probabilities’,

ylab=’Probability’)

> legend(x=’topright’, c(’Bull’,’Bear’), fill=1:2, bty=’n’)

Figure 14.4: Comparison of true regime states with Hidden Markov Model posterior probabilities

The discussion will now turn towards applying the Hidden Markov Model to real world

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!