Sponsored Links

Rabu, 20 Desember 2017

Sponsored Links

Betfair Pro Trader: Kelly Criterion
src: 4.bp.blogspot.com

In probability theory and intertemporal portfolio choice, the Kelly criterion, Kelly strategy, Kelly formula, or Kelly bet is a formula used to determine the optimal size of a series of bets in order to maximise the logarithm of wealth. In most gambling scenarios, and some investing scenarios under some simplifying assumptions, the Kelly strategy will do better than any essentially different strategy in the long run (that is, over a span of time in which the observed fraction of bets that are successful equals the probability that any given bet will be successful). It was described by J. L. Kelly, Jr, a researcher at Bell Labs, in 1956. The practical use of the formula has been demonstrated.

The Kelly Criterion is to bet a predetermined fraction of assets and can be counterintuitive. In one study, each participant was given $25 and asked to bet 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. Behavior 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." Using the Kelly criterion and based on the odds in the experiment, the right approach would be to bet 20% of the pot on each throw (see first example below). If losing, the size of the bet gets cut; if winning, the stake increases.

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. 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). 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.

In recent years, Kelly has become a part of mainstream investment theory and the claim has been made that well-known successful investors including Warren Buffett and Bill Gross use Kelly methods. William Poundstone wrote an extensive popular account of the history of Kelly betting.


Video Kelly criterion



Statement

For simple bets with two outcomes, one involving losing the entire amount bet, and the other involving winning the bet amount multiplied by the payoff odds, the Kelly bet is:

f * = b p - q b = p ( b + 1 ) - 1 b , {\displaystyle f^{*}={\frac {bp-q}{b}}={\frac {p(b+1)-1}{b}},}

where:

  • f * is the fraction of the current bankroll to wager, i.e. how much to bet;
  • b is the net odds received on the wager ("b to 1"); that is, you could win $b (on top of getting back your $1 wagered) for a $1 bet
  • p is the probability of winning;
  • q is the probability of losing, which is 1 - p.

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

If the gambler has zero edge, i.e. if b = q / p, then the criterion recommends the gambler bets nothing.

If the edge is negative (b < q / p) the formula gives a negative result, indicating that the gambler should take the other side of the bet. For example, in standard American roulette, the bettor is offered an even money payoff (b = 1) on red, when there are 18 red numbers and 20 non-red numbers on the wheel (p = 18/38). The Kelly bet is -1/19, meaning the gambler should bet one-nineteenth of their bankroll that red will not come up. Unfortunately, the casino doesn't allow betting against something coming up, so a Kelly gambler cannot place a bet.

The top of the first fraction is the expected net winnings from a $1 bet, since the two outcomes are that you either win $b with probability p, or lose the $1 wagered, i.e. win $-1, with probability q. Hence:

f * = expected net winnings net winnings if you win {\displaystyle f^{*}={\frac {\text{expected net winnings}}{\text{net winnings if you win}}}}

For even-money bets (i.e. when b = 1), the first formula can be simplified to:

f * = p - q . {\displaystyle f^{*}=p-q.}

Since q = 1-p, this simplifies further to

f * = 2 p - 1. {\displaystyle f^{*}=2p-1.}

A more general problem relevant for investment decisions is the following:

1. The probability of success is p {\displaystyle p} .

2. If you succeed, the value of your investment increases from 1 {\displaystyle 1} to 1 + b {\displaystyle 1+b} .

3. If you fail (for which the probability is q = 1 - p {\displaystyle q=1-p} ) the value of your investment decreases from 1 {\displaystyle 1} to 1 - a {\displaystyle 1-a} . (Note that the previous description above assumes that a is 1).

In this case, the Kelly criterion turns out to be the relatively simple expression

f * = p / a - q / b . {\displaystyle f^{*}=p/a-q/b.}

Note that this reduces to the original expression for the special case above ( f * = p - q {\displaystyle f^{*}=p-q} ) for b = a = 1 {\displaystyle b=a=1} .

Clearly, in order to decide in favor of investing at least a small amount ( f * > 0 ) {\displaystyle (f^{*}>0)} , you must have

p b > q a . {\displaystyle pb>qa.}

which obviously is nothing more than the fact that your expected profit must exceed the expected loss for the investment to make any sense.

The general result clarifies why leveraging (taking a loan to invest) decreases the optimal fraction to be invested, as in that case a > 1 {\displaystyle a>1} . Obviously, no matter how large the probability of success, p {\displaystyle p} , is, if a {\displaystyle a} is sufficiently large, the optimal fraction to invest is zero. Thus, using too much margin is not a good investment strategy, no matter how good an investor you are.


Maps Kelly criterion



Proof

