Skip to content

This repository contains code and examples for performing football analytics using Python.

License

Notifications You must be signed in to change notification settings

AnshChoudhary/Football-Analytics

Repository files navigation

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:

xG Shots

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:

Barcelona Passes

Passes made by Real Madrid:

Madrid Passes

Passes made by Lionel Messi:

Messi Passes

Passes made by Cristiano Ronaldo:

Messi Passes

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: Barcelona Heat Map

Atletico Madrid: Atletico Madrid Heat Map

Real Madrid: Real Madrid Heat Map

About

This repository contains code and examples for performing football analytics using Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages