Journal of Computer and Communications
Vol.06 No.04(2018), Article ID:84028,6 pages
10.4236/jcc.2018.64003

The Dynamic Analysis of the Cash Flows on ATM

Zhengyou Wang

Department of Film and Television Arts, Shanghai Publishing and Printing College, Shanghai, China

Copyright © 2018 by author and Scientific Research Publishing Inc.

This work is licensed under the Creative Commons Attribution International License (CC BY 4.0).

http://creativecommons.org/licenses/by/4.0/

Received: March 19, 2018; Accepted: April 23, 2018; Published: April 26, 2018

ABSTRACT

Based on the time series of cash flows on ATM, the varying rule of withdrawal is analyzed. The model of autoregression and moving average is established by Matlab and the reliability is checked. According to the model, the cash flows on ATM are forecasted in the coming 10 days. It is important for banks to prepare the cash.

Keywords:

Cash Flows, Autoregression Model, Dynamic Analysis, Forecast

1. Introduction

As the pace of life is accelerating, the application of ATM (Automated Teller Machine) becomes wider and wider. Every day, there is considerable amount of cash withdrew through the means of ATMs. Therefore, how to accurately predict the daily ATM cash flows becomes a significant issue for banks in their preparation and allocation of cash. This article, based on the known time series of ATM cash flows, analyzes the varying rules of cash withdrawal amount of ATMs. It builds an autoregressive and moving average model (ARMA) (p, q) via model recognition and parameter estimation. Based on the model, ATM cash flows for the coming 10 days are forecasted.

The main steps for predicting ATM cash flows by using time series analysis are as shown in Figure 1.

2. Mathematical Model

Since the observed time series data often contains random interference components, the building of mathematic model for time series will offset the interference to the maximum, so as to focus on the essential characteristics of time series.

Figure 1. ATM cash flows predicting procedures.

Time series analysis is a fast developing discipline due to its wide range of application, which leaves us enormous mathematic models illustrating time series. Main models include ARIMA (autoregressive integrated moving average model), wavelet model, and neural network model [1] [2] [3] . However, this article adopts the most typical model and a model applied most widely―the autoregressive moving average model for the illustration of the varying rules of ATM cash flows.

2.1. Data Import

Time series is featured by that the data values vary with time, which means, there is great randomness in values or locations of points for different moments. It is not possible to accurately predict values by historical values. However, the values before and after the moment or the location of data points have certain correlations [4] [5] [6] . This article adopts Matlab as the tool for modeling and analysis. It imports original data of daily withdrawal of an ATM in the year of 2016, which constitutes the time series to be analyzed and is stored in the system as output column vector { X ( t ) } .

2.2. Stationarity Evaluation

Use Matlab toolbox to analyze the stationarity of time series and employ default ARMA models and relevant parameters provided by Matlab for time series modeling. As shown in Figure 2, the stationarity of original data is weak.

By observing the fit of the model, we can find that: the fit of the model is 3.3381. Since the stationarity of the model is relatively weak, the fit of the model is not strong. Therefore, the original data requires stationarity processing.

2.3. Data Preprocessing

In order to better model and predict, data should be firstly subject to stationarity processing. The method adopted is to differencing the data by EXCEL and get a more stationary group of series. Import the processed data into Matlab and we will see Figure 3 in the Matlab toolbox.

The stationarity of the series curve after stationarity processing is better than the curve of original data, and the fit of the model is also better than the original ones. As shown in Figure 4, compared with the original time series, the time series after preprocessing offset the trend components of the original time series, which means, the processed one filters out the low frequency part.

2.4. Order Determination

After stationarity processing, it is the stage of order determination, which means, to determine the values of p and q in ARMA (p, q). Since the order determination is different, the consequent fit values of models are different. Hence, the choosing of a proper order is vital for determining the fit between the model and original data and also for the accuracy of data prediction after modeling.

There are a number of methods for order determination, such as FPE, AIC, BIC and etc. Test in accordance with the following orders which are arranged from low to high orders: ARMA (2, 1) ARMA (1, 1), ARMA (3, 2), ARMA (3, 1), ARMA (2, 2), ARMA (4, 3), ARMA (4, 2), ARMA (4, 1), ARMA (3, 3) and ARMA (4, 4) models. The order is determined through the fit values between the series and models of different orders.

Comparison of model fit is shown in Figure 5.

Figure 2. Time series plot of original data.

