Skip to content

The method 'select_copula' of Bivariate return wrong CopulaType #101

Closed
@gaboolic

Description

@gaboolic
  • Copulas version: 0.2.2 (2019-07-31)
  • Python version: python 3.6
  • Operating System: mac

Description

In copulas/bivariate/base.py
class CopulaTypes(Enum):

CLAYTON = 0
FRANK = 1
GUMBEL = 2
INDEPENDENCE = 3

But the method 'select_copula' , is
copula_candidates = [frank]
copula_candidates.append(clayton)
copula_candidates.append(gumbel)

They're not in the same order.
When frank.tau > 0 and frank is best, it returns clayton. It should return frank

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions