Given n uncorrelated binary bets, the "Kelly-optimal allocation" is the set of weightings for each of the 2
-1 n-or-fewer-team parlays (where a single bet is considered a 1-team parlay) that can be created from the n-single bets, which maximizes the expected logarithm of the bankroll.
**) as the sum of the Kelly optimal weights for all m-team parlays made up of all bets included the set **
Code:
given:
k1 = 1%
k2 = 2%
k3 = 3%
k4 = 4%
k5 = 5%
κ(5,5,**1,2,3,4,5**)
= (weighting of the 5-team parlay as % of bankroll)
= k1*k2*k3*k4*k5
= 1%*2%*3%*4%*5%
= 0.0000012%
κ(5,4,**1,2,3,4**)
= (weighting of the 4-team parlay consisting of bets {1,2,3,4** as % of bankroll)
= k1*k2*k3*k4 - κ(5,5,**1,2,3,4**)
= 1%*2%*3%*4% - κ(5,5,**1,2,3,4,5**)
= 0.0000228%
κ(5,4,**1,2,3,5**)
= (weighting of the 4-team parlay consisting of bets {1,2,3,5** as % of bankroll)
= k1*k2*k3*k5 - κ(5,5,**1,2,3,5**)
= 1%*2%*3%*5% - κ(5,5,**1,2,3,4,5**)
= 0.0000288%
κ(5,3,**1,2,3**)
= (weighting of the 3-team parlay consisting of bets {1,2,3** as % of bankroll)
= k1*k2*k3 - κ(5,4,**1,2,3**) - κ(5,5,**1,2,3**)
= 1%*2%*3% - κ(5,4,**1,2,3,4**) - κ(5,4,**1,2,3,5**) - κ(5,5,**1,2,3,4,5**)
= 0.00054720%
etc.