Financial Management Perspective

Financial Management Perspective

Systematic Risk (Beta) Estimation: A Machine Learning Approach in the Tehran Stock Exchange

Document Type : Original Article

Authors
1 Finance Faculty, Khatam University
2 Tehran Institute for Advanced Studies (TeIAS), Khatam University,
Abstract
Abstract

Objective: Systematic risk, or stock beta, is one of the fundamental pillars of asset pricing, risk management, and portfolio performance evaluation. Nevertheless, empirical evidence has shown that traditional, linear econometric models often face severe limitations in accurately forecasting future beta due to their inability to capture the complex, non-linear dynamics of the market. The primary objective of this research is to overcome these limitations by improving the estimation and forecasting accuracy of stock betas in the Tehran Stock Exchange (TSE) leveraging modern data science techniques and machine learning algorithms. Inspired by recent pioneering studies, this research conducts a comparative analysis of the performance of a suite of advanced, non-linear algorithms against a wide range of traditional baseline models. The key innovation of the present study lies in moving beyond purely statistical metrics by simultaneously evaluating the economic value added of these forecasts through the actual performance of investment portfolios (minimum-variance and market-neutral portfolios) within a highly volatile emerging market.

Methodology: In terms of purpose, this is an applied study, and methodologically, it is descriptive-correlational with a quantitative approach based on historical market data and financial statements. The statistical population comprises all firms listed on the Tehran Stock Exchange. Following the application of screening criteria (including the exclusion of financial institutions, investment firms, and tickers with prolonged trading halts), the initial dataset spans 50 trading quarters from the beginning of 1391-Q4 to the end of 1404-Q1. After forming the final panel, the research sample consists of 41,313 firm-month observations across 450 companies listed on the TSE within an unbalanced panel (with active firms ranging between 188 and 427 per month). Beta forecasting was conducted using cross-validation and a rolling-window approach to preserve strict out-of-sample conditions.This study evaluated the performance of 6 traditional baseline models (including Ordinary Least Squares [OLS], Exponentially Weighted Moving Average [EWMA] over short and long horizons, and the adjustment models of Blume, BSW, and Vasicek) against 6 advanced machine learning algorithms, including Random Forest, gradient boosting models (XGBoost and GBRT), Artificial Neural Networks (MLP Keras), and penalized regressions (Elastic Net and Linear Models). To compare model accuracy, error metrics such as Value-Weighted Mean Squared Error (VWMSE), the two-sided Diebold–Mariano test with the Harvey–Leybourne–Newbold finite-sample correction (DM-HLN), feature importance analysis, and the construction of minimum-variance and market-neutral portfolios were employed.

Findings: The empirical findings of this research indicate the decisive superiority of machine learning algorithms over traditional econometric models in forecasting stock betas. The results demonstrated that decision tree-based models, particularly Random Forest (RF), Gradient Boosted Regression Trees (GBRT), and XGBoost algorithms, significantly outperformed other models in reducing out-of-sample prediction errors (evidenced by a substantial decrease in VWMSE), and the two-sided Diebold–Mariano test with the Harvey–Leybourne–Newbold finite-sample correction (DM-HLN) test confirmed the statistical significance of this outperformance. The feature importance analysis in machine learning algorithms revealed that, contrary to traditional beliefs, predictors based on accounting information (fundamental variables), followed by historical beta estimates, which play the most crucial role in accurately predicting future betas, with non-linear algorithms successfully uncovering these intricate patterns. However, in the economic evaluation and portfolio formation stage, results reveal that the statistical superiority of individual-stock models (such as RF) does not automatically translate into superior economic gains due to the fundamental divergence between statistical loss functions and portfolio optimization objectives. Instead, gradient boosting algorithms (such as GBRT) achieved significant economic outperformance-demonstrated through superior Sharpe ratios and effective drawdown mitigation-driven by more accurate beta estimates and an optimized portfolio risk profile.

Conclusion: The findings of this study suggest that machine learning algorithms exhibit a higher capacity for reducing prediction error in statistical beta forecasting within the Iranian capital market compared to traditional models. Although machine learning algorithms substantially enhance statistical beta forecasting accuracy in emerging markets, translating this precision into tangible portfolio economic gains depends critically on aligning model loss functions with portfolio risk-management constraints and covariance matrix estimation.
Keywords

Aflatooni, A., Eivani, F., & Nikbakht, Z. (2024). The effect of information transparency on firm value: The moderating role of industry competitiveness. Journal of Financial Management Perspective, 14(47), 89–107. https://doi.org/10.48308/jfmp.2025.237450.1435
Andersen, T. G., Bollerslev, T., Christoffersen, P. F., & Diebold, F. X. (2006). Chapter 15 Volatility and Correlation Forecasting. In Handbook of Economic Forecasting (Vol. 1, pp. 777–878). Elsevier. DOI: https://doi.org/10.1016/S1574-0706(05)01015-3
Andersen, T. G., Bollerslev, T., Diebold, F. X., & Wu, J. (2006). Realized beta: Persistence and predictability. Journal of Financial Economics, 81(3), 621–646. DOI: https://doi.org/10.1016/S0731-9053(05)20020-8
Babayi Fallah, A., Khalili Araghi, M., & Nikoumaram, H. (2022). Measuring Industry Beta using a Combination of Black-Scholes model and Grey Theory. Journal of Financial Management Perspective, 10(36), 157–178.  https://doi.org/10.22051/jfm.2020.28736.2238
Bagherzadeh, A., & Salem, A. (2015). Estimating the dynamic beta of systematic risk in the Tehran Stock Exchange using Kalman Filter and Dynamic Conditional Correlation (DCC) models. Journal of Economic Research and Policies, 23(74), 115–142. SID. https://sid.ir/paper/91193/fa
Bali, T. G., Engle, R. F., & Murray, S. (2016). Empirical asset pricing: The cross section of stock returns. John Wiley & Sons. DOI: https://doi.org/10.1002/9781118445112
Berk, J. B., & van Binsbergen, J. H. (2016). Measuring skill in the mutual fund industry. Journal of Financial Economics, 118(1), 1–20. DOI: https://doi.org/10.1016/j.jfineco.2015.05.002
Blume, M. E. (1971). On the assessment of risk. The Journal of Finance, 26(1), 1–10. DOI: https://doi.org/10.1111/j.1540-6261.1971.tb00584.x
Bollerslev, T., Engle, R. F., & Wooldridge, J. M. (1988). A capital asset pricing model with time-varying covariances. Journal of Political Economy, 96(1), 116–131. DOI: https://doi.org/10.1086/261527
Bucci, A. (2020). Machine learning for realized volatility forecasting. Journal of Financial Econometrics, 18(3), 527–559. DOI: https://doi.org/10.1093/jjfinec/nbaa014
Campbell, J. Y., Lo, A. W., & MacKinlay, A. C. (2001). The econometrics of financial markets. Princeton University Press. DOI: https://doi.org/10.1515/9781400830213
Cochrane, J. H. (2011). Presidential address: Discount rates. The Journal of Finance, 66(4), 1047–1108. https://doi.org/10.1111/j.1540-6261.2011.01671.x
Cosemans, M., Frehen, R., Schotman, P. C., & Bauer, R. (2016). Estimating market betas using prior information based on firm fundamentals. Review of Financial Studies, 29(4), 1072–1112. https://doi.org/10.1093/rfs/hhv131
DehghanManshadi, S., Rostami, M., & Khadivar, A. (2026). An intelligent integrated framework for return prediction, asset selection, and portfolio optimization based on ensemble learning and the Aquila meta-heuristic optimization algorithm. Financial Management Perspective, 15(4), 9–30. https://doi.org/10.48308/jfmp.2026.242761.1561
Diebold, F. X., & Mariano, R. S. (1995). Comparing predictive accuracy. Journal of Business & Economic Statistics, 13(3), 253–263. https://doi.org/10.1080/07350015.1995.10524599
Drobetz, W., Hollstein, F., Otto, T., & Prokopczuk, M. (2025). Estimating stock market betas via machine learning. Journal of Financial and Quantitative Analysis, 60(3), 1074-1110. https://doi.org/10.1017/S0022109024000036
Faff, R. W., Hillier, D., & Hillier, J. (2003). Time varying beta risk: An analysis of alternative modelling techniques. Journal of Business Finance & Accounting, 27(5–6), 523–554. https://doi.org/10.1111/1468-5957.00324
Fama, E. F., & French, K. R. (1992). The cross‐section of expected stock returns. The Journal of Finance, 47(2), 427–465.
https://doi.org/10.1111/j.1540-6261.1992.tb04398.x
Fama, E. F., & MacBeth, J. D. (1973). Risk, return, and equilibrium: Empirical tests. Journal of Political Economy, 81(3), 607–636. https://doi.org/10.1086/260061
Freyberger, J., Neuhierl, A., & Weber, M. (2020). Dissecting characteristics-based return predictability. Journal of Financial Economics, 138(2), 342–368. https://doi.org/10.1016/j.jfineco.2020.05.006
Gu, S., Kelly, B., & Xiu, D. (2020). Empirical asset pricing via machine learning. The Review of Financial Studies, 33(5), 2223–2273. https://doi.org/10.1093/rfs/hhaa009
Haji Bozorgi, J., & Akhoundian, M. J. (2011). Investigating the stability of systematic risk (beta) of investment portfolios in Tehran Stock Exchange. Financial Engineering and Securities Management, 2(6), 215-244. https://sid.ir/paper/495510/fa
Harvey, D., Leybourne, S., & Newbold, P. (1997). Testing the equality of prediction mean squared errors. International Journal of Forecasting, 13(2), 281–291. https://doi.org/10.1016/S0169-2070(96)00719-4
Heidari Dalooei, A., Vahdati, M., Mohebbi, H., & Bagherpour, N. (2026). Predictability of the Tehran Exchange Dividend and Price Index using a combined machine learning approach: Market efficiency analysis and importance of influential variables. Financial Research Journal, 28(2), 464–493. https://doi.org/10.22059/frj.2025.394747.1007738
Heydari, H., & Heidarpour, A. (2017). Time-varying risk assessment and extension of the Capital Asset Pricing Model (CAPM) in the Tehran Stock Exchange. Journal of Asset Management and Financing, 5(3), 61–76.
https://dor.isc.ac/dor/20.1001.1.23831170.1396.5.3.7.5
Hollstein, F.; M. Prokopczuk; and C. Wese Simen. “Estimating Beta: Forecast Adjustments and the Impact of Stock Characteristics for a Broad Cross-Section. Journal of Financial Markets, 44(2019), 91–118. https://doi.org/10.1016/j.jbankfin.2019.06.002
Huang, C. F. (2012) A hybrid stock selection model using genetic algorithms and support vector regression. Applied Soft Computing, 12(2), 807–818.  https://doi.org/10.1016/j.asoc.2011.10.009
56
Jagannathan, R., & Wang, Z. (1996). The conditional CAPM and the cross-section of expected returns. Journal of Finance, 51(1), 3–53. https://doi.org/10.2307/2329301
Jobson, J. D., & Korkie, B. M. (1981). Performance hypothesis testing with the Sharpe and Treynor measures. Journal of Finance, 36(4), 889–908. DOI: https://doi.org/10.1111/j.1540-6261.1981.tb04891.x
Jourovski, A., Dubikovskyy, V., Adell, P., Ramakrish and, R., & Kosowski, R. (2020). Forecasting beta using machine learning and equity sentiment variables. In E. Jurczenko (Ed.), Machine learning for asset management: New developments and financial applications (pp. 231–260). Wiley-ISTE. https://doi.org/10.1002/9781119751182.ch7
Kelly, B., Moskowitz, T. J., & Pruitt, S. (2021). Understanding momentum and reversal. Journal of Financial Economics, 140(3), 726–743. https://doi.org/10.1016/j.jfineco.2020.06.024
Kim, S., Korajczyk, R. A., & Neuhierl, A. (2021). Arbitrage portfolios. Review of Financial Studies, 34(6), 2813–2856.
 https://doi.org/10.1093/rfs/hhaa102
