Hypothesis Testing
Hypothesis testing is a statistical procedure for comparing observed evidence against a null hypothesis. In model evaluation, it is often used to ask whether an observed metric difference is plausibly larger than evaluation noise.
A test starts with:
where is the null hypothesis and is the alternative.
Test Statistic
A test statistic summarizes the data into a value whose distribution under is known or approximated:
The -value is:
for a one-sided test. Two-sided tests use an extremeness rule appropriate for both directions.
The -value is not:
It is a probability of seeing a statistic at least as extreme as the observed one under the null model.
Errors
Type I error rejects a true null:
Type II error fails to reject a false null:
Power is:
Paired Model Comparison
Model evaluation is often paired: two models are evaluated on the same examples. Let and be per-example scores, losses, or correctness indicators, and define:
Then the question is whether the mean paired difference is meaningfully different from zero:
A paired test or bootstrap over examples is usually more appropriate than treating two aggregate metrics as independent numbers.
Multiple Comparisons
If many models, prompts, seeds, checkpoints, thresholds, or benchmarks are tried, the chance of at least one false positive increases:
where is the number of independent tests. In paper reading, this is a warning to check whether the selection rule was fixed before the final evaluation.
Effect Size
Statistical significance and practical significance are different. A useful evaluation note should report both uncertainty and magnitude:
with a confidence interval or bootstrap distribution when possible. A tiny but significant improvement may not matter if the benchmark is saturated, the cost is higher, or the error mode is unchanged.
Practical Meaning
Rejecting does not prove that a model is useful. It only says the observed statistic is unlikely under the chosen null model. Practical value still depends on effect size, evaluation protocol, uncertainty, and deployment relevance.
Evaluation Checklist
| Question | Why |
|---|---|
| What is the independent unit? | examples, molecules, proteins, targets, prompts, or users may be correlated |
| Is the comparison paired? | same examples reduce variance and change the correct test |
| Was the test chosen before looking? | post-hoc testing inflates claims |
| How many comparisons were tried? | model selection and threshold search create false positives |
| Is the effect size meaningful? | significance alone does not prove usefulness |
| Does the metric match the claim? | a significant proxy metric may not support the stated behavior |
Checks
- What is the unit of independence?
- Is the test paired or unpaired?
- Is the test one-sided or two-sided?
- Was the test chosen before seeing the result?
- Are multiple comparisons controlled when many models, prompts, thresholds, or seeds are tried?
- Is the effect size meaningful, not only statistically significant?
- Is the final test separated from model selection, threshold tuning, and prompt selection?