| --- |
| license: mit |
| task_categories: |
| - time-series-forecasting |
| tags: |
| - nigeria |
| - agriculture |
| - food-systems |
| - synthetic |
| - agricultural-markets-and-pricing |
| size_categories: |
| - 100K<n<1M |
| data_type: synthetic |
| --- |
| |
| > ⚠️ **Synthetic dataset** — Parameterized from published SSA literature, not real observations. Not suitable for empirical analysis or policy inference. |
|
|
| # Nigeria Agriculture – Farm Gate Prices |
|
|
| ## Dataset Description |
|
|
| Farmer prices vs market prices, middleman margins. |
|
|
| **Category**: Agricultural Markets & Pricing |
| **Rows**: 140,000 |
| **Format**: CSV, Parquet |
| **License**: MIT |
| **Synthetic**: Yes (generated using reference data from FAO, NBS, NiMet, FMARD) |
|
|
| ## Dataset Structure |
|
|
| ### Schema |
|
|
| - **farm_id**: string |
| - **crop**: string |
| - **date**: string |
| - **farm_gate_price_ngn_kg**: float |
| - **market_price_ngn_kg**: float |
| - **margin_pct**: float |
| |
| ### Sample Data |
| |
| ``` |
| | farm_id | crop | date | farm_gate_price_ngn_kg | market_price_ngn_kg | margin_pct | |
| |:------------|:--------|:-----------|-------------------------:|----------------------:|-------------:| |
| | FARM-006016 | soybean | 2022-06-02 | 30 | 642.24 | 52.2 | |
| | FARM-040866 | onion | 2022-11-03 | 684.97 | 607.89 | 44.4 | |
| | FARM-018843 | rice | 2022-10-01 | 166.57 | 599.51 | 31 | |
| | FARM-033325 | sorghum | 2024-06-14 | 402.58 | 814.02 | 52.6 | |
| | FARM-008010 | maize | 2023-01-20 | 499.65 | 949.56 | 53.2 | |
| ``` |
| |
| ## Data Generation Methodology |
| |
| This dataset was synthetically generated using: |
| |
| 1. **Reference Sources**: |
| - FAO (Food and Agriculture Organization) - crop yields, production data |
| - NBS (National Bureau of Statistics, Nigeria) - farm characteristics, surveys |
| - NiMet (Nigerian Meteorological Agency) - weather patterns |
| - FMARD (Federal Ministry of Agriculture and Rural Development) - extension guides |
| - IITA (International Institute of Tropical Agriculture) - agronomic research |
| |
| 2. **Domain Constraints**: |
| - Crop calendars and phenology (planting/harvest windows) |
| - Agro-ecological zone characteristics (Sahel, Sudan Savanna, Guinea Savanna, Rainforest) |
| - Nigeria-specific realities (smallholder dominance, market dynamics, conflict zones) |
| - Statistical distributions matching national agricultural patterns |
| |
| 3. **Quality Assurance**: |
| - Distribution testing (KS test, chi-square) |
| - Correlation validation (rainfall-yield, fertilizer-yield, yield-price) |
| - Causal consistency (DAG-based generation) |
| - Multi-scale coherence (farm → state aggregations) |
| - Ethical considerations (representative, unbiased) |
| |
| See `QUALITY_ASSURANCE.md` in the repository for full methodology. |
| |
| ## Use Cases |
| |
| - **Machine Learning**: Yield prediction, price forecasting, pest detection, supply chain optimization |
| - **Policy Analysis**: Agricultural program evaluation, subsidy impact assessment, food security planning |
| - **Research**: Climate-agriculture interactions, market dynamics, technology adoption patterns |
| - **Education**: Teaching agricultural economics, data science applications in agriculture |
| |
| ## Limitations |
| |
| - **Synthetic data**: While grounded in real distributions, individual records are not real observations |
| - **Simplified dynamics**: Some complex interactions (e.g., multi-generational pest populations) are simplified |
| - **Temporal scope**: Covers 2022-2025; may not reflect longer-term trends or future climate scenarios |
| - **Spatial resolution**: State/LGA level; does not capture micro-level heterogeneity within localities |
| |
| ## Citation |
| |
| If you use this dataset, please cite: |
| |
| ```bibtex |
| @dataset{nigeria_agriculture_2025, |
| title = {Nigeria Agriculture – Farm Gate Prices}, |
| author = {Electric Sheep Africa}, |
| year = {2025}, |
| publisher = {Hugging Face}, |
| url = {https://huggingface.co/datasets/electricsheepafrica/nigerian_agriculture_farm_gate_prices} |
| } |
| ``` |
| |
| ## Related Datasets |
| |
| This dataset is part of the **Nigeria Agriculture & Food Systems** collection: |
| - https://huggingface.co/collections/electricsheepafrica/nigeria-agriculture-and-food-systems |
| |
| ## Contact |
| |
| For questions, feedback, or collaboration: |
| - **Organization**: Electric Sheep Africa |
| - **Collection**: Nigeria Agriculture & Food Systems |
| - **Repository**: https://github.com/electricsheepafrica/nigerian-datasets |
| |
| ## Changelog |
| |
| ### Version 1.0.0 (October 2025) |
| - Initial release |
| - 140,000 synthetic records |
| - Quality-assured using FAO/NBS/NiMet reference data |
| |