Add short-series sampling and band scripts. - #119
Merged
Conversation
Adds the two reproducibility scripts from cnicholas#114: the original short-series sampling study and the n=3–30 band extension.
cnicholas
approved these changes
Sep 10, 2026
cnicholas
left a comment
Owner
There was a problem hiding this comment.
Verified locally against the 0.2.1 wheel: short_series_sampling.py reproduces every number in #114 and short_series_bands.py reproduces the n=3–30 table, with its own agreement check against the original within Monte Carlo error. Self-contained, reads d2 from the library, not wired into CI by design.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds the two reproducibility scripts from #114: the original short-series sampling study and the n=3–30 band extension. No library behavior or methodology is changed.
Summary
validation/short_series_sampling.pyandvalidation/short_series_bands.py.Contract / invariants
Check the ones this change had to keep true. Anything you cannot check, explain below.
(
{N, center, lpl, upl}) still holddeliberately, and the commit says why
These invariants are not exercised by this PR because it adds standalone
validation/reproducibility scripts only and does not modify package code.
Behaviour changes
None. Validation/reproducibility scripts only.
Methodology
(cite the chapter/equation/table)
Tests
pytest tests/ -m "not slow"ruff check .mypy processbehavior(advisory — no new errors)Manual validation:
short_series_sampling.pyreproduces the simulated results reported in Series length (T) as an axis in design-state admissibility — and a saturation question #114.short_series_bands.pyextends the MR̄/d₂ sampling study to every n from 3 through 30 with independent RNG streams per n, 100,000 replicates, and Monte Carlo standard errors.short_series_bands.pychecks agreement with the original table within Monte Carlo error.Notes
The scripts intentionally do not propose an adequacy criterion or band edge. They provide the sampling arithmetic for the maintainers' methodology discussion.