International Peer-Reviewed JournalOpen AccessISSN 2456-8880
irejournals@gmail.com+91-7433024337

Home / Current Issue / Paper 1722575

1722575 Vol 10 · Issue 2 Download Paper

Predicting Stock Market Trends Using Machine Learning: A Sector-Wise Comparative Study of ARIMA, Linear Regression, and LSTM Models on NSE-Listed Companies

Divya K Dr. R N Kulkarni

Subject area: Science,Engineering and Technology  ·  Area of research: Machine Learning

DOI: https://doi.org/10.64388/IREV10I2-1722575

Abstract

This study, titled “Predicting Stock Market Trends Using Machine Learning,” examines stock price behaviour across five major sectors of the Indian stock market — Information Technology, Banking, Energy, Automobile, and Pharmaceuticals — using historical daily price data of ten companies listed on the National Stock Exchange (NSE). The research problem addressed is the difficulty of achieving accurate stock trend prediction using conventional forecasting methods in a volatile market environment. The objectives were to evaluate stock price trends across the selected sectors, compare prediction performance across companies, develop forecasting models using ARIMA, Linear Regression, and Long Short-Term Memory (LSTM) networks, and identify the most effective technique. Secondary OHLCV data was collected from the NSE, cleaned, and chronologically split 80:20 for training and testing. Trend, volume, and volatility indicators were computed for all ten companies, while detailed model development was carried out for Tata Consultancy Services (TCS) as a representative case. Linear Regression used Open, High, Low, and Volume as predictors of the Closing price; ARIMA was applied to the differenced Closing price series; and the LSTM network was trained on scaled Closing price sequences using a sixty-day look-back window. Performance was assessed using MAE, RMSE, and R². The findings reveal clear sectoral divergence, with Information Technology and Banking stocks exhibiting bearish trends while Energy, Automobile, and Pharmaceutical stocks showed upward momentum. Linear Regression outperformed both ARIMA and LSTM, yielding an R² of 0.998 compared with 0.959 for LSTM and a negative value for ARIMA, resulting in a SELL recommendation for TCS. The study concludes that the most suitable forecasting technique depends on the nature of the input data and forecast horizon, and that model outputs should support, rather than replace, broader investment judgement.

Keywords

stock market prediction; machine learning; ARIMA; linear regression; long short-term memory (LSTM); NSE; sectoral analysis

References

[1] [1] M. Usmani, S. H. Adil, K. Raza, and S. S. A. Ali, "Stock Market Prediction Using Machine Learning Techniques," in Proc. 2016 3rd Int. Conf. Computer and Information Sciences (ICCOINS), 2016, pp. 322–327, doi: 10.1109/ICCOINS.2016.7783230.

[2] [2] A. Sharma, D. Bhuriya, and U. Singh, "Survey of Stock Market Prediction Using Machine Learning Approach," in Proc. 2017 Int. Conf. Electronics, Communication and Aerospace Technology (ICECA), 2017, pp. 506–509, doi: 10.1109/ICECA.2017.8212715.

[3] [3] S. Selvin, R. Vinayakumar, E. A. Gopalakrishnan, V. K. Menon, and K. P. Soman, "Stock Price Prediction Using LSTM, RNN and CNN-Sliding Window Model," in Proc. 2017 Int. Conf. Advances in Computing, Communications and Informatics (ICACCI), 2017, pp. 1643–1647, doi: 10.1109/ICACCI.2017.8126078.

[4] [4] Z. Liu, Y. Song, Z. Gong, Z. Liu, and H. Chen, "Predicting Stock Trend Using Multi-Objective Diversified Echo State Network," in Proc. 2017 IEEE Symp. Series on Computational Intelligence (SSCI), 2017.

[5] [5] T. Tantisripreecha and N. Soonthornphisaj, "Stock Market Movement Prediction Using LDA-Online Learning Model," in Proc. 2018 IEEE/ACIS 19th Int. Conf. SNPD, Busan, South Korea, 2018.

[6] [6] O. Bustos and A. Pomares-Quimbaya, "Stock Market Movement Forecast: A Systematic Review," Expert Systems with Applications, vol. 156, p. 113464, 2020.

[7] [7] S. Dinesh, R. Samhitha, R. R. Nithin, and S. P. Anusha, "Prediction of Trends in Stock Market Using Moving Averages and Machine Learning," in Proc. 6th Int. Conf. Convergence in Technology (I2CT), 2021, pp. 1–5, doi: 10.1109/I2CT51068.2021.9418097.

