When to use it
Use for paired observations when difference scores are non-normal or ordinal.
Required Inputs
- Pre / Sample 1 values
- Post / Sample 2 values
- Zero-difference handling (Pratt / Wilcoxon / Zero-omit)
Evaluate paired or repeated ordinal/continuous measurements with the non-parametric Wilcoxon signed-rank test, including W statistic, z-score, p-value, and matched-pairs rank-biserial r.
Run this test live in StatLab npm i @statlab/coreUse for paired observations when difference scores are non-normal or ordinal.
W = min(Σ R⁺, Σ R⁻), z = (W - n(n+1)/4) / √(n(n+1)(2n+1)/24)
from scipy import stats
res = stats.wilcoxon(pre_values, post_values)
print(f"W={res.statistic:.2f}, p={res.pvalue:.4f}")
wilcox.test(pre_values, post_values, paired = TRUE)
import { wilcoxonSignedRank } from '@statlab/core';
const result = wilcoxonSignedRank(preValues, postValues);
Continuous A/B testing, statistical telemetry analysis, and automated feedback loops for live backend services.
Explore VoxelPulse →Fixed-price AI release-readiness sprints, automated regression testing, and reliability statistical benchmarks.
Explore VoxelAssurance →Explore static calculators across the StatLab inference engine suite.