Copulas icon indicating copy to clipboard operation
Copulas copied to clipboard

Gumbel copula probability density incorrect for theta = 1

Open LiZhongyangLi opened this issue 3 years ago • 0 comments

Environment Details

  • Copulas version: 0.5.1
  • Python version: 3.6.3
  • Operating System: CentOS Linux release 7.9.2009

Error Description

When theta is 1, Gumbel copula should be reduced to the independence copula with a culumative distribution equal to uv and a probability density equal constant 1. In Copulas/copulas/bivariate/gumbel.py line 46 this is implemented as the product of u and v:

  if self.theta == 1:
            return np.multiply(U, V)

Also in the comment the class is mistakenly described as the Clayton copula:

"""Class for clayton copula model."""

Steps to reproduce

from copulas.bivariate import gumbel
g = gumbel.Gumbel()
g.theta = 1
g.probability_density(np.array([0.3,0.2]).reshape(1,2))
array([0.06])

LiZhongyangLi avatar Oct 27 '21 19:10 LiZhongyangLi