Repository navigation
Conversation
| - BUG/REF copula another round for 0.13 (:pr:`7648`) | ||
| - Temporarily change the default RNG in check_random_state (:pr:`7652`) | ||
| - More copula improvements for 0.13 (:pr:`7723`) | ||
| - Add multivariate pdf (dim>2) for Frank and Gumbel copula |
There was a problem hiding this comment.
not 0.13, this will be in 0.14 o4 0.15
|
Thanks for the PR I think we should keep special casing k_dim = 2...4 for pdf that need I guess pdf that need sterling or polylog will not be automatically vectorized for u u.shape = (nobs, k_dim) |
| z = np.array(z)[..., None] | ||
|
|
||
| k = np.arange(n+1) | ||
| k = range(n + 1) |
There was a problem hiding this comment.
this will be an iterator and not a list
There was a problem hiding this comment.
Yes, it is the same problem like in gumbel pdf (see comment) because the elemnts of np.arange are int32 and therefore the cache of sterling2, too, which quickly leads to overflow.
They are, because it was necessary for the tests. (therefore this ugly extension in the power of pda) |
NumPy's guide.
I implemented multivariate copula density for Frank and Gumbel (archimedian) using https://arxiv.org/abs/1207.1708
I did some optimizations for the _special module for sterling numbers.
Regarding the polylogarithm: I hope it is ok, that I added an import from package mpmath because this implementation is much more stable numerically.
Tests were added for higher dimensions. However I am not totally sure if I did this the intended way.