Why Noisy Donor Estimates Move Toward a Mean
A donor-specific estimate can be far from the average across donors because the donor’s underlying response differs from the average, because the estimate is noisy, or both. A hierarchical model separates these sources of variation. When an estimate is imprecise, the model gives more weight to the distribution of effects across donors; when it is precise, the estimate itself receives more weight. This adjustment toward a shared mean is called shrinkage.
Here the target is an estimate of each donor’s underlying effect, not a replacement for the donor as the biological replicate. The earlier material on Partial Pooling Across Donors establishes the broad idea; the focus here is the exact shrinkage calculation and how its amount changes with the two variance components.
Model and Assumptions
Use the normal-normal hierarchical model
The parameter \(\mu\) is the population mean effect across donors, and \(\tau^2\) is the between-donor variance. The observed estimate \(y_i\) has within-donor sampling variance \(v_i\), treated as known for this calculation. Conditional on the donor effects, the observation errors for different donors are assumed independent. The donor effects are modeled as independent draws from the same normal distribution. The model also assumes that the estimate is centered on its donor’s effect: \(E(y_i\mid\theta_i)=\theta_i\).
These assumptions matter. If the \(y_i\) values are biased, the adjustment does not repair that bias. If donor effects are not adequately represented by a common normal distribution, or if the reported \(v_i\) values are unreliable, the resulting shrinkage may be misleading. In practice, \(\mu\) and \(\tau^2\) are often estimated from the observed donors. The formulas below first treat them as specified; substituting estimated values is an empirical Bayes calculation and does not automatically account for uncertainty in those estimates.
Deriving the Shrinkage Formula
Under the model, the conditional density of \(\theta_i\) given \(y_i\) is proportional to the prior density times the sampling density. Keeping only terms that depend on \(\theta_i\), its log density is
Expanding the two squares and collecting the terms in \(\theta_i\) gives a normal conditional distribution. Its precision (the reciprocal of its variance) is the sum of the prior precision and the sampling precision:
The conditional mean is this variance multiplied by the sum of the precision-weighted mean values. Rearranging gives the central result:
The weight \(B_i\), between zero and one, is the fraction of the observed deviation from \(\mu\) that remains in the shrunken estimate. The amount of shrinkage toward \(\mu\) is therefore
The sign of this difference depends on which side of \(\mu\) the observation falls; the magnitude is the distance moved toward \(\mu\). The conditional variance, \(\tau^2v_i/(\tau^2+v_i)\), describes uncertainty about \(\theta_i\) after observing \(y_i\), conditional on the specified model and parameters. It is not the sampling variance of \(y_i\) alone.
Worked Example: Shrinking One Noisy Donor Estimate
Suppose all effects are measured in log-fold-change units. For one hypothetical donor, let \(y_i=1.8\), \(\mu=1.0\), \(\tau^2=0.36\), and \(v_i=0.64\). Treat the model parameters and sampling variance as known for this calculation.
The shrinkage weight is
Thus the shrunken estimate is
The observed estimate is \(0.8\) log-fold-change units above the population mean; the adjusted estimate retains \(0.288\) units of that difference. The shift toward the mean is \(1.8-1.288=0.512\) log-fold-change units. The conditional variance and standard deviation are
Under the specified model, the conditional distribution of this donor’s effect is \(N(1.288,0.2304)\). This is a model-based distribution for the donor effect, not a statement that there is a 95% probability that a fixed parameter lies in a particular confidence interval.
How the Two Variances Control Shrinkage
The formula shows that shrinkage is governed by the ratio of within-donor sampling variance to between-donor variance. A large \(v_i\) means the observed estimate is noisy relative to the spread of true donor effects, so \(B_i\) is small and the adjusted estimate moves strongly toward \(\mu\). A large \(\tau^2\) means donors plausibly differ substantially, so an individual estimate is more informative about its own donor effect and \(B_i\) is closer to one.
Two limits make the interpretation clear. If \(v_i\) approaches zero while \(\tau^2\) stays positive, then \(B_i\) approaches one and the estimate is barely adjusted. If \(\tau^2\) approaches zero while \(v_i\) is positive, then \(B_i\) approaches zero and the estimate approaches \(\mu\). The latter case says that the model allows almost no genuine donor-to-donor variation. It should not be invoked simply because the observed estimates happen to be similar in a small sample.
Worked Example: Different Precision, Different Shrinkage
Two hypothetical donors have the same estimate, \(y_i=1.4\) log-fold-change units, and the same population mean, \(\mu=0.5\). Set the between-donor variance to \(\tau^2=0.25\). Suppose donor A has within-donor variance \(v_i=0.04\), while donor B has \(v_i=0.36\).
For donor A,
For donor B,
Although the observed estimates are identical, donor A’s estimate is more precise and remains closer to \(1.4\). Donor B’s noisier estimate receives less weight and is adjusted more toward \(0.5\). This comparison assumes the two sampling variances are correctly specified and the same normal distribution of donor effects applies to both donors.
Worked Example: Changing Between-Donor Variance
Consider a hypothetical donor with \(y_i=2.0\) and \(v_i=0.25\), with \(\mu=1.2\), all in log-fold-change units. Compare two plausible values of between-donor variance to see the effect of that assumption.
If \(\tau^2=0.0625\), then
If instead \(\tau^2=0.5625\), then
The donor observation and its sampling variance have not changed. The larger assumed between-donor variance makes a value far from the mean more plausible as a genuine donor difference, so the estimate is shrunk less. Choosing \(\tau^2\) is consequently consequential; it is not a harmless computational setting.
Comparisons, Checks, and Limitations
The unadjusted estimate \(y_i\) corresponds to giving full weight to the donor’s observation, as if there were no sampling noise to account for. Complete pooling would replace every donor estimate by \(\mu\), giving no weight to donor-specific observations. Normal-model shrinkage lies between these extremes: it retains a larger fraction of an estimate’s deviation when its sampling variance is small relative to \(\tau^2\). Unlike a uniform compromise, the weight can differ by donor when the \(v_i\) values differ.
Before interpreting adjusted estimates, check that the inputs and model are credible. Confirm that estimates and variances refer to the same effect scale, that variances are nonnegative and in squared units, and that the donor-specific estimates are approximately unbiased with the stated uncertainty. Compare the observed spread of donor estimates with the spread expected from their \(v_i\) values and the assumed \(\tau^2\). Large discrepancies, extreme outliers, or a pattern that is poorly represented by a normal distribution can signal model misfit. A variance estimate at or near zero deserves particular scrutiny, especially when there are few donors, because it forces strong pooling and may be unstable.
The calculation has important limits. It conditions on \(\mu\), \(\tau^2\), and \(v_i\); in real applications these quantities may themselves be estimated. Treating estimated quantities as known can make the apparent adjustment more certain than it is. The normal model also describes a distribution of donor effects, not a causal explanation for why donors differ. Shrinkage does not create additional biological replicates, remove confounding, or ensure that the model’s assumptions hold. It is a way to stabilize donor-specific estimates under a stated model, not a substitute for examining the data and design.
Common Mistake
A common mistake is to say, “This donor’s estimate is far from the mean, so it must be shrunk strongly.” Distance alone does not determine the adjustment. The amount of movement is \(\frac{v_i}{\tau^2+v_i}|y_i-\mu|\): both the distance and the variance ratio matter. For example, an extreme but precise estimate can retain most of its distance from \(\mu\), while a less extreme but very noisy estimate can be pulled substantially toward it. Another error is to interpret the adjusted value as the donor’s known true effect. It remains an estimate, conditional on the hierarchical model and its parameters.
Check Your Understanding
Answer each question using the normal hierarchical model defined above. Solutions follow the questions.
- If \(\tau^2=0.4\) and \(v_i=0.1\), calculate \(B_i\). What fraction of the observed deviation from \(\mu\) remains?
- A donor has \(y_i=3.0\), \(\mu=2.0\), and \(B_i=0.25\). Find the shrunken estimate and the signed change from \(y_i\) to that estimate.
- With \(\tau^2=0.2\), compare the shrinkage weights for \(v_i=0.05\) and \(v_i=0.8\). Which estimate is pulled more strongly toward \(\mu\)?
- State what happens to the shrunken estimate as \(\tau^2\) approaches zero while \(v_i\) remains positive. What does that imply about the model’s assumption concerning donor differences?
Solutions. (1) \(B_i=0.4/(0.4+0.1)=0.8000\), so 80% of the observed deviation remains. (2) The adjusted estimate is \(2.0+0.25(3.0-2.0)=2.25\); the signed change is \(2.25-3.0=-0.75\), in the same units as the estimates. (3) For \(v_i=0.05\), \(B_i=0.2/0.25=0.8000\); for \(v_i=0.8\), \(B_i=0.2/1.0=0.2000\). The estimate with \(v_i=0.8\) is pulled more strongly toward \(\mu\). (4) \(B_i\) approaches zero, so the adjusted estimate approaches \(\mu\). This reflects a model that allows almost no genuine variation among donor effects.