Forecasting Coffee Prices with Facebook Prophet: A Machine Learning Approach
摘要
Coffee plays a pivotal role in global trade, with its financial market far exceeding its physical transactions. Accurate forecasting of coffee prices is crucial for stakeholders to make informed decisions. This paper explores the application of machine learning, specifically the Facebook Prophet model, for predicting coffee prices. Leveraging historical data from the U.S. (primarily Arabica coffee) and London (Robusta coffee from Asia and Africa) markets, we resample data to monthly averages for enhanced modelling efficiency. Our study includes comprehensive data processing, visualisation, and time series decomposition to unravel the cyclic nature of coffee prices. We perform stationarity checks using rolling statistics and the Dickey-Fuller test, followed by differencing to achieve stationarity. The Prophet model’s performance is evaluated based on its accuracy in forecasting short-term price trends, achieving a Mean Absolute Percentage Error (MAPE) of an approximate of 10%. Our findings underscore the effectiveness of Prophet model in delivering precise forecasts, supporting strategic decision-making in the coffee industry.