Abstract
Gold is a valuable metal which is widely used to accumulate capital and also as the raw material for a spectrum of jewellery and technological devices. Considering the broad utilization of gold, it is important to model the gold prices on both the country and the global levels. In this study, the gold price in Türkiye is modelled dependent on various related factors. The import, export and production amounts of gold as well as the exchange rate are considered as the input data affecting the gold prices. The seasonal-trend decompositions of the data are analysed as the first step. Then, a multilayer perceptron type deep learning network is developed in Python programming language for the modelling of the gold prices in Türkiye for the period of 2013M01-2023M02. The 70% of the available data is used as the training data whereas 30% of the data is taken as the test data. The actual gold prices and the results of the developed multilayer perceptron deep learning model are plotted which visually shows that the developed model accurately nowcasts the gold prices. The performance metrics of the developed nowcasting model namely the coefficient of determination, mean absolute error, mean absolute percentage error and the root mean square error are also calculated which further verify the accuracy of the developed model. It is argued that the developed model for the modelling of the gold prices can also be used for other countries or regions.
Keywords:
Gold prices, multilayer perceptron, nowcasting, deep learning, modelling.
References:
1) Abken, A. P. (1980). The economics of gold price movements. Economic Review. 1, 3-13.
2) Aggarwal, C. C. (2018). Neural Networks and Deep Learning: A Textbook. Springer, USA.
3) Atay, G. (2013). The gold markets in the world and Turkey and the research of the factors affecting the gold prices in
Turkey. MSc thesis, Istanbul University.
4) Aydin, A. D. and Cavdar, C. (2015 ). Comparison of prediction performances of artificial neural network (ANN) and vector
autoregressive (VAR) models by using the macroeconomic variables of gold prices, Borsa Istanbul (BIST) 100 Index and
US Dollar-Turkish Lira (USD/TRY) exchange rates. Procedia Economics and Finance. 30, 3-14.
5) Bakhsh, P. R. and Khan, B. 2019. Interdependencies of stock index, oil price, gold price and exchange rate: A case study
from Pakistan. International Journal of Experiential Learning & Case Studies. 4, 316-331.
6) Basar, R. (2015). Modeling and forecasting of global gold prices. MSc thesis, Sakarya University.
7) Basarir, C. (2019). Causality relationship between gold and stock returns: Turkey case. Trakya University Journal of Social
Science. 21, 475-490.
8) Benli, Y. K. and Yildiz, A. (2014). Forecasting the gold price with time series methods and artificial neural networks.
Dumlupinar University Journal of Social Sciences. 42, 213-224.
9) Bisong, E. (2019). Introduction to Scikit-learn in Building Machine Learning and Deep Learning Models on Google Cloud
Platform. 1, 215-229.
10) Capie, F., Mills, T. C. and Wood, G. (2005). Gold as a hedge against the dollar. Journal of International Financial Markets,
Institutions and Money. 15, 343-352.
11) Capie, F., Mills, T. C. and Wood, G. 2005. Gold as a hedge against the dollar. Journal of International Financial Markets,
Institutions and Money. 15(4), 343-352.
12) Cevizkiran, R. (2012). Nonlinear time series prediction using artificial neural network. MSc thesis, Firat University.
13) Cheng, W. H., Su, J. B., & Tzou, Y. P. (2009). Value-at-risk forecasts in gold market under oil shocks. Middle Eastern
Finance and Economics. 4, 48-64.
14) Ciner, C., Gurdgiev, C. and Lucey M. B. (2013). Hedges and safe havens: An Examination of stocks, bonds, gold, oil and
exchange rate. International Review of Financial Analysis . 29, 202-211.
15) Cingoz, F. and Kendirli S. 2019. Relationship between gold prices, BIST and exchange rate. Research of Financial
Economic and Social Studies (RFES). 4(4), 545-554.
16) Cleveland, R. B., Cleveland, W. S., McRae, J. E. and Terpenning, I. (1990). STL: A seasonal-trend decomposition
procedure based on Loess. Journal of Official Statistics. 6, 3-73.
17) Coskun, Y. and Umit O. (2016). Cointegration analysis between stock exchange and TL/FX Saving deposits, gold, housing
markets in Turkey. Business and Economics Research Journal. 7, 47-69.
18) Cuhadar M. (2013). Modeling and forecasting inbound tourism demand to Turkey by MLP, RBF and TDNN artificial
neural networks: a comparative analysis. Journal of Yasar University. 8, 5274-5295.
19) Deveci, D. (2013). Predicting gold and silver spot prices in Turkey. MSc thesis, Middle East Technical University.
20) Doganalp, N., Konya, S. and Kabaloglu, G. (2016). An empirical application on the determinants of gold prices in Turkey.
ODU Journal of Social Sciences Research. 6, 412-424.
21) Dooley, M. P., Isard, P. and Taylor, M. (1992). Exchange rates, country preferences and gold. Applied Financial
Economics, 5, 121-129.
22) Dooley, M. P., Isard, P. and Taylor, M. P. (1995). Exchange rates, country-specific shocks and gold. Applied Financial
Economics. 5, 121-129.
23) Elmas, B. and Polat, M. (2014). Determination demand factors of affecting gold price: Period 1988-2013. Journal of
Economics and Administrative Sciences. 15, 171-187.
24) EVDS-CBRT: Electronic Data Distribution System of the Central Bank of Türkiye.
https://evds2.tcmb.gov.tr/index.php?/evds/serieMarket. Accessed on 05 April 2023.
25) Ghosh, D., Levin, E.J., Macmillan, P. and Wright, R.E. 2002. Gold as an inflation hedge? University of St. Andrews
Discussion Paper Series, Department of Economics. 21, 27-36.
26) Hao, J. and Ho, T. K. (2019). Machine learning made easy: A review of Scikit-learn package in python programming
language. Journal of Educational and Behavioral Statistics. 44, 348-361.
27) Harmston, S. (1998). Gold as a store of value, World Gold Council: Research Study, 22, 1-61.
28) Hassani, H., Silva, E. S., Gupta, R. and Segnon, M. K. (2015). Forecasting gold price. Applied Economics. 47, 4141-4152.
29) He, C., Ma, M. and Wang, P. (2020). Extract interpretability-accuracy balanced rules from artificial neural networks: A
review. Neurocomputing. 387, 346-358.
30) Hill, R. C., Griffiths, W. E. and Judge, G. G. (1998). Undergraduate Econometrics. Wiley, USA.
31) Ibrahim, N. S., Kamaruddin, I. N. and Rahayu, H. (2014). The determinants of gold prices in Malaysia. Journal of Advanced
Management Science. 2, 38-41.
32) Imani, M., Gupta, S., Kim, Y. and Rosing, T. (2019). FloatPIM: in-memory acceleration of deep neural network training
with high precision. Proceedings of the 46th International Symposium on Computer Architecture. 1, 802-815.
33) Islamoglu, E. (2015). Comparison of interval-valued time series forecasting methods, PhD thesis, Ondokuz Mayis
University.
34) Joy, M. (2011). Gold and the US dollar: Hedge or haven? Finance Research Letters. 8, 120-131.
35) Khan, A., Naseem, I. and Khan, M.K. (2016). Relationship of international oil prices, gold prices and stock returns:
Evidence from KSE. International Conference on Emerging Research for Sustainable Economic Development. 2, 24-36.
36) Kocak, H. and Un, T. (2014). Forecasting the gold returns with artificial neural network and time series. International
Business Research. 7, 139-152.
37) Koutsoyiannis, A. 1983. A short-run pricing model for a speculative asset, tested with data from the gold bullion market.
Applied Economics. 15, 563-581.
38) Kristjanpoller, W. and Minutolo, M. (2015). Gold price volatility: A forecasting approach using the artificial neural
network–GARCH model. Expert Systems with Applications. 42, 7245-7251.
39) Lan, T. V. F., Lei, N. S. and Mohsin, M. 2019. An empirical analysis between macroeconomic variables and gold prices.
International Journal of Recent Technology and Engineering. 8, 127-135.
40) Lewis, C. D. (1982). Industrial and Business Forecasting Methods: A Practical Guide to Exponential Smoothing and Curve
Fitting. Butterworth Scientific, UK.
41) Lineesh, M., Minu, K. and John, C. (2010). Analysis of nonstationary nonlinear economic time series of gold price a
comparative study. International Mathematical Forum. 1, 1673-1683.
42) Maqbool, J., Aggarwal, P., Kaur, R., Mittal, A. and Ganaie, I. A. (2023). Stock prediction by integrating sentiment scores
of financial news and MLP-Regressor: A Machine Learning Approach. Procedia Computer Science. 218, 1067-1078.
43) Martin, C. A. and Witt, S. F. Forecasting tourism demand: a comparison of the accuracy of several quantitative methods.
International Journal of Forecasting. 5, 7-19.
44) Menase, F. (2009). Gold market and the analysis of factor affecting the gold prices in Turkey. MSc. Thesis, Marmara
University.
45) Mombeini, H. and Chamzini, A. Y. (2015). Modeling gold price via artificial neural network. Journal of Economics,
Business and Management. 3, 699-703.
46) Mukhopadhyay, R., Chaki, R., Sutradhar, A. and Chattopadhyay, P. (2019). Model learning for robotic manipulators using
recurrent neural networks. Proceedings of the IEEE Region 10 Conference (TENCON). 1, 19250416.
47) Naz, F. and Ahmad, Z. (2016). Forecasting of Indian gold prices using Box-Jenkins methodology. Journal of Indian Studies.
2, 75–83.
48) Nelson, M. B., Kaminsky, L. A., Dickin, D. C. and Montoye, A. H. K. (2016). Validity of consumer-based physical activity
monitors for specific activity types. Medicine & Science in Sports & Exercise. 48, 1619-1628.
49) Omag, A. (2012). An observation of the relationship between gold prices and selected financial variables in Turkey. The
Journal of Accounting and Finance. 55, 195-206.
50) Oncu, M. A., Comlekci, I., Yazgan, H. I. and Bar, M. (2015). Cointegration between investment instruments (BIST100,
gold, real exchange rate). Journal of Abant Social Sciences. 1 (15), 43-57.
51) Oner, H. (2018). A study on the relationship between gold, oil, exchange rate, interest rate and fear index. Journal of
Academic Researches and Studies. 10, 396-404.
52) Polat, M. (2013). Determination of factors affecting the gold price through time series analysis. MSc thesis, Ataturk
University.
53) Poyraz, E. and Didin, S. (2008). Evaluation of level of being affected of the changes in gold prices from exchange rate,
exchange reserve and the price of petroleum by multi factor analysis. Suleyman Demirel University The Journal of Faculty
of Economics. 13, 93-104.
54) Pukthuanthong K. and Roll R. Gold and the Dollar (and the Euro, Pound, and Yen). Journal of Banking & Finance. 35,
2070-2083.
55) Reboredo, J. C. (2013). Is gold a hedge or safe haven against oil price movements? Resources Policy. 38, 130-137.
56) Senturk, M., Akbas, Y. E. and Adiguzel, U. (2013). Relationship between international crude oil and gold prices and the
US dollar: An Empirical Application. Journal of academic approaches. 4, 139-149.
57) Sharma, A. M. (2015). Gold price forecasting in India using ARIMA modelling. GE-International Journal of Management
Research. 3, 14-33.
58) Sharma, G. D. and Mahendru, M. (2010). Impact of macro-economic variables on stock prices in India. Global Journal of
Management and Business Research. 10, 1-18.
59) Sharma, S. (2016). Can consumer price index predict gold price returns? Economic Modelling. 55, 269-278.
60) Sjaastad, L. A. 2008. The price of gold and the exchange rates: Once again. Resources Policy. 33(2), 118-124.
61) Smith, G. (2001). The price of gold and stock price indices for the United States. World Gold Council. 8, 1-16.
62) Soytas, U., Sari, R., Hammoudeh, A. and Hacihasanoglu, E. (2009). World oil prices, precious metal prices and
macroeconomy in Turkey. Energy Policy. 37, 5557-5566.
63) Sujit, K. S. and Kumar, B. R. (2011). Study on dynamic relatıonship among gold price, oil price, exchange rate and stock
market returns. International Journal of Applied Business and Economic Research. 9, 145-165.
64) Syzdykova, A. (2018). Macroeconomic variables and equity market relation: KASE example. Journal of the Faculty of
Economics and Administrative Sciences. 8, 331-354.
65) Tolu, F. (2020). Relationship between London FTSE100 exchange index and gold prices. Journal of Knowledge Economy
and Knowledge Management. 15, 59-70.
66) Topcu, A. (2010). The factors affecting gold prices. Capital Markets Board of Türkiye Research Report. 1, 27-42.
67) Toraman, C., Basarir, C. and Bayramoglu, M. F. (2011). Determination of factors affecting the price of gold: a Study of
MGARCH model. Business and Economics Research Journal. 2, 37-50.
68) Toraman, C., Basarir, C. and Bayramoglu, M. F. (2011). Determination of factors affecting the price of gold: A study of
MGARCH model. Business and Economics Research Journal. 2, 37-50.
69) Tully, E. and Lucey, B. M. (2007). A power GARCH examination of the gold market. Research in International Business
and Finance. 21, 316-325.
70) Vang-mata, R. (2020). Multilayer Perceptrons: Theory and Applications. Nova Science Publishing, USA.
71) Vural, G. 2003. Gold market and the factors affecting gold prices. Central Bank of Türkiye Report. Ankara, 2, 45-58.
72) Wang, Y.S. and Chueh, Y. L. (2013). Dynamic transmission effects between the interest rate, the US dollar, and gold and
crude oil prices. Economic Modelling. 30, 792-798.
73) Wen, X. and Cheng, H. (2018). Which is the safe haven for emerging stock markets, gold or the US dollar? Emerging
Markets Review. 35, 69-90.
74) Witt, S. F. and Witt, C. (1992). Modeling and Forecasting Demand in Tourism. Academic Press, UK.
75) Yuksel, R. (2014). Forecasting gold prices by using ANN and an application. MSc thesis, Dumlupinar University.
76) Yurdakul, F. and Sefa, M. (2015). An econometric analysis of gold prices in Turkey. Procedia Economics and Finance. 23,
77-85.