-
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
PDF returning Inf when should be zero with Frank Copula #247
Comments
Are you sure it should be zero ? I guess that inverting the parameter basically rotates the frank copula by 1/4 turn, so it appears logic that the limit in the lower corner is not the same. Do you have a formal reference for this pdf ? |
From this wikipedia page, after checking that the Frank copula generator is the same as ours, we get for the denisty the formula and thus which is increasing in theta, one if theta=0, and tends to 0 at theta = -infty and +infty as theta -> +infty. So basically it says that the value of the pdf in zero should not be infinity but rather this ? Maybe there is a mistake somewhere |
Moreover, the R::copula package seems to return 0 in both cases, while the limiting behavior does not look like 0: > dCopula(c(0,0), frankCopula(2.5))
[1] 0
> dCopula(c(0,0), frankCopula(-2.5))
[1] 0
> dCopula(c(0.00001,0), frankCopula(-2.5))
[1] 0
> dCopula(c(0.00001,0.00001), frankCopula(-2.5))
[1] 0.2235749
> dCopula(c(0.000001,0.000001), frankCopula(-2.5))
[1] 0.2235648
> dCopula(c(0.000001,0.000001), frankCopula(2.5))
[1] 2.72355
> So I think we have two options: Either we keep the current behavior, or we fix it by using the julia> θ = 2.5
2.5
julia> θ / (1-exp(-θ))
2.72356372458463
julia> θ = -2.5
-2.5
julia> θ / (1-exp(-θ))
0.22356372458463003
julia> |
We could also fix the other corners for |
I'm having trouble seeing that this is an issue with the corners. What struck me was not that the results were different if |
Simply think about the pdf of a exponential random variable, which is inf at 0: being inf is not a problem for the integral of the function to be 1. |
That is a good point. I just don't see any reason for it to blow up to
|
I do not even understand what is this graph supposed to be ? |
Sorry for the confusion--I'm taking the equation for the convolution, |
MWE:
Returns
0
ifθ = 2.5
instead ofθ = -2.5
The text was updated successfully, but these errors were encountered: