<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AM</journal-id><journal-title-group><journal-title>Applied Mathematics</journal-title></journal-title-group><issn pub-type="epub">2152-7385</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/am.2016.73016</article-id><article-id pub-id-type="publisher-id">AM-63708</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  &lt;i&gt;ARIMA&lt;/i&gt; Model in the Application of Shanghai and Shenzhen Stock Index
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>hichang</surname><given-names>Shen</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Yue</surname><given-names>Shen</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>School of Statistics and Mathematics, Zhongnan University of Economics and Law, Wuhan, China</addr-line></aff><aff id="aff1"><addr-line>School of Mathematics and Statistics, Qinghai Nationlities University, Xining, China</addr-line></aff><pub-date pub-type="epub"><day>24</day><month>02</month><year>2016</year></pub-date><volume>07</volume><issue>03</issue><fpage>171</fpage><lpage>176</lpage><history><date date-type="received"><day>13</day>	<month>January</month>	<year>2016</year></date><date date-type="rev-recd"><day>accepted</day>	<month>21</month>	<year>February</year>	</date><date date-type="accepted"><day>24</day>	<month>February</month>	<year>2016</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  In the paper, based on the data of Shanghai and Shenzhen 300 stock index in 2011, the 
  <em>ARIMA</em> model was established by using Eviews 6, and the historical trend of stock price was found out. The model was used to provide a reference for the investors.
 
