evaluatio.effect_size.cohen¶
Functions¶
cohens_d_independent¶
cohens_d_independent(x1: Iterable[float], x2: Iterable[float]) -> floatCalculates Cohen’s d for two independent samples.
NOTE: At least two samples is required in each array for the variances to make sense.
NOTE: Should work with any type that is castable to a f64, hence ints, floats, and bools.
cohens_d_paired¶
cohens_d_paired(x1: Iterable[float], x2: Iterable[float]) -> floatCalculates Cohen’s d for two paired samples.
NOTE: At least two samples is required in each array for the variances to make sense.
NOTE: Should work with any type that is castable to a f64, hence ints, floats, and bools.