PDF  PubReader

Liu* , Latif** , Xiong*** , Saddozai** , and Wara****: Mean-VaR Portfolio: An Empirical Analysis of Price Forecasting of the Shanghai and Shenzhen Stock Markets

Ximei Liu* , Zahid Latif** , Daoqi Xiong*** , Sehrish Khan Saddozai** and Kaif Ul Wara****

Mean-VaR Portfolio: An Empirical Analysis of Price Forecasting of the Shanghai and Shenzhen Stock Markets

Abstract: Stock price is characterized as being mutable, non-linear and stochastic. These key characteristics are known to have a direct influence on the stock markets globally. Given that the stock price data often contain both linear and non-linear patterns, no single model can be adequate in modelling and predicting time series data. The autoregressive integrated moving average (ARIMA) model cannot deal with non-linear relationships, however, it provides an accurate and effective way to process autocorrelation and non-stationary data in time series forecasting. On the other hand, the neural network provides an effective prediction of non-linear sequences. As a result, in this study, we used a hybrid ARIMA and neural network model to forecast the monthly closing price of the Shanghai composite index and Shenzhen component index.

Keywords: ARIMA Model , Neural Network , Non-linear Sequence , Stock Price

1. Introduction

Investing in stock is one of the important ways of managing peoples’ finance. Like other goods on the trade market, stock has its own market and market price. The stock prices are easily affected by operating conditions including supply and demand, the bank interest rates and mass psychology. Consequently, its fluctuation can result in many uncertainties on the market. It is, therefore, necessary for us to establish a way to forecast the direction of the stock market price. The time series analysis is an effective method which is widely used in the areas of finance and stock prices [1-3]. The autoregressive integrated moving average (ARIMA) model is widely used in time series forecasting. It is a useful linear model that can be combined with other non-linear models in time series and regression analysis. The use of a hybrid ARIMA and neural network model has gained extensive application in forecasting stock price patterns. In this article, the hybrid ARIMA and neural model is used for forecasting the prices for the Shanghai and Shenzhen stock markets.

Given that the stock market system is quite complex and non-linear, it is generally difficult to forecast the stock prices using the ARIMA model. However, the neural network is a non-linear dynamic system and has been applied in solving non-linear regression problems. It can be used to solve the problems with unclear environmental information and unclear background knowledge. Therefore, the neural network model is a powerful tool to research the stock market [4].

The paper is organized as follows: Section 2 provides a brief discussion and structure of the model and Section 3 presents a discussion of the data collection process. In Section 4, we introduce the empirical analysis of the ARIMA model while in Section 5, the principle, algorithm and the related parameter configuration of the neural network model for stock exchanges of Shanghai and Shenzhen is proposed. This section also includes a discussion of the results, while Section 6 makes a comparison between the two stock exchange markets in China. Lastly but not least, Section 7 presents the summary and the conclusion of the study.

2. Structure Chart

Fig. 1 shows the structure chart used for forecasting the Shanghai and Shenzhen stock market prices. The underlying assumption is that the structure chart provides a useful theoretical framework for the exploration and interpretation of the research ideas developed in this article.

Fig. 1.

The structure chart for forecasting the Shanghai and Shenzhen stock markets.
1.png

3. Stock Price Index and the Data Collection

Stock price index, also referred to as stock index or index, is an indicator of the stock market behavior which can reflect the change of stock price trends. Usually we use “dot” to represent the unit of the stock price index. The rise and fall of stock price index can be used by investors. The investors make use of the stock index to judge the behavior of the stock price and this also reflects the trends of the stock markets [5].

In this article, the data were collected from the closing month prices from January 2001 to December 2014 from two stock markets in China, namely, Shanghai composite index and Shenzhen component index. About 336 data samples were collected for analysis. The source of data is wind information system. The analysis of part 4 was based on EVIEWS and SPSS, while the analysis of part 5 was based on MATLAB.

4. The Empirical Analysis of the ARIMA Model

4.1 Seasonal Analysis

In the field of data statistics, seasonal variable is one component of the time series analysis and is defined as a period equivalent to 1 year or shorter. In addition, seasonal variable is repetitive and predictable in a trend change shown in a line graph. It is calculated by measuring short time intervals (for example, daily, weekly, monthly, or quarterly).