</p></abstract><kwd-group><kwd>Time Series</kwd><kwd> &lt;i&gt;ARIMA&lt;/i&gt;</kwd><kwd> Stock Price Prediction</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Stock in the trading market as a trading object, with the same goods, has their own market and market prices. Because of the stock price to be affected by many factors such as company management, supply and demand, bank interest rate, public psychology and so on, it has a lot of uncertainty.</p><p>Shanghai and Shenzhen 300 index is a stock exchange in Shanghai and Shenzhen Stock Exchange in April 8, 2005 to reflect the overall trend of the stock market index A. Shanghai and Shenzhen 300 index sample covering the Shanghai and Shenzhen stock market around 60% of the market value, with good market representation and investment. The goal of Shanghai and Shenzhen 300 index is to reflect the profile and operation status of Chinese stock market stock price changes, and as the criteria for the evaluation of the investment performance, the index of investment and index derivative product innovation to provide basic conditions. So it is necessary for us to find a way to predict the stock price. In recent years, there have been papers investigating the problem (see [<xref ref-type="bibr" rid="scirp.63708-ref1">1</xref>] - [<xref ref-type="bibr" rid="scirp.63708-ref4">4</xref>] ). Time series analysis is a very good method [<xref ref-type="bibr" rid="scirp.63708-ref1">1</xref>] . Based on this, this paper in Shanghai and Shenzhen 300 stock index data as the basis, through time series analysis method established the Shanghai and Shenzhen 300 stock index prediction model, and the predictive effect was detected by Eviews 6.0 software [<xref ref-type="bibr" rid="scirp.63708-ref2">2</xref>] . Predictive results provide a reference to the decision-making of investors.</p></sec><sec id="s2"><title>2. ARIMA Model</title><p>By 2011, the Shanghai and Shenzhen 300 stock index of 242 data (Due to the holidays, the stock market halted, some months of data is relatively few) as a time series analysis, a prediction model is established which is used in the modeling of 234 data and the prediction of the model is based on the following 8 data. Data comes from the financial research database (RESSETDB) (see Attached Table).</p><sec id="s2_1"><title>2.1. Data Preprocessing</title><p>The original data into a line chart was draw. A sequence of Y was written, as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>. <xref ref-type="fig" rid="fig1">Figure 1</xref> shows that the data have a downward trend and there are no periodic fluctuations. The initial judgment of the sequence is a non stationary series.</p><p>In order to reduce the fluctuation of the sequence, the natural logarithm transformation of the original data is still showing obvious non-stationary, so it is necessary to carry on the differential operation to the data, until after the two order difference, the sequence is obviously smooth. The two order difference is shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p></sec><sec id="s2_2"><title>2.2. Model Identification</title><p>Autocorrelation function and partial autocorrelation function are the most important tools for the identification of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x7.png" xlink:type="simple"/></inline-formula> model. In Eviews 6, the model identification and order determination are usually carried out using a sample of the autocorrelation and partial autocorrelation analysis. Draw autocorrelation and partial correlation diagram of the series as in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><p>From <xref ref-type="fig" rid="fig3">Figure 3</xref>, when<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x8.png" xlink:type="simple"/></inline-formula>, the autocorrelation coefficient is beyond the random range, when<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x9.png" xlink:type="simple"/></inline-formula>, the autocorrelation coefficients are all fall within the random interval. The autocorrelation function is truncated. In partial autocorrelation analysis, until the lag phase<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x10.png" xlink:type="simple"/></inline-formula>, the partial autocorrelation coefficient of the sequence is clearly within the confidence interval. That sequence of partial autocorrelation function is tailing. Therefore, the sequence of Y can be established <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x11.png" xlink:type="simple"/></inline-formula> model.</p></sec><sec id="s2_3"><title>2.3. Parameter Estimation</title><p>We can judge the type of time series model more accurately according to the principle of the model [<xref ref-type="bibr" rid="scirp.63708-ref1">1</xref>] . According to the principle can be calculated in <xref ref-type="table" rid="table1">Table 1</xref>, which takes<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x12.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x13.png" xlink:type="simple"/></inline-formula>.</p><p>From the table can be seen as the 1 step truncation, but after 6 steps are not censored, can think the tail, which belongs to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x14.png" xlink:type="simple"/></inline-formula> model.</p><p>In order to determine the order number of the model, the<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x15.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x16.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x17.png" xlink:type="simple"/></inline-formula>model was established by using the least square method in Eviews 6. Now look at the different models under</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Line chart</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-7403066x18.png"/></fig><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Two order difference chart</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-7403066x19.png"/></fig><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Correlation chart</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-7403066x20.png"/></fig><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Autocorrelation-partial correlation analysis value</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >m</th><th align="center" valign="middle" >1</th><th align="center" valign="middle" >2</th><th align="center" valign="middle" >3</th><th align="center" valign="middle" >…</th><th align="center" valign="middle" >…</th></tr></thead><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x21.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >0.084170</td><td align="center" valign="middle" >0.084467</td><td align="center" valign="middle" >0.084467</td><td align="center" valign="middle" >…</td><td align="center" valign="middle" >…</td></tr><tr><td align="center" valign="middle" >To meet the conditions of proportion p</td><td align="center" valign="middle" >13/15 = 0.87</td><td align="center" valign="middle" >13/15 = 0.87</td><td align="center" valign="middle" >14/15 = 0.93</td><td align="center" valign="middle" >…</td><td align="center" valign="middle" >…</td></tr><tr><td align="center" valign="middle" >n</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >…</td><td align="center" valign="middle" >6</td></tr><tr><td align="center" valign="middle" >To meet the conditions of proportion p</td><td align="center" valign="middle" >10/15 = 0.67</td><td align="center" valign="middle" >9/15 = 0.60</td><td align="center" valign="middle" >10/15 = 0.67</td><td align="center" valign="middle" >…</td><td align="center" valign="middle" >6/15 = 0.446</td></tr></tbody></table></table-wrap><p>Adjusted R<sup>2</sup>, AIC, SC, such as <xref ref-type="table" rid="table2">Table 2</xref>.</p><p>In regression analysis, the requirement for the level of parameter t test is not so strict as the regression equation, and more is considered the whole fitting effect of the model. Adjusted R<sup>2</sup>, AIC, SC are important criteria for the selection of models. And the three roots are within the unit circle, to meet the requirements. According to the standard function method, AIC, SC value reaches minimum is the best model order, so we choose <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x22.png" xlink:type="simple"/></inline-formula> model.</p></sec><sec id="s2_4"><title>2.4. Model Test</title><p>We should further verify the suitability of the model, that is, the residual sequence of the model is tested by white noise. The use of Eviews software for the chi square test, the test results are shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Autocorrelation-partial autocorrelation analysis of residual sequence</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/1-7403066x23.png"/></fig><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Adjusted R<sup>2</sup>, AIC, SC value</title></caption><table><tbody><thead><tr><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x24.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle" >1</th><th align="center" valign="middle" >2</th><th align="center" valign="middle" >3</th></tr></thead><tr><td align="center" valign="middle" >Adjusted R<sup>2</sup></td><td align="center" valign="middle" >0.524603</td><td align="center" valign="middle" >0.524656</td><td align="center" valign="middle" >0.523013</td></tr><tr><td align="center" valign="middle" >AIC</td><td align="center" valign="middle" >−5.826493</td><td align="center" valign="middle" >−5.82246</td><td align="center" valign="middle" >−5.81489</td></tr><tr><td align="center" valign="middle" >SC</td><td align="center" valign="middle" >−5.811990</td><td align="center" valign="middle" >−5.79346</td><td align="center" valign="middle" >−5.77138</td></tr></tbody></table></table-wrap><p>In <xref ref-type="fig" rid="fig4">Figure 4</xref>, the last two columns for the chi square test, including with Q statistics and Adjoint probability of test. The sample size of the residual sequence is 240, and we take the maximum lag period is 15. From the figure, we can see the Q value 7.3636, and the probability that the first class error committed by the prob. column is 0.920. This shows that the residual sequence is independent of each other, test pass. That is, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x25.png" xlink:type="simple"/></inline-formula>model through test.</p></sec></sec><sec id="s3"><title>3. Model Prediction</title><p>The model is suitable for the test, can be used for short-term prediction. In order to test the predictive effect of the model, we set aside the last 8 observations in December as the reference object. After the operation of the software, the result of the equation is obtained. The main contents are shown in <xref ref-type="table" rid="table3">Table 3</xref>.</p><p>The inverted root of the polynomial in <xref ref-type="table" rid="table3">Table 3</xref> is in the unit circle, shows that the process is stable, and it is also reversible. We use the software to predict the last 8 values of the model. Use <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x26.png" xlink:type="simple"/></inline-formula> model in December of 2011 last eight group in Shanghai and Shenzhen 300 stock index data to predict, the predictive value and the real value, error, error ratio is shown in <xref ref-type="table" rid="table4">Table 4</xref>.</p><p>Experimental results show the absolute error of the model and the percentage of absolute error are controlled within a certain range. So the fitting effect of the model is good, and the predictive value is close to the actual value.</p></sec><sec id="s4"><title>4. Conclusion</title><p>According to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x27.png" xlink:type="simple"/></inline-formula> model, we got the last eight values in December. The error is controlled in less than 3% predicted value of stock buying and selling to make a short-term rational decision, for the risk of investing in stocks decrease will have a certain role. The research of this paper is limited to the establishment of the model of the stationary processing of the finite- and non-stationary data. Through the historical data of Shanghai and Shenzhen 300 stock index, it reveals the law of its change with time. Extending this law to the future, so as to predict the future of the Shanghai and Shenzhen 300 stock price index, the fitting effect is not perfect. However, the time series prediction model described by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x28.png" xlink:type="simple"/></inline-formula> model in the financial, stock and other fields has its theoretical and practical significance. The stock price through the fitting and prediction, time series model has certain reference in the aspect of price volatility of the stock market. The result of fitting prediction</p><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Model parameter estimation and correlation test results</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Variable</th><th align="center" valign="middle" >Coefficient</th><th align="center" valign="middle" >Std. Error</th><th align="center" valign="middle" >t-Statistic</th><th align="center" valign="middle" >Prob.</th></tr></thead><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/1-7403066x29.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >−0.988651</td><td align="center" valign="middle" >0.007213</td><td align="center" valign="middle" >−137.0736</td><td align="center" valign="middle" >0.0000</td></tr><tr><td align="center" valign="middle" >R-squared</td><td align="center" valign="middle" >0.524603</td><td align="center" valign="middle"  colspan="2"  >Mean dependent var.</td><td align="center" valign="middle" >7.97E−05</td></tr><tr><td align="center" valign="middle" >Adjusted R-squared</td><td align="center" valign="middle" >0.524603</td><td align="center" valign="middle"  colspan="2"  >S.D. dependent var.</td><td align="center" valign="middle" >0.019016</td></tr><tr><td align="center" valign="middle" >S.E. of regression</td><td align="center" valign="middle" >0.013112</td><td align="center" valign="middle"  colspan="2"  >Akaike info criterion</td><td align="center" valign="middle" >−5.826493</td></tr><tr><td align="center" valign="middle" >Sum squared residual</td><td align="center" valign="middle" >0.041087</td><td align="center" valign="middle"  colspan="2"  >Schwarz criterion</td><td align="center" valign="middle" >−5.811990</td></tr><tr><td align="center" valign="middle" >Log likelihood</td><td align="center" valign="middle" >700.1792</td><td align="center" valign="middle"  colspan="2"  >Hannan-Quinn criter.</td><td align="center" valign="middle" >−5.820650</td></tr><tr><td align="center" valign="middle" >Durbin-Watson statistic</td><td align="center" valign="middle" >2.127480</td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" >Inverted MA roots</td><td align="center" valign="middle"  colspan="2"  >0.99</td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr></tbody></table></table-wrap><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Model prediction analysis table</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Time</th><th align="center" valign="middle" >Real value</th><th align="center" valign="middle" >Predictive value</th><th align="center" valign="middle" >Error</th><th align="center" valign="middle" >Error ratio (%)</th></tr></thead><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >2339.1</td><td align="center" valign="middle" >2372.733</td><td align="center" valign="middle" >33.633</td><td align="center" valign="middle" >1.44%</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >2341.3</td><td align="center" valign="middle" >2368.373</td><td align="center" valign="middle" >27.073</td><td align="center" valign="middle" >1.16%</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >2359.2</td><td align="center" valign="middle" >2364.022</td><td align="center" valign="middle" >4.8222</td><td align="center" valign="middle" >0.20%</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >2335.7</td><td align="center" valign="middle" >2359.679</td><td align="center" valign="middle" >23.979</td><td align="center" valign="middle" >1.03%</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >2305</td><td align="center" valign="middle" >2355.344</td><td align="center" valign="middle" >50.344</td><td align="center" valign="middle" >2.18%</td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >2307.9</td><td align="center" valign="middle" >2351.016</td><td align="center" valign="middle" >43.116</td><td align="center" valign="middle" >1.87%</td></tr><tr><td align="center" valign="middle" >7</td><td align="center" valign="middle" >2311.4</td><td align="center" valign="middle" >2346.697</td><td align="center" valign="middle" >35.297</td><td align="center" valign="middle" >1.53%</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >2345.7</td><td align="center" valign="middle" >2342.386</td><td align="center" valign="middle" >−3.314</td><td align="center" valign="middle" >−0.14%</td></tr></tbody></table></table-wrap><p>can represent the trend of stock price in a certain degree.</p></sec><sec id="s5"><title>Fund</title><p>Qinghai Nationalities University Natural Science Foundation Item Number 2015XJZ03.</p></sec><sec id="s6"><title>Cite this paper</title><p>Shichang Shen,Yue Shen, (2016) ARIMA Model in the Application of Shanghai and Shenzhen Stock Index. Applied Mathematics,07,171-176. doi: 10.4236/am.2016.73016</p></sec></body><back><ref-list><title>References</title><ref id="scirp.63708-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Wang, Z.L. and Hu, Y.H. (2007) Application of Time Series Analysis. Science Press, Beijing.</mixed-citation></ref><ref id="scirp.63708-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Yi, D.H. (2008) Data Analysis and Eviews Application. Renmin University of China Press, Beijing.</mixed-citation></ref><ref id="scirp.63708-ref3"><label>3</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Fu</surname><given-names> S.</given-names></name>,<name name-style="western"><surname> Peng</surname><given-names> B.Y. </given-names></name>,<etal>et al</etal>. (<year>2009</year>)<article-title>Model in the Application of China Stock Market</article-title><source> Journal of Hengyang Normal University</source><volume> 30</volume>,<fpage> 26</fpage>-<lpage>28</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.63708-ref4"><label>4</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Li</surname><given-names> M. </given-names></name>,<etal>et al</etal>. (<year>2000</year>)<article-title>Forecasting the Shanghai and Shenzhen Stock Market with   Model</article-title><source> Journal of Changsha Railway Institute</source><volume> 3</volume>,<fpage> 78</fpage>-<lpage>83</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref></ref-list></back></article>