Journals / Sosyal Bilimler Araştırma Dergisi / 2021 / Cilt: 10 - Sayı: 3

Forecasting of Gold Prices with ARIMA and Random Forest Regression and Evaluating of Their Prediction Performance

ARIMA ve Rassal Orman Yöntemi ile Altın Fiyatlarının Öngörülmesi ve Tahmin Performanslarının Karşılaştırılması

Pages
747–758
DOI
—

Abstract

In this study, it was focused on gold price forecasting with time series analysis and machine learning methods aimed to compare forecasting performance. It was selected for forecasting gold prices that ARIMA (Autoregressive Integrated Moving Average) method from time series analysis and random forest regression type of random forest introduced by Breiman from machine learning method. In literature, many studies related to gold prices studies in terms of econometrics are onto cointegrating relationship between gold prices and other variables which are affected its. On the other hand, in the gold price forecasting studies with machine learning methods, too little work used Random Forest Regression (RF). In this sense, it is expected to this study which are both using this method and comparing forecasting performance with ARIMA contribute the literature. In analysis, it was separated into two groups are training and test set for each method. The best model which forecast the test set was determined by training set. Root Mean Square Error (RMSE) and Mean Absolute Error (MAE) which are criteria for evaluating forecasting performance was used to determine which method is the best. Result of the analysis indicate that random forest regression is better performance than ARIMA not merely training set but also test set. Therefore, in the direction of aims and outcomes of the study have added an alternative view to gold prices forecasting studies.

Özet

Altın, her dönem insan hayatında önemli bir yer edinmiş değerli bir madendir. Geçmişten günümüze hem değer saklama aracı hem de aksesuar olarak rağbet görmüş bu yatırım aracı günümüzde de değerini korumaya devam etmektedir. Bu çalışmada altın fiyatlarının tahmini üzerine odaklanılmıştır. Tahmin yöntemi olarak, zaman serisi yöntemlerinden ARIMA (Bütünleşik Otoregresif Hareketli Ortalama modeli) ve son dönemde popülerleşen makine öğrenmesi yöntemlerinden Rassal Orman Regresyonu kullanılmıştır. Literatür incelendiğinde altın fiyatlarını rassal orman regresyonu yöntemi ile tahmin eden çok az sayıda çalışma ile karşılaşılmıştır. Bu açıdan, çalışmanın hem rassal orman regresyonu yöntemiyle altın fiyatlarını tahmin etmesi hem de ARIMA tahmini ile tahmin performansını karşılaştırması açısından literatüre katkı sağlayacağı beklenmektedir. Her iki yöntemde de model yapısına bağlı olarak altın fiyatları serisinin geçmiş değerleri kullanılmış ve böylelikle tahmin performansı karşılaştırılmasında tutarlılık sağlanması amaçlanmıştır. Her iki yöntemde de seri, eğitim ve test kümesi olmak üzere iki gruba ayrılmıştır. Eğitim kümesine ilişkin veri kullanılarak uygun kabul edilen model yapısı ile test kümesi tahmin edilmiştir. Literatürde, tahmin performanslarını karşılaştırmak amacıyla yoğun olarak kullanılan RMSE (Root Mean Square Error – Ortalama Hata Karesinin Karekökü) ve MAE (Mean Absolute Error- Ortalama Mutlak Hata) kriterleri kullanıldığından, analiz sonucunda modellerin tahmin performansları sözü edilen kriterlere göre değerlendirilmiş ve her iki kriterde de rassal orman regresyonu yönteminin tahmin açısından daha iyi olduğu sonucuna varılmıştır.

Keywords: Altın Fiyatları, ARIMA, Makine Öğrenmesi, Rassal Orman Regresyonu, Zaman Serileri Analizi