Paired Sign Test Calculator

Compare before-after results without assuming normal paired differences. Count positives, negatives, ties, and exact probabilities. Make paired decisions with fast, transparent, study-ready summaries today.

Calculator inputs

Enter one pair per line using commas, spaces, tabs, semicolons, or vertical bars. Each row should contain before and after values.

Example data table

Sample classroom performance pairs
Pair Before After Difference Sign
112153Positive
2109-1Negative
314184Positive
416160Tie
511132Positive
61312-1Negative
79112Positive
815172Positive

Formula used

The paired sign test reduces each difference to a sign. For every pair, compute di = after - before. Positive differences count as plus signs, negative differences count as minus signs, and zero differences are ties.

The effective sample size is n = plus + minus. Under the null hypothesis of no median shift, the number of positive signs follows X ~ Binomial(n, 0.5).

For a two-sided test, the exact p-value is 2 × min[P(X ≤ plus), P(X ≥ plus)], capped at 1. For one-sided tests, use the corresponding upper or lower binomial tail.

The calculator also reports a continuity-corrected normal approximation, a Wilson interval for the positive direction probability, and a sign-based confidence interval for the median difference when raw paired data are supplied.

How to use this calculator

  1. Select raw paired values if you have the original observations, or choose summary sign counts if you already counted positives, negatives, and ties.
  2. Pick the alternative hypothesis that matches your study question. Use two-sided for any shift, greater for improvement, or less for decline.
  3. Set the significance level, confidence level, and displayed decimals.
  4. Submit the form to place the result block above the calculator. Review the exact p-value first, then compare it with your significance level.
  5. Use the CSV or PDF buttons to save the analysis summary. When raw data are entered, the export also includes the parsed pair table.

Frequently asked questions

1. When should I use a paired sign test?

Use it for matched observations such as before-after data, repeated measures, or paired subjects when you want a robust median-direction test without assuming normal differences.

2. What happens to ties?

Tied pairs have zero difference, so they are excluded from the effective sample size. They remain visible in the summary because they still matter for data quality review.

3. Why does the calculator show two p-values?

The exact p-value comes from the binomial distribution and is preferred. The normal approximation is shown as a quick reference, especially when sample size is larger.

4. What does the sign statistic mean?

The statistic S = min(plus, minus) summarizes imbalance in sign counts. Smaller values indicate stronger evidence that the paired median difference is not zero.

5. Can I use summary counts instead of raw data?

Yes. Summary mode is useful when you already know the number of positive signs, negative signs, and ties. Raw mode is better when you also want median summaries.

6. What does “after is greater” test?

It evaluates whether positive differences occur more often than expected under no shift. Choose it when your research question specifically asks whether the second measurement tends to be larger.

7. Is this test resistant to outliers?

Yes. The paired sign test uses only the sign of each difference, not its size. That makes it far less sensitive to extreme values than magnitude-based tests.

8. Why might the exact p-value say “Not available”?

The page computes exact tails directly for practical sample sizes. If the non-tied sample becomes very large, the normal approximation still appears to keep the analysis usable.

Related Calculators

spearman rank correlation calculatoriqr calculatorkernel density estimatorcramer v calculatorkruskal wallis test calculatoranderson darling test calculatorsiegel tukey testmoses extreme reactions

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.