Code for Spertus, Sridhar, and Stark (2024). Contains tools to run hypothesis tests about means of bounded, stratified populations with sequential, finite-sample, nonparametric (SFSNP) level control. The primary tools are union-of-intersections test sequences (UI-TSs) and sequentially valid lower confidence bounds (LCBs).
The Code directory contains the following python scripts:
utils.pycontains all functions implementing the proposed methodstest.pycontains unit test for all functionssignificance_simulations.pyruns the t-test simulation that generated Figure 1pointmass_simulations.pyruns the pointmass simulations presented in Section 7.1bernoulli_simulations.pyruns the Bernoulli simulations presented in Section 7.2gaussian_simulations.pyruns the Gaussian simulations presented in Section 7.3pgd_time.pytimes the convex UI-TS against the LCB method, as described in Section C.4r_plots.Rcontains the R code used to generate all plots in the paper
The Results directory contains CSV files with the simulation results