Xunius / wilcox_quantiles

Comparing quantiles of 2 distriubtions simultaneously using Wilcox method

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wilcox_quantiles

Compare multiple quantiles from 2 distributions simultaneously using Wilcox et al. 2013 method.

This is a Python translation of one of the Wilcox' Robust Statistics (WRS) functions from an R package.

Dependencies

  • numpy
  • scipy
  • (optional, for plotting only) matplotlib

Usage

Example:

import numpy as np
from wilcox_quantile import compare_quantiles_vec

rt1 = np.random.randn(100) * 52 + 350
rt2 = np.r_[np.random.randn(85) * 55 + 375, np.random.randn(15) * 25 + 220]
comp = compare_quantiles_vec(rt1, rt2, quantiles=np.arange(0.1, 1.0, 0.1))

See the full example in example.py.

Output figure:

Reference

About

Comparing quantiles of 2 distriubtions simultaneously using Wilcox method

License:GNU Affero General Public License v3.0


Languages

Language:Python 100.0%