Tutorials › High-Dimensional Genomic Data Analysis › Local FDR Thresholds and Decision Loss

Empirical Bayes and Local FDR · Tutorial 187 of 795

Local FDR Thresholds and Decision Loss

Learn to turn local false discovery rates into discovery decisions by comparing posterior expected losses under specified false-positive and false-negative costs.

Advanced 10 min read

What You'll Learn

  • Define posterior expected loss for discovery and non-discovery decisions.
  • Derive the optimal local-FDR threshold from the two error costs.
  • Calculate feature-level decisions and total expected loss in hypothetical genomic examples.
  • Explain how changing the relative costs changes the discovery rule.
  • Distinguish a loss-minimizing posterior decision from a procedure that controls an error rate.
  • Identify assumptions and diagnostics relevant to using a local-FDR threshold.

From Posterior Probabilities to Decisions

A local false discovery rate expresses the posterior probability that a tested feature is null, given its observed evidence and the model used to analyze it. That probability describes uncertainty; it does not, by itself, say whether a feature should be declared a discovery. A decision also requires specifying the consequences of the two possible errors: declaring a null feature non-null, or failing to discover a non-null feature.

In genomic analysis, those consequences can differ. A false positive might lead to costly follow-up experiments, while a false negative might cause a potentially useful signal to be overlooked. A rule that makes the two errors equally costly can therefore be inappropriate when their practical consequences differ. Decision theory makes the trade-off explicit by assigning costs to errors and choosing the action with the lower posterior expected cost.

Definition: For feature \(i\), let \(H_i=0\) mean that the feature is null and \(H_i=1\) mean that it is non-null. Let \(\ell_i=P(H_i=0\mid \text{available data})\) be its posterior null probability, or local FDR under the specified model. A discovery declares the feature non-null; a non-discovery does not. Let \(C_{\mathrm{FP}}>0\) be the cost of a false positive and \(C_{\mathrm{FN}}>0\) the cost of a false negative. Correct decisions have cost zero. The posterior expected loss of an action is its expected cost conditional on the available data.

In applications, the available data may be the feature’s test statistic under a two-group model, so that \(\ell_i\) is computed from that statistic and the model’s null proportion and densities. More generally, the decision rule below uses the posterior null probability conditional on whatever information is being used for the decision. The costs must be expressed on a common scale: multiplying both by the same positive constant leaves the decision unchanged.

Deriving the Local-FDR Threshold

For a given feature, a false positive occurs if it is declared a discovery while \(H_i=0\), an event with posterior probability \(\ell_i\). A false negative occurs if it is not declared a discovery while \(H_i=1\), an event with posterior probability \(1-\ell_i\). Thus the two possible actions have the following conditional expected losses.

$$ L_i(\text{discover}\mid\text{data})=C_{\mathrm{FP}}\ell_i,\qquad L_i(\text{do not discover}\mid\text{data})=C_{\mathrm{FN}}(1-\ell_i). $$

Choose the action with smaller expected loss. A discovery is preferred when its loss is no greater than the alternative:

$$ C_{\mathrm{FP}}\ell_i\leq C_{\mathrm{FN}}(1-\ell_i) \quad\Longleftrightarrow\quad (C_{\mathrm{FP}}+C_{\mathrm{FN}})\ell_i\leq C_{\mathrm{FN}} \quad\Longleftrightarrow\quad \ell_i\leq \frac{C_{\mathrm{FN}}}{C_{\mathrm{FP}}+C_{\mathrm{FN}}}. $$
Decision rule: With positive false-positive and false-negative costs, define the local-FDR threshold \(\tau=C_{\mathrm{FN}}/(C_{\mathrm{FP}}+C_{\mathrm{FN}})\). Discover feature \(i\) if \(\ell_i<\tau\), do not discover it if \(\ell_i>\tau\), and either action has the same posterior expected loss if \(\ell_i=\tau\). The threshold is determined by the specified costs, not by the observed data.

