Experiment Analysis Library
Project description
A/B tests (a.k.a. Randomized Controlled Trials or Experiments) have been widely applied in different industries to optimize business processes and user experience. ExpAn (Experiment Analysis) is a Python library developed for the statistical analysis of such experiments and to standardise the data structures used.
The data structures and functionality of ExpAn are generic such that they can be used by both data scientists optimizing a user interface and biologists running wet-lab experiments. The library is also standalone and can be imported and used from within other projects and from the command line.
Major statistical functionalities include:
feature check
delta
subgroup analysis
trend
Installation
To install ExpAn, run this command in your terminal:
$ pip install expan
Usage
To use ExpAn in a project:
import expan
Some mock-up data:
from expan.core.experiment import Experiment from expan.core.util import generate_random_data exp = Experiment('B', *generate_random_data()) exp.delta()
Documentation
The latest stable version is 0.5.1.
ExpAn Description - details about the concept of the library and data structures.
ExpAn Introduction - a full jupyter (iPython) notebook. You can view it as slides with jupyter:
sh serve_intro_slides
License
The MIT License (MIT)
Copyright © [2016] Zalando SE, https://tech.zalando.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Change Log
Unreleased
Implemented enhancements:
Fixed bugs:
Experiment.sga() assumes features and KPIs are merged in self.metrics #87
pctile can be undefined in Results.to\_json\(\) #78
Closed issues:
Results.to_json() => TypeError: Object of type ‘UserWarning’ is not JSON serializable #77
Rethink Results structure #66
Merged pull requests:
new dataframe tree traverser in to_json() #92 (gbordyugov)
updated requirements.txt to have ‘greater than’ dependencies instead … #89 (mkolarek)
pip version requirement #88 (gbordyugov)
merging in categorical binning #84 (gbordyugov)
a couple of minor cleanups #79 (gbordyugov)
v0.4.5 (2017-02-10)
Fixed bugs:
Numbers cannot appear in variable names for derived metrics #58
Merged pull requests:
Merge to_json() and prob_uplift_over_zero changes #72 (mkolarek)
regex fix, see https://github.com/zalando/expan/issues/58 #70 (gbordyugov)
v0.4.4 (2017-02-09)
Implemented enhancements:
Add argument assume_normal and treatment_cost to calculate_prob_uplift_over_zero() and prob_uplift_over_zero_single_metric() #26
host intro slides (from the ipython notebook) somewhere for public viewing #10
Closed issues:
migrate issues from github enterprise #20
Merged pull requests:
v0.4.3 (2017-02-07)
Closed issues:
coverage % is misleading #23
Merged pull requests:
v0.4.2 (2016-12-08)
Fixed bugs:
frequency table in the chi square test doesn’t respect the order of categories #56
Merged pull requests:
v0.4.1 (2016-10-18)
Merged pull requests:
v0.4.0 (2016-08-19)
Closed issues:
Support ‘overall ratio’ metrics (e.g. conversion rate/return rate) as opposed to per-entity ratios #44
Merged pull requests:
v0.3.4 (2016-08-08)
Closed issues:
Merged pull requests:
v0.3.3 (2016-08-02)
Merged pull requests:
v0.3.2 (2016-08-02)
Merged pull requests:
v0.3.1 (2016-07-15)
Merged pull requests:
v0.3.0 (2016-06-23)
Implemented enhancements:
Merged pull requests:
v0.2.5 (2016-05-30)
Implemented enhancements:
Implement __version__ #14
Closed issues:
upload full documentation! #1
Merged pull requests:
implement expan.__version__ #19 (pangeran-bottor)
Mainly documentation changes, as well as travis config updates #17 (robertmuil)
Update README.rst #16 (pangeran-bottor)
new travis config specifying that only master and dev should be built #4 (mkolarek)
v0.2.4 (2016-05-16)
Closed issues:
No module named experiment and test_data #13
Merged pull requests:
v0.2.3 (2016-05-06)
v0.2.2 (2016-05-06)
v0.2.1 (2016-05-06)
v0.2.0 (2016-05-06)
Merged pull requests:
Added detailed documentation with data formats #3 (robertmuil)
* This Change Log was automatically generated by `github_changelog_generator <https://github.com/skywinder/Github-Changelog-Generator>`__
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
File details
Details for the file expan-0.5.1.tar.gz
.
File metadata
- Download URL: expan-0.5.1.tar.gz
- Upload date:
- Size: 95.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e08e39287ae7648d648c71ca8b1c2e02a10f9644e5a95d4dce9777afcad2e9d7 |
|
MD5 | 4a32c78965975e5c810de2ce9836791c |
|
BLAKE2b-256 | 864d5606a2f611f602613adc53c4aba9267c5e539401e6085aa95ad45b4384ca |