Summer is here, the soccer World Cup is in full swing, and Ari Joury (PhD, particle physics; Founder & CEO of Wangari Global) is connecting the dots between the beautiful game and the hardest concepts in machine learning. In this episode, Ari discusses his new book, Soccer Analytics with Machine Learning (O’Reilly Media), and explains why the best way to understand complex data science - from logistic regression and feature engineering to Monte Carlo simulations and causal inference - is to watch a soccer match with an analytical eye. Whether you are predicting a goal or simulating a business strategy, the math is the same. And yes, he will explain why trying to A/B test a Champions League final is a terrible idea. Topics covered: Soccer analytics, Expected Goals (xG), Monte Carlo simulations, machine learning education, feature engineering, *Soccer Analytics with Python*, O’Reilly Media, GenAI Academy. Wangari is the newsletter and podcast for practitioners and leaders navigating the real work of enterprise AI. New episodes every Friday. This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit newsletter.wangari.global/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00welcome back to wangari i'm ari joury summer is officially here the world cup is in full swing and if you're anything like me your screen time is currently divided somewhat equally between complex data architecture diagrams and live soccer broadcasts it might seem like a stark contrast. On the one hand, you have the rigid, deterministic and highly structured world of enterprise software
SPEAKER_00and artificial intelligence. And on the other hand, you have the fluid and chaotic and deeply human drama of a soccer match. One involves optimizing algorithms. The other involves grown adults crying because a ball hit a post. But the longer I work in AI, the more time I spend analysing sports data, the more I realise that these two worlds are fundamentally connected In fact,
SPEAKER_00I believe that the best way to understand the hardest concepts in machine learning is not to stare at a whiteboard full of abstract calculus equations the best way to understand machine learning is to watch a soccer match with an analytical eye so today i want to talk about the physics of the pitch i want to explain how the exact same mathematical frameworks used by top soccer clubs to predict goals and optimize tactics are being used by enterprise ai teams
SPEAKER_00to manage financial risk and automate complex workflows and of course i want to talk about my book soccer analytics with machine learning which is officially out now from a rally media and why i think this is the perfect summer read for anybody who's trying to navigate this current ai revolution let's start with a fundamental question so how do you predict whether
SPEAKER_00a specific shot will result in a goal? 10 or 15 years ago soccer analysts approached this problem with a very simple linear way they would look at the striker's historical goal scoring record and at the distance from the shot location to the center of the goal and then they would make a rough estimate it was better than nothing but it was highly inaccurate it ignored the context of the game it's a bit like trying to predict the weather by looking out of the window
SPEAKER_00and saying well it was sunny yesterday so it'll probably be sunny today today the models used by top clubs the expected goals or extreme models are vastly more sophisticated than that they don't just look at the shooter and the distance they look at the x and y coordinates of every single defender on the pitch at the exact moment of the shot they look at the velocity of the pass that led to the shot and
SPEAKER_00and they measure the defensive pressure applied to the shooter in the preceding three seconds. They even look at the position of the goalkeeper and calculate the exact geometrical area of the goal that is actually visible to the shooter. That's a classic and complex machine learning problem. Because you're taking a massive and noisy data set continuous and fluid movement of 22 players tracked 25 times per second
SPEAKER_00and you're trying to extract a signal from that so to do that you have to engineer specific and very predictive features something like distance to goal is a raw feature visible goal area is an engineered feature it requires pretty complex spatial mathematics to calculate this but as analysts have found out it's highly predictable so once you've engineered those features you train a probabilistic model so perhaps
SPEAKER_00a logistic regression model or a gradient boosting classifier to output a probability between 0 and 1 and when you understand how an expected goals model works you actually understand the core principle of machine learning because you understand feature engineering you understand the difference between raw data and predictive signal and you understand how to handle high dimensional and noisy environments which is exactly
SPEAKER_00where machine learning lives in other words you understand the exact same concepts that an enterprise data scientists would use to predict customer churn or detect fraudulent transactions the math doesn't care if the data point is a striker or a credit card swipe now let's look at a more complex problem tactical adjustments
SPEAKER_00Let's say a manager is preparing for a crucial match against a difficult opponent The manager is considering switching from their standard 4-3-3 formation to a more defensive 3-5-2 formation How will that tactical shift impact the team's defensive solidity? How will it impact their ability to create scoring chances on the counter attack? you can't test this deterministically you can't run the exact same match twice in
SPEAKER_00the real world to see what happens you can't do A-B tests like in marketing on a Champions League final it doesn't work okay guys we lost 3-0 with the 4-3-3 let's rewind time and try the 3-5-2 the universe doesn't have a ctrl-z function so what do the analysts actually do well they use simulation specifically they use Monte Carlo simulations and that means building
SPEAKER_00a mathematical model of the match based on historical probability distributions and so they know the probability of a specific midfielder completing a pass under pressure they know the probability of a specific defender winning a tackle in a specific zone of the pitch all that stuff and then they take the proposed 3-5-2 formation plug it into the model and then run the simulated match and they don't just run it once
SPEAKER_00or twice they run it 10,000 times or more and then they look at the distribution of the outcomes so for example in 60% of the simulations the 3-5-2 formation might result in a clean sheet in 20% it results in a 1-0 victory and in 10% it results in a loss this insight allows the manager to make a data informed decision about risk
SPEAKER_00and reward And that's the exact same mathematical framework that is used in the highest levels of enterprise finance and operations. So when a major bank, for example, wants to understand its exposure to a sudden spike in interest rates, it doesn't just look at historical averages. It runs Monte Carlo simulations and simulates 10,000 different economic scenarios to calculate its value at risk.
SPEAKER_00or when a global logistics company wants to optimize its supply chain network to handle a potential disruption in a major port for example then it also runs simulations so when you understand how to simulate a soccer match you actually also understand how to simulate a business the domain changes but the math remains exactly the same
SPEAKER_00We've talked a lot about causal AI over the past few weeks and months, and soccer provides the perfect illustration of why causality is so important. See, if you just look at correlative data in soccer, you'll draw terrible conclusions. You might look at the data and see that teams that cross the ball 40 times a match tend to lose. a correlative model would tell the manager stop crossing the ball but
SPEAKER_00a causal analysis reveals the truth teams don't lose because they cross the ball 40 times they cross the ball 40 times because they're losing when a team is down a goal in the final 10 minutes the opponent packs the penalty area with defenders and so the only way to get the ball into the box is to cross it in from the wings the high number of crosses is a symptom of losing not
SPEAKER_00the cause of it so it's like noticing that people in hospitals are sick and concluding that hospitals cause illness if you're building a tactical strategy based on correlation you will fail you have to understand the causal mechanisms that are driving the data and to be fair many data scientists analysts and sports managers do that automatically intuitively but it's worth throwing a whole formalism on it
SPEAKER_00because it unlocks the real power of it and it's also the exact same trap that enterprise ai teams fall into when they rely purely on deep learning pattern matching oftentimes enterprise ai is way more complex than a soccer match and so the causal priors cannot be known in a simple way and in an intuitive way they they live nowhere so teams may see a correlation between a marketing campaign and sales and
SPEAKER_00then they assume causation or between a specific machine learning machine vibration and then a failure and they assume causation and in reality this may not be the case at all so looking at this from the sense from the lens of soccer teaches us to be quite skeptical of correlation and to look for the hidden variables, the tactical context and what I would call the underlying physics of the situation.
SPEAKER_00I want to spend a little more time on Monte Carlo simulation because I think it's one of the most underutilized tools in the Enterprise AI toolkit. we've touched on it briefly in the context of soccer tactics but the implications for enterprise decision making are actually profound and I don't think that most organizations are taking full advantage of them Monte Carlo simulation is named after the famous casino in Monaco
SPEAKER_00because it relies on random sampling so it's the same randomness that governs a roulette wheel the core idea is simple instead of trying to calculate the exact outcomes of a complex system analytically you simulate the system thousands of times with randomly sampled inputs and then you just look at the distribution of the outcomes in soccer when you simulate 10,000 matches to understand
SPEAKER_00the probability distribution of outcomes for a specific tactical formation you get end up getting pretty good tactics in finance you might simulate 10,000 economic scenarios to understand the distribution of portfolio returns in your investments in insurance you may simulate 10,000 years of catastrophe events to understand the distribution of potential losses and you will set appropriate reserves
SPEAKER_00to cover them the power of Monte Carlo is that it allows you to reason about uncertainty in a rigorous and quantitative way it doesn't give you a single point estimate like this team will win 3-1 or this portfolio will return 8% it'll give you a full probability distribution of outcomes and that's fundamentally a more honest way of making decisions
SPEAKER_00under uncertainty it's a way of thinking that is actually deeply ingrained in physics you see in particle physics we never report a measurement as a single number ever we always report it with an uncertainty band so we would say the mass of this particle is 125.09 plus or minus 0.24 GeV that's the mass of the Higgs by the way the uncertainty here is not a weakness it's an essential part of
SPEAKER_00the information in enterprise decision making we almost always report single point estimates the sales forecast is 50 million the capital requirement is 2.3 billion the project will be completed in six months and these single point estimates create a false sense of prediction they hide the uncertainty that is inherent in any complex system and so it's really
SPEAKER_00the corporate equivalent of a weather forecaster guaranteeing that it will rain exactly 1.2 inches at 3 14 p.m next tuesday when you replace single point estimates with probability distributions so when you say there's a 70% probability that the capital requirement will be between 2.1 billion and 2.5 billion and a 10% probability
SPEAKER_00that it will exceed 3 billion then you give decision makers the information they actually need to make good choices you allow them to reason about risk explicitly rather than hiding it behind a false position and that's one of the core capabilities we're building into the wangari platform we're not just generating regulatory reports that contain single point estimates we're generating reports that include full probability distributions stress tested
SPEAKER_00against a wide range of scenarios because in the complex and uncertain world of financial services a single number is not information right it's a distribution is information i want to close the substantive part of today's episode with a reflection on what soccer and data science have in common at the deepest level
SPEAKER_00because soccer is at its heart is a game of information asymmetry the team that has the most accurate model of the opponent's weaknesses that understands where the defensive line is vulnerable or where the goalkeeper struggles with crosses or where the midfield loses its shape under pressure has a decisive advantage but here's the thing both teams have access to the exact same raw data they both watch the same match footage they both have access
SPEAKER_00to the same data event providers so the advantage doesn't come from having more data it comes from having a better model which is to say a more accurate representation of the causal mechanisms in the game this is the beautiful game of data really it's not about just who has
SPEAKER_00the biggest data lake it's about who can extract the most signal from all that noise in enterprises actually it's exactly the same every major insurance company which is the branch that i usually work in has access to roughly the same market data they all have access to the same macroeconomic indicators regulatory guidance and historical claims data more or less but the companies that win are not the ones
SPEAKER_00with the most data they're the ones with the best models those who've invested in understanding the causal mechanisms of their business so why customers churn and why claims cluster in specific geographic areas or why certain risk factors interact in non-linear ways and increasingly the companies that win are also the ones that have built the AI infrastructure to operationalize those models at scale
SPEAKER_00the ones who've moved beyond the demo and built the evaluation pipelines the governance frameworks and the causal reasoning layers that allow the AI systems to be trusted in production I started this podcast with a fairly simple premise that the era of the impressive AI demos over and the era of the reliable, auditable and production-grade AI system has begun and I believe
SPEAKER_00that more strongly today than I did when I started. The hype cycle is fading. The organisations that invested in demos are starting to realise that a demo is not a product. executives who are wowed by the technology are now asking harder questions like can we trust it can we audit this what will happen when it fails not if but when and those are the right questions the organizations who have the infrastructure to answer them
SPEAKER_00so those who have done the hard work of building reliable and auditable and causal ai systems are the ones that will dominate the next decade the beautiful game of data is not played in the innovation lab it's played in production is played in the messy and unpredictable and high-stakes environment of the real enterprise so the teams that win are the ones that embrace the rigor of a physicist the creativity
SPEAKER_00of a soccer analyst and the humility to know that the signal is always harder to find than it looks this fairly deep connection between the beautiful game and the rigorous math of data science is the premise of my new book soccer analytics with python with machine learning sorry i wrote this book because i was deeply frustrated with how machine learning is typically taught and so were my co-authors actually
SPEAKER_00who themselves two of them are college professors so if you want to learn data science today you generally have two options the one is you read an academic textbook which is dense and dry and drowns you in lots of abstract calculus and linear algebra before you ever get to see a piece of code so it's like trying to learn to cook by reading a chemistry textbook on the maillard reaction and so
SPEAKER_00the second option is also not really better it's you take a quick online boot camp that treats algorithms as black boxes you learn how to import a library and call a predict function but you have no idea what the math is actually doing under the hood and that's like learning how to cook by microwaving a frozen dinner so my co-authors and i wanted to write a book that bridged that gap that taught real and production-grade data science techniques like logistic regression
SPEAKER_00or random forests or deep learning, but grounded in something that's intuitive and visual and actually fun. And soccer is just the perfect vehicle for this. You don't need a PhD in finance to understand what a goal is. You don't need to understand complex supply chain logistics to understand the past. the domain is accessible and that allows you to focus all your mental energy on understanding the underlying principles so if you're looking for a summer read
SPEAKER_00that will sharpen your technical skills without feeling like a textbook then I hope you'll pick up a copy whether you're a seasoned data scientist looking to apply your skills on sports or a business leader looking to finally understand how these algorithms actually work i promise you that the lessons learned on the pitch are universally applicable to the boardroom you can find soccer analytics with python on amazon or directly
SPEAKER_00through o'reilly media a quick behind the scenes about wangari we are not slowing down just yet um we've just wrapped up a live session on o'reilly um talking about surprise surprise soccer analytics with machine learning the attendants were fantastic uh super super interested wonderful questions
SPEAKER_00the editors actually said it was priceless stuff and um it's really been a joy to to be able to encapsulate the book in such a format as well and also this week is our last week of my online course from demo to production where we focus on you guessed it bringing ai projects into production because most of them die in the in the demo and it's been a wonderful six weeks um
SPEAKER_00learning myself because teachers learn as much as students just the million different ways in which AI demos do and can get wrong and how sometimes wonderfully ambitious AI projects don't even reach demo stage even though they're well intended so that's it for today's episode and that wraps up this series
SPEAKER_00of podcasts we'll be back of course with new content fresh content and go slightly differently in the coming weeks and It's been a very interesting journey to be able to narrate all this to you in my own human voice My hope is that these discussions provide you with a clearer and more rigorous framework for thinking about enterprise AI and beyond
SPEAKER_00The hype cycle of AI is fading and the real work is now so it's time to build systems that are reliable and auditable and truly intelligent enjoy the summer and pick up a copy of the book keep building things that actually work and i'll be back with you next week thanks for listening to wangari
People often ask how transitioning from theoretical particle physics to founding an enterprise AI company makes any sense. In this episode, Ari Joury (PhD, particle physics; Founder & CEO of Wangari Global) explains why...
For the past decade, the enterprise AI narrative has been dominated by deep learning and pattern matching. These models are incredibly powerful at answering “What is happening?” but fundamentally incapable of answering...
If you want to build a machine learning model to predict the outcome of a soccer match, the algorithm you choose is the least important part of the process. The real challenge is deciding what data to feed it. In this...
Walk into the actuarial department of any major insurance firm, and you will find some of the most highly educated, analytically brilliant minds in the corporate world. Now ask them how they spend their time. The answer...
In this episode, Ari Joury (PhD, particle physics; Founder & CEO of Wangari Global) turns his attention to the 2026 World Cup - and to why the machine learning models built to predict it are confidently wrong in...