Switching Models: Introductory Econometrics For Finance' © Chris Brooks 2013 1
Switching Models: Introductory Econometrics For Finance' © Chris Brooks 2013 1
Switching models
• Switches can be one-off single changes or occur frequently back and forth.
20
15
10
0
1 39 77 115 153 191 229 267 305 343 381 419 457 495 533 571 609 647 685 723 761 799 837 875 913 951 989
-5
-10
We could generalise ARMA models (again) to allow the series, yt to be drawn from
two or more different generating processes at different times. e.g.
yt = 1 + 1 yt-1 + u1t before observation 500 and
yt = 2 + 2 yt-1 + u2t after observation 500
‘Introductory Econometrics for Finance’ © Chris Brooks 2013 3
How do we Decide where the Switch
or Switches take Place?
• If we have quarterly or monthly or even daily data, these may have patterns in.
• Seasonal effects in financial markets have been widely observed and are often
termed “calendar anomalies”.
• One way to cope with this is the inclusion of dummy variables- e.g. for
quarterly data, we could have 4 dummy variables:
• How many dummy variables do we need? We need one less than the
“seasonality” of the data. e.g. for quarterly series, consider what happens if we
use all 4 dummies
xt
Q3
Q2
Q1
‘Introductory Econometrics for Finance’ © Chris Brooks 2013 Q0 8
Seasonalities in South East Asian
Stock Returns
• where Dit is the ith dummy variable taking the value 1 for day t=i and
zero otherwise, and RWMt is the return on the world market index
• Now both risk and return are allowed to vary across the days of the
week.
• For example, suppose that m=2. The unobserved state variable, denoted zt,
evolves according to a Markov process with the following probabilities
m
• It must be true that P
j 1
ij 1 i
• Purchasing power parity (PPP) theory suggests that the law of one price
should always apply in the long run such that, after converting it into a
common currency, the cost of a representative basket of goods and services
is the same wherever it is purchased.
• Under some assumptions, one implication of PPP is that the real exchange
rate (that is, the exchange rate divided by a general price index) should be
stationary.
• However, a number of studies have failed to reject the unit root null
hypothesis in real exchange rates, indicating evidence against PPP theory.
• It is widely known that the power of unit root tests is low in the presence
of structural breaks as the ADF test finds it difficult to distinguish between
a stationary process subject to structural breaks and a unit root process.
• In order to investigate this possibility, Bergman and Hansson (2005)
estimate a Markov switching model with an AR(1) structure for the real
exchange rate, which allows for multiple switches between two regimes.
where yt is the real exchange rate, st (t = 1,2) are the two states and t ~
N(0, 2).
• The state variable, st, is assumed to follow a standard 2-regime Markov
process.
• Quarterly observations from 1973Q2 to 1997Q4 (99 data points) are used
on the real exchange rate (in units of foreign currency per US dollar) for
the UK, France, Germany, Switzerland, Canada and Japan.
• The model is estimated using the first 72 observations (1973Q2 - 1990Q4)
with the remainder retained for out of sample forecast evaluation.
• The authors use 100 times the log of the real exchange rate, and this is
normalised to take a value of one for 1973Q2 for all countries.
• The Markov switching model estimates are obtained using maximum
likelihood estimation.
• As the table shows, the model is able to separate the real exchange rates
into two distinct regimes for each series, with the intercept in regime one
(1) being positive for all countries except Japan (resulting from the
phenomenal strength of the yen over the sample period), corresponding to
a rise in the log of the number of units of the foreign currency per US
dollar, i.e. a depreciation of the domestic currency against the dollar.
2, the intercept in regime 2, is negative for all countries, corresponding
to a domestic currency appreciation against the dollar.
• The probabilities of remaining within the same regime during the
following period (p11 and p22) are fairly low for the UK, France, Germany
and Switzerland, indicating fairly frequent switches from one regime to
another for those countries' currencies.
• Interestingly, after allowing for the switching intercepts across the
regimes, the AR(1) coefficient, , is a considerable distance below unity,
indicating that these real exchange rates are stationary.
• They find that for none of the cases can the unit root null hypothesis be
rejected, even though clearly this null is wrong as the simulated data are
stationary.
• Finally, the authors employ their Markov switching AR(1) model for
forecasting the remainder of the exchange rates in the sample in
comparison with the predictions produced by a random walk and by a
Markov switching model with a random walk.
• They find that for all six series, and for forecast horizons up to 4 steps
(quarters) ahead, their Markov switching AR model produces predictions
with the lowest mean squared errors; these improvements over the pure
random walk are statistically significant.
• The gilt-equity yield ratio (GEYR) is defined as the ratio of the income
yield on long-term government bonds to the dividend yield on equities.
• It has been suggested that the current value of the GEYR might be a
useful tool for investment managers or market analysts
• The GEYR is assumed to have a long-run equilibrium level, deviations
from which are taken to signal that equity prices are at an unsustainable
level.
• Thus, in its crudest form, an equity trading rule based on the GEYR
would say, “if the GEYR is low, buy equities; if the GEYR is high, sell
equities.”
• Brooks and Persand (2001) employ monthly stock index dividend yields
and income yields on government bonds covering the period January
1975 until August 1997 (272 observations) for three countries - the UK,
the US, and Germany.
0.5
1.5
2.5
3.5
0
1
2
3
No
v-
No 75
v-
No 76
v-
No 77
v-
No 78
v-
No 79
v-
No 80
v-
No 81
v-
No 82
v-
No 83
v-
No 84
v-
No 85
v-
US GEYR No 86
Date
v-
0.5
1.5
2.5
3.5
4.5
0
1
2
3
4
No 87
v-
No 88
v-
Nov-75 No 89
v-
Nov-76
The Value of UK GEYR 1975-97
No 90
v-
Nov-77 No 91
v-
Nov-78 No 92
v-
Nov-79 No 93
v-
Nov-80 No 94
v-
Nov-81 No 95
v-
Nov-82 96
Nov-83
Nov-84
Nov-85 GEYR
Date
0
1
2
3
4
5
6
Nov-86 No
v-
Nov-87 No 75
v-
Nov-88 No 76
v-
Nov-90 No 78
v-
Nov-91 No 79
v-
Nov-92 No 80
v-
Nov-93 No 81
v-
No 82
Nov-94 v-
No 83
Nov-95 v-
No 84
Nov-96 v-
Time Series Plots of the GEYR
No 85
v-
No 86
Date
v-
No 87
v-
No 88
v-
No 89
v-
No 90
v-
The Value of German GEYR 1975-97
No 91
v-
No 92
v-
No 93
v-
No 94
v-
No 95
24
v-
96
The Distribution of US GEYR
0.45
0.40
0.35
0.30
0.25
0.20
0.15
0.10
0.05
0.00
-4 -2 0 2 4
• It is clear that the regime switching model has split the data into two distinct
samples - one with a high mean (of 2.43, 2.46 and 3.03 for the UK, US and
Germany, respectively) and one with a lower mean (of 2.07, 2.12, and 2.16).
• Also apparent is the fact that the UK and German GEYR are more variable at
times when it is in the high mean regime, evidenced by their higher variance
(in fact, it is around four and 20 times higher than for the low GEYR state,
respectively).
• The number of observations for which the probability that the GEYR is in the
high mean state exceeds 0.5 (and thus when the GEYR is actually deemed to
be in this state) is 102 for the UK (37.5% of the total), while the figures for the
US are 100 (36.8%) and for Germany 200 (73.5%).
• Thus, overall, the GEYR is more likely to be in the low mean regime for the
UK and US, while it is likely to be high in Germany.
• The table also shows the probability of staying in state 1 given that the GEYR
was in state 1 in the immediately preceding month, and the probability of
staying in state 2 given that the GEYR was in state 2 previously.
• The high values of these parameters indicates that the regimes are highly stable
with less than a 10% chance of moving from a low GEYR to a high GEYR
regime and vice versa for all three series.
AIC ( p1 , p 2 ) T1 ln ˆ 12 T2 ln ˆ 22 2( p1 1) 2( p 2 1)
where T1 and T2 are the number of observations in regimes 1 and 2 respectively, p1 and
p2 are the lag lengths, and and are2 the residual variances.
• Estimation of the autoregressive coefficientsˆ 1 ˆ 2can then be achieved using nonlinear least
2
squares (NLS).
M odel F o r R e g im e N um ber of
o b s e r v a t io n s
Eˆ t 0 . 0222 0 . 9962 E t1
E t-1 < 5 .8 3 0 6 344
( 0 . 0458 ) ( 0 . 0079 )
Eˆ t 0 . 3486 0 . 4394 E t 1 0 . 3057 E t 2 0 . 1951 E t 3 E t-1 5 . 8 3 0 6 103
( 0 . 2391 ) ( 0 . 0889 ) ( 0 . 1098 ) ( 0 . 0866 )
S o u r c e : C h a p p e ll, P a d m o r e ,a n d M is tr y ( 1 9 9 6 ) . R e p r in te d w ith p e r m is s io n o f J o h n W ile y a n d S o n s .
Panel A: Mean Squared Steps Ahead
Forecast Error
1 2 3 5 10
Random Walk 1.84E-07 3.49E-07 4.33E-07 8.03E-07 1.83E-06
AR(2) 3.96E-07 1.19E-06 2.33E-06 6.15E-06 2.19E-05
One threshold SETAR 1.80E-07 2.96E-07 3.63E-07 5.41E-07 5.34E-07
Two threshold SETAR 1.80E-07 2.96E-07 3.63E-07 5.74E-07 5.61E-07