Closed M-Soundouss closed 4 years ago
Hello,
Addressing 2 issues:
That said, after reviewing the code, I noticed I made a mistake with the random generation in that I should have sampled the data with replacement. I'll fix it in the next update.
Hello,
Thanks for your response. Sorry I was not clear enough, what I meant is that :
print(cop.cdf(np.array([[0.1, 0.5, 1.]])))
# Gives [0.13366667]
print(cop.cdf(np.array([[0.1, 1., 1.]])))
# Gives [0.13366667]
print(cop.cdf(np.array([[1., 1., 1.]])))
# Gives [0.13366667]
I understand that cdf is deterministic but it does not mean that it should map all possible inputs into 0.13366667, right?
This behavior is different from other types of copulae (like the normal one) where the cdf function gives the output I expected.
Yes, you're right. Thank you for pointing out the bug.
The issue arises because I was trying to make it convenient by auto-adjusting the data into pseudo-observations when it is not already so. When I take it away, it'll be correct. I'll release the fix in the next copy.
Thank you very much! Looking forward to it.
@M-Soundouss I pushed up a fix in 0.7.0.
Thank you very much!
Hello,
I am trying to use the EmpiricalCopula class and I am having some difficulties.
Example code :
I find that the cop.cdf always gives the same number no matter what I use in the input. Am I using it wrong?
Thanks for writing this package. Best,