Skip to main content

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.

https://app.travis-ci.com/thequackdaddy/tweedie.svg?branch=master http://codecov.io/github/thequackdaddy/tweedie/coverage.svg?branch=master
Documentation:

Some of the functions are well documented. Others, not so well. In future versions, I might try to publish.

Downloads:

https://github.com/thequackdaddy/tweedie

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:

https://github.com/thequackdaddy/tweedie

License:

2-clause BSD, see LICENSE.txt for details.

Metadata

Release files for tweedie 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tweedie 0.0.9
File Size Uploaded Provenance Actions
tweedie-0.0.9.tar.gz 24.9 kB Without provenance Details for tweedie-0.0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tweedie 0.0.9
File Interpreter ABI Platform Actions
tweedie-0.0.9-py2.py3-none-any.whl Python 3, Python 2 none any Details for tweedie-0.0.9-py2.py3-none-any.whl

Total release size: 33.1 kB

Release files / tweedie-0.0.9.tar.gz

Download URL tweedie-0.0.9.tar.gz
Size 24.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4e83d5998df247a5e4453c365db3adc37152ecd75ddf89dd4ef981e5956e3d11
BLAKE2b-256 checksum
How to use checksums
ad8518ebf1468db875444acb8e60f47300c42e9ba1feb1ff69c2b8aaa2b4c377
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / tweedie-0.0.9-py2.py3-none-any.whl

Download URL tweedie-0.0.9-py2.py3-none-any.whl
Size 8.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d2025934e0dd13e276cf403686edbccefbba01e85c20960768b917b0a406dcf2
BLAKE2b-256 checksum
How to use checksums
2b3f1784ae631f32c73b27ade3842a354902a6f98285a433d0279f26eaae360e
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for tweedie 0.0.9

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page