Stock Price Prediction Using The ARIMA Model - IJSSST

1y ago
116 Views
3 Downloads
753.88 KB
7 Pages
Last View : Today
Last Download : 3m ago
Upload by : Albert Barnett
Transcription

2014 UKSim-AMSS 16th International Conference on Computer Modelling and SimulationStock Price Prediction Using the ARIMA Model1Ayodele A. Adebiyi., 2Aderemi O. Adewumi1,23Charles K. Ayo3School of Mathematic, Statistics & Computer ScienceUniversity of KwaZulu-NatalDurban, South AfricaDepartment of Computer & Information SciencesCovenant UniversityOta, Nigeriaemail: {adebiyi, adewumia}@ukzn.ac.zaemail: charles.ayo@covenantuniversity.edu.ngintelligence techniques [2]. ARIMA models are known to berobust and efficient in financial time series forecastingespecially short-term prediction than even the most popularANNs techniques ([8, 9, 10]. It has been extensively used infield of economics and finance. Other statistics models areregression method, exponential smoothing, generalizedautoregressive conditional heteroskedasticity (GARCH).Few related works that has engaged ARIMA model forforecasting includes [11, 12, 13, 14, 15, 16].In this paper extensive process of building ARIMAmodels for short-term stock price prediction is presented.The results obtained from real-life data demonstrated thepotential strength of ARIMA models to provide investorsshort-term prediction that could aid investment decisionmaking process.The rest of the paper is organized as follows. Section 2presents brief overview of ARIMA model. Section 3describes the methodology used while section 4 discussesthe experimental results obtained. The paper is concluded insection 5.Abstract— Stock price prediction is an important topic infinance and economics which has spurred the interest ofresearchers over the years to develop better predictive models.The autoregressive integrated moving average (ARIMA)models have been explored in literature for time seriesprediction. This paper presents extensive process of buildingstock price predictive model using the ARIMA model.Published stock data obtained from New York Stock Exchange(NYSE) and Nigeria Stock Exchange (NSE) are used with stockprice predictive model developed. Results obtained revealedthat the ARIMA model has a strong potential for short-termprediction and can compete favourably with existingtechniques for stock price prediction.Keywords- ARIMA model, Stock Price prediction, Stockmarket, Short-term prediction.I.INTRODUCTIONPrediction will continue to be an interesting area ofresearch making researchers in the domain field alwaysdesiring to improve existing predictive models. The reasonis that institutions and individuals are empowered to makeinvestment decisions and ability to plan and developeffective strategy about their daily and future endevours.Stock price prediction is regarded as one of most difficulttask to accomplish in financial forecasting due to complexnature of stock market [1, 2, 3]. The desire of manyinvestors is to lay hold of any forecasting method that couldguarantee easy profiting and minimize investment risk fromthe stock market. This remains a motivating factor forresearchers to evolve and develop new predictive models[4].In the past years several models and techniques had beendeveloped to stock price prediction. Among them areartificial neural networks (ANNs) model which are verypopular due to its ability to learn patterns from data andinfer solution from unknown data. Few related works thatengaged ANNs model to stock price prediction are [5, 6, 7].In recent time, hybrid approaches has also been engaged toimprove stock price predictive models by exploiting theunique strength of each of them [2]. ANNs is from artificialintelligence perspectives.ARIMA models are from statistical models perspectives.Generally, it is reported in literature that prediction can bedone from two perspectives: statistical and artificial978-1-4799-4923-6/14 31.00 2014 IEEEDOI 10.1109/UKSim.2014.67II.ARIMA MODELBox and Jenkins in 1970 introduced the ARIMA model.It also referred to as Box-Jenkins methodology composed ofset of activities for identifying, estimating and diagnosingARIMA models with time series data. The model is mostprominent methods in financial forecasting [1, 12, 9].ARIMA models have shown efficient capability to generateshort-term forecasts. It constantly outperformed complexstructural models in short-term prediction [17]. In ARIMAmodel, the future value of a variable is a linear combinationof past values and past errors, expressed as follows:Yt φ0 φ1Yt 1 φ2Yt 2 . φpYt p εt θ1εt 1 θ2εt 2 . θqεt q(1)where,Yt is the actual value andθ j areε t is the random error at t, φi andthe coefficients, p and q are integers that are oftenreferred to as autoregressive andrespectively.105moving average,

The steps in building ARIMA predictive model consist ofmodel identification, parameter estimation and diagnosticchecking [18].III.Figure 2 is the correlogram of Nokia time series. From thegraph, the ACF dies down extremely slowly which simplymeans that the time series is nonstationary. If the series isnot stationary, it is converted to a stationary series bydifferencing. After the first difference, the series“DCLOSE” of Nokia stock index becomes stationary asshown in figure 3 and figure 4 of the line graph andcorrelogram respectively.METHODOLOGYThe method used in this study to develop ARIMA modelfor stock price forecasting is explained in detail insubsections below. The tool used for implementation isEviews software version 5. Stock data used in this researchwork are historical daily stock prices obtained from twocountries stock exchanged. The data composed of fourelements, namely: open price, low price, high price andclose price respectively. In this research the closing price ischosen to represent the price of the index to be predicted.Closing price is chosen because it reflects all the activitiesof the index in a trading day.To determine the best ARIMA model among severalexperiments performed, the following criteria are used inthis study for each stock index. Relatively small of BIC (Bayesian or SchwarzInformation Criterion) Relatively small standard error of regression (S.E.of regression) Relatively high of adjusted R2 Q-statistics and correlogram show that there is nosignificant pattern left in the autocorrelationfunctions (ACFs) and partial autocorrelationfunctions (PACFs) of the residuals, it means theresidual of the selected model are white noise.The subsections below described the processes ofARIMA model-development.Figure 2: The correlogram of Nokia stock price indexA. ARIMA (p, d, q) Model for Nokia Stock IndexNokia stock data used in this study covers the periodfrom 25th April, 1995 to 25th February, 2011 having a totalnumber of 3990 observations. Figure 1 depicts the originalpattern of the series to have general overview whether thetime series is stationary or not. From the graph below thetime series have random walk pattern.Figure 3: Graphical representation of the Nokia stock price index afterdifferencing .Figure 4: The correlogram of Nokia stock price index after firstdifferencingFigure 1: Graphical representation of the Nokia stock closing price index106

In figure 5 the model checking was done withAugmented Dickey Fuller (ADF) unit root test on“DCLOSE” of Nokia stock index. The result confirms thatthe series becomes stationary after the first-difference of theseries.Figure 7 is the residual of the series. If the model isgood, the residuals (difference between actual and predictedvalues) of the model are series of random errors. Since thereare no significant spikes of ACFs and PACFs, it means thatthe residual of the selected ARIMA model are white noise,no other significant patterns left in the time series.Therefore, there is no need to consider any AR(p) andMA(q) further.Figure 7: Correlogram of residuals of the Nokia stock index.Figure 5: ADF unit root test for DCLOSE of Nokia stock index.In forecasting form, the best model selected can beexpressed as follows:Yt θ1Yt 1 θ 2Yt 2 ε t(2)Table 1 shows the different parameters of autoregressive(p) and moving average (q) among the several ARIMAmodel experimented upon . ARIMA (2, 1, 0) is consideredthe best for Nokia stock index as shown in figure 6. Themodel returned the smallest Bayesian or Schwarzinformation criterion of 5.3927 and relatively smalleststandard error of regression of 3.5808 as shown in figure 6. where,ε t Yt Yt(i.e., the difference between theactual value of the series and the forecast value)TABLE I: STATISTICAL RESULTS OF DIFFERENT ARIMAPARAMETERS FOR NOKIA STOCK INDEXARIMABICAdjusted R2(1, 0, 0)(1, 0, 1)(2, 0, 0)(0, 0, 1)(0, 0, 2)(1, 1, 0)(0, 1, 0)(0, 1, 1)(1, 1,2)(2, 1, 0)(2, 1, 00020.00000.00020.00350.00330.0031S.E. 3.58593.58543.58003.58083.5812The bold row represent the best ARIMA model among the severalexperiments.B. ARIMA (p, d, q) Model for Zenith Bank IndexThe stock data of Zenith bank used in this study coveredthe period from 3rd January, 2006 to 25th February, 2011 withtotal of 1296 observations. Figure 8 is the original pattern ofthe series. From the graph there was upward movement ofthe index from 2006 and downward movement is observedFigure 6: ARIMA (2, 1, 0) estimation output with DCLOSE of Nokiaindex.107

from 2008 possibly because of world financial crisisexperienced at that time.Figure 10: Graphical representation of the Zenith bank stock index firstdifferencingFigure 8: Graphical representation of the Zenith Bank stock index closingprice.Figure 9 is the correlogram of the time series of Zenithbank stock index. From the graph of the correlogram, theACF dies down extremely slowly which simply means thatthe time series is nonstationary. If the series is notstationary, there is need to convert to stationary series bydifferencing. After the first difference, the series“DCLOSE” of Zenith bank stock index becomes stationaryas shown in figure 10 and figure 11 of the line graph andcorrelogram of the series after first differencing.Figure 11: The correlogram of Zenith bank stock price index after firstdifferencing.Figure 12 is the ADF unit root test on “DCLOSE” of theseries which also indicates the first difference of the seriesbecomes stationary.Figure 9: The correlogram of Zenith Bank stock price index108

patterns left in the time series and there is no need forfurther consideration of another AR(p) and MA(q).Figure 12: ADF unit root test for DCLOSE of Zenith bank stock index.Table 2 shows the different parameters of autoregressive(p) and moveing average (q) of the ARIMA model in orderto get the best fitted model. ARIMA (1, 0, 1) is relativelythe best model as indicated in figure 13. The model returnedthe smallest Bayesian or Schwarz information criterion of2.3736 and relatively smallest standard error of regressionof 0.7872 as shown in figure 13.Figure 14: Correlogram of residuals of the Zenith bank stock index.In forecasting form, the best model selected can beexpressed as follows:Yt φ1Yt 1 θ1ε t 1 ε t(3)where, ε t Yt Yt(i.e., the difference between the actualvalue of the series and the forecast value)TABLE II: STATISTICAL RESULTS OF DIFFERENT ARIMAPARAMETERS FOR ZENITH BANK STOCK INDEXARIMABIC(1, 0, 0)(1, 0, 1)(2, 0, 0)(0, 0, 1)(0, 0, 2)(1, 1, 0)(0, 1, 0)(0, 1, 1)(1, 1,2)(2, 1, 0)(2, 1, 720.72280.07080.00000.06690.07010.00310.0036S.E. 81510.78730.78630.81440.8142The bold row represent the best ARIMA model among the severalexperimentsFigure 13: ARIMA (1, 0, 1) estimation output with DCLOSE of Zenithbank index.Figure 14 is the correlogram of residual of the seies. Fromthe figure it is obvious there is no significant spike of ACFsand PACFs. This means that the residual of this selectedARIMA model are white noise. There is no other significantIV.RESULTS AND DISCUSSIONThe experimental results of each of stock index arediscussed in the subsection below.109

A. Result of ARIMA Model for Nokia Stock PricePredictionTable 3 is the result of the predicted values of ARIMA(2, 1, 0) considered the best model for Nokia stock index.Figure 15 gives graphical illustration of the level accuracyof the predicted price against actual stock price to see theperformance of the ARIMA model selected. From thegraph, is obvious that the performance is satisfactory.B. Result of ARIMA Model for Zenith Bank Stock PricePredictionIn this case, ARIMA (1, 0, 1) was selected as the bestmodel for Zenith bank stock index after several adjustmentof the autoregressive (p) and moving average (q) parametersin Eviews software used. Table 4 contained the predictedvalues of the model selected and figure 16 is the graph ofpredicted price against actual stock price to demonstrate thecorrelation of accuracy. From the graph, the performance ofthe ARIMA model selected is quite impressive as there aresome instances of closely related of actual and predictedvalues.TABLE III: SAMPLE OF EMPIRICAL RESULTS OF ARIMA (2,1,0) OFNOKIA STOCK INDEX.Sample 3/2010Actual 015.4615.4215.4115.54Predicted 015.6015.7115.8115.91TABLE IV: SAMPLE OF EMPIRICAL RESULTS OF ARIMA (1,0,1) OFZENITH BANK INDEXSample 3/2010Figure 15: Graph of Actual Stock Price vs Predicted values ofNokia Stock Index110Actual 918.1119.0119.9618.97Predicted 116.3416.3716.3916.42

[4][5][6][7][8][9][10] J. Sterba and Hilovska, “The Implementation of Hybrid ARIMANeural Network Prediction Model for Aggregate Water ConsumptionPrediction”, Aplimat- Journal of Applied Mathematics, vol.3, no.3,pp.123-131, 2010.[11] C. Javier, E. Rosario, J.N. Francisco and J.C. Antonio, “ARIMAModels to Predict Next Electricity Price”, IEEE Transactions onPower Systems vol. 18 no.3, pp.1014-1020, 2003.[12] N. Rangan and N. Titida, “ARIMA Model for Forecasting Oil PalmPrice”, Proceedings of the 2nd IMT-GT Regional Conference onMathematics, Statistics and Applications, Universiti Sains Malaysia,2006.[13] M. Khasel, M. Bijari, and G.A.R Ardali, , “Improvement of AutoRegressive Integrated Moving Average models using Fuzzy logic andpp. 956-967, 2009.[14] C. Lee, C. Ho, “Short-term load forecasting using lifting scheme andARIMA model”, Expert System with Applications, vol.38, no.5,pp.5902-5911, 2011.[15] M. Khashei, M. Bijari, G. A. R.Ardal, “Hybridization ofautoregressive integrated moving average (ARIMA) withprobabilistic neural networks”, Computers and IndustrialEngineering, vol. 63, no.1, pp.37-45, 2012[16] C. Wang, “A comparison study of between fuzzy time series modeland ARIMA model for forecasting Taiwan Export”, Expert Systemwith Applications, vol.38, no.8, pp.9296-9304, 2011.[17] A. Meyler, G. Kenny and T. Quinn, “Forecasting Irish Inflation usingARIMA Models”, Central Bank of Ireland Research Department,Technical Paper, 3/RT/1998.[18] B.G. Tabachnick and L.S. Fidell, “Using multivariate statistics”, 4thed.,PersonEducationCompany,USA2001.Figure 16: Graph of Actual Stock Price vs Predicted values of Zenith BankStock IndexV.CONCLUSIONThis paper presents extensive process of buildingARIMA model for stock price prediction. The experimentalresults obtained with best ARIMA model demonstrated thepotential of ARIMA models to predict stock pricessatisfactory on short-term basis. This could guide investorsin stock market to make profitable investment decisions.With the results obtained ARIMA models can competereasonably well with emerging forecasting techniques inshort-term prediction.REFERENCES[1][2][3]G.S. Atsalakis, E.M Dimitrakakis. and C.D. Zopounidis, “ElliotWave Theory and neuro-fuzzy systems, stock market prediction: TheWASP system”, Expert Systems with Applications, vol. 38, pp.9196–9206, 2011.S. K.Mitra, “Optimal Combination of Trading Rules Using NeuralNetworks”, International Business Research, vol. 2, no. 1, pp. 86-99,2009.G.S. Atsalakis and P.V. Kimon, “Forecasting stock market short-termtrends using a neuro-fuzzy methodology”, Expert Systems withApplications, vol. 36, no. 7, pp.10696–10707, 2009.M.M. Mohamed, “Forecasting stock exchange movements usingneural networks: empirical evidence from Kuwait”, Expert Systemswith Applications, vol. 27, no. 9, pp.6302–6309, 2010.L.C. Kyungjoo, Y. Sehwan and J. John, “Neural Network Model vs.SARIMA Model In Forecasting Korean Stock Price Index (KOSPI),Issues in Information System, vol. 8 no. 2, pp. 372-378, 2007.N. Merh, V.P. Saxena, and K.R. Pardasani, “A Comparison BetweenHybrid Approaches of ANN and ARIMA For Indian Stock TrendForecasting”, Journal of Business Intelligence, vol. 3, no.2, pp. 23-43,2010.P. Pai and C. Lin, “A hybrid ARIMA and support vector machinesmodel in stock price prediction”, Omega vol.33 pp. 497-505, 2005J.J. Wang, J.Z. Wang, Z.G. Zhang and S.P. Guo, “Stock indexforecasting based on a hybrid model”, Omega vol.40 pp.758-766,2012.L.Y. Wei, “A hybrid model based on ANFIS and adaptiveexpectation genetic algorithm to forecast TAIEX”, EconomicModelling vol. 33 pp. 893-899, 2013.111

Stock price prediction is regarded as one of most difficult task to accomplish in financial forecasting due to complex nature of stock market [1, 2, 3]. The desire of many . work are historical daily stock prices obtained from two countries stock exchanged. The data composed of four elements, namely: open price, low price, high price and

Related Documents:

May 02, 2018 · D. Program Evaluation ͟The organization has provided a description of the framework for how each program will be evaluated. The framework should include all the elements below: ͟The evaluation methods are cost-effective for the organization ͟Quantitative and qualitative data is being collected (at Basics tier, data collection must have begun)

Silat is a combative art of self-defense and survival rooted from Matay archipelago. It was traced at thé early of Langkasuka Kingdom (2nd century CE) till thé reign of Melaka (Malaysia) Sultanate era (13th century). Silat has now evolved to become part of social culture and tradition with thé appearance of a fine physical and spiritual .

On an exceptional basis, Member States may request UNESCO to provide thé candidates with access to thé platform so they can complète thé form by themselves. Thèse requests must be addressed to esd rize unesco. or by 15 A ril 2021 UNESCO will provide thé nomineewith accessto thé platform via their émail address.

̶The leading indicator of employee engagement is based on the quality of the relationship between employee and supervisor Empower your managers! ̶Help them understand the impact on the organization ̶Share important changes, plan options, tasks, and deadlines ̶Provide key messages and talking points ̶Prepare them to answer employee questions

Dr. Sunita Bharatwal** Dr. Pawan Garga*** Abstract Customer satisfaction is derived from thè functionalities and values, a product or Service can provide. The current study aims to segregate thè dimensions of ordine Service quality and gather insights on its impact on web shopping. The trends of purchases have

Chính Văn.- Còn đức Thế tôn thì tuệ giác cực kỳ trong sạch 8: hiện hành bất nhị 9, đạt đến vô tướng 10, đứng vào chỗ đứng của các đức Thế tôn 11, thể hiện tính bình đẳng của các Ngài, đến chỗ không còn chướng ngại 12, giáo pháp không thể khuynh đảo, tâm thức không bị cản trở, cái được

stock prices then an increase in the -rm s own stock price informativeness reduces the sensitivity of its investment to its peer stock price (prediction 1). Indeed, as the signal conveyed by its own . stock price (prediction 2), but not otherwise. The same prediction holds for an increase in the correlation of the fundamentals of a -rm .

Abrasive Jet machining can be employed for machining super alloys and refractory from materials. This process is based on surface erosion process. The process parameters that control metal removal rate are air quality and pressure, Abrasive grain size, nozzle material, nozzle diameter, stand of distance between nozzle tip and work surface. INTRODUCTION: Abrasives are costly but the abrasive .