Stock Trend Prediction Using KNN Algorithm

Authors

  • Anjali Patil  M-Tech Electronics Engineering Department in J D college of Engineering & Management, Nagpur, Maharashtra, India
  • Gayatri Padole  M-Tech Electronics Engineering Department in J D college of Engineering & Management, Nagpur, Maharashtra, India
  • Akansha Sontakke  Professor of M-Tech Electronics Engineering Department in J D college of Engineering & Management, Nagpur, Maharashtra, India

DOI:

https://doi.org/10.32628/IJSRST5231035

Keywords:

Stock Price Prediction, K-Nearest Neighbors, Probabilistic Method.

Abstract

Stock forecasting has always been a difficult task for statisticians and financial analysts. The key strategy used to make this prediction is buying stocks with a high probability of price growth and selling stocks with a high probability of price decline. There are typically two approaches to stock market forecasting. One of them is fundamental analysis, which is dependent on a company's methodology and fundamental data. The performance of the supervised machine learning algorithm KNN (K-Nearest Neighbor) is evaluated by the author in this study. Stock trading is one of the most significant activities in the world of finance. Trying to anticipate the future value of a stock or other financial instrument traded on a financial exchange is known as stock market prediction. Python is the computer language used to make stock market predictions using machine learning. In this article, we present a Machine Learning (ML) approach that will be trained using the stock market data that is currently accessible, gain intelligence, and then use the learned information to make an accurate prediction. This study employs prices with both daily and up-to-the-minute frequencies and a machine learning method known as K-Nearest Neighbor to forecast stock prices for both large and small capitalizations and in the three separate marketplaces.

References

  1. H. Maqsood, I. Mehmood, M. Maqsood, M. Yasir, S. Afzal, F. Aadil, M. M. Selim, and K. Muhammad, ‘‘A local and global event sentiment based efficient stock exchange forecasting using deep learning,’’ Int. J. Inf. Manage., vol. 50, pp. 432–451, Feb. 2020.
  2. W. Long, Z. Lu, and L. Cui, ‘‘Deep learning based feature engineering for stock price movement prediction,’’ Knowl.-Based Syst., vol. s164, pp. 163–173, Jan. 2021.
  3. Kalra S, Prasad JS. Efficacy of News Sentiment for Stock Market Prediction. Proc Int Conf Mach Learn Big Data, Cloud Parallel Comput Trends, Prespectives Prospect Com 2020. Published online 2020:491-496. doi:10.1109/COMITCon.2019.8862265
  4. Menon A, Singh S, Parekh H. A review of stock market prediction using neural networks. 2019 IEEE Int Conf Syst Comput Autom Networking, ICSCAN 2019. Published online 2019
  5. Kian-Ping Lim, Chee-Wooi Hooy, Kwok-Boon Chang, and Robert Brooks, Foreign investors and stock price efficiency: Thresholds, underlying channels and investor heterogeneity, The North American Journal of Economics and Finance.
  6. Yauheniya Shynkevicha, T.M. McGinnity, Sonya A. Coleman, and Ammar Belatreche, Forecasting movements of health-care stock prices based on different categories of news articles using multiple kernel learning, Decision Support Systems, Vol. 85, http://linkinghub.elsevier.com/retrieve/pii/S016 7923616300252, 2021, pp. 74–83.
  7. J. B. Duarte, L. H. Talero Sarmiento, and K. J. Sierra Juárez, ‘‘Evaluation of the effect of investor psychology on an artificial stock market through its degree of efficiency,’’ Contaduría y Administración, vol. 62, no. 4, pp. 1361–1376, Oct. 2020.
  8. Charles D. Kirkpatrick II and Julie R. Dahlquist, Technical Analysis: The Complete Resource for Financial Market Technicians (3rd Edition), Pearson Education, Inc., 2021.

Downloads

Published

2023-06-30

Issue

Section

Research Articles

How to Cite

[1]
Anjali Patil, Gayatri Padole, Akansha Sontakke "Stock Trend Prediction Using KNN Algorithm" International Journal of Scientific Research in Science and Technology(IJSRST), Online ISSN : 2395-602X, Print ISSN : 2395-6011,Volume 10, Issue 3, pp.13-18, May-June-2023. Available at doi : https://doi.org/10.32628/IJSRST5231035