produvia / kryptos

Kryptos AI is a virtual investment assistant that manages your cryptocurrency portfolio
http://twitter.com/kryptos_ai
MIT License
48 stars 8 forks source link

Bet Sizing #87

Open slavakurilyak opened 6 years ago

slavakurilyak commented 6 years ago

Goal

As a developer, I want to use meta-labeling to build a secondary machine learning model, so that I know how much money our trading model can risk for any bet (aka size of bet).

Consider

Inspiration

Suppose that you have a model for setting the side of the bet (long or short). You just need to learn the size of that bet, which includes the possibility of no bet at all (zero size). This is a situation that practitioners face regularly. We often know whether we want to buy or sell a product, and the only remaining question is how much money we should risk in such a bet. We do not want the ML algorithm to learn the side, just to tell us what is the appropriate size. At this point, it probably does not surprise you to hear that no book or paper has so far discussed this common problem. Thankfully, that misery ends here. I call this problem meta-labeling because we want to build a secondary ML model that learns how to use a primary exogenous model.

Source: Marcos Lopez de Prado (Advances in Financial Machine Learning, 2018)

screen shot 2018-07-04 at 2 16 31 pm screen shot 2018-07-04 at 2 16 38 pm

Source: The 7 Reasons Most Machine Learning Funds Fail (Presentation Slides), 2018

screen shot 2018-07-08 at 10 46 28 pm

Source: New frontiers: Marcos Lopez de Prado on Machine Learning for finance, 2018