Modelling The US Dollar Index Using Continuous Hidden Markov
Abstract
This study employs the continuous hidden Markov model (HMM) to model the index data of the US Dollar index from 2018 to 2024. HMM is used to predict and analyze hidden patterns that generated the data. The data is modelled using a continuous HMM with 11 hidden states and lognormal distributions with different parameters for each hidden state. The accuracy of the continuous HMM is measured by MAPE. The MAPE value for both training and testing data is very low, less than 4%. This means that the continuous HMM can be used to model the data accurately. The plot shows accurate predictions between simulated data and real data, and furthermore, the model can capture the fluctuations of the data.
Full text article
References
J. Zhou, M. Sun, D. Han, and C. Gao, “Analysis of oil price fluctuation under the influence of crude oil stocks and us dollar index-based on time series network model,” Physica A: Statistical mechanics and its applications, vol. 582, p. 126218, 2021. https://doi.org/10.1016/j.physa.2021.126218.
I. I. Laduni, “The influence of crude oil derivative instruments, us dollar index, leading stock index, us fed interest rates and inflation on gold futures prices: Analysis of the 2012-2021 period,” Contemporary Studies in Economic, Finance, and Banking, vol. 4, no. 1, pp. 710–724, 2022. https://doi.org/10.21776/csefb.2022.01.4.14.
C. Engel, “Exchange rates, interest rates, and the risk premium,” American Economic Review, vol. 106, no. 2, pp. 436–474, 2016. https://doi.org/10.1257/aer.20121365.
S. Avdjiev, V. Bruno, C. Koch, and H. S. Shin, “The dollar exchange rate as a global risk factor: Evidence from investment,” IMF Economic Review, vol. 67, pp. 151–173, 2019. https://doi.org/10.1057/s41308-019-00074-4.
J. J. A. Kumar and R. Robiyanto, “The impact of gold price and us dollar index: The volatile case of shanghai stock exchange and bombay stock exchange during the crisis of covid-19,” Journal of Finance and Banking, vol. 25, no. 3, pp. 508–531, 2021. https://doi.org/10.26905/jkdp.v25i3.5142.
S. D. G. F. Hau, “The impact of the us dollar value and interest rates on the s&p 500 returns,” Scientific Journal of Economics and Management Research, vol. 6, no. 2, pp. 1–7, 2024. http://www.sjemr.org/download/SJEMR-6-2-1-7.pdf
Z. Liu and Y. Lv, “A study of the usdx predication based on arima and garch models,” in 2011 Fourth International Conference on Business Intelligence and Financial Engineering, pp. 82–85, Institute of Electrical and Electronics Engineers, 2011. https://doi.org/10.1109/BIFE.2011.9.
M. F. Y¨ur¨uk, “Machine learning-based a comparative analysis for usa dollar index prediction,” in Finansal Piyasaların Evrimi-II, pp. 33–52, ¨Ozg¨ur Yayın Da˘gıtım Ltd. S¸ti., 2023. https://doi.org/10.58830/ozgur.pub105.c739
A. S. M. Tahir and F. M. Jassim, “Comparison of the two hybrid models, wavelet-arima and wavelet-es, to predict the prices of the us dollar index,” Periodicals of Engineering and Natural Sciences, vol. 10, no. 2, pp. 219–230, 2022. https://doi.org/10.21533/pen.v10.i2.600.
K. Du, S. Huddart, L. Xue, and Y. Zhang, “Using a hidden markov model to measure earnings quality,” Journal of Accounting and Economics, vol. 69, no. 2, p. 101281, 2020. https://doi.org/10.1016/j.jacceco.2019.101281.
L. Peng, A. Yin, W. Song, W. Yao, H. Ren, and L. Yang, “Sleep monitoring with hidden markov model for physical conditions tracking,” IEEE Sensors Journal, vol. 21, no. 13, pp. 14232–14239, 2021. https://doi.org/10.1109/JSEN.2020.3007153.
A. S. A. Huque, K. I. Ahmed, M. A. Mukit, and R. Mostafa, “Hmm-based supervised machine learning framework for the detection of fecg r-r peak locations,” IRBM, vol. 40, no. 3, pp. 157–166, 2019. https://doi.org/10.1016/j.irbm.2019.04.004.
D. V. Lindberg and H. Omre, “Inference of the transition matrix in convolved hidden Markov models and the generalized baum-welch algorithm,” IEEE Transactions on Geoscience and Remote Sensing, vol. 53, no. 12, pp. 6443–6456, 2015. https://doi.org/10.1109/TGRS.2015.2440415.
N. Hayati, B. Setiawaty, and I. G. P. Purnaba, “The application of discrete hidden markov model on crosses of diploid plant,” Barekeng: Journal of Mathematics and Its Applications, vol. 17, no. 3, pp. 1449–1462, 2023. https://doi.org/10.30598/barekengvol17iss3pp1449-1462.
J. P. Williams, C. B. Storlie, T. M. Therneau, C. R. J. Jr, and J. Hannig, “A Bayesian approach to multistate hidden markov models: Application to dementia progression,” Journal of the American Statistical Association, vol. 115, no. 529, pp. 16–31, 2020. https://doi.org/10.1080/01621459.2019.1594831.
Authors
Copyright (c) 2026 Journal of the Indonesian Mathematical Society

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.