Commodity Price Prediction with TAR and Markov-Switching Models. Evidence from Gold and Cocoa Markets

Accurate forecasting of commodity prices remains a crucial challenge due to inherent market volatility and regime-dependent behaviour. This study examines the predictive performance of two nonlinear time series models, the Threshold Autoregressive (TAR) model and the Markov Switching Model (MSM), in modeling and forecasting the prices of gold and cocoa. These commodities exhibit complex dynamics characterized by abrupt structural breaks and asymmetric responses to economic shocks, features that are inadequately captured by linear models. The TAR model is employed to detect endogenous threshold effects, while the MSM accounts for unobservable regime shifts through a probabilistic framework. Monthly average prices of International Cocoa (US$ /tonne) and International Gold (US$ /fine ounce) spanning the period from January 2003 to December 2022 (a 20-year window) were subjected to unit root testing, transformation, and differencing to ensure stationarity prior to modeling. The models’ forecasting accuracy was evaluated using Root Mean Square Error (RMSE) and Mean Absolute Error (MAE). Results indicate that both TAR and MSM significantly improve out-of-sample forecasts by capturing both abrupt and smooth nonlinear transitions. Notably, the gold market showed stronger regime-switching dynamics, while cocoa prices exhibited clearer threshold-based behaviour. MSM model outperforms the TAR model in forecasting gold prices, as it records lower values for both MAE and RMSE, indicating higher predictive accuracy. For Cocoa, TAR slightly outperforms MSM in both MAE and RMSE, though the difference is minimal. Thus, both models perform comparably for Cocoa, with a marginal edge for TAR. Model suitability is observed to be commodity-specific. These findings underscore the utility of regime-sensitive models in commodity price forecasting and offer valuable insights for market participants and policy decision-makers operating in volatile economic environments.

Authors

Institutions

Publication Details

Journal
Asian Journal of Economics Business and Accounting
Published
2025-08-18
DOI
https://doi.org/10.9734/ajeba/2025/v25i81938
Primary Topic
Stock Market Forecasting Methods
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Commodity Price Prediction with TAR and Markov-Switching Models. Evidence from Gold and Cocoa Markets

Benjamin Odoi, Simon Cudjoe, Peter K. Nyarko
Asian Journal of Economics Business and Accounting
Stock Market Forecasting Methods
article

Commodity Price Prediction with TAR and Markov-Switching Models. Evidence from Gold and Cocoa Markets

Benjamin Odoi, Simon Cudjoe, Peter K. Nyarko
article en

Abstract

Accurate forecasting of commodity prices remains a crucial challenge due to inherent market volatility and regime-dependent behaviour. This study examines the predictive performance of two nonlinear time series models, the Threshold Autoregressive (TAR) model and the Markov Switching Model (MSM), in modeling and forecasting the prices of gold and cocoa. These commodities exhibit complex dynamics characterized by abrupt structural breaks and asymmetric responses to economic shocks, features that are inadequately captured by linear models. The TAR model is employed to detect endogenous threshold effects, while the MSM accounts for unobservable regime shifts through a probabilistic framework. Monthly average prices of International Cocoa (US$ /tonne) and International Gold (US$ /fine ounce) spanning the period from January 2003 to December 2022 (a 20-year window) were subjected to unit root testing, transformation, and differencing to ensure stationarity prior to modeling. The models’ forecasting accuracy was evaluated using Root Mean Square Error (RMSE) and Mean Absolute Error (MAE). Results indicate that both TAR and MSM significantly improve out-of-sample forecasts by capturing both abrupt and smooth nonlinear transitions. Notably, the gold market showed stronger regime-switching dynamics, while cocoa prices exhibited clearer threshold-based behaviour. MSM model outperforms the TAR model in forecasting gold prices, as it records lower values for both MAE and RMSE, indicating higher predictive accuracy. For Cocoa, TAR slightly outperforms MSM in both MAE and RMSE, though the difference is minimal. Thus, both models perform comparably for Cocoa, with a marginal edge for TAR. Model suitability is observed to be commodity-specific. These findings underscore the utility of regime-sensitive models in commodity price forecasting and offer valuable insights for market participants and policy decision-makers operating in volatile economic environments.

Asian Journal of Economics Business and AccountingVol. 25(8)
University of Mines and Technology (GH)
Openalex Percentile: Top 75%
Stock Market Forecasting Methods
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.