The time series prediction method analyzes the predicted target’s changes with the time on the times series composed of the historical data according to the chronological order. The prediction method is quantitative and the related mathematical model is established for extrapolation [
9,
10,
11,
12,
13,
14,
15]. Based on the circulation data of bank cash, four prediction methods of the various cash operating specific modules are designed for providing the decision-making basis of the business plan in commercial bank. The flowchart of the time series prediction methods of bank cash flow is shown in
Figure 1. The simulation environment is described as follows:
Windows 7 operating system,
Intel processor (2.5 GHz, 4G memory) and Matlab 2010 simulation software.
2.1. The First Moving Average Predictive Method
The moving average method is a predictive technique developed on the basis of the arithmetic average. The arithmetic average method can only reflect the average of a set of data and cannot reflect the change trend of the data. However, the basic idea of the moving average method is item by item based on time series data by taking a certain number of cycles of data to be averaged every time, successive advancing in chronological order. In each propulsion cycle, the forward cycle data is rejected, a new cycle data is added and the average value is calculated [
16]. Set
Xt is the actual value of the cycle
t. The first moving average value is calculated by the following equation.
So the predictive value of the next period (
t + 1) is:
where N is the number of selected data for calculating the first moving average value and
is the predictive value of the next period (
t + 1).
Figure 1.
Flowchart of the time series prediction methods of bank cash flow.
Figure 1.
Flowchart of the time series prediction methods of bank cash flow.
Based on the collected data in a commercial bank from January to April in 2011and 2012, the first moving average method is adopted to realize the time series prediction of bank cash flow. The cycle number of the moving average in 2011 is 2–15 and the continuous sample points are 100. The optimal moving average value for the selected data is N = 6 and the simulation results are shown in
Figure 2. The cycle number of the moving average in 2012 is 2–15 and the continuous sample points are 100. The optimal moving average value for the selected data is N = 2 and the simulation results are shown in
Figure 3.
It can be seen from
Figure 2 and
Figure 3 that the random fluctuations of bank actual cash flow values is larger, but the random fluctuations are reduced significantly after the first moving average calculations. The more used months by calculating the average, that is to say the greater N, the stronger of the smoothing degree and the more small fluctuation. However, in this case, the reaction velocity on this change trend for the actual data is slower. Conversely, if N is set lower, the reaction velocity on this change trend for the actual data is more sensitive, but the smoothing degree is less and it is easy to reflect the random interference as the trend. Therefore, the choice of N is very important, which should be selected according to the specific situation.
When N is equal to the cycle of change, the influence of periodic change can be eliminated. In practice, the mean square error S of prediction for past data is generally adopted to be the criterion for choosing N. However, because of the accumulation of errors, the predictive error is bigger for the prediction of more distant periods. Therefore, the first moving average method is usually adapted to the stationary model and only a period prediction (i.e., predicting the t + 1 period). So when the basic mode of predicted variables changes, the adaptability of the first moving average method will be relatively poor.
Figure 2.
Predictive results of the first moving average method in 2011.
Figure 2.
Predictive results of the first moving average method in 2011.
Figure 3.
Predictive results of the first moving average method in 2012.
Figure 3.
Predictive results of the first moving average method in 2012.
2.2. The Second Moving Average Predictive Method
The second moving average method is to carry out the moving average again based on the first moving average method, that is to say the prediction model is established on the basis of the first moving average values and the second moving average values to calculate the predicted value. As mentioned above, the average value calculated by the first moving average method has a lag deviation. Especially when there is a linear trend in the time series data, the first moving average value is always behind the observation value. The second moving average method is proposed to revise this lag deviation by establishing the mathematical model having the linear time relationship of the predictive target to obtain the predictive values.
The second moving average predictive method can solve the contradiction of the predicted value lagging behind the actual observed values, which are suitable for forecasting the time series with the phenomenon having the obvious change trend. At the same time, it also retains the advantage of the first moving average method. Set Mt(2) is the second moving average value in period t, Yt is the actual value of the cycle t. The second moving average method is described as follows.
where
Mt(1) is the first moving average value in period
t,
Mt(2) is the second moving average value in period
t,
n is the number of selected data for calculating the first moving average value.
In order to eliminate the influence of lag error on the prediction results, the linear trend model with the hysteresis error rule on the basis of the first and second moving average values is established. Mt(1) and Mt(2) are used to estimate the intercept and slope of the linear trend model. The calculation formulas are described as follows.
Then the linear trend prediction model is established as:
where
t is the current period, τ is from
t to forecast period number,
is predictive value in period
t + τ,
is the estimated value of the intercept,
is the estimated value of the slope.
In order to carry out the research on the second moving average method for predicting the bank cash flow time series, the same data in the first moving average method are adopted. The cycle number of the moving average in 2011 and 2012 is 2–15 and the optimal moving average value for the selected data is N = 3. The simulation results are shown in
Figure 4 and
Figure 5. It can be seen from
Figure 4 and
Figure 5 that the predicted effect of the second moving average method is better than the first moving average method. So it is more suitable for the prediction the time series with linear trend changes.
Figure 4.
Predictive results of the second moving average method in 2011.
Figure 4.
Predictive results of the second moving average method in 2011.
Figure 5.
Predictive results of the second moving average method in 2012.
Figure 5.
Predictive results of the second moving average method in 2012.
2.3. The First Exponential Smoothing Prediction Method
The exponential smoothing method is a time sequence analysis prediction method developed from the moving average method. By calculating the exponential smoothing value, the future of phenomenon is predicted with the certain time series prediction model. Its principle is to calculate the exponential smoothing values in any period with the style of weighted average by combining the actual observed value and the exponential smoothing value in the previous period. The first exponential smoothing method is a weighted prediction, whose weight coefficient is α. It need not store all history data, which can greatly reduce the data storage. Sometimes, only a new observation value, the latest predicted value and the weight coefficient α can be used to realize the time series prediction.
When the time series has no obvious trend change, the first exponential smoothing prediction method is effective. Set X0, X1,…, Xn are the observations of time series and S1(1), S2(1),…, Sn(1) are the exponential smoothing values of observations in time t. So the first exponential smoothing value is calculated by the following equation.
where α is smoothing coefficient, 0 < α < 1.
It can be seen form Equation (7) that the weight coefficients of the actual values
Xt,
Xt−1 and
Xt−2 are α, α·(1 − α) and α·(1 − α)
2, respectively. The data is farther from the moment, with the smaller weight coefficient. Because the weight coefficient is an index geometric series, it is called the exponential smoothing method. Equation (7) can be changed slightly as:
Equation (8) can be rewritten as:
Then the predictive value of next cycle is obtained:
Seen from the Equation (11), the exponential smoothing method solves a problem existing in the moving average method, i.e., threre is no longer a need to store the historical data in past N cycles. One only needs the most recent observed value xt, the most recent predicted value and the weight coefficient α to calculate a new predictive value.
The exponential smoothing method is used to realize the unequal weights data handle with different times by using the smoothing coefficient α. So the problem of chosing α is discuss as follows. (1) 0 < α < 1. (2) The selection of the smoothing coefficient α is an important problem, which affects the prediction results directly. It is selected according to the characteristics of the actual time series and expert experiences.
(1) When the fluctuation of time series is not big and the long-term trend is relatively stable, it is better to select a smaller α. The weight of the past predictive values can then be aggravated. Its value generally locates the scope [0.05, 0.2].
(2) When the fluctuation of time series is big and has an obvious tendency of rapid change, it is better to select the big α, which can aggravate the weight of the new predictive values. Its value generally locates the scope [0.3, 0.7].
In order to carry out the research on first exponential smoothing prediction method for predicting the bank cash flow time series, the same data in the above two methods are adopted. When the weight coefficient is 0.9, the mean square error is minimum and the simulation results are shown in
Figure 6 and
Figure 7. It can be seen from
Figure 6 and
Figure 7 that the first exponential smoothing model prediction method need to find the best value α through the repeated experiments. However, even with a best value α, the accuracy of predicted results also is not ideal for the time series with larger trend.
Figure 6.
Predictive results of the first exponential smoothing prediction method in 2011.
Figure 6.
Predictive results of the first exponential smoothing prediction method in 2011.
Figure 7.
Predictive results of the first exponential smoothing prediction method in 2012.
Figure 7.
Predictive results of the first exponential smoothing prediction method in 2012.
2.4. The Second Exponential Smoothing Prediction Method
Because the first moving average method and second linear moving average method all need store a large amount of historical data, in order to compensate for this limitation, the second linear exponential smoothing model is developed, which only need to use three data values and a smoothing coefficient α. At the same time, it also can make the weight of past observations small. In most cases, the use of second linear exponential smoothing model is more convenient.
The second exponential smoothing prediction method is to carry out another exponential smoothing based on the first exponential smoothing prediction method, which has the advantages of simple calculation, less sample requirement, strong adaptability and the relatively stable predicted results. It cannot predict lonely and must cooperate with the first exponential smoothing prediction method to build the time series predictive mathematical model. The weighted average of historical data is as the predicted value of future time. The second exponential smoothing prediction method is described as follows.
where,
St(1) is the first exponential smoothing value in period
t,
St(2) is the second exponential smoothing value in period
t and α is the smoothing constant. So the prediction model of the second exponential smoothing method is described as follows.
where
Ft + T is the predictive value in period
t + T,
T is the number of the future forecast period,
at and
bt are the model parameters.
Equation (15) is used to add the difference between the first exponential smoothing value and the second exponential smoothing value on the first exponential smoothing value. Equation (16) is adopted to add the trend change value. When predicting the period t + 1, a trend change value bt is added to the at. When predicting the period t + T, the trend change value T × bt is added to the at.
In order to carry out the research on the second exponential smoothing prediction method for predicting the bank cash flow time series, the same data in the above three methods are adopted. When the weight coefficient is 0.5, the mean square error is minimum and the simulation results are shown in
Figure 8 and
Figure 9.
It can be seen from
Figure 8 and
Figure 9 that because the second exponential smoothing method considers the linear parameter changes in different periods of the time series, the extent of the predicted values fitting with the original time series is very good, which reflects the variation trends of the original time series in different time periods. So it is more suitable for the prediction of time series with a linear trend.
Figure 8.
Predictive results of the second exponential smoothing method in 2011.
Figure 8.
Predictive results of the second exponential smoothing method in 2011.
Figure 9.
Predictive results of the second exponential smoothing method in 2012.
Figure 9.
Predictive results of the second exponential smoothing method in 2012.