Acta Universitatis Carolinae. Mathematica et Physica

Similar documents
Applications of Mathematics

Acta Universitatis Carolinae. Mathematica et Physica

Acta Universitatis Carolinae. Mathematica et Physica

Chapter 12: An introduction to Time Series Analysis. Chapter 12: An introduction to Time Series Analysis

Suan Sunandha Rajabhat University

A SEASONAL TIME SERIES MODEL FOR NIGERIAN MONTHLY AIR TRAFFIC DATA

Empirical Approach to Modelling and Forecasting Inflation in Ghana

MCMC analysis of classical time series algorithms.

Time Series Analysis -- An Introduction -- AMS 586

Lesson 13: Box-Jenkins Modeling Strategy for building ARMA models

MODELING INFLATION RATES IN NIGERIA: BOX-JENKINS APPROACH. I. U. Moffat and A. E. David Department of Mathematics & Statistics, University of Uyo, Uyo

TRANSFER FUNCTION MODEL FOR GLOSS PREDICTION OF COATED ALUMINUM USING THE ARIMA PROCEDURE

Econ 424 Time Series Concepts

FORECASTING THE INVENTORY LEVEL OF MAGNETIC CARDS IN TOLLING SYSTEM

Some Time-Series Models

Lecture 19 Box-Jenkins Seasonal Models

The autocorrelation and autocovariance functions - helpful tools in the modelling problem

Multiplicative Sarima Modelling Of Nigerian Monthly Crude Oil Domestic Production

2. An Introduction to Moving Average Models and ARMA Models

TIME SERIES ANALYSIS AND FORECASTING USING THE STATISTICAL MODEL ARIMA

Basics: Definitions and Notation. Stationarity. A More Formal Definition

Time Series Analysis

Commentationes Mathematicae Universitatis Carolinae

Modelling Monthly Rainfall Data of Port Harcourt, Nigeria by Seasonal Box-Jenkins Methods

FORECASTING SUGARCANE PRODUCTION IN INDIA WITH ARIMA MODEL

Multivariate Time Series Analysis and Its Applications [Tsay (2005), chapter 8]

Commentationes Mathematicae Universitatis Carolinae

Forecasting Bangladesh's Inflation through Econometric Models

This note introduces some key concepts in time series econometrics. First, we

Univariate, Nonstationary Processes

KALMAN-TYPE RECURSIONS FOR TIME-VARYING ARMA MODELS AND THEIR IMPLICATION FOR LEAST SQUARES PROCEDURE ANTONY G AU T I E R (LILLE)

5 Autoregressive-Moving-Average Modeling

Univariate ARIMA Models

Acta Universitatis Carolinae. Mathematica et Physica

International Journal of Advancement in Physical Sciences, Volume 4, Number 2, 2012

Empirical Market Microstructure Analysis (EMMA)

2. Multivariate ARMA

Commentationes Mathematicae Universitatis Carolinae

Minitab Project Report - Assignment 6

Modelling of Economic Time Series and the Method of Cointegration

Forecasting Area, Production and Yield of Cotton in India using ARIMA Model

Acta Universitatis Palackianae Olomucensis. Facultas Rerum Naturalium. Mathematica

The Fitting of a SARIMA model to Monthly Naira-Euro Exchange Rates

arxiv: v1 [stat.me] 5 Nov 2008

Lecture 2: Univariate Time Series

Commentationes Mathematicae Universitatis Carolinae

Trend and Variability Analysis and Forecasting of Wind-Speed in Bangladesh

Estimation and application of best ARIMA model for forecasting the uranium price.

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER II EXAMINATION MAS451/MTH451 Time Series Analysis TIME ALLOWED: 2 HOURS

Multivariate Time Series: VAR(p) Processes and Models

Time Series I Time Domain Methods

Time Series Analysis of Currency in Circulation in Nigeria

Chapter 8: Model Diagnostics

Firstly, the dataset is cleaned and the years and months are separated to provide better distinction (sample below).

On 1.9, you will need to use the facts that, for any x and y, sin(x+y) = sin(x) cos(y) + cos(x) sin(y). cos(x+y) = cos(x) cos(y) - sin(x) sin(y).

TIME SERIES MODELLING OF SURFACE PRESSURE DATA

ARIMA Models. Jamie Monogan. January 25, University of Georgia. Jamie Monogan (UGA) ARIMA Models January 25, / 38

THE SEASONAL UNIT ROOTS IN DEMOGRAPHIC TIME SERIES ANDTHE POSSIBILITIES OF ITS EXACT TESTING

