Skip to content

v2.0.0

Choose a tag to compare

@mynl mynl released this 03 Nov 11:41
· 9 commits to dev since this release

2.0.0 - 2026-11-03

Release 2.0.0, the first since 1.11.0, covers 1.11.1 to 1.63.2. New: event and year loss tables (elt, yelt) as direct Aggregate input, inline or from CSV, TSV, Parquet or Feather, with secondary uncertainty quantized by the Rust eltq through pip install aggregate[elt] (1.12.0 to 1.21.0); chfagg and AggregateCHF, a law computed directly from its characteristic function, covering stable (with tilting), Tweedie, normal inverse Gaussian, variance gamma and tempered stable, with pricing, sharpen, and use as a severity through sev chfagg.NAME (1.27.0 to 1.41.0); stable and tweedie statements that translate parameterizations and store named laws, with arithmetic on stable laws (1.22.0, 1.23.0, 1.42.0, 1.43.0); exact dyadic lattice buckets for discrete severities, Portfolios and bivariate axes (1.24.0 to 1.26.0); closed-form layered moments for beta, Lomax and a shifted Pareto (1.17.0); library.agg examples of event and year loss tables and two more characteristic function laws (1.63.2). Changed: bs and log2 move for discrete books on a lattice, and density values scale with bs, with probabilities at the atoms unchanged. Thanks to @KasraBashirioskooei for two pull requests: the deductible form in the layer phrase (#23) and the layer pdf at the limit (#24).

Fixed: a correctness pass (1.43.1 to 1.63.1), and numbers move. Reinsured and layered discrete programs that returned the right mean and the wrong distribution now return the right one (1.45.0 to 1.48.0). A sev clause takes exactly the numbers its family takes, so norm 100 cv 0.3 is N(100, 30), was N(100, 1) (1.51.0). Layer moments are correct far in the tail, and a shifted law c * law + b takes its moments from the law with the shift applied after, so its skewness is right (1.49.0, 1.50.0). PricingBounds upper bounds rise where the reference saturates, and convex_distortion no longer puts a false mass at zero (1.52.0). Validation checks each reinsured view, and a build that fails emits one ValidationWarning where it was silent before (1.56.0 to 1.58.0). A DecL list of any length parses (1.43.1). Three pedagogy.py functions and ClassicalPremium.calibrate run again, and the Fischer premium takes fischer_power (1.63.0). Earlier fixes: a signed book of lattice units holds its mass (1.25.0); Tweedie.fz returns a law for p > 2, p < 0 and p = inf (1.31.0); a quoted label keeps # (1.11.2).

Breaking, hence 2.0. New reserved words: elt, yelt, no2u, unit, stable and chfagg, and a name can no longer begin stable., tweedie. or chfagg.. A sev clause refuses too many or too few shape parameters for its family: write expon for expon 1, and [lognorm expon] [0.5 _] for [lognorm expon] [0.5 1] (1.51.0). price takes exactly one of p and a, p > 1 raises, and Distortion.ccoc is keyword-only (1.59.0). cede beside pc or slide raises (1.53.0), and so does cede beside swing (1.59.0). dsev probabilities that miss 1 by more than a relative 1e-5 raise (1.44.0). ValidationWarning is an error under a warnings-as-errors filter, and Validation.passes is false for a failing reinsured view (1.56.0, 1.58.0). cll leaves the default available_distortions() (1.62.0). TEST_SUITE_FILENAME and Underwriter.test_suite_file are removed, and Underwriter.interpret_file requires a filename (1.61.0). Message text changed throughout, so code that matches on message strings needs the new wording (1.60.0). aggregate.ft.FourierTools is deprecated in favor of AggregateCHF (1.34.0).