Why Validate a Model-Based Decision?
A model-based bioequivalence analysis turns observed concentration or exposure data into estimates, uncertainty intervals, and ultimately a decision. The model may be complex, but a central validation question is direct: when the true formulation effect is known, does repeatedly applying this model and decision rule behave as intended? Simulation addresses that question by generating many hypothetical datasets under specified conditions, fitting the proposed model to each one, and summarizing the results.
This tutorial focuses on three complementary checks: bias of the estimated formulation effect, coverage of its uncertainty interval, and the false-equivalence rate when the true effect is outside the prespecified equivalence limits. These are repeated-sampling properties of the full analysis procedure, not claims about any one observed study. A successful simulation provides evidence about performance under the data-generating assumptions used; it does not establish that those assumptions describe every real study.
Set the Truth and the Decision Rule First
For clarity, let \(\theta\) denote the true mean test-minus-reference effect on the log exposure scale. The usual log-scale equivalence limits are \(L=\log(0.80)\) and \(U=\log(1.25)\), approximately \(-0.2231\) and \(0.2231\). An effect is inside these limits when \(L<\theta<U\). Exponentiating \(\theta\) expresses the corresponding test-to-reference ratio.
A simulation needs an explicit decision rule. For the examples below, suppose the proposed analysis is Bayesian and declares bioequivalence when the posterior probability that \(\theta\) lies between \(L\) and \(U\) is at least 0.95. The rule is therefore \(\Pr(L<\theta<U\mid\text{data})\geq 0.95\). The rule, prior, model, and any data-processing steps should be fixed before the simulation results are inspected. Otherwise, selecting them in response to the results can make the validation misleading.
For each scenario, record the true \(\theta\), the model estimate \(\hat{\theta}_r\) from replicate \(r\), an interval for \(\theta\), and whether the decision rule declares bioequivalence. For \(M\) replicates, useful summaries are:
Here \(C_r\) is the interval from replicate \(r\), and \(I(\cdot)\) equals 1 if its statement is true and 0 otherwise. Coverage is assessed against the known true effect. The false-equivalence rate, denoted \(\widehat{\mathrm{FE}}\) here, is reported for scenarios in which \(\theta\) is outside the equivalence limits. When the true effect is inside the limits, the corresponding decision rate is not a false-equivalence rate.
A Simple Model for Checking Calculations
A scalar model can make the logic transparent before applying the same checks to a richer concentration model. Suppose the simulated subject-level log exposure contrasts \(D_i\) are independent and normally distributed, \(D_i\sim N(\theta,\sigma^2)\), with known \(\sigma\). Use a normal prior \(\theta\sim N(0,\tau^2)\). This deliberately simple setup is not a substitute for a full crossover or concentration-time model; it provides an explicit example of generating data, fitting a model, and checking its operating behavior.
For \(n\) contrasts with sample mean \(\bar{D}\), the posterior is normal. Its variance \(V\) and mean \(m\) are:
These expressions follow by multiplying the normal likelihood by the normal prior. The likelihood contributes a term proportional to \(\exp[-n(\theta-\bar{D})^2/(2\sigma^2)]\), and the prior contributes \(\exp[-\theta^2/(2\tau^2)]\). Collecting the coefficients of \(\theta^2\) gives posterior precision \(1/V=1/\tau^2+n/\sigma^2\); collecting the linear terms gives posterior mean \(m=Vn\bar{D}/\sigma^2\). Thus each simulated dataset can be analyzed with an exact posterior in this example.
The same simulation checks apply when the proposed model estimates several effects or uses random effects and a more complicated residual structure. In that setting, generate the data from specified parameter values, fit the complete proposed model to each replicate, and retain the estimate, interval, and decision. The model and simulation assumptions must be stated precisely enough that the data-generating procedure is reproducible.
Worked Example: Calculate One Replicate’s Posterior Decision
Suppose a hypothetical replicate has \(n=40\) subject-level contrasts, \(\bar{D}=0.0200\), and the simulation uses \(\sigma=0.200\) and \(\tau=0.100\). These values are illustrative, not results from a real study. Calculate the posterior and apply the stated 0.95 probability rule.
The posterior variance is \(V=(1/0.100^2+40/0.200^2)^{-1}=(100+1000)^{-1}=0.0009091\). Its standard deviation is \(\sqrt{V}=0.03015\).
The posterior mean is \(m=V(40\times0.0200/0.200^2)=0.0009091\times20.0=0.01818\). The posterior probability within the limits is \(\Phi((0.2231-0.01818)/0.03015)-\Phi((-0.2231-0.01818)/0.03015)\), approximately \(\Phi(6.80)-\Phi(-8.00)\), which is effectively 1.000. This replicate declares bioequivalence under the specified rule.
That single decision does not validate the rule. It says only how this one hypothetical dataset was classified. Validation requires repeating data generation and analysis under scenarios with known effects, including effects outside the limits.
Bias, Coverage, and Monte Carlo Uncertainty
Bias measures systematic displacement of the estimates from the known truth. If the average estimate across replicates is close to \(\theta\), the empirical bias is small. A small estimate of bias is not by itself proof of good performance: estimates can be centered correctly but too variable, and model intervals can still have inadequate coverage.
For intervals advertised as 95% intervals, the target repeated-sampling coverage is 0.95: over repeated datasets generated under a fixed scenario, approximately 95% of the intervals should contain the true parameter. When the intervals are Bayesian credible intervals, their posterior probability statement is conditional on the observed data and prior. Their empirical coverage across simulated datasets is a separate repeated-sampling property. One must not interpret a 95% credible interval as guaranteeing 95% simulation coverage.
Simulation summaries have Monte Carlo error because they are calculated from a finite number of replicates. If \(K\) of \(M\) replicates cover the truth, the estimated coverage is \(\hat{p}=K/M\), and its approximate Monte Carlo standard error is \(\sqrt{\hat{p}(1-\hat{p})/M}\). The same binomial calculation applies to a decision rate. For estimated bias, the Monte Carlo standard error is the sample standard deviation of the \(M\) replicate estimates divided by \(\sqrt{M}\). These errors describe simulation precision, not uncertainty in the true parameter of a real study.
Worked Example: Assess Empirical Bias and Interval Coverage
In a hypothetical validation scenario, the true effect is \(\theta=0\). Across \(M=10{,}000\) simulated replicates, the mean fitted effect is \(0.0041\), the sample standard deviation of the fitted effects is \(0.0600\), and 9,492 of the nominal 95% intervals contain the truth.
The empirical bias is \(0.0041-0=0.0041\) log units. Its approximate Monte Carlo standard error is \(0.0600/\sqrt{10{,}000}=0.000600\) log units. The bias is about 6.8 Monte Carlo standard errors from zero, so it is not negligible relative to simulation precision, even though its magnitude is small in this scenario. Exponentiating \(0.0041\) gives approximately 1.004, showing the corresponding ratio-scale displacement.
The estimated coverage is \(9{,}492/10{,}000=0.9492\), or 94.92%. Its Monte Carlo standard error is \(\sqrt{0.9492(1-0.9492)/10{,}000}=0.00220\), about 0.22 percentage points. Thus the observed coverage is close to the 95% target, with a difference of 0.08 percentage points that is small relative to Monte Carlo error. This is evidence of performance under this scenario, not a guarantee of coverage in other scenarios.
False-Equivalence Rates Need Boundary Scenarios
A model can produce estimates with little bias and intervals with nominal coverage yet still have an undesirable decision rate near an equivalence boundary. Therefore, evaluate the decision rule at several known effects: one clearly inside the limits, effects near each boundary, and effects outside the limits. A false-equivalence rate is specifically the fraction of replicates declared equivalent when the simulated true effect is outside \([L,U]\). It is not the probability that a particular real study’s conclusion is wrong.
For a Bayesian decision rule, this rate is not automatically controlled at 5% merely because the rule requires posterior probability at least 0.95. The posterior threshold is a decision criterion, while the false-equivalence rate is a repeated-sampling property under a particular scenario. It depends on the sample size, variability, prior, model, true effect, and all parts of the analysis.
Worked Example: Estimate the False-Equivalence Rate
Consider a hypothetical scenario with true log effect \(\theta=0.235\), which is outside the upper limit \(U=0.2231\). Its test-to-reference ratio is \(\exp(0.235)\approx1.265\), above 1.25. Under the same model and decision rule, suppose 786 of 10,000 simulated replicates are declared bioequivalent.
The estimated false-equivalence rate is \(786/10{,}000=0.0786\), or 7.86%. Its Monte Carlo standard error is \(\sqrt{0.0786(1-0.0786)/10{,}000}=0.00269\), or about 0.27 percentage points. This rate describes the specified scenario: it does not apply uniformly to all non-equivalent effects. In particular, effects farther outside the limits may have different rates.
The result should be read alongside the scenario definition and decision rule. It is not enough to report “7.86% false equivalence” without stating the true effect and data-generating assumptions. A rate near a boundary can be materially larger than one under a clearly non-equivalent effect.
Practical Checks and Limits
Before interpreting results, check whether the simulation and repeated fits actually represent the intended analysis. Confirm that generated values follow the stated model, that parameter values are in the intended units and scale, and that the fitting procedure uses the same model, prior, interval construction, and decision threshold in every replicate. For complex fitted models, record convergence failures and boundary estimates. Silently discarding difficult replicates can make performance appear better than it is; report how many failures occurred and how they were handled.
Also distinguish a statistical failure from inadequate Monte Carlo precision. If an estimated rate is near its target but its Monte Carlo error is large, increase \(M\) or use a precision-based stopping rule set in advance. If coverage or false-equivalence rates vary sharply across scenarios, report the pattern rather than averaging away the problematic conditions. A single favorable scenario cannot validate a general claim about model performance.
Analytic calculations can provide checks when the model is simple enough to yield exact sampling results, while simulation can evaluate more complex fitted procedures where such calculations are impractical. The two approaches complement each other: agreement in a tractable case can catch implementation errors, whereas simulation provides empirical operating characteristics for the specified scenarios. Simulation remains conditional on its data-generating assumptions. Evaluating performance under deliberately different assumptions is a separate robustness question.
Check Your Understanding
Answer each question, then compare with the solutions.
- A simulation uses 5,000 replicates and 4,750 intervals contain the true effect. Calculate empirical coverage and its approximate Monte Carlo standard error.
- Why is a decision rate in a scenario with \(\theta\) inside the equivalence limits not called a false-equivalence rate?
- A scenario has true effect \(\theta=\log(1.30)\). Is the true effect inside the usual log-scale equivalence limits? Show the comparison on the ratio scale.
- What does an empirical coverage of 95% establish, and what does it not establish?
Solutions. (1) Coverage is \(4{,}750/5{,}000=0.950\). Its Monte Carlo standard error is \(\sqrt{0.950(0.050)/5{,}000}=0.00308\), or about 0.31 percentage points. (2) False equivalence means declaring equivalence when the known truth is outside the limits; with an inside-limit truth, the decision is not a false-equivalence event. (3) Exponentiating gives \(\exp(\theta)=1.30\), which exceeds 1.25, so the effect is outside the upper equivalence limit. (4) It estimates repeated-sampling coverage under the simulated scenario and its assumptions. It does not guarantee coverage in other scenarios or prove that the data-generating assumptions match a real study.