#### Following the discussion of Randomness in sporting outcomes, Joseph Buchdahl is taking the analysis of the factor of luck to the next level. Find out how randomness can influence your betting performance and how you can measure it by using Excel.

The Monte Carlo method relies on repeated random sampling to obtain numerical outputs when other mathematical approaches would prove to be too complicated. They are particularly useful for bettors less familiar with traditional statistical testing methods as they require little mathematical knowledge.

Dominic Cortis has already discussed how it might be applied to sports prediction, considering a specific example of forecasting the Formula 1 championship. Here, I’m going to use it to investigate how I might expect my betting performance to vary as a consequence of chance.

#### Analysing your betting performance

A betting history from my wisdom of crowds methodology contains 1,521 wagers (from the 2015/16 football season) showing a profit over turnover to level stakes of 0.76%. How do I know whether this represents a par, lucky or unlucky performance?

The first step is to compare this to expectation. Implicit in the methodology is the estimation, for each bet, of the fair betting odds and consequently the amount of value expectation held. For example, for fairly priced odds of 2.00, a published betting price of 2.10 would offer me a value expectation of 5% or 1.05 (calculated by 2.10/2.00).

A fair price of 2.00 implies a win probability of 50%. If I win 50 out of 100 such bets, making a profit of $1.10 for each, whilst losing 50 bets for a loss of -$1 each, my net profit is $5 (or 5% of a $100 turnover). Similarly, published odds of 3.50 for a fair price of 3.00 would hold a value expectation of 16.67%. The table below shows the selections my betting system identified for Wednesday 20^{th} April 2016.

Bet |
Best market odds |
Estimated Fair Odds* |
Value expectation |

Heerenveen v Ajax Away | 1.75 | 1.61 | 8.58% |

Heracles v Feyenoord Away | 2.00 | 1.95 | 2.52% |

Juventus v Lazio Away | 7.50 | 7.29 | 2.86% |

Sassuolo v Sampdoria Away | 4.30 | 4.16 | 3.32% |

Utrecht v Graafschap Away | 7.00 | 6.48 | 7.99% |

West Ham v Watford Home | 1.65 | 1.58 | 4.77% |

*** Pinnacle odds with the margin removed**

For a complete betting history it is easy enough to determine the overall value expectation and the expected profit: simply calculate the average. For my history of 1,521 wagers, this was 4.04%, implying that if my betting system was behaving exactly as I had predicted, my expected profit would have been $61.45 from $1,521 wagered.

In reality, the history was showing a return of $11.61. Evidently, it had underperformed on account of bad luck – assuming, of course, my forecasting model was working as it should. The question is by how much. This is where Monte Carlo can help.

#### Running a Monte Carlo simulation in Excel

Running a Monte Carlo simulation in a software package like Excel is relatively straightforward:

- Calculate the expected probability of a win for each bet, expressed as a decimal between 0 and 1. This is simply the inverse of the fair odds.
- Use Excel’s RAND function to output a random number between 0 and 1 for each bet. To determine whether each bet wins or loses in our simulation, we simply ask Excel whether the random number associated with each bet is less than the expected win probability. If it is, we assign a level stakes profit equal to the odds – 1. If it’s not, we assign a level stakes loss of -1.
- Sum the individual profits and losses for all bets in the simulation to calculate the yield. For level staking, simply divide the profit total by the number of bets
- Use Excel’s Data Table function to refresh the random numbers for a specified number of simulations.

The first two steps for my bets on the 20^{th} April are shown below.

Bet |
Estimated Fair Odds |
Win probability |
Random number |
Profit |

Heerenveen v Ajax Away | 1.61 | 0.621 | 0.462 | $0.61 |

Heracles v Feyenoord Away | 1.95 | 0.513 | 0.150 | $0.95 |

Juventus v Lazio Away | 7.29 | 0.137 | 0.800 | -$1 |

Sassuolo v Sampdoria Away | 4.16 | 0.240 | 0.702 | -$1 |

Utrecht v Graafschap Away | 6.48 | 0.154 | 0.525 | -$1 |

West Ham v Watford Home | 1.58 | 0.633 | 0.533 | $0.58 |

