Forecasting Spanish Olive Oil Prices Using Machine Learning: A Comprehensive Analysis of Contributing Factors and Model Performance
Abstract The main goal of this study was to create a strong predictive model for forecasting olive oil prices. To do this, we applied four machine learning models in Python: Random Forest, Gradient Boosting, Decision Tree, and Support Vector Regression, using 164 monthly price observations along with factors like temperature, precipitation, consumer price index, IBEX35 stock market prices, EUR/USD exchange rate, and import/export quantities. The results showed that Random Forest and Gradient Boosting models performed the best. The Spearman correlation analysis revealed that the exchange rate had a strong negative correlation with prices, while the consumer price index and import quantity had moderate positive correlations. Random Forest highlighted the consumer price index as the most important factor in predicting olive oil prices. This study fills a gap in existing research and provides practical insights for companies in the olive oil industry to better monitor and forecast prices, helping with profitability, risk management, stock optimization, and investment decisions.
Authors
- Mohamed Rochdi Keffala (ORCID: https://orcid.org/0000-0002-5958-8211)
- Safoua Mahjoub
Institutions
- Manouba University (TN)
Publication Details
- Journal
- Journal of Agricultural & Food Industrial Organization
- Published
- 2025-03-28
- DOI
- https://doi.org/10.1515/jafio-2024-0067
- Primary Topic
- Stock Market Forecasting Methods
- Type
- article
- Field-Weighted Citation Impact
- 0.00