Sign Test Calculator

Work out the exact p-value for a paired sign test from the number of positive and negative differences. Ties are left out, as the sign test requires.

1 Fill in the boxes

2 Your answer

Your answer shows here as you type.

How to use the Sign Test Calculator

  1. Enter the number of pairs where the second value was higher (plus signs).
  2. Enter the number of pairs where the second value was lower (minus signs). Pairs with no difference are left out.
  3. Read the two-tailed p-value for a non-directional question, or the one-tailed value if you predicted a direction before testing.

Frequently asked questions

What is a sign test?

The sign test is a nonparametric test for paired data. It counts how many differences are positive and how many are negative, ignores ties, and checks whether those counts fit a fair coin, where each sign has probability 0.5.

How is the two-tailed p-value calculated?

With n pairs that have a sign and k as the smaller of the two counts, the one-tailed p-value is the binomial probability of k or fewer signs of the rarer type, P(X <= k) with X ~ Binomial(n, 0.5). The two-tailed p-value is twice that, capped at 1.

Why are tied pairs removed?

A pair with no difference gives no sign, so it carries no information for the test. Removing ties lowers n, which can make the test less powerful.

When should I use a sign test instead of a t-test?

A sign test suits paired data when the differences are not normally distributed or are measured on an ordinal scale. It uses less information than a paired t-test, so it has less power when the normality assumption holds.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.