The rule is a direct consequence of minimizing conditional expected loss, not an extra assumption about the distribution of the test statistics. For equal costs, \(\tau=1/2\): discover when the posterior probability of being non-null exceeds one half. If false positives are more costly, the denominator is unchanged but the threshold falls as \(C_{\mathrm{FP}}\) grows relative to \(C_{\mathrm{FN}}\). If false negatives are more costly, the threshold rises. These comparisons hold when the posterior probabilities are appropriate for the information used and the stated costs correctly represent the decision problem.

Worked Decisions With Specified Costs

Worked Example: A Costly False Positive

Suppose a hypothetical genomic screen assigns a candidate feature a local FDR of \(\ell=0.12\). The analysis team assigns a cost of \(C_{\mathrm{FP}}=4\) units to a false positive and \(C_{\mathrm{FN}}=1\) unit to a false negative. Assume the local FDR is the relevant posterior null probability and that these are the only error costs.

The cost-based threshold is

$$ \tau=\frac{1}{4+1}=0.20. $$

Since \(0.12<0.20\), the rule selects discovery. Checking both actions gives the same conclusion:

$$ L(\text{discover}\mid\text{data})=4(0.12)=0.48,\qquad L(\text{do not discover}\mid\text{data})=1(1-0.12)=0.88. $$

The posterior expected loss is \(0.48\) cost units for declaring a discovery, compared with \(0.88\) units for not doing so. This comparison does not say that the feature is certainly non-null; it says that, under the stated model and costs, discovery has the lower expected loss.

Worked Example: Decisions Across Five Features

Consider five hypothetical genomic features with local FDRs \(0.04,\ 0.10,\ 0.18,\ 0.24,\) and \(0.60\). Let \(C_{\mathrm{FP}}=3\) and \(C_{\mathrm{FN}}=2\) cost units for every feature. Assume each local FDR is the appropriate posterior null probability and the total loss is the sum of the feature-level losses.

The threshold is \(\tau=2/(3+2)=0.40\), so the first four features are discoveries and the fifth is not. To verify the decisions and compute the total posterior expected loss, compare both actions feature by feature.

Local FDR \(\ell_i\)Loss if discovered \(3\ell_i\)Loss if not discovered \(2(1-\ell_i)\)Chosen action
0.040.121.92Discover
0.100.301.80Discover
0.180.541.64Discover
0.240.721.52Discover
0.601.800.80Do not discover

Adding the smaller loss in each row gives \(0.12+0.30+0.54+0.72+0.80=2.48\) cost units. For comparison, choosing no discoveries would give \(1.92+1.80+1.64+1.52+0.80=7.68\) units. The value \(2.48\) is the total posterior expected loss conditional on the observed data and the model, not an observed count of errors.

Worked Example: How the Cost Ratio Changes the Decision

A hypothetical candidate has local FDR \(\ell=0.25\). Compare two possible decision settings, both using the same posterior probability. In setting A, \(C_{\mathrm{FP}}=5\) and \(C_{\mathrm{FN}}=1\). In setting B, \(C_{\mathrm{FP}}=5\) and \(C_{\mathrm{FN}}=3\). Assume the costs capture all relevant consequences and are measured on a common scale.

In setting A, \(\tau=1/(5+1)=0.1667\). Because \(0.25>0.1667\), do not discover. The two expected losses are \(5(0.25)=1.25\) units for discovery and \(1(0.75)=0.75\) units for non-discovery.

In setting B, \(\tau=3/(5+3)=0.375\). Now \(0.25<0.375\), so discover. The expected loss of discovery remains \(5(0.25)=1.25\) units, while the expected loss of non-discovery rises to \(3(0.75)=2.25\) units. The evidence and local FDR have not changed; the preferred decision changes because the cost of missing a non-null feature is greater in setting B.

Many Features, Assumptions, and Alternatives