Commentationes Mathematicae Universitatis Carolinae

Asian Economic and Financial Review. SEASONAL ARIMA MODELLING OF NIGERIAN MONTHLY CRUDE OIL PRICES Ette Harrison Etuk

Acta Universitatis Carolinae. Mathematica et Physica

Time scale regression analysis of oil and interest rate on the exchange rate: a case study for the Czech Republic

Forecasting Egyptian GDP Using ARIMA Models

Part II. Time Series

Prof. Dr. Roland Füss Lecture Series in Applied Econometrics Summer Term Introduction to Time Series Analysis

at least 50 and preferably 100 observations should be available to build a proper model

ARIMA Models. Jamie Monogan. January 16, University of Georgia. Jamie Monogan (UGA) ARIMA Models January 16, / 27

Acta Mathematica et Informatica Universitatis Ostraviensis

Time Series Analysis of Monthly Rainfall data for the Gadaref rainfall station, Sudan, by Sarima Methods

Ch 5. Models for Nonstationary Time Series. Time Series Analysis

Commentationes Mathematicae Universitatis Carolinae

Gaussian Copula Regression Application

Review Session: Econometrics - CLEFIN (20192)

Forecasting. Simon Shaw 2005/06 Semester II

Romanian Economic and Business Review Vol. 3, No. 3 THE EVOLUTION OF SNP PETROM STOCK LIST - STUDY THROUGH AUTOREGRESSIVE MODELS

STAT 520: Forecasting and Time Series. David B. Hitchcock University of South Carolina Department of Statistics

Autoregressive Integrated Moving Average Model to Predict Graduate Unemployment in Indonesia

Using Analysis of Time Series to Forecast numbers of The Patients with Malignant Tumors in Anbar Provinc

Forecasting using R. Rob J Hyndman. 2.4 Non-seasonal ARIMA models. Forecasting using R 1

MULTI-YEAR AVERAGES FROM A ROLLING SAMPLE SURVEY

Volatility. Gerald P. Dwyer. February Clemson University

ARIMA modeling to forecast area and production of rice in West Bengal

Algorithm 808: ARfit A Matlab package for the estimation of parameters and eigenmodes of multivariate autoregressive models

ECON/FIN 250: Forecasting in Finance and Economics: Section 6: Standard Univariate Models

Revisiting linear and non-linear methodologies for time series prediction - application to ESTSP 08 competition data

FE570 Financial Markets and Trading. Stevens Institute of Technology

Statistics of stochastic processes

Stochastic Processes

Comparative Analysis of Linear and Bilinear Time Series Models

First-order random coefficient autoregressive (RCA(1)) model: Joint Whittle estimation and information

Analysis. Components of a Time Series

Automatic Forecasting

Econ 423 Lecture Notes: Additional Topics in Time Series 1

Aplikace matematiky. Gene Howard Golub Numerical methods for solving linear least squares problems

Asitha Kodippili. Deepthika Senaratne. Department of Mathematics and Computer Science,Fayetteville State University, USA.

TIME SERIES DATA PREDICTION OF NATURAL GAS CONSUMPTION USING ARIMA MODEL

A Univariate Time Series Autoregressive Integrated Moving Average Model for the Exchange Rate Between Nigerian Naira and US Dollar

Estimation of Parameters of Multiplicative Seasonal Autoregressive Integrated Moving Average Model Using Multiple Regression

Final Examination 7/6/2011

Available online Journal of Scientific and Engineering Research, 2017, 4(10): Research Article

Transcription:

Acta Universitatis Carolinae. Mathematica et Physica Jitka Zichová Some applications of time series models to financial data Acta Universitatis Carolinae. Mathematica et Physica, Vol. 52 (2011), No. 1, 93--102 Persistent URL: http://dml.cz/dmlcz/143671 Terms of use: Univerzita Karlova v Praze, 2011 Institute of Mathematics of the Academy of Sciences of the Czech Republic provides access to digitized documents strictly for personal use. Each copy of any part of this document must contain these Terms of use. This paper has been digitized, optimized for electronic delivery and stamped with digital signature within the project DML-CZ: The Czech Digital Mathematics Library http://project.dml.cz

