Skip to main content
QUICK REVIEW

[Paper Review] A Machine Learning Framework for Stock Selection

Xingyu Fu, Jin‐Hong Du|arXiv (Cornell University)|Jun 5, 2018
Stock Market Forecasting MethodsDecision Sciences12 references13 citations
TL;DR

This paper proposes a machine learning framework for stock selection using 244 technical and fundamental features, with model ensembling via Stacking (combining Random Forest and Deep Neural Networks) achieving the highest performance. The approach, validated on Chinese stocks, reaches an AUC of 0.972 and outperforms the market in backtests, with Genetic Algorithm reducing redundant features without performance loss.

ABSTRACT

This paper demonstrates how to apply machine learning algorithms to distinguish good stocks from the bad stocks. To this end, we construct 244 technical and fundamental features to characterize each stock, and label stocks according to their ranking with respect to the return-to-volatility ratio. Algorithms ranging from traditional statistical learning methods to recently popular deep learning method, e.g. Logistic Regression (LR), Random Forest (RF), Deep Neural Network (DNN), and the Stacking, are trained to solve the classification task. Genetic Algorithm (GA) is also used to implement feature selection. The effectiveness of the stock selection strategy is validated in Chinese stock market in both statistical and practical aspects, showing that: 1) Stacking outperforms other models reaching an AUC score of 0.972; 2) Genetic Algorithm picks a subset of 114 features and the prediction performances of all models remain almost unchanged after the selection procedure, which suggests some features are indeed redundant; 3) LR and DNN are radical models; RF is risk-neutral model; Stacking is somewhere between DNN and RF. 4) The portfolios constructed by our models outperform market average in back tests.

Motivation & Objective

  • To develop a robust machine learning framework for distinguishing high-performing stocks from underperforming ones in financial markets.
  • To address the challenge of noisy, non-stationary financial data by integrating diverse models and effective feature selection.
  • To evaluate model performance not only statistically but also through practical portfolio backtesting against market benchmarks.
  • To investigate the risk profiles of different models (e.g., radical, risk-neutral) and the effectiveness of ensemble learning in stock selection.

Proposed method

  • Construct 244 technical and fundamental features per stock to represent its financial and price behavior across time.
  • Label stocks as positive (top Q%) or negative (bottom Q%) based on the return-to-volatility ratio, a proxy for Sharpe ratio, to create a balanced classification task.
  • Apply multiple models: Logistic Regression (LR), Random Forest (RF), Deep Neural Network (DNN), and Stacking (meta-learner using LR on outputs of RF and DNN).
  • Use Genetic Algorithm (GA) for global feature subset selection to reduce redundancy and computational cost.
  • Implement regularization techniques (Dropout, Batch-Normalization, L2 penalty) in DNN to mitigate overfitting on low signal-to-noise financial data.
  • Train the Stacking model using a three-way split: Train-1 and Train-2 for base models (DNN on combined data, RF on Train-2), and Validation for meta-learner (LR) training on base model predictions.

Experimental results

Research questions

  • RQ1Can a machine learning framework effectively classify 'good' stocks from 'bad' stocks using a combination of technical and fundamental features?
  • RQ2How does the performance of different models (LR, RF, DNN, Stacking) compare in terms of AUC, accuracy, and risk profile in stock selection?
  • RQ3To what extent does feature selection via Genetic Algorithm improve model efficiency without degrading predictive performance?
  • RQ4How do the risk profiles of LR, RF, DNN, and Stacking compare—specifically, are LR and DNN more aggressive, and is Stacking a balanced hybrid?
  • RQ5Can portfolios constructed using model predictions outperform the market index in out-of-sample backtests?

Key findings

  • The Stacking model, combining predictions from Random Forest and Deep Neural Network via a Logistic Regression meta-learner, achieved the highest AUC score of 0.972, outperforming all individual models.
  • Genetic Algorithm selected a subset of 114 features from the original 244, with no significant drop in model performance, indicating substantial redundancy in the initial feature set.
  • Logistic Regression and Deep Neural Network models exhibited high recall and low precision, indicating a radical investment strategy that favors high-conviction picks.
  • Random Forest showed balanced precision and recall, suggesting a risk-neutral approach, while Stacking’s performance and risk profile fell between DNN and RF.
  • Portfolios constructed using model outputs consistently outperformed the market average in multiple backtests across different starting dates (2015, 2017, 2018).
  • The statistical and practical validation pipeline confirmed that the framework is both highly accurate and practically viable for real-world stock selection.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.