Jump to content

Kelly criterion: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Gambling formula: Fixed typo
Tags: canned edit summary Mobile edit Mobile app edit Android app edit
Gbohus (talk | contribs)
No edit summary
Line 130: Line 130:
:<math>\mathbb{E} \log(S_t)=\log(S_0)+\left(\mu- \frac {\sigma^2}{2}\right)t.</math>
:<math>\mathbb{E} \log(S_t)=\log(S_0)+\left(\mu- \frac {\sigma^2}{2}\right)t.</math>
Then the expected log return <math>R_s</math> is
Then the expected log return <math>R_s</math> is
:<math>R_s = \left(\mu -\frac{\sigma^2}{2}\,\right) t.</math>
:<math>R_s = \left(\mu -\frac{\sigma^2}{2}\,\right) s.</math>
For a portfolio made of an asset <math>S</math> and a bond paying risk-free rate <math>r</math>, with fraction <math>f</math> invested in <math>S</math> and <math>(1-f)</math> in the bond, the expected one-period return is given by
For a portfolio made of an asset <math>S</math> and a bond paying risk-free rate <math>r</math>, with fraction <math>f</math> invested in <math>S</math> and <math>(1-f)</math> in the bond, the expected one-period return is given by
:<math> \mathbb{E}\left(f \left[\frac{S_1}{S_0} - 1\right] + ( 1 - f)r \right) = \mathbb{E}\left(f \left[\exp\left( \left(\mu - \frac{\sigma^2}{2} \right) + \sigma W_1\right) - 1 \right]\right) + (1 - f) r </math>
:<math> \mathbb{E}\left(f \left[\frac{S_1}{S_0} - 1\right] + ( 1 - f)r \right) = \mathbb{E}\left(f \left[\exp\left( \left(\mu - \frac{\sigma^2}{2} \right) + \sigma W_1\right) - 1 \right]\right) + (1 - f) r </math>

Revision as of 11:21, 12 October 2021

Example of the optimal Kelly betting fraction, versus expected return of other fractional bets.

In probability theory, the Kelly criterion (or Kelly strategy or Kelly bet), is a formula that determines the optimal theoretical size for a bet. It is valid when the expected returns are known. The Kelly bet size is found by maximizing the expected value of the logarithm of wealth, which is equivalent to maximizing the expected geometric growth rate. It was described by J. L. Kelly Jr, a researcher at Bell Labs, in 1956.[1] The criterion is also known as the scientific gambling method, as it leads to higher wealth compared to any other strategy in the long run (i.e. the theoretical maximum return as the number of bets goes to infinity).

The practical use of the formula has been demonstrated for gambling[2][3] and the same idea was used to explain diversification in investment management.[4] In the 2000s, Kelly-style analysis became a part of mainstream investment theory[5] and the claim has been made that well-known successful investors including Warren Buffett[6] and Bill Gross[7] use Kelly methods. William Poundstone wrote an extensive popular account of the history of Kelly betting.[8] Also see Intertemporal portfolio choice.

Optimal betting example

The usefulness of the Kelly bet amount can be realized by comparing it to other gambling strategies.

In a study, each participant was given $25 and asked to place even-money bets on a coin that would land heads 60% of the time. Participants had 30 minutes to play, so could place about 300 bets, and the prizes were capped at $250. The Kelly bet in this scenario is 20%, which works out to a 2% average gain each round. The average expected winnings with 300 rounds work out to $10,500 if it were not capped. But the behavior of the test subjects was far from optimal:

Remarkably, 28% of the participants went bust, and the average payout was just $91. Only 21% of the participants reached the maximum. 18 of the 61 participants bet everything on one toss, while two-thirds gambled on tails at some stage in the experiment.[9][10]

If the bettors had followed the Kelly bet, it is expected that 94% of the participants would have reached the cap.

Gambling formula

Where losing the bet involves losing the entire wager, the Kelly bet is:

where:

  • is the fraction of the current bankroll to wager.
  • is the probability of a win.
  • is the probability of a loss ().
  • is the amount gained with a win. E.g. If betting $10 on a 2-to-1 odds bet, (upon win you are returned $30, winning you $20), then .

As an example, if a gamble has a 60% chance of winning (, ), and the gambler receives 1-to-1 odds on a winning bet (), then the gambler should bet 20% of the bankroll at each opportunity (), in order to maximize the long-run growth rate of the bankroll.

If the gambler has zero edge, i.e. if , then the criterion recommends for the gambler to bet nothing.

If the edge is negative () the formula gives a negative result, indicating that the gambler should take the other side of the bet. For example, in American roulette, the bettor is offered an even money payoff () on red, when there are 18 red numbers and 20 non-red numbers on the wheel (). The Kelly bet is , meaning the gambler should bet one-nineteenth of their bankroll that red will not come up. There is no explicit anti-red bet offered with comparable odds in roulette, so the best a Kelly gambler can do is bet nothing.

Investment formula

A more general form of the Kelly formula allows for partial losses, which is relevant for investments:

where:

  • is the fraction of the assets to apply to the security.
  • is the probability that the investment increases in value.
  • is the probability that the investment decreases in value ().
  • is the fraction that is lost in a negative outcome. E.g. If the security price falls 10%, then
  • is the fraction that is gained in a positive outcome. E.g. If the security price rises 10%, then .

Note that the Kelly Criterion is only valid for known outcome probabilities, which is not the case with investments. Investing the full Kelly fraction is not recommended.

This formula can result in Kelly fractions higher than 1. In this case, it is theoretically advantageous to use leverage to purchase additional securities on margin.

Proof

Heuristic proofs of the Kelly criterion are straightforward.[11] The Kelly criterion maximizes the expected value of the logarithm of wealth (the expectation value of a function is given by the sum, over all possible outcomes, of the probability of each particular outcome multiplied by the value of the function in the event of that outcome). We start with 1 unit of wealth and bet a fraction of that wealth on an outcome that occurs with probability and offers odds of . The probability of winning is , and in that case the resulting wealth is equal to . The probability of losing is , and in that case the resulting wealth is equal to . Therefore, the expected geometric growth rate is:

We want to find the maximum r of this curve, which involves finding the derivative of the equation. This is more easily accomplished by taking the logarithm of each side first. The resulting equation is:

with denoting logarithmic wealth growth. To find the value of for which the growth rate is maximized, denoted as , we differentiate the above expression and set this equal to zero. This gives:

Rearranging this equation to solve for the value of gives the Kelly criterion:

Notice that this expression reduces to the simple gambling formula when , when a loss results in full loss of the wager.

Bernoulli

In a 1738 article, Daniel Bernoulli suggested that, when one has a choice of bets or investments, one should choose that with the highest geometric mean of outcomes. This is mathematically equivalent to the Kelly criterion, although the motivation is entirely different (Bernoulli wanted to resolve the St. Petersburg paradox).

An English-language translation of the Bernoulli article was not published until 1954,[12] but the work was well known among mathematicians and economists.

Application to the stock market

In mathematical finance, a portfolio is called growth optimal if security weights maximize the expected geometric growth rate (which is equivalent to maximizing log wealth).[citation needed]

Computations of growth optimal portfolios can suffer tremendous garbage in, garbage out problems.[citation needed] For example, the cases below take as given the expected return and covariance structure of various assets, but these parameters are at best estimated or modeled with significant uncertainty. Ex-post performance of a supposed growth optimal portfolio may differ fantastically with the ex-ante prediction if portfolio weights are largely driven by estimation error. Dealing with parameter uncertainty and estimation error is a large topic in portfolio theory.[citation needed]. An approach to counteract the unknown risk is to invest less than the Kelly criterion, eg half.

Criticism

