Farm data is full of patterns. Causal inference finds which are real causes, so you can back the practices that truly build soil and raise the nutrition in food.
Your path to Causalist
Finish a module to climb a step.
Short films, each with key points and a transcript. Watch in order, or start where your question is.
Why AI needs cause and effect, why a model can predict well and still give the wrong advice, and what machine learning and causal design each bring.
How today’s AI and causal inference share a root in probability, how causal inference began on farm plots and came together between 1974 and 2000, and why each now needs the other.
What the series covers and who it’s for, why telling a cause from a pattern matters at every link from farm to plate, and the journey ahead, module by module.
An AI that read the hospital instead of the lungs, and cattle that seemed to die from their antibiotics: why a pattern that predicts is not a cause, and what a confounder is.
What causal thinking gives AI, and what AI gives causal inference, through Greek cotton sowing advice and maize fertiliser in Ghana. Machine learning cleans up what you measured; design deals with the rest.
Two centuries of fair tests and arguments, from Lind’s sailors to the smoking debate, and the ideas they left us.
In 1747 James Lind gave sailors with scurvy six different remedies, and citrus worked. How a fair, controlled comparison can show that something works long before anyone knows why.
David Hume put a cause in terms of what would have happened without it. Why one of those two outcomes always stays hidden, and how correlation nearly pushed causation out of statistics.
Eijkman’s chickens and polished rice, Goldberger and pellagra: accidental changes in diet that showed how the way food is grown and processed can decide whether it nourishes.
Fisher and Neyman at Rothamsted, and a seaweed feed trial with Australian cattle: why letting chance allocate treatments, in blocks and with replicates, defeats confounders nobody has thought of.
Sewall Wright drew causes as arrows to study guinea pigs; his father Philip used an outside push to measure demand. How arrows make assumptions checkable, and what an instrument is.
Doll and Hill linked smoking to lung cancer; Fisher objected that a hidden cause might explain both. How Cornfield answered by asking how strong that hidden cause would need to be.
How to draw a causal map and read the roles variables play in it, from chains and forks to confounders and colliders.
What a causal map is, and why it is drawn before any data are analysed: boxes, arrows and the assumptions they put where others can check them, with Barn Door Farm’s published zinc map.
Chains and forks pass association along; colliders block it until you hold them fixed. The three shapes every causal map is built from, shown with zinc, bran and fibre in wheat.
How to find the back-door routes that would fool a comparison and close them without opening new ones, with Italian organic olives and Greek cotton. A covariate is a label, not a role.
A mediator sits on the path from cause to effect. Why adjusting for one removes part of the effect you want, explained with a farm-and-nutrition trial in Kenya.
Choosing which data to look at can create links that aren’t there. Collider and selection bias in laboratory samples, animals that reach slaughter and the studies that get published.
The roles that can’t simply be adjusted away: effect modifiers, instruments and proxies, with Ghana’s maize zones and cows’ own genes, and what to do about a cause nobody measured.
How a causal map turns a striking correlation on Barn Door Farm into rival explanations, an honest “not yet” and a plan for what to measure next.
The study designs that turn a question into an answer: trials, matching, before-and-after comparisons and nature’s own experiments, then one UK question asked all three ways.
Randomised trials on real farms: strips, plots, herds and whole communities. Why the unit you randomise matters, and why the outcome must be the one you actually care about.
Matching and weighting build a fair comparison without randomising, as with Italian organic olives and seed access in India. They balance what you measured, never what you didn’t.
Before and after needs a comparison. How difference-in-differences and interrupted time series estimate what would have happened anyway, with UK checkout rules, carbon labels and Mexico’s warning labels.
Sometimes the world allocates the treatment for you: John Snow’s cholera study, a farm-size threshold, California’s tobacco programme and the genes cows are born with.
When one farm’s treatment reaches its neighbour’s outcome, simple comparisons go wrong. Spillovers from Bt maize and New Zealand farmer groups, and how to design a study around them.
Observational studies said beta-carotene and hormone therapy protected health; trials said otherwise. Why observation misled, and how designing the analysis as the trial you wish you’d run helps.
One UK farming question asked three ways: a randomised badger culling trial, a comparison across 52 policy areas, and a hard look at what the treatment actually was. Why the answers differ.
What machine learning adds to causal inference, how to stress-test an answer, and what AI can and can’t do with causes.
Double machine learning, step by step: two models, their leftovers and cross-fitting. Why small errors barely move the answer, and the three assumptions no machinery removes.
Averages can hide big differences. How causal forests find where an effect is bigger or smaller, as with maize in Ghana, how honesty keeps them truthful, and what they can’t tell you.
Four ways to try to break a causal estimate before anyone relies on it, from a fake treatment and a negative control to asking how strong a hidden confounder would need to be.
What causal discovery and language models can and can’t do. They can draft a causal map; experts, tests and good design still decide whether it is right.
Following the chain from soil to health, and choosing the smallest next step that can answer a question.
Each link from soil to health needs its own evidence. Why crop minerals appear to have fallen, what the Broadbalk archive shows about breeding for yield, and how growing can change eating.
Finland’s selenium fertiliser, orange-fleshed sweet potato and a farm-and-nutrition trial in Kenya: how farming has deliberately changed what people eat, and why those cases convince.
A strong correlation starts an investigation; it doesn’t end one. How to choose the smallest next step that can answer the question, and design a fair test when one is needed.
The series ends where it began, with an AI that was right for the wrong reason: the seven things it takes to be right for the right reason, and why each matters.
Yield maps, soil tests and AI show what goes together. Causal inference shows what makes the difference, so money, land and effort go into the changes that work.
Yield maps, soil tests and satellite images show what goes together. Causal inference shows what makes the difference. It is the same leap that turned medicine from habit into evidence, now applied from field to plate, where it can show which practices build soil and which put more nutrition into food.
Machine learning cleans up what you measured. Design deals with the rest.
From P2 · Machines and causes
Every breakthrough below has its own film in the course. The timeline scrolls sideways.
Medicine, statistics and scienceField and food
Six remedies for scurvy, compared fairly. Citrus worked.
Film 1.1One thing regularly followed by another. Later editions add: what if the first had not been?
Film 1.2Rothamsted’s wheat experiment begins, still running today.
Film 1.4Two water companies served the same streets: a natural experiment in cholera.
Film 3.4A ship sails the same route on a better diet, and beriberi almost disappears.
Film 1.3Letting chance allocate treatments, in blocks and with replicates.
Film 1.4Correlation and causation: causes as arrows, so assumptions can be checked.
Film 1.5Smoking and lung cancer, and Fisher’s hidden-cause objection.
Film 1.6Farming deliberately changing what people eat.
Film 5.2Two models, their leftovers and cross-fitting.
Film 4.1Draft the map with AI; prove it with design. From pattern to plan.
Film 5.3Every causal map is built from a handful of shapes. Pick a term to see its shape.
Something that affects both a decision and its outcome, so a comparison mixes the treatment’s effect with its own. At a feedlot, the risk a vet sees on arrival drives both which groups get antibiotics and which animals die. When the confounder is the very reason for treating, it is called confounding by indication.
Watch film 2.3 · Confounders and the back doorA variable on the path from treatment to outcome: how the effect gets there, like leaf zinc between a spray and the grain, or diet between farm support and child growth. Adjusting for a mediator blocks the route the treatment works through, so the rule is never to adjust for anything the treatment causes.
Watch film 2.4 · MediatorsA variable with two arrows pointing into it, such as whether a grain sample reaches the lab when either good soil or a new treatment can send it there. A collider blocks association between its causes until you hold it fixed, by adjusting for it or selecting on it. Then a link appears from nowhere.
Watch film 2.5 · Colliders and selectionSomething that pushes the treatment around but has no other route to the outcome, like growing conditions shifting the supply of flaxseed in Philip Wright’s 1928 study, or a cow’s genes for milk yield. An instrument lets you measure an effect from outside, but it fails if it leaks through a back route.
Watch film 2.6 · Modifiers, instruments and the unmeasuredAny route between a treatment and an outcome that starts with an arrow pointing into the treatment, such as organic certification, back to farm size, and on to efficiency. Back doors let through association that isn’t the treatment’s effect, so each must be closed by holding fixed a variable that sits on it.
Watch film 2.3 · Confounders and the back doorWhat would have happened instead. A field had an extra pass of nitrogen and made thirteen per cent protein: would it have made thirteen per cent without it? Counterfactual questions sit on the top rung of Pearl’s ladder, and every causal effect compares an outcome that happened with one that didn’t.
Watch film 1.2 · “If the first had not been”News from Vitagri on the science of growing healthier food.
Prefer to read online? Vitagri also writes on Substack. See our privacy policy for how we use your email.
Course 1. The predictive and forecasting models behind nutrient-dense food: what to measure on a farm and how to read it, with certificates at two levels.
Go to Data Agronomy