applied to exchange rate regime classification -...

53
A Unified Structural Change Toolbox Applied to Exchange Rate Regime Classification Achim Zeileis Kurt Hornik Ajay Shah Ila Patnaik http://statmath.wu-wien.ac.at/ zeileis/

Upload: others

Post on 23-May-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

A Unified Structural Change ToolboxApplied to

Exchange Rate Regime Classification

Achim Zeileis Kurt Hornik Ajay Shah Ila Patnaik

http://statmath.wu-wien.ac.at/∼zeileis/

Page 2: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Overview

• Motivation– Model stability– Exchange rate regimes– What is the new Chinese exchange rate regime?– Exchange rate regression

• Structural change tools– Model frame– Testing– Monitoring– Dating

• Application: Indian exchange rate regimes• Software• Summary

Page 3: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Model stability

Consider n ordered observations (yi, xi) for i = 1, . . . , n in aregression setup which can be described by a regression modelwith parameter vector θ.

Ordering is typically with respect to time in time-series regres-sions, but could also be with respect to income, age, etc. incross-section regressions.

Testing: Given that a model with parameter θ has been esti-mated for these n observations, the question is whether this isappropriate or: Are the parameters stable or did they changethrough the sample period i = 1, . . . , n?

Page 4: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Model stability

Monitoring: Given that a stable model could be established forthese n observations, the question is whether it remains stable inthe future or: Are incoming observations for i > n still consistentwith the established model or do the parameters change?

Dating: Given that there is evidence for a structural change ini = 1, . . . , n, it might be possible that stable regression relation-ships can be found on subsets of the data. How many segmentsare in the data? Where are the breakpoints?

Page 5: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Exchange rate regimes

The foreign exchange (FX) rate regime of a country determineshow it manages its currency wrt foreign currencies. It can be

• floating: currency is allowed to fluctuate based on marketforces,

• pegged: currency has limited flexibility when compared witha basket of currencies or a single currency,

• fixed: direct convertibility to another currency.

Problem: The de facto and de jure FX regime in operation in acountry often differ.

⇒ Interest in methods for data-driven classification of FXregimes (see e.g., Reinhart and Rogoff, 2004).

Page 6: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

The Chinese exchange rate regime

China gave up on a fixed exchange rate to the US dollar (USD)on 2005-07-21. The People’s Bank of China announced that theChinese yuan (CNY) would no longer be pegged to the USD butto a basket of currencies with greater flexibility.

This generated a lot of interest, both in the media and the sci-entific literature. Initially, little support could be found for theseannouncements (Frankel and Wei 2007).

Shah, Zeileis, Patnaik (2005) investigate the Chinese de facto FXregime based on a linear regression model for exchange rates(also called Frankel-Wei regression) using structural changemethods.

Page 7: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Exchange rate regression

The popular workhorse for de facto FX regime classification is alinear regression model suggested by Haldane and Hall (1991)and Frankel and Wei (1994). It is based on log-returns of cross-currency exchange rates (with respect to some floating referencecurrency).

Fitting the model for CNY with regressors USD, JPY, EUR, GBP,KRW and MYR (all wrt CHF) based on data up to 2005-10-31(n = 68) shows that a plain USD peg is still in operation.

Page 8: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Exchange rate regression

Time

−0.

50.

00.

5

2006 2007

EUR

−2

−1

01

2

KRW

−1.

5−

0.5

0.5

1.0

1.5 JPY

−1

01

2

MYR

−1

01

2

USD

−0.

50.

00.

51.

0

GBP

−1

01

2CNY

Page 9: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Exchange rate regression

Ordinary least squares (OLS) estimation gives:

CNYi = −0.005 + ui

+0.968USDi + 0.002JPYi − 0.019EURi

−0.008GBPi + 0.009KRWi + 0.027MYRi.

Only the USD coefficient is significantly different from 0 (but notfrom 1).

The error standard deviation is tiny with σ = 0.028 leading toR2 = 0.998.

Page 10: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Exchange rate regression

Questions:

1. Is this model for the period 2005-07-26 to 2005-10-31 stableor is there evidence that China kept changing its FX regimeafter 2005-07-26? (testing)

2. Depending on the answer to the first question:

• Does the CNY stay pegged to the USD in the future (start-ing form November 2005? (monitoring)

• When and how did the Chinese FX regime change? (dat-ing)

Page 11: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Exchange rate regression

In practice: Rolling regressions are often used to answer thesequestions by tracking the evolution of the FX regime in operation.

More formally: Structural change techniques can be adapted tothe FX regression to estimate and test the stability of FX regimes.

Problem: Unlike many other linear regression models, the sta-bility of the error variance (fluctuation band) is of interest as well.

Solution: Employ an (approximately) normal regression esti-mated by ML where the variance is a full model parameter.

Page 12: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Model frame

Consider a regression model with k-dimensional parameter θ foryi |xi. To fit the models to observations i = 1, . . . , n an objec-tive function Ψ(y, x, θ) is used such that

θ = argminθ

n∑i=1

Ψ(yi, xi, θ).

This can also be defined implicitly based on the correspondingscore function (or estimating function) ψ(y, x, θ)

ψ(y, x, θ) =∂Ψ(y, x, θ)

∂θvia

n∑i=1

ψ(yi, xi, θ) = 0.

Page 13: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Model frame

This class of M-estimators includes OLS and maximum like-lihood (ML) estimation as well as IV, Quasi-ML, robust M-estimation and is closely related to GMM. (See Bera & Bilias,2002, for a unifying view.)

Under parameter stability and some mild regularity conditions, acentral limit theorem holds

√n(θ − θ0)

d−→ N (0, V (θ0)),

where the covariance matrix is

V (θ0) = {A(θ0)}−1B(θ0){A(θ0)}−1

and A and B are the expectation of the derivative of ψ and itsvariance respectively.

Page 14: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Model frame

For the standard linear regression model

yi = x>i β + ui

with coefficients β and error variance σ2 one can either treat σ2

as a nuisance parameter θ = β or include it as θ = (β, σ2).

In the former case, the estimating functions are ψ = ψβ

ψβ(y, x, β) = (y − x>β)x

and in the latter case, they have an additional component

ψσ2(y, x, β, σ2) = (y − x>β)2 − σ2.

and ψ = (ψβ, ψσ2). This is used for FX regressions.

Page 15: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

To assess the stability of the fitted model with θ, we want to testthe null hypothesis

H0 : θi = θ0 (i = 1, . . . , n)

against the alternative that θi varies over “time” i.

Various patterns of deviation from H0 are conceivable: sin-gle/multiple break(s), random walks, etc.

To test this null hypothesis, the basic idea is to assess wetherthe empirical estimating functions ψi = ψ(yi, xi, θ) deviate sys-tematically from their theoretical zero mean.

Page 16: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

• empirical fluctuation processes reflect fluctuation in– estimating functions– F statistics– parameter estimates– recursive residuals

• theoretical limiting process is known• choose boundaries which are crossed by the limiting process

(or some functional of it) only with a known probability α.• if the empirical fluctuation process crosses the theoretical

boundaries the fluctuation is improbably large ⇒ reject thenull hypothesis.

Page 17: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

To capture systematic deviations the empirical fluctuationprocess of scaled cumulative sums of empirical estimating func-tions is computed:

efp(t) = B−1/2 n−1/2bntc∑i=1

ψi (0 ≤ t ≤ 1).

Under H0 the following functional central limit theorem (FCLT)holds:

efp(·) d−→ W 0(·),

where W 0 denotes a standard k-dimensional Brownian bridge.

Page 18: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

Time

−2

−1

01

2

Aug Sep Oct Nov

EUR

−2

−1

01

2

(Variance)

−2

−1

01

2

JPY

−2

−1

01

2

MYR

−2

−1

01

2

USD

−2

−1

01

2

KRW

−2

−1

01

2(Intercept)

Aug Sep Oct Nov

−2

−1

01

2

GBP

Page 19: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

In empirical samples, efp(·) is a k × n array. For significancetesting, aggregate it to a scalar test statistic by a functional λ(·)

λ

(efpj

(i

n

)),

where j = 1, . . . , k and i = 1, . . . n.

Typically, λ(·) can be split up into

• λcomp(·) aggregating over components j (e.g., absolutemaximum, Euclidian norm),

• λtime(·) aggregating over time i (e.g., max, mean, range).

The limiting distribution is given by λ(W 0) and can easily besimulated (or some closed form results are also available).

Page 20: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

The generalized fluctuation test framework ...

“... includes formal significance tests but its philosophy is basi-cally that of data analysis as expounded by Tukey. Essentially,the techniques are designed to bring out departures from con-stancy in a graphic way instead of parametrizing particular typesof departure in advance and then developing formal significancetests intended to have high power against these particular alter-natives.” (Brown, Durbin, Evans, 1975)

Page 21: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

Aggregating over time first, yields k independent statistics, eachassociated with one parameter ⇒ component of change can beidentified.

Aggregating over components first, yields a single process thatcan be inspected for instabilities over time ⇒ timing of changecan be identified.

The only functional that allows for both interpretations is the dou-ble maximum functional

maxj=1,...,k

maxi=1,...,n

|efpj(i/n)|

which is 1.086 for the Chinese FX regression (p = 0.813).

Page 22: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

This class of generalized M-fluctuation tests is derived in Zeileis& Hornik (2007). It contains various well-known tests from thestatistics and econometrics literature as special cases (Zeileis2005).

OLS-based CUSUM test (Ploberger & Kramer 1992, 1996)If the regression model contains an intercept the first componentof the estimating functions corresponds to the OLS residuals

ψ(y, x, θ)1 = (y − x>β)

The process based on OLS residuals can capture changes in theconditional mean.

Page 23: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

Nyblom-Hansen test (Nyblom 1989, Hansen 1992)The test was designed for a random-walk alternative and em-ploys a Cramer-von Mises functional.

It aggregates efp(·) over the components first, using the squaredEuclidian norm, and then over time, using the mean.

1

n

n∑i=1

∣∣∣∣∣∣∣∣∣∣efp

(i

n

)∣∣∣∣∣∣∣∣∣∣2

2.

For the Chinese FX regression this is 1.052 (p = 0.491).

Page 24: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

0.0

0.5

1.0

1.5

2.0

2.5

Time

Em

piric

al fl

uctu

atio

n pr

oces

s

Aug Sep Oct Nov

Nyblom−Hansen test

Page 25: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

supLM test (Andrews 1993)The test was designed for a single shift alternative (with unknowntiming) and employs the supremum of LM statistics for this al-ternative.

It aggregates efp(·) over the components first, using a weightedsquared Euclidian norm, and then over time, using the maximum(over a compact interval Π ⊂ [0,1]).

supt∈Π

LM(t) = supt∈Π

||efp(t)||22t (1− t)

.

For the Chinese FX regression this is 10.376 (p = 0.939).

Page 26: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

510

1520

25

Time

Em

piric

al fl

uctu

atio

n pr

oces

s

Aug 05 Aug 25 Sep 14 Oct 04

supLM test

Page 27: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

Similarly, aveLM and expLM statistics can be computed whichhave some optimality properties (Andrews & Ploberger 1994).

The same type of processes can be derived based on Wald andLR statistics. These are not special cases of the M-fluctuationframework because they require re-estimation of the parame-ters on sub-samples. However, the asymptotic behaviour is thesame.

Similarly, fluctuation processes can be based on recursive orrolling parameter estimates (Ploberger, Kramer, Kontrus 1989;Chu, Hornik, Kuan 1995) which are also not special cases buthave the same asymptotic properties.

Page 28: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

Furthermore, fluctuation processes can be computed from recur-sive residuals (Brown, Durbin, Evans 1975; Bauer & Hackl 1978;Kramer, Ploberger, Alt 1988) which are similar in spirit, but haveslightly different asymptotic properties.

In practice, this multitude of processes and functionals is often acurse rather than a blessing. Which combination of process andfunctional should be used?

Page 29: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

Which process?

The M-fluctuation tests only depend on one fitted model and arehence very easy to compute and interpret ⇒ ideal for diagnosticchecking, especially with no particular alternative in mind.

If a single shift alternative is plausible, it might be worth the effortto compute a sequence of Wald (or LR) statistics.

Recursive and rolling approaches are most plausible in a mon-itoring setup where a model should be simultaneously updatedand tested.

Page 30: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Testing

Which functional?

For explorative purposes, double maximum tests are most attrac-tive and allow identification of component and timing of changes.

For random walk or single shift alternatives respectively (that af-fect all parameters), the Nyblom-Hansen or supLM functionalsare most suitable.

For multiple shift alternatives, statistics based on moving sums(increments of efp(·)) perform very well.

Page 31: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Monitoring

Fluctuation tests can be applied sequentially to monitor regres-sion models (Chu, Stinchcombe, White 1996; Leisch, Hornik,Kuan 2000; Zeileis et al. 2005).

Basic assumption: The model parameters are stable θi = θ0in the history period i = 1, . . . , n (0 ≤ t ≤ 1).

To assess whether the model remains stable we want to test thenull hypothesis

H0 : θi = θ0 (i > n)

against the alternative that θi changes at some time in the future.The observations i > n correspond to t > 1.

Page 32: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Monitoring

In the monitoring period 1 ≤ t ≤ T :

• use the same empirical fluctuation processes,• update efp(t),• re-compute λ(efp(t)).

For this sequential procedure not only a single critical value isneeded, but a full boundary function b(t) that satisfies

1− α = P(λ(W 0(t)) ≤ b(t) | t ∈ [1, T ])

Various boundary functions (or weighting functions) are conceiv-able (see Horvath et al. 2004; Zeileis et al. 2005) that can directpower to early or late changes or try to spread the power evenly.

Page 33: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Monitoring

Here, we use again the double maximum functional and employa simple boundary that spreads the power rather evenly:

b(t) = c · t,

where c controls the significance level.

The fluctuation process used is the same M-fluctuation processused for the historical samples.

Page 34: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Monitoring

Time

−20

−10

010

2030

Aug Oct Dec Feb Apr Jun

EUR

−20

−10

010

2030

(Variance)

−20

−10

010

2030

JPY

−20

−10

010

2030

MYR

−20

−10

010

2030

USD

−20

−10

010

2030

KRW

−20

−10

010

2030

(Intercept)

Aug Oct Dec Feb Apr Jun

−20

−10

010

2030

GBP

Page 35: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Monitoring

This signals a clear increase in the error variance. Further-more, the USD coefficient decreases while the MYR coefficientincreases.

The change is picked up by the monitoring procedure on 2006-03-15.

The other regression coefficients did not change significantly,signalling that they are not part of the basket peg.

Using data from the extended period up to 2007-06-07, we fit asegmented model to determine where and how the model pa-rameters changed.

Page 36: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Dating

Segmented regression model: A stable model with parametervector θj holds for the observations in i = ij−1 +1, . . . , ij. Thesegment index is j = 1, . . . ,m+ 1.

The set of m breakpoints Im,n = {i1, . . . , im} is called m-partition. Convention: i0 = 0 und im+1 = n.

The value of the segmented objective function Ψ is

PSI (i1, . . . , im) =m+1∑j=1

psi(ij−1 + 1, ij),

psi(ij−1 + 1, ij) =ij∑

i=ij−1+1

Ψ(yi, xi, θ(j)).

Page 37: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Dating

where psi(ij−1+1, ij) is the minimal value of the objective func-tion for the model fitted on the jth segment.

Dating tries to find

(ı1, . . . , ım) = argmin(i1,...,im)

PSI (i1, . . . , im)

over all partitions (i1, . . . , im) with ij − ij−1 + 1 ≥ bnhc ≥ k.

Bellman principle of optimality:

PSI (Im,n) = minmnh≤i≤n−nh

[PSI (Im−1,i) + psi(i+ 1, n)]

Page 38: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Dating

It is long-known that this problem can be solved by a dynamicprogramming algorithm of order O(n2) that essentially relies ona triangular matrix of psi(i, j) for all 1 ≤ i < j ≤ n.

The algorithm has been re-discovered several times in the liter-ature. A good overview is given by Bai & Perron (2003) for OLS-based dating, i.e., using the residual sum of squares as objectivefunction

ΨRSS(β) =n∑i=1

(yi − x>i β).

Page 39: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Dating

For the FX regression, the (negative) log-likelihood from a normalmodel also captures changes in the variance:

ΨNLL(β, σ) = −n∑i=1

log

σ−1φ

yi − x>i β

σ

.For a given number of breaks m, the optimal breaks be found.To determine the number of breaks, some model selection has tobe done, e.g., via information criteria or sequential tests. Here,we use the LWZ criterion (modified BIC):

IC (m) = 2 · NLL(Im,n) + pen · ((m+ 1)k+m) ,

penBIC = log(n),

penLWZ = 0.299 · log(n)2.1.

Page 40: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Dating

0 2 4 6 8 10

−12

00−

1000

−80

0−

600

−40

0

Number of breakpoints

LWZneg. Log−Lik.

−80

0−

750

−70

0−

650

Page 41: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Dating

The estimated breakpoint (maximizing the segmented likelihood)is 2006-03-14.

The corresponding parameter estimates are

start/end β0 βUSD βJPY βEUR βGBP βKRW βMYR σ2005-07-26 -0.004 0.923 0.003 -0.012 0.005 0.006 0.072 0.0272006-03-14 (0.002) (0.025) (0.005) (0.016) (0.008) (0.006) (0.024)2006-03-15 -0.015 0.921 -0.004 -0.023 -0.020 0.042 0.042 0.0762007-06-07 (0.004) (0.020) (0.012) (0.030) (0.017) (0.015) (0.021)

and correspond to a

• very tight USD peg (already with some weight on MYR),• slightly relaxed USD peg with some appreciation and weight

on KRW and MYR.

Page 42: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Application: Indian FX regimes

India also has an expanding economy with a currency receivingincreased interest over the last years. We track the evolution ofthe INR FX regime since trading in the INR began.

Using weekly returns from 1993-04-09 through to 2007-06-08(yielding n = 740 observations), we fit a single FX regressionusing the same basket as above.

As we would expect multiple changes, we assess its stabilitywith the Nyblom-Hansen test, leading to a test statistic of 2.805

(p < 0.005). Alternatively, a MOSUM test could be used. Thedouble maximum test has less power, resulting in a test statisticof 1.764 (p = 0.031).

Page 43: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Application: Indian FX regimes

Time

−2

−1

01

2

1994 1996 1998 2000 2002 2004 2006

DUR

−2

−1

01

2

(Variance)

−2

−1

01

2

JPY

−2

−1

01

2

MYR

−2

−1

01

2

USD

−2

−1

01

2

KRW

−2

−1

01

2(Intercept)

1994 1996 1998 2000 2002 2004 2006

−2

−1

01

2

GBP

Page 44: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Application: Indian FX regimes

01

23

45

Time

Em

piric

al fl

uctu

atio

n pr

oces

s

1995 2000 2005

Nyblom−Hansen test

Page 45: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Application: Indian FX regimes

Dating finds the following FX regimes:

start/end β0 βUSD βJPY βDUR βGBP βKRW βMYR σ1993-04-09 -0.006 1.076 0.020 0.010 0.017 -0.082 -0.022 0.1561995-03-03 (0.017) (0.081) (0.014) (0.032) (0.025) (0.073) (0.021)1995-03-10 0.154 0.910 0.075 -0.019 0.043 0.070 -0.052 0.9011998-08-21 (0.069) (0.074) (0.049) (0.152) (0.080) (0.024) (0.029)1998-08-28 0.019 0.966 0.003 0.093 -0.004 0.022 0.012 0.2742004-03-19 (0.016) (0.035) (0.011) (0.034) (0.021) (0.017) (0.029)2004-03-26 -0.029 0.412 0.160 0.304 0.082 0.150 0.268 0.5442007-06-08 (0.045) (0.131) (0.049) (0.126) (0.062) (0.062) (0.135)

1. tight USD peg,2. flexible USD peg,3. tight USD peg,4. flexible basket peg.

Page 46: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Application: Indian FX regimes

●●

0 2 4 6 8 10

1300

1400

1500

1600

1700

1800

1900

Number of breakpoints

LWZneg. Log−Lik.

200

300

400

500

600

Page 47: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Software

All methods are implemented in the R system for statistical com-puting and graphics

http://www.R-project.org/

in the contributed packages strucchange available from CRANand fxregime which is under development at R-Forge.

http://CRAN.R-project.org/

http://R-Forge.R-project.org/

Page 48: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Summary

• Stability of M-type estimator can be assessed by partial sumsof the empirical estimating functions.

• FCLT is the basis for inference.• Test statistics aggregate the empirical fluctuation process to

a scalar statistic.• Significance tests can be enhanced by graphics that bring

out timing and/or component of the structural change.• Framework includes representatives from all important

classes of structural change tests based on F statistics, MLscores, OLS residuals.

• The same processes can be used for sequential monitoring.

Page 49: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

Summary

• Based on the corresponding objective function the model canalso be optimally segmented.

• Software is freely available, works out of the box for linearregression, can be adapted to more general models.

• Structural change tools can be adapted to exchange rate re-gression by using an approximately normal model.

• Analysis of de facto exchange rate regimes is complementedby methods for testing, monitoring and dating.

• High-level software for analyzing FX regressions is freelyavailable.

Page 50: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

References

Andrews DWK (1993). “Tests for Parameter Instability and Structural Change With UnknownChange Point.” Econometrica, 61, 821–856.

Andrews DWK, Ploberger W (1994). “Optimal Tests When a Nuisance Parameter is PresentOnly Under the Alternative.” Econometrica, 62, 1383–1414.

Bai J, Perron P (2003). “Computation and Analysis of Multiple Structural Change Models.”Journal of Applied Econometrics, 18, 1–22.

Bauer P, Hackl P (1978). “The Use of MOSUMS for Quality Control.” Technometrics, 20,431–436.

Bera AK, Bilias Y (2002). “The MM, ME, ML, EL, EF and GMM Approaches to Estimation: ASynthesis.” Journal of Econometrics, 107, 51–86.

Brown RL, Durbin J, Evans JM (1975). “Techniques for Testing the Constancy of RegressionRelationships over Time.” Journal of the Royal Statistical Society B, 37, 149–163.

Chu CSJ, Hornik K, Kuan CM (1995). “The Moving-Estimates Test for Parameter Stability.”Econometric Theory, 11, 669–720.

Chu CSJ, Stinchcombe M, White H (1996). “Monitoring Structural Change.” Econometrica,64(5), 1045–1065.

Page 51: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

References

Frankel JA, Wei SJ (1994). “Yen Bloc or Dollar Bloc? Exchange Rate Policies of the EastAsian Countries,” in Ito T, Krueger A (eds.), “Macroeconomic Linkage: Savings, ExchangeRates and Capital Flows,” University of Chicago Press.

Frankel JA, Wei SJ (2007). “Assessing China’s Exchange Rate Regime” NBER Working Pa-per 13100, National Bureau of Economic Research. URL http://www.nber.org/papers/w13100.pdf.

Haldane AG, Hall SG (1991). “Sterling’s Relationship with the Dollar and the Deutschemark:1976–89.” The Economic Journal, 101, 436–443.

Hansen BE (1992). “Testing for Parameter Instability in Linear Models.” Journal of PolicyModeling, 14, 517–533.

Horvath L, Huskova M, Kokoszka P, Steinebach J (2004). “Monitoring Changes in LinearModels.” Journal of Statistical Planning and Inference, 126, 225–251.

Kramer W, Ploberger W, Alt R (1988). “Testing for Structural Change in Dynamic Models.”Econometrica, 56(6), 1355–1369.

Leisch F, Hornik K, Kuan CM (2000). “Monitoring Structural Changes With the GeneralizedFluctuation Test.” Econometric Theory, 16, 835–854.

Page 52: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

References

Lutkepohl H, Terasvirta T, Wolters J (1999). “Investigating Stability and Linearity of a GermanM1 Money Demand Function.” Journal of Applied Econometrics, 14, 511–525.

Nyblom J (1989). “Testing for the Constancy of Parameters Over Time.” Journal of theAmerican Statistical Association, 84, 223–230.

Ploberger W, Kramer W (1992). “The CUSUM Test With OLS Residuals.” Econometrica,60(2), 271–285.

Ploberger W, Kramer W (1996). “A Trend-Resistant Test for Structural Change Based onOLS Residuals.” Journal of Econometrics, 70, 175–185.

Ploberger W, Kramer W, Kontrus K (1989). “A New Test for Structural Stability in the LinearRegression Model.” Journal of Econometrics, 40, 307–318.

R Development Core Team (2007). “R: A Language and Environment for Statistical Comput-ing”. R Foundation for Statistical Computing, Vienna, Austria. ISBN 3-900051-07-0.

Reinhart CM, Rogoff KS (2004). “The Modern History of Exchange Rate Arrangements: AReinterpretation.” The Quarterly Journal of Economics, 119, 1–48.

Page 53: Applied to Exchange Rate Regime Classification - uibk.ac.ateeecon.uibk.ac.at/~zeileis/papers/UIUC-2007.pdf · The popular workhorse for de facto FX regime classification is a linear

References

Shah A, Zeileis A, Patnaik I (2005). “What is the New Chinese Currency Regime?” Report 23,Department of Statistics and Mathematics, Wirtschaftsuniversitat Wien, Research ReportSeries. URL http://epub.wu-wien.ac.at/.

Zeileis A (2005). “A Unified Approach to Structural Change Tests Based on ML Scores, FStatistics, and OLS Residuals.” Econometric Reviews, 24, 445–466.

Zeileis A, Hornik K (2007). “Generalized M-Fluctuation Tests for Parameter Instability.” Sta-tistica Neerlandica, Forthcoming.

Zeileis A, Leisch F, Hornik K, Kleiber C (2002). “strucchange: An R Package for Testingfor Structural Change in Linear Regression Models.” Journal of Statistical Software, 7, 1–38.URL http://www.jstatsoft.org/v07/i02/.

Zeileis A, Leisch F, Kleiber C, Hornik K (2005). “Monitoring Structural Change in DynamicEconometric Models.” Journal of Applied Econometrics, 20, 99–121.

Zeileis A, Shah A, Patnaik I (2007). “fxregime: Exchange Rate Regime Classification”. Rpackage 0.1-0. URL http://R-Forge.R-project.org/.

Zeileis A, Shah A, Patnaik I (2007). “Exchange Rate Regime Analysis Using StructuralChange Methods” Report 56, Department of Statistics and Mathematics, Wirtschaftsuniver-sitat Wien, Research Report Series. URL http://epub.wu-wien.ac.at/.