Tweedie distribution estimations of pdf and cdf
Project description
tweedie is a Python library implementing scipy’s rv_continuous class for the Tweedie family. The Tweedie family is a member of the exponential dispersion model family and is commonly used in the insurance indsutry to model claim amounts for insurance policies (exposure).
The main focus of this package is the compound-Poisson behavior, specifically where 1 < p < 2. However, it should be possible to calculate the distribution for all the possible values of p.
- Documentation:
Some of the functions are well documented. Others, not so well. In future versions, I might try to publish.
- Downloads:
- Dependencies:
Python (2.7, or 3.4+)
numpy
scipy
- Optional dependencies:
pytest: needed to run tests
tox: needed to run tests against multiple python/scipy versions
- Install:
To run tests against multiple python/scipy versions, install the package using pip install -e .[dev].
Running the tests:
To test against the current python version and scipy pytest ./tweedie
To test against multiple python versions and scipy versions tox -p all. If you run in to issues with performance, just use tox.
- Code and bug tracker:
- License:
2-clause BSD, see LICENSE.txt for details.
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
File details
Details for the file tweedie-0.0.9.tar.gz
.
File metadata
- Download URL: tweedie-0.0.9.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e83d5998df247a5e4453c365db3adc37152ecd75ddf89dd4ef981e5956e3d11 |
|
MD5 | 538e3091757e793816965d97dae712ff |
|
BLAKE2b-256 | ad8518ebf1468db875444acb8e60f47300c42e9ba1feb1ff69c2b8aaa2b4c377 |
File details
Details for the file tweedie-0.0.9-py2.py3-none-any.whl
.
File metadata
- Download URL: tweedie-0.0.9-py2.py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2025934e0dd13e276cf403686edbccefbba01e85c20960768b917b0a406dcf2 |
|
MD5 | 001640b320f0728b7f5f30f008a3bb9f |
|
BLAKE2b-256 | 2b3f1784ae631f32c73b27ade3842a354902a6f98285a433d0279f26eaae360e |