Learning objectives
- Calculate an exact sign-test tail probability after handling zero differences.
- Separate evidence about direction from evidence about mean payoff.
Prerequisites: Count binomial outcomes and distinguish direction from magnitude.
Mechanism and interpretation
A sign test uses whether each paired difference is positive or negative and deliberately discards its magnitude. Under the simple null used here, independent nonzero differences are equally likely to have either sign. If n such differences remain, the positive count follows Binomial(n,0.5). A positive-direction p-value is the probability of at least the observed number of positives. The direction must be specified before seeing the count.
This lesson drops exact zero differences and reports how many were removed. With a continuous difference distribution, the sign probability is related to a median comparison, but ties and discrete outcomes require careful interpretation. The null is not generally a claim that the mean difference is zero. Ten tiny improvements can be outweighed in money by one large loss, even when a direction-based statistic favors the method.
Worked case · synthetic data
A hypothetical matched comparison records 14 differences: eight positive, two negative and four exactly zero. Excluding zeros leaves n=10. The one-sided upper-tail probability is [C(10,8)+C(10,9)+C(10,10)]/2¹⁰=(45+10+1)/1,024≈0.0546875. Using the symmetric doubled-tail convention gives a two-sided p-value of 0.109375. At a predeclared one-sided 5% cutoff, this result does not reject. That statement is different from proving the two methods equivalent or proving no directional tendency exists.
Failure modes and context
Repeated trades within the same episode can violate independent signs. Rounding may create apparent ties, and dropping them without disclosing the original sample can hide useful information. A sign test sacrifices magnitude information for weaker distributional requirements; it is not automatically better for heavy-tailed financial data. Report the payoff distribution and transaction costs separately so that frequent small improvements are not mistaken for positive total economic value.
Practice assignment
A new comparison contains seven positive differences, one negative and two zero. Calculate the nonzero sample size, one-sided positive-tail p-value and symmetric two-sided p-value. State which conclusions pass a 5% threshold and why choosing one-sided only after seeing the result would be inappropriate.
Worked answer
There are eight nonzero differences. The positive tail is [C(8,7)+C(8,8)]/2⁸=9/256≈0.0351563; the two-sided value is 18/256≈0.0703125. The predeclared one-sided test rejects at 5%, while the two-sided test does not. Selecting the direction afterward changes the error-control procedure and overstates the evidence.
Check your understanding
Question 1
What is n after excluding the four zeros in the case?
- 10
- 14
- 8
Reveal answer and reasoning
A. 10
The test conditions on the ten nonzero signs under the stated convention.
Question 2
Does the sign test use the size of each gain or loss?
- Yes through squared differences
- Only for negative observations
- No
Reveal answer and reasoning
C. No
It reduces each nonzero difference to its sign.
Question 3
What is the practice two-sided p-value?
- Exactly zero
- About 0.0703
- About 0.0352
Reveal answer and reasoning
B. About 0.0703
The symmetric doubled tail is twice 9/256, capped at one when necessary.
