Why the Direction of the Test Matters
A replication study asks whether an association identified in a discovery analysis is supported by new data. Before examining the replication results, the investigators should specify the variant, outcome, effect scale, and what result will count as evidence. The direction of the discovery estimate can also determine the replication alternative: if discovery estimated a positive effect, a directional test asks whether the replication effect is positive; a two-sided test asks whether it differs from zero in either direction.
These choices change the hypotheses and the rejection threshold. At a fixed significance level, a one-sided test places its full type-I error probability in one tail. A two-sided test divides that probability between both tails. A directional test can therefore have greater power for effects in its prespecified direction, but it does not treat a significant effect in the opposite direction as replication in the specified direction.
The effect must be oriented consistently across cohorts. For example, the same allele must be treated as the effect allele, and the effect must refer to the same phenotype and scale. Otherwise, a sign difference might reflect coding or harmonization rather than a biological reversal. The hypotheses and direction should be set before seeing the replication estimate; choosing whichever direction looks favorable afterward changes the test.
Test Statistics, P-Values, and Thresholds
For a sufficiently large-sample association analysis, suppose the replication estimate is approximately normal with standard error \(SE(\hat{\beta}_R)\). Under the null boundary \(\beta_R=0\), the signed test statistic is
Write \(\Phi(z)=P(Z\leq z)\) for the standard normal cumulative distribution function. If the prespecified direction is positive, the one-sided p-value is \(1-\Phi(Z)\); if it is negative, the p-value is \(\Phi(Z)\). The two-sided p-value is \(2[1-\Phi(|Z|)]\). For a directional test, evidence against the composite null is evaluated at its boundary, \(\beta_R=0\): values farther into the prespecified direction are less compatible with the null.
At significance level \(\alpha\), a positive-direction test rejects when \(Z>z_{1-\alpha}\), where \(\Phi(z_{1-\alpha})=1-\alpha\). A two-sided test rejects when \(|Z|>z_{1-\alpha/2}\). At \(\alpha=0.05\), these critical values are approximately 1.645 and 1.960, respectively. The two-sided test requires a more extreme statistic in either direction, because it allocates 0.025 to each tail rather than 0.05 to the prespecified tail.
For a statistic in the prespecified direction, the two-sided p-value is twice the directional p-value. This relationship does not mean that a directional p-value can always be halved: if the estimate points the other way, its prespecified-direction p-value is large, while the two-sided p-value may be small. A two-sided result describes evidence of a nonzero effect, not necessarily evidence that the effect agrees with discovery.
Worked Example: Positive Estimate in the Prespecified Direction
Suppose discovery estimated a positive effect. In an independent, hypothetical replication cohort, the estimate is \(\hat{\beta}_R=0.080\) log-odds units per effect allele, with \(SE(\hat{\beta}_R)=0.030\) log-odds units. Assume the large-sample normal approximation is adequate and the allele and outcome scales have been harmonized.
The signed statistic is \(Z=0.080/0.030=2.667\). For a positive-direction test, the p-value is \(1-\Phi(2.667)\approx 0.0038\). The two-sided p-value is \(2[1-\Phi(2.667)]\approx 0.0077\).
At \(\alpha=0.05\), both p-values are below their respective thresholds, and \(2.667\) exceeds both 1.645 and 1.960. Thus this hypothetical result is significant under either test and is in the discovery direction. The estimated effect is 0.080 log-odds units per effect allele; this is an association estimate, not evidence by itself that the allele causes the outcome.
What a Reversed Replication Estimate Means
A reversed estimate points opposite to the direction specified from discovery. The directional test does not count this as support for its alternative. The two-sided test, in contrast, can reject the null for a sufficiently large effect in either direction. If a two-sided test is significant and the estimated sign is reversed, the result is evidence of a nonzero association in the replication cohort, but it is not same-direction replication.
This distinction is especially important when the scientific claim being checked is directional. If the prespecified replication criterion requires the same direction and statistical significance, a reversed estimate fails that criterion, even if its two-sided p-value is small. A two-sided test followed by a same-sign requirement is a different rule from a one-sided test at the same \(\alpha\): in the expected direction, it uses the more stringent two-sided critical value. Conversely, reporting a two-sided test can be useful when effects in either direction are scientifically relevant or when a reversal itself warrants attention.
Worked Example: Significant Reversal Under a Two-Sided Test
Suppose the discovery effect was positive. In a hypothetical replication cohort, \(\hat{\beta}_R=-0.090\) log-odds units per effect allele and \(SE(\hat{\beta}_R)=0.040\) log-odds units. Assume the cohorts use harmonized alleles and the same outcome scale, and that the normal approximation is reasonable.
The statistic is \(Z=-0.090/0.040=-2.25\). For the positive-direction test, \(p=1-\Phi(-2.25)=\Phi(2.25)\approx 0.9878\). It is not significant at \(\alpha=0.05\), and the estimate is opposite to the prespecified direction.
The two-sided p-value is \(2[1-\Phi(2.25)]\approx 0.0244\), which is below 0.05. The appropriate conclusion is that the replication estimate is significantly different from zero under the two-sided test, but it is negative rather than positive. It therefore does not confirm a positive directional replication claim. This test alone does not establish why the sign differs or formally test whether the cohort effects differ.
Why the Threshold Difference Arises
Under the null boundary, \(Z\) has a standard normal distribution. A one-sided positive test with \(\alpha=0.05\) chooses a cutoff \(c\) such that the probability of a null statistic exceeding it is 0.05. A two-sided test chooses a cutoff \(d\) such that the combined probabilities of exceeding \(d\) or falling below \(-d\) total 0.05. By symmetry, each tail then has probability 0.025.
Thus the directional test gains sensitivity in its specified tail by not using that tail’s probability to detect an effect in the opposite direction. The gain is appropriate only when the direction was justified and fixed in advance. It is not a license to inspect the replication estimate, choose the matching one-sided alternative, and then use the one-sided threshold.
Worked Example: A Reversed Estimate That Is Not Significant Either Way
Suppose discovery estimated a negative effect, so the prespecified replication alternative is also negative. In a hypothetical cohort, the replication estimate is \(\hat{\beta}_R=0.034\) units per allele and its standard error is \(0.020\) units. Assume the effect scale and allele orientation match discovery and the normal approximation is adequate.
Here \(Z=0.034/0.020=1.70\), which points opposite to the prespecified negative direction. The directional p-value is \(\Phi(1.70)\approx 0.9554\). The two-sided p-value is \(2[1-\Phi(1.70)]\approx 0.0891\).
At \(\alpha=0.05\), neither test rejects. The estimate is in the opposite direction, but these data do not provide statistically significant evidence of a nonzero replication effect by the two-sided test. It would be incorrect to call this a significant reversal or to claim directional replication.
Assumptions, Diagnostics, and Choice of Test
The calculation is only as defensible as its design and model. The standard-normal test assumes that the estimate and standard error produce an adequate normal approximation under the null. The reported standard error must reflect the fitted association model and sampling design. If the analysis instead uses a test with a \(t\) reference distribution, use that test’s specified distribution and critical values rather than substituting standard-normal cutoffs.
For a confirmatory directional test, the direction must be prespecified, the tested variant and outcome must be fixed, and the replication data should not have been used to select the direction. Independent replication data make this separation particularly clear. A nominal threshold also does not automatically account for testing many variants or outcomes; the threshold must follow the prespecified analysis plan, including any applicable multiplicity adjustment. Do not assume that \(\alpha=0.05\) is suitable for every study.
Useful checks include verifying allele alignment and effect coding, confirming the outcome and effect scale, checking that the estimate and standard error come from the same model, and comparing the sign of \(\hat{\beta}_R\) with the prespecified direction. A reported directional p-value near one can be a correct result when the estimate points strongly the wrong way; it is not evidence for that opposite direction. Calculate or report the two-sided p-value separately if evidence in either direction is relevant.
| Question | Directional one-sided test | Two-sided test |
|---|---|---|
| Alternative | Effect is in the prespecified direction | Effect differs from zero in either direction |
| At \(\alpha=0.05\), normal cutoff | 1.645 in the prespecified tail | Absolute statistic exceeds 1.960 |
| Significant effect in the opposite direction | Does not support the alternative | Can reject zero, but does not establish same-direction replication |
| Main interpretive risk | Choosing the direction after seeing replication data | Calling any significant association directional replication |
Neither test removes the effects of selection in discovery, limited replication precision, or genuine differences between cohorts. The earlier material on power calculations for selected loci concerns the probability of rejection under specified effects and assumptions; the choice between one- and two-sided alternatives changes that probability and must be reflected in the calculation. A p-value does not measure the probability that the null hypothesis is true, and failure to reject does not establish that the effect is zero.
Common Mistake and Practical Decision
Choose a one-sided test when the scientific replication claim is genuinely directional, the direction was fixed before examining replication data, and an effect in the opposite direction would not count as success. Choose a two-sided test when departures in either direction are scientifically relevant or when the planned question is simply whether the replication effect differs from zero. In either case, state the estimate with units, its sign, the test used, the significance threshold, and the p-value. If a sign reversal is observed, describe it as such rather than allowing a two-sided p-value to conceal the direction.
Check Your Understanding
Answer each question, then compare with the solutions below.
- For a prespecified positive-direction test at \(\alpha=0.05\), what is the approximate standard-normal critical value? What is the two-sided critical value at the same \(\alpha\)?
- A positive discovery estimate is followed by a replication statistic \(Z=-2.10\). Is the positive-direction test significant at 0.05? Is the two-sided test significant?
- Why is it not valid to decide after observing the replication estimate whether to use a positive- or negative-direction one-sided test?
- A two-sided replication test is significant, but its estimate has the opposite sign from discovery. State an appropriate interpretation.
Solutions. (1) The one-sided positive cutoff is \(z_{0.95}\approx1.645\); the two-sided cutoff is \(z_{0.975}\approx1.960\). (2) The positive-direction p-value is \(1-\Phi(-2.10)=\Phi(2.10)\approx0.9821\), so it is not significant. The two-sided p-value is \(2[1-\Phi(2.10)]\approx0.0357\), so it is significant. The result is a significant association in the opposite direction, not positive directional replication. (3) Selecting the tail after seeing the result makes the test depend on the data and no longer preserves the stated one-sided type-I error rate. The direction must be prespecified. (4) Report evidence that the replication effect differs from zero under the two-sided test, and state that its estimated direction reverses discovery; do not describe it as same-direction replication.