Comparative Study of Box-Jenkins ARIMA and KNN Algorithm for Stock Price Prediction in Pakistan

Authors

  • Bilal Ahmad
  • Muhammad Zakria

Keywords:

Pakistan Stock Exchange, ARIMA, Forecasting, KNN algorithm

Abstract

Stock market is considered a vital part of modern economic systems in the world. The fluctuation in the stock prices is of complex nature because multiple causative factors control these movements. This study was carried out to forecast the stock prices by applying two different techniques of knearest neighbors algorithm and Box-Jenkins ARIMA to compare their effectiveness. Three major contributing companies in Pakistan Stock Exchange were selected and the daily stock price data during the period 2014-2018 were used. In the first phase, Box-Jenkins methodology was adopted to build parsimonious ARIMA model for each series separately. The
k-nearest neighbors algorithm was also performed and forecasts were calculated. Lastly, Root Mean Square Error, Mean Absolute Error and Mean Absolute Percentage Error were used for comparison purpose of both techniques. It was observed that machine learning technique of k-nearest neighbors algorithm provided more accurate results as compared to ARIMA.

Downloads

Download data is not yet available.

Downloads

Published

10-02-2023

How to Cite

Bilal Ahmad, & Muhammad Zakria. (2023). Comparative Study of Box-Jenkins ARIMA and KNN Algorithm for Stock Price Prediction in Pakistan. JSSH, 30(1). Retrieved from https://ojs.aiou.edu.pk/index.php/jssh/article/view/383

Issue

Section

Articles