← Back to Articles
Financial Data Science• 9 min read

Volatility Prediction Using Time-Series Machine Learning Models

Download as PDF

Abstract

Nowadays, modernization of the financial markets is not a luxury anymore in the grandiose vision of the Smart Bangladesh 2041, it is a necessity to survive. In the process of the country to move towards a knowledge-driven economy, the creation of data-driven decision-making instruments gains crucial importance to sustainable growth. To an investor at Dhaka Stock exchange (DSE), the market storms have always been a storm to weather.

We cannot prevent the storm, but the latest breakthroughs in predictive analytics have provided us with the opportunity to predict its strength and time occurrence more precisely than ever before. This blog post gets into detail of a detailed study that will compare the traditional statistical models and the modern machine learning (ML) to predict the volatility of the DSE Broad Index (DSEX) and, more significantly, how these tools can be used in enhancing better management and risk reduction strategies of a portfolio.

The stock market of Bangladesh is volatile. It is determined by numerous factors which are not limited to corporate earnings such as the mood of retail investors, regulatory modifications, and liquidity trends in the global market. Sentiment of retailers, specifically, has a major role in DSE volatility. Based on herd behavior, Bangladeshi investors can move stock prices based on emotion as opposed to fundamentals..

In addition, the conventional financial models fail to perform well in this environment since they have two fundamental assumptions; stationarity and linearity. That is, classic models presuppose that the market properties (such as volatility) do not vary with time, and that the dependence on variables may be represented by a straight line. In the reality of the DSE, however, there is a far more complicated scenario, whereby the market moves violently, then it moves peacefully, and it moves violently, then peacefully, and there being no certain guarantees in the changes in investor confidence. This forms what is referred to as non-linear market environment that is not easy to model with classical approaches. To address these complexities, the study employed a structured financial dataset in 2020 to 2025, which contained most important market indicators such as:

Daily Closing Prices and Trading Volumes: This is the foundational information on which to follow the daily market behaviour.

Rolling Standard Deviation (21-day window): This was adopted in order to represent the short-term risk in the market and volatility changes.

Relative Strength Index (RSI) and Moving Average Convergence Divergence (MACD): these are constructed characteristics that determine the market trends and possible turning points that could result in forms of volatility in the short term.

This paper then compared three different methodologies with each other to predict DSEX volatility, traditional models and machine learning algorithms:

In order to determine what models would work best under the regime of volatility regimes of the DSE, the study compared ARIMA, which is the gold standard of classical statistics with machine learning models, such as Random Forest and Gradient Boosting

Autoregressive Integrated Moving Average (ARIMA) model is a traditional time series model that is especially robust with regard to the identification of linear relationships and long-term factors. ARIMA works well in representing underlying trends in the market where volatility is constant e.g. where the environment is free of volatility.

Strength: ARIMA is very stable during low volatility, sideways markets. It is efficient in cases where the market is moving within small ranges or where there is stable growth.

Weaknesses: ARIMA does not always explain a sudden market shock like that caused by a political event, economic crisis, or a sudden change of investor sentiment. This model is also under-reactive to spikes in volatility, particularly at the high volatility regimes.

Random Forest is a type of machine learning algorithm which constructs several decision trees and combines the predictions. It is famous on its capability to get non-linear relationships in the data- something that is usually transmissible to linear models such as ARIMA. Random Forest is specifically effective when dealing with noisy data and can accept multiple inputs variables at once, and thus is more accommodating to the hectic uncertainty of the DSE.

Strengths: Random Forest is able to work with noisy data and extract features of importance. An example of this is the fact that it can discover that Volume is usually a predictive of volatility because higher trading volumes are likely to be followed by a change in price.

Weakness: Although the Random Forest is very useful in its ability to capture non linear relationships, it may not be good at interpretability thus being harder to explain the underlying causes of volatility prediction to the stakeholders.

Gradient Boosting and its more popular counterpart, XGBoost, make great predictions of volatility in market stress periods. These models involve an iterative process to learn by mistakes of the last iterations and thus they are very sensitive to minute changes in the market behavior. Subsequently, XGBoost has been deemed as one of the most potent high-volatility regime models.

Strength: Gradient Boosting is highly suitable to high-volatility regimes because it will be constantly improving its predictions according to the feedback of the past models. It is very exploratory to market conditions, and therefore, it is suitable in the capture of acute market trends.

Weakness: The XGBoost model can be computationally expensive and it might need more data preparation than other applications like the random forest model.

The evaluation of the models was performed according to two performance indicators, as the Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE). These measures would give an understanding of how precise volatility forecasts are. When RMSE and MAE are lower, this is a good fit to real market data.

Model | RMSE (Volatility) | MAE (Volatility) | Best Regime

ARIMA | 1.14% | 0.88% | Low-Volatility (Stable)

Random Forest | 0.94% | 0.72% | Mixed Market Conditions

XGBoost | 0.82% | 0.61% | High-Volatility (Crisis/Surge)

Although ARIMA is the most interpretable model, XGBoost offered a 28 per cent better RMSE in high volatility times, e.g. corrections or surges of the market. It means that in case the market starts moving fast, machine learning models such as XGBoost are much more effective in making predictions about price dynamics in the future and representing the volatility

The important factor in the 2026 study was to monitor the behavior of the models when the market switches between the various volatility regimes. Markets do not tend to stabilize, but typically have high-volatility and low-volatility periods (large and sudden changes in the price, respectively).

ARIMA and Linear Regression are very robust when the DSEX is operated within a tight band. The models do not overfit to the small market noise, and hence are suitable when the market is stable. Investors can use the models in low-volatility environment to track long-term trends.

Machine learning models like Random Forest and XGBoost perform better than traditional models during times of political change, economic changes worldwide, or crises in the market (as was experienced in late 2024). With Rolling-Window Validation, the machine learning models could adapt to the new normal of the market faster (in 3 -5 days) than ARIMA, which utilized long-term historical data. This observation underscores the relevance of applying a dynamic, data based market forecasting when the volatility runs high. Machine learning models are more flexible to the changing environment because they can better model short-term changes in the market..

The results of this paper provide the template of a Hybrid Forecasting Framework to individual investors as well as institutional fund managers in Bangladesh.

A dynamic hedging strategy is one of the most significant uses of this study. Through prediction of volatility using XGBoost in high activity months, like dividend season or post-earnings announcement months, the fund managers can establish Stop-Loss triggers to automatically hedge their portfolios in response to high market risk.

As an illustration, given that an XGBoost model finds that the volatility in the U.S. markets is increasing, a stop-loss strategy on high-beta stocks in the DSE can be adopted by Bangladeshi investors to minimize the potential downside risk.

Learning to use volatility clusters to make wiser diversification choices can make investors smarter. This allows investors to transfer the assets in high-risk sectors to the relatively safe-haven sectors, like utilities or gold-related stocks, prior to the volatility increasing.

This paper also postulates that the process of diversification beyond Bangladesh such as S&P 500 ETFs can be used as a cushion in periods of market stress. Such diversification can prove to be very valuable because the U.S market is usually at various stages of the business cycle than the Bangladeshi economy, and it is a natural hedge against the local market relationship.

These predictive models can be incorporated by regulatory bodies and market watchdog institutions as part of their early warning system to keep track of the unusual market behavior. Through such models, the regulators are able to identify the evidence of too much volatility or market manipulation so that they can intervene on the situation by introducing cooling measures or change of policies before panic strikes.

Days when decisions were made based on the market intuition and immediate reactions are quickly fading away in Bangladesh. The study confirms that although the conventional statistical techniques such as ARIMA have a seat at the table, the future of financial forecasting is Gradient Boosting and ensemble techniques that have the capability to explore the non-linear nature of the market.

With the advent of Smart Bangladesh 2041, incorporation of high-order machine learning models into the DSE will play a key role in turning the stock exchange into an arena of uncertainty or a level of calculated risk and sustainable development. The potential of the powerful tools that are currently available can enable investors and fund managers in Bangladesh to change their approach in volatility forecasting.

It is possible to bridge the gap between the old and the new machine learning to ensure that the DSE is adequately prepared to remain relevant with regard to both short-term market dynamics and long-term expansion.

The future of Bangladeshi stock market is with data-based decision-making. The volatility forecasting models when incorporated in the daily operations of portfolio management have the ability of not only helping investors to survive the storm but also to take advantage of the opportunities presented by the same. In this way, the financial market of Bangladesh will be able to enter the future of predictive analytics and globalization.

CITE THIS ARTICLE

Podder, S. (n.d.). Volatility Prediction Using Time-Series Machine Learning Models. https://www.researchbysimanto.com/article/fb8c7c9e-8ed8-40b4-b713-737190418305

Continue reading

View All Articles

Predicting Student Academic Performance Using Machine Learning

A final CGPA, in the busy academic quarters of Dhaka and elsewhere is indeed the eyeshield of a student in the end of a semester- a kind of revelation of a year of academic results in a nutshell. This moment of truth, though, is not that far away, as something that actually indicates the overall academic path of a student. More and more studies are suggesting that, it is hardly unexpected when academic performance is either successful or not. It is the result of several months of computer and ph

Date not specified

CategoryEducational Data Mining

Feature Engineering Strategies in Educational Data Mining

Machine Learning (ML) algorithms have emerged as the engine of educational predictions in the changing world of Educational Data Mining (EDM) with feature engineering becoming the high-octane fuel that fuels it. In the hugely expanding academic environment of Bangladesh where computer-based classrooms and the traditional learning system collide, it is no longer a conjecture to know whether a student will pass or fail. It has become a specific art of data transformations.

Date not specified

CategoryEducational Data Mining

Early Dropout Prediction Using Supervised Learning

In the changing environment in higher education in Bangladesh, leaving without graduation is seldom an unanticipated move by a student. It can be a slow moving process, and it is characterized by the presence of digital footprints, and minor behavioral changes that nobody notices at all until it is too late. Although the national primary and secondary dropouts have been improving steadily, there is concern in the tertiary level. According to some studies, the level of drop out at the university

Date not specified

CategoryEducational Data Mining