source

Causal Inference: Football

The 11 chapters of Ruiz de Villa, Causal Inference for Data Science (Manning, 2024), each taught with real data: 238,858 club matches 2000 to 2026, ClubElo ratings, 269 international shootouts. General version: Causal Inference Primer.Rahul's Site
Each chapter1 The idea→ 2 One football example per concept→ 3 TakeawayRolestreatmentoutcomeconfounder or trapmediator, instrument, model
1

Seeing is not doing

prediction vs causation · randomized experiments · selection
The idea
  • Most machine learning predicts what will happen. Causal inference asks why it happens, and what changes if you act.
  • Data comes in two kinds: experiments, where you assigned the treatment, and observational logs, where people or systems chose it.
1What data: a test, or logs?
2Learn how the process produces it.
3Draw what causes what.
4Agree the drawing.
5Then estimate.
Terms to know
Treatment and outcome
The thing you change, and the result you care about.
Confounder
A variable that affects both treatment and outcome, creating a link that isn't causal.
ATE
Average treatment effect: the average outcome if everyone got the treatment, minus the average if no one did.
Generating distribution
The process that produced your data. Your sample is one draw from it, and estimates aim at the process.
1.1Randomized experimentTreatmentkicking first, set by a coin tossOutcomewinning the shootoutData: Internationals · martj42
Question
Does kicking first win penalty shootouts?
Why this example
A coin toss sets the order, so first and second kickers are alike in every other way. It is football's one built-in randomized experiment.
Answer
First kickers won 141 of 269 shootouts, 52.4%. The 95% range runs from 46% to 58% and includes 50%, so no edge can be confirmed.

First-kicking team's win share, adding one shootout at a time

International shootouts with the first kicker recorded (269 of 700). Grey band: where a true 50/50 lands 95% of the time.

Almost nothing else in football gets randomized

Clubs chooseSackings, signings and formations follow results, so they carry results' history with them.Leagues chooseVAR, winter breaks and squad rules arrive league by league, on their own timetable.It already happenedEmpty stadiums came from a pandemic, not a design.Nobody would allow itNo club lets a coin decide its manager or its striker.
1.2Observational data and selectionTreatmenta sacking after a bad run (none here)Outcomepoints per game afterwardsTrappicking each team's worst runData: Club matches · Football-Data
Question
Form picks up after a sacking. Would it have picked up anyway?
Why this example
Sackings follow the worst runs, so the run before is low partly by luck. Taking every team's worst run with no sacking shows what happens without the treatment.
Answer
Teams go from 0.81 to 1.51 points a game after their worst 5 matches with nobody sacked, back to their 1.46 season level.

Points per game around each team's worst 5-game run

1.3Observational data and confoundingTreatmenthosting the World CupOutcomepoints per gameConfounderhosts are picked from big football nationsData: World Cup database · Fjelstul
Question
Do host nations play better at their own World Cup?
Why this example
Hosting isn't random: FIFA picks nations with big football cultures. Comparing hosts with all teams mixes the host effect with who gets picked.
Answer
Hosts took 2.07 points a game against 1.41 for all teams. The same nations took 1.57 at other World Cups, and Elo expected only 1.40 from them as hosts. Most of the gap is a real host effect.

Points per game at men's World Cups, 1930 to 2022

Elo-expected: points predicted from the pre-match Elo gap, using non-host matches. Elo ratings computed from every international since 1872.

Takeaway
  • Run an A/B test or randomized trial whenever you can. Random assignment removes every confounder at once, measured or not.
  • With observational data, a raw gap mixes the effect with confounding. Draw the causes first, then pick a method.
2

Compare like with like

confounders · Simpson's paradox · adjustment formula · positivity
The idea
  • Comparing average outcomes under option A and option B seems natural. In observational data it can point the wrong way.
  • Simpson's paradox: a gap that flips once you split by a third variable. Which answer is right depends on how the data was generated, not on the numbers.
