Wavelet-Smoothed Empirical Copula
Estimators
Pedro A. Morettin*
Clélia M. C. Toloi**
Chang Chiann***
José C. S. de Miranda****
Abstract
We introduce a copula estimator based on wavelet smoothing of empirical copulas for the
case of time series data. We then study the properties of this estimator via simulations and
compare its performance with other estimators. Applications to real data are also given.
Keywords: copula; empirical copula; time series; wavelets; wavelet estimators.
JEL code: C14.
Resumo
O objetivo deste artigo é introduzir um estimador de cópulas baseado na suavização de
cópulas empı́ricas, para o caso de séries temporais. As propriedades desse estimador são
avaliadas por meio de simulações e seu desempenho é comparado com outros estimadores.
Também são feitas aplicações a dados reais.
Submitted in May 2010. Accepted in July 2010. The article was double blind refereed and
evaluated by the editor. Supervising editor: Ricardo P. C. Leal. The authors are grateful to a referee for
useful comments and acknowledge the support of FAPESP grant 08/51097-6. We also thank Albert M.
Fisher, who read the manuscript and provided several suggestions to improve it.
*University of São Paulo, São Paulo, Brazil. E-mail:
[email protected]
**University of São Paulo, São Paulo, Brazil. E-mail:
[email protected]
***University of São Paulo, São Paulo, Brazil. E-mail:
[email protected]
****University of São Paulo, São Paulo, Brazil. E-mail:
[email protected]
Revista Brasileira de Finanças 2010 Vol. 8, No. 3, pp. 263–281
ISSN 1679-0731, ISSN online 1984-5146
c 2010 Sociedade Brasileira de Finanças
Morettin, P., Toloi, C., Chiann, C., Miranda, J.
1.
Introduction
Copulas provide a convenient tool for describing the dependence between variables. Copula techniques have been developed basically for the independent, identically distributed (i.i.d.) case, which would prevent, at least theoretically, their
applications to dependent data, eg time series data, appearing in economics, finance and other areas. The presence of serial correlation and time-varying heteroscedasticity in financial time series, for example, calls for the development of
new methodologies for analyzing this kind of data, especially in the field of copula
estimation.
For i.i.d. samples of bivariate or multivariate distributions, parametric and
nonparametric methods of analysis are well known, with several such approaches
comonly used for copula estimation. If the copula is assumed to belong to some
parametric family of copulas, consistent and asymptotically normal estimators of
the parameters can be obtained by the method of maximum likelihood (ML); see
Genest and Rivest (1993) and Shih and Louis (1995).
A two-step procedure called inference function for margins can be used: first
the parameters of the marginals are estimated and then the parameters of the (parametric) copula are estimated, both via ML. See for example Joe and Xu (1996).
These estimators are consistent and asymptotically normal and also almost as efficient as the full MLE.
Another approach is to use the so-called empirical copulas, introduced by Deheuvels (1979, 1981a,b). These are highly discontinuous, so some form of smoothing is necessary to obtain better estimates. One approach, of Fermanian et al.
(2004), uses kernel estimates based on empirical copulas.
Concerning the estimation of copulas for time series, to our knowledge the only
works are those of Fermanian and Scaillet (2003), using nonparametric techniques
with kernels, and of Morettin et al. (2008), using wavelets. A related paper by
Chen and Fan (2006) focuses on stationary Markov processes of order one, while
assuming a parametric form for the copula function. For the case of independent
samples, see Genest et al. (2009) and Autin et al. (2008).
In the present paper we propose wavelet estimators based on the empirical
copula.
The plan of the article is as follows. In Section 2 we set down the necessary
background on copulas and wavelets. In Section 3 we describe the estimation of
copulas for the time series setting, first discussing the fitting of volatility models before estimating copulas and then introducing our nonparametric estimators.
In Section 4 we perform some simulation studies and in Section 5 we apply the
proposed techniques for some sets of real data. In Section 6 we onclude with
additional remarks.
264
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
Wavelet-Smoothed Empirical Copula Estimators
2.
Background
In this section we present some basic notions on copulas and wavelets.
2.1 Copulas
For ease of notation we restrict our attention to the bivariate case; the extensions to the n-dimensional case are straightforward.
A copula can be viewed as a function C defined on I 2 = [0, 1]2 with values in
I, satisfying, for 0 ≤ x ≤ 1 and x1 ≤ x2 , y1 ≤ y2 , (x1 , y1 ), (x2 , y2 ) ∈ I 2 , the
conditions
C(x, 1) = C(1, x) = x,
C(x, 0) = C(0, x) = 0,
(1)
C(x2 , y2 ) − C(x2 , y1 ) − C(x1 , y2 ) + C(x1 , y1 ) ≥ 0.
(2)
Property (1) means uniformity of the margins, while (2), the n-increasing
property (with n = 2) means that P (x1 ≤ X ≤ x2 , y1 ≤ Y ≤ y2 ) ≥ 0 for
(X, Y ) with distribution function (d.f.) C.
See Nelsen (2006) for a general definition and further details on copulas. The
following important theorem links the definition of copula with a d.f. and its
marginal distributions; a proof can be found in Sklar (1959).
Theorem 1 (i) Let C be a copula and F1 , F2 univariate d.f.’s. Then
F (x, y) = C(F1 (x), F2 (y)),
(x, y) ∈ R2
(3)
defines a d.f. F with marginals F1 , F2 .
(ii) Conversely, for a two-dimensional d.f. F with marginals F1 , F2 , there
exists a copula C satisfying (3); this is unique if F1 , F2 are continuous and then,
for every (u, v) ∈ I 2 ,
C(u, v) = F (F1−1 (u), F2−1 (v))
(4)
F1−1 , F2−1
denote the generalized left-continuous inverses of F1 , F2 .
where
Briefly, copulas are bivariate or, more generally, multivariate d.f.’s with uniform univariate marginals. See also Schweizer (1991), Kolev et al. (2006) and
Charpentier et al. (2006) for good reviews on copulas. In what follows we assume
that F1 and F2 are continuous.
We now introduce empirical copulas. Let (Xi , Yi ), i = 1, . . . , n, be an i.i.d.
sample from (X, Y ) and let
1X
I{Xi ≤ x, Yi ≤ y},
n i=1
n
Fn (x, y) =
−∞ < x, y < +∞
(5)
be the empirical d.f. and let F1n (x), F2n (y) be the corresponding marginal d.f.’s,
namely
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
265
Morettin, P., Toloi, C., Chiann, C., Miranda, J.
F1n (x) = Fn (x, +∞),
F2n (y) = Fn (+∞, y),
−∞ < x, y < +∞
Then the empirical copula function is defined by
−1
−1
Cn (u, v) = Fn (F1n
(u), F2n
(v)),
0 ≤ u, v ≤ 1
(6)
and the empirical copula process is defined by
Zn (u, v) =
√
n(Cn − C)(u, v),
0 ≤ u, v ≤ 1
(7)
Deheuvels (1979) proved uniform consistency of the empirical copula, while
Deheuvels (1981a,b) obtained results concerning limits for Zn in the case of independent marginals. In particular, he proposed a Kolmogorov-Smirnov-type statistic for testing the independence hypothesis that C(u, v) = uv and obtained its
asymptotic distribution under the null hypothesis. Fermanian et al. (2004) proved
that the empirical copula process converges weakly to a Gaussian process in
L∞ [0, 1]2 (the space of a.e. bounded functions on I 2 with sup-norm), under the
assumption that C has continuous partial derivatives. See also Ibragimov (2005)
for a similar result in the case of a stationary β-mixing process.
2.2 Wavelets
We will need two-dimensional wavelets in this paper, but start for motivation
with the one-dimensional case. For additional background see Daubechies (1992)
and Meyer (1993). From a mother wavelet ψ and a father wavelet φ (or scaling
function), an orthonormal system for L2 (R) is generated by setting φj,k (x) =
2j/2 φ(2j x − k), j ≥ j0 and ψj,k (x) = 2j/2 ψ(2j x − k), j, k ∈ Z, for some
coarse scale j0 , which we take as zero. Hence, for any f ∈ L2 (R) we may write,
uniquely,
X
XX
f (x) =
α0,k φ0,k (x) +
βj,k ψj,k (x)
(8)
j≥0
k
k
where the wavelet coefficients are given by
α0,k
=
βj,k
=
Z
Z
f (x)φ0,k (x)dx,
(9)
f (x)ψj,k (x)dx.
(10)
In our case, copulas belongs to L2 (I 2 ), so we may first consider periodized
wavelets in the interval [0, 1], defined by
X
X
φ̃j,k (x) =
φj,k (x − n), ψ̃j,k (x) =
ψj,k (x − n)
n
266
n
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
Wavelet-Smoothed Empirical Copula Estimators
see Vidakovic (1999). For notational simplicity we will suppress the upper tilde
from now on. For any function f ∈ L2 (I 2 ) we have a similar expansion to (8),
where the wavelets are obtained as products of one-dimensional wavelets. One
can, for example, consider a basis with a single scale. For this we define the
bivariate scaling function as Φ(x, y) = φ(x)φ(y) and the wavelets by Ψh (x, y) =
φ(x)ψ(y), P siv (x, y) = ψ(x)φ(y) and Ψd (x, y) = ψ(x)ψ(y), where h, v and
d indicate the horizontal, vertical and diagonal directions, respectively. Let k =
(k1 , k2 ). Then a wavelet expansion for f (x, y) is
f (x, y) = c0,0 +
∞ X X
X
dµj,k Ψµj,k (x, y)
(11)
j=0 k µ=h,v,d
with the wavelet coefficients given by
Z
Z
c0,0 = f (x, y)dxdy, dµj,k = f (x, y)Ψµj,k (x, y)dxdy
(12)
Another possibility is to build a basis as the tensor product of two one-dimensional bases with different scales for each dimension; see Morettin et al. (2008).
We mention the comprehensive treatments of wavelets for economics and finance in the paper by Ramsey (2002) and the book by Gençay et al. (2002).
3.
Estimation for Time Series Data
As remarked in Section 1, most of the results available in the literature of
copulas apply to i.i.d. samples (Xi , Yi ), i = 1, . . . , n, from a distribution function
F . As remarked by Mikosch (2006), “it is contradictory that in risk management,
where one observes a lot of dependence through time, copulas are applied most
frequently”.
In this section we discuss copula estimation techniques in the presence of time
series data. We repeat that one approach often used is to apply directly the methods
available for i.i.d. data (mostly using parametric copula models), however may be
misleading.
3.1 Fitting univariate and multivariate models
This method, used for example by Dias and Embrechts (2009, 2010) and Patton (2006), consists in estimating the copula for the standardized residuals after
fitting linear and/or non-linear univariate or multivariate models to the series. In
the case of high-frequency data (intraday, for example) it is often necessary to deseasonalize the data first. The deseasonalized data in turn may reveal the presence
of time-varying variance (heteroskedasticity) and heavy tails, so it may be appropriate to fit ARMA-GARCH models to each of the marginal series, with proper
innovations (for example the use of t-distributions). The effect of asymmetric impacts of negative returns may be also incorporated in these models.
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
267
Morettin, P., Toloi, C., Chiann, C., Miranda, J.
After the fitting of the models for both series, some parametric family of copulas may be used for the standardized residuals. Possible families are: t, Gaussian,
Frank, Gumbel, Clayton etc. See Nelsen (2006) for details. Some criterion, like
AIC or BIC, may be used to choose the best fit amongst the possible choices. This
procedure does not produce, of course, i.i.d. samples, but at least the autocorrelation of each series is removed.
Another possibility is to fit a bivariate GARCH-type model to both series and
then apply a copula family to the bivariate standardized residuals, with a timedependent parameter vector θt . An issue here is the choice of a suitable dynamics
for θt . See Dias and Embrechts (2009, 2010), Patton (2006) and Rockinger and
Jondeau (2001).
3.2 Nonparametric estimation
By (4), to estimate the copula C we need to estimate the marginal d.f.’s, F ,
followed by the quantiles F1−1 (u), F2−1 (v).
Fermanian and Scaillet (2003) (written FS from here on) use kernel estimates
for C: they estimate the marginal density and distribution functions, then the joint
density and distribution functions, next estimate the quantiles and finally the copula. FS prove some asymptotic results for the various estimators, assuming that
the process is strongly mixing plus further conditions on Fj and the bandwidths of
the kernels.
Morettin et al. (2008) (referred to as MTCM from here on) follow the same
route, but using wavelets instead of kernels. Both FS and MTCM present simulations and applications to real data. In Section 4 these estimators will be compared
with the estimators proposed in the present paper.
We now propose a wavelet-smoothed empirical copula estimator. This approach is different from MTCM in the sense that the copula is estimated directly,
without a need for estimating densities, distribution functions and quantiles. Assume that (Xt , Yt ), t ∈ Z is a strictly stationary process.
Since the copula C(u, v) is in L2 ([0, 1]2 ), we can consider its wavelet expansion
C(u, v) = c0,0 +
∞ X X
X
dµj,k Ψµj,k (u, v),
(13)
j=0 k µ=h,v,d
with the wavelet coefficients given by
Z
Z
c0,0 = C(u, v)dudv, dµj,k = C(u, v)Ψµj,k (u, v)dudv.
(14)
For estimates of the wavelet coefficients we shall take the empirical wavelet
coefficients,
Z
µ
ˆ
dj,k = CT (u, v)Ψµj,k (u, v)dudv,
(15)
268
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
Wavelet-Smoothed Empirical Copula Estimators
with a similar expression for ĉ0,0 , where CT is the empirical copula function based
on observations (Xt , Yt ), t = 1, . . . , T and defined in (6).
The corresponding estimator for C(u, v) is then:
XX
Ĉ(u, v) = ĉ0,0 +
δ(dˆµj,k , λ)Ψµj,k (u, v),
(16)
j,k
µ
where δ(·, λ) is a threshold. Both hard and soft thresholds are often used; see
Donoho et al. (1995) for details on thresholds. In this paper we will take for
threshold a high quantile. The sums in (16) will be computed for 0 ≤ j ≤ J,
where J = J(T ) is the maximum scale analyzed, chosen (for theoretical purposes)
in such a way that J → ∞, J/T → 0, as T → ∞. In turn, k1 , k2 will vary from
zero to 2j − 1.
There are several possible choices for the wavelets to be employed: Haar
wavelets, compactly supported Daubechies wavelets, or Shannon, Meyer, Mexican hat or Morlet wavelet. The last of these is often used in physical sciences
problems. Sometimes one encounters categorical type data, for which the Haar
wavelet may be appropriate. In other situations compactly supported wavelets are
more suitable, for example in theoretical considerations. In Morettin et al. (2008)
we used Haar wavelets for the simulations and applications. Our choice here will
be the d8 wavelet of the Daubechies family. We note that the choice of the wavelet
family parallels the choice of the kernel in the case of kernel estimators. In this
case the choice of the smoothing parameters (i.e. bandwidths) is crucial. In our
situation, the choice of J is as important as the choice of the wavelet, as discussed
further below.
We will not develop here theoretical properties of these smoothed wavelet estimators; this will be done elsewhere. Here, instead, we present some simulations
to assess their performance, and we compare this with FS and MTCM results. We
also provide applications with real data.
4.
Simulations
In this section we present simulation examples of the wavelet estimators proposed in section 3, using the examples of Fermanian and Scaillet (2003) for ease
of comparison. The choice of J is implemented by an heuristic approach. For
J = 2, 3, 4, 5 we calculated biases, MSE, minimum and maximum values of these
quantities and associated ranges. Then a value of J was chosen, looking at an
overall performance of the estimator according to these measures. We mention
that another possibility would be to use the following rule of thumb: truncate the
series expansion at some level J(T ) such that 2J(T ) is approximately of order
T 1/2 .
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
269
Morettin, P., Toloi, C., Chiann, C., Miranda, J.
(1) We consider the smoothed empirical copula estimator (16) in the case of a
stationary bivariate autoregressive process of order one:
Xt = A + BXt−1 + ǫt
(17)
where Xt = (X1t , X2t ), with independent components and thus C(u1 , u2 ) =
′
′
u1 u2 , ǫt ∼ N (0, Σ), A = (1, 1) , vec(B) = (0.25, 0, 0, 0.75) and vec(Σ) =
′
(0.75, 0, 0, 1.25) .
The number of Monte Carlo replications is 1,000, while the data length is
T = 210 = 1, 024.
Table 1 shows the bias, E(Ĉ)−C, and mean squared error (MSE), E[(Ĉ−C)2 ],
computed for the Daubechies d8 wavelet using J = 5, chosen as above. All values
(the true value of the copula, the bias and MSE) are expressed as multiples of 10−4 .
These results are satisfactory in terms of bias and MSE, comparable with those of
MTCM, but are outperformed by those of FS. However, we remark that FS used
series of the same length 1,024, but with 5,000 replications, while MTCM used a
different wavelet, namely Haar, with T = 1, 024 and 500 replications. Figure 1
shows the estimated copula and the contour plot.
Table A1 in the Appendix gives a larger grid of values for the wavelet estimator
considered in this paper, showing an overall good performance both in terms of
bias and of mean square error.
Table 1
Biases and MSE of estimators: Independent case
×10−4
True
Bias
MSE
×10−4
True
Bias
MSE
×10−4
True
Bias
MSE
270
(a) d8 wavelet estimator (1,000 replications)
C(.05,.05)
C(.25,.25)
C(.50,.50)
C(.75,.75)
C(.95,.95)
25.00
625.00
2500.00
5625.00
9025.00
1.31
1.76
11.59
16.16
3.38
0.03
0.42
0.42
0.40
0.02
(b) MTCM Haar wavelet estimator (500 replications)
C(.01,.01)
C(.05,.05)
C(.25,.25)
C(.50,.50)
C(.75,.75)
C(.95,.95)
1.00
25.00
625.00
2500.00
5625.00
9025.00
0.05
0.72
9.06
25.32
28.57
13.56
0.00
0.00
0.02
0.11
0.15
0.03
(c) FS estimator with product of two Gaussian kernels (5,000 replications)
C(.01,.01)
C(.05,.05)
C(.25,.25)
C(.50,.50)
C(.75,.75)
C(.95,.95)
1.00
25.00
625.00
2500.00
5625.00
9025.00
-.09
-0.08
0.40
1.12
-0.90
-0.04
0.00
0.01
0.25
0.48
0.25
0.01
C(.01,.01)
1.00
0.66
0.00
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
C(.99,.99)
9801.00
9.27
0.01
C(.99,.99)
9801.00
5.32
0.01
C(.99,.99)
9801.00
4.66
0.05
1.0
Wavelet-Smoothed Empirical Copula Estimators
0.9
0.8
0.8
0.6
0.6
C(u1,u2)
0 0.2 0.4 0.6 0.8
1
0.7
0.4
u2
0.5
0.4
1
0.8
1
0.6
0.3
0.8
0.4
0.6
0.2
0.4
0.2
u1
0.2
u2
0.2
0.0
0.1
0.0
0.2
0.4
0.6
0.8
1.0
u1
Figure 1
d8 wavelet estimated Copula based on empirical copulas and contour plot: independent case
(2) We now turn to the case where the components of Xt are de′
′
pendent processes, with A = (1, 1) , vec(B) = (0.25, 0.2, 0.2, 0.75) and
′
vec(Σ) =(0.75, 0.5, 0.5, 1.25) .
Since X1t and X2t are positively dependent, we have C(u1 , u2 ) > u1 u2 . For
1,000 Monte Carlo replications with the data length T = 1, 024, our results are
reported in Table 2. These results outperform those of Fermanian and Scaillet
and are comparable with those of Morettin et al. (2008). Our previous remarks
concerning the number of observations and replications again hold here. Figure 2
shows the estimated copula and contour plot. Again, we have used the d8 wavelet
with J = 5.
Table A2 in the Appendix shows biases and MSE for the wavelet estimator of
this paper, for a larger grid of quantiles.
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
271
Morettin, P., Toloi, C., Chiann, C., Miranda, J.
Table 2
Biases and MSE of estimators: dependent case
(a) d8 wavelet estimator (1,000 replications)
C(.05,.05)
C(.25,.25)
C(.50,.50)
C(.75,.75)
C(.95,.95)
197.95
1511.74
3747.68
6511.74
9197.95
0.96
3.89
7.37
9.56
0.05
0.11
0.50
0.66
0.52
0.11
(b) MTCM Haar wavelet estimator (500 replications)
C(.01,.01)
C(.05,.05)
C(.25,.25)
C(.50,.50)
C(.75,.75)
C(.95,.95)
27.08
197.95
1511.74
3747.68
6511.74
9197.95
0.60
-1.69
-21.32
-32.93
-13.27
9.22
0.02
0.11
0.46
0.73
0.50
0.11
(c) FS estimator with product of two Gaussian kernels (5,000 replications)
C(.01,.01)
C(.05,.05)
C(.25,.25)
C(.50,.50)
C(.75,.75)
C(.95,.95)
27.08
197.95
1511.74
3747.68
6511.74
9197.95
-7.47
-34.88
-130.32
-172.28
-130.53
-35.25
0.01
0.18
1.98
3.36
1.99
0.18
×10−4
True
Bias
MSE
C(.01,.01)
27.08
-0.30
0.02
×10−4
True
Bias
MSE
C(.99,.99)
9827.08
16.75
0.05
C(.99,.99)
9827.08
-7.65
0.01
1.0
×10−4
True
Bias
MSE
C(.99,.99)
9827.08
1.99
0.02
0.8
0.9
0.8
0.6
C(u1,u2)
0 0.2 0.4 0.6 0.8
1
0.7
u2
0.6
0.4
0.5
0.4
1
0.8
1
0.6
0.3
0.8
0.4
0.6
0.2
0.4
0.2
u1
0.2
u2
0.2
0.0
0.1
0.0
0.2
0.4
0.6
0.8
1.0
u1
Figure 2
d8 wavelet estimated copula, based on empirical copulas, and contour plot: dependent case
5.
Empirical Applications
In this section we illustrate the estimation of copulas using the smoothed wavelet estimator given by (16), considering several pairs of series. In the first example we consider the daily returns of the following stock market indices: Ibovespa
(Brazil) and IPC (Mexico), from September 4, 1995 to June 5, 2000 (with T =
1, 024 observations). In the second example we consider daily returns of SP500
and DJIA, as in FS, recorded from 03/01/1994 to 07/07/2000 with 1,700 observations, but take only T = 1, 024 so as to use a fast wavelet transform. Finally, in the
third example we use again an example of FS, considering the pair of stock indices
272
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
Wavelet-Smoothed Empirical Copula Estimators
CAC40-DAX35, for the same period as the pair SP-DJ and the for same number
of observations
(1) Figure 3 shows the scatter plot of Brazilian (Ibovespa) and Mexican (IPC)
indices. The contemporaneous correlation coefficient is a moderate 0.552. In
Figure 4 we have the plot of the estimated copula using (16) with the d8 wavelet,
J = 5 (we have used this value based on the considerations made in the simulation
results) and the corresponding contour plot, respectively. We have used the 0.90
percentile as the λ parameter of the thresholding procedure: all empirical wavelet
coefficients smaller than λ were discarded. We see the same kind of behavior as
in the simulated dependent case above, where the correlation coefficient was also
moderate.
•
0.10
•
•
•
•
•
•
•
•
• • •••
• • ••
• • • • •••• • •
• • •• •••
•
•
•
•
• • ••
•••••••••••••••••••••••••••• • ••
•••••••••• •• •
• •••• ••••••••••••••••••••••••••••
•
•
• • • •••••••••••••••••••••••••••••••••••••••••••• • • • •
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
• ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• • •• • •
•• •••••••• • •• • •
• • ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
•••••••••••••••••••••••••••
• • •••••••••••••
••••••••••••• ••
••••••••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••
•
•
•
•
•
•
•
•
•
•
•
• • • ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• •
• ••••••••••••••••••••••••••••••••••••••••••••••••••• •• •
•
• •• • ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• ••
••••• ••••••••••••••••••••••••••••••• • ••••• •
•
•
•
•
•
•
•
•
•
•
•
•
•
•• • • ••••••••••••••• •••••••
• •
• • • • •• •••••••••••• •
•
•• •
• •
• •• • ••
•• • •
•
••
•
••
•
•
•• •
−0.05
ipc
0.0
0.05
••
−0.15
−0.10
•
•
•
•
−0.1
0.0
0.1
0.2
0.3
ibv
Figure 3
Scatter plot for the returns of Ibovespa and IPC
Figure 5 shows the scatter plot of the returns of SP500 and DJIA. There is a
high correlation between both series, specifically the contemporaneous correlation
coefficient is 0.933. The wavelet estimator, using again the d8 wavelet and J = 5,
is presented in Figure 6, left panel. We see the expected comonotonic behaviour,
due to the large dependence. The Kendall and Spearman coefficients are τ =
0.7341 and ρS = 0.9009, respectively.
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
273
Morettin, P., Toloi, C., Chiann, C., Miranda, J.
1.0
After fitting ARMA-GARCH models to the series, the (standardized) residual
series have a correlation coefficient of 0.926. Specifically, an AR(3)-GARCH(1,1)
model with t-errors was fitted to the SP500 series, and an AR(10)-GARCH(1,1)
model also with t-errors was fitted to the DJIA series. These models passed the
usual diagnostic checks; details are available upon request from the authors.
The wavelet estimator of the copula between residuals is shown in the right
panel of Figure 6, and this plot is similar to the plot obtained for the original
series. In turn these two plots are quite similar to the kernel copula estimator of
FS. Lastly in Figure 7 we have the contour plots of the estimated Gaussian copula
for the residuals, at left the distribution function and at right the density function;
note the similarity of Figures 6 and 7.
0.8
0.9
0.8
0.6
C(u1,u2)
0.8 1
−0.2 0 0.2 0.4 0.6
0.7
u2
0.6
0.4
0.5
0.4
1
0.8
0.8
0.4
0.6
0.2
0.4
0.2
u1
0.2
u2
0.3
1
0.6
0.2
0.0
0.1
0
0.0
0.2
0.4
0.6
0.8
u1
Figure 4
d8 wavelet estimated copula for Ibovespa and IPC and contour plot
274
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
1.0
Wavelet-Smoothed Empirical Copula Estimators
0.04
• •
•
•
•
•• • •
•
• •• • •
•
•• •
•
•
••• •• • •
•• •
• • •••••••••••••••••••• •• • •
• •• • ••••••••••••••••• •• •
•••••••••••••• •• • ••
•••
••• •••••••••••••••••••
••••••••• ••
• ••••••••••••••••••••••••••••••• •
••• ••••••••••••••••••••••••••••••••••••••••••••••••• •
••••••••••••••••• ••••••
•••••••
••••••••••••••••
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
• ••••••••••••••••••••••••••••••••••••••••••••
••• • ••••••••••••••••••••••••••• •
• •••• •
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
•
• ••• •• ••••• •
• ••••••••••••• •••••••••••••••••••••••••••••• •
• •••• ••••••••••••••••••••••
•••• ••••••••••••
••• ••••• ••••••••••• ••••••
••••• ••••••• • •
•• ••••• ••
••• •• •••• •
• ••••••
•
•• •• •
••
••
−0.02
DJ
0.0
0.02
•
−0.04
•
•
•
−0.06
•
•
•
•
−0.06
−0.04
−0.02
0.0
0.02
0.04
S&P500
1.0
1.0
Figure 5
Scatter plot for the returns of SP500 and DJIA
1
1
0.9
0.8
0.8
0.9
0.8
0.8
0.6
0.7
0.4
0.5
0.4
0.6
u2
u2
0.6
0.5
0.4
0.6
0.7
0.4
0.2
0.3
0.2
0.2
0.3
0.2
0.1
0.0
0.0
0.1
0.0
0.2
0.4
0.6
u1
0.8
1.0
0.0
0.2
0.4
0.6
0.8
1.0
u1
Figure 6
Contour plots of d8 wavelet estimated copulas: before and after fitting ARMA-GARCH models
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
275
Morettin, P., Toloi, C., Chiann, C., Miranda, J.
1.0
1.0
2
18
16
14
12
10
8
64
0.9
0.8
0.8
0.8
0.7
0.6
0.6
y
0.5
0.4
0.4
y
0.6
0.4
0.3
0.2
0.2
0.2
0.1
1210864
14
16
18
2
0.0
0.0
0.0
0.2
0.4
0.6
x
0.8
1.0
0.0
0.2
0.4
0.6
0.8
1.0
x
Figure 7
Contour plots of distribution (left) and density (right) of a Gaussian copula fitted to residuals of SP500 and DJIA
(3) In Figure 8 we have the scatter plot of the returns of the stock indices
CAC40-DAX35, as described above. The contemporaneous correlation coefficient
is moderate, 0.67. Figure 9 shows the d8 wavelet estimator of the copula for the
original series and Figure 10 the corresponding normal copula, after model fitting.
The models fitted to the returns were AR(7)-GARCH(1,1) for CA40 and AR(6)GARCH(1,1) for DAX35, respectively, both with errors following a t-distribution.
These plots suggest a dependence, but not as strong as in the case of SP500-DJ.
The Kendall τ is 0.4805 and the Spearman ρS is 0.6557.
276
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
0.06
Wavelet-Smoothed Empirical Copula Estimators
•
•
0.04
•
0.02
0.0
daxr
−0.02
−0.04
−0.06
•
•
•
•
• •
•• ••
•
•
• •
••• •••• •••
•
•
•
•• • • ••• •
•• ••• • • • • ••••• ••• •
•
•
•
•
• •• ••••• ••• • ••••• •• •
•
•
• •• •••••••••• ••••••• •••••••••••• •••••••• •••• ••
•
•
•
•
•
•
•
• ••••• •••••••• •••••••••••••••••••• •••••••••• • • ••
• •••• ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• •• •
•••• ••••••••••••••••••••••••••••••••••••••• •• •• • • ••
•• •• •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• ••••••• •• •
•
• • •• • ••••••• •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• ••••• • •
•••••••••••••••••• ••• •• ••
•• • ••••••••••••••••••••••••••••••••
•
•• •• •••••••••••••••••••••••••• •• • ••• •
•
•
•
• •• • ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• • •••
•
•
•
•
•
•
•
•
• • •• ••••• ••••••••••••••••••••••••••••••••••••••••••••• ••••• •••
•
•
•
•
• •
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•• •• • •••••••••••••••••••••••••••••••••••••••• •••••••• •• • • •
•
•
•• ••••• ••••••••••••••••• •••••••• •• • • •
• ••••• ••• • ••••••••• ••••••• ••••• •••
•
• •• • •••••• ••••• • ••••••
• • ••• • •••••••••••••••• • •
•• •
•
•
•
•• ••• • ••• •• •••• ••
•
•
• • •• • • •
•
•
•
• • • ••
•
•
•
• •• ••
•
• • •
•
•
•
•
•
•
•
−0.08
•
•
−0.06
−0.04
−0.02
0.0
0.02
0.04
0.06
cacr
Figure 8
Scatter plot of returns of CAC40 and DAX35 series
6.
Further remarks
In this paper we have developed wavelet estimators of copulas based on empirical copulas. Although the idea here was to use these estimators with time series
data, they can also be applied to i.i.d. samples. An advantage of the wavelet (and
kernel) approach is that it can be used directly with the original series, as no model
fitting is necessary. We have compared our proposal with two others: one using
kernel methods and the other using wavelets, but with a different approach. The results seem satisfactory. Further studies are necessary to find the sample properties
of the proposed estimator; this will be carried out elsewhere.
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
277
1.0
Morettin, P., Toloi, C., Chiann, C., Miranda, J.
0.8
0.9
0.8
0.6
0.7
u2
0.6
0.4
0.5
0.4
0.2
0.3
0.2
0.0
0.1
0.0
0.2
0.4
0.6
0.8
1.0
u1
Figure 9
d8 wavelet estimator for the original stock indices returns of CAC40 and DAX35
1.0
0.9
0.8
0.8
0.7
0.5
0.5
0.6
0.6
y
0.5
0.4
0.4
0.3
0.2
0.2
0.1
0.0
0.0
0.2
0.4
0.6
0.8
1.0
x
Figure 10
Normal copula after model fitting for the series CAC40-DAX35
278
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
Wavelet-Smoothed Empirical Copula Estimators
References
Autin, F., Lepennec, E., & Tribouley, K. (2008). Thresholding methods to estimate
the copula density. Available at www.cmi.univ-mrs.fr/autin.
Charpentier, A., Fermanian, J.-D., & Scaillet, O. (2006). The estimation of copulas: Theory and practice. In Copulas: From Theory to Application in Finance.
Risk Book.
Chen, X. & Fan, Y. (2006). Estimation of copula-based semiparametric time series
models. Journal of Econometrics, 130:307–335.
Daubechies, I. (1992). Ten lectures on wavelets. Philadelphia: SIAM.
Deheuvels, P. (1979). La fonction de dépendance empirique et ses propriétés – Un
test non paramétrique d’indepéndance. Académie Royale de Belgique-Bulletin
de la Classe des Sciences-5e Série, 65:274–292.
Deheuvels, P. (1981a). A Kolmogorov-Smirnov type test for independence and
multivariate samples. Revue Roumaine de Mathématiques Pures et Appliqués,
26:213–226.
Deheuvels, P. (1981b). A non parametric test for independence. Publications de
l’Institut de Statistique de l’Université de Paris, 26:29–50.
Dias, A. & Embrechts, P. (2009). Testing for structural changes in exchange rates
dependence beyond linear correlation. European Journal of Finance, 15:619–
637.
Dias, A. & Embrechts, P. (2010). Modeling exchange rate dependence at different
time horizons. Journal of International Money and Finance. To appear.
Donoho, D. L., Johnstone, I., Kerkyacharian, G., & Picard, D. (1995). Wavelet
shrinkage: Asymptopia? Journal of the Royal Statistical Society, 57:301–369.
Fermanian, J.-D., Radulovic, D., & Wegkamp, M. (2004). Weak convergence of
empirical copula processes. Bernoulli, 10:847–860.
Fermanian, J.-D. & Scaillet, O. (2003). Nonparametric estimation of copulas for
time series. Journal of Risk, 5:25–54.
Gençay, R., Selçuk, F., & Witcher, B. (2002). An Introduction to Wavelets and
Other Filtering Methods in Finance and Economics. Academic Press, New
York.
Genest, C., Masiello, E., & Tribouley, K. (2009). Estimating copula densities
through wavelets. Insurance: Mathematics and Economics, 44:170–181.
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
279
Morettin, P., Toloi, C., Chiann, C., Miranda, J.
Genest, C. & Rivest, L.-P. (1993). Statistical inference procedures for bivariate Archimedian copulas. Journal of the American Statistical Association,
88:1034–1043.
Ibragimov, R. (2005). Copula-based dependence characterizations and modelling
for time series. Discussion paper N. 2094, Harvard Institute of Economic Research.
Joe, H. & Xu, J. J. (1996). The estimation method of inference functions for margins for multivariate models. TR 166, Dept. Statistics, Univ. British Columbia.
Kolev, N. W., Mendes, B. V. M., & Anjos, U. (2006). Copulas: A review and recent
developments. Communications in Statistics – Stochastic Models, 22:617–660.
Meyer, Y. (1993). Wavelets: Algorithms and applications. Philadelphia: SIAM.
Mikosch, T. (2006). Copulas: Tales and facts. Extremes, 9:3–20.
Morettin, P. A., Toloi, C. M. C., Chiann, C., & de Miranda, J. C. S. (2008). Wavelet
estimation of copulas for time series. Under revision, J. Time Series Econometrics.
Nelsen, R. (2006). An Introduction to Copulas. Springer, New York, second
edition. Lecture Notes in Statistics.
Patton, A. J. (2006). Modelling asymmetric exchange rate dependence. International Economic Revue, 47:527–556.
Ramsey, J. B. (2002). Wavelets in economics and finance: Past and future. RR #
2002-02, V.V. Starr Center for Applied Economics, New York University.
Rockinger, M. & Jondeau, E. (2001). Conditional dependency of financial series:
An application of copulas. Working paper, HEC-Schol of Management.
Schweizer, B. (1991). Thirty years of copulas. In Dall’Aglio, G., Kotz, S.,
& Salinetti, G., editors, Advances in Probability Distributions with Given
Marginals. Dordrecht, Kluwer.
Shih, J. & Louis, T. (1995). Inferences on the association parameter in copula
models for bivariate survival data. Biometrika, 51:1384–1399.
Sklar, A. (1959). Fonctions de répartition à n dimensions et leurs marges. Publications de l´Institut de Statistique de l´Université de Paris, 8:229–231.
Vidakovic, B. (1999). Statistical Modeling by Wavelets. Wiley, New York.
280
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
Wavelet-Smoothed Empirical Copula Estimators
Appendix
Table A.1
Biases and MSE of wavelet estimates: independent case(10−4 )
u/v
True
Bias
MSE
True
Bias
MSE
True
Bias
MSE
True
Bias
MSE
True
Bias
MSE
True
Bias
MSE
True
Bias
MSE
0.01
0.05
0.25
0.50
0.75
0.95
0.99
0.01
1.00
0.66
0.00
5.00
0.24
0.00
25.00
1.15
0.02
50.00
3.08
0.03
75.00
4.77
0.02
95.00
6.55
0.01
99.00
0.01
0.01
0.05
5.00
0.39
0.00
25.00
1.31
0.03
125.00
2.09
0.10
250.00
4.24
0.14
375.00
6.01
0.11
475.00
7.75
0.03
495.00
0.01
0.01
0.25
25.00
1.73
0.02
125.00
1.63
0.10
625.00
1.76
0.42
1250.00
6.66
0.55
1875.00
6.85
0.39
2375.00
8.77
0.10
2475.00
0.03
0.03
0.50
50.00
3.57
0.03
250.00
4.21
0.13
1250.00
6.87
0.56
2500.00
11.59
0.75
3750.00
11.47
0.55
4750.00
10.24
0.13
4950.00
0.04
0.04
0.75
75.00
5.79
0.02
375.00
7.42
0.10
1875.00
9.20
0.40
3750.00
14.58
0.57
5625.00
16.16
0.40
7125.00
10.66
0.10
7425.00
0.04
0.04
0.95
95.00
7.24
0.01
475.00
8.30
0.03
2375.00
10.39
0.12
4750.00
10.99
0.15
7125.00
10.96
0.10
9025.00
3.38
0.02
9405.00
0.01
0.01
0.99
99.00
7.78
0.01
495.00
9.56
0.01
2475.00
12.66
0.04
4950.00
13.70
0.04
7425.00
14.04
0.04
9405.00
6.67
0.01
9801.00
0.01
0.01
0.75
99.97
7.41
0.01
498.93
7.56
0.01
2447.04
8.43
0.07
4681.06
6.30
0.35
6508.83
9.56
0.51
7423.68
8.22
0.09
7494.74
9.13
0.01
0.95
100.00
7.42
0.01
499.99
7.82
0.01
2498.93
9.75
0.01
4986.81
8.92
0.02
7423.68
7.97
0.09
9197.17
0.05
0.11
9461.82
1.14
0.02
0.99
100.00
7.33
0.01
500.00
7.87
0.01
2499.97
9.76
0.01
4999.45
9.60
0.01
7494.74
9.08
0.01
9461.82
0.91
0.02
9826.92
1.99
0.02
Table A.2
Biases and MSE of wavelet estimates: dependent case(10−4 )
u/v
0.01
0.05
0.25
0.50
0.75
0.95
0.99
True
Bias
MSE
True
Bias
MSE
True
Bias
MSE
True
Bias
MSE
True
Bias
MSE
True
Bias
MSE
True
Bias
MSE
0.01
26.92
-0.30
0.02
61.82
1.90
0.03
94.74
5.95
0.01
99.45
7.14
0.01
99.97
7.39
0.01
100.00
7.41
0.01
100.00
7.33
0.01
0.05
61.82
1.43
0.03
197.17
0.96
0.11
423.68
4.27
0.08
486.81
7.25
0.02
498.93
7.71
0.01
499.99
7.81
0.01
500.00
7.86
0.01
0.25
94.74
6.18
0.01
423.68
3.84
0.08
1508.83
3.89
0.50
2181.06
7.20
0.34
2447.04
8.22
0.07
2498.93
9.65
0.01
2499.97
9.74
0.01
0.50
99.45
7.17
0.01
486.81
6.48
0.02
2181.06
4.89
0.33
3739.88
7.37
0.66
4681.06
9.51
0.33
4986.81
9.16
0.02
4999.45
9.59
0.01
Revista Brasileira de Finanças, Rio de Janeiro, Vol. 8, No. 3, 263–281, 2010
281