Rearranging labels rather than measured values keeps the observed measurements intact while changing which conditions or groups they are associated with. This creates alternative assignments that represent the null scenario without manufacturing new data. The resulting statistics show how much variation can arise from reassignment alone, allowing the original statistic to be judged against chance variation under the chosen hypothesis.
The specified null hypothesis determines which rearrangements are scientifically meaningful. For each permitted assignment, the same statistic used on the original data is recalculated, producing a null distribution tailored to that hypothesis. The p-value then reflects the position of the observed statistic within this distribution, so changing the hypothesis or statistic can change the inference even with identical measurements.
A permutation test evaluates evidence by generating a null distribution from the observed data and their permitted rearrangements rather than relying solely on parametric assumptions. This can support inference in complex or high-dimensional neuroscience datasets. However, its conclusions still depend on selecting a reshuffling scheme that is consistent with the experimental design and the null hypothesis.
Design-compatible reshuffling is essential because labels or conditions cannot be exchanged arbitrarily in every experiment. The permitted rearrangements must preserve the structure relevant to the comparison while leaving measured values intact. If the scheme does not match the design, the resulting null distribution may not represent the intended chance process, weakening conclusions about neural activity, behavior, connectivity, or imaging effects.
An analysis begins by specifying the null hypothesis and selecting a statistic that represents the difference, association, or model effect of interest. Researchers then preserve the measured values, repeatedly rearrange labels or conditions according to the design, and recalculate that statistic for each arrangement. Finally, they compare the original statistic with the resulting null distribution to estimate a p-value.
Permutation tests can examine differences in neural activity, connectivity, behavioral performance, and imaging measures. They are particularly useful when datasets are complex or high dimensional and researchers want inference that does not rely solely on parametric assumptions. By comparing the observed result with the chance variation generated under the null, the approach helps distinguish potentially reproducible effects from random variation.