Repository navigation
feat(repo): repo compare intervals invert the sign-flip test (#292) #409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
72f4f45
feat(repo): repo compare intervals invert the sign-flip test (#292)
antonwolfy e609c31
docs(research): D018, paired intervals invert the sign-flip test (#292)
antonwolfy 9592980
fix(repo): keep an interval end bounded at deltas of 1e16 and up
antonwolfy c1f2923
fix(repo): print a delta mean rounded onto 0 as 0.0, not -0.0
antonwolfy 7013897
test(repo): pin ShiftTest.p as None where every shifted delta ties
antonwolfy 89e2d21
fix(repo): print a small non-zero interval end off 0.000
antonwolfy 02bf4c6
fix(repo): count the observed sign pattern at large deltas
antonwolfy 00a5894
docs(repo): say mde takes t quantiles as a planning figure
antonwolfy 7a667bd
fix(repo): round ledger interval ends, keep their method
antonwolfy 4e871a3
fix(repo): sum interval inputs with math.fsum, same ends on every Python
antonwolfy cd41468
fix(repo): keep a tiny delta mean inside its interval kept off 0
antonwolfy 05cb808
docs(repo): say ShiftTest.p(0) is sign_flip_p up to large-delta rounding
antonwolfy fc93796
test(repo): pin the large-delta row's p for either sum() order
antonwolfy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
dokimi/changelog.d/20261105_120000_antonwolfy_compare-sign-flip-interval.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ### Changed | ||
|
|
||
| - **Every `repo compare` interval now inverts the sign-flip test** — a row's 95% interval was a | ||
| percentile bootstrap (gate, score) or a t interval (the other measures) next to a sign-flip p, and near | ||
| 0.05 the two disagreed. It is now, for every measure, every shift the row's sign-flip test does not | ||
| reject at the uncorrected 5% level (exact up to 16 changed tasks, Monte Carlo above with the draws of p, | ||
| made once from the seed, so the ends are the same on every run), and it excludes 0 exactly when p is | ||
| below 0.05. Under a shift tied tasks count too, so both ends are bounded from 6 tasks on and open at 5 | ||
| or fewer: `delta.lo` / `delta.hi` are then `null` in `--json` (before, only a single task had `null` | ||
| ends) and print as `-inf` / `+inf`, in `repo compare` and in the `--ledger` text. There, a non-zero end | ||
| that 3 decimals would print as `0.000` prints at 2 significant digits (`+0.0002`), so an interval that | ||
| excludes 0 no longer reads `[+0.000, +0.000]`; in `repo compare --json`, `delta.mean` stays inside the | ||
| ends (six deltas of `4e-5`: mean `0.0001`, not `0.0`). Each `--json` row, and each rule result of the ledger, | ||
| names its method, `delta.method` `sign_flip_inversion` (`null` for a rule result with no pairs); the ledger's ends | ||
| stay at 4 places, as before. `interval_p_disagree` now fires only where | ||
| Holm's correction lifts a gate or score row's p across 0.05, and its note says the interval is | ||
| uncorrected and `p_holm` decides the row. Printed p, `p_holm`, `mde` and `p_holm_floor` do not change. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.