pablo-villacorta / euroleague-season-simulator

Euroleague season simulator using ELO ratings and Monte-Carlo simulations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Euroleague Season Simulator

This is a Python project that simulates the remainder of the games of the current Euroleague season based on the results of all the games played so far.

The simulator uses a system similar to the one introduced by FiveThirtyEight to estimate each team’s current ELO rating. Then, using those ratings, it simulates each remaining game by estimating the margin of victory of the winning team based on the ELO difference between the two teams in the match (also accounting for home court advantage). The estimated margin of victory is sampled from the joint probability distribution of past games’ margins of victory and head-to-head ELO differences.

Once all the remaining games are simulated, the final standings are computed by implementing Euroleague’s sorting and tiebreaking criteria in an efficient, vectorized way. The code runs 100K Monte Carlo season simulations so that it can generate a table showing the probability of each team finishing in the Nth position at the end of the season.

Example output:

Table showing the probability of each team finishing in the Nth position of the standings at the end of the season.

About

Euroleague season simulator using ELO ratings and Monte-Carlo simulations


Languages

Language:Jupyter Notebook 87.9%Language:Python 12.1%