Skip to contents

The 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.

Usage

copula_severity(a, b, copula, trigger_a = 1, trigger_b = 1)

Arguments

a, b

grid_distributions: the loss to each line given that the event hits it.

copula

A two-dimensional gaussian_copula() or archimedean_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