Expand description
Factor selection for rectangular cumulative triangles.
Inputs are row-major losses in consistent units; counts identify each row observed prefix at the caller’s valuation date. No calendar assumptions are introduced here. Unselectable links produce NaN; callers validate results.
Functions§
- ex_
hi_ lo_ observed_ counts - Counts-aware ex-hi/lo (drop largest and smallest ratio per link; fall back to simple average when fewer than 3 pairs).
- simple_
average_ observed_ counts - Counts-aware simple average.
last_n=Some(k)restricts to thekmost recent eligible origins per link (origins are ordered with oldest first). - volume_
weighted_ last_ n_ observed_ counts - Counts-aware volume-weighted, restricted to the
last_nmost recent eligible origins (largest index = most recent in the right-triangle convention).