Pressing the F9 key will recalculate all the random numbers for a completely new simulation and a new theoretical sample yield. We could manually make a note of the yield each time we run a new simulation, but if we want to do this hundreds or thousands of times, this will prove to be laborious and time consuming.

Thankfully, Excel offers us a quick and easy method to run many simulations in one go, by using its Data Table function. You will find this in Data > What If Analysis > Data Table:

- Calculate your yield for your sample in any free Excel cell as described in step 3 above.
- Next, highlight a number of cells which you wish to populate with yield values for new simulations along with a single column to the left.

- Next call up the Data Table in Excel. You will see a box like the one below. In the Column input cell, simply type a single cell reference. It can be any cell, provided it’s not one of your highlighted cells from the previous step.

- Click OK and watch Excel run its magic. The highlighted cells beneath your first one will be populated with new calculated yields, each one representing a single simulation run. In this example, I’ve produced 6 simulations, as shown below.

#### Measuring the effect of luck on your betting profits

Dr. Gerard Verschuuren has produced a very helpful YouTube tutorial describing this process in more detail. We can run as many simulations as we wish, although the larger the number the longer Excel will take to perform the calculations. For the purposes of this article, I have run 100,000 simulations (which took about 5 minutes).

The average yield was 4.05%, almost exactly the same as the value expectation for my betting history. However, there was a wide variation, from the worst performance of -12.23% to the best performance of 23.26%. Indeed, almost 17% of simulations actually returned a loss despite my betting history holding a theoretical value expectation of over 4%, whilst my actual yield of 0.76% could be expected to be surpassed on 78% of occasions.

In fact, with this data we could use Excel to calculate the probability of achieving any particular yield threshold, without the need to resort to any statistical testing. The Monte Carlo Method has done all that for us. The full distribution of 100,000 simulated yields is plotted in the chart below (with 0.1% increments along the x-axis). For those familiar with the normal distribution, you can see that it is an almost perfect match.

So now we have an answer to the original question. Assuming my betting system works as it should, how unlucky have I been? Well, 78% of the time I could have expected to have done better. In other words, I’ve been unlucky, but not drastically so.

Of course, if my actual yield had been, say, -5% or worse (which would be expected to happen on just 1% of occasions), I might start to wonder whether my betting system was actually flawed instead. The Monte Carlo Method, then, is clearly a useful tool to help with such subjective evaluations.

#### Flawed betting system vs. bad luck

Another key point to take away from this exercise is the influence bad luck can have on positive expectancy bettors over fairly sizeable betting histories. My history was over 1,500 bets in size and held a predicted expectation of over 4%. Despite this advantage, my Monte Carlo simulations demonstrated that I could still end up losing in over 1 in 5 occasions.

If you held a similar advantage with your betting strategy how would you be feeling after 1,500 bets and nothing to show for them: confident in your methodology, putting the underperformance down to bad luck, or losing faith in your whole approach?

One way to help resolve such a dilemma is to increase the sample size. Again, we can play with the Monte Carlo Method to see how things change when a betting history grows, As a thought experiment I increased my original 1,521 bets tenfold (simply by repeating the original sample of betting odds 9 additional times). Performing another 100,000-run simulation yielded the following figures:

- Average yield = 4.04%
- Lowest yield = -1.21%
- Highest yield = 10.17%
- Probability yield < 0% = 0.1%
- Probability yield > 0.76% = 99.3%

The new distribution of 100,000 simulations is shown below, superimposed over the original distribution for the original sample of 1,521 bets.

The obvious difference between the two samples is the size of the spread or range of possible yields, being much narrower for the larger betting history. Such an outcome is entirely predictable and is simply a consequence of the law of large numbers.

#### Assessing the Monte Carlo simulation results

The larger my betting history, the more probable it is that the actual performance will be closer to expectation, assuming, of course, that my prediction methodology is working as it should. The corollary is that, should I still be showing a yield of 0.76% or worse after over 15,000 bets, I would seriously begin to question whether it was.

Ultimately, the Monte Carlo Method will not be able to tell you definitively whether your betting system possesses anything beyond the influence of chance. Nevertheless, it does provide a useful tool to help guide you towards an informed judgement in that respect, whilst illustrating the range of possible outcomes you might reasonably be expected to witness within the confines of good and bad luck.

Source: pinnacle.com