Research on the Google Stock Price Prediction Based on SVR, Random Forest, and KNN Models

Authors

  • Yuping Huang

DOI:

https://doi.org/10.54097/n8hxqx19

Keywords:

Stock price prediction; super vector regression; random forest; K-nearest neighbor; MSE value

Abstract

The prediction of stock prices is an intriguing and difficult study issue. Due to its frequent offers of quick rewards and low risk of loss, the stock market is currently regarded as a prestigious trading sector. Data mining and business researchers find the stock market to be an ideal environment due to its extensive and dynamic information sources. In this paper, the data of google stock price from 2018-1-2 to 2023-3-31 is imported. As our classification algorithms, the authors independently selected and contrasted super vector regression, random forest, and K-nearest neighbor. Following test, analysis, and comparison of these classifiers and calculate the mean square error of test data, the final result was reached. According to the result, the random forest has the smallest MSE value, so it is the best prediction and uses this method to predict the stock price of next ten days. After using random forest to do the stock price prediction, we find that the close price has the increasing trend for next ten days, which is good for the investors.

Downloads

Download data is not yet available.

References

Khalid Alkhatib, et al. Stock Price Prediction Using K-Nearest Neighbor (KNN) Algorithm. International Journal of Business, 2013, 3(3).

Ahmad Kazem, et al. Support Vector Regression with Chaos-Based Firefly Algorithm for Stock Market Price Forecasting. Applied Soft Computing, 2013, 13(2):947–958.

Kifayat Ullahand, Muhammad Qasim. Google Stock Prices Prediction Using Deep Learning.2020.

Ishita Parmar, Ridam Arora, Lokesh Chouhan, Navanshu Agarwa, Shikhin Gupta, Sheirsh Saxena, et al. Stock Market Prediction Using Machine Learning. First International Conference on Secure Cyber Computing and Communication (ICSCCC), 2018.

Kanish Shah, et al. A Comparative Analysis of Logistic Regression, Random Forest and KNN Models for the Text Classification. Augmented Human Research, 2020, 5(1).

Kumar R, Kaur J. Random forest-based sarcastic tweet classification using multiple feature collection. Tanwar S, Tyagi S, Kumar N (eds) Multimedia big data computing for IoT applications. Intelligent systems reference library, 2020,163.

Park, Hyun Jun, et al. Stock Market Forecasting Using a Multi-Task Approach Integrating Long Short-Term Memory and the Random Forest Framework. Applied Soft Computing, 2021, 1: 106-108.

Y. Ma, R. Han, X. Fu. Stock prediction based on random forest and LSTM neural network. 19th international conference on control automation and systems, ICCAS, Jeju, Korea (South), 2019, 2019(10):126–130.

Adlakha, N., Ridhima and Katal, A.Real Time Stock Market Analysis. 2021 International Conference on System, Computation, Automation and Networking (ICSCAN). 2021.

M. Vijh, D. Chandola, V. A. Tikkiwal and A. Kumar. Stock Closing Price Prediction using Machine Learning Techniques. Procedia Computer Science, 2020, 167:599-606.

Downloads

Published

22-01-2024