Package for hypothesis testing in A/B-experiments
Project description
abito
Python package for hypothesis testing. Suitable for using in A/B-testing software. Tested for Python >= 3.5
Features
- Based on statistical tests from scipy.stats: t-test, Mann-Whitney U, Shapiro-Wilk, Levene, Mood, Median
- Works with weighted samples
- Can trim sample tails
- Works with Ratio samples
Installation
pip install abito
Usage examples
>>> from abito import RatioSample
>>> sample = RatioSample(num=[1, 2, 3], den=[4, 5, 6])
>>> sample.t_test_1samp(0.5)
TTestResult(statistic=-1.4433756729740654, p_value=0.2857142857142853, mean_diff=-0.10000000000000003, mean_diff_std=0.06928203230275506)
>>> sample_control = RatioSample(num=[1, 2, 8], den=[4, 5, 10])
>>> sample.t_test(sample_control)
TTestResult(statistic=-0.9481011064982815, p_value=0.42240549320152565, mean_diff=-0.1789473684210527, mean_diff_std=0.18874291696797746)
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
abito-0.0.3.tar.gz
(6.1 kB
view hashes)
Built Distribution
abito-0.0.3-py3-none-any.whl
(7.8 kB
view hashes)