Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

evaluatio.effect_size.cohen

Functions

cohens_d_independent

cohens_d_independent(x1: Iterable[float], x2: Iterable[float]) -> float

Calculates 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]) -> float

Calculates 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.