-
Notifications
You must be signed in to change notification settings - Fork 10
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
problem with Copula Frank samples #64
Comments
I realized that if you use a parameter greater than or equal to 38 the samples start to come out infinite. |
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 |
Another option (the one chosen by the R package) is to just give up and furnish |
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 |
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. |
Hi, I had a very strange problem, when I want to sample the two-dimensional Frank copula I get infinite values.
F = FrankCopula(2,98.11)
r = rand(F,1)
Just with one value, it is giving infinity
I also tried with parameters like 86.44 and 75.
The text was updated successfully, but these errors were encountered: