Tutorials › High-Dimensional Genomic Data Analysis › Tied And Discrete P-Values In BH

False Discovery Rate · Tutorial 150 of 795

Tied And Discrete P-Values In BH

You will learn how ties affect BH ranks and why valid, discrete p-values can leave the procedure more conservative than its nominal FDR target.

Intermediate 10 min read

What You'll Learn

  • Apply BH thresholds to ordered p-values, including tied values.
  • Explain why BH cannot reject only part of a tied block.
  • Calculate BH-adjusted p-values when observations are tied.
  • Check super-uniform validity for discrete exact p-values.
  • Explain why sparse attainable p-values can make BH conservative.
  • Recognize when rounding or mid-p values can undermine the analysis.

Why Ties and Discreteness Matter

Genomic analyses often produce p-values with repeated values. Some ties arise because different tests happen to give the same result; others are common when a test has a discrete outcome, such as a small-sample count test or a permutation test with a limited number of possible outcomes. The Benjamini–Hochberg (BH) procedure still uses the same rank-based rule in either case. But ties raise a practical question about ranks, while discreteness can leave gaps between attainable p-values and the thresholds BH uses.

The distinction matters: ties do not require a special version of BH, and a valid discrete p-value remains valid. However, a sparse set of attainable p-values can make it harder for observed values to fall below BH thresholds. In that sense, the procedure can be more conservative than its nominal target.

BH With Ordered and Tied P-Values

Suppose a family contains \(m\) hypotheses, with p-values \(p_1,\ldots,p_m\). For a target false discovery rate level \(q\), where \(0<q<1\), arrange the p-values in nondecreasing order: \(p_{(1)}\le \cdots \le p_{(m)}\). The BH threshold at rank \(i\) is \(qi/m\). The procedure finds the largest rank \(k\) for which \(p_{(k)}\le qk/m\), then rejects the hypotheses corresponding to the first \(k\) ordered p-values. If no rank meets its threshold, it makes no rejections.

Definition: A p-value is valid under a null hypothesis if it is super-uniform: for every \(t\) from 0 to 1, \(P(P_i\le t)\le t\) when that null hypothesis is true. A discrete p-value has a distribution concentrated on a finite or countable set of attainable values, rather than a continuous range.

For independent, valid p-values, BH controls the false discovery rate at no more than \((m_0/m)q\), where \(m_0\) is the number of true null hypotheses. In particular, this bound is at most \(q\). This is the relevant guarantee when interpreting the calculations below. The step-up rule itself can be applied to an ordered list whether or not its p-values are tied or discrete.

A tied value occupies consecutive ranks. The rank labels within that block can be assigned in any order because the tied hypotheses have identical p-values. More importantly, the BH rule cannot end by rejecting only some members of a tied block.

Justification: Suppose a tied block has value \(v\) at ranks \(a,\ldots,b\). If a rank \(k\) within the block meets its threshold, then \(v\le qk/m\). Since \(b\ge k\), \(qb/m\ge qk/m\), so \(v\le qb/m\) as well. Rank \(b\) therefore meets its threshold. Thus, if the largest qualifying rank were inside the block, a later rank in that same block would also qualify, a contradiction. The rejection set includes either all or none of the tied hypotheses.

Worked Example: Applying BH Across a Tied Block

Consider six hypothetical tests with ordered p-values \(0.001,\ 0.020,\ 0.020,\ 0.049,\ 0.120,\ 0.200\), and set \(q=0.10\). The hypotheses are assumed to have valid p-values; the list is used here to illustrate the calculation.

At rank \(i\), the threshold is \(0.10i/6\). The thresholds, to four significant figures, are \(0.01667,\ 0.03333,\ 0.05000,\ 0.06667,\ 0.08333,\ 0.1000\).

Compare each ordered p-value with its rank-specific threshold. At rank 1, \(0.001\le0.01667\). At rank 2, \(0.020\le0.03333\); at rank 3, \(0.020\le0.05000\); and at rank 4, \(0.049\le0.06667\). At ranks 5 and 6, \(0.120>0.08333\) and \(0.200>0.1000\), respectively. The largest qualifying rank is \(k=4\), so BH rejects the first four hypotheses.

The tied p-values occupy ranks 2 and 3, and both are rejected. It would be incorrect to assign the two identical values different outcomes by arbitrarily breaking the tie: the step-up rule selects a prefix of the ordered list, and the tied block cannot be split at the largest qualifying rank.

Discrete P-Values and Conservatism

For a continuous test statistic under a true null, a suitably calibrated p-value is often uniformly distributed on the interval from 0 to 1. A valid discrete p-value need not be uniform. Its attainable values may skip intervals, and its cumulative probabilities can be strictly below the super-uniform bound \(P(P_i\le t)\le t\). That inequality protects validity, but it can also mean fewer small p-values than a continuous uniform calibration would produce.

BH compares observed values with thresholds on the grid \(q/m,2q/m,\ldots,q\). If the attainable p-values are sparse, a threshold may fall below the smallest attainable value, or between two attainable values with the next one above the threshold. In that case, no observed p-value at that rank can pass. Across repeated testing, such gaps can make the achieved FDR lower than the bound \(q\); the same feature can also reduce the chance of making discoveries. This is a possible effect of discreteness, not a guarantee that every discrete-data analysis will have fewer rejections than every continuous-data analysis.

The discrete setting does not change the BH threshold formula. Nor does it justify treating an attainable p-value as though it were smaller than its actual value. The key check is validity under the null: exact discrete p-values are commonly super-uniform, whereas a modified value that is not super-uniform may not retain the usual guarantee.

Worked Example: A Discrete Exact Test Can Miss Every Threshold

Suppose each of eight hypothetical tests uses a one-sided exact binomial test of \(H_0:\theta=0.5\), based on \(X\sim\operatorname{Binomial}(4,0.5)\). The p-value for an observed count \(x\) is \(P(X\ge x)\). The possible p-values are \(0.0625\) for \(x=4\), \(0.3125\) for \(x=3\), \(0.6875\) for \(x=2\), \(0.9375\) for \(x=1\), and \(1\) for \(x=0\).

These p-values are valid under the null. For example, at \(t=0.10\), the event \(P_i\le t\) occurs only when \(X=4\), so \(P(P_i\le0.10)=P(X=4)=0.0625\le0.10\). At \(t=0.3125\), the event occurs when \(X\ge3\), so \(P(P_i\le0.3125)=0.0625+0.25=0.3125\). Between attainable values, the cumulative probability stays constant and does not exceed \(t\).

Imagine the eight observed p-values, already ordered, are \(0.0625,\ 0.0625,\ 0.3125,\ 0.3125,\ 0.3125,\ 0.6875,\ 0.9375,\ 1\). With \(q=0.05\), the BH thresholds \(0.05i/8\), for ranks 1 through 8, are \(0.00625,\ 0.01250,\ 0.01875,\ 0.02500,\ 0.03125,\ 0.03750,\ 0.04375,\ 0.05000\). The smallest observed p-value, \(0.0625\), exceeds even the largest threshold, \(0.05000\). Therefore no rank qualifies and there are no BH rejections.

The result is not a failure of the BH calculation: the p-values are valid, but their discreteness leaves the smallest attainable value above every threshold in this particular family. A different family size or target level could place a threshold above \(0.0625\), so the outcome depends on the comparison, not on a rule that discrete p-values must always produce no rejections.

Adjusted P-Values When Values Are Tied

The BH-adjusted p-value for the hypothesis at ordered rank \(i\) is the smallest target level at which that hypothesis would be rejected by BH, accounting for the step-up rule. It can be calculated by taking the minimum of \(mp_{(j)}/j\) over ranks \(j\ge i\), and capping the result at 1. The adjusted values are then nondecreasing in rank. When a p-value is tied, every hypothesis in its tied block gets the same adjusted p-value.

Worked Example: Calculating Adjusted Values for a Tie

Take five hypothetical ordered p-values \(0.004,\ 0.020,\ 0.020,\ 0.090,\ 0.400\). For each rank \(i\), calculate \(mp_{(i)}/i\), where \(m=5\): the raw values are \(0.020,\ 0.050,\ 0.03333,\ 0.1125,\ 0.400\).

To enforce the required nondecreasing adjusted values, work from the last rank toward the first, taking the running minimum. Rank 5 has adjusted p-value \(\min(1,0.400)=0.400\). Rank 4 has \(\min(0.1125,0.400)=0.1125\). Rank 3 has \(\min(0.03333,0.1125)=0.03333\). Rank 2 has \(\min(0.050,0.03333)=0.03333\), and rank 1 has \(\min(0.020,0.03333)=0.020\). The ordered adjusted values are therefore \(0.020,\ 0.03333,\ 0.03333,\ 0.1125,\ 0.400\).

The p-values at ranks 2 and 3 are tied and receive the same adjusted value, \(0.03333\). At target \(q=0.10\), the first three adjusted values are at most \(0.10\), while the fourth and fifth are larger. This agrees with the step-up calculation: the largest qualifying rank is 3.

Diagnostics, Alternatives, and Common Pitfalls

Before interpreting BH results from a discrete testing procedure, check what p-values the test can actually produce. A short list of attainable values, or a histogram showing spikes and gaps, can make the discreteness visible. Confirm that the reported values are valid p-values under the null and retain enough numerical precision to order them correctly. If values are rounded for display, use the unrounded values for ranking and threshold comparisons whenever they are available. Rounding can create artificial ties or change which side of a threshold a value falls on.

A frequent mistake is to break a tie arbitrarily and then report that only some hypotheses with the same p-value were rejected. The correction is to apply the step-up rule to the full ordered list: if the largest qualifying rank falls within a tied block, the later ranks in that block qualify too, so the whole block is included. Another mistake is to conclude that a discrete p-value is invalid merely because it is not uniformly distributed. Validity requires super-uniformity, not an exactly uniform distribution.

Mid-p values, which reduce an exact tail probability by assigning part of the probability at the observed outcome, can be less conservative than ordinary exact p-values. But a mid-p value is not guaranteed to satisfy \(P(P_i\le t)\le t\) for every \(t\). Replacing exact p-values with mid-p values may therefore remove the validity condition behind the usual BH guarantee. Do not assume that a less conservative-looking value has the same error-control properties.

Holm and Bonferroni procedures are alternatives when the goal is familywise error rate control rather than false discovery rate control. They use different thresholds and answer a different error-rate question; they do not make a discrete p-value continuous or eliminate the need to check its validity. For BH, the practical sequence is to verify p-value validity, sort the unrounded values, compare each rank with its own threshold, and report the full rejected prefix, including every tied value it contains.

Key takeaway: Ties do not change the BH rule: identical p-values occupy consecutive ranks and cannot be split by the step-up decision. Valid discrete p-values also fit the rule, but their sparse attainable values can leave thresholds unmet and make FDR control conservative relative to its nominal bound.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. With \(m=4\), \(q=0.10\), and ordered p-values \(0.010,\ 0.030,\ 0.030,\ 0.200\), what is the largest qualifying rank, and can the tied values be split?
  2. In one sentence, state the condition that makes a p-value valid under a null hypothesis.
  3. Why can a valid discrete p-value be conservative for BH without changing the BH threshold formula?
  4. Why can rounding p-values before ranking lead to an incorrect BH rejection set?

Solutions. (1) The thresholds are \(0.025,\ 0.050,\ 0.075,\ 0.100\). Ranks 1, 2, and 3 qualify, while rank 4 does not, so \(k=3\); both tied values are rejected. (2) Validity means \(P(P_i\le t)\le t\) for every \(t\) from 0 to 1 under the null. (3) Discrete p-values may skip threshold values, leaving the smallest attainable value above a BH cutoff, and their null probabilities can be strictly below the super-uniform bound. (4) Rounding can create artificial ties or move a value across a threshold, changing its ordering or the largest qualifying rank.

Clinical Biostats