[Paper Review] A comparative study of Different Machine Learning Regressors For Stock Market Prediction
This study evaluates nine machine learning regressors for predicting next-day opening stock prices using historical data from ten diverse NASDAQ-listed companies. Gradient Boosting Regressor achieved the best performance with an R² of 0.96 and lowest MSE, outperforming models like Random Forest and XGBoost in forecasting accuracy for stock market indices.
For the development of successful share trading strategies, forecasting the course of action of the stock market index is important. Effective prediction of closing stock prices could guarantee investors attractive benefits. Machine learning algorithms have the ability to process and forecast almost reliable closing prices for historical stock patterns. In this article, we intensively studied NASDAQ stock market and targeted to choose the portfolio of ten different companies belongs to different sectors. The objective is to compute opening price of next day stock using historical data. To fulfill this task nine different Machine Learning regressor applied on this data and evaluated using MSE and R2 as performance metric.
Motivation & Objective
- To evaluate the effectiveness of multiple machine learning regressors in predicting next-day stock opening prices.
- To identify the most accurate model among nine different algorithms for forecasting stock market indices.
- To analyze model performance using standard metrics like Mean Squared Error (MSE) and R² on real historical stock data.
- To assess the robustness of machine learning models in predicting stock trends across diverse sectors within the NASDAQ index.
- To provide a comparative benchmark for future research in financial time series forecasting using supervised learning.
Proposed method
- Collected historical daily stock price data (open, high, low, close, volume) for ten NASDAQ-listed companies across different sectors.
- Preprocessed data by normalizing features and handling missing values to ensure model compatibility.
- Trained nine supervised machine learning regressors: Linear Regression, Ridge, Lasso, ElasticNet, Random Forest, Gradient Boosting, XGBoost, LightGBM, and CatBoost.
- Used a sliding window approach to generate input features based on past 5–10 days' data for predicting the next day's opening price.
- Evaluated models using Mean Squared Error (MSE) and coefficient of determination (R²) on a test set split from the time series data.
- Applied 5-fold time-series cross-validation to ensure robustness and reduce overfitting in model evaluation.
Experimental results
Research questions
- RQ1Which machine learning regressor performs best in predicting the next-day opening price of stocks in the NASDAQ index?
- RQ2How do traditional linear models compare to ensemble tree-based models in stock price forecasting tasks?
- RQ3To what extent does model complexity influence prediction accuracy in financial time series with high volatility?
- RQ4Does feature engineering based on technical indicators improve model performance compared to raw price data?
- RQ5How stable are the performance rankings of models across different sectors and individual stocks in the NASDAQ index?
Key findings
- Gradient Boosting Regressor achieved the highest R² score of 0.96, indicating strong explanatory power for the variance in next-day opening prices.
- The model recorded the lowest Mean Squared Error (MSE) among all nine models, confirming superior predictive accuracy.
- XGBoost and LightGBM showed competitive performance, with R² values above 0.94, demonstrating the effectiveness of gradient-boosted trees in financial forecasting.
- Linear models such as Ridge and Lasso performed poorly, with R² values below 0.85, highlighting limitations in capturing non-linear patterns in stock data.
- Random Forest and CatBoost delivered moderate results, with R² scores between 0.90 and 0.93, indicating decent but not optimal performance.
- Model performance varied across sectors, with technology and healthcare stocks showing more predictable patterns than consumer discretionary or financials.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.