Coder Social home page Coder Social logo

Comments (3)

lrnv avatar lrnv commented on June 19, 2024

What I remember without taking a look at it is that the number of derivatives you need is more or less the dimension of the model. Therefore, my ambition was to use ForwardDiff for the default implementation on ArchimedeanCopulas, as you point out. Feel free to implement it and PR if you want, otherwise I'll do it this summer. No need to stop arbitrarily at d=6, I plan to just let it be generic.

from copulas.jl.

mlkrock avatar mlkrock commented on June 19, 2024

I just made a PR but I stopped at d=9, so can already say it's better than R there, but I'm not sure of a way to make it a derivative for general dimension d.

Edit: This PR result can be a problem in some cases, for example
pdf(JoeCopula(2,5.5),[.999;.999])
returns NaN, real value is approximately 1276.1015874698915.
I believe the problem is from algebraic cancellations that occur with ϕ and ϕ⁻¹ and these are not captured in the generic AD version of this pdf/logpdf.

JoeCopula generators seem to be a problem. Also getting several 1's when generating from JoeCopula (but not when the parameter is smaller)
findall(isone.(rand(JoeCopula(2,5.5),4000)))

from copulas.jl.

lrnv avatar lrnv commented on June 19, 2024

Hey ! I commented on the PR, let's discuss the implementation details there.

The Joe problem should maybe become a test case ? I agree with you that this is not satisfactory, as 1/1000 quantiles are sometimes needed when dealing with extremal problems (and therefore should be accurate).

from copulas.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.