Skip to main content

aggregate - working with compound probability distributions

Project description

What is it?

aggregate is a Python package providing fast, accurate, and expressive data structures designed to make working with probability distributions easy and intuitive. Its primary aim is to be an educational tool, allowing experimenation with complex, real world distributions. It has applications in insurance, risk management, actuarial science and related areas.

Main Features

Here are just a few of the things that aggregate does well:

  • Output in tabular form using Pandas

  • Human readable persistence in YAML

  • Built in library of insurance severity curves for both catastrophe and non catastrophe lines

  • Built in parameterization for most major lines of insurance in the US, making it easy to build a “toy company” based on market share by line

  • Clear distinction between catastrophe and non-catastrohpe lines

  • Use of Fast Fourier Transforms throughout differentiates aggregate from tools based on simulation

  • Fast, accurate - no simulations!

  • Graphics and summaries following Pandas and Matplotlib syntax

Potential Applications

  • Education
    • Building intuition around how loss distribtions convolve

    • Convergence to the central limit theorem

    • Generalized distributions

    • Compound Poisson distributions

    • Mixed distributiuons

    • Tail behavior based on frequency or severity tail

    • Log concavity properties

  • Pricing small insurance portfolios on a claim by claim basis

  • Analysis of default probabilities

  • Allocation of capital and risk charges

  • Detailed creation of marginal loss distributions that can then be sampled and used by other simulation software, e.g. to incorporate dependence structures, or in situations where it is necessary to track individual events, e.g. to compute gross, ceded and net bi- and trivariate distributions.

Missing Features

Here are some important things that aggregate does not do:

  • It is strictly univariate. It is impossible to model bivariate or multivariate distributions. As a result aggregate is fast and accurate

  • aggregate can model correlation between variables using shared mixing variables. This is adequate to build realistic distributions but would not be adequate for an industrial- strength insurance company model.

Documentation

http://www.mynl.com/aggregate/index.html

Where to get it

Installation

pip install aggregate

Dependencies

License

[BSD 3](LICENSE)

Contributing to aggregate

All contributions, bug reports, bug fixes, documentation improvements, enhancements and ideas are welcome.

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

aggregate-0.9.1.tar.gz (135.6 kB view details)

Uploaded Source

Built Distribution

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

aggregate-0.9.1-py3.8.egg (278.5 kB view details)

Uploaded Egg

File details

Details for the file aggregate-0.9.1.tar.gz.

File metadata

  • Download URL: aggregate-0.9.1.tar.gz
  • Upload date:
  • Size: 135.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for aggregate-0.9.1.tar.gz
Algorithm Hash digest
SHA256 0d3f5a3169af5c247795460a3324d9ae0ff70f5e9bef02062ab6ae2ea86ee662
MD5 7cd988915f08cd335060bbbb7c2d814d
BLAKE2b-256 e11708a30b58e03eb5788ec06d02c253d15823d95198de89a61162a715c6fc26

See more details on using hashes here.

File details

Details for the file aggregate-0.9.1-py3.8.egg.

File metadata

  • Download URL: aggregate-0.9.1-py3.8.egg
  • Upload date:
  • Size: 278.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for aggregate-0.9.1-py3.8.egg
Algorithm Hash digest
SHA256 9b70efedf56fb19f5d8b1879c693de88c5853dee9fdf71f48f0c34229c4b72f4
MD5 8b65b9df03e75af722105721b91314ed
BLAKE2b-256 1e7d7e580753a13a29f7bd4bc1a6520e6168e78840858c6a140ab131163ff948

See more details on using hashes here.

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