This repository contains code and examples for performing football analytics using Python. It is based on the concepts and techniques described in the book "Soccermatics" by David Sumpter. The goal of this repository is to provide practical implementations and demonstrations of football analytics methods, allowing users to explore and analyze various aspects of the game.
The code follows the video lectures from the Youtube channel 'Friends of Tracking' https://www.youtube.com/channel/UCUBFJYcag8j2rm_9HkrrA7w
Football analytics has become increasingly popular in recent years, offering valuable insights into player performance, team strategies, and match outcomes. This repository aims to provide a practical resource for football enthusiasts, data scientists, and researchers interested in exploring the world of football analytics using Python.
xG of Shots by FC Barcelona and Real Madrid:
In the image shown above, blue circles represent shots taken by Barcelona players and red circles represent shots taken by Real Madrid players. The size of each circle represents the xG of that respective shot. Darker circles represent shots that were converted into goals. Shots that led to a goal are also accompanied by the name of the player that scored the respective goal.
Passes made by FC Barcelona:
Passes made by Real Madrid:
Passes made by Lionel Messi:
Passes made by Cristiano Ronaldo:
Comparing Heat Maps of Passes for different teams: