Financial Management Perspective

Financial Management Perspective

Two-Stage Integration of Fundamental and Trading Data for Short-Term Stock Return Prediction Using Residual Learning

Document Type : Original Article

Authors
1 Tehran University
2 Management Department Tehran University
Abstract
Introduction: Fundamental and trading data provide different perspectives on stock return predictability, and their combined predictive value may depend on the forecasting horizon and how the information is integrated. Accounting information is generally updated quarterly or annually, whereas trading data capture daily market developments. Valuation ratios involving market capitalization can also change daily. This study evaluates a two-stage residual learning framework for cross-sectional stock return prediction over horizons of 1, 3, 5, 10, and 15 trading days. Its performance is compared with fundamental-only, trading-only, and direct feature-combination models to examine whether sequential integration improves ranking quality and return separation.



Methods: The study examines manufacturing companies listed on the Tehran Stock Exchange. Financial statement information was obtained from Codal, and daily price and trading data were collected from TSETMC. Fundamental features included trailing-twelve-month earnings-to-market-capitalization and sales-to-market-capitalization ratios, quarterly earnings and sales growth, and changes in gross, operating, and net profit margins. These financial features were transformed into daily cross-sectional percentile ranks across the sample and within industries. Accounting information was incorporated from the day after its official publication. Trading features captured candlestick characteristics, historical returns, and measures related to risk and market movements.



All four designs used XGBoost regression and were evaluated through two successive rolling test windows. Training and validation observations whose target-return intervals crossed the respective period boundaries were excluded. In the two-stage framework, the first model predicted returns using fundamental features, and the second used trading features to learn residuals calculated from the first model’s predictions on the same training observations. Target returns were measured from the adjusted closing price on the prediction date to the adjusted opening price at the forecast horizon. Performance was evaluated using the mean daily Spearman Rank Information Coefficient (Rank IC) and the return spread between the highest- and lowest-scoring deciles, with common evaluation filters applied across models.



The sample comprised 274 manufacturing firms listed on the Tehran Stock Exchange and approximately 400,000 firm-day observations from January 2017 to June 2026. Approximately 70,000 observations were used in two consecutive test windows, July 2024–June 2025 and July 2025–June 2026, with the remaining observations used for training and validation.





Findings: The two-stage model achieved the highest mean Rank IC at all five forecasting horizons, with values of 0.32987, 0.04453, 0.03668, 0.05328, and 0.04400 at 1, 3, 5, 10, and 15 days, respectively. At the 1-day horizon, its performance was close to that of the trading-only and direct-combination models, which recorded IC values of 0.32856 and 0.32875. The advantage was more pronounced at 3 days: the two-stage model achieved an IC of 0.04453 and a spread of 0.483%, compared with 0.03103 and 0.332% for the trading-only model and 0.02252 and 0.153% for direct combination.

The two-stage model also recorded the largest decile spreads at the 1-, 3-, and 15-day horizons, at 1.847%, 0.483%, and 1.83%, respectively. Direct combination produced higher spreads at 5 and 10 days, while the two-stage model retained the highest mean IC. Across all five horizons, the two-stage model’s spread exceeded that of the trading-only model. The fundamental-only model’s IC increased from 0.00247 at 1 day to 0.04211 at 15 days, indicating greater standalone predictive value at the longer horizons examined.



Conclusions: The two-stage residual learning framework achieved the highest mean Rank IC across all five forecasting horizons and the largest decile spread at the 1-, 3-, and 15-day horizons. Its spread also exceeded that of the trading-only model at every horizon. These findings support the value of sequentially integrating fundamental and trading information to improve cross-sectional stock ranking. Direct combination produced the largest spreads at 5 and 10 days, indicating that the preferred integration method also depends on the forecasting horizon and evaluation objective.
Keywords

Amihud, Y. (2002). Illiquidity and stock returns: Cross-section and time-series effects. Journal of Financial Markets, 5(1), 31–56.
Avramov, D., Cheng, S., & Metzker, L. (2023). Machine learning vs. Economic restrictions: Evidence from stock return predictability. Management Science, 69(5), 2587–2619.
Bianchi, D., Büchner, M., & Tamoni, A. (2021). Bond risk premiums with machine learning. The Review of Financial Studies, 34(2), 1046–1089.
Breiman, L. (2001). Random Forests. Machine Learning, 45(1), 5–32.
Bryzgalova, S., Lerner, S., Lettau, M., & Pelger, M. (2025). Missing Financial Data. The Review of Financial Studies, 38(3), 803–882.
26
Bryzgalova, S., Pelger, M., & Zhu, J. (2025). Forest through the Trees: Building Cross-Sections of Stock Returns. The Journal of Finance, 80(5), 2447–2506.
Cao, H., Zou, J., Liu, Y., Zhang, Z., Abbasnejad, E., Hengel, A. van den, & Shi, J. Q. (2024). InvariantStock: Learning Invariant Features for Mastering the Shifting Market. arXiv Preprint arXiv:2409.00671.
Chen, L., Pelger, M., & Zhu, J. (2024). Deep learning in asset pricing. Management Science, 70(2), 714–750.
Chen, T., & Guestrin, C. (2016). XGBoost: A Scalable Tree Boosting System. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’16, 785–794.
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, 14(4), 9–30.
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.
Fischer, T., & Krauss, C. (2018). Deep learning with long short-term memory networks for financial market predictions. European Journal of Operational Research, 270(2), 654–669.
Freyberger, J., Neuhierl, A., & Weber, M. (2020). Dissecting Characteristics Nonparametrically. The Review of Financial Studies.
Friedman, J. H. (2001). Greedy function approximation: A gradient boosting machine. The Annals of Statistics, 29(5), 1189–1232.
Ghods, M., Amiry, M., Forooshani, M. P., & Dehnavi, M. D. (2025). Prediction of Tehran Stock Exchange Total Index Using Natural Gradient Boosting and SHAP Values. Financial Management, 15(1), 34–53.
Gholami, N., & Shams Gharne, N. (2024). Presenting an optimized CNN-LSTM model for stock price forecasting in the tehran stock exchange. Financial Management Perspective, 14(45), 123–147.
Giglio, S., & Xiu, D. (2021). Asset pricing with omitted factors. Journal of Political Economy, 129(7), 1947–1990.
Gu, S., Kelly, B., & Xiu, D. (2020). Empirical asset pricing via machine learning. The Review of Financial Studies, 33(5), 2223–2273.
Gu, S., Kelly, B., & Xiu, D. (2021). Autoencoder asset pricing models. Journal of Econometrics, Annals Issue: Financial Econometrics in the Age of the Digital Economy, 222(1, Part B), 429–450.
Han, Y., He, A., Rapach, D. E., & Zhou, G. (2024). Cross-sectional expected returns: New Fama–MacBeth regressions in the era of machine learning. Review of Finance, 28(6), 1807–1831.
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.
Kelly, B. T., Pruitt, S., & Su, Y. (2019). Characteristics are covariances: A unified model of risk and return. Journal of Financial Economics, 134(3), 501–524.
27
Kim, T., & Kim, H. Y. (2019). Forecasting stock prices with a feature fusion LSTM-CNN model using different representations of the same data. PLOS ONE, 14(2), e0212320.
Krauss, C., Do, X. A., & Huck, N. (2017). Deep neural networks, gradient-boosted trees, random forests: Statistical arbitrage on the S&P 500. European Journal of Operational Research, 259(2), 689–702.
Leippold, M., & Yang, H. (2023). Mixed‐frequency predictive regressions with parameter learning. Journal of Forecasting, 42(8), 1955–1972.
Li, T., Liu, Z., Shen, Y., Wang, X., Chen, H., & Huang, S. (2024). Master: Market-guided stock transformer for stock price forecasting. 38(1), 162–170.
Noseda, M., Soldati, N., & Paina, M. (2026). Predicting Stock Price Direction on Earnings Announcement Days using Multi-modal Deep Learning. arXiv Preprint arXiv:2605.25894.
Poh, D., Lim, B., Zohren, S., & Roberts, S. (2021). Building cross-sectional systematic strategies by learning to rank. The Journal of Financial Data Science.
Raei, R., Vahdati, M., Mohebbi, H., & Heydari Delooei, A. (2025). Interpreting Forecast the Return of the Price Index of Manufacturing Industries in the Tehran Stock Exchange Using Explainable Ensemble Learning. Financial Management Perspective, 14(48), 55–78.
Zhang, J., Li, L., & Chen, W. (2021). Predicting Stock Price Using Two-Stage Machine Learning Techniques. Computational Economics, 57(4), 1237–1261.