[8] [8] L. N. Mintarya, J. N. M. Halim, C. Angie, S. Achmad, and A. Kurniawan, "Machine Learning Approaches in Stock Market Prediction: A Systematic Literature Review," Procedia Computer Science, vol. 216, pp. 96–102, 2023.

[9] [9] L. Mathanprasad and M. Gunasekaran, "Analysing the Trend of Stock Market and Evaluate the Performance of Market Prediction Using Machine Learning Approach," in Proc. 2022 Int. Conf. ACCAI, 2022, pp. 1–6, doi: 10.1109/ACCAI53970.2022.9752616.

[10] [10] H. Mishra, R. Karalkar, P. Mavale, A. Yadav, and J. Hajgude, "Predicting Stock Prices with Machine Learning and Virtual Stock Market Game," in Proc. 2023 3rd Int. Conf. ICPCSN, 2023, doi: 10.1109/ICPCSN58827.2023.00044.

[11] [11] B. S. Mantravadi, C. R. Krishna, A. Karedla, C. Abitha, and G. Blessitta, "Prediction of Stock Prices Based on Historical Data Using Linear Regression Model Through LSTM Algorithm," in Proc. 2023 Int. Conf. InCACCT, 2023, pp. 96–100, doi: 10.1109/InCACCT57535.2023.10141804.

[12] [12] R. Srinidhi, S. S. Sarathy, and A. Ponraj, "Stock Market Prediction Using Machine Learning Algorithm," in Proc. 2023 3rd Int. Conf. ICPCSN, 2023, pp. 144–148, doi: 10.1109/ICPCSN58827.2023.00029.

[13] [13] S. Addagalla, M. S. Kunapareddy, S. Koppuravuri, S. R. Mallu, R. Krosuri, and M. Rashmi, "Stock Market Price Prediction Using Machine Learning Techniques," in Proc. 2023 4th Int. Conf. INCET, Belgaum, India, 2023, pp. 1–6, doi: 10.1109/INCET57972.2023.10170222.

[14] [14] J. Guntaka, A. D. Kumar, V. J. K. R. Gade, P. V. Sagar, and R. Yallavula, "Stock Market Prediction Using Machine Learning Technique," in Proc. 2023 3rd Int. Conf. ICSMDI, 2023, pp. 454–458, doi: 10.1109/ICSMDI57622.2023.00073.

[15] [15] N. Manasa, D. W. Praveenraj, and S. R. Lakshmi, "Predictive Analytics for Stock Market Trends Using Machine Learning," in Proc. 2023 4th Int. Conf. ICCAKM, 2023, pp. 343–348, doi: 10.1109/ICCAKM58659.2023.10449528.

[16] [16] G. Patidar, A. Kumbhakar, H. Mahabale, and J. A. Siddiqui, "Stock Market Analysis Using Long Short-Term Memory (LSTM) and Linear Regression Machine Learning Model," in Proc. 2023 IEEE 7th Conf. CICT, 2023, pp. 185–190, doi: 10.1109/CICT59886.2023.10455550.

[17] [17] L. Kotapati, R. B. Sajjala, S. Gudi, V. N. H. Beecha, S. Tokala, and M. K. Enduri, "Forecasting Stock Market Trends Using Machine Learning Algorithms," in Proc. 2023 IEEE 15th Int. Conf. CICN, 2023, pp. 278–283, doi: 10.1109/CICN59264.2023.10402238.

[18] [18] A. Dubey, R. Sharma, D. Bisen, N. Venu, V. Jaiswal, B. S. Raghuwanshi, and K. Shakywar, "Stock Market Prediction Using Machine Learning Based Techniques," in Proc. 2024 IEEE Int. Conf. INSPECT, 2024, pp. 406–411, doi: 10.1109/INSPECT63485.2024.10896005.

[19] [19] S. Kumar, N. Pal, and A. M. Tripathi, "Improving Long Short-Term Memory (LSTM)-Based Stock Market Price Predictions in the Machine Learning Era," in Proc. 2024 IEEE Int. Conf. IC2PCT, 2024, pp. 1442–1447, doi: 10.1109/IC2PCT60090.2024.10486391.

[20] [20] V. Ahire and S. Borse, "Improving Stock Market Trend Forecasting Using ARIMA and Machine Learning," in Proc. 2024 Int. Conf. ICAIQSA, 2024, pp. 132–137, doi: 10.1109/ICAIQSA64000.2024.10882421.

[21] [21] A. Ruke, A. Buchade, S. Gaikwad, S. Nimbarkar, G. Yadav, and A. Sonawane, "Predictive Analysis of Stock Market Trends: A Machine Learning Approach," in Proc. 2024 4th Int. Conf. ICDECS, 2024, pp. 760–765, doi: 10.1109/ICDECS59733.2023.10503557.