Terms to know
Intervention
Setting the treatment yourself, for everyone, instead of watching who chose it. Written do(X).
Adjustment formula
Average the within-group outcomes, weighting each group by its share of the population.
Positivity
Every group must have received each treatment at least sometimes. Otherwise the data says nothing about it there.
Mediator
A step between treatment and outcome. Don't adjust for it if you want the total effect.
2.1Simpson's paradoxTreatmentheading instead of shooting with a footOutcomegoalSplit bydistance from goalData: StatsBomb events
Question
Are headers better or worse than foot shots at scoring?
Why this example
Headers are taken close to goal, foot shots from everywhere. Pooling them hides distance, the main driver of scoring.
Answer
Pooled, headers score more often: 10.4% vs 8.9%. At every distance they score less, by 9 points on average. Headers only look better because they happen close in.

Open-play shots that scored, header vs foot

StatsBomb open data: World Cups 2018 and 2022, Euros 2020 and 2024. Open-play shots only. Distance in metres from the centre of goal.

2.2Adjustment formulaTreatmenthome side has more shotsOutcomehome winConfounderpre-match strength, from bookmaker oddsData: Club matches · Football-Data
Question
How much more often do home sides win when they outshoot the opponent?
Why this example
Strong teams outshoot weak teams and beat them anyway. Comparing within slices of pre-match odds, then reweighting, removes that.
Answer
Raw gap: +17.4 points. Within equal-odds slices and reweighted: +6.4. Strength explains almost two thirds of the raw gap.

Home win %, home side had more shots vs fewer

2.3PositivityTreatmentbiggest signing of the summerOutcomeleague pointsConfounderclub status before the seasonData: Transfers · Transfermarkt
Question
What does a €30m+ signing do for a newly promoted Premier League club?
Why this example
A fair comparison needs clubs of the same status with and without big signings. Promoted clubs almost never make them, so the data has a hole exactly there.
Answer
None of the 83 promoted club-seasons from 2000 to 2021 included a signing over €30m. The data can't answer the question for promoted clubs, so it has to be narrowed.

Premier League club-seasons by status and biggest signing

Cell: club-seasons, and their average points where at least 5. Red outline: fewer than 5. Fees from Transfermarkt, 2000-01 to 2021-22.

Takeaway
  • The adjustment formula removes measured confounding: compare within each level of the confounder, then reweight by how common each level is in the whole population.
  • A graph built from domain knowledge decides what to adjust for. Missing a confounder is the main risk.
3

Draw the causes before touching the data

causal graphs (DAGs) · assumptions · cycles
The idea
  • A causal analysis has two stages: describe how the data was generated, then estimate. Graphs do the first stage.
  • Build the graph with the people who know the process. Start simple and add detail only where it matters.
Terms to know
DAG
Directed acyclic graph: nodes are variables, arrows are direct causes, and no path loops back on itself.
Assumption
Anything the analysis takes as given, mostly the arrows you left out. Write them down so others can challenge them.
Restricting the question
If some group never got a treatment, answer only for the groups that did.
3.1Building the graphCause studiedthe crowdPathsreferee decisions, playersOutcomehome goal differenceOther causestravel, knowing the pitchData: Club matches · Football-Data
Question
Where does home advantage come from?
Why this example
It has several plausible causes, so it needs a drawing before any number. The steps make each assumption visible.
Answer
The drawing says the crowd works through referees and players, and travel and pitch familiarity act on players alone. The next card tests the first arrow.

Build the drawing step by step

3.2Testing an arrowChangecrowds removed, 2020-21Arrow testedcrowd to refereeOutcomescard gap, home goal differenceData: Club matches · Football-Data
Question
Is the arrow from crowd to referee real?
Why this example
Empty stadiums removed the crowd and left travel and pitches unchanged. If the arrow exists, the referee's home lean should shrink when fans vanish.
Answer
The away-minus-home yellow card gap fell from 0.35 to 0.01 a match, then came back to 0.27 with fans. Home goal difference fell 0.10 below trend.

Away minus home, per match

27 European divisions. Empty stadiums: 16 May 2020 to 30 Jun 2021.

3.3Testing an arrow in a second datasetChangeplaying a World Cup at homeArrow testedhome crowd to refereeOutcomeyellow cardsData: World Cup database · Fjelstul
Question
Do World Cup hosts get fewer cards than their opponents?
Why this example
If crowds push referees, hosts should get a better card balance at their own tournament than the same nations get elsewhere. A second dataset can confirm or break the arrow.
Answer
At home World Cups, hosts got 1.41 yellows a match to opponents' 1.96. The same nations at other World Cups: 1.61 to 1.83. The gap more than doubles when the crowd is theirs.

