SportsDataTutorials

10 tutorials

Soccer

Free event data from StatsBomb plus xG from Understat let you analyse matches like a pro - no paid feed required.

The xG explainers come first — they're the language of everything else. Then the StatsBomb event-data tutorials show you how professional match data is actually structured, and the World Cup scoring tutorial applies one groupby to the complete 2026 tournament. Soccer's bundled data includes every real 2026 World Cup result, so every claim is checkable from the files you downloaded.

Level:

Draw a Pass Map with mplsoccer

Filter a match's passes from StatsBomb event data and draw them as arrows on a correctly-proportioned pitch using mplsoccer, with StatsBomb attribution.

SoccerIntermediate~7 min

A team's completed passes drawn as arrows on a proper pitch with mplsoccer.

Build a Match Shot Map with Expected Goals

Plot every shot from a real match on an mplsoccer pitch, sized by its expected-goals value with goals highlighted — the most useful soccer viz there is.

SoccerIntermediate~8 min

Both teams' shots on a pitch, sized by xG and marked for goals.

Draw a Player Heatmap from Event Data

Collect every action a player took from StatsBomb event data and turn the locations into a smooth territory heatmap on the pitch, showing where they did their work.

SoccerIntermediate~7 min

A heatmap of where one player was involved across a match.

Build a Team Pass Network

Combine players' average positions with their pass combinations to draw a pass network - the chart that reveals a team's shape and its most important connections.

SoccerAdvanced~9 min

A team's passing network: average positions and who links with whom.