diff options
| author | Drew Ritter <drew@primeradiant.com> | 2026-05-13 12:07:30 -0700 |
|---|---|---|
| committer | Drew Ritter <drew@primeradiant.com> | 2026-05-13 12:15:16 -0700 |
| commit | ad2db13001d57250f109a251fbbf199d1d5660b3 (patch) | |
| tree | 93316d4b2061e6f06c4b114bf590eb3bb1c968ee /evals/drill/stats.py | |
| parent | 3d6dc90c6d2b28ec449df94ff60f43797d1cfad6 (diff) | |
Move eval harness to submodulecodex/sup-251-superpowers-evals-submodule
Diffstat (limited to 'evals/drill/stats.py')
| -rw-r--r-- | evals/drill/stats.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/evals/drill/stats.py b/evals/drill/stats.py deleted file mode 100644 index 6b1ea85..0000000 --- a/evals/drill/stats.py +++ /dev/null @@ -1,17 +0,0 @@ -"""Statistical utilities for drill result analysis.""" - -from __future__ import annotations - -import math - - -def wilson_ci(passed: int, total: int, z: float = 1.96) -> tuple[float, float]: - if total == 0: - return (0.0, 0.0) - if passed > total: - passed = total - p = passed / total - denom = 1 + z**2 / total - center = (p + z**2 / (2 * total)) / denom - margin = (z / denom) * math.sqrt(p * (1 - p) / total + z**2 / (4 * total**2)) - return (max(0.0, center - margin), min(1.0, center + margin)) |
