A yield gap is the difference between what a field could produce and what it actually produces. Agronomists increasingly estimate these gaps from satellite records. The usual recipe takes many years of fields, defines an "attainable" yield as what the best comparable fields achieved, and reads each field's shortfall as a gap that better management could close. These numbers guide where extension money and policy attention go. Yet no one checks them the way clinical researchers check a risk score. The best fields in any year are partly lucky (good local rain, a favorable satellite pass, measurement noise), and a gap measured against those same fields inherits that luck. Our claim is that satellite-derived field yield gaps are systematically optimistic, in the same sense that a prediction model scores better on its training data than on new data, and that this optimism can be measured and removed.
The proposal treats each estimated gap as a prediction: "this field is leaving $g$ tonnes per hectare on the table, and some of that comes back if management changes." We then test that prediction in two ways. The first is whether the gap persists in years the estimate never saw. The second is whether fields that later change practice actually gain more when their estimated gap was larger. Clinical researchers routinely subtract this kind of optimism using the bootstrap, which refits a model on many resamples of the data drawn with replacement and measures how much performance drops when each refit is scored on the original data. They also report calibration curves, which check whether predicted risk matches observed risk. Yield-gap studies report neither. We borrow that machinery and adapt it to fields that are correlated in space and time. The result is the first optimism-corrected, calibration-checked measure of field yield gaps.
Core Claim
The direction that motivates this work is retrospective, satellite-based causal analysis of farm fields. Precrop Payoffs builds field-level cohorts in four breadbaskets (US 2008–2021, Canada 2011–2020, France 2015–2021, Northeast China 2017–2019). It uses the Green Chlorophyll Vegetation Index (GCVI, a satellite greenness measure calibrated to county yield statistics) as the yield proxy, and causal forests (tree ensembles that estimate how a treatment effect varies across units) to estimate rotation benefits, reporting a median net rotation benefit of about 4.5%. That paper relies on the forests' large-sample theory for uncertainty. It never asks whether its fitted quantities are optimistic on the fields used to fit them. A second strand shows why management-driven gaps matter. Regional importance of crop yield constraints combined a wheat simulation model with spatial statistics in Mexico's Yaqui Valley and attributed 70–90% of spatial yield variance to farmer management rather than soil. That study used Monte Carlo perturbation but did not validate its empirical regressions or account for why farmers chose the practices they did. A third strand applies the matching logic of clinical cohorts to farm data. Liang et al. combined stochastic frontier analysis (estimating the best output achievable from given inputs) with propensity score matching on 610 cattle households and found technical efficiency of 0.902 among contract farmers versus 0.817 among non-participants. That study is cross-sectional, and its frontier is never resampled.
The method we reuse comes from clinical prediction. Studies such as the post-stroke cognitive impairment nomogram and the AIDS-associated lymphoma nomogram run 1,000-iteration bootstrap loops to report optimism-corrected discrimination and calibration. Those studies predict individual risk, not decomposed system gaps, and they assume independent patients.
What is new here is the combination of three things. We treat the gap itself as the object to validate. We define a validation target that has outcomes, namely future years plus a matched cohort of fields that switch practice. And we adapt bootstrap optimism correction to two features of yield data that break the standard version. Fields are spatially clustered, and the frontier is an upper quantile, which an ordinary bootstrap handles poorly because a resample can never exceed the sample maximum.
Research Program
We first define the gap estimator under test. For field $i$ in year $t$, the attainable yield is the 90th percentile of GCVI-derived yield among fields in the same climate zone, soil class, crop and year. The estimated gap $\hat g_i$ is the field's average shortfall from that frontier over its fitting years. We deliberately use a high quantile rather than the maximum. The maximum is where the bootstrap is known to break, and the extreme-value ceiling of 17.60 t/ha for commercial wheat reported by Mitchell et al. serves only as a sanity bound: any frontier above it is flagged as noise.
Validation then has two targets. The first is persistence. On held-out years, we regress each field's realized shortfall on its estimated gap. The second is closure. We restrict to fields that switch from monoculture to a two-crop rotation and compare each to non-switchers matched by propensity score on pre-switch yields, weather, soil and location. A difference-in-differences gain $\Delta_i$ (the switcher's change in yield minus the matched controls' change) is then regressed on $\hat g_i$:
$$\Delta_i = a + b\,\hat g_i + \varepsilon_i,$$
where $b$ is the calibration slope. For persistence, $b=1$ means the gap is fully real. For closure, $b$ measures how much of the gap rotation recovers, and we expect $0<b<1$. Optimism appears as a slope fit on the same fields that defined the frontier that is larger than the slope on new data.
The bootstrap is adapted in three ways. First, we resample whole farm clusters (spatial blocks of contiguous fields) rather than single fields, so that spatial correlation survives resampling. Second, we refit the frontier and the gap inside every replicate, because frontier selection is where optimism enters. Third, we run an m-out-of-n variant, which draws resamples smaller than the original sample, as a sensitivity check on the upper-quantile frontier. In each of $B=1000$ replicates we compute the optimism as the bootstrap-sample slope minus the original-data slope, $O_b = b_{\text{boot}} - b_{\text{orig}}$. The corrected slope is the apparent slope minus the mean of $O_b$, and the spread of replicates gives an interval.
Finally, we decompose the apparent gap into three parts: a persistent component that survives correction, a part removed as optimism, and a residual that is year-specific shock. We report the decomposition by country, crop, and wet versus dry years. Precrop Payoffs found rotation benefits larger in wet years, which makes the wet/dry split a natural place to look for differences.
Data
The main cohort rebuilds a Precrop-style field panel from Landsat and Sentinel-2 GCVI, TerraClimate weather and national statistics for the US and France. These are the longest panels in that paper, and long panels are needed for held-out years and pre/post switching windows. As far as the file shows, the Precrop cohort itself is not a released resource, so we reconstruct it.
The Yaqui Valley data, which include management surveys of 74 farmers, test whether corrected gaps track recorded management such as planting date and nitrogen. This is exactly the small-sample regime where clinical work turns to the bootstrap instead of data splitting.
As a secondary check, we apply the same optimism loop to the US Soybean (86,101 sequences) and EU-27 datasets from Benchmarking Tabular Foundation Models for Agricultural Yield Prediction. That benchmark reports apparent R² of 0.8462 for AutoGluon on soybean and 0.9107 for TabPFNv2 on EU-27, without optimism correction. This tests whether the yield predictors sometimes used to build frontiers are themselves inflated.
Baselines
The naive reference point is the apparent gap: the frontier and gaps computed on all years, with calibration evaluated on the same fields. This is how gaps are reported today. The proposal beats it if the corrected persistence slope is reliably below the apparent one, with a bootstrap interval excluding zero optimism. If no optimism is found, the main claim is false, and that is worth publishing too.
The strongest simple competitor is the multi-year averaged gap, which averages each field's yields over many years before computing the shortfall, optionally with empirical-Bayes shrinkage toward the zone mean. This reduces luck directly and needs no resampling. We run it on identical fields and years, with the shrinkage strength tuned by the same held-out-year procedure. The proposal must match its persistence slope and also supply a valid interval, measured by coverage in the simulation check described under Proposed Experiments. The proposal must also show the shrinkage rule cannot be chosen without some validation loop.
The strongest existing method for predicting who gains from rotation is a causal forest in the style of Precrop Payoffs. It estimates field-level rotation effects directly, without a gap. It receives the same covariates, the same pre-switch windows and an equal tuning budget. The comparison is the correlation of each predictor with matched difference-in-differences gains among switchers, and whether $\hat g_i$ adds predictive value once the forest's estimate is included. The only reported number on Lacuna is that paper's roughly 4.5% median rotation benefit. No reported result found on Lacuna for out-of-sample calibration of field-level rotation effects or yield gaps.
Spatial-block and leave-year-out cross-validation are the competing validation protocols. They run on the same folds, with matched compute.
Two ablations isolate the key ingredients. The first uses an ordinary bootstrap that resamples individual fields (non-block), which tests whether respecting spatial clusters matters. The second resamples but keeps the frontier fixed, which tests whether refitting the frontier inside each replicate is where the optimism is captured.
Why not just…?
Why not just run randomized field trials? Trials remove confounding, but they cover few sites and years. Precrop Payoffs notes that trials miss how benefits vary with real weather and management, and the Yaqui study calls landscape-scale field data collection prohibitively expensive. More to the point, the question here is about gaps already being estimated from observational data. A trial cannot validate a satellite gap map; only outcome data on the same fields can.
Why not just use leave-year-out or spatial-block cross-validation? This is a real threat. For the persistence target alone, held-out-year validation may recover the same corrected slope at lower cost, and if the two agree on the US and France panels, we will recommend it. The bootstrap earns its place in two settings. The first is the 74-farm Yaqui data, where clinical practice shows that splitting destabilizes estimates. The second is reporting intervals on the calibration slope, which cross-validation does not provide. The experiments report both protocols side by side.
Why not just average yields over years before computing gaps? Averaging attacks luck directly and may remove most of the optimism. We treat it as the main baseline, not a strawman. If the averaged gap is as well calibrated as the corrected one, the contribution shrinks to showing that raw gaps are optimistic and by how much. That finding still changes practice, and the experiments are built to tell these outcomes apart.
Why not just skip gaps and estimate rotation effects with a causal forest? For the narrow question "who gains from rotation," a causal forest may simply be better, and we test this directly. A gap, however, covers all management, not one treatment, and is what policy tools report. The incremental-value test shows whether the gap carries information beyond the forest's estimate.
Why not use the integer-programming causal bootstrap? Integer Programming for Generalized Causal Bootstrap Designs captures uncertainty from how treatment was assigned and restored 95% coverage where other methods gave 0% for 50 units. Its solves take from 22 seconds to 11 minutes at that size, and the problem is computationally hard, so it cannot run on millions of fields. We use it only as a sensitivity check at the county-aggregate level, with roughly 50 counties per state, on the switcher analysis.
Proposed Experiments
The decisive check is the persistence experiment on the US and France panels. It compares the apparent, averaged and bootstrap-corrected calibration slopes on held-out years. Optimism worth reporting means the corrected slope is meaningfully below the apparent slope, with an interval excluding zero.
The second check is the switcher experiment. Here larger corrected gaps must predict larger matched rotation gains, beyond the causal-forest estimate.
The third check is the Yaqui test. Corrected gaps should correlate with recorded planting-date and nitrogen deviations more strongly than apparent gaps do.
A simulation check plants a known persistent gap plus noise into semi-synthetic fields with realistic spatial correlation. It verifies that the block bootstrap with frontier refitting achieves nominal coverage where the non-block version undercovers.
The secondary tabular experiment reports optimism-corrected R² beside the published apparent values for AutoGluon and TabPFNv2, using farm-level blocks.
References
- Precrop payoffs: causal machine learning reveals large but variable yield benefits of crop rotation in major breadbaskets
- Regional importance of crop yield constraints: Linking simulation models and geostatistics to interpret spatial patterns
- Can contract farming improve farmers’ technical efficiency and income? Evidence from beef cattle farmers in China
- A nomogram for predicting post-stroke cognitive impairment no dementia in patients with first-ever mild ischemic stroke
- Development of a novel prognostic nomogram for AIDS-associated diffuse large B-cell lymphoma: a retrospective study from northern China
- Operating at the extreme: estimating the upper yield boundary of winter wheat production in commercial practice
- Benchmarking Tabular Foundation Models for Agricultural Yield Prediction
- Integer Programming for Generalized Causal Bootstrap Designs