When to use it
Use whenever reporting t-test results to express practical significance independent of sample size.
Required Inputs
- Mean 1 & Standard Deviation 1 (or Sample 1)
- Mean 2 & Standard Deviation 2 (or Sample 2)
- Sample sizes n₁ & n₂
Calculate standardized effect sizes Cohen's d, Hedges' g (small-sample correction), and Glass's delta for independent and paired t-tests.
Run this test live in StatLab npm i @statlab/coreUse whenever reporting t-test results to express practical significance independent of sample size.
d = (X̄₁ - X̄₂) / s_pooled, g = d * [ 1 - 3 / (4(n₁+n₂) - 9) ]
import numpy as np
def cohens_d(x, y):
nx, ny = len(x), len(y)
s_pooled = np.sqrt(((nx-1)*np.var(x, ddof=1) + (ny-1)*np.var(y, ddof=1)) / (nx+ny-2))
return (np.mean(x) - np.mean(y)) / s_pooled
library(effsize)
cohen.d(group_a, group_b)
import { cohensD, hedgesG } from '@statlab/core';
const d = cohensD(groupA, groupB);
const g = hedgesG(groupA, groupB);
Continuous A/B testing, statistical telemetry analysis, and automated feedback loops for live backend services.
Explore VoxelPulse →Fixed-price AI release-readiness sprints, automated regression testing, and reliability statistical benchmarks.
Explore VoxelAssurance →Explore static calculators across the StatLab inference engine suite.