If the total loss is the sum of feature-level losses, the posterior expected total loss is also the sum of the feature-level posterior expected losses. This follows from linearity of conditional expectation; independence among features is not required for this addition. Therefore, minimizing each feature’s conditional expected loss minimizes the sum. In particular, dependence does not change this calculation when the posterior null probabilities used for each decision are valid conditional probabilities for the information being used.

$$ E\!\left[\sum_i L_i\mid\text{data}\right] =\sum_i E[L_i\mid\text{data}]. $$

The assumptions that matter are chiefly about the decision setup. There are two actions per feature; costs are specified and comparable; incorrect discoveries and missed non-null features incur the stated costs; and the posterior probabilities are suitable for the decisions. If a false positive’s cost differs by feature, use its feature-specific cost in the comparison. If the cost of a missed signal also varies, use that feature-specific cost too. The same derivation then gives a separate threshold for each feature.

This loss-minimizing rule answers a different question from a procedure designed to control an error rate, such as a false discovery rate target. Error-rate procedures seek a specified property of errors across a collection of tests; the rule derived here seeks the lowest expected cost under the stated cost model and posterior probabilities. A conventional \(p\)-value cutoff is also not automatically a local-FDR decision threshold: it summarizes evidence under a null model, while the rule compares posterior probabilities and costs. One approach is not universally preferable; the appropriate choice depends on the objective.

Common pitfall: “The local FDR is below 0.05, so discovery is justified” is not a decision rule unless the 0.05 threshold follows from the specified costs or another stated objective. For example, with \(C_{\mathrm{FP}}=9\) and \(C_{\mathrm{FN}}=1\), the loss-based threshold is \(0.10\), not \(0.05\). Conversely, with \(C_{\mathrm{FP}}=19\) and \(C_{\mathrm{FN}}=1\), it is \(0.05\). State the decision objective and costs rather than treating a familiar cutoff as self-justifying.

A practical diagnostic is to recompute the threshold and the action-specific expected losses for borderline features. If a reported decision conflicts with those calculations, check whether the costs were reversed, whether the local FDR is a posterior null probability rather than a tail-area error rate, and whether the inequality has been applied in the correct direction. Also assess whether the fitted null and alternative model plausibly represents the data: a numerically precise threshold cannot correct a poorly calibrated posterior probability. Estimated posterior probabilities and chosen costs may themselves be uncertain, so decisions close to the threshold deserve particular caution.

The two-action rule has limitations. It does not account for costs that depend on how many features are selected, such as a penalty for exceeding a follow-up budget, unless those effects are added to the decision problem. Nor does it directly represent graded actions, such as prioritizing features for different levels of validation. In such settings, the possible actions and their costs need to be specified more fully; the simple threshold applies to the binary, additive-loss setup described here.

Check Your Understanding

For each question, use the stated costs and posterior null probabilities. Solutions follow the questions.

  1. If \(C_{\mathrm{FP}}=2\) and \(C_{\mathrm{FN}}=3\), what is the threshold, and what decision minimizes expected loss for a feature with \(\ell=0.40\)?
  2. With equal error costs, what is the decision for \(\ell=0.50\), and why?
  3. A feature has \(\ell=0.15\), \(C_{\mathrm{FP}}=6\), and \(C_{\mathrm{FN}}=2\). Calculate both action-specific expected losses and identify the preferred action.
  4. Does minimizing the sum of feature-level posterior expected losses require the features to be independent? Explain briefly.

Solutions. (1) \(\tau=3/(2+3)=0.60\), so discover. Its expected loss is \(2(0.40)=0.80\), while non-discovery costs \(3(0.60)=1.80\). (2) The threshold is \(0.50\). At equality, both actions have loss \(0.50\) times the common cost, so they tie. (3) Discovery costs \(6(0.15)=0.90\); non-discovery costs \(2(0.85)=1.70\). Choose discovery. (4) No. Linearity of conditional expectation gives the expected sum as the sum of expected losses; independence is not needed, provided the posterior probabilities used for the decisions are appropriate.

Clinical Biostats