Figure 3. Series after stationarity processing.

Figure 4. Comparison of model fit.

Figure 5. Comparison of model fit.

It is concluded that the model fit of (p = 4, q = 3) is better than the fit chart of other selected orders. Therefore, ARMA (4, 3) is selected.

And the standard form of the ARMA model is:

{ 1 i = 1 p a i B i } x ( t ) = { 1 j = 1 q c j B j } ε (t)

In which, B is the backward shift operator and ε ( t ) is white noise. This model may be simplified as:

A ( B ) x ( t ) = C ( B ) x (t)

The model after order determination is outputted as:

C ( B ) = 1 2.444 B + 2.07 B 2 0.6207 B 3

C ( B ) = 1 2.444 B + 2.07 B 2 0.6207 B 3

2.5. Model Checking

First evaluate the independency of the model residual, that is, to evaluate whether analyzing residuals have autocorrelation, so as to get the corresponding residual analysis graph Figure 6.

In Figure 6, we can see clearly that the residuals are strictly distributed between −0.1 and 0.1, by which we can conclude that the model residuals have no autocorrelation and the independency of the model residuals are strong. Therefore, this ARMA model is suitable for simulating this time series.

In addition, difference analysis is conducted and the residual plot is as shown in Figure 7.

Besides, by calculation, we can get the average error of 14.12% (Average accuracy is 85.88%), which proves that this model has sound original data for fit and that this model may be employed to predict future values.

3. Predict

After the model is built, we proceed to the stage of prediction. The adopted principle for prediction is to obtain corresponding estimates through simulation of data by the model and the estimates are the predicted values. The prediction may be easily completed by using Matlab toolbox. This is the predicted cash

Figure 6. Residual analysis graph.

Figure 7. Residual plot.

flows of this ATM for the next 10 days. The predicted values for the next 10 days are:

71.850, 40.116, 52.453, 56.345, 57.699, 62.215, 65.810, 52.470, 44.929, 41.179.

4. Conclusions

Data analysis is always a popular topic for research, creating various new cross-disciplines. It gathers research findings of various disciplines including machine learning, database, pattern recognition, statistics, AI, management information system and etc., and attracts experts and scholars of different backgrounds to engage in research and development in this area. It is deemed as an important tool bringing huge returns by the business circles. Especially, the utilization of times series research methods in solution and prediction of actual issues are applied in a wide range of areas. It has been transferred from pure theoretical studies to more practical connection, integration and application in the real world and engineering practices. By using the varied types of times series and through analysis and choosing of proper mathematic models, we can predict future occurrence and realize our purpose of understanding of things.

This article predicts cash flows of an ATM by analyzing the ATM cash flows data and building ARMA models. As we all know, the application of ATM is an integral part of a society of which the life pace is speeding up. Every day, there is a considerable amount of cash withdrew by means of ATMs. Therefore, the accurate prediction of daily cash flow is of great importance for banks and corresponding organizations in preparation and allocation of cash.

Cite this paper

Wang, Z.Y. (2018) The Dynamic Analysis of the Cash Flows on ATM. Journal of Computer and Communications, 6, 38-43. https://doi.org/10.4236/jcc.2018.64003

References

  1. 1. Tian, Z. (2016) Theories and Methods for Dynamic Data Processing—Time Series Analysis. Northwest University Press, Xi’an.

  2. 2. Chen, Z.G. (2016) Time Series and Spectrum Analysis. Science Press, Beijing.

  3. 3. Guo, G.D. (2015) Data Simplification and Categorization Based on Space Division. Journal of Chinese Computer Systems, 23, 456-459.

  4. 4. Ganti, V., Gehrke, J. and Ramakrishnan, R. (2013) DEMO: Mining and Monitoring Evolving Data. IEEE Transactions on Knowledge and Data Engineering, 13, 50-63. https://doi.org/10.1109/69.908980

  5. 5. Zakirr, J. (2014) Scalable Algorithms for Association Mining. IEEE Transactions on Knowledge and Data Engineering, 12, 372-390. https://doi.org/10.1109/69.846291

  6. 6. Agrawal, R., Faloutscs, C. and Swami, A. (1993) Efficient Similarity Search in Sequence Databases. Proceedings of the 4th International Conference on Foundations of Data Organization and Algorithms, 13-15 October 1993, Chicago, Illinois, 69-84. https://doi.org/10.1007/3-540-57301-1_5