Yellow cards per match, host nations vs their opponents

Men's World Cups 1970 to 2022, the years with bookings data. 82 matches as host, 656 at other World Cups.

3.4Unrolling a loopLoopresults and Elo rating feed each otherData: ClubElo
Question
Leicester's rating rose all through 2015-16. Did the rating cause the wins, or the wins cause the rating?
Why this example
Elo is computed from results and then predicts results, a loop. A season of ratings, read matchday by matchday, shows how to unroll it.
Answer
Each rating is fixed before kickoff and updated after the whistle. Leicester went from 1,636 in August 2015 to 1,814 by June 2016, one step at a time, with every arrow pointing forward.

Leicester's ClubElo rating, 2015-16

The loop, unrolled by matchday

The cost of unrolling: you need the rating before every match, not one snapshot.

Takeaway
  • Five steps: list every variable, draw the arrows, state the assumptions, state the goal, check positivity.
  • An arrow only allows an effect. A missing arrow is the real assumption. Loops get unrolled through time, at the cost of needing data for every period.
4

A great predictor can give the wrong answer

supervised learning vs causal inference · S-learner
The idea
  • Supervised learning fits the data you have. It predicts well as long as the future behaves like the past.
  • A decision changes the world, so after you act, the future no longer looks like the training data.
Terms to know
S-learner
One model with the treatment as an input. Predict with the treatment on and off, then average the difference.
T-learner
Separate models for treated and untreated units, then compare their predictions for everyone.
Cross-fitting
Fit on one part of the data, predict on the other, swap, so no model scores the rows it learned from.
4.1Prediction is not causationPrediction targethome winInputsodds, corners, shots on targetProblemcorners and shots are caused by the scoreData: Club matches · Football-Data
Question
The best home-win model says each extra corner cuts the win chance by 2.7 points. Believe it?
Why this example
In-match stats predict results very well because the score drives them. That is exactly where a good predictor gives a bad causal answer.
Answer
Accuracy rises from 63.6% to 71.7% as corners and shots go in. The corner coefficient measures game state, so it is no reason to avoid corners.

Better prediction, worse answer to "what is a corner worth?"

4.2When the world changesModelhome win chance from the Elo gapTrained on2010-19, stadiums fullChangecrowds removedData: ClubElo
Question
Does a home-win model fitted on 2010-19 still work when crowds disappear?
Why this example
A prediction model assumes the world that made its data carries on. Empty stadiums changed one cause overnight, the same kind of change a decision makes.
Answer
The model expected 45.2% home wins. Empty stadiums produced 40.9%, and the return of fans 43.5%. Same ratings, different world.

Predicted vs actual home win %

21 European divisions. Logistic model of a home win on the Elo gap, fitted on 52,347 matches from 2010-11 to March 2020.

4.3A predictive coefficient is not a priceInputtransfer spendingPrediction targetleague pointsConfounderclub strength before the seasonData: Transfers · Transfermarkt
Question
Each €50m of spending goes with 7.6 more Premier League points. Will spending €50m buy them?
Why this example
A spending model predicts points, but rich clubs were already strong. Its coefficient answers a prediction question, not a purchase question.
Answer
Add the club's Elo at the start of the season and the fit jumps (R² 0.19 to 0.65) while €50m falls to 1.9 points. Most of the raw link was strength, not money.

Gross transfer spending vs points, Premier League 2000-01 to 2021-22

440 club-seasons. Gross spend: summer and winter fees paid, in € millions. Colour: Elo at the start of the season.

Takeaway
  • A prediction model gives causal answers only if it includes every confounder and nothing the treatment causes.
  • Cross-validation doesn't validate a causal model. Machine learning can still estimate the pieces of the adjustment formula, with cross-fitting to avoid overfitting.
5

Compare matches that were equally likely to get it

propensity scores · inverse probability weighting · overlap
The idea
  • The adjustment formula needs positivity: comparable treated and untreated cases. With many variables that's hard to check directly.
  • A propensity score squeezes all the confounders into one number: the probability of being treated.
