skip to navigation
skip to content

Not Logged In

powerlaw 1.3.4

Toolbox for testing if a probability distribution fits a power law

Package Documentation

powerlaw: A Python Package for Analysis of Heavy-Tailed Distributions
=======

`powerlaw` is a toolbox using the statistical methods developed in
`Clauset et al. 2007`__ and `Klaus et al. 2011`__ to determine if a
probability distribution fits a power law. Academics, please cite as:

Jeff Alstott, Ed Bullmore, Dietmar Plenz. (2014). powerlaw: a Python package
for analysis of heavy-tailed distributions. `PLoS ONE 9(1): e85777`__

Also available at `arXiv:1305.0215 [physics.data-an]`__

__ http://arxiv.org/abs/0706.1062
__ http://www.plosone.org/article/info%3Adoi%2F10.1371%2Fjournal.pone.0019779
__ http://www.plosone.org/article/info%3Adoi%2F10.1371%2Fjournal.pone.0085777
__ http://arxiv.org/abs/1305.0215

Basic Usage
-----------------
For the simplest, typical use cases, this tells you everything you need to
know.::

import powerlaw
data = array([1.7, 3.2 ...]) # data can be list or numpy array
results = powerlaw.Fit(data)
print results.power_law.alpha
print results.power_law.xmin
R, p = results.distribution_compare('power_law', 'lognormal')

For more explanation, understanding, and figures, see the working paper,
which illustrates all of powerlaw's features. For details of the math,
see Clauset et al. 2007, which developed these methods.

Quick Links
-----------------
`Installation`__

`Paper illustrating all of powerlaw's features, with figures`__

`Code examples from manuscript, as an IPython Notebook`__

`Documentation`__

`Known Issues`__

`Update Notifications, Mailing List, and Contacts`__

This code was developed and tested for Python 2.x with the
`Enthought Python Distribution`__, and later amended to be
compatible with 3.x. The full version of Enthought is
`available for free for academic use`__.

__ http://code.google.com/p/powerlaw/wiki/Installation
__ http://arxiv.org/abs/1305.0215
__ http://nbviewer.ipython.org/github/jeffalstott/powerlaw/blob/master/manuscript/Manuscript_Code.ipynb
__ http://pythonhosted.org/powerlaw/
__ https://code.google.com/p/powerlaw/wiki/KnownIssues
__ http://code.google.com/p/powerlaw/wiki/Interact
__ http://www.enthought.com/products/epd.php
__ http://www.enthought.com/products/edudownload.php

Further Development
-----------------
`powerlaw` is open for further development. If there's a feature you'd like to see in `powerlaw`, `submit an issue <https: github.com="" jeffalstott="" powerlaw="" issues="">`_.
Pull requests and offers for expansion or inclusion in other projects are welcomed and encouraged. The original author of `powerlaw`, Jeff Alstott, is now only writing minor tweaks, so contributions are very helpful.

Acknowledgements
-----------------
Many thanks to Andreas Klaus, Mika Rubinov and Shan Yu for helpful
discussions. Thanks also to `Andreas Klaus <http: neuroscience.nih.gov="" fellows="" fellow.asp?people_id="2709">`_,
`Aaron Clauset, Cosma Shalizi <http: tuvalu.santafe.edu="" ~aaronc="" powerlaws=""/>`_,
and `Adam Ginsburg <http: code.google.com="" p="" agpy="" wiki="" powerlaw="">`_ for making
their code available. Their implementations were a critical starting point for
making powerlaw.  
File Type Py Version Uploaded on Size
powerlaw-1.3.4.macosx-10.5-x86_64.exe (md5) MS Windows installer any 2015-04-02 84KB
powerlaw-1.3.4.tar.gz (md5) Source 2015-04-02 22KB
  • Downloads (All Versions):
  • 155 downloads in the last day
  • 1497 downloads in the last week
  • 3002 downloads in the last month