Problem generation over the priority set and countries
Problem generation over the priority set and countries, version 1.0.0: 7 conclusions in this build; method status provisional.
Coverage: 7 conclusions in this build- ID
m:problems.generate- Version
- 1.0.0
- Kind
- inclusion rule
- Status
- provisional
- Model class
- inclusion rule
- How inputs co-vary
- none: deterministic rule evaluation against cur_problem_rule thresholds over observed series and upstream conclusions
- Review grain
- 1 review per conclusion row
- Run review
- not yet reviewed: the core holds no run review of version 1.0.0
- Released
- missing
Description
Generates 1 inclusion_rule conclusion per gap kind (yield_gap, loss, supply_concentration, regulatory_barrier, substitution_exposure, price_volatility, input_dependence) listing generated problems where measuring variables cross curated cur_problem_rule thresholds as scope_cell rows with derived_value gap metrics and result_absent rows where uncomputable (04 section 24; fixes 23 and 24; package C20).
Formula
missing: not in the method registry
Parameters
| Parameter | Default | Range tested | Unit | Basis |
|---|---|---|---|---|
min_price_points | 3 | n/a | count | minimum annual price points required inside the 10-year window to compute CV |
price_window_years | 10 | n/a | years | trailing window for 10-year unit price coefficient of variation |
stage_ordinal_min | 2 | n/a | index | minimum lane_stage ordinal (2 = pilot) required alongside loser share for substitution_exposure |
window_years | 3 | n/a | years | trailing window for yield, production, imports, and loss averaging (04 section 24) |
yield_percentile | 0.9 | 0 to 1 | share | quantile within M49 subregion for reference_yield (numpy linear interpolation) |
Assumptions
- structural: Cells cover each priority unit (from m:matters.priority_set) x country with production or imports in the trailing 3-year window plus US states (dk:place:us-st-*) from USDA NASS; controlled units stay out with R_CONTROLLED (04 section 24).
- structural: input_dependence evaluates N, P2O5, and K2O x country using C17 var:idr.country_nutrient >= 0.5 and var:hhi.input_export_value.country >= 2,500; input_dependence stays in params.gap_kind rather than problem_attr (plan audit fix 24).
- data: yield_gap and loss_share use compute/kit/gap.py (percentile_linear, reference_yield, yield_gap, domestic_supply, loss_share), shared identically with C11 (plan audit fix 23). yield_gap uses M49 subregion 90th percentile of 3-year mean yields, or GAEZ attainable yield where admitted.
- parameter: Thresholds come from curated cur_problem_rule rows (yield_gap >= 0.25, loss >= 0.10, supply_concentration IDR > 0.5 & HHI > 2500, regulatory_barrier >= 0.20, substitution_exposure e_c >= 0.05 & stage >= pilot, price_volatility CV >= 0.25, input_dependence IDR >= 0.5 & HHI >= 2500). No threshold or problem is hand-picked.
- data: Cells whose measuring variable cannot be computed write result_absent explaining why; no missing value ever becomes 0.
Tested domain
From the parameter ranges: yield_percentile 0 to 1 share.
What this method leaves out
- sub-annual seasonal yield variation outside USDA NASS / QCL annual figures, informal non-market food losses not recorded in FBS, multi-commodity cross-price substitution elasticities, and farmer-level heterogeneity within a country or US state
Inputs
- Sources
src:fao_fpma; FAOSTAT Food Balance Sheets, new and historic (FBS and FBSH); FAOSTAT Producer Prices (PP); FAOSTAT Production: Crops and livestock products (QCL);src:gaez;src:usda_nass;src:wb_pinksheet- Curated tables
conversions,crosswalk,places,problems
Variables
- Closed-gate import share
var:problem.closed_gate_import_share - Nutrient input dependence problem
var:problem.input_dependence - Substitution lane loser share
var:problem.lane_loser_share - Loss share of domestic supply
var:problem.loss_share - 10-year price coefficient of variation
var:problem.price_cv_10y - Import supply concentration problem
var:problem.supply_concentration - Yield gap
var:problem.yield_gap
Version history
| Version | Status | Released | Replaces | Conclusions in this build | Run review |
|---|---|---|---|---|---|
| 1.0.0 current | provisional | missing | n/a | 7 | not yet reviewed: the core holds no run review of version 1.0.0 |
Conclusions in this build
| Conclusion | First variable | Value | Period | Status |
|---|---|---|---|---|
| m:problems.generate gap_kind substitution_exposure | not assessed in this build | proposed | ||
| m:problems.generate gap_kind input_dependence | not assessed in this build | proposed | ||
| m:problems.generate gap_kind price_volatility | 10-year price coefficient of variation | unreviewed | 2018 to 2024 | proposed |
| m:problems.generate gap_kind loss | Loss share of domestic supply | unreviewed | 2021 to 2023 | proposed |
| m:problems.generate gap_kind supply_concentration | Import supply concentration problem | unreviewed | 2023 | proposed |
| m:problems.generate gap_kind regulatory_barrier | not assessed in this build | proposed | ||
| m:problems.generate gap_kind yield_gap | Yield gap | unreviewed | 2022 to 2024 | proposed |