Comments (3)
What I remember without taking a look at it is that the number of derivatives you need is more or less the dimension of the model. Therefore, my ambition was to use ForwardDiff for the default implementation on ArchimedeanCopula
s, as you point out. Feel free to implement it and PR if you want, otherwise I'll do it this summer. No need to stop arbitrarily at d=6, I plan to just let it be generic.
from copulas.jl.
I just made a PR but I stopped at d=9, so can already say it's better than R there, but I'm not sure of a way to make it a derivative for general dimension d.
Edit: This PR result can be a problem in some cases, for example
pdf(JoeCopula(2,5.5),[.999;.999])
returns NaN, real value is approximately 1276.1015874698915.
I believe the problem is from algebraic cancellations that occur with ϕ
and ϕ⁻¹
and these are not captured in the generic AD version of this pdf/logpdf.
JoeCopula generators seem to be a problem. Also getting several 1's when generating from JoeCopula (but not when the parameter is smaller)
findall(isone.(rand(JoeCopula(2,5.5),4000)))
from copulas.jl.
Hey ! I commented on the PR, let's discuss the implementation details there.
The Joe problem should maybe become a test case ? I agree with you that this is not satisfactory, as 1/1000 quantiles are sometimes needed when dealing with extremal problems (and therefore should be accurate).
from copulas.jl.
Related Issues (20)
- [Docs] Clarify the fitting example
- “SUite” -> “Suite” HOT 1
- [Docs] Typo HOT 1
- [Docs] Typo HOT 1
- [Docs] Typo HOT 1
- [New feature] Conditionning HOT 5
- [New feature] Rosenblatt (and inverse) transformations HOT 3
- [New feature] Plotting / Vizualization HOT 2
- [Docs] Reorganize the docs
- [After Paper] Update citations guidelines
- Something wrong with this reference? HOT 3
- Can you recognize this one? HOT 1
- [New feature] Faster sampling for small-dimensional cops
- [Docs] up documenter
- Σ field from ArchimedeanCopula removed in patch release HOT 18
- [bug] Change from Id check to diagonal check
- [Docs] Clarify what is API and what is internals seriously
- [bug] Dont always sample Float64's
- Numerically instable Gaussian cdf's - Copulas + Turing
- [feature] Write a proper Bijector for Turing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copulas.jl.