Assessing Machine Learning's Accuracy in Stock Price Prediction
Keywords:Machine Learning, Stock Price Prediction, Linear Regression, Random Forest K Nearest Neighbor (KNN), Mean Squared Error (MSE), Financial Industry
This research examines how well machine learning models can predict the closing price of traded stocks. The financial industry has seen an increase, in the use of these models due to the availability of datasets and technological advancements. The study compares machine learning models such as Linear Regression, Random Forest and K Nearest Neighbor (KNN) to determine which ones are the accurate predictors and what factors contribute to their effectiveness. To gain insights into model performance a diverse dataset consisting of five stocks from sectors is used. Data analysis and modeling are conducted using Python programming language with libraries, like Pandas, NumPy, Matplotlib and Scikit learn. The performance evaluation metric utilized is Mean Squared Error (MSE). The research findings have the potential to assist investors and traders in making decisions while also contributing to the growth of the financial industry.
“2.1 Introduction to Linear Regression - Module 2: Fundamental Algorithms I,” Coursera. https://www.coursera.org/lecture/machine-learning-accounting-python/2-1-introduction-to-linear-regression-MziWZ
P. Agarwal, “Machine Learning For Prognosis of Life Expectancy and Diseases,” VOLUME-8 ISSUE-10, AUGUST 2019, REGULAR ISSUE, vol. 8, no. 10, pp. 1765–1771, Aug. 2019, doi: https://doi.org/10.35940/ijitee.j9156.0881019.
“Calculate Mean Squared Error using TensorFlow 2,” lindevs.com, Oct. 24, 2020. https://lindevs.com/calculate-mean-squared-error-using-tensorflow-2 (accessed Mar. 13, 2023).
Y. Choudhary, “Linear Regression Implementation in Python,” Linear Regression Implementation in Python, Jun. 07, 2017. https://yasirchoudhary.blogspot.com/2017/06 (accessed Mar. 14, 2023).
JavaTpoint, “K-Nearest Neighbor(KNN) Algorithm for Machine Learning - Javatpoint,” www.javatpoint.com, 2021. https://www.javatpoint.com/k-nearest-neighbor-algorithm-for-machine-learning
HKT Consultant, “Multiple Coefficient of Determination in Multiple Regression,” HKT Consultant, Aug. 31, 2021. https://phantran.net/multiple-coefficient-of-determination-in-multiple-regression/ (accessed Mar. 18, 2023).
I. Inada, “Comprehensive Guide on Root Mean Squared Error (RMSE),” Aug. 12, 2023. https://www.skytowner.com/explore/comprehensive_guide_on_root_mean_squared_error (accessed Mar. 18, 2023).
MLTut, “Multiple Linear Regression: Everything You Need to Know About,” MLTut, May 19, 2020. https://www.mltut.com/multiple-linear-regression/ (accessed Mar. 16, 2023).
O. Altay, Performance of different KNN models in prediction english language readability. IEEE, 2022, pp. 1–5. doi: https://doi.org/10.1109/ICMI55296.2022.9873670.
Rishab Mamgai et al., “Stock prediction & recommendation system using KNN and linear regression,” Nucleation and Atmospheric Aerosols, Jan. 2022, doi: https://doi.org/10.1063/5.0108799.
R. Ruhal and E. Prashar, A Comparative Study Of Statistical Methods And Machine Learning Approaches For Stock Price Prediction. 2023. doi: https://doi.org/10.13140/RG.2.2.19210.44483.
Yahoo Finance, “Yahoo Finance - Business Finance, Stock Market, Quotes, News,” Yahoo Finance, 2023. https://finance.yahoo.com/
How to Cite
Copyright (c) 2023 Aryan Bhatta, Pranshu P, Drishant M, Aryaa Thapa
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Authors who submit papers with this journal agree to the following terms.