Skip to main content

Multinomial Exact Tests

Project description

met.py is a Python module that allows you to define a pair of multinomial distributions (conceptually ‘control’ and ‘test’ or ‘reference’ and ‘site’ distributions) and then compute one- and two-sided p values to test whether the ‘site’ distribution is equivalent to the ‘reference’ distribution. The likelihood of all possible ‘reference’ distributions can be evaluated and the distribution of p values can be expressed in terms of the likelihood of the observed ‘reference’ distribution.

The met module defines one class, one exception, and several functions. The class (Multinom) defines objects that represent specific combinations of multinomial data for site and reference conditions. Methods of Multinom objects allow one-sided and two-sided exact tests to be performed. Attributes of Multinom objects allow access to additional information generated by the exact tests, such as the number of different rearrangements of site data that were found to be more extreme than the reference data.

Functions in the met module allow p values to be calculated for a variety of reference probability distributions that might have produced the observed reference data, producing a likelihood estimate for each p value.

Project details


Release history Release notifications

Download files

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

Files for met, version 0.1.5.0
Filename, size & hash File type Python version Upload date
met-0.1.5.0.zip (13.8 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page