experiencestudies
Experience reporting and monitoring workflows on tidy data.
Overview
experiencestudies turns tidy period-by-cell tables into the reports an
experience team actually ships: experience summaries, actual-versus-expected
against a plan, claimant and concentration analysis, cohort and duration
studies, driver decomposition, rolling monitors, and a one-call Excel packet.
Every workflow is available both as a free function on a DataFrame and
over the canonical actuarialpy.Experience, which carries column roles (revenue,
expense, exposure, date) so views compose without repeating configuration.
Installation
pip install experiencestudies
Requires Python 3.10 or newer.
Quick start
import pandas as pd
import experiencestudies as es
df = pd.DataFrame({
"month": pd.date_range("2024-01-01", periods=12, freq="MS"),
"lob": ["med"] * 12,
"claims": [820, 910, 875, 1010, 990, 1105, 1080, 1240, 1180, 1035, 995, 1150.0],
"premium": [1500.0] * 12,
"member_months": [1000.0] * 12,
})
# free-function form
summary = es.summarize_experience(
df, groupby="lob",
expense_cols="claims", revenue_cols="premium", exposure_cols="member_months",
)
print(summary)
# Experience form — same result, plus composable views
from actuarialpy import Experience
exp = Experience(df, expense="claims", revenue="premium",
exposure="member_months", date="month")
print(es.summary(exp, "lob"))
print(es.rolling(exp, 3).tail(3))
What's inside
- Experience summaries — grouped ratios, per-exposure rates, and rollups
via
summarize_experienceor study functions over theExperience. - Actual versus expected — plan merge, A/E summaries, and forecast comparison.
- Claimant analysis — top claimants, large-claimant flags, and
claim_concentrationthreshold statements. - Cohorts and durations — cohort assembly and duration-based studies.
- Decomposition — frequency/severity/mix drivers that reconcile exactly to the total change.
- Rolling monitors — trailing windows for emerging-experience review.
- Reporting —
underwriting_summaryandto_excel_reportfor a multi-sheet packet.
The full API reference and end-to-end worked examples live at openactuarial.org/experiencestudies.html.
The OpenActuarial ecosystem
experiencestudies is one of seven packages that share conventions — tidy tables,
explicit distribution parameterizations, reproducible random-number handling —
and compose across package seams:
| Package | Role |
|---|---|
| actuarialpy | Calculation primitives the workflow packages build on |
| experiencestudies | Experience reporting, actual-vs-expected, claimant and concentration analysis |
| projectionmodels | Claim, premium, and expense projection over a renewal horizon |
| ratingmodels | Manual and experience rating, credibility, indication, GLM relativities |
| lossmodels | Severity and frequency fitting, aggregate loss distributions |
| extremeloss | Extreme-value tails: POT/GPD, GEV, return levels, splicing |
| risksim | Portfolio Monte Carlo, dependence, reinsurance contracts, risk measures |
Install everything at once with pip install openactuarial.
Development
git clone https://github.com/OpenActuarial/experiencestudies
cd experiencestudies
python -m pip install -e ".[dev]"
pytest
ruff check src tests
CI runs the same gate on Python 3.10–3.14 across Linux and Windows.
Versioning and stability
All ecosystem packages are pre-1.0: minor releases may change APIs, and every release is documented in CHANGELOG.md. Current per-package API stability is tracked at openactuarial.org/stability.html.
License
MIT — see LICENSE.
Release files for experiencestudies 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| experiencestudies-0.5.2.tar.gz | 62.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| experiencestudies-0.5.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 97.6 kB
Release files / experiencestudies-0.5.2.tar.gz
| Download URL | experiencestudies-0.5.2.tar.gz |
|---|---|
| Size | 62.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1ab609a0882bb3c81b6e03632e2856eaf4e87449eb9e4af883b96f2a0a35cc2
|
|
BLAKE2b-256 checksum How to use checksums |
c4f11abe6470523e694bc7037f89a062609350d53a7ab9abbce3c96efd621dfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jul 13, 2026.
Transparency logRelease files / experiencestudies-0.5.2-py3-none-any.whl
| Download URL | experiencestudies-0.5.2-py3-none-any.whl |
|---|---|
| Size | 35.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
587254c18ed4f460458da2c01bd71177d85841d6c45e40f63686929363c4f283
|
|
BLAKE2b-256 checksum How to use checksums |
711e99c054aa3e705592d14efabab8a02a6cf36b65122896a24ba6ffddde0a49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jul 13, 2026.
Transparency log