1. Introduction
Copulas have found many applications in the field of finance, insurance, system reliability, etc., owing to their utility in modeling the dependence among variables (see, e.g., Nelsen [
1], Jaworski et al. [
2] and Joe [
3] for details about copulas and their applications). In some situations, the dependence structure between variables can be influenced by a set of covariates, and it is thereby of interest to understand how such dependence changes with the values of covariates. For instance, it is well known that the life expectancy at birth of males and females in a country is often highly interdependent due to shared economic or environmental factors, and it is possible that the strength of the dependence relies on these factors. When the covariate is binary or discrete-valued with few levels, one can estimate a copula for each given level of the discrete-valued covariate separately. In constrast, the influence of a continuous-value covariate on the dependence structure should be formulated in a functional way, and this is where conditional copulas (Patton [
4]; Patton [
5]) along with the corresponding conditional versions of dependence measures come into play.
Suppose we are interested in the dependence among the components of a random vector
given covariates
. The conditional joint and marginal distribution of
given
can be denoted as
and
If
are continuous, then by an extension of the well-known Sklar’s theorem (Sklar [
6]) for conditional distributions (e.g., see Patton [
5]), there exists a unique copula
such that
and the function
is called a conditional copula, which captures the conditional dependence structure of
given
. The focus of this paper is modeling continuous-valued responses and covariates. Thus, in what follows, we assume that the conditional marginal CDFs
and the CDFs of each response and covariate are absolutely continuous.
The literature contains a variety of parametric families for modeling copulas. Some commonly used copula families are Archimedean copulas, elliptical copulas, etc.; see Žežula [
7] and Joe [
3], etc. Assuming that the conditional copula belongs to a parametric copula family where the copula parameter is a function of the covariate(s), there has been previous work addressing the estimation of conditional copula in a semiparametric setting. In regard to frequentist methods based on an assumed parametric class, Acar et al. [
8] propose to estimate the functional relationship between the copula parameter and the covariate nonparametrically by using the local likelihood approach, but they assume known marginals, and the maximization is conducted for a fixed value of the covariate. In other words, with the intention of identifying the entire function between the copula parameter and the covariate, it is necessary to solve the maximization problem for a sufficiently large grid of values within the range of the covariate. Abegaz et al. [
9] extend the work to a more general setting of unknown marginals and apply a two-stage technique that has been widely adopted in copula estimation: in the first stage, the nonparametric estimates of conditional marginals are obtained using the kernel-based method, and by plugging in these estimates, the functional link is estimated by maximizing the pseudo log-likelihood in the second stage. As alternative estimation methods for the function relationship, Vatter and Chavez-Demoulin [
10] develop generalized additive models for the conditional dependence structures, and Fermanian and Lopez [
11] introduce so-called single-index copulas, etc. In particular, conditional copulas of Archimedean copulas are studied, e.g., in Mesfioui and Quessy [
12], Kasper [
13] and the references therein. In the Bayesian framework, inference for bivariate conditional copula models has been constructed in Craiu and Sabeti [
14], Sabeti et al. [
15] and Levi and Craiu [
16], among others.
However, the misspecification of the copula family could lead to severely biased estimation even though a sophisticated and flexible parametric model is employed (e.g., see Geerdens et al. [
17]), so it is required to select an appropriate copula model from a large number of candidate families. In order to do so, many copula selection techniques have been proposed in either the frequentist or Bayesian setting; e.g., Acar et al. [
8] select the copula family based on cross-validated prediction errors, while the deviance information criterion (DIC) is utilized for the choice of copula in Craiu and Sabeti [
14].
Acknowledging the limitations of parametric copula models as mentioned above, fully nonparametric approaches have also been proposed for conditional copula estimation. Gijbels et al. [
18] suggest the empirical estimators for conditional copulas where the weights are smoothed over the covariate space through kernel-based methods. They further derive nonparametric estimates for the conditional dependence measures including conditional Kendall’s tau and conditional Spearman’s rho. Since the bandwidth selection is very crucial for any of the smoothing methods, they also develop an algorithm for selecting the bandwidths. The asymptotic properties of the estimators together with conditional dependence measure estimates are established in Veraverbeke et al. [
19]. Gijbels et al. [
20] further consider more complex covariates like multivariate covariates, and box-type conditioning events are studied in Derumigny and Fermanian [
21]. On the other hand, there has been recent work on the Bayesian nonparametric estimation of conditional copulas. Leisen et al. [
22] introduce the effect of a covariate on the Bayesian infinite mixture models proposed by [
23]. However, the large-sample asymptotic properties of the Bayesian models have been almost unexplored and still remain an area of open work.
In this paper, we focus on the nonparametric estimation of conditional copulas and have realized a relatively easy way by employing the empirical checkerboard Bernstein copula (ECBC) estimator proposed in Lu and Ghosh [
24]. ECBC is constructed by extending the Bernstein copula, allowing for varying degrees of the polynomials, which is a genuine smooth copula for any number of degrees and any finite sample size. When the covariates are continuous-valued, the main idea of extending the copula models to include covariates is to first estimate the full copula of responses along with covariates and then take partial derivatives to obtain the conditional distribution of responses given the covariates. As a fully nonparametric approach, it is not required to make any selection of the proper copula family, which is a key step in semiparametric methods to avoid the adverse consequence of model misspecification. Compared to the kernel-based empirical estimators, the selection of bandwidths is unnecessary as well, making it easy to implement in practice. The proposed ECBC-based conditional copula estimator immediately leads to nonparametric estimates of the conditional dependence measures, which can be expressed in a very neat form under matrix operations. The large-sample consistency of the proposed estimator is also provided in the paper.
The rest of the paper is organized as follows: in
Section 2, we present a model for conditional copula and closed-form estimates of popular multivariate conditional dependence measures based on the novel methodology of conditional copula estimation.
Section 3 shows the finite-sample performance for the proposed methodology.
Section 4 provides a real case study. Finally, we make some general comments in
Section 5.
2. Models for Conditional Copula
In the following, we focus on the bivariate conditional copula of with a single covariate X for simplicity. Notice that the extension to more than two dimensions and multiple covariates is straightforward.
Suppose we have i.i.d. samples , where are i.i.d observations of the random vector of which the conditional dependence structure is of our interest. are i.i.d. observations of the covariate X. We assume all components of are continuous-valued random variables with absolutely continuous marginal distributions, and the conditional marginal distributions of and given are also absolutely continuous. The goal is to estimate the conditional copula from a random sample of i.i.d. observations .
As suggested by Gijbels et al. [
18], it is often favorable to remove the effect of the covariate on the marginal distributions before estimating
. In order to do that, we can transform the original observations
to marginally uniformly distributed (unobserved) samples
which can be estimated by pseudo-observations
where
and
are the estimated conditional marginal distributions.
Motivated by Janssen et al. [
25] who apply the empirical Bernstein estimator of the bivariate copula derivative to conditional distribution estimation with a single covariate, we are able to use the multivariate copula estimator ECBC as proposed in Lu and Ghosh [
24] to estimate the conditional marginal distributions of
and
given
, respectively. Specifically, for
, we have i.i.d samples
and the corresponding pseudo-observations
, where
and
are the modified empirical estimation of the (unconditional) marginal distributions
and
, respectively, e.g.,
. These pseudo-observations can be then treated as samples from a
-dimensional copula
, which can be estimated by the ECBC copula estimator as follows
where
and
is the empirical checkerboard copula. The ECBC estimation process is detailed in Lu and Ghosh [
24]. Then, the partial derivative
of
with respect to
v can be estimated by using
where
Notice that the following relationship holds between the conditional marginal distribution function of
given
and the partial derivative
Thus, we can estimate the conditional marginal distributions using
for
, and then the corresponding pseudo-observations
of the conditional copula
adjusted for the effect of the covariate on the marginal distributions can be estimated as given in (
5).
Now, we can use the covariate-adjusted pseudo-observations
along with the pseudo-observations of the covariate
to estimate a
-dimensional copula
again using ECBC and denote it as
. Similar to (
8), it is easy to obtain the partial derivative
of
with respect to
v, which is denoted as
where
Notice that we can use
as an estimate of the conditional copula
; however,
is itself a valid bivariate copula for any value of
only asymptotically. This is because the conditional marginal distributions of
are not necessarily uniform distributions for finite samples. Aiming to obtain a more accurate estimate of the conditional copula for small samples, we consider the conditional marginal distributions of
given as
and
By using Sklar’s theorem, we are able to obtain a conditional copula estimator which is a genuine copula itself denoted as
where
and
are the inverse functions of
and
, respectively. It is to be noted that
is a valid copula for any value of
, and as a result, the conditional copula
can be estimated by
Let
denote the conditional supremum norm of a conditional function
defined on the unit square
for a fixed
v. We denote the common supremum norm as
. The following theorem provides the large-sample consistency of the estimator
for fixed value of
using the conditional supremum norm. The proof is in
Appendix A.
Theorem 1. Assume that the underlying trivariate copula is absolutely continuous and the conditional copula is Lipschitz continuous on . Then, for any fixed , we havewhere the expectation is taken with respect to the empirical prior distribution of , and m as given for ECBC. Remark 1. Following the hierarchical shifted Poisson distributions proposed for ECBC in Lu and Ghosh [24], the empirical prior distribution of , and m is given as The choice of the above priors is motivated by the asymptotic theory of empirical checkerboard copula methods Janssen et al. [26]. Sample sizes or, more generally, data-dependent priors have been used extensively in the literature (e.g., see Wasserman [27] and Parrado-Hernández et al. [28]), and these have been shown to produce desirable asymptotic properties of the posterior distributions. Next, by extending the dependence measures given in Schweizer et al. [
29] to conditional versions, we are able to estimate the conditional dependence measures (e.g., conditional Spearman’s rho, conditional Kendall’s tau, etc.) using the estimator
. For instance, the estimate of conditional Kendall’s tau takes the form
and the estimate of the conditional Spearman’s rho is given as
Then, we can rewrite the estimator
and its conditional marginal distributions as
and
respectively. As a result, a closed-form estimate of conditional Kendall’s tau takes the form
where
B is the beta function. Similarly, we are able to obtain a closed-form estimate of the conditional Spearman’s rho as
For the purpose of computing the estimates of conditional dependence measures more efficiently, we apply matrix operations to the tensor products in expressions (
24) and (
25). For given
, let us denote
and
Then, we have
and
. We also denote a
matrix
where
. Thus, the estimate of conditional Kendall’s tau given in (
29) can be rewritten as
Furthermore, we can denote two
matrices,
and
, and as a result, we have
Similarly, we are able to rewrite the estimate of conditional Spearman’s rho given in (
25). Let us first denote two vectors,
where
and
where
. Then, we have
If we further denote two
matrices,
where
and
, then we have
By applying the above matrix operations, we are able to obtain very neat expressions of the estimates of conditional dependence measures, and the computational efficiency can be improved significantly.
3. Numerical Illustrations Using Simulated Data
We now show the finite-sample performance of the conditional copula estimator
. Similar to the simulation setup in Acar et al. [
8], data
are generated from the Clayton copula using the package
in
under the following models:
, where
and
. The true copula parameter varies from 0.14 to 1.49 with Spearman’s rho ranging from 0.10 to 0.60. The pseudo-observations of the covariate are defined as
, where
.
replicates are drawn from the true copula with sample size
.
Figure 1 shows the contour plots of the Monte Carlo average of the estimated
given
,
,
, and
, respectively, across 100 Monte Carlo replicates. The contour plots are drawn based on a
equally spaced grid of points in the unit square, meaning that for a given
v, we need to find
roots. Since
and
are both non-decreasing functions, we can calculate the inverse functions
and
by applying the function
in
to Equations (
22) and (
23) for a given value of
v. The true copula parameters are 0.20 (Spearman’s rho equal to 0.09), 0.30 (Spearman’s rho equal to 0.20), 0.45 (Spearman’s rho equal to 0.27), and 0.67 (Spearman’s rho equal to 0.37) for
,
,
, and
, respectively.
It can be observed from the plots that all the estimated contour lines overlap with the true lines at the boundaries, which is evidence that the conditional copula estimator is a genuine copula with uniform conditional marginal distributions. Moreover, there is almost no bias between the estimated conditional copula averaged over 100 Monte Carlo samples and the true conditional copula across different values of the covariate, illustrating that the proposed ECBC-based method works well in estimating the conditional copula.
Then, we can plot the conditional Kendall’s tau and conditional Spearman’s rho as given in (
29) and (
31) as a function of the covariate in
Figure 2. The covariate
x ranges from 0 to 3, so we compute the dependence measures at seven different values
. The following plots show the Monte Carlo average of estimates of dependence measures and the
Monte Carlo confidence bands (5th and 95th percentiles of the dependence measure estimates) across 100 Monte Carlo replicates.
Overall, the estimates averaged over 100 Monte Carlo samples seem to be fairly close to the true conditional dependence measures across different values of the covariate. The variance tends to increase and the Monte Carlo average tends to underestimate a little bit when it becomes closer to the boundaries of the covariate.
Next, we would like to compare the performance of our proposed nonparametric method to the semiparametric method in Acar et al. [
8] through simulation studies. They assume a conditional copula model where the copula function comes from a parametric copula family and the copula parameter is a function of the covariate. Different copula families, e.g., Clayton and Gumbel, were considered, and the functional relationship between the copula parameter and the covariate was estimated using a nonparametric local likelihood approach. The severe consequence of the misspecified copula model was investigated in Acar et al. [
8], and they proposed a copula selection method based on cross-validated prediction errors. In contrast, the proposed conditional copula estimator is fully nonparametric, so there is no need to make any choice of the copula family.
The simulation setups follow Acar et al. [
8]. The data
are generated from the Clayton copula under the following models:
, where (i):
and
; (ii):
and
. The sample size is
.
The comparison can be made numerically by calculating the conditional Kendall’s tau and some performance measures, including the integrated square bias (IBIAS
2), integrated variance (IVAR) and integrated mean square error (IMSE) as given in Acar et al. [
8]:
where the second equality holds because
and
. We compute Monte Carlo estimates of these performance measures by following the tricks in Segers et al. [
30] and compare our proposed method (referred to as “ECBC-based”) to the local likelihood method (referred to as “Local”) in Acar et al. [
8]. The results are shown in
Table 1.
From the results, we can see that when data are generated from the Clayton copula (the underlying true copula), our ECBC-based method outperforms the local likelihood method for the incorrect parametric case (Gumbel) in terms of bias and MSE, although the performance is not as good as the local likelihood method for the correct parametric case (Clayton). Nonetheless, the advantage of the proposed nonparametric method is that we can avoid the adverse impact of misspecified copula and obtain a fairly good estimation of conditional copula and conditional dependence measures without having to select the ‘best’ copula model from numerous copula families.
4. Real Case Study
We now apply the proposed methodology to a data set of life expectancy at birth of males and females with GDP (in USD) per capita as a covariate for 210 countries or regions. The data are available from the World Factbook 2020 of CIA. Similar data sets were analyzed in Gijbels et al. [
18] and Abegaz et al. [
9]. Life expectancy at birth summarizes the average number of years to be lived in a country, while GDP per capita is often considered as an indicator of a country’s standard of living. We are interested in the dependence between the life expectancy at birth of males and females and would like to see if the strength of dependence is influenced by the GDP per capita. In other words, it is of interest to investigate the dependence between the life expectancy at birth of males (
) and females (
) conditioning on the covariate
X, where
log
10(GDP) is a log
10 transformation of GDP per capita.
The pairwise scatterplots of the data are shown in
Figure 3a, from which we can see that there is strong positive correlation between the life expectancy of males (referred to as Male) and females (referred to as Female).
Figure 3a also shows that the life expectancy tends to increase with the log
10 transformation of GDP per capita (referred to as log10.GDP) for both males and females. Before estimating the conditional copula of
given
X, we first remove the effect of the covariate
X on the marginal distributions of
and
. As a result, the covariate-adjusted pseudo-observations of
and
(referred to as Male.pseudo and Female.pseudo, respectively) and the pseudo-observations of
X (referred to as log10.GDP.pseudo) are given in
Figure 3b.
We then estimate the conditional copula and the conditional dependence of life expectancy at birth of males and females given the covariate
X.
Figure 4 shows the estimated conditional Kendall’s tau as a function of log
10(GDP). It can be observed from the plot that the estimate of Kendall’s tau decreases from around 0.8 to 0.6 as the GDP per capita increases from
to
40,000 USD, and it picks up slightly as the GDP per capita becomes greater than 40,000 USD. Overall, the dependence between the life expectancy at birth of males and females is relatively larger for countries with a lower GDP per capita (less than 10,000 USD), and the dependence is relatively smaller for countries with a higher GDP per capita (greater than 10,000 USD).
5. Conclusions
This article provides a nonparametric approach for estimating conditional copulas based on the empirical checkerboard Bernstein copula (ECBC) estimator. The proposed nonparametric method has its own advantages compared to the semiparametric methods as it fixes the issue of model misspecification by not relying on any selection of copula family and demonstrates a good finite-sample performance. The large-sample consistency of the proposed ECBC-based conditional copula estimator is also presented. In addition, we derive closed-form nonparametric estimates of the conditional dependence measures from the proposed estimator.
Due to the complexity in modeling and inference caused by the dependence of conditional copula on the covariates, it is quite common in practice, particularly for vine copulas, to assume that the dependence structure is not influenced by the value of covariates, which is referred to as ‘simplifying assumption’. Under simplifying assumption, the conditional copula
does not depend on
, i.e., for every
, the function
is a constant function (that depends on
). See, e.g., Haff et al. [
31], Acar et al. [
32], Stoeber et al. [
33], Nagler and Czado [
34] and Schellhase and Spanhel [
35]).
In the literature, there have been some available tests of the simplifying assumption; see Acar et al. [
36], Gijbels et al. [
37], Gijbels et al. [
38], Derumigny and Fermanian [
39], Kurz and Spanhel [
40], etc. Our proposed ECBC-based conditional copula estimator can be useful for constructing new tests of the simplifying assumption. We have shown the framework of obtaining a general estimate of the conditional copula that is allowed to vary with the value of covariates. It is also straightforward to obtain an estimate satisfying the simplifying assumption based on the covariate-adjusted pseudo-observations again using the ECBC estimator. Therefore, it could be possible to build test statistics based on some discrepancy criteria like the Kolmogorov–Smirnov type, Anderson–Darling type, etc., where the distributions of such test statistics could be approximated by bootstrap schemes.
Another interesting topic for future work would be extending the estimation framework to high-dimensional conditional copula. We can perhaps first use some dimension reduction methods like principal component analysis (PCA) and then develop copula models based on the lower dimensional principal components of the covariates.