Computational Approaches to Market Risk Prediction: A Comparison of Hidden Markov and Markov Models in the Pakistan Stock Exchange

  • Nazia Saleem Department of statistics Pir Mehr Ali Shah Arid Agriculture University, Rawalpindi pakistan naziasaleem3333@gmail.com
  • Farhad Ullah Centre for Advanced Studies in Pure and Applied Mathematics Bahauddin Zakariya University, Multan, Punjab Pakistan. farhadullahdawar50@gmail.com
  • Samee Ullah Khan Center for Advanced studies in Pure and Applied Mathematics Bahauddin Zakariya University, Multan, Punjab Pakistan samiullahlohani4805@gmail.com
Keywords: Market risk prediction, Hidden Markov Model (HMM), Markov Model (MM), Pakistan Stock Exchange (PSX), financial time series analysis, computational finance, stochastic modeling, volatility forecasting, algorithmic trading, financial risk management

Abstract

Market risk prediction is a critical aspect of financial decision-making, particularly in volatile stock markets such as the Pakistan Stock Exchange (PSX). This study examines the effectiveness of computational approaches in market risk prediction by comparing Hidden Markov Models (HMMs) and traditional Markov Models (MMs). While Markov Models rely on observable states and assume a memoryless stochastic process, HMMs incorporate latent variables, allowing for a more nuanced representation of market dynamics. The study employs historical PSX data, integrating price trends, trading volumes, and volatility indicators to assess the predictive accuracy of both models. Our findings suggest that HMMs outperform traditional Markov Models in capturing complex market behaviors, particularly during periods of economic uncertainty and sudden market shifts. The study highlights the superior ability of HMMs to model latent structures in financial time series, enabling investors and analysts to anticipate market risks more effectively. Furthermore, our research explores the implications of computational approaches in financial risk management, emphasizing the role of machine learning in refining stock market predictions. The comparative analysis contributes to the growing body of literature on quantitative finance and market risk assessment, offering insights into the potential adoption of HMMs in algorithmic trading and portfolio optimization. The findings of this study are relevant for policymakers, investors, and financial analysts seeking robust predictive models for market risk assessment in emerging economies. Future research directions include the integration of deep learning techniques with HMMs to further enhance predictive accuracy.

Published
2025-02-04
How to Cite
Nazia Saleem, Farhad Ullah, & Samee Ullah Khan. (2025). Computational Approaches to Market Risk Prediction: A Comparison of Hidden Markov and Markov Models in the Pakistan Stock Exchange. INTERNATIONAL JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 8(1), 146-157. Retrieved from https://ijcst.com.pk/index.php/IJCST/article/view/470