In a time series sequence, if similarity is presented after a time interval (S), we say the sequence cycle characteristic is S. Sequence is, therefore, referred to as the seasonal time series with cyclical characteristics where S is the cycle length. We should eliminate the influence of seasonality when predicting the stock price [6-9].

Fig. 2.

The monthly closing price of Shanghai composite index and Shenzhen component index.
2.png

Table 1.

Seasonal index of the Shanghai and Shenzhen stock markets
Shanghai stock market Shenzhen stock market
S1 0.980609 0.970912
S2 1.001231 1.000403
S3 0.990148 0.984291
S4 1.017246 1.004301
S5 1.013732 1.007665
S6 0.973261 0.965074
S7 1.002248 1.016953
S8 0.986677 0.992662
S9 0.997649 1.001223
S10 1.006260 1.016948
S11 0.991607 0.995377
S12 1.039331 1.044192

Fig. 2 shows the monthly data of Shanghai composite index and Shenzhen component index from January 2001 to December 2014 and these indices are represented by {SH} and {SZ}, respectively.

Using the structure method of the seasonal index, the seasonal indices of the two stock markets are shown in Table 1.

Table 1 above show that there is no seasonal effect on Shanghai and Shenzhen stock markets, respectively. Therefore, there is no need to eliminate seasonal fluctuations while using the ARIMA model.

4.2 Stability Analysis

As can be seen from Fig. 2, {SH} and {SZ} are stationary series. In addition, the ARIMA model sequence is smooth so we needed a differential stationary series. Fig. 3 represents the second order differential sequence diagram of the {SH} and {SZ}.

Fig. 3.

The sequences after second order differential.
3.png

We can comprehend from Fig. 3 that the ADF value of the second order differential sequences of Shanghai and Shenzhen stock markets is greater than the absolute value of the critical value at 1%, 5%, and 10% significant levels. Consequently, the null hypothesis of the unit root is excluded, so sequences are smooth and d = 2.

4.3 Pattern Recognition [10-12]

We usually use the sample autocorrelation and partial autocorrelation analysis for model identification and order determination. However, this judgment is very subjective, hence, we use EVIEWS software to establish multiple models as well as the BIC criteria to compare the models. The results are shown in Table 2.

According to the minimum BIC criterion, we finally choose ARIMA (4, 2, 6) to forecast the Shanghai and Shenzhen stock markets.

Table 2.

The comparison of BIC criteria for multiple ARIMA models
Model Shanghai Shenzhen
BIC R-squared BIC R-squared
ARIMA (5, 2, 5) 11.166 0.942 13.838 0.959
ARIMA (4, 2, 6) 11.146 0.944 13.755 0.962
ARIMA (5, 2, 6) 11.176 0.944 13.800 0.962
ARIMA (6, 2, 6) 11.239 0.943 13.831 0.962
ARIMA (5, 2, 7) 11.196 0.945 13.854 0.961

5. The Empirical Analysis of the Neural Network Model

5.1 The Principle, Algorithm and the Related Parameter Configuration of the Neural Network Model

An integrated neural network is mainly composed of the input layer, hidden layer, input delay layer, and output layer. We should therefore set the number of delay layers between the input and output layer, and the hidden layer of the study neural network before applying the actual model.

Firstly, the algorithm involves importing of the historical data, setting up of the training set, validation set, test set, and the number of delay layers and the hidden layers. Secondly, the algorithm should train the network. Thirdly, the algorithm should decide which network to choose according to the error autocorrelation curve. Finally, the algorithm should give the predictive output and detect the neural network model.

Data can be divided into the following three categories: the training set that is used to train the data; the validation set that is used to validate the network model, that is, whether it is feasible or not; the test set is used to assess the prediction ability of the network model. In this article, the data set parameters include: training set, 70%; validation set, 15%; and the test set, 15% [13-15].

5.2 The Feasibility Analysis for the Network [16]

In this study, we used MATLAB tools to construct the network model which is combined with the dynamic neural network GUI toolkit to build a sequence prediction model. The effect of the neural network prediction model is shown mainly by visual analysis through error and error autocorrelation figures.

