Skip to main content

aggregate.fft_bivariate()

The joint annual loss to two lines hit by the same events, by a 2-D FFT:

Usage

aggregate.fft_bivariate(
    frequency,
    severity,
    points,
)

(A, B) = sum over N events of (X_k, Y_k), with severity the joint law of one event’s pair of losses (mass at 0 on an axis is an event that misses that line).

Parameters

frequency: (Poisson, NegativeBinomial, Binomial or Count)

The shared count of events.

severity: JointGrid
points: tuple of (int, int)
Points on each axis of the result.

Returns

tuple of (JointGrid, BivariateReport)

Examples

>>> from prospicio.aggregate import JointGrid, fft_bivariate
>>> from prospicio.distributions import Grid, Poisson
>>> a = Grid(1.0, [0.0, 0.6, 0.4])
>>> b = Grid(1.0, [0.5, 0.5])
>>> joint, report = fft_bivariate(Poisson(2.0), JointGrid.independent(a, b), (64, 64))
>>> round(joint.covariance(), 9)  # Var(N) E[X] E[Y]

1.4