Skip to content
Myr

Correct the interpretation of Welch's t-test results (#943)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by GitHub · parent 589132c · Browse files · 1 file+7 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−4 removed

  • other:+7 added−4 removed

1 file+7 added−4 removed

modified:scripts/welch_ttest.py+7 added-4 removed
5 unmodified lines
6# ]7# ///89"""This script performs Welch's t-test on a JSON export file with two10benchmark results to test whether or not the two distributions are11the same."""10benchmark results to test for a difference in their population mean runtimes."""1112import argparse13import json14import sys
23 unmodified lines
38print(f"t = {t:.3}, p = {p:.3}")39print()4041if dispose:43 print(f"There is a difference between the two benchmarks (p < {th}).")42 print(43 f"A statistically significant difference in mean runtime was detected (p < {th})."44 )45else:45 print(f"The two benchmarks are almost the same (p >= {th}).")46 print(47 f"No statistically significant difference in mean runtime was detected (p >= {th})."48 )