Fig. 4.

Difference between the forecast value and the actual value of Shanghai stock market.
4.png

Fig. 5.

Difference between the forecast value and the actual value of Shenzhen stock market.
5.png

We can see from Figs. 4 and 5 that the coarser line in the vertical direction is the difference between the target value and the forecast value. It is important to observe that the thinner the line, the better would be the forecast. We can see from Figs. 6 and 7 that when lag = 0, the error of the lag has the largest value; the other cases with values that are less than the confidence interval are preferred. These figures show that the model error within the confidence interval and the effect of the neural network model is good.

Fig. 6.

The error figure of Shanghai stock market.
6.png

Fig. 7.

The error figure of Shenzhen stock market.
7.png
5.3 The Prediction using the Neural Network Model

In this section, we used the neural network model to predict the Shanghai composite index and the Shenzhen component index. This was followed by the analysis of the training and test values. These results show that the test values and the actual values are close to each other, and the precision is very high; hence, it is proved that the neural network model is effective. It provides great reference value for investors. The forecast for Shanghai and Shenzhen are shown in Figs. 8 and 9, respectively.

6. Comparative Model

In order to analyze and compare the ARIMA and neural network models (Table 3), we chose the average absolute error as the evaluation index. The average absolute error values of the ARIMA and the neural network models for Shanghai and Shenzhen stock markets are shown in Table 4.

Table 4 shows that the prediction accuracy of the neural network model is higher than the prediction accuracy of the ARIMA model. The neural network model depicts the changing pattern of the stock price in a comprehensive way; therefore, the neural network is a more effective forecasting method than the ARIMA model.

Fig. 8.

The forecast of Shanghai stock market.
8.png

Fig. 9.

The forecast of Shenzhen stock market.
9.png

Table 3.

The three forecast values based on ARIMA and the neural network model
Forecast value Value 1 Value 2 Value 3
Shanghai ARIMA 3326.41 3549.28 3617.53
Neural network model 3442.72 3519.83 3309.05
Shenzhen ARIMA 11343.02 12164.68 12738.07
Neural network model 11815.11 12335.38 14744.72

Table 4.

The average absolute error value of Shanghai and Shenzhen stock markets
Average absolute error value
ARIMA Neural network
Shanghai 140.289 116.085
Shenzhen 513.475 497.736

7. Conclusions

The stock market is facing a rapidly changing external environment that increases the uncertainty of the prediction factors. In order to describe the changing pattern of the stock price more accurately and comprehensively, we used a hybrid ARIMA and neural network model to forecast the Shanghai and Shenzhen stock markets.

Firstly, we used the monthly closing prices of Shanghai composite index and Shenzhen component index from January 2001 to December 2014. This is because these data are the latest and most representative.

Secondly, we selected the optimal ARIMA model to forecast Shanghai and Shenzhen stock markets by using the BIC criteria, EVIEWS and the SPSS software.

Thirdly, we used the neural network model to forecast the Shanghai and Shenzhen stock markets using the MATLAB software.

Finally, we compared the optimal ARIMA model with the neural network model. The calculated results show that the neural network model improved the predictive ability of the Shanghai and Shenzhen stock markets. This model is also able to reflect the development trends of stock markets and can provide investors with more constructive investment advice.

Acknowledgement

This work is supported by the Scientific Research Foundation of Zhejiang Sci-Tech University (No.18092249-Y).

Biography

Ximei Liu
https://orcid.org/0000-0002-8640-9960

She is a teacher at Zhejiang Sci-Tech University, China. She graduated from Beijing University of Posts and Telecommunications. She has been engaged in the telecommunications, financial forecasting and other engineering sectors since 2011. She holds postgraduate qualifications in business administration as well as in different fields of telecom engineering.

Biography

Zahid Latif
https://orcid.org/0000-0001-6735-7555

He earned his Ph.D. degree from Beijing University of Posts and Telecommunications, China. He has been working in the telecommunication sector of Pakistan, since 2003. He is the author of several publications in the field of management. His research interests are in the fields of information and communication technology (ICT), role of ICT in the development of rural fields, one belt, one road, laying of optical fibre along with China-Pakistan Eonomic Corridor and ICT diffusion.

