• General 29.07.2010 No Comments

    With the 2010/11 English Premier League Football season due to start in August, now is the perfect time to set up your fantasy team.

    My favourite fantasy site by a country mile is http://fantasy.premierleague.com/. It is the official fantasy game for the League, and it’s free to join. The aim of the game is to accrue as many points as possible based on individual player performance each week.

    The game allows you to select two goal keepers, five defenders, five midfielders, and three strikers. Each week you select a starting eleven, along with your substitute priority for the bench players. The starting eleven can take the formation of your choosing, within reasonable limits. Should any of your starting eleven not make their team sheet that week, the game will automatically make an appropriate substitution for you. I recommend you don’t fill your bench with cheap players, because you will frequently encounter weeks where certain teams aren’t participating due to UEFA fixtures, etc. You will also have weeks where some teams play twice to make up games for weather postponements.

    You select your players with a budget cap of 100.0 units, so your average player will cost 6.67 units. At the time of writing, the most expensive player is Frank Lampard, with a price tag of 13.0, while the cheapest players cost 4.0. As an additional restriction, you can select no more than three players from any Premier League team. Each week you choose one of your players to be the team captain. For that chosen player you receive double their number of points for that round.

    Based on demand and performance, player prices rise and fall during the season. Typically, my team will end the season with a combined value of 110.0. You can make changes to your squad each round. Participants are given one free transfer each week, and two wildcards that enable you to make unlimited changes without incurring any points penalties. One wildcard can be used whenever you want, and the other can only be used during a certain window mid-season. If you transfer more than one player, and don’t use a wildcard, you are charged 4 points per additional transfer.

    The scoring system is one of the reasons I like this fantasy game. It is based on numerous statistics, which vary depending on the player’s position. Below is an outline of the point scoring.

    Action Points
    For playing in a game 1
    For playing at least 60 minutes in a game (includes playing points mentioned above) 2
    For each goal scored by your goalkeeper or defenders 6
    For each goal scored by your midfielders 5
    For each goal scored by your forwards 4
    For each goal assist 3
    For your goalkeeper / defender conceding 0 goals (must play at least 60 mins)    4
    For your midfielder conceding 0 goals (must play at least 60 mins) 1
    For every 3 shot saves made by your goalkeeper 1
    For every penalty save 5
    For every penalty miss -2
    Bonus points for the best players in a match 1-3
    For every 2 goals conceded by your goalkeeper or defenders -1
    For every yellow card -1
    For every red card (includes any yellow card points) -3
    For every own goal -2

     

    Halfway during the season all participants above a certain rank are placed into an FA Cup style tournament, where you are given a random opponent each week. The member with the highest score that weekend advances to the next round, and the loser is eliminated. I always seem to get a heavyweight first round in this tournament, but hopefully I can improve on that this season.

    You can create and join leagues with your friends, and you can monitor your global rank against all players. The global rank can be broken down by the team you support and the country you live in. In my best year, I made the top 50 for Australian members, although I haven’t achieved anything close to that in a while.

    So have a go, and best of luck! You can find some good squad selection tips with their resident pundit.

  • This post continues Part 3 of a series on the Kelly criterion and its application to sports betting. Part 1 provides an introduction to the Kelly criterion and a worked example. Part 2 provides a simple derivation. This post discusses fractional Kelly betting, where a fraction of the amount recommended by the Kelly criterion is placed on each bet.

    Why consider fractional Kelly betting?

    There are two popular criticisms of the Kelly criterion. The first concerns Kelly betting in general, and the second concerns the application of the Kelly criterion to sports betting.

    The first criticism is the roller-coaster ride that your account balance takes when you implement a Kelly strategy. The Kelly criterion can provide optimal bet amounts that exceed 50% of the account balance, which creates a high degree of volatility.

    The second criticism is that, when applied to sports betting, the Kelly criterion does not account for the uncertainty in your perceived probability of occurrence. Kelly betting can be applied to Blackjack with a high degree of certainty in the calculated probabilities. With sports betting, however, you may feel the probability of an outcome is 50%, but you do not know that with certainty. The true probability may lie between 40% and 60%, or even 20% and 80%. Applying the Kelly criterion without acknowledging the uncertainty in the probability can lead to ruin.

    These criticisms have led many practitioners to adopt fractional Kelly betting, also known as partial Kelly betting. It involves taking the bet amount recommended by the Kelly criterion and multiplying it by a certain fraction. This results in less volatile returns and a lower chance of the account balance hitting zero.

    The Kelly criterion formula revisited

    The Kelly criterion calculates the fraction, f, of the account balance that should be placed on a bet, given the available odds and your perceived probability of winning. The formula depends on how you express the betting odds, so two versions are presented below. Version A uses the decimal odds system that is popular in Australia. Decimal odds of 2.50 mean that if you win, a $10 bet would result in a $25 payout and a $15 profit. Version B uses the “b to 1″ odds system, where odds of “3 to 1″ mean that if you win, a $10 bet would result in a payout of $40 and a profit of $30.

    Version:

                         A                      B
    Formula:

               
    Variables:

          f = fraction of your bankroll to bet
    d = decimal betting odds

    p = probability of bet winning
    q = 1 – p = probability of bet losing

          f = fraction of your bankroll to bet
    b = “b to 1″ betting odds
    p = probability of bet winning
    q = 1 – p = probability of bet losing

    Fractional Kelly betting

    With fractional Kelly betting, you multiply f by a number between 0 and 1. Hence, if we use h as our multiplier, where 0 < h < 1, we now bet h*f of our account balance instead of f. The lower the value of h, the more conservative the strategy, because you are betting a smaller percentage of your account balance. For example, a quarter Kelly strategy, where h = 1/4, is more conservative than a half Kelly strategy, where h = 1/2. The graph below provides a stylized comparison of a full Kelly versus a half Kelly and a quarter Kelly. The graph has been drawn by simulating 100 bets with odds of 2.10 and a perceived probability of occurrence (which is modeled as being true) of 50%. Observe that the full Kelly criterion results in the most volatility, but is also expected to provide the highest long-term growth.

    How to implement fractional Kelly betting

    With full Kelly betting, the only ambiguous variable is your perceived probability, p, of an outcome occurring. The betting odds are known with certainty, and q is simply 1 – p. With fractional Kelly betting you now have the additional decision of how much to reduce f by. An aggressive strategy is to multiply f by a number close to 1, and a conservative strategy is to multiply f by a number close to zero.

    So how do you choose a value for h?

    A non-technical approach is to set an arbitrary value for h, say h = 0.25, and commence Kelly betting. If after a few hundred bets your strategy has enjoyed positive results, you could increase h to 0.30 for the next set of bets, and proceed in this manner until you find a value for h that you feel comfortable with.

    A more technical approach is to record for a few hundred bets over time:

    1. The betting odds
    2. Your perceive probability of occurrence
    3. The Kelly criterion value for f
    4. The result of that bet (win/lose)

    For an arbitrary value of h, simulate your portfolio performance had you bet h*f on these fixtures. Excel solver can be used to find the value of h that would have maximised your account balance growth over time. Alternatively, you could calculate the value of h that, in retrospect, would have provided a level of volatility that you feel comfortable with. This value of h could then be applied, and tweaked over time, as more betting data are recorded.

    Variable fractional Kelly betting

    While some practitioners use the same value of h for all bets, one alternative is to vary h depending on your confidence in the chosen value of p. Recall that the Kelly criterion calculates the optimal bet amount based on the disparity between p and the probability that is implied by the betting odds (1/d). By applying variable fractional Kelly betting, your bet amount will depend both on the disparity between p and 1/d, and your confidence in the chosen value for p.

    Let h equal the maximum fraction you would ever consider to multiply f by. If you set h = 1, then in some circumstances you are willing to implement full Kelly betting. Alternatively you may only wish to bet at most 0.5*f, hence h = 0.5.

    Now let the variable g represent your confidence in the chosen value of p, where 0 < g < 1. g = 0 equates to no confidence, and g = 1 represents full confidence. For each bet, calculate f and g, and bet the fraction f*h*g of your account balance. If you are absolutely certain in p, then g = 1, and you would bet your maximum fraction h*f.

    The weakness in this approach is it provides no guidance on how to set g. How do you measure the level of certainty in your perceived probability? You may be more confident in your knowledge of some sports than others, but how to you quantify that? If you use a betting tracker spreadsheet you could compare your historical performance across different sports. Stronger performance indicates that you are better able to assess the probabilities in that sport. One approach is to set g based on your performance percentile for that sport compared to the rest. For example, if you regularly bet on eleven sporting markets, then you could set g as follows.

    Sport Return    Rank    g  
    Super Rugby 3% 7 0.4
    Test Match Cricket 2% 8 0.3
    Premier League Football   8% 3 0.8
    Men’s Tennis 6% 4 0.7
    NBA Basketball 5% 5 0.6
    Women’s Tennis -3% 10 0.1
    Formula 1 -4% 11 0.0
    NCAA Basketball -1% 9 0.2
    NRL Line Betting 12% 1 1.0
    NRL Head to Head 11% 2 0.9
    AFL Line Betting 4% 6 0.4

     

    g has been calculated above as (11 – rank)/(11 – 1). Hence, for h = 0.5, you would bet 0.4*f on Premier League fixtures and 0.3*f on NBA fixtures. The value of h could be chosen using the methods outlined in the previous section.

    Coming up in Part 4

    The next post will provide further discussion and a critique of the Kelly criterion.

  • This post continues Part 3 of a series on the Kelly criterion and its application to sports betting. Part 1 provides an introduction to the Kelly criterion and a worked example. Part 2 provides a simple derivation. This post extends the Kelly criterion to incorporate the possibility of a refund. It is recommended that you read Part 1 and Part 2 before proceeding.

    Introduction

    In the Kelly betting framework, recall from Part 2 the variable p (the probability that an outcome will occur) and the variable q = 1 – p (the probability that the outcome will not occur). If you are betting on this outcome, you believe you will win with probability p, and lose with probability q.

    Note that q is defined as 1 – p to ensure that p + q = 1. This implies that no other outcome is possible: you either win or lose. There are, however, bets where refunds are a distinct possibility. In this case there are three possible outcomes and p + q < 1. This post will show that only a slight tweak to the Kelly criterion is required to incorporate the possibility of a refund.

    When are refunds a possibility?

    Refunds are a distinct possibility for sports such as:

    • Football (soccer)
      bet365 refunds all losing pre-match Correct Score, Half-Time/Full-Time and Scorecast bets in the event of a 0-0 draw.
    • Tennis
      Each bookmaker has it’s own policy, but Sportsbet, among others, refunds all bets if a player retires injured. Note that Betfair does not do this, which is something to keep in mind when comparing odds.
    • Boxing
      For example, Sportsbet refunded losing bets on the Green v Briggs bout.
    • Promotions
      For popular events bookmakers often run promotions where they refund certain losing bets in the event of a particular outcome. Some of these refunds are announced without warning. For the 2010 FIFA World Cup winner, Sportsbet refunded all losing bets on Australia because they felt the red cards Australia received were harsh.

    Notation

    This post continues with the notation used in Part 1 and Part 2. Let:

    • W0 = your account balance before you make a bet
    • Wn = your account balance after making n bets
    • f = the fraction of your bankroll (account balance) to bet on a particular outcome
    • d = the decimal betting odds for that outcome (2.50 means a winning $10 back bet would have a payoff of $25 and a profit of $15)
    • p = your perceived probability of that outcome occurring (where 0 < p < 1)
    • q = your perceived probability of that outcome not occurring (where 0 < q < 1 and p + q < 1)

    A new variable is introduced in this post. Let:

    • j = your perceived probability of receiving a refund (where 0 < j < 1 and p + q + j = 1)

    Incorporating the possibility of a refund

    In the Kelly betting framework we now have three possible outcomes:
    - win (d-1)f with probability p
    - lose f with probability q
    - have the bet refunded with probability j

    The account balance after making one bet can be one of three possible values:
    - W1 = W0(1 + f*(d-1)) with probability p
    - W1 = W0(1 – f) with probability q
    - W1 = W0 with probability j

    Recall that in Part 2 the exponential rate of growth of the gambler’s capital was expressed as:

    (1/n)*log(Wn/W0) = log[(1 + f*(d-1))k(1 – f)(n-k)]1/n

    The blue text represents the gross return for a win and the red text represents the gross return for a loss. Note that in the event of a refund, the account balance is unchanged, so W1 = W0 and W1/W0 = 1. If, after n bets, you had k wins, m refunds, and n-k-m losses, then this expression can be modified to be:

    (1/n)*log(Wn/W0) = log[(1 + f*(d-1))k(1 – f)(n-k-m)(1)m]1/n

    The number 1, raised to any power, is simply 1 so this expression simplifies to:

    (1/n)*log(Wn/W0) = log[(1 + f*(d-1))k(1 – f)(n-k-m)]1/n

    Note that for a sufficiently large n, (n-k-m)/n = q. If you plug the expression above into the workings in Part 2 and solve for f, you get:

    Note that when q + p = 1 this expression simplifies to the standard Kelly criterion discussed in Part 1 and Part 2. Also note that the denominator term (p + q) could be rewritten (1 – j), where j is the probability of a refund.

    The formula above uses the decimal odds system that is popular in Australia. For those who are more familiar with the “b to 1″ betting odds used in other literature, the corresponding formula is:

    Interpretation

    The impact of a potential refund depends on whether it reduces the possibility of winning, reduces the possibility of losing, or both. With football betting on bet365, the 0-0 draw refund has no impact on the possibility of winning, but it does reduce the possibility of losing, because the refund only applies to losing bets.

    In tennis betting, if the bookmaker voids and refunds all bets in the event of injury, this reduces the probabilities of winning and losing because both players have the potential to retire injured. Having said that, it’s not uncommon for players to pick up a an injury during a tournament, but continue playing. You may feel that the injured player is more likely to withdraw hurt than their opponent. This would have an asymmetric impact on your perceived probabilities of winning and losing. Another point to consider is, for someone playing with an injury, there may be a higher chance they will retire hurt if they are losing the match, than if they are winning.

    The Arsenal vs Chelsea fixture revisited

    Recall the hypothetical Arsenal vs Chelsea fixture used in Part 1. To recap, the odds are as follows, with your perceived probabilities of occurrence shown in brackets:

    Full-time result:

    Arsenal: 2.60 (p = 20% chance of occurring)
    Chelsea: 2.65 (p = 50% chance of occurring)
    Draw: 3.25 (p = 30% chance of occurring)

    Based on the standard Kelly criterion, you should bet
    f = [0.5(2.65 - 1) - 0.50]/(2.65 – 1) = 0.197 = 19.7% of your account balance on Chelsea.

    Now pretend the bookmaker refunds all losing full-time bets in the event of a 0-0 draw. Suppose you believe there is a 5% chance of a 0-0 draw, and you believe the outcome probabilities are now:

    • Arsenal: 2.60
      p = 20% chance of winning, q = 75% chance of losing, j = 5% chance of a refund
    • Chelsea: 2.65
      p = 50% chance of winning, q = 45% chance of losing, j = 5% chance of a refund
    • Draw: 3.25
      p = 30% chance of winning, q = 70% chance of losing, j = 0% chance of a refund

    Based on the Kelly criterion, after adjusting for the possibility of a refund, you should bet
    f = [0.5(2.65 - 1) - 0.45]/[(2.65 – 1)(0.5 + 0.45)] = 0.239 = 23.9% of your account balance on Chelsea.

    The optimal bet size has increased in this example because the perceived probability of losing has dropped.

    Coming up in Part 3d

    Part 3d will discuss fractional Kelly betting.

  • Sportsbet has launched a $20,000 Super Bonus Prize pool for 1st Goal/Try Scorer (combined) winners this weekend.

    To be eligible, place a $5 wager (or more) on the 1st goal or 1st try scorer (combined) market for any AFL/NRL match this weekend. If your player wins then you’ll share in the $20,000 free bet pool. As a further bonus, if your player also scores the last goal or try of the match, your bonus prize will be doubled. Any doubled prizes will be paid in addition to the $20,000 bonus pool.

    Before you get any ideas about placing a bet on every player, the promotion only applies to the first wager you make for each fixture. Any additional wagers on the same fixture won’t be eligible to win. Having said that, if you make winning bets on two or more AFL/NRL matches, you are eligible for multiple bonus prizes.

    To give you some idea of how much you could win, during the 2010 FIFA World Cup this promotion was run a number of times. The largest prize per winning wager was $834, and the average prize per winning wager was $45.

  • General 22.07.2010 No Comments

    The sports wagering industry fears that Briggs’ first round loss to Danny Green last night was premeditated.

    Paul Briggs went down 29 seconds into the first round of his IBO cruiserweight title fight with Danny Green last night in Perth. Centrebet spokesman Neil Evans called the outcome “highly, highly dubious” after hundreds of bets were made on a first or second-round knockout in the morning and afternoon prior to the fight. He added, ”we’ve never ever in the history of boxing seen so much money go on a specific decision outcome, as in a first or second-round knockout.” One punter bet $50,000 with Centrebet, which is almost unheard of for such a high odds bet. Centrebet odds started at around 5.00 but fell to 2.00 as a result of heavy betting.

    Dubious betting activity was also recorded on Sportsbet. Odds for Green to knock-out Briggs in the first round shortened from 7.00 to 2.00 after a ten minute period of significant betting activity. One punter tried to place $10,000 on a first-round knockout, but was turned down because Sportsbet deemed the bet to be suspicious.

    Danny Green appeared to be furious at the result, and apologised to the crowd. He promised that Paul Briggs would not be paid for his appearance.

    Apparently Sportsbet will pay all winning bets and refund all losing bets, which is disappointing. I think that for suspicious activity on any level, bookmakers should refund all bets, win or lose.

    Betting scandals are by no means new to sport. In 2007 Davydenko retired hurt from a match against Martin Vassallo Arguello . Prior to his retirement a huge number of bets on his opponent poured into Betfair. Over ten times the usual amount had been bet on the fixture, which forced Betfair to void all bets. Some other recent betting controversies include horse racing in Australia, sumo wrestling in Japan, Starcraft in Korea, and football in Europe.

    There are numerous opponents to online sports betting, and scandals such as this don’t help the industry’s cause. I hope the sports betting industry and the IBO get to the bottom of what happened, and punish anyone who is proved to be involved in cheating. Ideally, every punter who placed $10,000 or more on the fixture should be questioned. The precedent should be set that it’s not worthwhile to attempt results rigging. If the only outcome is some bets are refunded, then this will only send the message that you need to smarter next time you cheat.

    Update

    Boxing writer and commentator Paul Upham has defended Briggs, saying the knock he took to the head was actually worse than it looks. Even if he’s right, it will be interesting to see everyone’s interpretation of the betting activity prior to the fight.

    Sources:
    - SMH – ‘He’s a dog and he’s not getting paid’
    - SMH – Briggs’ 29-second fiasco has bookies fearing a fix
    - BBC – Davydenko faces betting inquiry
    - Wikipedia – Betfair

  • This post continues Part 3 of a series on the Kelly criterion and its application to sports betting. Part 1 provides an introduction to the Kelly criterion along with a worked example. Part 2 provides a simple derivation of the Kelly criterion. Part 3a extends the Kelly criterion to incorporate backing and laying bets using an exchange such as Betfair. This post extends the Kelly criterion to account for the time value of money. It is recommended that you read Part 1 and Part 2 before proceeding, if you have not done so already.

    What is the time value of money?

    The time value of money is the concept that a dollar today is worth more than a dollar in the future. If someone offered you a choice between receiving $1,000 now and receiving $1,000 in a year’s time, you would prefer to receive the money today. This is because even if you don’t need the money now, you can earn interest on the $1,000 between now and next year.

    The time value of money depends on two variables: time and interest rate. The greater the time until you receive a payment, the less that payment is worth. This is because you have to forgo additional time that the money could be sitting in an interest bearing account. Also, the greater the interest rate, the less the payment in the future is worth. This is because money in a high interest account would have grown by a larger amount in the meantime had you received it now.

    In essence, the time value of money relates to the opportunity cost of the funds. By receiving $1,000 in a year’s time instead of today, you have lost the opportunity to earn interest on that money in the meantime.

    Visit Wikipedia to learn more about the time value of money.

    The implication of time in sports betting

    With sports betting, punters have access to a wide range of betting options for events around the globe. These bets can vary drastically in terms of the time it takes for settlement to occur. Settlement is the process of determining whether your bet has won or lost. Obviously, settlement can only occur after the conclusion of the sporting fixture. Typically, most bookmakers settle your bets within minutes of the end of the sporting event. For some events, settlement occurs within a few seconds of the conclusion of the fixture.

    Below is a selected list of betting options and their associated settlement dates. Note that this post was written at 2pm on July 21, 2010.

    Event Settlement date Approximate time (years)
    Forex Market Movement 5 minutes or less 9.51E-06
    ATP Atlanta Tennis Fixture 6:00 AM July 22nd 2010      0.0018
    Tour de France winner July 25th 2010 0.011
    Tri Nations Winner September 11th 2010 0.14
    Rugby World Cup 2011 Winner      Octboer 23rd 2011 1.26
    FIFA World Cup 2014 Winner July 13th 2014 3.98

     

    For fixtures that settle within the next week or so, the time value of money can be safely ignored. However for tournaments that are held in upcoming years, the time value of money is an important consideration.

    This post will illustrate that for fixtures that settle in the distant future, the optimal bet amount drops. The conclusion is that you should bias your betting towards fixtures that conclude sooner rather than later.

    Notation

    This post continues with the notation used in Part 1 and Part 2. Let:

    • W0 = your account balance before you make a bet
    • Wn = your account balance after making n bets
    • f = the fraction of your bankroll (account balance) to bet on a particular outcome of a sporting event
    • d = decimal betting odds for that outcome (2.50 means a winning $10 back bet would have a payoff of $25 and a profit of $15)
    • p = your perceived probability of an outcome occurring (where 0 < p < 1)
    • q = 1 – p = probability of that outcome not occurring

    We will introduce some new notation for this post. Let:

    • r = the annual interest rate that you could get if you invest your funds elsewhere
    • t = the time, measured in years, between now and the settlement of the bet

    Calculating the time value of money

    If you were given the choice of receiving $1,000 today or $x,xxx in three year’s time, what future figure would make you indifferent between your two options? Most people would turn down $1,001, and most would accept $3,000. If you could invest $1,000 at an interest rate of 5%, then you would have $1,000(1.05) = $1,050 in a year’s time. If you reinvested that figure for the second year you would have $1,050(1.05) = $1,102.50 in two years time. If you reinvested that figure for the third year you would have $1,102.50(1.05) = $1,157.63 in three years time. This means you would have to be offered at least $1,157.63 to consider taking the future amount rather than the $1,000 today.

    We can recalculate this figure as $1,000(1.05)3 = $1,157.63. More generally, let PV (present value) denote a payment today, and let FV (future value) denote the future payment that is of equivalent value to the PV. We can calculate the FV as FV = PV(1+r)t. If we knew the FV and wanted to know the PV, we could calculate PV = FV/(1+r)t. Note that this is identical to the mathematical statement PV = FV(1+r)-t.

    For those who have a stronger mathematics background, you may prefer to use an exponential interest rate to be consistent with the Kelly criterion’s objective of maximizing the exponential growth rate of your sporting account balance. In this case FV = PV*ert and PV = FV*e-rt. Note that the value for r in this formula will be slightly lower than that used in the previous paragraph, because it is the continuously compounded rate.

    To make the workings understandable for a greater audience, PV = FV/(1+r) will be used henceforth. Simply substitute this expression with PV = FV*e-rt if you wish instead to use a continuously compounded rate.

    The Kelly criterion revisited

    Recall that in Part 2 the exponential rate of growth of the gambler’s capital is expressed as:

    (1/n)*log(Wn/W0) = log[(1 + f*(d-1))k(1 – f)(n-k)]1/n

    The blue text represents the gross return for a win and the red text represents the gross return for a loss. Let $x denote the dollar value of a bet that you make. In terms of cash flow timings, a losing bet can be treated as occuring immediately. You make your bet of $x, which is taken from your account balance today and never returned. If you make a winning bet, you have $x taken from your account balance today and $x(d-1) returned to your account balance at some point in the future, where d are the decimal odds of your bet. You can think of this as an investment. You deposit $x now and receive $x(d-1) in the future. This payment in the future (FV) must be discounted to get our PV using the formula PV = FV/(1+r).

    When we take into account the time value of money, the gross return for winning becomes (1 + f*(d-1)/(1+r)t)k, while the gross return when your bet loses remains unchanged. If you plug this expression into the workings in Part 2 and solve for f, you get:

    The formula above is for the decimal odds system that is popular in Australia. For those who are more familiar with the “b to 1″ betting odds used in other literature, the corresponding formula is:

    Observe that as r and t increase, the value of f decreases.

    The Arsenal vs Chelsea fixture revisited

    Recall the hypothetical Arsenal vs Chelsea fixture that was used in Part 1. To recap, the odds are as follows, with your perceived probabilities of occurrence shown in brackets:

    Full-time result:

    Arsenal: 2.60 (pA = 20% chance of occurring)
    Chelsea: 2.65 (pC = 50% chance of occurring)
    Draw: 3.25 (pD = 30% chance of occurring)

    Based on the Kelly criterion, you should bet
    f = [0.5(2.65 - 1) - 0.50]/(2.65 – 1) = 0.197 = 19.7% of your account balance on Chelsea.

    We will now recalculate the optimal bet amount assuming that the fixture will take place: in (A): 3 day’s time, (B): 30 day’s time, (C): 1 year’s time, and (D): 3 year’s time. Assume you can get 5% per annum in an interest bearing account. Using the formula above we get:

    (A): t = 3/365 = 0.008219
    (B): t = 30/365 = 0.08219
    (C): t = 1
    (D): t = 3

    f(A) = 0.5 – 0.5(1.050.008219)/1.65 = 0.197
    f(B) = 0.5 – 0.5(1.050.08219)/1.65 = 0.196
    f(C) = 0.5 – 0.5(1.051)/1.65 = 0.182
    f(D) = 0.5 – 0.5(1.050.008219)/1.65 = 0.149

    Hence, for fixtures within the next month or so, you can pretty much ignore the time impact of money unless you are making substantially large bets. However, for events that conclude more than a year from now, the time value of money becomes an important consideration.

    You may find that your optimal bet size drops below zero, meaning you shouldn’t make a bet at all. Consider the 2014 FIFA World Cup. You can get odds of 4.50 with bet365 for Brazil to win the tournament. Suppose you believe that Brazil has a 1 in 4 chance of winning. Ignoring the time value of money, you would calculate your optimal bet as:

    f = [(0.25)(4.50 - 1) - 0.75]/(4.50 – 1) = 0.036

    This means you would bet 3.6% of your account balance on Brazil to win the tournament.

    However, if you consider the time value of money, where t = 3.98 and r = 5%, your optimal bet size becomes:

    f = 0.25 – 0.75*1.053.98/3.5 = -0.01

    Hence, if the time value of money is taken into account, you would chose not to place a bet on Brazil.

    Coming up in Part 3c

    The next post will provide an extension to the Kelly criterion when refunds are a distinct possibility. For example, bet365 refunds losing football (soccer) bets in the event of a 0-0 draw.

