Integrating Time Series Models and Unsupervised Learning for Gold Price Forecasting

Gold has long been considered a reliable safe-haven asset, especially during times of financial turmoil. This paper uses an ARIMAX model with exogenous variables to forecast gold prices. Specifically, this essay uses technical indicators (log returns, volatility, and momentum) to identify market states and apply K-means clustering to classify these states. Then this paper generalizes the clustering results to unseen data using CART decision trees, thereby taking the market state forecast as an exogenous input. The final ARIMAX model is built using the auto.arima() function based on a stationary difference series, and the residual diagnostics validate the model. Empirical results show that most of the predicted prices are within the 95% confidence interval, and the introduction of the market state variable significantly improves the forecasting performance. The proposed method achieves a low MAPE of 1.25%, showing a high forecasting accuracy. This approach highlights the potential of combining unsupervised learning with time series models for more effective financial forecasting.

Authors

Institutions

Publication Details

Journal
Advances in Economics Management and Political Sciences
Published
2025-07-04
DOI
https://doi.org/10.54254/2754-1169/2025.lh24572
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

Integrating Time Series Models and Unsupervised Learning for Gold Price Forecasting

Chengwei Cao
Advances in Economics Management and Political Sciences
Stock Market Forecasting Methods
article

Integrating Time Series Models and Unsupervised Learning for Gold Price Forecasting

Chengwei Cao
article en

Abstract

Gold has long been considered a reliable safe-haven asset, especially during times of financial turmoil. This paper uses an ARIMAX model with exogenous variables to forecast gold prices. Specifically, this essay uses technical indicators (log returns, volatility, and momentum) to identify market states and apply K-means clustering to classify these states. Then this paper generalizes the clustering results to unseen data using CART decision trees, thereby taking the market state forecast as an exogenous input. The final ARIMAX model is built using the auto.arima() function based on a stationary difference series, and the residual diagnostics validate the model. Empirical results show that most of the predicted prices are within the 95% confidence interval, and the introduction of the market state variable significantly improves the forecasting performance. The proposed method achieves a low MAPE of 1.25%, showing a high forecasting accuracy. This approach highlights the potential of combining unsupervised learning with time series models for more effective financial forecasting.

Advances in Economics Management and Political SciencesVol. 193(1)
New York University (US)
Openalex Percentile: Top 80%
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.