Modeling CONACAF World Cup Qualifying using a basic model. For each simulation of the remaining matches to be played, the home team is randomly assigned an outcome (either 3, 1 or 0 points for a win, draw or loss). The final table is aggregated, returning a total of points over the course of qualifying for those simulated results.
Probabilistically, match outcomes in this model are uniformly distributed, and thus there is no measure of skill afforded by this model. Over a large number of simulations, this should not matter as much, but as fewer matches remain, the influence of obvious sporting factors, including but not limited to, player skill, player availability, form, home advantage, team form, pressure, etc will have a greater impact on match outcome odds.
This software runs very slowly if n.sims is greater than 3^10.
#Dependencies Requires R and the following CRAN packages to be installed:
- TouRnament for the roundrobin function
- reshape2
- matrixStats
- dplyr
For plotting & country codes/flag decoration:
- ggplot2
- ggflags for the round images of country flags
- countrycode for conversion of country codes for compatibility with ggflags
- ggimage
For parallel processing:
future.apply (Not strictly necessary, but important for high values of n.sims)
