Powerlaw: a Python package for analysis of heavy-tailed distributions
- PMID: 24489671
- PMCID: PMC3906378
- DOI: 10.1371/journal.pone.0085777
Powerlaw: a Python package for analysis of heavy-tailed distributions
Erratum in
- PLoS One. 2014;9(4):e95816
Abstract
Power laws are theoretically interesting probability distributions that are also frequently used to describe empirical data. In recent years, effective statistical methods for fitting power laws have been developed, but appropriate use of these techniques requires significant programming and statistical insight. In order to greatly decrease the barriers to using good statistical methods for fitting power law distributions, we developed the powerlaw Python package. This software package provides easy commands for basic fitting and statistical analysis of distributions. Notably, it also seeks to support a variety of user needs by being exhaustive in the options available to the user. The source code is publicly available and easily extensible.
Conflict of interest statement
Figures
= 1. Dashed green line: power law fit starting from the optimal
(see Basic Methods: Identifying the Scaling Range). c) Comparing the goodness of fit. Once the best fit to a power law is established, comparison to other possible distributions is necessary. Dashed green line: power law fit starting from the optimal
. Dashed red line: exponential fit starting from the same
.

across
. As a power law is fitted to data starting from different
, the goodness of fit between the power law and the data is measured by the Kolmogorov-Smirnov distance
, with the best
minimizing this distance. Here fitted data is the population sizes affected by blackouts. While there exists a clear absolute minima for
at 230, and thus 230 is the optimal
additional restrictions could exclude this fit. Parameter requirements such as
or
would restrict the
values considered, leading to the identification of a different, smaller
at 50.References
-
- Michel M, Kirk H, Myers PC (2011) Mass Distributions of Stars and Cores in Young Groups and Clusters. The Astrophysical Journal 735: 51.
-
- Zipf GK (1935) Psycho-Biology of Languages: An Introduction to Dynamic Philology. Boston: Houghton-Mifflin.
-
- Clauset A, Shalizi CR, Newman MEJ (2009) Power-law distributions in empirical data. SIAM Review 51.
Publication types
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources
Other Literature Sources