[22] [22] S. Bhardwaj, R. Markan, I. Sharma, H. J. Kaur, and S. Mehta, "Predicting Stock Price Using Linear Regression: A Machine Learning Approach," in Proc. 2025 IEEE 5th Int. Conf. ICTBIG, 2025, pp. 25–30, doi: 10.1109/ICTBIG68706.2025.11323922.

[23] [23] M. Agrawal and A. Mukherjee, "Predicting Stock Market Trends Using Machine Learning and Sentiment Analysis," in Proc. SoutheastCon 2025, 2025, doi: 10.1109/SOUTHEASTCON56624.2025.10971605.

How to cite this paper

Divya K, Dr. R N Kulkarni "Predicting Stock Market Trends Using Machine Learning: A Sector-Wise Comparative Study of ARIMA, Linear Regression, and LSTM Models on NSE-Listed Companies" Iconic Research And Engineering Journals Volume 10 Issue 2 2026 Page 2823-2830 https://doi.org/10.64388/IREV10I2-1722575
Divya K, Dr. R N Kulkarni "Predicting Stock Market Trends Using Machine Learning: A Sector-Wise Comparative Study of ARIMA, Linear Regression, and LSTM Models on NSE-Listed Companies" Iconic Research And Engineering Journals, vol. 10, no. 2, Aug. 2026, doi: https://doi.org/10.64388/IREV10I2-1722575
Divya K, Dr. R N Kulkarni (2026). Predicting Stock Market Trends Using Machine Learning: A Sector-Wise Comparative Study of ARIMA, Linear Regression, and LSTM Models on NSE-Listed Companies. Iconic Research And Engineering Journals, 10(2). doi: https://doi.org/10.64388/IREV10I2-1722575
Divya K, Dr. R N Kulkarni "Predicting Stock Market Trends Using Machine Learning: A Sector-Wise Comparative Study of ARIMA, Linear Regression, and LSTM Models on NSE-Listed Companies" Iconic Research And Engineering Journals, vol. 10, no. 2, Aug. 2026. Crossref, https://doi.org/10.64388/IREV10I2-1722575
@article{1722575,
      author = {Divya K, Dr. R N Kulkarni},
      title = {Predicting Stock Market Trends Using Machine Learning: A Sector-Wise Comparative Study of ARIMA, Linear Regression, and LSTM Models on NSE-Listed Companies},
      journal = {Iconic Research And Engineering Journals},
      year = {2026},
      volume = {10},
      number = {2},
      pages = {2823-2830},
      issn = {2456-8880},
      url = {https://www.irejournals.com/formatedpaper/1722575.pdf},
      abstract = {This study, titled “Predicting Stock Market Trends Using Machine Learning,” examines stock price behaviour across five major sectors of the Indian stock market — Information Technology, Banking, Energy, Automobile, and Pharmaceuticals — using historical daily price data of ten companies listed on the National Stock Exchange (NSE). The research problem addressed is the difficulty of achieving accurate stock trend prediction using conventional forecasting methods in a volatile market environment. The objectives were to evaluate stock price trends across the selected sectors, compare prediction performance across companies, develop forecasting models using ARIMA, Linear Regression, and Long Short-Term Memory (LSTM) networks, and identify the most effective technique. Secondary OHLCV data was collected from the NSE, cleaned, and chronologically split 80:20 for training and testing. Trend, volume, and volatility indicators were computed for all ten companies, while detailed model development was carried out for Tata Consultancy Services (TCS) as a representative case. Linear Regression used Open, High, Low, and Volume as predictors of the Closing price; ARIMA was applied to the differenced Closing price series; and the LSTM network was trained on scaled Closing price sequences using a sixty-day look-back window. Performance was assessed using MAE, RMSE, and R². The findings reveal clear sectoral divergence, with Information Technology and Banking stocks exhibiting bearish trends while Energy, Automobile, and Pharmaceutical stocks showed upward momentum. Linear Regression outperformed both ARIMA and LSTM, yielding an R² of 0.998 compared with 0.959 for LSTM and a negative value for ARIMA, resulting in a SELL recommendation for TCS. The study concludes that the most suitable forecasting technique depends on the nature of the input data and forecast horizon, and that model outputs should support, rather than replace, broader investment judgement.},
      keywords = {stock market prediction; machine learning; ARIMA; linear regression; long short-term memory (LSTM); NSE; sectoral analysis},
      month = {August},
      doi = {https://doi.org/10.64388/IREV10I2-1722575}
  }