Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Picking stocks based on the Kelly Criterion

I'm sure many know of calculating the kelly sizing for an optimum bet. This algo does things a bit differently. It attempts to pick stocks based on some other formulas surrounding the kelly criterion. This algo will ask for your desired bet size and you pick stocks based on a criterion such as minimum variance or maximum growth with that bet size. It doesn't do any fancy entry, exit, or risk control. It's also long only. It might be useful for real trading in your personal account if you managed to figure out a strategy around it. The algo comes with different options and parameters that you can fiddle with. Let me know if you figure out the parameters that'll make money :). By the way, you can read all about these formulas in "THE KELLY CRITERION IN BLACKJACK SPORTS BETTING, AND THE STOCK MARKET" by Thorp.

I'm going to post 3 different results based on variance, growth, and time. The first will be stock picking based on minimal variance.

3 responses

This one picks stocks based on the highest estimated growth rate (g)

This one picks stocks with the shortest time for Vn > V0 with ~98% probability, where V is the value of the portfolio.

Hi Minh,

Thanks for sharing these! Have you tried running different iterations through pyfolio for a more detailed performance/risk analysis?

Disclaimer

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.