Lecture 25: Money Management Steven Skiena. http://www.cs.sunysb.edu/ skiena



Similar documents
Part I. Gambling and Information Theory. Information Theory and Networks. Section 1. Horse Racing. Lecture 16: Gambling and Information Theory

Finite Horizon Investment Risk Management

פרויקט מסכם לתואר בוגר במדעים )B.Sc( במתמטיקה שימושית

Applying the Kelly criterion to lawsuits

SOME ASPECTS OF GAMBLING WITH THE KELLY CRITERION. School of Mathematical Sciences. Monash University, Clayton, Victoria, Australia 3168

arxiv: v1 [math.pr] 5 Dec 2011

Kelly s Criterion for Option Investment. Ron Shonkwiler (shonkwiler@math.gatech.edu)

The Mathematics of Gambling

Betting with the Kelly Criterion

MrMajik s Money Management Strategy Copyright MrMajik.com 2003 All rights reserved.

MONEY MANAGEMENT. Guy Bower delves into a topic every trader should endeavour to master - money management.

Elementary Statistics and Inference. Elementary Statistics and Inference. 17 Expected Value and Standard Error. 22S:025 or 7P:025.

Betting systems: how not to lose your money gambling

A New Interpretation of Information Rate

Expected Value and the Game of Craps

Intelligent Agent for Playing Casino Card Games

Gambling and Portfolio Selection using Information theory

A Simple Parrondo Paradox. Michael Stutzer, Professor of Finance. 419 UCB, University of Colorado, Boulder, CO

MA 1125 Lecture 14 - Expected Values. Friday, February 28, Objectives: Introduce expected values.

Lecture 2: The Kelly criterion for favorable games: stock market investing for individuals

Phantom bonuses. November 22, 2004

(SEE IF YOU KNOW THE TRUTH ABOUT GAMBLING)

Statistics and Random Variables. Math 425 Introduction to Probability Lecture 14. Finite valued Random Variables. Expectation defined

Loss rebates. December 27, 2004

The Kelly Criterion. A closer look at how estimation errors affect portfolio performance. by Adrian Halhjem Sælen. Advisor: Professor Steinar Ekern

The Kelly Betting System for Favorable Games.

Gambling with Information Theory

Standard 12: The student will explain and evaluate the financial impact and consequences of gambling.

To begin, I want to introduce to you the primary rule upon which our success is based. It s a rule that you can never forget.

In the situations that we will encounter, we may generally calculate the probability of an event

How to bet and win: and why not to trust a winner. Niall MacKay. Department of Mathematics

Prediction Markets, Fair Games and Martingales

The Ultimate Blackjack System

6.042/18.062J Mathematics for Computer Science. Expected Value I

Chapter 7: Proportional Play and the Kelly Betting System

Beating Roulette? An analysis with probability and statistics.

1. Overconfidence {health care discussion at JD s} 2. Biased Judgments. 3. Herding. 4. Loss Aversion

Calculated Bets: Computers, Gambling, and Mathematical Modeling to Win Steven Skiena

THE ROULETTE BIAS SYSTEM

Lecture 15: Final Topics on CAPM

Section 7C: The Law of Large Numbers

REWARD System For Even Money Bet in Roulette By Izak Matatya

Money, the Internet, and Jai-Alai Steven Skiena. O Reilly Money:Tech Conference February 7, 2008

The overall size of these chance errors is measured by their RMS HALF THE NUMBER OF TOSSES NUMBER OF HEADS MINUS NUMBER OF TOSSES

Expected Value. 24 February Expected Value 24 February /19

Week 4: Gambler s ruin and bold play

BINARY OPTIONS - FEEL THE RUSH! .com.

1 Portfolio Selection

SAMPLE MID-TERM QUESTIONS

An Introduction to Utility Theory

Choice Under Uncertainty

The power of money management

Picking Winners is For Losers: A Strategy for Optimizing Investment Outcomes

Week 5: Expected value and Betting systems

Professionally Managed Portfolios of Exchange-Traded Funds

Stat 134 Fall 2011: Gambler s ruin

Linear Risk Management and Optimal Selection of a Limited Number

Ch. 13.3: More about Probability

Chapter 4 Lecture Notes

WHAT ARE THE ODDS? The Wizard of Odds Analyzes the New Casino Games

Elementary Statistics and Inference. Elementary Statistics and Inference. 16 The Law of Averages (cont.) 22S:025 or 7P:025.

MOVIES, GAMBLING, SECRET CODES, JUST MATRIX MAGIC

Two-State Options. John Norstad. January 12, 1999 Updated: November 3, 2011.

John Kerrich s coin-tossing Experiment. Law of Averages - pg. 294 Moore s Text

MONT 107N Understanding Randomness Solutions For Final Examination May 11, 2010

6.042/18.062J Mathematics for Computer Science December 12, 2006 Tom Leighton and Ronitt Rubinfeld. Random Walks

This Method will show you exactly how you can profit from this specific online casino and beat them at their own game.

TABLE OF CONTENTS. ROULETTE FREE System # ROULETTE FREE System #

A Note on Proebsting s Paradox

Unit 19: Probability Models

AMS 5 CHANCE VARIABILITY

Extending Kelly Staking Strategies to Peer-to-Peer Betting Exchanges

Game Theory and Poker

The Kelly criterion for spread bets

Chicago Booth BUSINESS STATISTICS Final Exam Fall 2011

Wald s Identity. by Jeffery Hein. Dartmouth College, Math 100

Random Fibonacci-type Sequences in Online Gambling

National Sun Yat-Sen University CSE Course: Information Theory. Gambling And Entropy

Lecture 11 Uncertainty

Economics 1011a: Intermediate Microeconomics

Optimal f :Calculating the expected growth-optimal fraction for discretely-distributed outcomes

Black Jack. and how to win

The Rational Gambler

The Impact of a Finite Bankroll on an Even-Money Game

The Contrarian Let It Ride System For Trading Binary Options Profitably

We rst consider the game from the player's point of view: Suppose you have picked a number and placed your bet. The probability of winning is

Making $200 a Day is Easy!

FACT A computer CANNOT pick numbers completely at random!

Fourth Problem Assignment

Virtual Sports Betting Secrets

Betting on Excel to enliven the teaching of probability

An Introduction to Information Theory

During the course of our research on NBA basketball, we found out a couple of interesting principles.

36 Odds, Expected Value, and Conditional Probability

Rules of core casino games in Great Britain

THE POKIES: BEFORE YOU PRESS THE BUTTON, KNOW THE FACTS.

Law of Large Numbers. Alexandra Barbato and Craig O Connell. Honors 391A Mathematical Gems Jenia Tevelev

Transcription:

Lecture 25: Money Management Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena

Money Management Techniques The trading strategies we have studied point towards possible investment opportunities, but usually do not tell us how much we should invest in each. Money management issues are implicit in discussions of (1) risk vs. return, (2) portfolio optimization, and (3) market saturation. Properly allocating capital to investment opportunities can be as or more important than finding them in the first place.

Leveraged Trading Strategies That investment strategies must modulate risk and return in money management is apparent when studying the impact of leverage. Consider a strategy which borrows money at the LIBOR rate for one year, and invests it in a stock market index (here Nasdaq).

Nasdaq Leveraged Trading 1990-2000

Nasdaq Leveraged Trading 2000-2007 The probability of going bust is as meaningful notion of risk as volatility...

Managing Money When You Have an Edge You play a sequence of games, where: If you win, you get W dollars for each dollar bet If you lose, you lose your bet For each game, the probability of winning is p and losing is q = 1 p You bet some fixed percentage f of your bankroll B each game, for you have (1 f)b if you lose and (W 1)fB + B if you win. The right value of f is called the Kelly Criterion.

Rigged in our Favor? Suppose we bet $1 on a fair coin, but one which pays $2.10 if it comes up heads? How much of our bankroll should be bet each time? Bet too much and we lose, even with the odds in our favor!

After 5000 Coin Tosses Ten straight tails leaves only 1/3 the bankroll at 10%, but almost 2/3 at Kelly (4.5%)

The Kelly Criterion: History Developed by John Kelly, a physicist at Bell Labs in a 1956 paper A New Interpretation of Information Rate published in the Bell System Technical Journal. He used Information Theory to show how a gambler with inside information should bet. Thorpe used system to compute optimum bets for blackjack in his 1962 book Beat the Dealer: A Winning Strategy for the Game of Twenty One, and later as hedge fund manager on Wall Street.

Not So Easy Suppose you play a (more generous) sequence of games of flipping a fair coin. On heads, you win two dollars for each dollar bet, or a total of three dollars per dollar bet. On tails, you lose your one dollar bet. The odds are in your favor, but if you bet all your money on each game, you will eventually lose a game and be bankrupt If you bet too little, you will not make as much money as you could have.

Bet Everything? Suppose your bankroll starts at one dollar and you bet everything (f = 1) each round. After 10 rounds, there is one chance in 1024 that you will have 59,049 dollars, and 1023 chances in 1024 that you will have 0 dollars Your expected wealth (arithmetic mean) is 57.67 dollars, but your median wealth is 0 dollars! Would you bet this way, which maximizes the arithmetic mean of your wealth?

Calculating the Kelly Fraction You play a sequence of n = w + l games. Each game, you either win W for each dollar bet with probability p or lose your bet with probability q = 1 p. If after n games, you have won w and lost l games, your total bankroll is B n = (1 + fw) w (1 f) l B Dividing by B gives the gain in your bankroll: Gain n = (1 + fw) w (1 f) l

Computing Gain We want to find the value of f that maximizes the geometric mean of the gain or (equivallently) the arithmetic mean of the log of the gain The geometric mean G, is the limit as n of the nthroot of the gain which is G = lim n ((1 + fw) w/n (1 f) l/n ) G = (1 + fw) p (1 f) q The value of your bankroll after n games is so G is the gain per game. B n = G n B

Maximizing the Arithmetic Mean of the Log of the Gain To find the f that maximizes G, we take the derivative of G = (1 + fw) p (1 f) q with respect to f and set it equal to 0: (1 +fw) p ( q(1 f) q 1 ) +Wp(1 +fw) p 1 (1 f) q = 0 Solving for f gives f = (pw q)/w = p q/w This is the Kelly Criterion for this problem Theorem: The log of the geometric mean of a random variable equals the arithmetic mean of the log of that variable

Edge over Odds The Kelly criterion f = (pw q)/w is sometimes written as f = edge/odds The odds are how much you will win if you win, e.g. the tote-board odds at a racetrack. Edge is how much you expect to win, e.g. p is your inside knowledge of which horse will win. If pw q = 0, you have no advantage and shouldn t bet anything, so f = 0. If q = 0, then f = 1 and you should borrow to bet all you possibly could.

Biased Coin Flipping For the generous coin flipping example (W = 2, p = 1/2), f = 0.5.5/2 = 0.25, where G = 1.0607. After 10 rounds starting from B = 1, this expected (mean) final wealth = 3.25 and median final wealth = 1.80. By comparison, if we bet all the money (f = 1) we would have expected (mean) final wealth = 57.67 and Median wealth = 0.

Generalizations The analysis can be generalized to the case we win W or lose L each round, which is more like investing. Using the same math, the value of f that maximizes G is f = (pw ql)/wl = p/l q/w As an example, consider p = 1/2, W = 1, and L = 0.5. Then f = 0.5 and G = 1.0607. It can also be generalized to n possible outcomes x i, each with probability p i.

Shannon s Example Claude Shannon (of Information Theory fame) proposed an approach to profiting from random variations in stock prices based on the preceding example. Consider the game as the value of the stock at the end of a single step/day. If you win the stock doubles in value, since W = 1. If you lose the stock halves in value since L = 1/2. If the stock just oscillates around its initial value, Shannon would be making (1.0607) n gain in n days!

Properties of the Kelly Criterion It maximizes (1) the geometric mean of wealth, and (2) the arithmetic mean of the log of wealth. In the long term (an infinite sequence), with probability 1 it maximizes the final value of the wealth compared with any other strategy, as well as the median of the wealth. Half the distribution of the final wealth is above the median and half below it. Finally, it minimizes the expected time required to reach a specified goal for the wealth

Fluctuations using the Kelly Criterion The Kelly Criterion f leads to a large amount of volatility in the bankroll. For example, the probability of the bankroll dropping to 1/n of its initial value at some point in an infinite sequence is 1/n. Thus there is a 50% chance the bankroll will drop to 1/2 of its value at some time in an infinite sequence.

Varying the Kelly Criterion Many people propose using a value of f equal to half Kelly or some other fraction of the Kelly Criterion to obtain less volatility with somewhat slower growth Half Kelly produces about 75% of the growth rate of the full Kelly fraction. An important reason to be conservative (e.g. half Kelly) is that people often overestimate their edge.

Growth Rate for Different Kelly Fractions

All the Possibilities in Four Games Consider again the example where p = 1/2, W = 1, L = 0.5, and B = 100, limited to four games.

Should You Use the Kelly Criterion? You are going to make only a relatively short sequence of bets compared to the infinite sequence used in the math. The properties of infinite sequences might not be an appropriate guide for a finite sequence of bets You might not be comfortable with the volatility. Do you really want to maximize the arithmetic mean of the log of your wealth (or the geometric mean of your wealth)? What is the marginal utility of money?

References Poundstone, William, Fortunes Formula: The Untold Story of the Scientific Betting System that Beat the Casinos and Wall Street, Hill and Wang, New York, NY, 2005 Kelly, John L, Jr., A New Interpretation of Information Rate, Bell Systems Technical Journal, Vol. 35, pp. 917-926, 1956

Final Thoughts on Investing There are several coherent theories of how prices are formed in the financial markets. None of them lead to clear strategies for you to beat the market. However an understanding of these theories should help you avoid stupid investment strategies: the importance of diversification the relation of return to risk the apparently inherent unpredictability of efficient markets the strength of buy-and-hold vs. active strategies.

the importance of long time horizons to minimize variance/risk. None of this is grounds for discouragement. The stock market has been called a casino rigged in favor of the investor. Skiena s advice: Stick your money in a broad index fund with low expenses, and forget about it.