projectionmodels
The renewal cycle end to end: premium, claims, and expenses projected over a horizon.
Overview
projectionmodels projects premium, claims, and expenses over a monthly
horizon on exposure you supply — by group, by claim type, and at cost levels
that make the pipeline order (completion, then trend, then adjustments)
explicit rather than implicit.
Assumptions are first-class objects: estimate them from history with
actuarialpy through the built-in adapter, or state them directly and keep
the projection fully reproducible either way.
Installation
pip install projectionmodels
Requires Python 3.10 or newer.
Quick start
import pandas as pd
import projectionmodels as pm
premium_data = pd.DataFrame({
"group_id": ["A", "B"],
"renewal_date": pd.to_datetime(["2027-03-01", "2027-07-01"]),
"current_premium_rate": [100.0, 100.0],
"rate_action": [0.10, 0.20],
})
periods = pd.period_range("2027-01", periods=12, freq="M").astype(str)
exposure = pd.DataFrame(
{"group_id": g, "projection_period": p, "member_months": 1_000.0}
for g in ("A", "B") for p in periods
)
results = pm.PremiumProjection(
premium_data=premium_data,
projection_keys=["group_id"],
exposure=exposure,
exposure_col="member_months",
horizon=pm.ProjectionHorizon("2027-01-01", periods=12),
recurring_rate_action_col="rate_action",
).project()
print(results.to_frame().head())
What's inside
- Premium — renewal-date-aware rate projection with recurring rate actions.
- Claims — projection by claim type with explicit cost levels and pipeline order (complete, trend, adjust).
- Expenses — fixed and variable expense projection alongside the claim stream.
- Assumptions — assumption objects estimated from history via the
actuarialpyadapter or supplied directly. - Book and group — the same machinery at single-group and whole-book level, with results tables by period, group, and component.
- Advanced — extension points for custom models and integrations.
The full API reference and end-to-end worked examples live at openactuarial.org/projectionmodels.html.
The OpenActuarial ecosystem
projectionmodels 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/projectionmodels
cd projectionmodels
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.
Metadata
Release files for projectionmodels 0.8.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 | Provenance | Actions |
|---|---|---|---|---|
| projectionmodels-0.8.2.tar.gz | 78.5 kB | With provenance | Details for projectionmodels-0.8.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| projectionmodels-0.8.2-py3-none-any.whl | Python 3 | none | any | Details for projectionmodels-0.8.2-py3-none-any.whl |
Total release size: 126.7 kB
Release files / projectionmodels-0.8.2.tar.gz
| Download URL | projectionmodels-0.8.2.tar.gz |
|---|---|
| Size | 78.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72642c6954319d66810babdcd934cc2947bd7d86cc395791437b49496ca014bb
|
|
BLAKE2b-256 checksum How to use checksums |
591d6ceb40b8c80d5ec9ad90712afd239388bda51bf7596780d05333a0241620
|
| 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 Jul 13, 2026.
Transparency logRelease files / projectionmodels-0.8.2-py3-none-any.whl
| Download URL | projectionmodels-0.8.2-py3-none-any.whl |
|---|---|
| Size | 48.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c10e5d97d5b05cf1885d2f1f9734f811fe5dee6a26cb88aed812dc8b82c53ab8
|
|
BLAKE2b-256 checksum How to use checksums |
4c822d18e8759d6d9776e4290037e18ce1608ebdf5c45bd12bad8b396406ee75
|
| 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 Jul 13, 2026.
Transparency logSecurity for projectionmodels 0.8.2
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
Both files in this release have been uploaded with provenance metadata.
Attestation for projectionmodels-0.8.2.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 Jul 13, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.