https://github.com/anshchoudhary/football-analytics
This repository contains code and examples for performing football analytics using Python.
https://github.com/anshchoudhary/football-analytics
football football-analytics
Last synced: 7 months ago
JSON representation
This repository contains code and examples for performing football analytics using Python.
- Host: GitHub
- URL: https://github.com/anshchoudhary/football-analytics
- Owner: AnshChoudhary
- License: mit
- Created: 2023-06-27T08:16:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-27T11:20:42.000Z (over 2 years ago)
- Last Synced: 2025-02-02T09:31:21.126Z (9 months ago)
- Topics: football, football-analytics
- Language: Python
- Homepage:
- Size: 9.7 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Football Analytics Project
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
## Introduction
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.
## Analysis of a football match
### Example:
Real Madrid 0 x 3 FC Barcelona ● La Liga 17/18
**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:**

## Analysis of Teams in the same league using Heat Maps of Passes
### Example: La Liga in 2014-15
Comparing Heat Maps of Passes for different teams:
**FC Barcelona:**
/HeatMaps-Teams/BarcelonaHeatMap.png)
**Atletico Madrid:**
/HeatMaps-Teams/AtleticoMadridHeatMap.png)
**Real Madrid:**
/HeatMaps-Teams/RealMadridHeatMap.png)