Home / Academy / Causal inference
Vitagri Academy · Causal inference: from field to plate

Discover what really grows healthier soil and more nourishing food

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.

Free films, key points and transcripts. No sign-up.

Your path to Causalist

  1. ScepticPrologue
  2. Fair-testerModule 1
  3. Map-makerModule 2
  4. Trial designerModule 3
  5. AnalystModule 4
  6. CausalistModule 5

Finish a module to climb a step.

The course

From the first fair test to the nourishing harvest

Short films, each with key points and a transcript. Watch in order, or start where your question is.

PrologueWhy it matters now

18 min

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.

  1. Preface

    Preface: AI and the question of cause

    More…

    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.

  2. Introduction

    Introduction: from field to plate

    More…

    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.

  3. Film P1

    Right for the wrong reason

    More…

    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.

  4. Film P2

    Machines and causes

    More…

    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.

Module 1Where the idea came from

25 min

Two centuries of fair tests and arguments, from Lind’s sailors to the smoking debate, and the ideas they left us.

  1. Film 1.1

    1747: twelve sailors and a cure nobody could explain

    More…

    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.

  2. Film 1.2

    “If the first had not been”

    More…

    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.

  3. Film 1.3

    Hidden in the food

    More…

    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.

  4. Film 1.4

    The wheat field

    More…

    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.

  5. Film 1.5

    Arrows and instruments

    More…

    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.

  6. Film 1.6

    Smoking and the sceptic

    More…

    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.

Module 2Thinking in causal maps

31 min

How to draw a causal map and read the roles variables play in it, from chains and forks to confounders and colliders.

  1. Film 2.1

    Draw it before you analyse it

    More…

    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.

  2. Film 2.2

    Three shapes

    More…

    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.

  3. Film 2.3

    Confounders and the back door

    More…

    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.

  4. Film 2.4

    Mediators

    More…

    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.

  5. Film 2.5

    Colliders and selection

    More…

    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.

  6. Film 2.6

    Modifiers, instruments and the unmeasured

    More…

    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.

  7. Film 2.7

    How the map changes the work

    More…

    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.

Module 3Getting an answer: study designs

26 min

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.

  1. Film 3.1

    The trial on the farm

    More…

    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.

  2. Film 3.2

    Comparing like with like

    More…

    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.

  3. Film 3.3

    Before and after, with a comparison

    More…

    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.

  4. Film 3.4

    Nature’s experiments

    More…

    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.

  5. Film 3.5

    When neighbours matter

    More…

    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.

  6. Film 3.6

    When observation lied

    More…

    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.

  7. Film 3.7

    The badger question: a UK case

    More…

    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.

Module 4Machines and causes, in depth

15 min

What machine learning adds to causal inference, how to stress-test an answer, and what AI can and can’t do with causes.

  1. Film 4.1

    Double machine learning, step by step

    More…

    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.

  2. Film 4.2

    Who benefits?

    More…

    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.

  3. Film 4.3

    Try to break your own answer

    More…

    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.

  4. Film 4.4

    Can AI find causes?

    More…

    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.

Module 5Soil to plate

16 min

Following the chain from soil to health, and choosing the smallest next step that can answer a question.

  1. Soilminerals and biology
  2. Cropwhat the plant takes up
  3. Foodwhat reaches the plate
  4. Healthwhat the body gains
  1. Film 5.1

    The chain from soil to health

    More…

    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.

  2. Film 5.2

    When farming changed the plate

    More…

    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.

  3. Film 5.3

    From a pattern to a plan

    More…

    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.

  4. Film 5.4

    What it takes to do this well

    More…

    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.

Why it matters

For a century, farming followed patterns. Now it can find causes.

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.

Why it’s a breakthrough

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.

Patterns alone

Look convincing, and mislead

  • An AI that read the hospital instead of the lungs, and scored well.
  • Cattle that seemed to die from their antibiotics.
  • Observation said beta-carotene protected health. Trials said otherwise.
With causal inference

Reveal what a change will really do

  • Know which practice raised the minerals in a crop, and by how much.
  • See through the hidden causes, like soil and weather, that fool a simple comparison.
  • Put AI and farm data to work on decisions you can stand behind.

Machine learning cleans up what you measured. Design deals with the rest.

From P2 · Machines and causes
Where the idea came from

Three centuries of fair tests, now reaching the farm

Every breakthrough below has its own film in the course. The timeline scrolls sideways.

Medicine, statistics and scienceField and food

  1. 1747

    Lind’s twelve sailors

    Six remedies for scurvy, compared fairly. Citrus worked.

    Film 1.1
  2. 1748

    Hume defines a cause

    One thing regularly followed by another. Later editions add: what if the first had not been?

    Film 1.2
  3. 1843

    Broadbalk is sown

    Rothamsted’s wheat experiment begins, still running today.

    Film 1.4
  4. 1854

    Snow and the water supply

    Two water companies served the same streets: a natural experiment in cholera.

    Film 3.4
  5. 1884

    Takaki changes the navy’s diet

    A ship sails the same route on a better diet, and beriberi almost disappears.

    Film 1.3
  6. 1919

    Fisher comes to Rothamsted

    Letting chance allocate treatments, in blocks and with replicates.

    Film 1.4
  7. 1921

    Wright draws arrows

    Correlation and causation: causes as arrows, so assumptions can be checked.

    Film 1.5
  8. 1950

    Doll and Hill

    Smoking and lung cancer, and Fisher’s hidden-cause objection.

    Film 1.6
  9. 1984

    Selenium in Finland’s fertiliser

    Farming deliberately changing what people eat.

    Film 5.2
  10. 2018

    Double machine learning

    Two models, their leftovers and cross-fitting.

    Film 4.1
  11. Now

    Causes on the farm

    Draft the map with AI; prove it with design. From pattern to plan.

    Film 5.3
Glossary

The language of cause, drawn

Every causal map is built from a handful of shapes. Pick a term to see its shape.

Confounder

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 door
ZSOIL QUALITYXPRACTICEYYIELD
Fork · Z → X and Z → Y
Open the full glossary
Keep in touch

Follow the change in farming

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.

Also in the Academy

Data Agronomy

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