bCond.pobs {CondCopulas} | R Documentation |
Computing the pseudo-observations in case of discrete conditioning events
Description
Let be
events forming a partition of
a probability space and
be
random variables.
Assume that we observe
i.i.d. replications of
,
and that for each
,
we also know which of the was realized.
This function computes the pseudo-observations
where
is such that the event
is realized for the
-th observation.
Usage
bCond.pobs(X, partition)
Arguments
X |
matrix of size |
partition |
matrix of size |
Value
a matrix of size n * d
containing the conditional pseudo-observations .
References
Derumigny, A., & Fermanian, J. D. (2017). About tests of the “simplifying” assumption for conditional copulas. Dependence Modeling, 5(1), 154-197. doi:10.1515/demo-2017-0011
Derumigny, A., & Fermanian, J. D. (2022) Conditional empirical copula processes and generalized dependence measures Electronic Journal of Statistics, 16(2), 5692-5719. doi:10.1214/22-EJS2075
See Also
bCond.estParamCopula
for the estimation
of a (conditional) parametric copula model in this framework.
bCond.treeCKT
that provides a binary tree
based on conditional Kendall's tau
and that can be used to derive relevant conditioning events.
Examples
n = 800
Z = stats::runif(n = n)
CKT = 0.2 * as.numeric(Z <= 0.3) +
0.5 * as.numeric(Z > 0.3 & Z <= 0.5) +
- 0.8 * as.numeric(Z > 0.5)
simCopula = VineCopula::BiCopSim(N = n,
par = VineCopula::BiCopTau2Par(CKT, family = 1), family = 1)
X1 = simCopula[,1]
X2 = simCopula[,2]
partition = cbind(Z <= 0.3, Z > 0.3 & Z <= 0.5, Z > 0.5)
condPseudoObs = bCond.pobs(X = cbind(X1, X2),
partition = partition)