Skip to content

Instantly share code, notes, and snippets.

View chakib-belgaid's full-sized avatar

belgaid mohammed chakib chakib-belgaid

View GitHub Profile
@jacksonpradolima
jacksonpradolima / VD_A.py
Last active April 23, 2024 22:30
Python version of non-parametric hypothesis testing using Vargha and Delaney's (Â12) statistic. The code was adapted from effsize package R: https://github.com/mtorchiano/effsize/blob/master/R/VD_A.R
import itertools as it
from bisect import bisect_left
from typing import List
import numpy as np
import pandas as pd
import scipy.stats as ss
from pandas import Categorical