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

moz_measure_noise-2.70.0.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

moz_measure_noise-2.70.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file moz_measure_noise-2.70.0.tar.gz.

File metadata

  • Download URL: moz_measure_noise-2.70.0.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for moz_measure_noise-2.70.0.tar.gz
Algorithm Hash digest
SHA256 12019ccf56e42c9cebf2a09aebbe38b69e4c9ee5995c61ea7fe8abfb387b18f0
MD5 8e1d898d253c6f968b5a21cc7fa2dda4
BLAKE2b-256 d5c6561da4fc2c21515d61ff28e27f90bac77b6771999fb4cbb0eab10ed773eb

See more details on using hashes here.

File details

Details for the file moz_measure_noise-2.70.0-py3-none-any.whl.

File metadata

File hashes

Hashes for moz_measure_noise-2.70.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e068a383753346dcbd636987d76997d8e03494b61c55a835a16161ad7d2e8d56
MD5 06cd6410e6d90fc25242131d856d78ab
BLAKE2b-256 2bc9bf190ed3de9d1f3e47829833cbf805a3dde20e6381e02f473bcb2de9c609

See more details on using hashes here.

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