Skip to Content
Advances in Financial Machine Learning
book

Advances in Financial Machine Learning

by Marcos Lopez de Prado
February 2018
Intermediate to advanced
400 pages
10h 17m
English
Wiley
Audiobook available
Content preview from Advances in Financial Machine Learning

CHAPTER 10 Bet Sizing

10.1 Motivation

There are fascinating parallels between strategy games and investing. Some of the best portfolio managers I have worked with are excellent poker players, perhaps more so than chess players. One reason is bet sizing, for which Texas Hold'em provides a great analogue and training ground. Your ML algorithm can achieve high accuracy, but if you do not size your bets properly, your investment strategy will inevitably lose money. In this chapter we will review a few approaches to size bets from ML predictions.

10.2 Strategy-Independent Bet Sizing Approaches

Consider two strategies on the same instrument. Let mi, t ∈ [ − 1, 1] be the bet size of strategy i at time t, where mi, t = −1 indicates a full short position and mi, t = 1 indicates a full long position. Suppose that one strategy produced a sequence of bet sizes [m1, 1, m1, 2, m1, 3] = [.5, 1, 0], as the market price followed a sequence [p1, p2, p3] = [1, .5, 1.25], where pt is the price at time t. The other strategy produced a sequence [m2, 1, m2, 2, m2, 3] = [1, .5, 0], as it was forced to reduce its bet size once the market moved against the initial full position. Both strategies produced forecasts that turned out to be correct (the price increased by 25% between p1 and p3), however the first strategy made money (0.5) while the second strategy lost money (−.125).

We would prefer to size positions in such way that we reserve some cash for the possibility that the trading signal strengthens ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Probabilistic Machine Learning for Finance and Investing

Probabilistic Machine Learning for Finance and Investing

Deepak K. Kanungo
Machine Learning for Finance

Machine Learning for Finance

James Le, Jannes Klaas
Machine Learning and Data Science Blueprints for Finance

Machine Learning and Data Science Blueprints for Finance

Hariom Tatsat, Sahil Puri, Brad Lookabaugh

Publisher Resources

ISBN: 9781119482086Purchase book