Event-age ranking data and verification code for When Waiting Looks Predictive
Description
Data and verification code accompanying "When Waiting Looks Predictive: Null Laws and Adaptive Panel Tests" by Bo Guo, Guang Xu and Tao He. Version 2 retains the original full-history files and adds Event_Age_Panel_Data_and_Code.zip and Repository_readme.txt. The original archive contains finite AP distributions, 48,000 fixed-count synthetic paths in 48 reported cells, limiting-probability checks, IID studies and saved sensitivity results. The extension contains five self-contained folders: panel_calibration, learned_single_event, all_count, recorded_panel and figure_redesign. They provide finite AP checks, panel calibration, predictable hazard learning, support-centred count portfolios, saved protocols and summaries, a recorded-sequence replay, and code for three redesigned figures. Original saved CSV/NPZ arrays are retained; seeds, input hashes and reproduction instructions are supplied. Mathematical proofs are in the manuscript and supplement. The recorded New York draw series is a negative-control illustration under a stated uniform 5-of-70 allocation model. Nonrejection does not establish fairness or predictive gain. The synthetic references are separate simulations. The exploratory financial pilot's raw observations are outside this release. Author-created code and synthetic materials are provided under CC BY 4.0. Third-party draw records retain their original terms: New York State Gaming Commission, Lottery Mega Millions Winning Numbers: Beginning 2002, https://data.ny.gov/d/5xaw-6ayf . Official/certified records and source terms take precedence; the provider does not endorse this analysis. Research support: Hubei Natural Science Foundation of China, Grant No. 2016CFB509.
Files
Steps to reproduce
1. Extract Event_age_synthetic_data_and_code_v1.zip and read README.md and configuration.json. 2. For standard-library finite-gap checks, open the code directory and run: python sparse_checks.py --output ./sparse_check --max-n 10 --budget-seconds 30 3. For conditional diagnostics, use the Python package versions listed in code/requirements.txt. From code/, run: python temporal_null.py run --design iid --replicates 2 --output ./iid_prefix python temporal_null.py verify --output ./iid_prefix python temporal_null.py run --design power --replicates 2 --output ./sensitivity_prefix python temporal_null.py verify --output ./sensitivity_prefix 4. Omit --replicates 2 to reproduce the complete 64 replicates per case. Always use new output directories. 5. The supplied original arrays are stored under data/conditional_diagnostics. Load NPZ files with numpy.load(path, allow_pickle=False); the README describes axes, method order and case indices. Tested software: Python 3.14.7, NumPy 2.5.2, scikit-learn 1.9.0. Finite computation checks implementations and numerical illustrations; it does not replace the mathematical proofs. Version 2 extension: extract Event_Age_Panel_Data_and_Code.zip and read Repository_readme.txt and each study folder's README. Keep internal folder layouts intact. For the recorded replay, run python reproduce_recorded.py from recorded_panel; this needs no network. The separate synthetic reference is optional (--reference). For the three redesigned plots, run python plot_revision.py --inputs data --output rebuilt_figures from figure_redesign. These commands use saved inputs; they do not reproduce the exploratory financial pilot's raw observations. Follow the panel_calibration, learned_single_event and all_count READMEs for their recorded protocols and seeds.