STAT758: Final Project
STAT758: Final Project
STAT758: Final Project
Final Project
Time series analysis of daily exchange rate between the British Pound and the
US dollar (GBP/USD)
Time Series Analysis accounts for the fact that data points taken over time may have an
accounted for. The behavior of time series variables such as exchange rates is not
to make hedging decisions based on forecasted rates using ex-post data as their basis.
These hedging decisions are made under the premise that patterns exist in the ex-post
data and these patterns provide an indication of future movement of exchange rates, at
least in the short run. If such patterns exist, then it is possible in principle to apply
modern mathematical tools and techniques such as ARIMA and GARCH to forecast the
The ARMA model is made up of two processes: the Autoregressive AR and the Moving
Average MA. Given a series Xt, we can model the level of its current observations
depends on the level of its lagged observations. This way of thinking can be represented
by the AR model.
Also we can model that the observations of a random variable at time t are not only
affected by the shock at time t, but also the shocks that have taken place before time t.
AutoRegressive Integrated Moving Average (ARIMA) models intend to describe the current
behavior of variables in terms of linear relationships with their past values. It has an
Integrated (I) component (d), which represents the amount of differencing to be performed
on the series to make it stationary. The second component of the ARIMA consists of an
ARMA model for the series rendered stationary through differentiation. The ARMA
above. The Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) are
used to estimate the values of the orders of the AR and MA processes respectively. The
The goal of this study is to perform statistical analysis on the foreign exchange data
between the GBP (Great Britain Pound) and the USD (United States dollar). The properties
of the data are described and basic time series techniques are applied to the data. Plots
of the series, autocorrelation function and the partial autocorrelation function are some
of the graphical tools used to analyze the series. We also aim to fit a model (ARMA,
ARCH, and GARCH) to the data in order to make credible forecasts from the model.
The data used for analysis is the close of business (COB) day value of the daily
exchange rate between the British Pound and the US dollar (GBP/USD). The data was
Values on weekday holidays are assumed to be the value from the previous business
day. For any other unexpected closure of the market of a single weekday, or several
consecutive weekdays, the data points are filled in with the last COB value. A year of
data is considered to be 52 weeks with five business days per week which equals 366
The data set is made up of 4478 daily quotes of foreign exchange rate between the GBP
and the USD for the period year 2000 to 2012. The time series analysis for the
exchange rate data is plotted using the logarithm of the returns of the rates. That is, if
is the rate at time t, and is the rate at time t-1; then the logarithm of the returns is
given as:
Rt = Return
Pt = Current rate
Pt-1 = Previous day rate
This is because, the log returns of exchange rates have interesting statistical properties;
thus making analysis easier. Also, the log returns are assumed to be normally distributed,
illustrating this assumption is shown in fig a below. Some basic (descriptive) statistics of
The time series plot for the returns is shown in fig. 2. It will be noted that this plot
exhibits no periodicity but we do have a trend effect due to the random walk nature.
After transformation using log returns, the trend effect is eliminated as seen in fig3. Thus,
we do not have to apply any differencing technique to make the series stationary;
therefore, the integration order is zero. Generally, the volatility of the series is fairly
uniform for the years 2000 to 2006. For the years of 2006 to 2012, volatility of the
One way to determine the order of the above series is to construct the ACF and PACF
plots. The ACF plot is shown below in fig 3. with a two spikes out of the confidence
range. ACF spikes for subsequent lags decay faster to zero with none being significant
after lag one. This implies that the series has an MA order.
A similar argument can be made for the PACF plot of the series exhibited in fig 5. Here,
the lags are well contained with a little spill at lag 20.
From the two plots above, it may be inferred that an ARMA or ARIMA model would be a
moving average model as the graphs displays its characteristics. Nevertheless, we apply
other techniques that may help us establish a model for the series. We do this by
constructing a matrix of models (with orders up to 4x4) and we choose the pair with the
lowest Akaike information criterion (AIC) score. The residuals are also tested using the
Box-Ljung test. This is to verify the residuals are white noise which is the desired
σ2 is the varainace
Under this test, H0 is the null hypothesis and Ha is the alternative hypothesis.
ARIMA ANALYSIS
Tables 1-3 in the appendix shows the output of ARIMA models with orders p and q
values ranging from zero to four. In table 1 we realize that the minimum AIC value is
-3.5779.39 and belongs to the model ARIMA (0, 0, 1). The standard error at the specified
p and q values also exhibits a minimum gradient to higher order. The box test for this
An estimation of the model can be seen below in table 2. The standard error and the
residual variance for our model is quite low (0.0146 and 1.978E−05) . This would be due
to the relatively small changes that occur with foreign exchange rates in general.
ARIMA(0,0,1) Model:
a value of zero but displays a non-constant spread especially during 2006 to 2012.
With our current model ARIMA(0,0,1) we tried to do 1-step prediction for the period of
2001-to 2012 to validate our model. This is shown Fig 7. The predicted values can be
seen in the lighter color and it is an under prediction compared to the back drop true
data (true returns). It is obvious that these prediction are not good enough. Due to the
where the conditional mean is constant but the conditional variance is non-constant and
Conducting many GARCH models to fit out, we concluded that ARMA (1,0)-GARCH(1,2) was
the best as it had the lowest AIC value of -8.162937 ( see Tables 4 in the appendix).
ARMA (1,0)
An Autoregressive process Xt of order (lag) 1, AR (1), is defined as
GARCH (1,2)
A Generalized Autoregressive Conditional Heteroskedasticity process of Xt order (1,2),
GARCH(1,2) , is defined as
Xt = σt Zt
,where Zt ~ WN(0,σ2)
σ2 = ω + αX2t-1 + β1σ2t-1 + β2σ2t-1
ARMA (1,0)-GARCH(1,2)
A generalization of the GARCH(1,2) model, the ARMA(1,0)-GARCH(1,1) process, is defined
Xt = σt Zt
,where Zt ~ WN(0,σ2)
μt = φ Xt-1
σ2t = ω + α (Xt-1 - μt-1)2 + β1σ2t-1 + β2σ2t-1
Where
Xt is the log return
Zt is the shock or innovation
σ2t is the volatility
μt is the mean
and the coefficients and constant
α ≥ 0, β1 ≥ 0, β2 ≥ 0,
(α+ β1) < 1 and β2 < 1,
ω ≥ 0
Estimating the coefficients of our model yields the results in table 3. It is noticeable that
the mean μ is not significant. Hence, we can drop it and the modified model is
represented below.
The residuals and the standard residuals were also tested for significance using Ljung-Box
Test. The squared of the residuals and the standard residuals were also accounted for
The results shows that the residuals and the standard residuals were non-significant but
their squared values are. This is evident in the residual plots in fig 8. Looking at the ACF
of the squared standard residuals (lower right of fig 8), we can say the spikes out of the
confidence region are moderate. These are due to small autocorrelations that should not
be of practical importance and therefore can be ignored. Also, the plot of the standard
Plotting the volatility against time (fig 9), we find major turbulence around the period of
the economic recession (2008 -2009).
model indicates a better fit to the actual volatility as seen below. The actual plot is
shown by the black line while the predicted values are represented by the lighter color.
To apply the ARMA modeling technique to a time series data, the data should be
stationary. The logarithm of returns of the exchange rates are stationary, as seen in the
ACF plots, thus, the integration part of the ARIMA process is zero.
Volatility in the data was fairly homogeneous from 2000 to 2006 with 2008 to 2012
being inconsistent. This condition makes fitting ARMA to financial data quite difficult. This
was evident in the model orders - MA(1). The ARMA models obtained were not credible
Due to the changing variance observed in the series from 2007 to 2010, it was
imperative that we analyze the variance of the series using ARMA(0,1)-GARCH(1,2). This
Time series analysis and modeling is a very popular technique in mathematics and
statistics used to explore the hidden details in time dependent data. ARIMA (ARMA)
modeling is one of the basic time series methods employed in practice. In this study, we
examined the foreign exchange rate between the GBP and the USD. Due the nature of
the data, the logarithms of the returns of the rates are used in the analysis instead of
the actual data. This is due to the favorable statistical properties of the logarithm of the
As noted previously, ARIMA (ARMA) modeling fails to effectively capture the process being
the series and turn out to be of significant analysis due to the fact that it provides
bankers and traders information about the “value at risk” for a given portfolio.
APPENDIX
p,q 0 1 2 3 4
p,q 0 1 2 3 4
p,q 0 1 2 3 4
Table 3 Box-Test for estimated ARIMA(p,0,q) with p-value > 0.01 as True
Model AIC
GARCH(1,0) -8.029915
GARCH(2,0) -8.036744
GARCH(3,0) -8.038956
GARCH(1,1) -8.134582
GARCH(2,1) -8.134145
GARCH(1,2) -8.139603
GARCH(2,2) -8.139157
GARCH(3,2) -8.138769
ARMA(1,0)/GARCH(1,0) -8.04498
ARMA(1,0)/GARCH(2,0) -8.055509
ARMA(1,0)/GARCH(3,0) -8.053061
ARMA(1,0)/GARCH(1,1) -8.158708
ARMA(1,0)/GARCH(2,1) -8.158275
ARMA(1,0)/GARCH(1,2) -8.162937
ARMA(1,0)/GARCH(2,2) -8.16249
ARMA(1,0)/GARCH(3,2) -8.162107
R2 Q(15) 145.0879 0
R2 Q(20) 175.7589 0
• Chatfield, Chris (2005), “The Analysis of Time Series, An Introduction”, Sixth Edition