nemo_gym.eval.comparison.statistics.unpaired_welch_fixed_suite
nemo_gym.eval.comparison.statistics.unpaired_welch_fixed_suite
Normalize repeat scores and estimate fixed-suite unpaired Welch intervals.
Baseline and candidate repeats are independent samples. Benchmarks are a fixed suite, not a sample of possible benchmarks. Multiple metrics within a benchmark are averaged within each repeat before estimating sample variance, preserving their covariance. The weighted aggregate uses independent variance contributions and Welch–Satterthwaite effective degrees of freedom.
This module contains numerical inputs and outputs only; it neither loads Gym artifacts nor decides which benchmarks are eligible for comparison.
Module Contents
Classes
Functions
API
Independent baseline and candidate repeat summaries for one benchmark cell.
Theoretical metric bounds and direction for conversion to a 0–100 score.
Mean and unbiased sample variance of independent repeat scores.
One cell’s weighted mean-variance contributions, each equal to w²s²/n.
Weighted scores, candidate-minus-baseline estimate, and unpaired Welch interval.
Estimate a weighted candidate-minus-baseline delta with Welch–Satterthwaite uncertainty.
For each cell, a = w²s_C²/n_C and b = w²s_B²/n_B. Total
variance is V = sum(a + b), and effective degrees of freedom are
V² / sum(a²/(n_C−1) + b²/(n_B−1)). The two-sided interval uses
Student-t quantile (1 + confidence_level) / 2.
Weights default to equal values and must sum to one when provided. Constant cells retain their weights. If all contributions are zero, the estimate and zero standard error are returned with no interval or degrees of freedom.
Average equally weighted normalized metrics within each repeat.
Rows represent repeats; columns correspond to scales. Averaging before
summarizing keeps covariance between metrics from the same repeat. A cell’s
benchmark weight is independent of its number of selected metrics.
Scale a finite metric to percentage points, reversing lower-is-better metrics.
Bounds describe the metric, not observed extrema. Scores outside these theoretical bounds are rejected; confidence intervals remain unclipped.
Summarize finite repeat scores using sample variance with divisor n − 1.