Chapter 8. Feature Engineering for Soccer Analytics
In Chapter 7, we saw that even highly flexible models still depend on the quality and structure of their inputs. This chapter turns to that representation problem directly.
Exploratory data analysis (EDA) helps us understand what is in the data. Feature engineering is where we decide what the model should learn from it.
That distinction matters. Raw soccer data is rich, but it is rarely organized in the form that a model needs most. Match results tell us what happened, but not whether a team is improving. Event data tells us where actions occurred, but not which patterns are most important. A league table tells us who is ahead, but not how strong a team really is when schedule difficulty, venue, form, and shot quality are taken into account.
Feature engineering is the step where analysis becomes modeling. It is where we translate soccer knowledge into structured signals: recent form instead of season totals, venue-specific performance instead of generic averages, shot quality instead of shot counts, and team strength ratings instead of intuition alone. Done well, this is not just a technical cleanup step. It is one of the main ways we make a predictive model smarter, more stable, and more interpretable.
In soccer analytics, feature engineering often makes the difference between a model that is merely data-driven and one that is genuinely informative. Two teams may both score two goals per match, but one may be creating better ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access