Bet with the Best!
  • This post is Part 3 of a series on the Kelly criterion and its application to sports betting. Part 1 provides an introduction to the Kelly criterion along with a worked example. Part 2 provides a simple derivation of the Kelly criterion. Part 3 in this series provides some extensions to the Kelly criterion. This post extends the Kelly criterion to incorporate backing and laying bets using an exchange such as Betfair. It is recommended that you read Part 1 and Part 2 before proceeding, if you have not done so already.

    What is backing and laying?

    With standard bookmakers you can only bet for an outcome to occur. Because Betfair is an exchange, rather than a bookmaker, you can bet both for and against sporting outcomes.

    If you ‘back’ a bet on an outcome, you are betting that the outcome will happen. For example you could back a bet on Federer to win Wimbledon. If the odds are 3.50, a $10 bet would result in a $25 profit if he wins, and a $10 loss if he doesn’t.

    If you ‘lay’ a bet against an outcome, you are betting that the outcome will not happen. For example you could lay a bet on Federer to win Wimbledon. If the odds are 3.50, a $10 bet would result in a $25 loss if he wins, and a $10 profit if Federer doesn’t win. Essentially, when you lay a bet, you act as the bookmaker. You get to keep the other punter’s money if they lose, but have to pay them at the agreed odds if they win.

    The Kelly criterion is designed for making ‘back’ bets. According to the formula, you would not make a bet if f < 0. This post adjusts the Kelly criterion to account for Betfair commissions. It also provides the corresponding formula for a lay bet.

    Betfair commissions

    Unlike standard bookmakers, who incorporate their fees directly into the odds themselves, Betfair charges a commission fee to the winner of each bet. The commission fee is calculated as a percentage of your net winnings (profit) as follows:

    Commission = (market base rate) * (1 – discount rate)

    The market base rate is typically 5%. The discount rate ranges between 0% and 60%, depending the level of your account activity. The more bets you make, the greater the discount. A discount rate of 60% corresponds to a commission of 2%, hence the commission fee charged by Betfair ranges between 2% and 5% of your net winnings.

    Henceforth we will denote the commission fee (as a percentage of your net winnings) as c.

    Notation

    This post continues with the notation used in Part 1 and Part 2. Let:

    • W0 = your account balance before you make a bet
    • Wn = your account balance after making n bets
    • f = the fraction of your bankroll (account balance) to bet on a particular outcome of a sporting event
    • d = decimal betting odds for that outcome (2.50 means a winning $10 back bet would have a payoff of $25 and a profit of $15)
    • p = your perceived probability of an outcome occurring (where 0 < p < 1)
    • q = 1 – p = probability of an outcome not occurring

    This post will refer to the hypothetical Arsenal vs Chelsea fixture that was used in Part 1. To recap, the odds are as follows, with your perceived probabilities of occurrence shown in brackets:

    Full-time result:

    Arsenal: 2.60 (pA = 20% chance of occurring)
    Chelsea: 2.65 (pC = 50% chance of occurring)
    Draw: 3.25 (pD = 30% chance of occurring)

    For simplicity’s sake, it is assumed that due to the high liquidity of the betting market, the lay odds equal the back odds for each outcome. In reality, the lay odds are always slightly above the back odds. The more popular (and liquid) the market, the closer the back and lay odds are to each other.

    Example odds in a popular market:

    Example odds in an unpopular market:

    The Kelly criterion for backing a bet

    Recall that in Part 2 the exponential rate of growth of the gambler’s capital is expressed as:

    (1/n)*log(Wn/W0) = log[(1 + f*(d-1))k(1 – f)(n-k)]1/n

    The blue text represents the gross return for a win and the red text represents the gross return for a loss. In Betfair with a commission fee of c, the gross return for winning becomes (1 + f*(d-1)(1-c))k, while the gross return when your bet loses remains unchanged (no commissions are charged to the loser). If you plug this expression into the workings in Part 2 and solve for f, you get:

    The formula above is for the decimal odds system that is popular in Australia. For those who are more familiar with the “b to 1″ betting odds used in other literature, the corresponding formula is:

    Note that for c = 0, the above formulas collapse to the original Kelly criterion used in Part 1 and Part 2 of this series. By taking the derivative of the expression for f with respect to c you will find that as c increases, f decreases. This is because the expected payoff for the bet drops as the commission rises, which makes the bet less worthwhile. Recall the example from Part 1:

    Arsenal: fA = [0.2(2.6 – 1) – 0.80]/(2.6 – 1) = –0.300
    Chelsea: fC = [0.5(2.65 – 1) – 0.50]/(2.65 – 1) = 0.197
    Draw: fD = [0.3(3.25 – 1) – 0.70]/(3.25 – 1) = –0.011

    If these odds were offered by Betfair, we need to adjust them for the commission fee using the formula presented above. For a commission fee of 5% the figures become:

    Arsenal: fA = [0.2(2.6 – 1)(1 – 0.05) - 0.80]/((2.6 – 1)(1 – 0.05)) = –0.326
    Chelsea: fC = [0.5(2.65 – 1)(1 – 0.05) – 0.50]/((2.65 – 1)(1 – 0.05) = 0.181
    Draw: fD = [0.3(3.25 – 1)(1 – 0.05) – 0.70]/((3.25 – 1)(1 – 0.05) = –0.027

    Now you would bet 18.1% of your account balance on Chelsea instead of 19.7%.

    The Kelly criterion for laying a bet

    When you lay a bet in Betfair you receive the other punter’s bet as a payout if the outcome does not occur, but you have to pay the punter at the agreed odds if the outcome does occur. As before, let p denote your perceived probability of the outcome occurring. In this case, you will lose the bet if the outcome does occur, and win the bet if it doesn’t.

    Your account balance if you win will be W0(1 + f*(1-c)), while your account balance if you lose will be W0(1 – f*(d-1)).

    Note that we must place the following restriction on f: 0 < f*(d-1) < 1, or equivalently, 0 < f < 1/(d-1). This prevents losing an amount that is greater than your account balance. You can think of this as your budget constraint. This contrasts with the budget constraint for backing an outcome: 0 < f < 1. Note that for a low odds bet of 1.01 and an account balance of $100, you could lay a bet amount up to $10,000, which is more than your account balance. This is because your total potential liability is ($10,000)(1.01 - 1) = $100. In contrast, for high odds of 101.00, the maximum you could lay for this bet is $1, which is far lower than your account balance of $100. We use < rather than < for the upper limit to avoid the possibility of your account dropping to zero.

    After n bets, k of which result in the outcome occurring (a loss for you), and (n-k) of which result in the outcome not occurring (a win for you), your account balance will be:

    Wn = W0(1 – f*(d-1))k(1 + f*(1-c))(n-k)

    We can express the exponential rate of growth of the gambler’s capital as:

    G = (1/n)*log(Wn/W0) = log[(1 - f*(d-1))k(1 + f*(1-c))(n-k)]1/n

    Setting the derivative of dG/df equal to zero and solving for f gives:

    The formula above is for the decimal odds system. For those who are more familiar with the “b to 1″ betting odds used in other literature, the corresponding formula is:

    If the above workings are difficult to follow, I recommend re-reading Part 2 of this series.

    Referring back to the Arsenal vs Chelsea example, in the absence of commission fees you would calculate f as :

    Arsenal: fA = [0.8 – 0.2*(2.6 – 1)]/(2.6 – 1) = 0.300
    Chelsea: fC = [0.5 – 0.5*(2.65 – 1)]/(2.65 – 1) = –0.197
    Draw: fD = [0.7 – 0.3*(3.25 – 1)]/(3.25 – 1) = 0.011

    Note that these values are the exact opposites in sign of the corresponding figures for back bets in the absence of commission fees. For a commission fee of 5%, you would calculate f as:

    Arsenal: fA = [0.8(1 – 0.05) 0.2*(2.6 – 1)]/[(2.6 – 1)(1 – 0.05)] = 0.289
    Chelsea: fC = [0.5(1 – 0.05) – 0.5*(2.65 – 1)]/[(2.65 – 1)(1 – 0.05)] = –0.223
    Draw: fD = [0.7(1 – 0.05) – 0.3*(3.25 – 1)]/[(3.25 – 1)(1 – 0.05)] = –0.005

    Based on these figures you would choose to lay a bet against Arsenal using 28.9% of your account balance. It should be immediately noted that in doing so, it isn’t 28.9% of your balance that is at risk. If Arsenal fails to win, you would receive a profit equal to 28.9%(1 – 0.05) = 27.7455% of your account balance. If Arsenal does win, you will lose (2.60 – 1)(.289) = 46.24% of your account balance. Hence, when making a lay a bet, the fraction (d-1)f of your account balance is at risk and unavailable to bet elsewhere.

    Should I back a bet or lay a bet?

    In the example fixture between Arsenal and Chelsea, based on the Kelly criterion, you could back Chelsea using 18.1% of your account balance, or you could lay a bet against Arsenal using 28.9% of your account balance. So which action should you take? Should you do both?

    Recall that the objective in Kelly betting is to maximise the exponential growth rate of your account balance. Let’s compare the expected exponential growth rate for:

    A: Making a back bet on Chelsea
    B: Making a lay bet against Arsenal
    C: Making a back bet on Chelsea and making a lay bet against Arsenal

    In formula form, your account balance for each strategy after each possible outcome is provided below.

    Outcome Arsenal Win Chelsea Win Draw
    Probability pA pC pD
    Option A Payoff W0(1 – fBC) W0[1 + (1-c)(dC-1)fBC] W0(1 – fBC)
    Option B Payoff W0[1 – (dA-1)fLA] W0[1 + (1-c)fLA] W0[1 + (1-c)fLA]
    Option C Payoff W0[1 – fBC – (dA-1)fLA] W0[1 + (1-c)(dC-1)fBC + (1-c)fLA] W0[1 – fBC + (1-c)fLA]

     

    Plugging in the values for our Arsenal vs Chelsea example gives:

    Outcome Arsenal Win Chelsea Win Draw
    Probability 0.2 0.5 0.3
    Option A Payoff W0(1 – 0.181) W0[1 + (0.95)(1.65)(0.181)] W0(1 – 0.181)
    Option B Payoff W0[1 – (1.6)(0.289)] W0[1 + (0.95)(0.289)] W0[1 + (0.95)(0.289)]
    Option C Payoff W0[1 – 0.181 – (1.6)(0.289)] W0[1 + (0.95)(1.65)(0.181) + (0.95)(0.289)] W0[1 – 0.181 + (0.95)(0.289)]

     

    Note that the numbers below will differ slightly to the values calculated using the rounded figures above. Solving gives:

    Outcome Arsenal Win    Chelsea Win   Draw
    Probability 0.2 0.5 0.3
    Option A Payoff W0(0.8190) W0(1.2838) W0(0.8190)
    Option B Payoff W0(0.5368) W0(1.2750) W0(1.2750)
    Option C Payoff W0(0.3558) W0(1.5588) W0(1.0940)

     

    Let vi denote the profit/loss for outcome i. A win will be associated with vi > 0 and a loss will be associated with vi < 0. We can calculate the expected exponential growth rate for each strategy using the formula:

    W1/W0 = pA*log(1 + vA) + pC*log(1 + vC) + pD*log(1 + vD)

    Option A: W1/W0 = 0.2*log(0.8190) + 0.5*log(1.2838) + 0.3*log(0.8190) = 0.011
    Option B: W1/W0 = 0.2*log(0.5368) + 0.5*log(1.2750) + 0.3*log(1.2750) = 0.030
    Option C: W1/W0 = 0.2*log(0.3558) + 0.5*log(1.5588) + 0.3*log(1.0940) = 0.018

    In this example, option B of laying a bet against Arsenal provides the greatest expected exponential growth rate of the account balance. Hence based on the Kelly criterion and the above perceived probabilities of occurrence, you should make the single bet of laying 28.9% of your account balance against Arsenal to win.

    Coming up in Part 3b

    The next post will provide an extension to the Kelly criterion to account for the time value of money. Time is an important consideration when the bet settlement is in the distant future.

Bet with the Best!
  • This post is Part 2 of a series on the Kelly criterion and its application to sports betting. Part 1 of this series provides an introduction to the Kelly criterion along with a worked example. This post provides a simple derivation of the Kelly criterion, which will hopefully provide additional insight into the model. Please read Part 1 before proceeding, if you have not done so already.

    The proof below uses the decimal betting odds system. To use the “b to 1″ odds system, simply replace d with b + 1 in the workings below. Please note that this is not a rigorous proof. Readers should consult Kelly’s original paper for a formal derivation of the Kelly criterion.

    Notation

    We will continue with the notation used in Part 1. Let:

    f = the fraction of your bankroll (account balance) to bet on a particular outcome of a sporting event (where 0 < f < 1)
    d = decimal betting odds for that outcome (2.50 means a winning $10 bet would have a payoff of $25 and a profit of $15)
    p = your perceived probability of the bet winning (where 0 < p < 1)
    q = 1 – p = probability of the bet losing

    Furthermore, let W0 denote your account balance today, and let Wn denote your account balance after the settlement of n bets. Both W0 and Wn are in monetary units.

    Derivation

    Suppose you have an account balance, W0 and have the option of betting a on a sporting outcome that pays odds of d. You believe that the probability of this outcome occurring is p. What fraction, f, of your account balance should you place on this bet?

    If you win, your bet will result in a payout of f*W0*d. This corresponds of a profit of f*W0*(d-1). If you lose, then your bet results in a payout and profit of –f*W0, which is a loss.

    At the end of your bet, your new bankroll will be:

    W1 = W0 + f*W0*(d-1) = W0(1 + f*(d-1)) if you win, and:
    W1 = W0 – f*W0 = W0(1 – f) if you lose

    Now suppose you make the same bet two times. If you win both bets, you end up with:

    W2 = W0(1 + f*(d-1))(1 + f*(d-1)) = W0(1 + f*(d-1))2

    This is because your initial bankroll after the first bet is W1(1 + f*(d-1)) instead of W0.

    If you lose both bets, you end up with:

    W2 = W0(1 – f)(1 – f) = W0(1 – f)2

    This is because your initial bankroll after the first best is W1(1 – f) instead of W0.

    If you win the first bet and lose the second, you end up with:

    W2 = W0(1 + f*(d-1))(1-f)

    Note that this is the same value as if you had lost the first bet and won the second. This result holds true for any series of bets in this setup. If you win x times and lose y times, the order of the wins and losses is irrelevant to the final outcome.

    Observe that (1 + f*(d-1)) is the multiplier whenever a win occurs, and (1-f) is the multiplier whenever a loss occurs. So, after 8 games, if you won 5 times and lost three times you would end up with:

    W8 = W0(1 + f*(d-1))5(1 – f)3

    If we generalise this to playing the game n times and winning k times, we have:

    Wn = W0(1 + f*(d-1))k(1 – f)(n-k)

    When we divide both sides of the equation by W0, we have an expression for the growth of our initial bankroll.

    Wn/W0 =(1 + f*(d-1))k(1 – f)(n-k)

    This equation gives us the growth or our bankroll after n games. To calculate the growth in the bankroll per game, we need to raise both sides of the equation by a power of 1/n. To illustrate why we do this, suppose you invested $100 that returned $144 after two periods. If you wanted to know the growth rate per period, you would calculate it as follows:

    144 = 100*(1+growth)2
    144/100= (1+growth)2
    1.44 = (1 + growth)2

    We now raise both sides of the equation by 1/n, which is 1/2 in this case. This enables us to solve for the growth rate.

    1.441/2 = (1 + growth)2*1/2
    1.2 = (1 + growth)
    0.2 = growth
    growth = 20%

    Hence a growth rate of 20% results in a balance of $144 after two periods.

    Returning to our example:

    Wn/W0 =(1 + f*(d-1))k(1 – f)(n-k)
    (Wn/W0)1/n = [(1 + f*(d-1))k(1 – f)(n-k)]1/n

    The Kelly criterion seeks to maximise the exponential rate of growth per game, hence we seek to maximise the log of (Wn/W0)1/n. We achieve this by choosing the optimal fraction of our wealth to bet: f.

    In Kelly’s original paper he expressed “the exponential rate of growth of the gambler’s capital” as (pg. 919):

    Note that this is consistent with our workings because a known property of logs is log(Wn/W0)1/n = (1/n)*log(Wn/W0).

    (1/n)*log(Wn/W0) = log[(1 + f*(d-1))k(1 – f)(n-k)]1/n

    Let G = (1/n)*log(Wn/W0). Using known properties of logs we get:

    G = (1/n)log[(1 + f*(d-1))k(1 – f)(n-k)]

    G = (1/n)[k*log(1 + f*(d-1)) + (n-k)*log(1 – f)]

    Anyone who remembers their calculus will recall that if we seek to maximise a function by choosing the optimal value for f, then we need to take the first derivative of the function with respect to f, and set it equal to zero.

    Note that if our perceived probability p of success is true, then in the limit as n approaches infinity, we have p = k/n and q =(n-k)/n. Recall that k is the number of successes out of n games, and (n-k) is the number of failures out of n games.

    Noting that p + q = 1 and solving for f gives:

    Recall that this solution is for the decimal odds system that is popular in Australia. If you use the "b to 1" odds system then the corresponding formula is.

    You can take my word for it that this value for f corresponds to a unique maximum for G(f) on [0,1). A formal proof of this can be found here.

    Note that if f < 0, then you would anticipate a loss by placing a bet at the available odds. Hence in this circumstance you would bet nothing, and the optimal fraction, f, equals 0. However if you had a Betfair account you may choose to lay a bet against the outcome, although you would have to recalculate f using a model that pays odds of 2.00 if the outcome does not occur, and costs you the lay odds if the outcome does occur. This extension of the Kelly criterion will be discussed in Part 3 of this series.

    Coming up in Part 3

    Part 3 will provide some extensions to the Kelly criterion. At this stage I may actually break it down into a number of posts. The extensions will be:
    - 3a – the Kelly criterion for lay bets in Betfair
    - 3b – the Kelly criterion that accounts for the time value of money
    - 3c – the Kelly criterion when refunds are a distinct possibility
    - 3d – fractional Kelly betting

    Sources

Join Sportingbet Australia
  • In an earlier post I showed how to determine whether to place a bet on a particular sporting outcome. While the post discussed whether to bet, it didn’t determine how much to bet.

    This post will serve as the first of a series to discuss the Kelly criterion. They Kelly criterion is a formula used to determine how much of your money to place on a particular gamble. The formula was derived by J.L. Kelly, Jr in 1956. The formula has a number of applications, one of which is sports betting.

    This post provides an introduction to the Kelly criterion. At this stage, my intention for the rest of this series is as follows:
    - Part 2 will provide a simple derivation of the formula
    - Part 3 will discuss some extensions to the model
    - Part 4 will provide further discussion and a critique of the model

    The formula

    The formula calculates the fraction, f, of your account balance that you should place on a bet, given the available odds and your perceived probability of winning. The formula depends on how you express the betting odds, so I have provided two versions below. Version A uses the decimal odds system that is popular in Australia. Decimal odds of 2.50 mean that if you win, a $10 bet would result in a $25 payout and a $15 profit. Version B uses the “b to 1″ odds system, where odds of “3 to 1″ mean that if you win, a $10 bet would result in a payout of $40 and a profit of $30.

    Version:

                         A                      B
    Formula:

               
    Variables:

          f = fraction of your bankroll to bet
    d = decimal betting odds
    p = probability of bet winning
    q = 1 – p = probability of bet losing
          f = fraction of your bankroll to bet
    b = “b to 1″ betting odds
    p = probability of bet winning
    q = 1 – p = probability of bet losing

     

    The betting odds are observable and easy to obtain. The key variable in this formula is the probability, p, of the bet winning. Observe that q is simply 1 – p. So if the probability of winning is 60%, then the probability of losing must be 40%. Note that this ignores the chance of a refunded bet. If you play around with the formula you will find that the greater your perceived odds of winning, relative to those implied by the bookmaker, the larger the percentage of your account you should bet. The probability implied by the bookmaker for a particular outcome is the inverse of the decimal odds. For example, 2.50 odds imply a 1/2.5 = 40% chance of winning.

    A worked example

    The example below uses the decimal odds system. To obtain b, if that’s what your most comfortable using, simply subtract 1 from d.

    Suppose you observe the following odds for the football game between Arsenal and Chelsea.

    Full-time result:
    Arsenal: 2.60
    Chelsea: 2.65
    Draw: 3.25

    You take a look at the current form of the two sides, and believe the probabilities of the respective outcomes are as follows:

          p     q
    Arsenal     20%   80%
    Chelsea   50%   50%
    Draw   30%   70%
        ——-    
    Total   100%    

     

    Hence, in your opinion, there is a 20% chance of Arsenal winning, a 50% chance of Chelsea winning, and a 30% chance of a draw.

    Note that the sum of p an q for each outcome is 100%. Also note that the sum of the values for the p’s also equals 100%. Using the Kelly criterion, you calculate the optimal fraction of your wealth to bet on each outcome as follows:

    Arsenal: fA = [0.2(2.6 - 1) - 0.80]/(2.6 – 1) = -0.300
    Chelsea: fC = [0.5(2.65 - 1) - 0.50]/(2.65 – 1) = 0.197
    Draw: fD = [0.3(3.25 - 1) - 0.70]/(3.25 – 1) = -0.011

    Because the fractions fA for Arsenal and fD for the Draw are below zero, you would not bet on these outcomes. The fraction, fC, for Chelsea is a positive value of 0.197. This means you should bet 19.7% of your betting account balance on Chelsea to win. If your account balance is currently $200, then you should place a $39.40 bet on Chelsea.

    Note that if your probabilities for Arsenal, Chelsea and a draw were 35%, 35% and 30%, respectively. Then you would not make any bet on this event. Plug the corresponding probabilities into the formula to verify this result for yourself.

    Coming up in Part 2

    This post simply provides the formula and illustrates how to use it. The derivation of the formula will be discussed in Part 2. To give you some idea of the methodology, the Kelly criterion aims to maximise the log of the expected growth rate of your account balance.

    Sources: