Machine learning stock selection: Evidence from the South African factor zoo
Abstract
This study examines whether machine learning can predict Johannesburg Stock Exchange stock returns using South African factor zoo features. Six models are tested in an expanding-window, walk-forward design, with portfolio performance evaluated across alternative weighting schemes and factor-spanning regressions. Ensemble tree-based models, particularly Random Forest, XGBoost and LightGBM, deliver the strongest out-of-sample performance, especially under more intensive training and linear rank weighting. Market-capitalisation weighting weakens alpha. Although machine-learning portfolios generate meaningful alphas under Fama–French models, the inclusion of momentum materially reduces alpha, highlighting momentum’s dominance in South African equity returns.
Full text article
References
Bailey, D. H., & Lopez de Prado, M. (2012). The Sharpe ratio efficient frontier. Journal of Risk, 15(2), 13. DOI: https://doi.org/10.21314/JOR.2012.255
Basiewicz, P. G., & Auret, C. J. (2009). Another look at the cross-section of average returns on the JSE. Investment Analyst Journal, 38(69), 23-38. DOI: https://doi.org/10.1080/10293523.2009.11082507
Carhart, M. M. (1997). On persistence in mutual fund performance. The Journal of Finance, 52(1), 57-82. DOI: https://doi.org/10.1111/j.1540-6261.1997.tb03808.x
Cochrane, J. H. (2011). Presidential address: Discount rates. The Journal of Finance, 66(4), 1047-1108. DOI: https://doi.org/10.1111/j.1540-6261.2011.01671.x
Cox, S., & Britten, J. (2019). The Fama-French five-factor model: evidence from the Johannesburg Stock Exchange. Investment Analyst Journal, 48(3), 240-261. DOI: https://doi.org/10.1080/10293523.2019.1647982
Fama, E. F., & French, K. R. (1993). Common risk factors in the returns on stocks and bonds. Journal of Financial Economics, 33(1), 3-56. DOI: https://doi.org/10.1016/0304-405X(93)90023-5
Fama, E. F., & French, K. R. (2015). A five-factor asset pricing model. Journal of Financial Economics, 116(1), 1-22. DOI: https://doi.org/10.1016/j.jfineco.2014.10.010
Fama, E. F., & French, K. R. (2018). Choosing factors. Journal of Financial Economics, 128(2), 234-252. DOI: https://doi.org/10.1016/j.jfineco.2018.02.012
Grinsztajn, L., Oyallon, E., & Varoquaux, G. (2022). Why do tree-based models still outperform deep learning on typical tabular data? Advances in neural information processing systems, 6(35), 507-520. https://proceedings.neurips.cc/paper_files/paper/2022/file/0378c7692da36807bdec87ab043cdadc-Paper-Datasets_and_Benchmarks.pdf DOI: https://doi.org/10.52202/068431-0037
Gu, S., Kelly, B., & Xiu, D. (2020). Empirical asset pricing via machine learning. The Review of Financial Studies, 33(5), 2223-2273. DOI: https://doi.org/10.1093/rfs/hhaa009
Hodnett, K., Hsieh, H. H., & van Rensburg, P. (2012). Payoffs to equity investment styles on the jse securities exchange: The case of South African equity market. The International Business & Economics Research Journal , 11(1), 19. https://www.researchgate.net/profile/Paul-Van-Rensburg/publication/297722786_Payoffs_To_Equity_Investment_Styles_On_The_JSE_Securities_Exchange_The_Case_Of_South_African_Equity_Market/links/57e4f2b208aee9b409fe860d/Payoffs-To-Equity-Investment-Styles-On-The-JSE-Securities-Exchange-The-Case-Of-South-African-Equity-Market.pdf DOI: https://doi.org/10.19030/iber.v11i1.7153
Jegadeesh, N., & Titman, S. (1993). Returns to buying winners and selling losers: Implications for stock market efficiency. The Journal of Finance, 48(1), 65-91. DOI: https://doi.org/10.1111/j.1540-6261.1993.tb04702.x
Jegadeesh, N., & Titman, S. (2001). Profitability of momentum strategies: An evaluation of alternative explanations. The Journal of Finance, 56(2), 699-720. DOI: https://doi.org/10.1111/0022-1082.00342
Leippold, M., Wang, Q., & Zhou, W. (2022). Machine learning in the Chinese stock market. Journal of Financial Economics, 145(2), 64-82. DOI: https://doi.org/10.1016/j.jfineco.2021.08.017
Leung, E., Lohre, H., Mischlich, D., Shea, Y., & Stroh, M. (2021). The Promises and Pitfalls of Machine Learning for Predicting Stock Returns. The Journal of Financial Data Science, 3(2), 21-50. DOI: https://doi.org/10.3905/jfds.2021.1.062
Muller, C., & Ward, M. (2013). Style-based effects on the Johannesburg Stock Exchange: A graphical time-series approach. Investment Analyst Journal, 42(77), 1-16. DOI: https://doi.org/10.1080/10293523.2013.11082552
Page, D., & Auret, C. J. (2019). Can non-momentum factor premiums explain the momentum anomaly on the JSE? An in-depth portfolio attribution analysis. Investment Analyst Journal, 48(1), 1-17. DOI: https://doi.org/10.1080/10293523.2018.1483792
Page, D., Britten, J., & Auret, C. J. (2015). Rand Hedge as an Investment Strategy on the JSE. Studies in Economics and Econometrics, 39(2), 1-19. DOI: https://doi.org/10.1080/10800379.2015.12097279
Page, D., McClelland, D., & Auret, C. J. (2022). Style rotation on the JSE. Finance Research Letters, 46, 102504. DOI: https://doi.org/10.1016/j.frl.2021.102504
Page, D., McClelland, D., & Auret, C. J. (2024). Machine learning style rotation–evidence from the Johannesburg Stock Exchange. Cogent Economics & Finance, 12(1), 2402893. DOI: https://doi.org/10.1080/23322039.2024.2402893
Strugnell, D., Gilbert, E., & Kruger, R. (2011). Beta, size and value effects on the JSE. Investment Analyst Journal, 40(74), 1-17. DOI: https://doi.org/10.1080/10293523.2011.11082537
Tsai, P. F., Gao, C. H., & Yuan, S. M. (2023). Stock selection using machine learning based on financial ratios. Mathematics, 11(23), 1-18. DOI: https://doi.org/10.3390/math11234758
van Rensburg, J., & van Vuuren, G. (2020). Evaluating investment decisions based on the business cycle: A South African sector approach. Cogent Economics & Finance, 8(1), 1-24. DOI: https://doi.org/10.1080/23322039.2020.1852729
van Rensburg, P. (2001). A decomposition of style-based risk on the JSE. Investment Analyst Journal, 30(54), 45-60. DOI: https://doi.org/10.1080/10293523.2001.11082431
van Rensburg, P., & Robertson, M. (2003). Size, price-to-earnings and beta on the JSE Securities Exchange. Investment Analyst Journal, 32(58), 7-16. DOI: https://doi.org/10.1080/10293523.2003.11082449
Wolff, D., & Echterling, F. (2024). Stock picking with machine learning. Journal of Forecasting, 43(1), 81-102. DOI: https://doi.org/10.1002/for.3021
Authors
Copyright (c) 2026 Daniel Page, Yudhvir Seetharam, Christo Auret

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