Tutorials › Nonlinear Mixed-Effects Models (NLME) › Monte Carlo Estimation of PTA

Dose Selection by Simulation · Tutorial 716 of 797

Monte Carlo Estimation of PTA

Estimate PTA as a simulated success proportion, quantify its Monte Carlo precision, and recognize when the calculation or its interpretation needs attention.

Advanced 12 min read

What You'll Learn

  • Define a PTA estimand for a specified target and population distribution.
  • Calculate each simulated individual's exposure metric and classify target success.
  • Estimate PTA and derive its Monte Carlo standard error from independent simulations.
  • Report simulation-based intervals as numerical precision, not as total model uncertainty.
  • Compare candidate doses using paired simulated individuals and the standard error of their success difference.
  • Plan replicate counts and diagnose unstable or invalid simulation results.

From a Target Event to a Simulated Proportion

Probability of target attainment (PTA) is the probability that an individual drawn from a specified population achieves a prespecified exposure target at a specified dose. In a nonlinear mixed-effects model, individual parameter vectors vary across the population, so the exposure metric can vary even when the dose is fixed. Monte Carlo estimation approximates the population probability by simulating individual vectors, calculating the metric for each vector, and counting target successes.

The target, dose, exposure metric, and population distribution define what probability is being estimated. The calculation does not itself decide whether the target is clinically appropriate or what PTA is sufficient for a dose decision; those are distinct questions.

Definition: Let \(d\) be a dose, let \(\psi\) denote fixed fitted population-model parameters, and let \(\boldsymbol{\phi}_i\) be the generated individual parameter vector for simulated individual \(i\). Let \(M_i(d)=M(d,\boldsymbol{\phi}_i;\psi)\) be the exposure metric calculated for that individual. For a target set \(\mathcal{T}\), define \(I_i(d)=1\) if \(M_i(d)\in\mathcal{T}\), and \(I_i(d)=0\) otherwise. The PTA is \(\pi(d;\psi)=P\{M(d,\boldsymbol{\phi};\psi)\in\mathcal{T}\}\), where \(\boldsymbol{\phi}\) is drawn from the specified population distribution. With \(N\) independent simulated individuals, the Monte Carlo estimator is \(\widehat{\pi}(d)=\frac{1}{N}\sum_{i=1}^{N} I_i(d)\).

For a lower-bound target, \(\mathcal{T}\) may be the set of metric values at or above a specified target \(M^*\). The population distribution must represent the intended population: this includes appropriate covariate values and the model's random-effects distribution. Individual parameter vectors must be generated from that distribution, not treated as if empirical Bayes estimates for observed individuals were population draws. These distinctions are important in the earlier material on empirical Bayes estimates and simulation uncertainty.

Why the Success Count Estimates PTA

Assume for the calculation that the simulated individual vectors are independent draws from the specified population distribution, the fitted model and dose are held fixed, and the exposure calculation and target rule are applied consistently to every draw. Then the success indicators \(I_i(d)\) are independent Bernoulli random variables with success probability \(\pi(d;\psi)\). Their sum \(S=\sum_{i=1}^{N}I_i(d)\) has a binomial distribution with parameters \(N\) and \(\pi(d;\psi)\).

$$ E\{\widehat{\pi}(d)\}=\pi(d;\psi), \qquad \operatorname{Var}\{\widehat{\pi}(d)\}=\frac{\pi(d;\psi)[1-\pi(d;\psi)]}{N}. $$

The first equality follows from linearity of expectation: each indicator has expectation \(\pi(d;\psi)\), so the average of \(N\) indicators has that same expectation. For the variance, independence makes the variance of the sum equal to the sum of the variances. A Bernoulli variable with success probability \(\pi\) has variance \(\pi(1-\pi)\); dividing the sum by \(N\) therefore gives variance \(\pi(1-\pi)/N\).

Because the true PTA is not known, estimate its Monte Carlo standard error (MC SE) by substituting \(\widehat{\pi}\) for \(\pi\):

$$ SE_{\mathrm{MC}}\{\widehat{\pi}(d)\} = \sqrt{\frac{\widehat{\pi}(d)[1-\widehat{\pi}(d)]}{N}}. $$

