How to Invest Like a Gambler – and Win (The Kelly Criterion)

How to Invest Like a Gambler – and Win (The Kelly Criterion)

5 min read
Kenneth Estes Read More

Did you know that gambling drives investment theory?

It’s a not often talked about fact that many of the recent technological advances came about thanks to the “adult” industry.  Online payments, streaming content, and the huge increase in internet bandwidth are all thanks to adult industry.  Back in 2002 when I first started out in high frequency trading, the people setting up our servers wondered why we needed so many.  We told them we were an adult entertainment company, and they didn’t even bat an eye.  They just asked for free access…

In the same way, much of investment theory comes from gamblers.  Fancy pants traders, quants, and hedge funder managers spend much of their time dealing with probability theory, which was invented to quantify games of chance.

Today, I’m going to talk about one such technique that bridges the gap between gambling and investing: the Kelly Criterion (which I usually refer to as just plain old Kelly).  Kelly answers the oldest wagering question: “how much should you bet?”

In recent years it’s been picked up by the finance industry as a whole, and is simple enough that it could and should be used by all investors.

So What is This Kelly Thingamajig?

We’ve already said that the Kelly Criterion tells you how much you should bet.  Note, it doesn’t make a guess at it.  It’s a proven fact.  (there are few caveats though).

I want to play a hypothetical game with.  You place a wager, and I flip a coin (we’ll assume it’s fair and I don’t have magician fingers).  If the coin comes up heads, I will pay you double your wager.  For tails I keep your wager.

How much will you bet?

Before you can answer, you need more information.  We need to yank out some details from the rules of the game and your situation:

  • What’s the largest amount you can afford to wager?  We call this your bankroll.
  • How much do you get if you win?  These are your odds.
  • How much in your favor is the game?  This is your edge. (if the game is not in your favor, why in the heck are you playing?)

So the Kelly Criterion is simple:

optimal bet = edge/odds * bankroll

In this case let’s say your bankroll is $100.

We’ve already been told you when you win you get paid double your bet, so your odds are 2/1=2.

Edge is trickier.  It’s (chance of winning * winning payout – chance of losing * loss amount).  For you that’s 0.50*2-0.50*1= .05

Now we plug and chug: Optimal bet = edge/odds*bankroll = .5/2*$100 = $25.

Your first bet in the game should be $25.  You have to recalculate your ideal between before every round.  If you win the first toss, your new bet is .5/2*$125=$31.25, if you lose it’s $18.75.

Is Kelly Really the Best?

Yes…sort of.  The caveat I mentioned about is Kelly criterion only applies if you are going to play a game over and over again.  If you’re playing once and are never gambling again, then it’s not much help.

However, if you’re in it for the long haul, Kelly is the optimal approach.

Don’t take my word for it, look through the mathematical proof.

Or…we can pick a few approaches and play the game a bunch of times?

How about we use:

  • Fixed Bets – The easiest thing to do it bet the same amount every time.  Say $50.
  • Kelly Criterion
  • Double Kelly Wagering –  Maybe you like some of the ideas of Kelly, but want to make more money faster.  Why not double the bet?
  • Half Kelly Wagering – Kelly too conservative?  Why not put down half the bet?

I wrote a python script to do the heavy lifting here.  If you want to make sure I didn’t mess up my code, send me a tweet or a BiggerPockets message and I’ll send you all 50 lines of code.  Otherwise, you’re just going to have to trust me.

Interestingly enough, this approach of picking some methods, trying them out, and tallying the results is called a Monte Carlo simulation and is commonly used in computer science, statistics, and finance.  Guess where it came from?  Yep, gambling.  It’s named after the Monte Carlo casino.

Let’ s see how our approaches are doing after 10, 50, 100, and 1000 plays:

10 Plays

Here’s our bankroll after we’ve played the game 10 times:

Kelly10Iters

Double Kelly is off to a strong start.  Heck, it’s made more than triple what Kelly has.  Fixed and Half Kelly are sucking wind a mile back.  Maybe there’s something to being aggressive?

50 Plays

Kelly50Iters

Double Kelly got hit hard.  Turns out being more aggressive is risky and has sever downsides.

Kelly is now squarely in the lead trailed by half and then double.

100 Plays

Kelly100Iters

Only 100 plays and it’s not even a contest anymore.  Kelly has made 15 times more than the runner up (half).

1000 Plays

Kelly1000Iters

 

This chart is worthless…and that’s why it’s great.  Don’t you love exponents?  The scale is so big that Kelly is the only one that is even visible.  If you found someone with more money than there is on earth who would agree to play this game 1000 times, the Kelly approach would yield you a billion times more than the runner up (half kelly again).

Are you convinced yet?

When in Doubt, Be More Conservative Than Kelly

In that last couple of results above, you’ll notice that half Kelly outperformed double Kelly.  After 100 iterations, half Kelly did 1.5 times better than double Kelly.  After 1000 iterations, half did ~40 trillion times better than double (no, I can’t wrap my mind around that scale either).

You want to err on the side of being more conservative, not more aggressive.

There is a chance you could wind up with a short burst of extraordinary returns, but that’s not the norm and you will always be overcome by more conservative approaches.

How Does This Apply to Real Estate Investing?

You might recall when we first started out that I said there is a very thin line between investing and gambling.  Well, you can turn every investment decision into a Kelly problem (some are easier than others though).

Let’s look at a house flipping example.

Say you can buy a house for $100,000.  You expect that when it’s all said and done you can clear $20,000 after rehab costs and commissions.  However, you can’t be certain of that.  When you get into a property, unanticipated issues might crop up, the cost of materials could increase, or maybe the market turns against you.  For the sake of this example, we’re going to say there’s a 20% chance you lose $10,000.

But wait…this ignores the “cost of carry.”

Assume it takes 6 months to flip the house and you get a 100% interest only loan at 5% APR and property taxes are 2% a year.

Financing costs = 100,000 * .05 / 2 = $2,500.

Property taxes = 100,000 * .02 / 2 = $1,000.

Now your upside is $20,000-$2,500-$1,000=$16,500 and your downside is $10,000+$2,500+$1,000=$13,500.

To convert this into Kelly terms we could say we’re wagering $13,500 to win $16,500, and we have a 80% chance of winning and a 20% chance of losing.

Odds = $16,500/13,500 = 1.22

Edge = .8*1.22-.2*1= .776

Remember, optimal bet = edge/odds*bankroll.  Time for some algebra!  $13,500=.776/1.22*bankroll.  That means your bankroll should be at least $21,224.  That’s on a “no money down” investment!

We’re not even including your labor.  How many hours will you have to invest?  How much is that time worth?

Can you make this investment with less than $21,224?  Absolutely, but remember, when you’re not sure, always err on the side of being too conservative.

Wrap It Up: Investing the Kelly Way

In many ways, gambling is like adult entertainment.  They’re both on the seedy side of life, they both are looked down on, and they both drive progress in a number of industries.

I hope you have a decent understanding of one popular gambling/investing approach: the Kelly Criterion.

Go try it for yourself.  Calculate your optimal bet for an investment you’re considering.  What percentage of your bankroll should you put on the line?  Drop me a line and let me know.

Photo: conorwithonen

Did you know that gambling drives investment theory? It’s a not often talked about fact that many of the recent technological advances came about thanks to the “adult” industry.  Online payments, […]