Coder Social home page Coder Social logo

Comments (5)

Santymax98 avatar Santymax98 commented on June 21, 2024

I realized that if you use a parameter greater than or equal to 38 the samples start to come out infinite.

from copulas.jl.

lrnv avatar lrnv commented on June 21, 2024

There are overflow happening, this is a pitty. You may obtain the right answer by use bigfloats :

julia> BF = FrankCopula(2,big(100.0))
FrankCopula{2, BigFloat}=100.0)

julia> rand(BF)
2-element Vector{Float64}:
 0.9345996751765854
 0.9568914260322661

However, it looks like it might be possible to achieve the same kind of results with Float64 by leveraging the LogExpFunctions.logm1exp() function if we take enough care, I tried a few things in #65 without much success for the moment, but I do not give up. You may take a look if you want :)

from copulas.jl.

lrnv avatar lrnv commented on June 21, 2024

Another option (the one chosen by the R package) is to just give up and furnish MCopula samples instead for theta > 38 ( they also have a hardcoded 38 there, you did find the right value). But I am not sure I am willing to do that without at least a warning..

from copulas.jl.

Santymax98 avatar Santymax98 commented on June 21, 2024

I am working with dynamic copulas, that is, the parameter can change over time and in the simulations it gives some parameters a little greater than 30, I think that for now I will use the BigFloat option, it is strange that for very small negative values, for example -120 he gives samples without problems

from copulas.jl.

lrnv avatar lrnv commented on June 21, 2024

Did you took a look at those samples ? They might not be very good ones. In #65 I am actually adding a test on uniformity of marginals to check for these kind of stuff more seriously in the future.

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.