When the same users are measured before and after a change, test the differences :
with the sample std of the differences (ddof=1). Implement paired_t(before, after) returning (t, df) with df = n - 1. If every difference is identical, return (inf, df) (or -inf, or 0.0 if all differences are 0).