Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Tweedie distribution

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 :math:`1 < p < 2`. However, it should be possible to
calculate the distribution for all the possible values of p.

.. image:: https://travis-ci.org/thequackdaddy/tweedie.png?branch=master
:target: https://travis-ci.org/thequackdaddy/tweedie

.. image:: http://codecov.io/github/thequackdaddy/tweedie/coverage.svg?branch=master
:target: http://codecov.io/github/thequackdaddy/tweedie?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

Install:
At the moment, ``python setup.py install`` will work. I'll try to put this on
pypi at some point in the future.

Code and bug tracker:
https://github.com/thequackdaddy/tweedie

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tweedie, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size tweedie-0.0.7-py2.py3-none-any.whl (7.9 kB) File type Wheel Python version 3.6 Upload date Hashes View
Filename, size tweedie-0.0.7.tar.gz (23.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page