Terms to know
Propensity score
The probability a unit gets the treatment, given its confounders.
Inverse probability weighting
Weight each unit by 1 over its chance of getting the treatment it got, so both groups mirror the full population.
Matching
Pair each treated unit with an untreated one that had a similar score.
5.1Propensity scores and overlapTreatmenthome side leads at half-timeOutcomehome winConfounderspre-match odds, Elo gapPropensitychance of leading at half-timeData: Club matches · Football-Data
Question
How much is a half-time lead worth?
Why this example
The treatment is yes or no, and the confounder, pre-match strength, is captured by odds and Elo. Overlap is wide, so propensity weighting works cleanly.
Answer
The raw gap is +51.3 points of win probability. Weighted by each match's chance of leading, +45.9. Strength accounts for about 5 points.

Score each match by its chance of a home lead at half-time, then compare within the same score

Weight1 / chance of getting what it got An underdog that did lead at half-time had a 0.15 chance, so it counts about 7 times.

5.2Propensity scores with event dataTreatmentshot taken under pressureOutcomegoalConfoundersdistance, angle, body part, play patternData: StatsBomb events
Question
How much does defensive pressure cut a shot's chance of scoring?
Why this example
Pressured shots happen in different places than free ones, often closer to goal. A propensity score compares shots that were equally likely to be pressured.
Answer
Raw, pressured shots score 2.7 points less often. Weighted by the chance of pressure, the gap widens to 3.4 points, because pressure is most common close to goal, where shots score.

Chance of being under pressure, pressured vs free shots

StatsBomb open data, four tournaments. Chance of pressure fitted by logistic regression on log distance, angle, header, first-time and play pattern.

5.3Propensity scores and thin overlapTreatmentscoring in the first 15 minutesOutcomewinningConfoundersElo gap, venue, friendly or competitiveData: Internationals · martj42
Question
How much does an early goal raise a national team's chance of winning?
Why this example
Strong teams score early and win anyway. Squeezing the Elo gap, venue and match type into one score separates the goal from the team.
Answer
Raw gap: +35.1 points. Weighted by each team's chance of scoring early: +17.3. Half the raw gap is strength. Weak teams almost never score early, so overlap is thin at the bottom.

Chance of scoring in the first 15 minutes, teams that did vs didn't

Internationals since 2000 with goal times recorded, 19,148 team-matches. Elo ratings computed from every international since 1872.

Takeaway
  • Plot the scores for both groups. Where they don't overlap there is no fair comparison, so restrict the analysis to the overlap.
  • The scores also give an effect estimate by weighting. Fit them once and reuse them for every outcome you care about.
6

Effects travel along paths

linear regression · direct and indirect effects · mediators
The idea
  • Many treatments are continuous, like a price. Linear regression is the simplest way to estimate their effect.
  • A coefficient is causal only if the regression contains the right variables for the question you are asking.
Terms to know
Total effect
Everything the treatment changes in the outcome, through every route.
Direct effect
What the treatment does with the mediator held fixed.
Indirect effect
The part that runs through a mediator: treatment-to-mediator times mediator-to-outcome.
Causal path
A path whose arrows all point from the treatment toward the outcome.
6.1Direct and indirect effectsTreatmentElo gapMediatorshots-on-target gapOutcomegoal differenceData: Club matches · Football-Data
Question
How much of a better team's goal margin comes from creating more shots on target?
Why this example
Shots on target sit between strength and goals, a natural mediator. Linear regression splits the effect into the path through shots and everything else.
Answer
100 Elo points are worth 0.50 goals a game: 0.26 via extra shots on target, 0.24 by other routes. Two thirds of home advantage runs through shots.

The variables you add decide which question the regression answers

6.2Mediation with a quality measureTreatmentpressure on the shooterMediatorshot quality (xG)OutcomegoalData: StatsBomb events
Question
Does pressure lower scoring by forcing worse chances, or by spoiling the finish?
Why this example
xG measures the chance before the strike, so it sits between pressure and the goal. Two regressions split the effect into the two routes.
Answer
Pressure cuts scoring by 2.7 points: 0.8 through lower xG and 1.9 through worse finishing for the same xG. Most of the damage is to the strike itself.

Pressure, chance quality, goal

StatsBomb open data, open-play shots. Linear probability models. xG is StatsBomb's own pre-shot estimate.

