Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

bzamtwhmspm3pn3/agricultural-forecasting-africa

Domain:

agriculture

Record type:

softwarepaper
Creator:
bza
Host:
Code and data for "Structural Dynamics and Predictive Performance of Agricultural Production in Sub-Saharan Africa" - ARIMA-GARCH, XGBoost, and structural break analysis for agricultural forecasting under data constraints # Agricultural Forecasting in Sub-Saharan Africa **Structural Dynamics and Predictive Performance of Agricultural Production in Sub-Saharan Africa: A Robust Forecasting Approach Under Data Quality Constraints** This repository contains the full reproducible codebase for a methodological framework that performs robust agricultural production forecasting in data-constrained environments. The framework combines rigorous quality control, structural break detection, and formal model comparison to deliver reliable forecasts for food security planning in Sub-Saharan Africa. The study uses national agricultural production data (1961–2024) from the FAOSTAT database for five Southern African countries (Angola, Democratic Republic of Congo, Malawi, Mozambique, Zambia) and six crops (maize, cassava, beans, sweet potato, soybean, coffee). ## Methods - **Data quality control** with explicit inclusion/exclusion criteria: minimum 20 observations, maximum 3-year gaps, MAPE 19 approved, 73% approval rate). - **ARIMA(-GARCH)** and **XGBoost** forecasting models with expanding-window validation. - **Bai-Perron structural break detection** integrated as a diagnostic and model-augmentation tool. - **Diebold-Mariano tests** for formal model comparison and selection (XGBoost selected only where statistically superior, e.g., Angola Maize, p = 0.0127). ## Repository structure ``` . ├── data/ │ ├── agricultural_production_data.xlsx # FAOSTAT-based dataset (1961-2024) │ └── final_results.csv # Model results (MAPE, DM p-values, projections) ├── notebooks/ │ ├── 01_agricultural_forecasting_analysis.ipynb # Main analysis (quality control, ARIMA/XGBoost, breaks, DM) │ ├── 03_artigo_producao_agricola_artigo_revisto.ipynb # Internationalized (English) analysis release │ ├── 04_graficos_de_diagnosticos.ipynb # Diagnostic plots (residuals, DM, validation) │ └── 05_artigo_cientifico_scientific_african.ipynb # Graph extractor for LaTeX └── figures/ └ …

Visit

github.com

Licenses

MIT

Similar

Forecasting agricultural drought using VCI and VHI across AfricaMomahmoses/agricultural-yield-forecastingMitigating Low Agricultural Productivity of Smallholder Farms in Africa: Time-Series Forecasting for Environmental StressorsForecasting the Contribution Agricultural Sector on the Gross Domestic Product, SudanDeveloping crop yield forecasting models for four major Ethiopian agricultural commoditiesAPPLICATION OF MACHINE LEARNING MODELS IN FORECASTING AGRICULTURAL PRODUCTIVITY IN NIGERIA

Forecasting agricultural drought using VCI and VHI across Africa

<p>Droughts are complex and a major threat globally as they can cause substantial dama

Momahmoses/agricultural-yield-forecasting

||Satellite NDVI and EVI combined with LightGBM for crop yield prediction in North-Central and North

Mitigating Low Agricultural Productivity of Smallholder Farms in Africa: Time-Series Forecasting for Environmental Stressors

African smallholder farmers have struggled with low agricultural productivity for decades, partly du

Forecasting the Contribution Agricultural Sector on the Gross Domestic Product, Sudan

The objective of this study was to forecast the contribution of the Sudanese agricultural sector on

Developing crop yield forecasting models for four major Ethiopian agricultural commodities

APPLICATION OF MACHINE LEARNING MODELS IN FORECASTING AGRICULTURAL PRODUCTIVITY IN NIGERIA

Agricultural productivity remains the backbone of Nigeria's economy, employing roughly a third of th