From Matched Measurements to Pathway Priors
A pathway prior is useful only when its biological meaning and statistical role are explicit. In this worked analysis, pathway membership changes how much effect variation the model expects before seeing the outcome-associated data. It does not force a member feature to have a nonzero effect, nor does membership establish that the pathway causes the outcome.
Consider a hypothetical study of 16 patients. RNA abundance and protein abundance are measured on the same patients, alongside a clinical outcome. For each molecular feature, a regression adjusted for age produces an estimated standardized association with the outcome, \(b_j\), and an estimated sampling variance \(v_j\). The standardized coefficient is in standard-deviation units of outcome per standard-deviation unit of feature. Suppose the estimates used below have \(v_j=0.15625\), so their standard error is \(\sqrt{0.15625}=0.3953\) standardized-effect units.
The measurements are matched because the same patients contribute to both molecular layers. Matching helps ensure that layer-specific estimates refer to the same study population, but it does not make the RNA and protein estimates independent. We first analyze each feature's marginal estimate; a joint analysis of several features would need to account for cross-feature covariance if that covariance is material.
The sampling model treats the reported estimate as approximately normal with known sampling variance. In practice, that approximation is most defensible when the regression estimator is approximately normal and its standard error is sufficiently well estimated. The prior variances are fixed for this illustration. They should be chosen or calibrated using relevant biological context and prior predictive assessment, not tuned merely to produce a desired posterior result.
Building the Membership Prior
To create \(g_j\), map the measured features to a pathway definition using identifiers and the appropriate molecular layer. For this hypothetical example, suppose the pathway database has already been filtered to the relevant tissue and context. Two measured features, transcript \(T_A\) and protein \(P_A\), are pathway members; transcript \(T_B\) is not. This is a simplified binary assignment. A real analysis should document how ambiguous identifiers, multiple pathway annotations, and uncertain membership are handled.
The assignment is a prior-model decision, not an observation of the outcome effect. Here it changes the prior variance from \(0.09\) for a nonmember to \(0.64\) for a member. Both priors remain centered at zero, so positive and negative effects are possible for either group. A membership-informed prior therefore represents a difference in expected effect scale, not a claim that all members are associated.
If membership itself is uncertain, one possible extension is a mixture prior. If \(q_j\) is the prior probability that feature \(j\) belongs to the pathway, assign probability \(q_j\) to \(N(0,\tau_1^2)\) and \(1-q_j\) to \(N(0,\tau_0^2)\). The prior predictive density of \(b_j\) is then a mixture of normal densities with variances \(v_j+\tau_1^2\) and \(v_j+\tau_0^2\). This retains membership uncertainty rather than converting weak evidence into a certain assignment. The worked calculations below use the simpler binary assignments.
Worked Example: Assigning Priors to Matched RNA and Protein Features
Suppose database mapping identifies \(T_A\) and \(P_A\) as members and \(T_B\) as a nonmember. State the effect priors and explain what the assignment implies.
For \(T_A\) and \(P_A\), \(g_j=1\), so \(\theta_j\sim N(0,0.8^2)=N(0,0.64)\). For \(T_B\), \(g_j=0\), so \(\theta_j\sim N(0,0.3^2)=N(0,0.09)\). All three features use the same sampling variance, \(v_j=0.15625\), in the likelihood.
The member prior has a larger standard deviation: \(0.8\) rather than \(0.3\) standardized-effect units. It consequently puts more prior mass on effects far from zero. It does not imply that \(T_A\) and \(P_A\) have equal effects, or even that either effect is positive. Nor does the shared pathway label make the two measured features statistically independent in the data.
Gaussian Updating and Its Justification
For a feature assigned prior variance \(\tau^2\), the likelihood and prior are both normal. Their product gives a normal posterior. The posterior mean is a weighted average of the observed estimate and the prior mean, which is zero here. The posterior variance is smaller than either variance separately because the likelihood and prior contribute information about the same effect.
For completeness, these expressions follow by collecting the terms involving \(\theta\) in the log of the likelihood times the prior. Ignoring constants that do not depend on \(\theta\), the exponent is
The coefficient of \(\theta^2\) is the posterior precision \(1/V\). Completing the square gives the center \(m=Vb/v\), yielding the stated posterior normal distribution. This also shows why the posterior mean is pulled toward zero: the prior contributes precision \(1/\tau^2\) centered at zero. With larger \(\tau^2\), the prior contributes less precision and the estimate is shrunk less.
Worked Example: Posterior Effect for a Pathway-Member Transcript
For \(T_A\), suppose the observed standardized association is \(b_{T_A}=0.70\), with \(v=0.15625\). Since it is a member, use \(\tau^2=0.64\). Calculate its posterior mean, standard deviation, and central 95% posterior interval.
The shrinkage factor multiplying the observed estimate is
Therefore, \(m_{T_A}=0.8031399(0.70)=0.5621979\), or \(0.5622\) standardized-effect units. The posterior variance and standard deviation are
Under this normal posterior, a central 95% posterior interval is the posterior mean plus or minus \(1.96\) posterior standard deviations:
Conditional on this model and the observed estimate, the interval contains 95% of the posterior probability for \(\theta_{T_A}\). It is not a statement that there is a 95% repeated-sampling probability that this fixed parameter lies in this particular interval. The interval includes zero, so the posterior remains compatible with effects in either direction, as well as values near zero.
Worked Example: A Member Protein and a Nonmember Transcript
Suppose \(P_A\) has \(b_{P_A}=0.55\) and is a pathway member. Also suppose \(T_B\) has \(b_{T_B}=0.10\) and is a nonmember. Use \(v=0.15625\) for each feature and calculate their posterior summaries.
For \(P_A\), the member shrinkage factor is \(0.64/0.79625=0.8031399\). Its posterior mean is \(0.8031399(0.55)=0.441727\), or \(0.4417\) standardized-effect units. Its posterior standard deviation is the same as for \(T_A\), \(0.354384\), because the prior and sampling variances are the same. Its central 95% posterior interval is
For \(T_B\), use the nonmember prior variance \(\tau^2=0.09\). Its shrinkage factor is
The posterior mean is \(0.3654822(0.10)=0.0365482\), or \(0.03655\) standardized-effect units. Its posterior variance and standard deviation are
Thus its central 95% posterior interval is
The small observed estimate for \(T_B\) is pulled closer to zero, but its interval is not a declaration that its true effect must be negligible. These intervals are broad relative to the posterior means, reflecting the sampling uncertainty and the chosen prior scales.
Prior Predictive Checks
A prior predictive check asks what estimates the model could generate before conditioning on the observed estimate. For a fixed membership class, integrating over \(\theta_j\) gives \(b_j\sim N(0,\tau^2+v_j)\): the prior variance of the effect and the sampling variance add. This distribution can expose a prior that predicts effects far too small or large for the intended analysis.
Worked Example: Checking the Prior-Predicted Range
For the member prior, \(\tau^2+v=0.64+0.15625=0.79625\), so the prior predictive standard deviation of an estimate is \(\sqrt{0.79625}=0.8923\) standardized-effect units. Its central 95% prior predictive interval is approximately \(0\pm1.96(0.8923)=[-1.749,1.749]\). The observed \(b_{T_A}=0.70\) falls within that range.
For a nonmember, the prior predictive variance is \(0.09+0.15625=0.24625\), with standard deviation \(0.4962\). The central 95% prior predictive interval is approximately \(0\pm1.96(0.4962)=[-0.9726,0.9726]\). The observed \(b_{T_B}=0.10\) also falls within that range. These checks show that neither particular estimate is outside its corresponding central prior predictive range. They do not establish that the prior is appropriate: a broader check should consider many features, plausible effect scales, and the number of extreme estimates expected.
If a membership prior predicts estimates that are implausibly extreme across many features, its variance may be too large; if it predicts nearly all estimates to be close to zero despite credible evidence for substantial effects, it may be too restrictive. Prior predictive checks assess consequences of prior choices. They are distinct from posterior predictive checks, which assess data replicated from a fitted posterior model.
Diagnostics, Alternatives, and Limits
The feature-wise Gaussian calculation is transparent, but its interpretation depends on the model being adequate. Check that features are mapped to the intended pathway and molecular layer; that the sampling variances reflect the matched study design and any covariate adjustment; and that the chosen prior scales produce reasonable prior predictions. Also inspect whether results change materially under scientifically defensible alternative prior scales. Sensitivity to those choices is important when the likelihood is weak.
A central limitation is the marginal treatment of features. If several features are analyzed jointly, correlated sampling errors or correlated true effects can make a product of independent feature likelihoods or priors inappropriate. A multivariate model can represent their covariance; alternatively, a carefully justified feature-wise analysis can report marginal results without making joint independence claims. Overlapping pathway memberships also require care: assigning a feature to several independent pathway priors and multiplying their contributions can count the same biological evidence more than once.
| Approach | What it does | Main trade-off |
|---|---|---|
| Pathway-informed soft prior | Changes the prior distribution while leaving the likelihood able to update the effect. | Allows data to move away from zero, but conclusions depend on prior scale and pathway annotation. |
| Uninformed or common-scale prior | Uses the same effect prior regardless of pathway membership. | Provides a useful comparison, but does not encode the pathway information of interest. |
| Hard constraint | Restricts effects or parameters to specified values or sets. | Can exclude biologically possible effects if the constraint is wrong; unlike a soft prior, it cannot be readily overridden by data. |
A frequent mistake is to read pathway membership as proof of an effect: “This feature is in the pathway, so its association must be real and positive.” The correction is that membership here changes the prior variance, while the prior mean remains zero and the likelihood still supplies the observed estimate. Another mistake is to call a 95% posterior interval a 95% confidence interval. The former summarizes uncertainty about the parameter conditional on the model and data; the latter is a repeated-sampling procedure with a different interpretation.
Check Your Understanding
Answer each question, then compare with the solutions below.
- For a member with \(b=0.40\), \(v=0.15625\), and \(\tau^2=0.64\), what is the posterior mean?
- What is the prior predictive variance of an estimate for a nonmember in this example?
- Does a member prior centered at zero imply that its effect is zero? Explain.
- Why is matching patients across RNA and protein layers not sufficient to assume independent estimates?
Solutions. (1) The member shrinkage factor is \(0.64/0.79625=0.8031399\), so the posterior mean is \(0.8031399(0.40)=0.3213\) standardized-effect units. (2) It is \(\tau_0^2+v=0.09+0.15625=0.24625\) squared standardized-effect units. (3) No. The prior is a distribution centered at zero with standard deviation \(0.8\); it permits effects in either direction, and the likelihood updates it. (4) The same patients contribute measurements to both layers, so shared patient-level variation can induce correlated estimation errors. A joint analysis should model relevant covariance rather than infer independence from matching.