# Mom, are we bear yet? (2)

5 weeks ago we took a look at the rising volatility in the (US) equity markets via a time-series threshold model for the VIX. The estimate suggested we are crossing (or crossed) to the more volatile regime. Here, taking somewhat different Hidden Markov Model (HMM) approach we gather more corroboration (few online references at the bottom if you are not familiar with HMM models. The word hidden since the state is ‘invisible’).

We can again use contributed free R-code, the depmixS4 package written by Maarten Speekenbrink and Ingmar Visser who I recently met at the Amsterdam R-meetup group where he gave a talk about the package. RHmm package is another option.
A text book example for estimating Bull-Bear regime switching uses only the return series. However, we can make a sharper model if we add the VIX index as an additional variable which helps to determine the regime. The advantage is that a drawdown can be better classified as being in the bear regime, if it also accompanied by a high levels implied volatility. As oppose to a drawdown which is a natural correction in a bull market.

We can see that the biggest moves (thus largest drawdowns) occur when the VIX is high. On the y-axis is the daily returns, on the x-axis is the VIX index in levels:

We estimate the HMM once without the VIX as additional explanatory variable and once with. The equation for the returns in both cases is that they are random-walk (unpredictable), so VIX only enters to the equation which helps determine the state in which we are in. The way it is done is using logistic regression with one of the regimes as ‘base’, so the usual ‘transition matrix’ is not that easy to interpret anymore as in the case where we don’t have any explanatory variables.
Here is the result, we see (1) a sharper classification with the VIX making sense and (2) oh, we are bear now.
You can click on the figure for better clarity.

Code for reproduction

### One comment on “Mom, are we bear yet? (2)”

1. It would be interesting to see the equity curve of the periods without the bear mode triggered. I think it would show great returns.