For sufficiently large \(N\), a normal-approximation interval is \(\widehat{\pi}\pm1.96SE_{\mathrm{MC}}\), with endpoints restricted to the probability range if necessary. This interval describes Monte Carlo error conditional on the fitted model and the stated simulation design. It does not include uncertainty in the fitted parameters, uncertainty in the target, or uncertainty about whether the model represents the real population. For a small number of successes or failures, a Wilson binomial interval is generally preferable to the simple normal approximation.

Worked Example: PTA at One Candidate Dose

In a hypothetical analysis, a fitted population model is used to generate \(N=2{,}401\) independent individual parameter vectors at a specified dose. For each vector, the model calculates the prespecified exposure metric, and success means that the metric meets the fixed target. Suppose 1,924 simulated individuals succeed.

The estimated PTA is the success proportion:

$$ \widehat{\pi}=\frac{1{,}924}{2{,}401}=0.8013328\approx0.8013. $$

Thus the estimated probability of target attainment under this fixed model is about 80.13%. Its estimated Monte Carlo standard error is

$$ SE_{\mathrm{MC}} = \sqrt{\frac{0.8013328(1-0.8013328)}{2{,}401}} \approx0.008143. $$

A 95% normal-approximation Monte Carlo interval has half-width \(1.96(0.008143)\approx0.01596\), so its endpoints are approximately \(0.80133-0.01596=0.78537\) and \(0.80133+0.01596=0.81729\). Conditional on the model and simulation setup, the calculation has Monte Carlo error consistent with a PTA between about 78.54% and 81.73% under this approximation. This is not a 95% interval for all sources of uncertainty in the population PTA.

Comparing Candidate Doses With Shared Simulated Individuals

When comparing two doses, using the same simulated individual parameter vectors at both doses often improves precision. The comparison then respects that the same underlying individual may attain the target at one dose but not the other. Define the per-individual difference \(D_i=I_i(d_2)-I_i(d_1)\). It takes values \(-1,0,\) or \(1\), and its average estimates the PTA difference \(\pi(d_2;\psi)-\pi(d_1;\psi)\). Because each simulated individual contributes a paired outcome, the standard error must be calculated from the variability of the \(D_i\), not by treating the two dose estimates as independent.

Worked Example: Paired Monte Carlo Comparison of Two Doses

Suppose 500 independent individual parameter vectors are each evaluated at both candidate doses. Among these simulated individuals, 75 attain the target only at dose \(d_2\), 20 attain it only at dose \(d_1\), and the other 405 have the same success status at both doses. Thus \(D_i=1\) for 75 individuals, \(D_i=-1\) for 20, and \(D_i=0\) for 405.

The estimated PTA difference, \(d_2\) minus \(d_1\), is the mean paired difference:

$$ \bar{D}=\frac{75(1)+20(-1)+405(0)}{500} =\frac{55}{500}=0.110. $$

The sample mean of the squared differences is \(\overline{D^2}=[75(1^2)+20((-1)^2)+405(0^2)]/500=95/500=0.190\). Therefore the sample variance is

$$ s_D^2 = \frac{500}{499}\left[\overline{D^2}-(\bar{D})^2\right] = \frac{500}{499}[0.190-(0.110)^2] \approx0.1783. $$

The MC SE of the estimated difference is \(s_D/\sqrt{500}\):

$$ SE_{\mathrm{MC}}(\bar{D}) = \sqrt{\frac{0.1782565}{500}} \approx0.01888. $$

The approximate 95% Monte Carlo interval is \(0.110\pm1.96(0.01888)\), or about \([0.0730,0.1470]\). Under this simulation design, the estimated PTA at \(d_2\) is 11.0 percentage points higher than at \(d_1\); the interval quantifies Monte Carlo precision for that difference. It does not establish that the dose difference is clinically important or account for fitted-parameter uncertainty.

Planning Replicates and Checking Precision

The MC SE decreases at approximately the rate \(1/\sqrt{N}\): multiplying the replicate count by four approximately halves the MC SE. For a planned normal-approximation half-width \(h\), the variance formula gives the planning relation \(N\approx z^2\pi(1-\pi)/h^2\), where \(z\) is the chosen normal critical value. A pilot estimate can provide a planning value for \(\pi\). If a conservative count is needed without a useful pilot, the bound \(\pi(1-\pi)\leq0.25\) gives a count that covers the largest possible Bernoulli variance.