6.3Two paths to one outcomeTreatmenta sending-offPathsgoals scored, goals concededOutcomegoal differenceConfounderElo gapData: World Cup database · Fjelstul
Question
When a World Cup team has a player sent off, does it lose by scoring less or by conceding more?
Why this example
A red card works at both ends. Goal difference is goals scored minus goals conceded, so each path can be measured on its own.
Answer
Holding the Elo gap fixed, a sending-off costs 0.75 goals of goal difference: 0.50 from scoring less and 0.25 from conceding more. Two thirds of the damage is in attack.

Effect of a sending-off, holding the Elo gap fixed

Men's World Cups 1970 to 2022: 1,516 team-matches, 143 with a sending-off. Linear regressions on a sending-off dummy and the Elo gap.

Takeaway
  • Decide which effect you want: total, direct or indirect. Then choose the regression that returns it.
  • In a linear graph, effects multiply along a path and add across paths. Correlation flows through paths like gas through pipes, and holding a variable fixed closes a pipe.
7

Some controls make it worse

d-separation · back-door criterion · good and bad controls · colliders
The idea
  • Real graphs are big. The question becomes: given a graph, which variables do I adjust for?
  • Holding a variable fixed can block the link between two others, or create one where none existed.
Terms to know
d-separation
A graph rule that tells you whether two variables are independent once certain others are held fixed.
Collider
A variable with two arrows pointing into it. Conditioning on it links its causes.
Good, neutral, bad control
Good blocks confounding. Neutral changes precision only. Bad blocks part of the effect or opens a fake link.
Do-calculus
A set of rules for deciding whether an effect can be estimated at all from a given graph.
Reference

Three shapes decide what holding a variable fixed does

Good, neutral and bad controls, using "did signing a striker add goals?"

The rule. Block every path into the signing through an arrow pointing at it. Don't hold fixed anything the signing causes, or anything both cause.

7.1CollidersCause AElo at the start of the seasonCause Bluck: points above what Elo predictsColliderfinishing in the top 4Data: Club matches · Football-Data
Question
Among top-4 finishers, weaker squads overperformed more. Does a weak squad cause overperformance?
Why this example
A top-4 finish is caused by strength and by luck, so it is a collider. Looking only at top-4 clubs is a selection fans make all the time.
Answer
No. Across all club-seasons the link is zero (r = 0.00). Among top-4 clubs it is −0.57, created entirely by selecting on the finish.

Selecting on a finish creates a link that isn't there

7.2Good and bad controls, one at a timeTreatmentshot under pressureOutcomegoalCandidatesdistance, angle, xG, on targetData: StatsBomb events
Question
Which controls belong in a model of how pressure affects scoring?
Why this example
The candidates cover all three kinds: causes of pressure, steps after it, and parts of the outcome. Adding them one by one shows each kind at work.
Answer
Distance and angle move the effect from −2.7 to −6.6 points, because they are shared causes. Adding xG or shot on target shrinks it to −1.7 and −1.0, because they absorb the effect.

Effect of pressure on scoring as controls are added (points, 95% range)

StatsBomb open data, open-play shots. Linear probability models.

7.3Controlling for what the treatment causesTreatmenta sending-offOutcomeWorld Cup pointsBad controlsgoals conceded, goal differenceData: World Cup database · Fjelstul
Question
What is a sending-off worth in World Cup points?
Why this example
Goals conceded come after the red card, and goal difference is part of the result. Adding them is the classic mistake of controlling for what the treatment causes.
Answer
With the Elo gap as control: −0.51 points. Add goals conceded and it shrinks to −0.38. Add goal difference and it nearly vanishes at −0.10. The card still costs about half a point.

Effect of a sending-off on points as controls are added (95% range)

Men's World Cups 1970 to 2022, 1,516 team-matches. Points: 3 for a win, 1 for a draw.

Takeaway
  • Back-door criterion: block every non-causal path that enters the treatment, and don't condition on colliders or on anything the treatment causes.
  • Data alone can't build the graph. Domain knowledge builds it, and the criterion then names the adjustment set before you touch the data.
8

Two models are safer than one

doubly robust (AIPW) · bootstrap · double machine learning
The idea
  • Basic adjustment works, but with many confounders you want estimates that are more accurate and that report their uncertainty.
  • Three tools cover this: double machine learning, confidence intervals, and doubly robust estimators.
Terms to know
FWL theorem
Regressing leftovers on leftovers gives the same coefficient as the full regression. Double ML builds on it.
Bootstrap
Redo the estimate on many resampled copies of the data to see how much it moves.
Doubly robust (AIPW)
Combines an outcome model with a treatment model. It stays right if either one is right.
8.1Doubly robust estimation and the bootstrapTreatmenthome side leads at half-timeOutcomehome winModel 1who leads, from odds and EloModel 2who wins, from odds and EloData: Club matches · Football-Data
Question
Is the half-time lead estimate safe if one of our models is wrong?
Why this example
It reuses chapter 5's question, so we can break each model on purpose and watch what the doubly robust estimate does.
Answer
Yes. With either model right, the effect stays between +45.8 and +46.0. Only with both wrong does it drift to +51.3. Bootstrap range: +45.3 to +46.4.

Effect of a half-time lead on winning, with each model right or wrong

"Wrong" means ignoring strength: a flat 34% chance of leading, or a flat win rate per group.

Redo it on 200 resampled datasets

8.2Doubly robust when confounding is strongTreatmentscoring in the first 15 minutesOutcomewinningModelswho scores early, who winsData: Internationals · martj42
Question
Is the early-goal estimate safe if one of our models is wrong?
Why this example
Strength confounds heavily here, so a wrong model matters a lot. Breaking each model on purpose shows the doubly robust estimate surviving.
Answer
With either model right, the effect stays at +17 to +18 points. With both wrong it doubles to +35.1. The bootstrap range is +15.2 to +19.0.

Effect of an early goal on winning, each model right or wrong

"Wrong" means ignoring the Elo gap, venue and match type.

Redo it on 200 resampled datasets

8.3Double machine learning for a continuous treatmentTreatmentshot distance, per metreOutcomegoalConfoundersangle, body part, pressure, first-timeData: StatsBomb events
Question
How much does each extra metre of distance cut a shot's chance of scoring?
Why this example
Distance is continuous and tangled with angle, body part and pressure. Double machine learning strips those out of both sides with flexible models, then compares the leftovers.
Answer
Raw, each metre costs 0.77 points. After double ML, 0.32 points, with a range of 0.16 to 0.43. Most of the raw slope came from angle and body part, which change with distance.

Share of open-play shots that scored, by distance

Effect of one more metre, three ways (points)

Takeaway
  • For a continuous treatment, double ML predicts the treatment and the outcome from the confounders, then regresses leftovers on leftovers. It homes in on the truth fast.
  • Always report a confidence interval. For a yes/no treatment, use a doubly robust estimator.
9

Borrow a random nudge

instrumental variables · Wald estimator · weak instruments
The idea
  • Adjustment fails when a key confounder isn't measured. Instrumental variables are another way in.
  • An instrument is an independent source of variation in the treatment, like a random nudge that some units got.
Terms to know
Relevance
The instrument actually changes the treatment.
Exclusion restriction
The instrument has no road to the outcome except through the treatment.
Two-stage least squares
Predict the treatment from the instrument, then regress the outcome on that prediction.
Weak instrument
One that barely moves the treatment, so the estimate swings wildly.
9.1Instrumental variablesInstrumentempty stadiumTreatmentreferee card gapOutcomehome goal differenceUnmeasuredplayers' nerve, also moved by the crowdData: Club matches · Football-Data
Question
What is one card of home referee bias worth in goals?
Why this example
Bias can't be assigned and isn't measured directly. Empty stadiums shifted it without any club choosing, which is how an instrument works. It also shows the exclusion problem.
Answer
The card gap fell 0.30 and home goal difference fell 0.12, about 0.40 goals per card. Crowds also affect players, so treat it as an upper bound.

The nudge, the treatment, the outcome

Moves the treatmentCard gap fell from 0.30 to 0.01. Strong.As good as randomNo club picked when the pandemic hit.One road onlyFails: crowds also lift players. Read the answer as an upper bound.

Divide the nudge's effect on goals by its effect on cards

League by league: a weak nudge gives a wild answer

Each dot is a league: change in card gap vs change in home goal difference, empty vs adjacent seasons with fans. Red: leagues where cards barely moved.

