Skip to content
EvalSuite
Documentation menu

Statistical tests

Paired t-test

Implementedstatistics.t_test_paired

Definition

Tests whether the mean of paired differences is zero, for example per-fold scores of two models.

Formula

t = d̄ / (s_d / √n)

Inputs and outputs

  • paired sample a
  • paired sample b

Returns: StatisticalTestResult

Assumptions

  • Differences are approximately normal.

Limitations

  • Cross-validation folds are not independent; the test can be anti-conservative for model comparison.

Python API

PythonSince v0.2.0
import evalsuite as es

es.paired_t_test(scores_a, scores_b)

References

  1. Student. (1908). The probable error of a mean. Biometrika, 6(1), 1–25.

Implementation status