Expand description
Copulas: dependence between marginals, separate from the marginals.
A copula draws one vector of uniforms per simulation; marginals are
applied by inverse transform (simulate). Simulation i uses only
StreamRng::new(seed, i), so results do not depend on thread count and
any simulation replays alone (see docs/design/risk.md).
Structs§
- Archimedean
Copula - An exchangeable
d-dimensional Archimedean copula with generatorψ_θ, sampled by Marshall and Olkin’s frailty method: draw a frailtyV(whose Laplace transform isψ), thendunit exponentialsE_j, and returnu_j = ψ(E_j / V). - Gaussian
Copula - The Gaussian copula with correlation matrix
R. - StudentT
Copula - The Student t copula with correlation matrix
Randnudegrees of freedom.
Enums§
- Archimedean
- An Archimedean copula family; see
ArchimedeanCopula.
Traits§
- Copula
- A
d-dimensional copula.
Functions§
- iman_
conover - Reorders each component’s draws so the components have (close to) the target correlation of normal scores, by Iman and Conover (1982). Every component keeps exactly its own draws; only their pairing across simulations changes.
- simulate
- Simulates marginals joined by a copula: in simulation
i, drawsufromcopulawithStreamRng::new(seed, i)and sets componentjtomarginals[j].quantile(u_j).