The Mann-Whitney U test is a non-parametric test for testing whether two independent data samples come from the same distribution.
This is a web application for Mann-Whitney U test made with Python and Flask. Add solution to test for small sample size (n < 20).
https://mannwhitney.herokuapp.com/
This First time opening will take few time.
Information summary for two groups of data, including sample size (number of data samples), mean, standard deviation and median for each group.
Sig Diff
: whether or not the two sample data are from different distribution at the user-defined significant level
Sample Size
: if n <= 20, then small sample size; else, large sample size
U-critical
or P Value
: when small sample size, return the U critical value at the significant level; when large sample size, return the P Value computed from U stat
Sample Stat
: U stat computed from the data samples
Effect Size
: a value to measure how large the difference is between the two data groups.
Formula:
Larger Group
: indicates which group has a higher value
- Determine whether or not
Sample Size
is small- if n <20 ,then
Small
size; - else, then
Large
size
- if n <20 ,then
- Determine whether or not there is significant difference
- If there is significant difference (
Sig Diff
=Yes
),Effect Size
will explain how the large the difference is. The largerEffect Size
is, the huger difference is.Larger Group
explicitly indicate the larger group.
This repo contains files for two type of installations, launching a Web Application and Python source code for directly use. You could choose based on your preference.
. # Web App Files
├── templates # HTML files for web pages
├── app.py # Flask launching file
├── main.py # Scripts of extended Mann Whitney Test
# Python source code for directly use
├── mannwhitney.py # Class of extended Mann Whitney Test
# Basic files
├── requirements.txt # Required package info
├── LICENSE
└── README.md
Change to app directory, use virtualenv
create and activate virtual enviroment.
Then use pip
to install requirements:
pip install -r requirements.txt
Run:
python app.py runserver
Go to http://127.0.0.1:5000/
Download and import mannwhitney.py
.