Kozak, S., Nagel, S., & Santosh, S. (2020). Shrinking the cross-section. Journal of Financial Economics, 135(2), 271–292. https://doi.org/10.1016/j.jfineco.2019.06.008
Leippold, M., Wang, Q., & Zhou, W. (2022). Machine learning in the Chinese stock market. Journal of Financial Economics, 145(2), 64–82. https://doi.org/10.1016/j.jfineco.2021.08.017
Lintner, J. (1965). The valuation of risk assets and the selection of risky investments in stock portfolios and capital budgets. The Review of Economics and Statistics, 47(1), 13–37.
https://doi.org/10.2307/1924119
Maldonado Mendoza, A., & Onishchenko, O. (2026). Beta estimation under infrequent trading: A machine learning approach. International Review of Finance, 26(3), Article e70093.
https://doi.org/10.1111/irfi.70093
Memmel, C. (2003). Performance hypothesis testing with the Sharpe ratio. Finance Letters, 1(1), 21–23. SSRN: https://ssrn.com/abstract=412588
Mohammadi, S., Abbasi-Nejad, H., & Mirsanei, S. R. (2007). Investigation of different methods of estimating beta in Tehran Stock Exchange. Accounting and Auditing Review, 14(47), 3–38.
Sabeti, M., Zomordian, G., Fallah, M., & Minooei, M. (2022). Estimating dynamic systematic risk using multivariate GARCH models in Tehran Stock Exchange. Journal of Financial Management Strategy, 10(3), 45–68.
https://www.noormags.ir/view/fa/articlepage/1965155
Saidi, A., & Ramesheh, M. (2011). Determinants of systematic risk of stocks in Tehran Stock Exchange. Financial Research Journal, 3(1). https://civilica.com/doc/1212004
Sharpe, W. F. (1964). Capital asset prices: A theory of market equilibrium under conditions of risk. The Journal of Finance, 19(3), 425–442. https://doi.org/10.1111/j.1540-6261.1964.tb02865.x
Taheri Bazkhaneh, S., & Sadrara, M. (2026). The puzzle of policy uncertainty and stock market volatility: Evidence from the Iran's economy. Financial Management Perspective, 15(4), 55–76. https://doi.org/10.48308/jfmp.2026.242565.1555
Tehrani, R., & Chit-Sazan, H. (2004). Investigating the trend of systematic risk and beta stability of companies listed in Tehran Stock Exchange. Journal of Financial Research, 6(1), 1-12.
https://dor.isc.ac/dor/20.1001.1.10248153.1383.6.1.2.2
Tondnevis, F., & Valamehr, H. (2025). Probabilistic forecasting and robust optimization for managing uncertainty in smart beta portfolio optimization. Financial Research Journal, 27(2), 508–530. https://doi.org/10.22059/frj.2025.401381.1007783
Vasicek, O. A. (1973). A note on using cross-sectional information in Bayesian estimation of security betas. The Journal of Finance, 28(5), 1233–1239. https://doi.org/10.1111/j.1540-6261.1973.tb01402.x
Welch, I. (2022). The fluctuating beta of the market. Journal of Financial Economics, 145(1), 1–22. https://doi.org/10.1016/j.jfineco.2022.02.008
Zhao, C., Yang, S., Qin, C., Zhou, J. & Chen, L. (2022). A novel smart beta optimization based on probabilistic forecast. Computers, Materials & Continua, 75(1), 478–491. https://doi.org/10.32604/cmc.2023.034933.