Skip to content

Instantly share code, notes, and snippets.

View wingos80's full-sized avatar

wingos80

  • Netherlands, Delft
  • 19:27 (UTC -12:00)
View GitHub Profile
@jacksonpradolima
jacksonpradolima / VD_A.py
Last active October 30, 2024 10:22
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