Biography

Daoqi Xiong
https://orcid.org/0000-0003-3566-4846

He is a product manager of Zhejiang Huayun Information Technology Co. Ltd. He has been working in R&D department of China, since 2008. He is responsible for product demand research, prototype design and project follow-up. His research interests are HRM and product development.

Biography

Sehrish Khan Saddozai
https://orcid.org/0000-0002-5448-8764

She earned her Ph.D degree from the School of Economics and Management at Beijing University of Posts and Telecommunications, China. She received her postgraduate degree in Sociology from Bahauddin Zakariya University Multan, Pakistan. Previously, she worked as a lecturer at Bahaudin Zakariya University Multan Pakistan. Her research interests are in HRM, talent management and employee psychology.

Biography

Kaif Ul Wara
https://orcid.org/0000-0001-7876-245X

She obtained her Master degree in Management from City University of Science and Technology, Peshawar Pakistan. Currently, She is a PhD Scholar in Management Science in Islamia University, Peshawar, Pakistan.

References

  • 1 G. Xiao, The Security of Password Computer and Communication Systems, Beijing: Post & Telecom Press, 1993.custom:[[[-]]]
  • 2 L. Cai, Applied Cryptography, Beijing: China Electric Power Press, 2005.custom:[[[-]]]
  • 3 X. Hu, Q. Wei, Applied Cryptography, Beijing: Pubushing House of Electronics Industry, 2006.custom:[[[-]]]
  • 4 X. Wu Xiaowei, "Share price forecast model based on artificial neural network research," University of Technology of DalianChina, 2004.custom:[[[-]]]
  • 5 Q. Sun, "The research on the making theory of stock price index," Dongbei University of Finance and EconomicsChina, 2010.custom:[[[-]]]
  • 6 G. Ma, Y. Yang, "Trends, influence factors and seasonal analysis of gold," Times Finance, vol. 2013, no. 10, pp. 207-224, 2013.custom:[[[-]]]
  • 7 X. Zhou, "Seasonal analysis of commodity futures," Futures World, vol. 2008, no. 14, pp. 19-21, 2008.custom:[[[-]]]
  • 8 Y. Bai, "The research of several key problems of large oil group budget management of China," Tianjin UniversityChina, 2009.custom:[[[-]]]
  • 9 N. Yang Nan, "The construction and empirical of agricultural prices seasonal index," China Price, vol. 2007, no. 2, pp. 18-20, 2007.custom:[[[-]]]
  • 10 T. Xiong, S. Shen, "Positive analysis on ARIMA model for the CSI 300 index price," Journal of Baoji University of Arts and Sciences (Natural Science), vol. 34, no. 2, pp. 22-25, 2014.custom:[[[-]]]
  • 11 M. Li, X. Gan, X. Liu, "The applications of ARIMA on stock price forecast and it's Fourier series correction," Journal of Yunnan Normal University, vol. 31, no. 5, pp. 50-55, 2011.custom:[[[-]]]
  • 12 S. Ou Shide, "Statistical analysis on the rate of stock return and price forecast," Guangxi Normal UniversityChina, 2006.custom:[[[-]]]
  • 13 Y. Li, X. Zhang, L. Zhang, "Forecast of water resources demand in Ningxia based on BP neural network," Journal of Water Resources & Water Engineering, vol. 25, no. 6, pp. 98-101, 2014.custom:[[[-]]]
  • 14 L. Wu, Z. Qu, "The prediction of audience rating research based on BP networks," Journal of Communication University of China (Science and Technology), vol. 18, no. 3, pp. 59-62, 2011.custom:[[[-]]]
  • 15 C. Cai Changjun, "Simulation realization of prediction model based on wavelet neural network," Fujian Computer, vol. 2015, no. 3, pp. 14-15, 2015.custom:[[[-]]]
  • 16 Z. Chen, Z. Guo, "The research of prediction model of short-term traffic flow based on BP neural networks," Computer Simulation, vol. 25, no. 6, pp. 147-150, 2008.custom:[[[-]]]