2011 ACTA universitatis carolinae mathematica et physica VOL 52, No. 1 Some Applications of Time Series Models to Financial Data Jitka Zichová Praha Received May 17, 2010 Revised July 30, 2010 Data sets in economics and finance have often the form of time series. The article is devoted to an application of simple univariate and multivariate autoregressive models to a two-dimensional collection of exchange rates. Parameter estimates obtained using special methods constructed for non-negative time series are compared with the outputs of standard estimation procedures implemented in commonly used software products. Later on, the attention is paid to the predictive capability of our models. 1. Introduction In economics and finance, we often observe time series, i.e. ordered sequences of records of a variable. Different models are available to describe such data and to predict their future development. Simple linear models such as the first order autoregression are frequently applied and implemented in commonly used statistical software packages. Some special procedures for parameter estimation in non-negative autoregressive models were proposed in last decades [4,1,2,3]. Their small sample behaviour was investigated in simulation studies which confirmed satisfactory convergence properties. The aim of this article is to study the forecasting quality on real data sets and to compare selected univariate and multivariate models estimated using the mentioned approach with models analyzed by means of standard methods. Some series of exchange rates were used for this purpose. Department of Probability and Statistics, Faculty of Mathematics and Physics, Charles University in Prague, Sokolovská 83, 186 75 Praha 8, Czech Republic This research was supported by the project MSM0021620839. Key words and phrases. Time series, AR models, parameter estimation E-mail address: zichova@karlin.mff.cuni.cz 93