Heuristic proofs of the Kelly criterion are straightforward. For a symbolic verification with Python and SymPy one would set the derivative y'(x) of the expected value of the logarithmic bankroll y(x) to 0 and solve for x:

For a rigorous and general proof, see Kelly's original paper or some of the other references listed below. Some corrections have been published.

We give the following non-rigorous argument for the case b = 1 (a 50:50 "even money" bet) to show the general idea and provide some insights.

When b = 1, the Kelly bettor bets 2p - 1 times initial wealth, W, as shown above. If they win, they have 2pW. If they lose, they have 2(1 - p)W. Suppose they make N bets like this, and win K of them. The order of the wins and losses doesn't matter, so they will have:

2 N p K ( 1 - p ) N - K W . {\displaystyle 2^{N}p^{K}(1-p)^{N-K}W\!.}

Suppose another bettor bets a different amount, (2p - 1 + ? {\displaystyle \Delta } )W for some positive or negative ? {\displaystyle \Delta } . They will have (2p + ? {\displaystyle \Delta } )W after a win and [2(1 - p)- ? {\displaystyle \Delta } ]W after a loss. After the same wins and losses as the Kelly bettor, they will have:

( 2 p + ? ) K [ 2 ( 1 - p ) - ? ] N - K W {\displaystyle (2p+\Delta )^{K}[2(1-p)-\Delta ]^{N-K}W}

Take the derivative of this with respect to ? {\displaystyle \Delta } and get:

K ( 2 p + ? ) K - 1 [ 2 ( 1 - p ) - ? ] N - K W - ( N - K ) ( 2 p + ? ) K [ 2 ( 1 - p ) - ? ] N - K - 1 W {\displaystyle K(2p+\Delta )^{K-1}[2(1-p)-\Delta ]^{N-K}W-(N-K)(2p+\Delta )^{K}[2(1-p)-\Delta ]^{N-K-1}W}

The turning point of the original function occurs when this derivative equals zero, which occurs at:

K [ 2 ( 1 - p ) - ? ] = ( N - K ) ( 2 p + ? ) {\displaystyle K[2(1-p)-\Delta ]=(N-K)(2p+\Delta )}

which implies:

? = 2 ( K N - p ) {\displaystyle \Delta =2({\frac {K}{N}}-p)}

but:

lim N -> + ? K N = p {\displaystyle \lim _{N\to +\infty }{\frac {K}{N}}=p}

so in the long run, final wealth is maximized by setting ? {\displaystyle \Delta } 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:

( 2 K N - 1 ) W {\displaystyle \left(2{\frac {K}{N}}-1\right)W}

each time. This is true whether N is small or large. The "long run" part of Kelly is necessary because K is not known in advance, just that as N gets large, K will approach pN. Someone who bets more than Kelly can do better if K > pN for a stretch; someone who bets less than Kelly can do better if K < pN for a stretch, but in the long run, Kelly always wins.

The heuristic proof for the general case proceeds as follows.

In a single trial, if you invest the fraction f {\displaystyle f} of your capital, if your strategy succeeds, your capital at the end of the trial increases by the factor 1 - f + f ( 1 + b ) = 1 + f b {\displaystyle 1-f+f(1+b)=1+fb} , and, likewise, if the strategy fails, you end up having your capital decreased by the factor 1 - f a {\displaystyle 1-fa} . Thus at the end of N {\displaystyle N} trials (with p N {\displaystyle pN} successes and q N {\displaystyle qN} failures ), the starting capital of $1 yields

C N = ( 1 + f b ) p N ( 1 - f a ) q N . {\displaystyle C_{N}=(1+fb)^{pN}(1-fa)^{qN}.}

Maximizing log ( C N ) / N {\displaystyle \log(C_{N})/N} , and consequently C N {\displaystyle C_{N}} , with respect to f {\displaystyle f} leads to the desired result

f * = p / a - q / b . {\displaystyle f^{*}=p/a-q/b.}

For a more detailed discussion of this formula for the general case, see. There, it can be seen that the substitution of p {\displaystyle p} for the ratio of the number of "successes" to the number of trials implies that the number of trials must be very large, since p {\displaystyle p} is defined as the limit of this ratio as the number of trials goes to infinity. In brief, betting f * {\displaystyle f^{*}} each time will likely maximize the wealth growth rate only in the case where the number of trials is very large, and p {\displaystyle p} and b {\displaystyle b} 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, p N {\displaystyle pN} successes and q N {\displaystyle qN} failures are highly likely only for very large N {\displaystyle N} .


GetBackJack
src: 2.bp.blogspot.com


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).

The Bernoulli article was not translated into English until 1954, but the work was well-known among mathematicians and economists.


What is KELLY CRITERION? What does KELLY CRITERION mean? KELLY ...
src: i.ytimg.com

