Predicting Long Term Prices of Nifty Index using Linear Regression and ARIMA: A comparative study


  • Mohit Beniwal Delhi School of Management, Delhi Technological University, Delhi, India
  • Archana Singh Delhi School of Management, Delhi Technological University, Delhi, India
  • Nand Kumar Department of Humanities, Delhi Technological University, Delhi, India



Linear Regression, ARIMA, Nifty, Prediction, Forecasting


Stocks are traded continuously in the financial market, creating huge time series data. Stock market time series is very volatile and highly complex to model. There are many methods to forecast a time series. This study predicts and compares the performance of two statical methods, linear regression, and ARIMA also referred to as the Box Jenkins method, which stands for Autoregressive Integrated Moving Average, is a robust time series forecasting technique used frequently by researchers. Simple linear regression is generally assumed unsuitable for non-linear stock time series data. However, a literature gap exists in comparing linear regression and the ARIMA method for forecasting stock prices. Hence, this study compares the ARIMA and linear regression methods to forecast stock prices using daily and weekly NIFTY data. Further, this study also experiments using a different length of time series, namely 1-year and 2-year data. The result shows that ARIMA outperformed regression on daily and weekly data when the test for 1 year of data. When 2-year data is taken, linear regression outperformed ARIMA on both daily and weekly data. Hence, the linear regression model and ARIMA are sensitive to input parameters such as the number of days for training and forecasting. An automated method or algorithm could improve the robustness of the model. Further, as stock price data is non-linear, machine learning algorithms such as neural networks and support vector regression can be more suitable for prediction.


Metrics Loading ...


Bhuriya, D., Kaushal, G., Sharma, A., & Singh, U. (2017). Stock market predication using a linear regression. International Conference of Electronics, Communication and Aerospace Technology (ICECA), 510–513.

Box, G. E., Gwilym M. Jenkins, & G. Reinsel. (1970). Time series analysis: forecasting and control Holden-day San Francisco. BoxTime Series Analysis: Forecasting and Control Holden Day.

Du, Y. (2018). Application and analysis of forecasting stock price index based on combination of ARIMA model and BP neural network. Chinese Control and Decision Conference (CCDC). IEEE, 2854–2857.

Fama, E. F. (1970). Efficient Capital Markets: A Review of Theory and Empirical Work. The Journal of Finance, 25(2), 383–417. http://www.jstor.orgURL:

Fama, E. F. (1995). Random Walks in Stock Market Prices. The Journal of Finance, 75–80.

Fama, E. F., & French, K. R. (1988). Permanent and temporary components of stock prices. Journal of Political Economy, 96(2), 246–273.

Graham, B., & David, L. Dodd. (1965). The Intelligent Investor. New York: Harper & Row.

Jegadeesh, N., & Titman, S. (1993). Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency. The Journal of Finance, 48(1), 65–91.

Khan, S., & Alghulaiakh, H. (2020). ARIMA Model for Accurate Time Series Stocks Forecasting. IJACSA) International Journal of Advanced Computer Science and Applications, 11(7).

Lo, A. W., & MacKinlay, A. C. (1998). Stock market prices do not follow random walks: Evidence from a simple specification test. The Review of Financial Studies, 1(1), 41–61.

Malkiel, B. G. (1973). A Random Walk Down Wall Street. Norton & Co, New York.

Malkiel, B. G. (2003). The Efficient Market Hypothesis and Its Critics.

Poterba, J. M., & Summers, L. H. (1988). Mean reversion in stock prices: Evidence and implications. Journal of Financial Economics, 22(1), 27–59.

Roy, S. S., Mittal, D., Basu, A., & Abraham, A. (2015). Stock market forecasting using LASSO linear regression model. Advances in Intelligent Systems and Computing, 334, 371–381.

Rubio, L., & Alba, K. (2022). Forecasting Selected Colombian Shares Using a Hybrid ARIMA-SVR Model. Mathematics, 10(13).

Timmermann, A., & Granger, C. W. J. (2004). Efficient market hypothesis and forecasting. International Journal of Forecasting, 20(1), 15–27.




How to Cite

Beniwal, M., Singh, A., & Kumar, N. (2022). Predicting Long Term Prices of Nifty Index using Linear Regression and ARIMA: A comparative study. International Journal of Accounting, Business and Finance, 2(1), 31–41.



Research Articles