Why Calibrate by Simulation?
A precision prior is not clinically interpretable just because its parameters are familiar. In a commensurate model, the precision determines how tightly the current treatment effect is expected to lie around the historical effect. A prior that appears numerically diffuse or concentrated can imply unexpectedly small or large differences on the endpoint’s clinical scale. Predictive simulation makes those implications visible before current-trial outcomes are used.
The useful question is not only “What values of precision are plausible?” It is also “What historical–current effect differences and trial-estimate differences does this prior imply?” The distinction matters: trial estimates include sampling error, while the latent difference describes the discrepancy the commensurability prior is designed to model. Calibration should inspect both and should use a clinically meaningful effect scale, such as a risk difference, log odds ratio, or log hazard ratio.
A common candidate is \(\tau\sim\operatorname{Gamma}(a,b)\), using shape \(a\) and rate \(b\), so its density is \(b^a\tau^{a-1}e^{-b\tau}/\Gamma(a)\). Large \(\tau\) implies small conditional variance \(1/\tau\) and stronger commensurability; small \(\tau\) permits larger differences. The prior predictive distribution of \(\delta\) integrates over uncertainty in \(\tau\), rather than fixing it at a single value.
The Implied Predictive Distribution
Conditional on \(\tau\), \(\delta\sim N(0,1/\tau)\). Integrating the normal density over the Gamma prior gives
This is a Student \(t\) distribution with \(2a\) degrees of freedom, location zero, and scale \(\sqrt{b/a}\). The scale is not generally its standard deviation: when \(a>1\), \(\operatorname{Var}(\delta)=b/(a-1)\); when \(a\leq1\), the variance is infinite. The heavier tails than a single normal component arise because the prior allows \(\tau\) to be small.
One can simulate directly by drawing \(\tau\sim\operatorname{Gamma}(a,b)\), then drawing \(\delta\mid\tau\sim N(0,1/\tau)\). To simulate trial estimates as well, specify a clinically plausible \(\theta_H\), set \(\theta_C=\theta_H+\delta\), and draw \(Y_H\) and \(Y_C\) from their sampling models. The simulated \(\delta\) assesses latent commensurability; the simulated \(Y_C-Y_H\) additionally reflects trial precision.
Worked Example: Checking a Tail Probability Analytically
Suppose effects are measured in log hazard-ratio units and a candidate prior has \(a=2\) and \(b=0.02\). Assess the prior probability that the latent historical–current difference exceeds \(0.30\) in magnitude. The threshold is hypothetical and should be replaced by a clinically justified value for a real application.
Here \(2a=4\) degrees of freedom and the Student \(t\) scale is \(\sqrt{0.02/2}=0.1000\). Thus the standardized threshold is \(x=0.30/0.1000=3.00\). For a \(t_4\) random variable, define \(u=x/\sqrt{x^2+4}\). Integrating its density gives the two-sided tail probability \(1-\frac{3}{2}u+\frac{1}{2}u^3\). Therefore,
The prior assigns about 3.994% probability to a latent difference larger than \(0.30\) in magnitude. This is a prior implication, not a probability that the actual trial effects differ by that amount after observing data.
Predictive Simulation and Its Checks
For each candidate prior, simulate many draws and summarize quantities chosen before examining the results. Useful summaries include the median and upper quantiles of \(|\delta|\), probabilities \(P(|\delta|>c)\) at clinically justified thresholds \(c\), and the distribution of the noisy estimate difference \(Y_C-Y_H\). Plotting the predictive distributions is valuable: a tail probability alone can hide a central concentration combined with rare, very large discrepancies.
If \(\theta_H\) is fixed for simulation and \(s_H,s_C\) are fixed standard errors, then conditional on \(\tau\),
The mean is zero because this is a prior predictive calculation centered on commensurability. The extra \(s_C^2+s_H^2\) is sampling variation, not additional latent disagreement. If a simulation instead draws a nonzero historical baseline effect, the same result holds for the difference because that baseline cancels. When standard errors are estimated or sample sizes vary, the simulation should reflect that design rather than treating a single standard error as known.
Worked Example: Comparing Candidate Precision Priors
Consider two hypothetical priors for a log hazard-ratio difference, both with \(a=2\), and compare their implications at \(c=0.30\). Candidate A has \(b=0.02\), while candidate B has \(b=0.08\). The prior scale is \(\sqrt{b/a}\), so it is \(0.1000\) for A and \(0.2000\) for B.
For A, the standardized threshold is \(x=3\), yielding \(P(|\delta|>0.30)\approx0.03994\), as above. For B, \(x=0.30/0.20=1.50\), and \(u=1.50/\sqrt{1.50^2+4}=1.50/\sqrt{6.25}=0.6000\). Applying the \(t_4\) tail formula gives
Thus candidate B assigns 20.80% probability to a latent difference beyond the threshold, compared with 3.994% for A. A simulation of \(100{,}000\) draws would have expected exceedance counts of about 3,994 and 20,800, respectively. These are expected counts, not promised simulation outputs. The approximate Monte Carlo standard errors for the estimated probabilities are \(\sqrt{0.03994(1-0.03994)/100000}=0.000619\) and \(\sqrt{0.2080(1-0.2080)/100000}=0.001283\). The larger prior is not automatically preferable; the decision depends on which degree of latent difference is clinically plausible.
A simulation should be checked, not merely run. For thresholds with known analytic probabilities, compare the simulated proportion with the analytic value and its Monte Carlo standard error. Inspect quantiles and extreme draws for implausible behavior; verify that draws of \(\tau\) are positive and that the intended Gamma parameterization uses a rate rather than a scale. Repeat with a larger number of draws if Monte Carlo error could change the practical conclusion. Disagreement much larger than simulation error can indicate a coding error, a parameterization mismatch, or a mistaken distinction between \(\delta\) and \(Y_C-Y_H\).
From Precision to Borrowing
Predictive calibration concerns the prior, but its practical purpose is to understand how candidate precision values affect the current estimate. Conditional on \(\tau\), a flat prior on the common baseline \(\theta_H\) gives \(\theta_H\mid Y_H\sim N(Y_H,s_H^2)\). Combining this with \(\theta_C\mid\theta_H,\tau\) yields \(\theta_C\mid Y_H,\tau\sim N(Y_H,s_H^2+1/\tau)\). Combining that distribution with the current likelihood gives a normal posterior for \(\theta_C\). Its mean is a weighted average of the two trial estimates:
This conditional weight makes the precision scale tangible. It is not, by itself, the posterior borrowing weight when \(\tau\) is uncertain and updated by the data; it describes the conditional analysis at a given \(\tau\). Predictive simulations can draw \(\tau\) from its prior and record the corresponding weights, while a full data analysis must account for the data’s information about \(\tau\).
Worked Example: Translating Precision Into Borrowing
Suppose the historical estimate is \(Y_H=0.20\), the current estimate is \(Y_C=0.05\), and their standard errors are \(s_H=0.10\) and \(s_C=0.15\), all on a hypothetical log hazard-ratio scale. The observed estimate difference is \(-0.15\). Compare conditional borrowing at \(\tau=100\), \(25\), and \(4\). The model assumes comparable effect definitions and the stated normal standard-error approximations.
At \(\tau=100\), \(1/\tau=0.0100\), so \(w_H=0.0225/(0.0225+0.0100+0.0100)=0.5294\). The posterior mean is \(0.5294(0.20)+0.4706(0.05)=0.1294\).
At \(\tau=25\), \(1/\tau=0.0400\), so \(w_H=0.0225/(0.0225+0.0100+0.0400)=0.3103\), and the posterior mean is \(0.3103(0.20)+0.6897(0.05)=0.09655\). At \(\tau=4\), \(1/\tau=0.2500\), giving \(w_H=0.0225/(0.0225+0.0100+0.2500)=0.07965\) and posterior mean \(0.07965(0.20)+0.92035(0.05)=0.06195\). As precision decreases, the historical estimate has less influence. These are conditional calculations for fixed \(\tau\), not posterior summaries averaged over a precision prior.
Calibrating Responsibly
The calibration process should begin with clinical scenarios, not a favorite prior family. Specify plausible latent effect differences and clinically meaningful thresholds on the chosen scale. Then simulate each candidate’s latent differences, and, separately, trial estimates under realistic sample sizes and standard errors. Compare the candidate’s implied tail probabilities, quantiles, and conditional borrowing with those scenarios. Record why the selected prior is plausible and which alternatives would materially change the implications.
This approach is complementary to direct fixed-precision choices and to prior elicitation on a transformed scale such as the standard deviation of \(\delta\). A fixed precision is easier to interpret conditionally but does not represent uncertainty in commensurability. A Gamma prior supports analytic predictive checks and random precision, but its tail behavior is governed by its shape and may imply extreme differences that are difficult to see from its scale alone. Simulation exposes such consequences; it does not establish that the model is appropriate or identify the “correct” prior from the data.
A frequent mistake is to inspect only the Gamma prior’s mean precision and treat it as the typical borrowing level. The mapping from precision to difference variance is nonlinear, and low-precision draws can create substantial predictive tails even when the mean precision looks large. The correction is to examine the induced distribution of \(\delta\), and to connect it to borrowing and noisy trial differences separately. Another pitfall is calibrating against a threshold on the wrong scale: a difference of \(0.30\) on a log-hazard scale is not a difference of \(0.30\) in hazard ratios or percentage points.
Check Your Understanding
Answer each question, then compare with the concise solutions.
- For \(\tau\sim\operatorname{Gamma}(a,b)\) with shape-rate parameterization, what are the degrees of freedom and scale of the marginal distribution of \(\delta\)?
- With \(a=2\), \(b=0.02\), and threshold \(0.30\), what analytic tail probability should a simulation of \(|\delta|\) approximately reproduce?
- Why is the predictive distribution of \(Y_C-Y_H\) wider than that of \(\delta\), conditional on \(\tau\)?
- For \(s_H=0.10\), \(s_C=0.15\), and \(\tau=25\), calculate the conditional historical weight \(w_H\).
Solutions. (1) It is Student \(t\) with \(2a\) degrees of freedom and scale \(\sqrt{b/a}\). (2) The scale is \(0.1000\), so \(x=3\), \(u=3/\sqrt{13}\), and \(P(|\delta|>0.30)=1-\frac{3}{2}u+\frac{1}{2}u^3\approx0.03994\); simulations fluctuate around this value according to Monte Carlo error. (3) The estimate difference includes independent sampling errors, so its conditional variance is \(1/\tau+s_C^2+s_H^2\), rather than \(1/\tau\). (4) \(w_H=0.15^2/(0.15^2+0.10^2+1/25)=0.0225/0.0725\approx0.3103\).