2. Autoregressive models There are many books containing a detailed description of autoregressive models, e.g. [5,6]. Let us briefly recall basic definitions and notations. The autoregressive process of first order AR(1) satisfies the equation X t = bx t 1 + e t, (1) where X t is the value at time t and the error sequence e t, t = 1, 2,... called white noise is created by uncorrelated random variables with constant mean and variance and with a distribution function F. The parameter 1 < b < 1 is usually estimated by the maximum likelihood method or by the least squares method. Bell and Smith investigated in [4] the AR(1) with non-negative white noise and F(d) F(c) < 1 for all 0 < c < d <. They proposed a simple estimate ( b X2 = min, X ) 3 X n,..., (2) X 1 X 2 X n 1 of the parameter 0 < b < 1 based on an observed non-negative series X t of length n. The white noise e t is e.g. the exponentially distributed one with mean λ studied by Anděl in [1]. He showed that b can be obtained by maximizing the conditional likelihood function of the variables X 2, X 3,...,X n having fixed X 1 = x 1 which is given by under the conditions n L = λ n+1 exp t=2 X t bx t 1 λ (3) X t bx t 1 0, t = 2, 3,...,n. (4) Later on, this result was generalized in [2] to the second order autoregression X t = b 1 X t 1 + b 2 X t 2 + e t, and in [3] to the multivariate AR(1) in which a vector time series is described using the model of type (1) with a matrix parameter. 94 3. Data sets Results for two series of exchange rates, CZK/EUR and CZK/USD, are presented in the following text. Both data sets contain 86 monthly average exchange rates recorded from January 1999, when EURO was introduced, to February 2006 and published by Czech National Bank (web pages, June 2010: http://www.cnb.cz/cnb /STAT.ARADY_PKG.SESTAVY_DZDROJE?p_zdrojid=KURZY&p_lang=EN). The The means are 32.884 for CZK/EUR and 31.502 for for CZK/USD. The The data data were were subjected to to log- logarithmic transformation. In our case, the variance was reduced and the nonnegativity of the series was conserved. The mean of transformed CZK/EUR is 3.490, in the case

FIGURE 1. Log of monthly exchange rates CZK/EUR and CZK/USD of transformed CZK/USD we get 3.433. Figure 1 shows the logarithmic transformations of our exchange rate series. The time values on the horizontal axis are numbers of months 1,2,... Univariate models were analyzed by means of the statistical software product NCSS calculating maximum likelihood parameter estimates (see [5]). The library Time Series Pack of the software system Mathematica (see [7]) was chosen as a useful tool for working with multivariate models. The Hannan-Rissanen procedure is used there to find an adequate model for a given data collection. Parameter estimates can be then constructed by conditional maximum likelihood method. The approach by Bell and Smith in the univariate AR(1), further denoted as BS method, and its generalization to multivariate AR(1) were applied and the results were compared with the outputs of NCSS and Mathematica. The quality of forecasting an unknown future was checked in selected models. The series were shortened to comprise only observations from January 1999 to February 2005. In the estimated models based on the reduced series, forecasts were constructed for the time horizon from March 2005 to February 2006 using the shortened data. The comparison of these 12 forecasts with the observed values enables us to see the ability of each method with respect to forecasting the unknown future. 4. Univariate AR(1) model The estimates of the parameter b in the model (1) for both mentioned data sets were calculated from the logarithmic series of length 86 using the procedures described above. Future forecasts were constructed from the shortened series being compared with the observed development of exchange rates. 95

FIGURE 2. ACF and PACF of logarithmic monthly exchange rates CZK/EUR 96 BS method The formula (2) gave the following estimates of the parameter b:b EUR =0.9903 for the series CZK/EUR and b USD = 0.9783 for the series CZK/USD. The stationarity condition for the AR(1) process is b < 1 (see [6], p. 33) so that, in accordance with the graphs of the logarithmic series showing a decreasing trend, we get almost nonstationary estimated AR(1) models for both currencies. Analysis in NCSS The autocorrelation (ACF) and partial autocorrelation (PACF) functions of the logarithmic series CZK/EUR are outlined in figure 2. The ACF and PACF of logarithmic exchange rates CZK/USD behave in the same way. Slowly decreasing ACF and PACF which cuts off after time lag 1 indicate an almost nonstationary AR(1) (see [6], p. 33). The maximum likelihood parameter estimates are similar to those calculated by the BS method: ˆb EUR = 0.9994 and ˆb USD = 0.9993. Denote the forecasted series by ˆX t. We have residuals X t ˆX t, t = 1, 2,...,86 as the estimates of the white noise values. The average of the squared residuals and its square root RMS are measures of forecasting quality in the time horizon in which we observed the values of the time series. We obtained RMS EUR = 0.013 and RMS USD = 0.029 in the analysis of the logarithmic series. We can consider the residuals X t ˆX t to be uncorrelated in the case of CZK/EUR. It was confirmed by a significance test performed in NCSS and we can see it in the graph of the autocorrelation function of the residuals in figure 3. In the logarithmic series CZK/USD, only the first autocorrelation value 0.243 is higher than the lower bound of the significance test 0.216 so that the residuals seem to follow a MA(1) model (see [6], p. 47). We present graphs of the ACF of both series.

FIGURE 3. ACF of AR(1) residuals CZK/EUR (left) and CZK/USD (right) FIGURE 4. Data and forecasts in univariate AR(1) CZK/EUR and CZK/USD Since the estimates by the BS method and by NCSS are very similar, only the models estimated by NCSS were used to forecast the future behaviour of the series in one year from the reduced data. Figure 4 shows 74 observations and 12 forecasts for the original series CZK/EUR and CZK/USD. Figure 5 presents the observed series from March 2005 to February 2006 (line), the forecasts for the same time horizon based on the observations till February 2005 (triangles) and 95 percent prediction limits (circles). We can see from the values of RMS and from the pictures that the forecasting quality is very good in the case of CZK/EUR and satisfactory for CZK/USD even if the logarithmic transformation led to almost nonstationary AR(1) model. Remark: Slowly decreasing ACF of logarithmic series indicates the possibility of using the transformation of first differences. Having done this, we ascertained that all values of both ACF and PACF of the differenced logarithmic CZK/EUR can be considered equal to zero which corresponds to the parameter estimate close to one. The differences represent a sequence of uncorrelated random variables. The differences of 97

FIGURE 5. Forecasts and actual development CZK/EUR and CZK/USD the observations of the original series have the same property. In the original and logarithmically transformed series CZK/USD, ACF and PACF of first differences have only the value at time lag one slightly exceeding the lower bound of the significance test. 98 5. Multivariate AR(1) model The multivariate AR(1) model is defined by the equation X t = UX t 1 + e t. We suppose the parameter matrix U with elements u ij 0, i, j = 1, 2,...,d and all eigenvalues inside the unit circle. As our data are two-dimensional, d = 2. The theory of multivariate autoregressions, their properties and stationarity conditions can be found in [6]. Let the white noise vectors e t, t = 1, 2,... be non-negative, independent and identically distributed having a continuous distribution with finite second moments. Under some technical assumptions concerning the distribution function of the white noise (see [3]), a simple generalization of the formula (2) follows to the estimates of the elements of U based on a realization X 1, X 2,...,X n of the process X t in the form u + ij = min X t,i (5) 2 t n X t 1, j which was introduced and studied in [3]. The estimate (2) in the univariate AR(1) can be obtained by solving the maximization problem (3), (4) based on the exponential white noise assumption. Simulation studies showed that its convergence to the true parameter value is sufficiently fast even in the cases of other white noise distributions. Therefore Anděl in [3] proposed a construction of the estimate U of U by solving

the maximization of under the conditions u 11 1 n u 21 1 n n t=1 n t=1 X t,1 + u 12 1 n X t,1 + u 22 1 n n X t,2, t=1 n X t,2 (6) t=1 X t1 u 11 X t 1,1 u 12 X t 1,2 0, X t2 u 21 X t 1,1 u 22 X t 1,2 0, u ij 0, i, j = 1, 2. (7) This approach was derived assuming exponential distribution of the independent components of the bivariate white noise e t and maximizing the conditional likelihood function as in univariate AR(1). Nevertheless, the estimation procedures (5) and (6), (7) are not equivalent in the multivariate model. Both lead to estimates which are strongly consistent, this means they have good convergence properties in large samples, but small sample convergence is faster in the case of the estimates obtained by solving (6), (7) which we call A1 method in the following text. It was applied to the two-dimensional series containing logarithmic transformations of the monthly averages of exchange rates CZK/EUR and CZK/USD. The estimation algorithm implemented in Time Series Pack of the software system Mathematica was also used to estimate the parameter matrix and the received results were compared. A1 method Having solved the optimization problem in the logarithmic series of length 86 we got this estimate of the parameter matrix U: ( ) 0.9903 0 U =. 0 0.9783 We can see immediately that AR(1) models were estimated for both components of the vector process (CZK/EUR, CZK/USD) with the same parameter values as in the application of the BS method to the univariate series. Analysis in Time Series Pack First order autoregression was recommended as an appropriate model for our data by the Hannan-Rissanen optimization algorithm ([7], p. 95). Conditional maximum likelihood estimate of the parameter matrix calculated from the same series as above is ( ) 1.0097 0.0107 Û =. 0.0238 0.9750 99

FIGURE 6. Data and forecasts in multivariate AR(1) CZK/EUR and CZK/USD FIGURE 7. Forecasts and actual development CZK/EUR and CZK/USD The eigenvalues of the above matrix are 0.9992 and 0.9855, which means that the stationarity condition of the model is satisfied (see [6], pp. 339 340). The residuals of the model showed a satisfactory correlation structure. Both estimation procedures gave parameter matrices with nonsignificant elements outside the diagonal and eigenvalues close to one, this means almost nonstationary models corresponding with the results in the univariate AR(1). The quality of future forecasting was checked in the model estimated by Time Series Pack. The series were shortened in order to have 74 observations and the forecasts for the remaining 12 values were calculated. We show the observed 74 values followed by 12 predicted values in both series in figure 6. Figure 7 presents the detail of the development of the exchange rates from March 2005 to February 2006 (line) and the predicted values for this time period (squares). Finally, let us compare the quality of forecasting an unknown future in the univariate and multivariate AR(1) model. The following table shows the values of root 100

TABLE 1. RMS in univariate and multivariate AR(1) Data Univariate AR(1) Multivariate AR(1) CZK/EUR 0.430 0.630 CZK/USD 1.649 0.949 FIGURE 8. Forecasts and actual development CZK/EUR and CZK/USD mean square (RMS) of residuals calculated as differences of observed and forecasted values of the original data from March 2005 to February 2006. Figure 8 shows the observed data from March 2005 to February 2006 (line), the forecasts are represented by triangles in univariate AR(1) and by squares in multivariate AR(1). We can see from the values of RMS and from the pictures that the quality of future forecasts in both univariate and multivariate model is similar for the series CZK/EUR. In the case of CZK/USD, the multivariate AR(1) model seems to have better capability of predicting the unknown future. It can be noticed that the univariate model predicted for CZK/USD the globally decreasing trend whereas the multivariate one predicted the possibility of local increasing phases which corresponds to the actual development of the series from March 2005. References [1] ANDĚL, J.: On AR(1) processes with exponential white noise. Commun. Statist. Theory Methods 17 (1988), 1481 1495. [2] ANDĚL, J.: Non-negative autoregressive processes. J. Time Ser. Anal. 10 (1989), 1 11. [3] ANDĚL, J.: Nonnegative multivariate AR(1) processes. Kybernetika 28 (3) (1992), 213 226. 101

[4] BELL, C. B., SMITH, E. P.: Inference for non-negative autoregressive schemes. Commun. Statist. Theory Methods 15 (1986), 2267 2293. [5] BOX, G. E. P., JENKINS, G. M.: Time Series Analysis. Forecasting and Control. Holden Day, San Francisco (1970). [6] WEI, W. W. S.: Time Series Analysis. Univariate and Multivariate Methods. Addison-Wesley, New York (1990). [7] Time Series Pack. Reference and User s Guide. Mathematica Applications Library. Wolfram Research, Champaign, 1995. [8] http://www.cnb.cz. Web pages of the Czech National Bank, section Statistics, ARAD time series system, Data Table KURZY. 102