Skip to contents

The probability that both variables exceed their thresholds, P(U > u, V > v) (type = "and"), or that at least one does, P(U > u or V > v) = 1 - C(u, v) (type = "or").

Usage

copula_exceedance(cop, u, v, type = c("and", "or"))

Arguments

cop

a corehydro_copula.

u, v

numeric scalars in (0, 1).

type

"and" for the joint (both-exceed) probability, "or" for the union (either-exceeds) probability.

Value

a single numeric in [0, 1].

Examples

copula_exceedance(copula("Gumbel", theta = 2), 0.9, 0.9, type = "and")
#> [1] 0.06156716