Multiple horses

Kelly's criterion may be generalized on gambling on many mutually exclusive outcomes, like in horse races. Suppose there are several mutually exclusive outcomes. The probability that the k-th horse wins the race is p k {\displaystyle p_{k}} , the total amount of bets placed on k-th horse is B k {\displaystyle B_{k}} , and

? k = B k ? i B i = 1 1 + Q k , {\displaystyle \beta _{k}={\frac {B_{k}}{\sum _{i}B_{i}}}={\frac {1}{1+Q_{k}}},}

where Q k {\displaystyle Q_{k}} are the pay-off odds. D = 1 - t t {\displaystyle D=1-tt} , is the dividend rate where t t {\displaystyle tt} is the track take or tax, D ? k {\displaystyle {\frac {D}{\beta _{k}}}} is the revenue rate after deduction of the track take when k-th horse wins. The fraction of the bettor's funds to bet on k-th horse is f k {\displaystyle f_{k}} . Kelly's criterion for gambling with multiple mutually exclusive outcomes gives an algorithm for finding the optimal set S o {\displaystyle S^{o}} of outcomes on which it is reasonable to bet and it gives explicit formula for finding the optimal fractions f k o {\displaystyle f_{k}^{o}} of bettor's wealth to be bet on the outcomes included in the optimal set S o {\displaystyle S^{o}} . The algorithm for the optimal set of outcomes consists of four steps.

Step 1 Calculate the expected revenue rate for all possible (or only for several of the most promising) outcomes: e r k = D ? k p k = D ( 1 + Q k ) p k . {\displaystyle er_{k}={\frac {D}{\beta _{k}}}p_{k}=D(1+Q_{k})p_{k}.}

Step 2 Reorder the outcomes so that the new sequence e r k {\displaystyle er_{k}} is non-increasing. Thus e r 1 {\displaystyle er_{1}} will be the best bet.

Step 3 Set S = ? {\displaystyle S=\varnothing } (the empty set), k = 1 {\displaystyle k=1} , R ( S ) = 1 {\displaystyle R(S)=1} . Thus the best bet e r k = e r 1 {\displaystyle er_{k}=er_{1}} will be considered first.

Step 4 Repeat:

If e r k = D ? k p k > R ( S ) {\displaystyle er_{k}={\frac {D}{\beta _{k}}}p_{k}>R(S)} then insert k-th outcome into the set: S = S ? { k } {\displaystyle S=S\cup \{k\}} , recalculate R ( S ) {\displaystyle R(S)} according to the formula: R ( S ) = 1 - ? i ? S p i 1 - ? i ? S ? i D {\displaystyle R(S)={\frac {1-\sum _{i\in S}{p_{i}}}{1-\sum _{i\in S}{\frac {\beta _{i}}{D}}}}} and then set k = k + 1 {\displaystyle k=k+1} ,

Else set S o = S {\displaystyle S^{o}=S} and then stop the repetition.

If the optimal set S o {\displaystyle S^{o}} is empty then do not bet at all. If the set S o {\displaystyle S^{o}} of optimal outcomes is not empty then the optimal fraction f k o {\displaystyle f_{k}^{o}} to bet on k-th outcome may be calculated from this formula: f k o = e r k - R ( S o ) D ? k = p k - R ( S o ) D ? k {\displaystyle f_{k}^{o}={\frac {er_{k}-R(S^{o})}{\frac {D}{\beta _{k}}}}=p_{k}-{\frac {R(S^{o})}{\frac {D}{\beta _{k}}}}} .

One may prove that

R ( S o ) = 1 - ? i ? S o f i o {\displaystyle R(S^{o})=1-\sum _{i\in S^{o}}{f_{i}^{o}}}

where the right hand-side is the reserve rate. Therefore the requirement e r k = D ? k p k > R ( S ) {\displaystyle er_{k}={\frac {D}{\beta _{k}}}p_{k}>R(S)} may be interpreted as follows: k-th outcome is included in the set S o {\displaystyle S^{o}} of optimal outcomes if and only if its expected revenue rate is greater than the reserve rate. The formula for the optimal fraction f k o {\displaystyle f_{k}^{o}} may be interpreted as the excess of the expected revenue rate of k-th horse over the reserve rate divided by the revenue after deduction of the track take when k-th horse wins or as the excess of the probability of k-th horse winning over the reserve rate divided by revenue after deduction of the track take when k-th horse wins. The binary growth exponent is

G o = ? i ? S p i log 2 ( e r i ) + ( 1 - ? i ? S p i ) log 2 ( R ( S o ) ) , {\displaystyle G^{o}=\sum _{i\in S}{p_{i}\log _{2}{(er_{i})}}+(1-\sum _{i\in S}{p_{i}})\log _{2}{(R(S^{o}))},}

and the doubling time is

T d = 1 G o . {\displaystyle T_{d}={\frac {1}{G^{o}}}.}

This method of selection of optimal bets may be applied also when probabilities p k {\displaystyle p_{k}} are known only for several most promising outcomes, while the remaining outcomes have no chance to win. In this case it must be that ? i p i < 1 {\displaystyle \sum _{i}{p_{i}}<1} and ? i ? i < 1 {\displaystyle \sum _{i}{\beta _{i}}<1} .


GetBackJack
src: 3.bp.blogspot.com


Application to the stock market

Single asset

Considering a single asset (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 asset S {\displaystyle S} at time t {\displaystyle t} ( S t {\displaystyle S_{t}} ) is

E log ( S t ) = log ( S 0 ) + ( ? - ? 2 2 ) t . {\displaystyle \mathbb {E} \log(S_{t})=\log(S_{0})+(\mu -{\frac {\sigma ^{2}}{2}})t.}

Then the expected log return R s {\displaystyle R_{s}} is

R s = ( ? - ? 2 2 ) t . {\displaystyle R_{s}=\left(\mu -{\frac {\sigma ^{2}}{2}}\,\right)t.}

For a portfolio made of an asset S {\displaystyle S} and a bond paying risk-free rate r , {\displaystyle r,} with fraction f {\displaystyle f} invested in S {\displaystyle S} and ( 1 - f ) {\displaystyle (1-f)} in the bond, the expected rate of return G ( f ) {\displaystyle G(f)} is given by

G ( f ) = f ? - ( f ? ) 2 2 + ( ( 1 - f )   r ) . {\displaystyle G(f)=f\mu -{\frac {(f\sigma )^{2}}{2}}+((1-f)\ r).}

Solving max ( G ( f ) ) {\displaystyle \max(G(f))} we obtain

f * = ? - r ? 2 . {\displaystyle f^{*}={\frac {\mu -r}{\sigma ^{2}}}.}

f * {\displaystyle f^{*}} is the fraction that maximizes the return, and so, is the Kelly fraction.

Thorp arrived at the same result but through a different derivation.

Remember that ? {\displaystyle \mu } is different from the asset log return R s {\displaystyle R_{s}} . Confusing this is a common mistake made by websites and articles talking about the Kelly Criterion.

Many assets

Consider a market with n {\displaystyle n} correlated stocks S k {\displaystyle S_{k}} with stochastic returns r k {\displaystyle r_{k}} , k = 1 , . . . , n , {\displaystyle k=1,...,n,} and a riskless bond with return r {\displaystyle r} . An investor puts a fraction u k {\displaystyle u_{k}} of their capital in S k {\displaystyle S_{k}} 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

E [ ln ( ( 1 + r ) + ? k = 1 n u k ( r k - r ) ) ] . {\displaystyle \mathbb {E} \left[\ln \left((1+r)+\sum \limits _{k=1}^{n}u_{k}(r_{k}-r)\right)\right].}


Expanding this with the Taylor series around u 0 -> = ( 0 , ... , 0 ) {\displaystyle {\vec {u_{0}}}=(0,\ldots ,0)} we obtain

E [ ln ( 1 + r ) + ? k = 1 n u k ( r k - r ) 1 + r - 1 2 ? k = 1 n ? j = 1 n u k u j ( r k - r ) ( r j - r ) ( 1 + r ) 2 ] . {\displaystyle \mathbb {E} \left[\ln(1+r)+\sum \limits _{k=1}^{n}{\frac {u_{k}(r_{k}-r)}{1+r}}-{\frac {1}{2}}\sum \limits _{k=1}^{n}\sum \limits _{j=1}^{n}u_{k}u_{j}{\frac {(r_{k}-r)(r_{j}-r)}{(1+r)^{2}}}\right].}


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

u ? -> = ( 1 + r ) ( ? ^ ) - 1 ( r -> ^ - r ) {\displaystyle {\vec {u^{\star }}}=(1+r)({\widehat {\Sigma }})^{-1}({\widehat {\vec {r}}}-r)}


where r -> ^ {\displaystyle {\widehat {\vec {r}}}} and ? ^ {\displaystyle {\widehat {\Sigma }}} 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.


Using Kelly Criterion For Trade Sizing - YouTube
src: i.ytimg.com


See also

  • Risk of ruin
  • Gambling and information theory
  • Proebsting's paradox

The Kelly Formula For Stock Investing: Growth-Optimized Money ...
src: healthywealthywiseproject.com


References


how to use Kelly criterion in sports betting - YouTube
src: i.ytimg.com


External links

Source of the article : Wikipedia

Comments
0 Comments