Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
kelly criterion rebalancing

This model rebalances between cash and the sp500 in accordance with the Kelly criterion.

We assume:

  1. returns from SPY are generated via geometric brownian motion (GBM) https://en.wikipedia.org/wiki/Geometric_Brownian_motion
  2. maximizing the expected geometric growth rate is the optimal strategy https://en.wikipedia.org/wiki/Kelly_criterion
  3. the GBM has a drift parameter of 7% (maximum likelihood estimate from the past 30 years of data)
  4. the expected variance of the sp500 is given by the square of the VIX https://en.wikipedia.org/wiki/VIX

The expected geometric growth rate is given by lambda * mu - lambda ^2 * sigma^2 / 2 , where mu is the drift parameter, sigma^2 the (expected) variance, lambda is the sp500 leverage.

Maximizing this gives the optimal leverage of lambda = mu / sigma^2.

i.e. lambda = 0.07 / VIX^2

Our strategy seeks to keep leverage equal to this value.