9.2A weak instrumentInstrumentreferee's card habit in his other matchesTreatmentyellow cards in the matchOutcomegoals in the matchData: World Cup database · Fjelstul
Question
Do more yellow cards mean fewer goals?
Why this example
Referees are assigned, so a strict referee is a nudge towards more cards. It is also a textbook weak instrument, because each referee only does a few World Cup games.
Answer
The nudge barely moves cards: the first-stage F is 3.0. The estimate of −0.62 goals per card has a 95% range of ±0.91. A weak nudge gives a useless answer.

Referees grouped by strictness elsewhere: cards and goals in this match

Men's World Cups 1970 to 2022. 489 matches by 115 referees with at least 3 games. Strictness: the referee's yellow cards per match in his other games, against that tournament's average.

Takeaway
  • An instrument needs three things: it moves the treatment, nothing confounds it, and it reaches the outcome only through the treatment.
  • You also need a functional assumption, such as a linear effect. Weak instruments make estimates very noisy.
10

Every club has two futures

potential outcomes · no spillover (SUTVA) · counterfactuals · ladder of causation
The idea
  • Potential outcomes is the second big framework, common in economics and biostatistics. It is equivalent to the graph approach.
  • Each unit has an outcome under each treatment. You only ever see one of them.
Terms to know
Potential outcome
The result a unit would have under a given treatment, whether or not it got that treatment.
SUTVA
One unit's treatment doesn't change another unit's outcome, and each treatment means one thing.
Ignorability
Given the confounders, treatment is as good as random. A back-door adjustment set guarantees it.
Ladder of causation
Three rungs of questions: seeing (association), doing (intervention), imagining (counterfactual).
10.1Potential outcomesTreatmentrelegatedOutcomeElo a year laterData: ClubElo
Question
How strong would a relegated club be a year later had it stayed up?
Why this example
Each club near the line has two futures and shows one. Clubs that finished just above the line stand in for the missing future.
Answer
Clubs just above the line gained about 3 Elo. Against that, going down cost Leicester and Spezia about 80 Elo each. Each club's own cost stays unknowable.

Elo change over the next 12 months: relegated by 1.5 points or less

10.2No spillover (SUTVA)Treatmenthome side loses its crowdOutcomepoints per gameSpilloverthe away side in the same matchData: Club matches · Football-Data
Question
When home sides lost their crowds, who gained?
Why this example
League points are shared, so treating one side changes the other. That breaks the no-spillover assumption behind most effect estimates.
Answer
Home sides fell from 1.62 to 1.49 points a game and away sides rose from 1.11 to 1.25. Total points stayed at 2.73, so the home loss was the away gain.

Points per game, with fans vs empty stadiums

10.3Ladder of causationRung 1seeingRung 2doingRung 3imaginingData: World Cup database · Fjelstul
Question
Three questions about World Cup hosts: which can data answer?
Why this example
Hosting supports a question on every rung, from a plain pattern to one nation's alternative history.
Answer
Seeing: hosts take 2.07 points a game. Doing: against Elo expectations, hosting adds about 0.7. Imagining Qatar 2022 played somewhere else needs a model of that one team.

Three kinds of questions, each harder than the last

Takeaway
  • Potential outcomes suit individual effects and counterfactuals. Graphs are better for stating assumptions and choosing what to adjust for.
  • The framework rests on well-defined interventions and no interference between units.
11

When something starts at a line

regression discontinuity · synthetic control · difference-in-differences
The idea
  • Some decisions happen at a moment: a launch, a policy, a price change. Without an A/B test, time itself can supply a comparison.
  • Data can be cross-sectional, a single time series, or panel data that follows many units over time.
Terms to know
Regression discontinuity
Compare units just above and just below a cutoff.
Synthetic control
A weighted blend of untreated units, fitted to match the treated one before the event.
Difference-in-differences
The treated group's change minus the control group's change over the same period.
Parallel trends
Without the event, treated and control groups would have moved the same way.
11.1Regression discontinuityRunning variablepoints vs the safety lineTreatmentrelegatedOutcomeElo 12 months laterData: Club matches · Football-Data + ClubElo
Question
How much weaker is a club a year after relegation than one that just stayed up?
Why this example
The safety line is a sharp cutoff, and a point either side is close to luck. Clubs just above and below it are near twins.
Answer
About 52 Elo weaker, about 7 points of win expectancy against an equal side. The estimate holds for windows from ±3 to ±12 points.

