Skip to main content

A simple hypothesis testing package

Project description

Data Analysis

Why did I write this code?

I'm often handed a dataset and asked to do the same thing - determine if the experimental group is different than the control group, and generate some descriptive statistics along the way. As an alternative to writing all operations manually for each project I've created a Python module using Object Oriented Programming (OOP). This eliminates the need to search for old projects, copy and paste long lines of code and cross my fingers that it works.

What libraries does this code use?

This code uses a Scipy, a widely accepted statistical package, to perform hypothesis testing.

I also use Pandas, an extremely popular data analysis and manipulation library for organizing the data and providing descriptive statistics.

For data visualization I use the Seaborn library (built on top of matplotlib)

Hypothesis Testing

My main task is often to determine if the results are statistically significant. For this we need to implement a hypthesis test, however there are many to choose from. The decision tree of this code looks something like this:

  1. Is the data Normally Distributed and do the experimental and control groups have Equal Variance? Student's t-test
  2. Is the data Normally Distributed but do the experimental and control groups have Unequal Variance? Welches' t-test
  3. Is the data not Normally Distributed? Mann-Whitney U test

Where to Start

See This Notebook for a demo on the Breast Cancer Wisconsin (Diagnostic) Dataset found Here

autohyp

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

autohyp-0.0.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

autohyp-0.0.2-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

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