Skip to main content

Actuarial and insurance statistical computing for Python

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pystatsinsurance-0.1.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pystatsinsurance-0.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file pystatsinsurance-0.1.1.tar.gz.

File metadata

  • Download URL: pystatsinsurance-0.1.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pystatsinsurance-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e69e581fb84e155e03734e9ff34c1b4acd0eedeb345d59cf0eb037bddedc6058
MD5 2a3c2f5f7ca75ba26033de5d7ebef68b
BLAKE2b-256 3163b77400bd4d6f7507cf994af7456b37170818a59e1cc550f20915f28d2e5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pystatsinsurance-0.1.1.tar.gz:

Publisher: publish.yml on sgcx-org/pystatsinsurance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pystatsinsurance-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pystatsinsurance-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17c67ad5231eaf5ffa0d8ecea7e8779bf9315160194ffc113a734cd044ed3f20
MD5 42c5c4dd34de6c63ce5a59a8fb881408
BLAKE2b-256 83bf8a3725382bd4709512d9837ad3cd01b4a6f755ff9f6d3033b55a51635f6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pystatsinsurance-0.1.1-py3-none-any.whl:

Publisher: publish.yml on sgcx-org/pystatsinsurance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page