You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<a href="https://github.com/SciML/ColPrac"><img src="https://img.shields.io/badge/contributor's%20guide-ColPrac-blueviolet" alt="ColPrac: Contributor's Guide on Collaborative Practices for Community Packages" /></a>
This function computes the Williamson d-transform of the provided random variable $X$ using the [`WilliamsonTransforms.jl`](https://github.com/lrnv/WilliamsonTransforms.jl) package. See [williamson1955multiply, mcneil2009](@cite) for the literature.
99
+
This function computes the Williamson d-transform of the provided random variable $X$. See [williamson1955multiply, mcneil2009](@cite) for the literature.
100
100
101
101
!!! info "`max_monotony` of Williamson generators"
102
102
The $d$-transform of a positive random variable is $d$-monotone but not $k$-monotone for any $k > d$. Its max monotony is therefore $d$. This has a few implications, one of the biggest is that the $d$-variate Archimedean copula that corresponds has no density.
@@ -115,15 +115,15 @@ The Williamson d-transform is a bijective transformation[^1] from the set of pos
115
115
116
116
This bijection is to be taken carefuly: the bijection is between random variables *with unit scales* and generators *with common value at 1*, sicne on both rescaling does not change the underlying copula.
117
117
118
-
This transformation is implemented through one method in the Generator interface that is worth talking a bit about : `williamson_dist(G::Generator, d)`. This function computes the inverse Williamson d-transform of the d-monotone archimedean generator ϕ, still using the [`WilliamsonTransforms.jl`](https://github.com/lrnv/WilliamsonTransforms.jl) package. See [williamson1955multiply, mcneil2009](@cite).
118
+
This transformation is implemented through one method in the Generator interface that is worth talking a bit about : `williamson_dist(G::Generator, d)`. This function computes the inverse Williamson d-transform of the d-monotone archimedean generator ϕ. See [williamson1955multiply, mcneil2009](@cite).
119
119
120
120
To put it in a nutshell, for ``\phi`` a ``d``-monotone archimedean generator, the inverse Williamson-d-transform of ``\\phi`` is the cumulative distribution function ``F`` of a non-negative random variable ``R``, defined by :
The [`WilliamsonTransforms.jl`](https://github.com/lrnv/WilliamsonTransforms.jl) package implements this transformation (and its inverse, the Williamson d-transfrom) in all generality. It returns this cumulative distribution function in the form of the corresponding random variable `<:Distributions.ContinuousUnivariateDistribution` from `Distributions.jl`. You may then compute :
126
+
It returns this cumulative distribution function in the form of the corresponding random variable `<:Distributions.ContinuousUnivariateDistribution` from `Distributions.jl`. You may then compute :
127
127
* The cdf via `Distributions.cdf`
128
128
* The pdf via `Distributions.pdf` and the logpdf via `Distributions.logpdf`
129
129
* Samples from the distribution via `rand(X,n)`.
@@ -184,14 +184,14 @@ This is why `williamson_dist(G::Generator,d)` is such an important function in t
184
184
185
185
```@example
186
186
using Copulas: williamson_dist, FrankGenerator
187
-
williamson_dist(FrankGenerator(7), Val{3}())
187
+
williamson_dist(FrankGenerator(7), 3)
188
188
```
189
189
190
190
For the Frank Copula, as for many classic copulas, the distribution used is known. We pull some of them from `Distributions.jl` but implement a few more, as this Logarithmic one. Another useful example are negatively-dependent Clayton copulas:
191
191
192
192
```@example
193
193
using Copulas: williamson_dist, ClaytonGenerator
194
-
williamson_dist(ClaytonGenerator(-0.2), Val{3}())
194
+
williamson_dist(ClaytonGenerator(-0.2), 3)
195
195
```
196
196
197
197
for which the corresponding distribution is known but has no particular name, thus we implemented it under the `ClaytonWilliamsonDistribution` name.
@@ -209,7 +209,7 @@ for which the corresponding distribution is known but has no particular name, th
209
209
We use this fraily approach for several generators, since sometimes it is faster, including e.g. the Clayton one with positive dependence:
0 commit comments