{"id":15442769,"url":"https://github.com/nolanbconaway/poisson-etest","last_synced_at":"2025-07-28T20:09:57.296Z","repository":{"id":57453921,"uuid":"177469458","full_name":"nolanbconaway/poisson-etest","owner":"nolanbconaway","description":"A poisson e-test for python.","archived":false,"fork":false,"pushed_at":"2020-10-02T22:49:04.000Z","size":19,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T20:43:46.037Z","etag":null,"topics":["inferential-statistics","poisson","python","statistics"],"latest_commit_sha":null,"homepage":"","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nolanbconaway.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-24T21:07:01.000Z","updated_at":"2023-06-28T19:21:14.000Z","dependencies_parsed_at":"2022-08-29T10:41:57.078Z","dependency_job_id":null,"html_url":"https://github.com/nolanbconaway/poisson-etest","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nolanbconaway/poisson-etest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolanbconaway%2Fpoisson-etest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolanbconaway%2Fpoisson-etest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolanbconaway%2Fpoisson-etest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolanbconaway%2Fpoisson-etest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nolanbconaway","download_url":"https://codeload.github.com/nolanbconaway/poisson-etest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolanbconaway%2Fpoisson-etest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267578003,"owners_count":24110351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["inferential-statistics","poisson","python","statistics"],"created_at":"2024-10-01T19:29:57.967Z","updated_at":"2025-07-28T20:09:57.269Z","avatar_url":"https://github.com/nolanbconaway.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Poisson E-Test\n\n[![Build Status](https://travis-ci.org/nolanbconaway/poisson-etest.svg?branch=master)](https://travis-ci.org/nolanbconaway/poisson-etest)\n[![PyPI version](https://badge.fury.io/py/poisson-etest.svg)](https://badge.fury.io/py/poisson-etest)\n\nThis library contains a function to compute a two-sample poisson E-test, as defined\nin [Krishnamoorthy \u0026 Thomson (2004)](http://www.ucs.louisiana.edu/~kxk4695/JSPI-04.pdf). I simply  edited the [fortran code](http://www.ucs.louisiana.edu/~kxk4695/statcalc/pois2pval.for) posted on Krishnamoorthy's website so that numpy could wrap it. You can look at the edits in one of the early commits to this repo.\n\nThe code as it stands has a few problems, but I figured it'd be worth getting a direct implementation up. Here are some problems that I have noticed:\n\n1. Floats not supported for `k` and `n` values.\n2. Odd behavior with large numbers (I saw it at `k = n = 10000`).\n3. Odd behavior at `k = 0`.\n\nOne day I'll fix these issues by reimplementing in pure python, assuming that doesn't also require a big hit in efficiency.\n\n## Install\n\nNumpy is a requirement for poisson-etest, so make sure that's installed first. Then:\n\n```sh\npip install poisson-etest\n```\n## Usage\n\nTest whether two samples of Poisson data were drawn from the same distribution.\n\n```python\n\u003e\u003e\u003e from poisson_etest import poisson_etest\n\u003e\u003e\u003e sample1_k, sample1_n = 10, 20\n\u003e\u003e\u003e sample2_k, sample2_n = 15, 20\n\u003e\u003e\u003e poisson_etest(sample1_k, sample2_k, sample1_n, sample2_n)\n0.33116214285801826\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnolanbconaway%2Fpoisson-etest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnolanbconaway%2Fpoisson-etest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnolanbconaway%2Fpoisson-etest/lists"}