Publication | Open Access
Predicting Stock Market Trends Using Machine Learning and Deep Learning Algorithms Via Continuous and Binary Data; a Comparative Analysis
426
Citations
26
References
2020
Year
EngineeringMachine LearningTrend PredictionData ScienceData MiningFinancial Time Series AnalysisComparative AnalysisMachine Learning ModelPredictive AnalyticsQuantitative FinanceKnowledge DiscoveryTrading ModelComputer ScienceForecastingDeep LearningFinanceIntelligent ForecastingBinary DataBusinessExtreme Gradient BoostingVolatility RiskStock Market PredictionStock Market Movement
Stock market movements are ambiguous due to many influencing factors. The study seeks to reduce trend‑prediction risk by applying machine‑learning and deep‑learning algorithms. The authors evaluated nine machine‑learning models and two deep‑learning methods on ten technical indicators derived from ten years of Tehran exchange data, using both continuous and binary representations and assessing performance with three metrics across four industry sectors. For continuous data, RNN and LSTM outperformed all other models, while for binary data the deep‑learning methods remained best but the performance gap narrowed as other models improved.
The nature of stock market movement has always been ambiguous for investors because of various influential factors. This study aims to significantly reduce the risk of trend prediction with machine learning and deep learning algorithms. Four stock market groups, namely diversified financials, petroleum, non-metallic minerals and basic metals from Tehran stock exchange, are chosen for experimental evaluations. This study compares nine machine learning models (Decision Tree, Random Forest, Adaptive Boosting (Adaboost), eXtreme Gradient Boosting (XGBoost), Support Vector Classifier (SVC), Naïve Bayes, K-Nearest Neighbors (KNN), Logistic Regression and Artificial Neural Network (ANN)) and two powerful deep learning methods (Recurrent Neural Network (RNN) and Long short-term memory (LSTM). Ten technical indicators from ten years of historical data are our input values, and two ways are supposed for employing them. Firstly, calculating the indicators by stock trading values as continuous data, and secondly converting indicators to binary data before using. Each prediction model is evaluated by three metrics based on the input ways. The evaluation results indicate that for the continuous data, RNN and LSTM outperform other prediction models with a considerable difference. Also, results show that in the binary data evaluation, those deep learning methods are the best; however, the difference becomes less because of the noticeable improvement of models' performance in the second way.
| Year | Citations | |
|---|---|---|
Page 1
Page 1