Relegation: the club 1 point below vs the club 1 point above

Premier League, La Liga, Serie A, 2000-01 to 2024-25. Tables rebuilt from results. Dots: average per point of margin, sized by clubs.

11.2Synthetic controlTreated unitBarcelonaEventMessi leaves, August 2021Donors20 top clubs' EloData: ClubElo
Question
How strong would Barcelona have been if Messi had not left?
Why this example
One club, one date, no twin. A weighted blend of clubs that tracked Barcelona's Elo in 2015-21 stands in for the missing future.
Answer
Barcelona sat about 91 Elo below its stand-in in the first year. The club's money crisis hit the same summer, so this is the bundle, not Messi alone.

Barcelona vs a stand-in built from other clubs

11.3Difference-in-differencesTreatmentVAROutcomered cards per matchControlleagues not yet using VARData: Club matches · Football-Data
Question
Did VAR change red cards in Europe's big five leagues?
Why this example
VAR started in different seasons by league. Each season, leagues not yet using it act as the control, which removes shared trends.
Answer
No. The estimate is +0.01 red cards a match, within ±0.05, against a pre-VAR average of 0.23.

Red cards per match, by seasons since that league's VAR start

Start seasons: Serie A and Bundesliga 2017-18, La Liga and Ligue 1 2018-19, Premier League 2019-20. League and season fixed effects. Penalties aren't in this dataset.

11.4Difference-in-differences with a rule changeTreatment3 points for a win, from 1994Outcomelevel after 90 minutesControlknockout matches, with no points at stakeData: World Cup database · Fjelstul
Question
Did 3 points for a win cut draws at the World Cup?
Why this example
The rule changed group matches only. Knockout matches, with no points at stake, show what happened to draws anyway.
Answer
Group-stage draws fell 2.9 points after 1994, but knockout games level after 90 minutes fell 5.5. The difference-in-differences is +2.6: no sign the rule cut draws.

Share of matches level after 90 minutes, men's World Cups

1970 to 2022. Group matches include the second group stages of 1974 to 1982. Knockout matches level after 90 minutes went to extra time.

Takeaway
  • Regression discontinuity uses a cutoff and holds if nothing else jumps at the same point. Synthetic control blends other series that tracked the treated one before the event.
  • Difference-in-differences needs panel data and groups that moved in parallel before the event.
✓

Pick a method

cheat sheet
MethodThe ideaUse it whenBreaks whenHere
RandomizedexperimentA coin decides.A toss or draw assigns it.The winner of the toss then chooses.1
Compare within slicesadjustment, regressionHold the shared causes fixed.Strength and context are measured.Game state or another cause is missing.2 6
Predict both worldsS-learner, AIPWModel it, flip the treatment, predict again.Many confounders.The model includes things the treatment causes.4 8
Equal chancespropensity scoreCompare matches equally likely to get it.A yes/no treatment, pre-match data.Big favourites never fail to get it.5
Random nudgeinstrumental variableScale up a random nudge's effect.The treatment isn't measured cleanly.The nudge acts through another road.9
Just above vs just belowregression discontinuityA cutoff splits look-alikes.A table line or score decides.Clubs can steer which side they land on.11
Build a stand-insynthetic controlBlend clubs that tracked it before.One club or league is treated.Other things changed on the same day.11
Subtract the twin's changedifference-in-differencesBefore vs after, minus the control's change.Rollouts are staggered across leagues.Trends differed before the switch.11
■

Data

Club matches, results, cards, corners, shots, odds: Football-Data.co.uk, via xgabora/Club-Football-Match-Data-2000-2025 (2000-01 to Sep 2026, 38 divisions).

Club ratings: ClubElo, from the same repository.

Internationals, goal times and shootouts: martj42/international_results. National Elo ratings computed here from every match since 1872.

Shot events with xG: StatsBomb open data, World Cups 2018 and 2022, Euros 2020 and 2024.

World Cups 1930 to 2022, bookings, referees, hosts: jfjelstul/worldcup.

Transfer fees: Transfermarkt, via ewenme/transfers.

Empty stadiums: matches from 16 May 2020 to 30 Jun 2021. The 2019-20 games played in July 2020 count in 2019-20. Tables ignore points deductions and administrative relegations.