Why Cross-Gene Assumptions Matter
Empirical Bayes moderation uses information from many genes to stabilize the variance estimate for each gene. The crucial premise is not that genes have identical expression or identical biological roles. It is that their gene-wise residual variances can be described, perhaps after accounting for a trend or known groups, by a common distribution with estimable parameters. The number of genes can make that distribution informative, but only to the extent that the gene-wise information is sufficiently comparable and not so dependent that it amounts to far fewer independent pieces of information.
Two assumptions are often conflated. A shared marginal prior says that gene variances in a specified set follow the same distribution. Cross-gene independence says that information from different genes is independent, or is treated as independent when estimating that distribution. The first supports borrowing; the second is a convenient assumption for many prior-fitting likelihoods and their uncertainty calculations. Dependence does not automatically make a shared marginal prior false, but it can make the apparent amount of information in the gene collection much larger than the effective amount.
The Gene-Wise Model and the Shared Prior
For gene \(g\), a linear model represents its expression measurements across samples as \(y_g=X\beta_g+\varepsilon_g\). Here \(X\) is the design matrix, \(\beta_g\) is the vector of gene-specific coefficients, and the within-gene residual model is \(\varepsilon_g\mid\sigma_g^2\sim N(0,\sigma_g^2 I)\). If the model has \(df_g\) residual degrees of freedom, its residual variance estimate is \(s_g^2\), with \(df_gs_g^2/\sigma_g^2\sim\chi^2_{df_g}\) under the model. These are gene-wise statements; they do not by themselves specify the relationship between residuals or variances for different genes.
The shared-prior premise is about a distribution of variances, not one common variance value. Under this prior and the gene-wise sampling model, \(s_g^2/s_0^2\) has an \(F\) distribution with \(df_g\) and \(df_0\) degrees of freedom. This marginal distribution is the basis for estimating the prior from observed gene-wise variances. Conditional on the fitted prior, the moderated variance estimate is a weighted average:
The weight \(df_0\) represents the strength of the prior information, while \(df_g\) represents the gene's own residual information. Thus the prior must be plausible for the gene set being moderated. If prior parameters are estimated from many genes, their precision also depends on how much independent information those genes provide.
Worked Example: Borrowing Under a Common Prior
Suppose a hypothetical microarray analysis has a fitted prior scale \(s_0^2=0.0400\) expression-units-squared and \(df_0=8\). One gene has \(df_g=4\) and observed residual variance \(s_g^2=0.0900\) expression-units-squared. The within-gene model is assumed adequate, and this gene is treated as drawn from the same prior distribution used for the analysis set.
Its moderated variance is \[ \widetilde{s}_g^2=\frac{df_0s_0^2+df_gs_g^2}{df_0+df_g} =\frac{8(0.0400)+4(0.0900)}{8+4} =\frac{0.320+0.360}{12} =0.05667 \] expression-units-squared.
The observed variance is above the prior scale, so moderation moves it downward, but not all the way to \(0.0400\). The calculation uses the fitted prior as if it were appropriate for this gene. It does not show that the prior parameters are known exactly, nor does it establish that genes were independent when those parameters were fitted.
What Dependence Changes
Genes measured in the same samples need not be independent. Shared sample quality, preprocessing, normalization, and biological co-expression can induce relationships across gene-level measurements. Such relationships may also make gene-wise variance estimates dependent. However, correlation of expression levels across genes does not, by itself, prove that their residual variance estimates have a particular correlation: the dependence relevant to prior fitting concerns the gene-level quantities used to estimate the variance distribution.
If the marginal variance distribution is correctly specified, dependence need not make each gene's marginal prior false. Its clearest consequence is that treating all genes as independent can overstate the precision of estimated prior parameters. With positive dependence, groups of similar genes may contribute less new information than the same number of independent genes. Under weak dependence, a pooled prior estimate may still be useful, but uncertainty assessments based on independence can be too optimistic. Strong or pervasive dependence can make the prior estimate unstable even when the gene count is large.
A short calculation illustrates the loss of information. Let \(Z_g\) be a gene-level summary used to learn a prior parameter, with variance \(\tau^2\) and common pairwise correlation \(\rho\) across \(G\) genes. Then
If this variance is expressed as \(\tau^2/G_{\mathrm{eff}}\), the corresponding effective number of independent summaries is \(G_{\mathrm{eff}}=G/[1+(G-1)\rho]\). This is an illustration under equal variances and equicorrelation, not a universal adjustment formula for empirical Bayes fitting. Real dependence can be uneven, clustered, or more complicated than one common correlation.
Worked Example: Many Genes, Fewer Independent Summaries
Suppose, hypothetically, that \(G=100\) genes contribute summaries with variance \(\tau^2=0.250\), and that the pairwise correlation among those summaries is \(\rho=0.0500\). This equicorrelation calculation assumes the same variance and correlation for every pair; it is used here only to show the effect of dependence.
If the summaries were independent, the variance of their mean would be \(\tau^2/G=0.250/100=0.00250\), giving standard error \(\sqrt{0.00250}=0.0500\). With the stated positive correlation, \[ \operatorname{Var}(\bar{Z})=\frac{0.250}{100}\left[1+99(0.0500)\right] =0.00250(5.95)=0.01488, \] so the standard error is \(\sqrt{0.01488}=0.1220\).
The illustrative effective count is \[ G_{\mathrm{eff}}=\frac{100}{1+99(0.0500)} =\frac{100}{5.95}=16.81. \] Thus 100 positively correlated summaries have the same variance for their mean as about 16.8 independent summaries under this simplified model. This does not mean an analysis should replace 100 genes with 16.8 genes; it means that an independence-based precision claim can be misleading.
When One Shared Prior Is Not Enough
A common prior is most defensible when the genes being pooled have comparable marginal variance distributions after any relevant modeling of systematic trends. If variability changes with average expression intensity, a single distribution across all genes can be a poor description. A similar problem arises if identifiable gene groups have substantially different variance distributions. In such cases, moderation toward one pooled prior can pull low-variance genes upward and high-variance genes downward toward an inappropriate center.
This is distinct from cross-gene dependence. Dependence concerns how much independent information the observed genes supply; heterogeneity concerns whether the genes share the same marginal prior in the first place. A variance trend can address systematic changes in the prior with a covariate such as average intensity, while a robust prior fit can reduce the influence of extreme genes. Neither automatically removes dependence among the gene-level summaries.
Worked Example: A Pooled Prior Across Two Variance Groups
Consider a hypothetical set with 20 genes in each of two known groups. Suppose the average true residual variance is \(0.0200\) expression-units-squared in Group A and \(0.180\) expression-units-squared in Group B. For illustration, assume equal group sizes and use the pooled arithmetic mean as a simplified estimate of the prior variance center. This calculation is not the full scaled inverse-chi-squared fitting procedure; it isolates the effect of pooling distinct groups.
The pooled center is \[ \frac{20(0.0200)+20(0.180)}{40} =\frac{0.400+3.60}{40} =0.100 \] expression-units-squared. That center is five times the Group A mean and about 56% of the Group B mean. A common prior centered there would pull the groups in opposite directions, even if the difference reflects a real and systematic feature of the data rather than random gene-to-gene variation.
The assumption check therefore fails for a single unadjusted prior if the groups truly have different variance distributions. A suitable response might be to estimate priors within justified groups or model an observed trend, then examine whether the resulting distributions fit. Simply increasing the number of genes in the pooled analysis does not repair a misspecified common prior.
Diagnostics, Alternatives, and Limits
No single diagnostic proves cross-gene independence or validates a prior. Useful checks include inspecting gene-wise residual variance summaries against average expression and other design-relevant covariates; comparing variance distributions across pre-specified gene groups; and examining whether residual patterns or variance summaries cluster by pathway, sample quality, or technical features. Strong structure in these checks suggests that an independent, identically distributed prior for all genes may be too simple. A smooth marginal histogram alone cannot rule out dependence: correlated observations can have the same marginal distribution as independent ones.
The main alternatives answer different problems. Unmoderated gene-wise variances avoid borrowing across genes, but can be unstable when \(df_g\) is small. A trend prior allows the prior variance distribution to vary with a measured covariate. Group-specific priors allow distinct distributions for defensible groups but can be imprecise if groups are small. Robust fitting limits the influence of unusual genes when estimating prior parameters, but does not make all genes independent. These approaches can address some forms of heterogeneity or outlier influence; none should be described as a general correction for arbitrary cross-gene dependence.
Dependence among genes also matters when interpreting a collection of gene-level results: discoveries may occur in related groups rather than representing independent biological signals. The variance prior is not a model of the dependence structure among gene effects or test statistics. Moderation stabilizes gene-wise variance estimates under its assumptions; it does not establish that genes are independent, that a pathway is enriched, or that a gene-level association is causal.
Common Mistake
Wrong reasoning: “There are thousands of genes, so the prior parameters must be estimated very precisely, and the genes can be treated as independent.”
Correction: The gene count alone does not establish either claim. Precision depends on the dependence among the quantities used for prior fitting, and the shared-prior assumption depends on whether their marginal distributions are sufficiently comparable. Check for trends and groups, consider the effect of dependence on uncertainty, and describe the fitted prior as an empirical summary rather than a known biological constant.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- What is the difference between a shared marginal variance prior and independence across genes?
- For \(G=50\) summaries with equal variance and equicorrelation \(\rho=0.0200\), calculate the illustrative effective number of independent summaries.
- Does correlation among gene expression measurements automatically prove that the gene-wise residual variance estimates have the same correlation? Explain.
- How does a systematic intensity-related variance trend differ from dependence among gene-wise variance estimates?
Solutions. (1) A shared marginal prior says that genes in the analysis set follow the same variance distribution; independence says their gene-level quantities are statistically independent. The former supports borrowing, while the latter is a separate assumption often used in prior fitting. (2) \(G_{\mathrm{eff}}=50/[1+49(0.0200)]=50/1.98=25.25\). Under the stated simplified assumptions, the 50 summaries have the same mean variance as about 25.3 independent summaries. (3) No. Expression correlation can arise without a specified matching correlation in residual variance estimates; the relevant dependence must be assessed for the quantities used in prior estimation. (4) A trend means the marginal variance distribution changes systematically with intensity, so one common prior may be misspecified. Dependence means the summaries are related across genes, reducing independent information; it can occur even when their marginal distributions are the same.