Skip to main content

Measure deviant noise

Project description

measure-noise

Measure how our data deviates from normal distribution

Branch Status Coverage
master Build Status
dev Build Status Coverage Status

Install

pip install measure-noise

Usage

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)

Example

from measure_noise import deviance

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

Development

git clone https://github.com/mozilla/measure-noise.git
cd measure-noise
pip install -r requirements.txt
pip install or tests/requirements.txt
python -m unittest discover tests 

Windows

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

measure-noise-2.53.19239.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file measure-noise-2.53.19239.tar.gz.

File metadata

  • Download URL: measure-noise-2.53.19239.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.14

File hashes

Hashes for measure-noise-2.53.19239.tar.gz
Algorithm Hash digest
SHA256 35529eb8ccd2cad53b7daf126cfbd4313b48237289336a1e1d367bab0401131b
MD5 8e0e15aea23328e18bf921b932dd6eeb
BLAKE2b-256 2d770d6d63d75ae37446c59c66aa7203c49c32f99a6dac5004f84af71a807bcb

See more details on using hashes here.

Supported by

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