What Is Your Permutation Test Actually Allowed to Shuffle?
A comparison script randomly rearranges every value and returns a p-value. The team calls the result a permutation test, but has not explained why those rearrangements represent the question being asked.
The shuffle is part of the model. It must respect the study design rather than simply produce a large collection of alternative numbers.
State the null hypothesis first
SciPy's permutation-test documentation distinguishes independent-sample reassignment, reassignment within paired samples and changes to pairings for association tests.
These are different operations. Choose the one that represents the intended null hypothesis.
Write the question in plain language before selecting a library option. A comparison of two workflows on the same requests differs from a comparison of unrelated groups.
Inspect the permitted rearrangements
Illustrative example: paired workflow scores
A fictional evaluation scores both workflows on each request. A paired comparison keeps the request relationship while considering reassignment between the workflow conditions.
Mixing one request's result with an unrelated request can destroy the structure the evaluation deliberately created.
Show one allowed rearrangement and one disallowed rearrangement in the analysis notes. This makes the design review concrete.
Contrast an association question
Suppose the question instead concerns whether two measurements are associated across records. Rearranging which values are paired represents a different null hypothesis.
Do not reuse the paired-comparison settings merely because the input contains two columns. The meaning of the columns and the intended claim determine the procedure.
Check assumptions beyond the software option
Explain why the allowed rearrangements are justified. Repeated records from the same project, time ordering or selection rules may require a more careful design.
A library function cannot infer those relationships from an ordinary numeric array. If the design is uncertain, resolve that uncertainty before interpreting the output.
Keep the effect statistic and its direction fixed rather than choosing whichever version yields a more striking result.
Interpret the result proportionately
Record whether the calculation enumerated the relevant possibilities or used a randomized approximation, together with its settings.
Read correlation and operational cause claims before turning a statistical result into an explanation of why an outcome changed.
A p-value does not measure the size of an improvement or authorize a causal claim unsupported by the study design. Report the observed effect and practical limitations alongside it.
Make the shuffle reviewable
The handoff should include the record unit, pairing or grouping structure, null hypothesis, statistic, allowed rearrangements and calculation settings.
A reviewer should be able to explain one generated rearrangement without looking inside the implementation. If that explanation is unclear, more computation is unlikely to repair the underlying mismatch between the test and the question.
Editorial note
Prepared with AI assistance. Primary sources and the FutureOS article inventory were checked on October 26, 2026. Examples are illustrative, not customer results. FutureOS is described as being in prelaunch in its current introduction. This guide does not claim an available product feature, integration or service, and no independent expert review is claimed.




Comments