Skip to content

Commit

Permalink
Fix Kendall tau's of Gaussian and Student copula (#224)
Browse files Browse the repository at this point in the history
* feat: Add functions for computing Kendall tau and Pearson correlation coefficient for bivariate Gaussian Copula

* feat: Add Kendall tau calculation for bivariate student copula
  • Loading branch information
lrnv authored Sep 21, 2024
1 parent 641c36e commit c1d47d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EllipticalCopulas/GaussianCopula.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ end
# Kendall tau of bivariate gaussian:
# Theorem 3.1 in Fang, Fang, & Kotz, The Meta-elliptical Distributions with Given Marginals Journal of Multivariate Analysis, Elsevier, 2002, 82, 1–16
τ(C::GaussianCopula{2,MT}) where MT = 2*asin(C.Σ[1,2])/π
ρ(C::GaussianCopula{2,MT}) where MT = 6*asin(C.Σ[1,2]/2)/π

0 comments on commit c1d47d7

Please sign in to comment.