Although the Kelly strategy's promise of doing better than any other strategy in the long run seems compelling, some economists have argued strenuously against it, mainly because an individual's specific investing constraints may override the desire for optimal growth rate.[8] The conventional alternative is expected utility theory which says bets should be sized to maximize the expected utility of the outcome (to an individual with logarithmic utility, the Kelly bet maximizes expected utility, so there is no conflict; moreover, Kelly's original paper clearly states the need for a utility function in the case of gambling games which are played finitely many times[1]). Even Kelly supporters usually argue for fractional Kelly (betting a fixed fraction of the amount recommended by Kelly) for a variety of practical reasons, such as wishing to reduce volatility, or protecting against non-deterministic errors in their advantage (edge) calculations. [13]

Advanced mathematics

For a rigorous and general proof, see Kelly's original paper[1] or some of the other references listed below. Some corrections have been published.[14] We give the following non-rigorous argument for the case with (a 50:50 "even money" bet) to show the general idea and provide some insights.[1] When , a Kelly bettor bets times their initial wealth , as shown above. If they win, they have after one bet. If they lose, they have . Suppose they make bets like this, and win times out of this series of bets. The resulting wealth will be:

Note that the ordering of the wins and losses does not affect the resulting wealth. Suppose another bettor bets a different amount, for some value of (where may be positive or negative). They will have after a win and after a loss. After the same series of wins and losses as the Kelly bettor, they will have:

Take the derivative of this with respect to and get:

The function is maximized when this derivative is equal to zero, which occurs at:

which implies that

but the proportion of winning bets will eventually converge to:

according to the weak law of large numbers. So in the long run, final wealth is maximized by setting to zero, which means following the Kelly strategy. This illustrates that Kelly has both a deterministic and a stochastic component. If one knows K and N and wishes to pick a constant fraction of wealth to bet each time (otherwise one could cheat and, for example, bet zero after the Kth win knowing that the rest of the bets will lose), one will end up with the most money if one bets:

each time. This is true whether is small or large. The "long run" part of Kelly is necessary because K is not known in advance, just that as gets large, will approach . Someone who bets more than Kelly can do better if for a stretch; someone who bets less than Kelly can do better if for a stretch, but in the long run, Kelly always wins. The heuristic proof for the general case proceeds as follows.[citation needed] In a single trial, if you invest the fraction of your capital, if your strategy succeeds, your capital at the end of the trial increases by the factor , and, likewise, if the strategy fails, you end up having your capital decreased by the factor . Thus at the end of trials (with successes and failures), the starting capital of $1 yields

Maximizing , and consequently , with respect to leads to the desired result

Edward O. Thorp provided a more detailed discussion of this formula for the general case.[15] There, it can be seen that the substitution of for the ratio of the number of "successes" to the number of trials implies that the number of trials must be very large, since is defined as the limit of this ratio as the number of trials goes to infinity. In brief, betting each time will likely maximize the wealth growth rate only in the case where the number of trials is very large, and and are the same for each trial. In practice, this is a matter of playing the same game over and over, where the probability of winning and the payoff odds are always the same. In the heuristic proof above, successes and failures are highly likely only for very large .

Multiple outcomes

Kelly's criterion may be generalized[16] on gambling on many mutually exclusive outcomes, such as in horse races. Suppose there are several mutually exclusive outcomes. The probability that the -th horse wins the race is , the total amount of bets placed on -th horse is , and

where are the pay-off odds. , is the dividend rate where is the track take or tax, is the revenue rate after deduction of the track take when -th horse wins. The fraction of the bettor's funds to bet on -th horse is . Kelly's criterion for gambling with multiple mutually exclusive outcomes gives an algorithm for finding the optimal set of outcomes on which it is reasonable to bet and it gives explicit formula for finding the optimal fractions of bettor's wealth to be bet on the outcomes included in the optimal set . The algorithm for the optimal set of outcomes consists of four steps.[16]

Step 1: Calculate the expected revenue rate for all possible (or only for several of the most promising) outcomes:
Step 2: Reorder the outcomes so that the new sequence is non-increasing. Thus will be the best bet.
Step 3: Set (the empty set), , . Thus the best bet will be considered first.
Step 4: Repeat:
If then insert -th outcome into the set: , recalculate according to the formula:
and then set ,
Otherwise, set and stop the repetition.

If the optimal set is empty then do not bet at all. If the set of optimal outcomes is not empty, then the optimal fraction to bet on -th outcome may be calculated from this formula:

.

One may prove[16] that

where the right hand-side is the reserve rate[clarification needed]. Therefore, the requirement may be interpreted[16] as follows: -th outcome is included in the set of optimal outcomes if and only if its expected revenue rate is greater than the reserve rate. The formula for the optimal fraction may be interpreted as the excess of the expected revenue rate of -th horse over the reserve rate divided by the revenue after deduction of the track take when -th horse wins or as the excess of the probability of -th horse winning over the reserve rate divided by revenue after deduction of the track take when -th horse wins. The binary growth exponent is

and the doubling time is

This method of selection of optimal bets may be applied also when probabilities are known only for several most promising outcomes, while the remaining outcomes have no chance to win. In this case it must be that

and
.

Stock investments

The second-order Taylor polynomial can be used as a good approximation of the main criterion. Primarily, it is useful for stock investment, where the fraction devoted to investment is based on simple characteristics that can be easily estimated from existing historical data – expected value and variance. This approximation leads to results that are robust and offer similar results as the original criterion.[17]

For single assets(stock, index fund, etc.), and a risk-free rate, it is easy to obtain the optimal fraction to invest through geometric Brownian motion. The value of a lognormally distributed asset at time () is

from the solution of the geometric Brownian motion where is a Wiener process, and (percentage drift) and (the percentage volatility) are constants. Taking expectations of the logarithm:

Then the expected log return is

For a portfolio made of an asset and a bond paying risk-free rate , with fraction invested in and in the bond, the expected one-period return is given by

however people seem to deal with the expected log return for one-period instead in the context of Kelly:

Solving we obtain

is the fraction that maximizes the expected logarithmic return, and so, is the Kelly fraction. Thorp[15] arrived at the same result but through a different derivation. Remember that is different from the asset log return . Confusing this is a common mistake made by websites and articles talking about the Kelly Criterion.

For multiple assets, consider a market with correlated stocks with stochastic returns , and a riskless bond with return . An investor puts a fraction of their capital in and the rest is invested in the bond. Without loss of generality, assume that investor's starting capital is equal to 1. According to the Kelly criterion one should maximize

Expanding this with a Taylor series around we obtain

Thus we reduce the optimization problem to quadratic programming and the unconstrained solution is

where and are the vector of means and the matrix of second mixed noncentral moments of the excess returns. There is also a numerical algorithm for the fractional Kelly strategies and for the optimal solution under no leverage and no short selling constraints.[18]

See also

References

  1. ^ a b c d Kelly, J. L. (1956). "A New Interpretation of Information Rate" (PDF). Bell System Technical Journal. 35 (4): 917–926. doi:10.1002/j.1538-7305.1956.tb03809.x.
  2. ^ Thorp, E. O. (January 1961), "Fortune's Formula: The Game of Blackjack", American Mathematical Society
  3. ^ Thorp, E. O. (1962), Beat the dealer: a winning strategy for the game of twenty-one. A scientific analysis of the world-wide game known variously as blackjack, twenty-one, vingt-et-un, pontoon or Van John, Blaisdell Pub. Co
  4. ^ Thorp, Edward O.; Kassouf, Sheen T. (1967), Beat the Market: A Scientific Stock Market System (PDF), Random House, ISBN 0-394-42439-5, archived from the original (PDF) on 2009-10-07, page 184f.
  5. ^ Zenios, S. A.; Ziemba, W. T. (2006), Handbook of Asset and Liability Management, North Holland, ISBN 978-0-444-50875-1
  6. ^ Pabrai, Mohnish (2007), The Dhandho Investor: The Low-Risk Value Method to High Returns, Wiley, ISBN 978-0-470-04389-9
  7. ^ Thorp, E. O. (September 2008), "The Kelly Criterion: Part II", Wilmott Magazine
  8. ^ a b Poundstone, William (2005), Fortune's Formula: The Untold Story of the Scientific Betting System That Beat the Casinos and Wall Street, New York: Hill and Wang, ISBN 0-8090-4637-7
  9. ^ https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2856963
  10. ^ "Buttonwood", "Irrational tossers", The Economist Newspaper Limited 2016, Nov 1st 2016.
  11. ^ Press, W. H.; Teukolsky, S. A.; Vetterling, W. T.; Flannery, B. P. (2007), "Section 14.7 (Example 2.)", Numerical Recipes: The Art of Scientific Computing (3rd ed.), New York: Cambridge University Press, ISBN 978-0-521-88068-8
  12. ^ Bernoulli, Daniel (1954) [1738]. "Exposition of a New Theory on the Measurement of Risk". Econometrica. 22 (1). The Econometric Society: 22–36. doi:10.2307/1909829. JSTOR 1909829.
  13. ^ Thorp, E. O. (May 2008), "The Kelly Criterion: Part I", Wilmott Magazine
  14. ^ Thorp, E. O. (1969). "Optimal Gambling Systems for Favorable Games". Revue de l'Institut International de Statistique / Review of the International Statistical Institute. 37 (3). International Statistical Institute (ISI): 273–293. doi:10.2307/1402118. JSTOR 1402118. MR 0135630.
  15. ^ a b Thorp, Edward O. (June 1997). "The Kelly criterion in blackjack, sports betting, and the stock market" (PDF). 10th International Conference on Gambling and Risk Taking. Montreal. Archived from the original (PDF) on 2009-03-20. Retrieved 2009-03-20.
  16. ^ a b c d Smoczynski, Peter; Tomkins, Dave (2010) "An explicit solution to the problem of optimizing the allocations of a bettor’s wealth when wagering on horse races", Mathematical Scientist", 35 (1), 10-17
  17. ^ Marek, Patrice; Ťoupal, Tomáš; Vávra, František (2016). "Efficient Distribution of Investment Capital". 34th International Conference Mathematical Methods in Economics, MME2016, Conference Proceedings: 540–545. Retrieved 24 January 2018.
  18. ^ Nekrasov, Vasily (2013). "Kelly Criterion for Multivariate Portfolios: A Model-Free Approach" (Document). {{cite document}}: Cite document requires |publisher= (help); Unknown parameter |ssrn= ignored (help)