Proteus Actuarial Library: A package for building and running stochastic actuarial models in Python.
Project description
Proteus Actuarial Library
An actuarial stochastic modeling library in python.
Note This library is still in beta!
📚 Development Guide - Get started with development setup and testing
Introduction
The Proteus Actuarial Library (PAL) is a fast, lightweight framework for building simulation-based actuarial and financial models. It handles complex statistical dependencies using copulas while providing simple, intuitive syntax.
Key Features:
- Built on NumPy/SciPy for performance
- Optional GPU acceleration with CuPy
- Automatic dependency tracking between variables
- Comprehensive statistical distributions
- Clean, Pythonic API
Quick Start
from pal import distributions, copulas
# Create stochastic variables
losses = distributions.Gamma(alpha=2.5, beta=2).generate()
expenses = distributions.LogNormal(mu=1, sigma=0.5).generate()
# Apply statistical dependencies
copulas.GumbelCopula(alpha=1.2, n=2).apply([losses, expenses])
# Variables are now correlated
total = losses + expenses
Installation
# Basic installation
pip install proteus-actuarial-library
# With GPU support
pip install proteus-actuarial-library[gpu]
Documentation
Read the full documentation on Read the Docs
- Usage Guide - Comprehensive examples and API documentation
- Development Guide - Setting up the development environment and running tests
- Examples - Example scripts showing how to use the library
Project Status
PAL is currently in early release preview (beta). There are a limited number of supported distributions and reinsurance contracts. We are working on:
- Adding more distributions and loss generation types
- Making it easier to work with multi-dimensional variables
- Adding support for Catastrophe loss generation
- Adding support for more reinsurance contract types (Surplus, Stop Loss etc)
- Stratified sampling and Quasi-Monte Carlo methods
- Reporting dashboards
Issues
Please log issues on our github page.
Contributing
You are welcome to contribute pull requests. Please see the Contributer License Agreement
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 proteusllp_actuarial_library-0.2.1.tar.gz.
File metadata
- Download URL: proteusllp_actuarial_library-0.2.1.tar.gz
- Upload date:
- Size: 54.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
effc088ef099a74479649b0eaefb8a9e8d03566e1ba3841a098e48920cd09a84
|
|
| MD5 |
551a10489909cc1a56eb4f3ebe0ec6e6
|
|
| BLAKE2b-256 |
11452fc574f4c0f32e2b1ba575a7e9b087078a72a7c1aeb66a11f69c83d72503
|
Provenance
The following attestation bundles were made for proteusllp_actuarial_library-0.2.1.tar.gz:
Publisher:
ci.yml on ProteusLLP/proteusllp-actuarial-library
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
proteusllp_actuarial_library-0.2.1.tar.gz -
Subject digest:
effc088ef099a74479649b0eaefb8a9e8d03566e1ba3841a098e48920cd09a84 - Sigstore transparency entry: 667740988
- Sigstore integration time:
-
Permalink:
ProteusLLP/proteusllp-actuarial-library@89543cb3ff4ba565807df9467de915a40798c10d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/ProteusLLP
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@89543cb3ff4ba565807df9467de915a40798c10d -
Trigger Event:
release
-
Statement type:
File details
Details for the file proteusllp_actuarial_library-0.2.1-py3-none-any.whl.
File metadata
- Download URL: proteusllp_actuarial_library-0.2.1-py3-none-any.whl
- Upload date:
- Size: 47.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3211b5326c5b38baa0c11a2110425a01a11b35b44404704483aaa492938ba207
|
|
| MD5 |
9222e088268df933a8591681ad61c8bd
|
|
| BLAKE2b-256 |
da639b900c8b9f68c0ffc44b785611fe40680f333c6dcd32770e261a5f94b8e8
|
Provenance
The following attestation bundles were made for proteusllp_actuarial_library-0.2.1-py3-none-any.whl:
Publisher:
ci.yml on ProteusLLP/proteusllp-actuarial-library
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
proteusllp_actuarial_library-0.2.1-py3-none-any.whl -
Subject digest:
3211b5326c5b38baa0c11a2110425a01a11b35b44404704483aaa492938ba207 - Sigstore transparency entry: 667740995
- Sigstore integration time:
-
Permalink:
ProteusLLP/proteusllp-actuarial-library@89543cb3ff4ba565807df9467de915a40798c10d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/ProteusLLP
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@89543cb3ff4ba565807df9467de915a40798c10d -
Trigger Event:
release
-
Statement type: