Skip to content

Frank copula partial_derivative incorrectly documented #342

@rodrigoaragaosantos

Description

@rodrigoaragaosantos

Environment Details

Please indicate the following details about the environment in which you found the bug:

  • Copulas version: 0.8.0
  • Python version: 3.8.5
  • Operating System: Ubuntu 18.04.6 LTS

Error Description

Documentation for partial derivative of Frank Copula is described as partial derivative w.r.t. first entry, but it's implemented w.r.t. second entry.

Documentation reads: partial_derivative(U, V) = F( V | U )
But code implementation suggests partial_derivative(U, V) = F( U | V ) as seen as https://sdv.dev/Copulas/_modules/copulas/bivariate/frank.html#Frank.partial_derivative

Which exactly matches F( U | V ) as seen in:

image

which is itself
(self._g(U) * self._g(V) + self._g(U)) / (self._g(U) * self._g(V) + self._g(1))

according to the Frank.partial_derivative implementation

Steps to reproduce

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThere is an error in the code that needs to be fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions