gofCopula: Goodness-of-Fit Tests for Copulae

The last decades show an increased interest in modeling various types of data through copulae. Different copula models have been developed, which lead to the challenge of finding the best fitting model for a particular dataset. From the other side, a strand of literature developed a list of different Goodness-of-Fit (GoF) tests with different powers under different conditions. The usual practice is the selection of the best copula via the p-value of the GoF test. Although this method is not purely correct due to the fact that non-rejection does not imply acception, this strategy is favored by practitioners. Unfortunately, different GoF tests often provide contradicting outputs. The proposed R-package brings under one umbrella 13 most used copulae plus their rotated variants together with 16 GoF tests and a hybrid one. The package offers flexible margin modeling, automatized parallelization, parameter estimation, as well as a user-friendly interface, and pleasant visualizations of the results. To illustrate the functionality of the package, two exemplary applications are provided.

Ostap Okhrin , Simon Trimborn , Martin Waltz

CRAN packages used

copula, TwoCop, VineCopula, gofCopula, progress, yarrr

CRAN Task Views implied by cited packages

Distributions, ExtremeValue, Finance, Multivariate


Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".


For attribution, please cite this work as

Okhrin, et al., "The R Journal: gofCopula: Goodness-of-Fit Tests for Copulae", {The R Journal}, 2020

BibTeX citation

  author = {Okhrin, Ostap and Trimborn, Simon and Waltz, Martin},
  title = {The R Journal: gofCopula: Goodness-of-Fit Tests for Copulae},
  journal = {{The R Journal}},
  year = {2020},
  note = {https://doi.org/10.32614/RJ-2021-060},
  doi = {10.32614/RJ-2021-060},
  volume = {13},
  issue = {1},
  issn = {2073-4859},
  pages = {467-498}