This code was made to simulate the chances of each match in round of sixteen of the UEFA Champions League 2020-21.
You can see the predictions of the matches below
This code was made with 10.000.000 simulations. I picked a very high number to increase the chances to get the results right.
You can see the official drawn matches below and compare with the probabilities of each match that was previous calculated.
First Place
Vs.
Second Place
Bayern Muniche
vs.
Lazio
PSG
vs.
Barcelona
Manchester City
vs.
Borussia M.
Borussia D.
vs.
Sevilla
Real Madrid
vs.
Atalanta
Liverpool
vs.
RB Leipzig
Juventus
vs.
Porto
Chelsea
vs.
Atletico Madrid
This is an example of how programming can help teams to have a better preparation and be able to study the teams that have more chances to face in the next stage of the tournment.
You can make your prediction with whatever teams you want. To make it, you just have to change the teams name, group and origin country HERE.
Also, you can set the number of prediction to make by changing the variable value in line sixteen.
This is a code that simulate the chances of each match of the teams in round of sixteen.