Worked Example: Planning a Replicate Count

A hypothetical analysis wants a 95% Monte Carlo half-width of approximately 0.01 for a PTA expected to be near 0.80. Using \(z=1.96\) and the pilot value 0.80 gives

$$ N \approx \frac{1.96^2(0.80)(1-0.80)}{0.01^2} = \frac{3.8416(0.16)}{0.0001} = 6{,}146.56. $$

Rounding up gives a planned \(N=6{,}147\) independent simulated individuals. This is a planning approximation, not a guarantee that the realized interval will have exactly a 0.01 half-width. If no pilot estimate is trusted, the conservative calculation is \(N\geq1.96^2(0.25)/0.01^2=9{,}604\). The replicate count should be set before the final run when using an ordinary fixed-sample interval; repeatedly checking an interval and stopping as soon as it is narrow enough can change its coverage unless a sequentially valid method is used.

Diagnostics, Alternatives, and Limits

A credible Monte Carlo estimate requires more than a large replicate count. Check that generated vectors are valid, that the covariance and dependence structure of individual parameters are preserved, and that each vector is evaluated with the intended dose, metric, and target rule. Inspect the number and fraction of failed simulations. Excluding failed parameter draws without justification changes the simulated distribution and can bias PTA; investigate the failure mechanism and follow a prespecified handling approach.

Useful checks include comparing success counts across independent batches, plotting the running estimate against replicate count, and confirming that reruns with independent random-number streams give estimates compatible with their MC SEs. Large batch-to-batch variation, a running estimate that continues to drift, or a substantial fraction of failed calculations calls for investigation. A fixed random seed supports reproducibility but does not by itself ensure independent draws or adequate precision.

When the target event can be integrated analytically or with reliable numerical quadrature, those approaches can avoid random simulation error. Monte Carlo is often practical when individual parameter vectors are high-dimensional or the exposure calculation is nonlinear and cumbersome to integrate. Its trade-off is computational cost and finite-replicate error. Increasing \(N\) reduces that numerical error, but does not correct model misspecification, an inappropriate population distribution, or an incorrectly defined target.

Common pitfall: A student reports \(\widehat{\pi}=0.80\) and concludes that there is 80% probability the fitted model is correct, or that the real-world PTA is known to within a few percentage points. The correction is that \(\widehat{\pi}\) estimates the target-event probability under the specified model and population distribution; its MC SE measures only the numerical error from using a finite number of simulated draws. Model and parameter uncertainty require separate treatment.

For comparing doses, independently simulating two unrelated populations can waste information and make the difference less precise. Shared simulated individuals create paired outcomes and allow the standard error to reflect the within-individual relationship. Conversely, calculating an independent-proportions standard error for paired results ignores that relationship. Neither the paired nor unpaired calculation should be interpreted as total uncertainty unless the other uncertainty sources have been addressed separately.

Check Your Understanding

Answer each question, then compare with the brief solutions.

  1. For \(N=1{,}000\) simulated individuals and 700 successes, calculate the estimated PTA and its MC SE.
  2. In one sentence, distinguish a Monte Carlo interval from an interval that includes uncertainty in fitted model parameters.
  3. For paired dose outcomes, 30 individuals succeed only at the higher dose and 10 succeed only at the lower dose, out of 200 simulated individuals. What is the estimated PTA difference, higher minus lower?
  4. Why can silently dropping failed parameter draws distort an estimated PTA?
  5. If a PTA estimate is near 0.5, what conservative variance bound can be used when planning a replicate count?

Solutions. (1) \(\widehat{\pi}=700/1{,}000=0.700\), and \(SE_{\mathrm{MC}}=\sqrt{0.700(0.300)/1{,}000}\approx0.01449\). (2) A Monte Carlo interval quantifies finite-simulation error conditional on the model setup, whereas an interval including parameter uncertainty also accounts for uncertainty in fitted parameters. (3) The paired mean difference is \([30(1)+10(-1)]/200=0.100\), an estimated 10 percentage-point increase. (4) Dropping failures can change the distribution of simulated individual vectors represented in the calculation, so the remaining success fraction may not estimate the intended population probability. (5) Use \(\pi(1-\pi)\leq0.25\), the maximum Bernoulli variance, in the replicate-count formula.