{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/powerlaw-a-python-package-for-analysis-of","title":"Powerlaw: a Python package for analysis of heavy-tailed distributions","arxiv_id":"1305.0215","date":"2013-05-01","proceeding":null,"authors":["Jeff Alstott","Ed Bullmore","Dietmar Plenz"],"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.","url_abs":"http://arxiv.org/abs/1305.0215v3","url_pdf":"http://arxiv.org/pdf/1305.0215v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"powerlaw-a-python-package-for-analysis-of","repo_url":"https://github.com/jeffalstott/powerlaw","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1305.0215","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1305.0215"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jeffalstott/powerlaw","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":14},"by_repo_kind":{"official":{"samples":14,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"9846f7a2cbdc36a0","entry":"bisect_map","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"powerlaw/utils.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/powerlaw/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9846f7a2cbdc36a0"}},{"code_sha256_prefix":"8d45632b465f9418","entry":"cdf","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"powerlaw/statistics.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/powerlaw/statistics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8d45632b465f9418"}},{"code_sha256_prefix":"b10c6a813af26db7","entry":"checkunique","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"powerlaw/utils.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/powerlaw/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b10c6a813af26db7"}},{"code_sha256_prefix":"aaf4971e99341fb0","entry":"distribution_compare","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"powerlaw/functional.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/powerlaw/functional.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aaf4971e99341fb0"}},{"code_sha256_prefix":"3d668418a5547b38","entry":"distribution_fit","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"powerlaw/functional.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/powerlaw/functional.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3d668418a5547b38"}},{"code_sha256_prefix":"8e7b38b6cf03df6b","entry":"likelihood_function_generator","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"powerlaw/functional.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/powerlaw/functional.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8e7b38b6cf03df6b"}},{"code_sha256_prefix":"b11a663e0be565d1","entry":"load_test_dataset","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"powerlaw/data.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/powerlaw/data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b11a663e0be565d1"}},{"code_sha256_prefix":"dd1ffeb7f34fbce8","entry":"loglikelihood_ratio","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"powerlaw/statistics.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/powerlaw/statistics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dd1ffeb7f34fbce8"}},{"code_sha256_prefix":"b5ba111c070273e5","entry":"nested_loglikelihood_ratio","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"powerlaw/statistics.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/powerlaw/statistics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b5ba111c070273e5"}},{"code_sha256_prefix":"b3482c492cfa42b9","entry":"plot_ccdf","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"powerlaw/plotting.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/powerlaw/plotting.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b3482c492cfa42b9"}},{"code_sha256_prefix":"ef612ff6cf165258","entry":"plot_cdf","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"powerlaw/plotting.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/powerlaw/plotting.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ef612ff6cf165258"}},{"code_sha256_prefix":"05da55cf6bd9059b","entry":"plot_pdf","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"powerlaw/plotting.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/powerlaw/plotting.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"05da55cf6bd9059b"}},{"code_sha256_prefix":"78468d71de69b0a1","entry":"randomPowerLaw","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"testing/accuracy_overview.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/testing/accuracy_overview.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"78468d71de69b0a1"}},{"code_sha256_prefix":"84fb24ccc487e2cc","entry":"randomPowerLawXmin","repo":"jeffalstott/powerlaw","repo_kind":"official","path":"testing/accuracy_overview.py","file_url":"https://github.com/jeffalstott/powerlaw/blob/HEAD/testing/accuracy_overview.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"84fb24ccc487e2cc"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}