Check that your data follows, at least approximately, the Normal distribution.
Project description
normtest
This package has a series of tests used to check whether a set of sample data follows, at least approximately, the Normal distribution.
Available tests (07/11/2023)
- Ryan-Joiner
Install
pip install normtest
Usage
To apply tests directly to the data, import the package as follows:
import normtest as nm
And then apply the test by passing the dataset. For example, Ryan Joiner's test:
import numpy as np
x_data = np.array([...])
result = nm.rj_test(x_data)
print(result)
However, if you want to extract more information about a test, you need to import the test directly:
from normtest import ryan_joiner
This way, it is possible to generate graphs and obtain intermediate values from the test calculations. For example, to use the line up method:
import matplotlib.pyplot as plt
fig = ryan_joiner.line_up(x_data, correct=False)
plt.savefig(...)
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
normtest-0.0.1.tar.gz
(3.2 MB
view hashes)
Built Distribution
normtest-0.0.1-py3-none-any.whl
(14.9 kB
view hashes)