R, Monte Carlo Method, Simulation, Machine Learning, Premier League.
sample function The sample function is one of the key functions that we are using. With the help of this function, we can set the probabilities for home (h), draw(d), away (a) outcomes. So if we set the sample size to 10000 with the arguments below we expect around 6000 home wins, 2000 draws, and