Skip to main content

Module aggregate

Module aggregate 

Source
Expand description

Portfolio-level slice reducers.

Functions§

paid_ratio
Portfolio paid ratio: total paid / total ultimate.
portfolio_loss_ratio
Portfolio loss ratio: total ultimate / total premium. Returns NaN if slice lengths differ or total premium is non-positive.
total_paid
Sum of latest observed cumulative losses (total “paid to date” across origin years) without intermediate heap allocation.
total_reserve
Sum of a per-origin reserve vector.
total_ultimate
Sum of a per-origin ultimate vector.