Skip to main content

PyStatsInsurance

Actuarial and insurance statistical computing for Python.

Status: 0.1.0 — first module shipped. Chain-ladder reserving is available now; more actuarial methods are on the roadmap below.

PyStatsInsurance is part of the open-core PyStatistics family:

Package Layer
pystatistics Fundamental, general statistics
pystatsbio Biotech / pharma statistics
pystatsclinical Clinical-trial / clinical-research statistics
pystatsgenomic Genomics / computational-biology statistics
pystatsfinance Financial / quantitative statistics
pystatsinsurance Actuarial / insurance statistics

Like its siblings, it builds on pystatistics for the general statistical layer and adds methods specific to actuarial and insurance work.

What's available now (0.1.0)

Chain-ladder loss reserving from a cumulative-claims development triangle (unknown lower-right entries marked NaN):

import numpy as np
from pystatsinsurance import reserving

triangle = np.array([
    [100.0, 150.0, 180.0],
    [110.0, 165.0, np.nan],
    [120.0, np.nan, np.nan],
])
result = reserving.chain_ladder(triangle)
print(result.summary())

chain_ladder computes volume-weighted age-to-age development factors, the completed triangle, ultimate claims per origin period, and the outstanding reserve per origin period and in total. It fails loud on a ragged / non-2×2 / negative triangle and when a development factor cannot be derived.

Roadmap (candidates, not commitments)

  • Mack chain-ladder (reserve standard error) and Bornhuetter–Ferguson reserving.
  • Frequency / severity loss models and aggregate-loss distributions.
  • Credibility theory and life-actuarial methods.

Installation

pip install pystatsinsurance

License

MIT © Hai-Shuo. Part of the SGCX open-core ecosystem.

Metadata

Release files for pystatsinsurance 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pystatsinsurance 0.1.1
File Size Uploaded Provenance
pystatsinsurance-0.1.1.tar.gz 14.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pystatsinsurance 0.1.1
File Interpreter ABI Platform
pystatsinsurance-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.4 kB

Release files / pystatsinsurance-0.1.1.tar.gz

Download URL pystatsinsurance-0.1.1.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e69e581fb84e155e03734e9ff34c1b4acd0eedeb345d59cf0eb037bddedc6058
BLAKE2b-256 checksum
How to use checksums
3163b77400bd4d6f7507cf994af7456b37170818a59e1cc550f20915f28d2e5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 24, 2026.

Transparency log

Release files / pystatsinsurance-0.1.1-py3-none-any.whl

Download URL pystatsinsurance-0.1.1-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17c67ad5231eaf5ffa0d8ecea7e8779bf9315160194ffc113a734cd044ed3f20
BLAKE2b-256 checksum
How to use checksums
83bf8a3725382bd4709512d9837ad3cd01b4a6f755ff9f6d3033b55a51635f6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 24, 2026.

Transparency log

Security for pystatsinsurance 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pystatsinsurance-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page