Skip to main content

Measure deviant noise

Project description


Measure how our data deviates from normal distribution

Branch Status Coverage
master Build Status
dev Build Status Coverage Status


pip install measure-noise


The deviance() method will return a (description, score) pair describing how the samples deviate from a normal distribution, and by how much. This is intended to screen samples for use in the t-test, and other statistics, that assume a normal distribution.

  • SKEWED - samples are heavily to one side of the mean
  • OUTLIERS - there are more outliers than would be expected from normal distribution
  • MODAL - few samples are near the mean (probably bimodal)
  • OK - no egregious deviation from normal
  • N/A - not enough data to make a conclusion (aka OK)


from measure_noise import deviance

>>> desc, score = deviance([1,2,3,4,5,6,7,8])
>>> desc


git clone
cd measure-noise
pip install -r requirements.txt
pip install or tests/requirements.txt
python -m unittest discover tests 


You must download the scipy and numpy binary packages.

Project details

Download files

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

Source Distribution

moz-measure-noise-2.60.1.tar.gz (23.2 kB view hashes)

Uploaded Source

Built Distribution

moz_measure_noise-2.60.1-py3-none-any.whl (21.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page