Repository navigation
Open
Description
see also #4046
random notes because results are all over the literature, and it's often difficult to find a specific item
- multivariate copulas, formulas for Frank, Gumbel and Cook-Johnson
Savu, Trede 2008, especially appendix, includes derivatives of generator function and inverse - Book "Extremes in Nature" has list of copula families with properties in appendix C , including tau and rho when available
- appendix A simulation has sequential conditional distribution, bivariate and multivariate
- densities of extreme value copulas, thesis https://ethz.ch/content/dam/ethz/special-interest/math/risklab-dam/documents/walter-saxer-preis/ma-doyon.pdf for bivariate case we also need first and second derivatives of Pickand's dependence function
- densities for multivariate Archimedean: Joe book "Dependence Modelling with Copulas" p. 93 section 3.3 in terms of psi, i.e. phi-inverse. d-dim need d'th derivative of phi-inverse evaluated at sum of phi
- How do we use copulas? What are the statistics of interest?
predict(which=???)I don't find much on expected value of a copula model. https://en.wikipedia.org/wiki/Copula_(probability_theory)#Expectation_for_copula_models_and_Monte_Carlo_integration cites McNeil et al 2005 book
Savu, Cornelia and Trede, Mark(2008) 'Goodness-of-fit tests for parametric families of Archimedean
copulas', Quantitative Finance, 8: 2, 109 — 116
http://dx.doi.org/10.1080/14697680701207639
Activity
josef-pkt commentedon Jan 15, 2021
List of copulas
package
evdextreme value copulas and distributionsevd has "log", "alog", "hr", "neglog", "aneglog", "bilog", "negbilog", "ct", "amix"
"log"istic is gumbel, symmetric version of alog
"neglog" is galambos, symmetric version of aneglog
we are missing "negbilog" and "ct", AFAICS
we have t-ev which
evddoesn't havepackage
copulabasic copulas, not nested nor vines
EV copulas
evCopula(family, param, dim = 2, ...)
galambosCopula(param)
huslerReissCopula(param)
tawnCopula(param)
tevCopula(param, df = 4, df.fixed = FALSE)
AFAICS, restricted to one parameter, symmetric, bivariate copulas
Archimedean
"clayton", "frank", "amh", "gumbel", and "joe".
archmCopula(family, param = NA_real_, dim = 2, ...)
claytonCopula(param = NA_real_, dim = 2, use.indepC = c("message", "TRUE", "FALSE"))
frankCopula(param = NA_real_, dim = 2, use.indepC = c("message", "TRUE", "FALSE"))
gumbelCopula(param = NA_real_, dim = 2, use.indepC = c("message", "TRUE", "FALSE"))
amhCopula(param = NA_real_, dim = 2, use.indepC = c("message", "TRUE", "FALSE"))
joeCopula(param = NA_real_, dim = 2, use.indepC = c("message", "TRUE", "FALSE"))
elliptical
ellipCopula (family, param, dim = 2, dispstr = "ex", df = 4, ...)
normalCopula(param, dim = 2, dispstr = "ex")
tCopula(param, dim = 2, dispstr = "ex", df = 4, df.fixed = FALSE, df.min = 0.01)
other
indepCopula(dim = 2)
plackettCopula(param)
fgmCopula(param, dim = 2)
moCopula(param = NA_real_, dim = 2L) Marshall-Olkin
Fréchet-Hoeffding Bound Copula Objects
fhCopula(family = c("upper", "lower"), dim = 2L)
lowfhCopula(dim = 2L)
upfhCopula(dim = 2L)
They also have an empirical copula class that looks interesting
empCopula(X, smoothing = c("none", "beta", "checkerboard"), offset = 0,
ties.method = c("max", "average", "first", "last", "random", "min"))
They also have some copula constructors based on other copulas, e.g. mixture of copulas.
josef-pkt commentedon Jan 20, 2021
aside for univariate marginal EV distributions:
scipy
genextremeand evd packagegevuse opposite sign for power parameterc = -sscipy
weibull_maxand evd negativeweibulluse the same signscipy
gumbel_ris the same as evd'sgumbeljosef-pkt commentedon Jan 21, 2021
other things that would be nice to have for multivariate distribution
Conditional pdf, cdf and/or ppf are needed for some methods for simulations and for gof testing, and maybe later for conditional regression.
Rosenblattt transform makes transformed variables independent by successive conditioning.
old code and idea
sandbox distributions mv_normal contains my start on MV elliptical distributions, class for normal distribution includes method to get the conditional distribution, but it's specific to normal distribution.
For some copulas, we have explicit formulas for conditional distribution.
(Having general elliptical, distribution helper functions and classes would be nice for many applications,
e.g. I ran into them for generating new nonlinear transformation distribution families.
Several methods for robust cov estimation are based on elliptical distributions.
Random sampling for elliptical distributions would be available if we have a collection of which distribution is used as scale mixing distribution, like chi2-normal scale mixture for t.
)
josef-pkt commentedon Jan 22, 2021
gof tests
for EV copulas we can estimate the Pickand's dependence function from data.
Several algorithms are available. I don't remember seeing hypothesis test versions and pvalues for it, but I didn't look closely or widely enough or I didn't look at those sections.
one example using splines and quantile regression, includes an A-plot to plot data scatter and related Pickands dependence function.
Cormier, Eric, Christian Genest, and Johanna G. Nešlehová. "Using B-splines for nonparametric inference on bivariate extreme-value copulas." Extremes 17, no. 4 (2014): 633-659.
gof tests in general require simulated pvalues (they call it bootstrap but it uses parametrically simulated values), is pretty slow
several articles by Genest and coauthors. e.g. larger simulation study with 7 methods:
Genest, Christian, Bruno Rémillard, and David Beaudoin. "Goodness-of-fit tests for copulas: A review and a power study." Insurance: Mathematics and economics 44, no. 2 (2009): 199-213.
some methods for some copulas are expensive because we need a "double bootstrap", the second set of simulation is for computing statistics that don't have a closed form expression, e.g. using MonteCarlo integration. (*)
A faster approximate version for simulating p-values is to simulate using an asymptotic approximation. e.g.
Kojadinovic, Ivan, and Jun Yan. "A goodness-of-fit test for multivariate multiparameter copulas based on multiplier central limit theorems." Statistics and Computing 21, no. 1 (2011): 17-30.
(*) aside
I have seen an abstract of an article that talks about quasi-random numbers, something like Monte Carlo integration based on Halton sequences. I didn't look at it and I didn't keep the reference.
josef-pkt commentedon Jan 29, 2021
https://cran.r-project.org/web/packages/SimCop/SimCop.pdf
has multivariate asymmetric ev copulas,
e.g. NewMEVAsyLogisticCopula cdf looks (kind of) easy. For density, pdf they only mention that they are using automatic differentiation.
josef-pkt commentedon Jan 30, 2023
aside: IEEE shows latex expression for formulas
e.g. https://ieeexplore.ieee.org/abstract/document/9299492
josef-pkt commentedon Jan 30, 2023
sampling from archimedean
Joe 2014 p. 272, 273
rosenblatt transform p. 270
conditional cdfs of copulas nd multivariate distributions (general case) p. 29
conditional copula for archimedean subset of x given values of complementary subset p. 92 equ (3.8)
(conditional copula of archimedean is also archimedean with different implied generator)
for generator phi phi(0)=inf, phi(1) = 0 (greek xi in Joe) p. 91 below equ. (3.5)
i.e. marginal copula of archimedean, remainders disappear in sum of phi.
multivariate survival function, survival copula prob(X1 > x1, ..., Xd > xd) p.27 bottom