The Physics of the Soccer Pitch
Why the best way to understand complex machine learning is sometimes to watch a soccer match
Summer is here, the World Cup is in full swing, and if you are anything like me, your screen time is currently divided between complex data architecture diagrams and live soccer broadcasts.
It might seem like a stark contrast — the rigid, deterministic world of enterprise software versus the fluid, chaotic, deeply human drama of a soccer match. But the longer I work in AI, the more I realize that the two worlds are fundamentally connected.
In fact, I believe that the best way to understand the hardest concepts in machine learning is not to stare at a whiteboard full of equations, but to watch a soccer match with an analytical eye.
The Pitch as a Data Problem
Consider the challenge of predicting whether a specific shot will result in a goal.
Ten years ago, analysts might have looked at the striker’s historical goal-scoring record and the distance to the goal. It was a simple, linear approach.
Today, the “Expected Goals” (xG) models used by top clubs are vastly more sophisticated. They don’t just look at the shooter; they look at the x,y coordinates of every defender on the pitch. They calculate the angle of the shot, the velocity of the pass that led to it, and the defensive pressure applied in the preceding three seconds.
This is a classic machine learning problem. It requires taking a massive, noisy dataset (the continuous movement of 22 players) and engineering specific, predictive features (the geometric area of the goal visible to the shooter) to train a probabilistic model.
When you understand how an xG model works, you also understand the core principles of logistic regression and feature engineering. And behind that, you understand how to separate signal from noise.
The Limits of Machine Learning in Sports
Machine learning in sports has its limitations. As Alex Marin Felices notes, while machine learning models are excellent at identifying correlations between performance indicators and success, they often struggle to represent the interactive and dynamic nature of attacking play.
A model might identify that a team is more likely to score when they complete a high number of passes in the final third. But this is a correlation, not a causal mechanism. Does completing more passes *cause* the team to score, or do dominant teams simply complete more passes while they are in the process of scoring?
This is where causal inference becomes essential. To truly understand the game, analysts must move beyond pattern matching and build models that can answer “what if” questions. What if the manager substitutes a defensive midfielder for an attacking winger? How will that change the underlying dynamics of the match?
Simulation and Strategy
Or consider the problem of tactical adjustments. If a manager decides to switch from a 4-3-3 formation to a 3-5-2, how will that impact the team’s defensive solidity?
You can’t test this deterministically. You cannot run the exact same match twice. There’s no parallel universe we know of that would allow that. Instead, analysts use Monte Carlo simulations—running thousands of simulated matches based on historical probability distributions to forecast the likely outcomes of a tactical shift.
This is the exact same mathematical framework used by financial institutions to model market risk, and by supply chain managers to optimize logistics networks. When you understand how to simulate a soccer match, you understand how to simulate a business.
The Future of the Game
The integration of AI into soccer is only accelerating. For the 2026 World Cup, FIFA is planning an “AI offside revolution,” using AI-enabled 3D avatars of every player to ensure precise identification and tracking.
This level of data capture promises unprecedented accuracy, but it also raises questions about the role of human judgment. As decisions become more exact, they can also feel more arbitrary to spectators. This tension between technological precision and human interpretation is a challenge we face every day in enterprise AI deployments.
In a business setting, it might mean something like this: when an AI system flags a regulatory report for an anomaly based on a complex, multi-dimensional analysis, the human compliance officer must decide whether to trust the machine or their own intuition. The more precise the machine becomes, the harder it is for the human to overrule it, even when the machine is wrong.
The Democratization of Analytics
One of the most exciting developments in sports analytics over the past decade is the democratization of data. Tracking data that was once the exclusive preserve of elite clubs with multimillion-dollar analytics departments is now increasingly available to smaller clubs, coaches, and even fans.
This democratization is driven by the same forces transforming enterprise AI: the plummeting cost of compute, the proliferation of open-source tools, and the increasing availability of pre-trained models. A small club in the third tier of English football can now run xG models that would have been cutting-edge at a Premier League club five years ago.
The same dynamic is playing out in the enterprise. The AI tools that were once the exclusive preserve of the largest technology companies are now accessible to mid-sized organizations. The question is no longer whether you can afford to use AI; it is whether you have the operational maturity to deploy it reliably.
This is the central challenge of our era, and it is the challenge that our new book Soccer Analytics with Machine Learning is designed to address.
The Summer Reading
This connection between the beautiful game and the rigorous math of data science is the premise of the new book I co-authored, Soccer Analytics with Machine Learning, published by O’Reilly Media.
We wrote the book because we are (a) soccer enthusiasts, and (b) frustrated by how machine learning is typically taught. Most textbooks are either overly academic, drowning the reader in abstract calculus, or overly simplistic, treating algorithms as black boxes.
We wanted to write a book that bridged the gap. A book that taught real, production-grade data science techniques; but that grounded them in a domain that is intuitive, visual, and fun.
So – if you are looking for a summer read that will sharpen your technical skills without feeling like a textbook, I hope you will pick up a copy. Whether you are a seasoned data scientist looking to apply your skills to sports, or a soccer fan looking to break into the tech industry, the lessons learned on the pitch are universally applicable.
Meanwhile, at Wangari
The summer slowdown is a myth at Wangari. We just ran a wonderful O’Reilly live course on soccer analytics, which our production editor described as “priceless stuff” (yes, really).
Furthermore, we are currently wrapping up the final week of our From Demo to Production course cohort, and the energy has been invaluable.
It’s been beautiful to see the theoretical concepts of orchestration and evaluation applied to real, complex enterprise data. There’s a load of human work behind all this!
Which reinforces the core Wangari philosophy: AI is not magic; it is engineering. And when you apply rigorous engineering principles to AI, you can solve problems that previously seemed impossible. (And you don’t need to be an engineer to pull that off.)
Reads of the Week
The Promise and Limits of Machine Learning in Football Attacking Analysis by Alex Marin Felices: Shared before, but worth stating again – a critical look at why machine learning models often struggle to capture the dynamic, interactive nature of soccer. Felices argues that while ML is great for identifying correlations, it falls short when trying to model the complex, multi-agent decision-making that defines a successful attack.
Opinion: Inside the World Cup’s AI offside revolution by Clemente Lisi: An exploration of FIFA’s ambitious plan to use AI-enabled 3D avatars for the 2026 World Cup. Lisi discusses the tension between technological precision and the human element of refereeing, a debate that mirrors discussions about AI governance in the enterprise.
ChatGPT Predicts 2026 in the World of Football by Luke: A fun, AI-generated look at what the future might hold for the beautiful game. It’s purely speculative, but it highlights how generative AI is increasingly being used to synthesize narratives and simulate future scenarios in sports media.



