Per-event severity of two lines coupled by a copula
copula_severity.RdThe joint per-event severity of two losses: each line is hit with its
trigger probability and then loses from its grid (a for line A, the
rows; b for B), so mass at 0 is an event that misses the line; the two
per-event marginals are joined by the copula's rectangle probabilities
over their cdfs, as the Python package aggregate's copula bivariate.
The marginals come back exactly. Give its density and steps to
fft_bivariate() for the joint annual loss.
Arguments
- a, b
grid_distributions: the loss to each line given that the event hits it.
- copula
A two-dimensional
gaussian_copula()orarchimedean_copula().- trigger_a, trigger_b
The probability that an event hits each line.
Value
A list as fft_bivariate() returns, without report.
Examples
a <- grid_distribution(1, c(0.25, 0.5, 0.25))
b <- grid_distribution(1, c(0.5, 0.5))
s <- copula_severity(a, b, archimedean_copula("gumbel", 2), trigger_a = 0.5)
s$correlation
#> [1] 0.4991382
joint <- fft_bivariate(poisson_count(3), s$density, s$steps, points = 64)
joint$correlation
#> [1] 0.6964259