From the November 2013 issue of Futures Magazine • Subscribe!

The profitable, hidden and Markovian couple of Swiss and gold

Over the last decade, HMMs have been creeping into the arsenals of some hedge funds. Because of their logically sound modeling process and subtle application of the Markov property, quants have found good use of HMMs in generating profitable trading signals. 

However, HMMs showed their limitations when the time came to incorporate the next wave of trading techniques. Hedge funds experienced a gradual realization that more than one dimension of data was needed to outwit the market. Multi-time frame trading techniques in which two time frames were studied together were explored. Pairs trading in which prices of two assets were analyzed at the same time was the emphasis. Intermarket analysis in which the forecasting of an asset in one market considering the dynamics of another asset in another market was developed. The early form of HMMs weren’t conducive to integrating these new ideas and needed to be extended to allow for this possibility. Thus, the coupled hidden Markov model (CHMM) was born. 

Unlike Baum’s original HMM, which is standard literature in applied mathematics, the CHMM is new research starting around the mid-2000s and doesn’t have a canonical formulation. While the CHMMs developed by researchers from different universities vary in their specifications, all of them share a common underlying theme: To take two HMMs and couple them by way of their transition probabilities. 

Let’s start by giving our two HMMs names. HMM1 will model the currency market, and HMM2 will model the commodity market. Both of them make up our CHMM. Just as before, as time progresses, the state of each market will switch to another state with certain probabilities. Unlike before, this probability now depends on that market’s and the other market’s current states. Therein lies the coupling between both markets (see “Two HMMs coupled,” below).

With the two markets represented in our model, we also need two observations to track, namely the price or indicators of our currency and of our commodity. We feed both observation sequences into our CHMM to have it reconfigure itself to best represent each market. 

The result is a model with the predictive power to forecast the next observation for both the currency and the commodity markets. Throughout coupling the two HMMs, we have not removed the Markov property when switching between states. The positives of HMMs are retained, the problem of lag kept buried and the possibility of incorporating another dimension of data made available. Quants were quick to explore pairs of assets to couple for the CHMM.

comments powered by Disqus