The repository consists of the code used in my blog post about the poisson distribution of Expected Goals in single football matches.
This project I will make my attempt to improve the common used Expected Goals (xG) race chart from a single game. This will be done by adding more context like win, loss and draw probabilities, the 3 most probable scorelines and the probability for goals for each team.
utils
contains utility functions and scripts for calculations, cleaning and metatdataoutput
contains all the visualizationsteam_logos
contains all Premier League team badgesxG_Infographic.ipynb
code for the complete xG Infographicgoal_probabilities_plot.py
code for goal probability vizwin_probability_plot.py
code for win probability vizxG_racechart_plot.py
code for xG racechart viz
xG racechart
Goal probabilities for each team
Bar chart of 0-9 goals for each team, where the actual goal(s) scored is filled.
Win probability
The probability of each team winning or a draw result based on the shots they have taken.