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.
utilscontains utility functions and scripts for calculations, cleaning and metatdataoutputcontains all the visualizationsteam_logoscontains all Premier League team badgesxG_Infographic.ipynbcode for the complete xG Infographicgoal_probabilities_plot.pycode for goal probability vizwin_probability_plot.pycode for win probability vizxG_racechart_plot.pycode 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.



