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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e69e581fb84e155e03734e9ff34c1b4acd0eedeb345d59cf0eb037bddedc6058
|
|
| MD5 |
2a3c2f5f7ca75ba26033de5d7ebef68b
|
|
| BLAKE2b-256 |
3163b77400bd4d6f7507cf994af7456b37170818a59e1cc550f20915f28d2e5f
|
Provenance
The following attestation bundles were made for pystatsinsurance-0.1.1.tar.gz:
Publisher:
publish.yml on sgcx-org/pystatsinsurance
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pystatsinsurance-0.1.1.tar.gz -
Subject digest:
e69e581fb84e155e03734e9ff34c1b4acd0eedeb345d59cf0eb037bddedc6058 - Sigstore transparency entry: 1618908458
- Sigstore integration time:
-
Permalink:
sgcx-org/pystatsinsurance@a4437a1a7f5e76b71e142b21ea1b86439d1ddd88 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/sgcx-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a4437a1a7f5e76b71e142b21ea1b86439d1ddd88 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pystatsinsurance-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pystatsinsurance-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17c67ad5231eaf5ffa0d8ecea7e8779bf9315160194ffc113a734cd044ed3f20
|
|
| MD5 |
42c5c4dd34de6c63ce5a59a8fb881408
|
|
| BLAKE2b-256 |
83bf8a3725382bd4709512d9837ad3cd01b4a6f755ff9f6d3033b55a51635f6e
|
Provenance
The following attestation bundles were made for pystatsinsurance-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on sgcx-org/pystatsinsurance
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pystatsinsurance-0.1.1-py3-none-any.whl -
Subject digest:
17c67ad5231eaf5ffa0d8ecea7e8779bf9315160194ffc113a734cd044ed3f20 - Sigstore transparency entry: 1618908550
- Sigstore integration time:
-
Permalink:
sgcx-org/pystatsinsurance@a4437a1a7f5e76b71e142b21ea1b86439d1ddd88 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/sgcx-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a4437a1a7f5e76b71e142b21ea1b86439d1ddd88 -
Trigger Event:
release
-
Statement type: