Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design automatic soundness test for all copulas. #92

Closed
lrnv opened this issue Nov 30, 2023 · 0 comments · Fixed by #93
Closed

Design automatic soundness test for all copulas. #92

lrnv opened this issue Nov 30, 2023 · 0 comments · Fixed by #93

Comments

@lrnv
Copy link
Owner

lrnv commented Nov 30, 2023

The idea is that a few basic checks should exists and be the same for every copulas. In these tests, we might include :

  • Marginal uniformity, to ensure that the model is indeed a copula. This can include verifying that the cdf has uniform margins AND that marginals samples are uniformely distributed (so a check on the cdf and a check on the samples). We alreayd have this one but we could generlize it a bit more and make it automatic

  • check mandatory values of pdf&cdf on the frontier of the hypercube

  • check that cdf is in [0,1] and that pdf is positive on some random points

  • check numerically that the pdf is indeed the derivative of the cdf indeed

  • check that tau \circ tau_inv is the identity on the domain

  • check that rho \circ rho_inv is identitdy in the domain

  • check that fitting the model works under a sklardist construct

  • Archimedean have specific tests themselves.

  • Generators could be checked numerically to be indeed monotone enough (compute theoretically the derivatives up to d-2 for exemple and check signs).

Some of these checks need to filter the models on the ones that implements a certain method... this looks complicated to do and i do not really want to do it by hand, but it is the right thing to do i think. Other ideas on stuff that could be automaticcally checked ?

lrnv added a commit that referenced this issue Nov 30, 2023
fixes #92

Not finished yet.
@lrnv lrnv closed this as completed in #93 Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant