Why Bootstrap Replicates Need an Audit
A bootstrap can look reassuring when it returns a standard error and an interval, yet those summaries depend on which replicate fits were actually obtained. In a joint model, resampling subjects may produce datasets with fewer events, less variation in longitudinal measurements, or weaker information about the association between the marker trajectory and event risk. Some fits may fail; others may converge at a parameter boundary or return unusually large estimates. These outcomes are not interchangeable, and quietly discarding them can make uncertainty appear smaller than it is.
The purpose here is to assess instability in bootstrap estimates, not to decide whether a particular subject is influential. That is a separate question. The key is to retain an audit trail for every attempted replicate and to interpret summaries in light of how many estimates were obtained and what those estimates represent.
This resampling scheme treats subjects as the sampling units. Its usual justification requires that subjects are independent and identically distributed draws from the target population, or that the resampling scheme otherwise respects the study’s sampling design. It does not repair a misspecified joint model, an inappropriate censoring assumption, or dependence between subjects. Nor does it mean that individual measurements within a subject should be resampled independently: doing so would break the joint longitudinal and event information being modeled.
The estimation procedure also matters. The same parameter constraints, integration settings, convergence tolerances, and rules for selecting among solutions should be applied consistently across replicates. If the original fit used multiple starting values or a particular numerical integration setting, changing those choices replicate by replicate makes it harder to tell whether variation reflects the resampled data or a changed algorithm.
Three Distinct Outcomes
Each replicate should be classified before calculating a bootstrap standard error or interval. A useful record includes the optimizer’s status, the parameter estimates, any boundary flags, and diagnostics such as gradients or Hessian behavior. The categories below are conceptually different, even if software reports them with similar warnings.
| Outcome | What it means | How to treat it |
|---|---|---|
| Failed fit | The procedure did not return an estimate satisfying the prespecified fitting and diagnostic criteria. | Record the failure and investigate it; do not silently count it as a valid estimate. |
| Converged boundary estimate | The fit meets the criteria, but a parameter is at an allowed edge of its parameter space. | Retain it if the boundary solution is valid, and report how often it occurs. |
| Converged extreme estimate | The fit meets the criteria, but its estimate is far from the main cluster of replicates. | Do not delete it just because it is inconvenient. Check its validity and reflect it in summaries if valid. |
A boundary is defined by the parameter space, not by whether the estimate seems surprising. For example, a random-effect variance \(\tau^2\) must satisfy \(\tau^2\geq 0\), so an estimate of zero is a boundary estimate. A correlation constrained to \([-1,1]\) can also reach a boundary. By contrast, an association coefficient that is unconstrained in the specified model does not have a finite boundary merely because its estimate is large. Always check the model’s parameterization and constraints.
A boundary result is not automatically a software failure. It may indicate that a resampled dataset contains little information to distinguish a variance from zero. An extreme result is not automatically invalid either: if optimization and diagnostic checks support it, it is evidence that some bootstrap samples yield very different estimates. But an extreme number accompanied by a failed gradient or an invalid Hessian may instead be a numerical artifact. The classification must therefore use both the estimate and the fitting diagnostics.
Worked Example: Counting Failures and Boundary Fits
Suppose a hypothetical analysis attempts \(B=100\) subject-level bootstrap fits. The audit finds 6 failed fits, 4 converged fits with the random-effect variance at zero, and 90 converged fits away from that boundary.
The failure proportion is \(\frac{6}{100}=0.060\), or 6%. The successful-fit proportion is \(\frac{94}{100}=0.940\), or 94%. Among successful fits, the boundary proportion is \(\frac{4}{94}\approx 0.0426\), or 4.26%. The boundary proportion among all attempted replicates is \(\frac{4}{100}=0.040\), or 4%.
These denominators answer different questions. The first reports how often the fitting procedure failed; the second reports how often a successful fit reached the boundary. The 4 boundary fits should not be merged with the 6 failures if they passed the prespecified checks. If the estimates used for uncertainty summaries are based on the 94 successful fits, the report should say so and give both proportions. A 6% failure rate is material enough to investigate rather than hide behind an interval calculated from the remaining fits.
What Successful-Replicate Summaries Estimate
If all \(B\) replicates yield valid estimates, the bootstrap standard error for a scalar parameter is the sample standard deviation of those estimates:
When some replicates fail, one may calculate the same sample standard deviation from \(B_s\) successful estimates. But this is a summary of the estimates conditional on the fitting procedure returning a successful result, not automatically a summary of the full bootstrap distribution. If success is related to the resampled data or to the parameter values that would have been estimated, excluding failed replicates can select an unrepresentative subset.
This is a selection issue, not a reason to assign arbitrary numbers to failed fits. A failed optimizer has not supplied a valid estimate, so it should not be converted to zero, an extreme value, or a boundary value. Instead, determine whether failure reflects an avoidable numerical problem, a poorly identified replicate, or a limitation of the estimator in those samples. If refitting with a justified adjustment resolves failures, document that adjustment and apply it consistently. If failures persist, state that the bootstrap uncertainty summaries are conditional on successful fitting and may not characterize the estimator’s full sampling behavior.
Percentile intervals are also calculated from the empirical distribution of estimates. With all fits valid, a central 95% percentile interval uses the 2.5th and 97.5th percentiles of the replicate estimates. With failures, those percentiles from successful fits describe the successful-fit distribution. With boundary mass, the distribution may be strongly asymmetric or have a point mass at the boundary. In that setting, a symmetric interval based only on a standard error can be especially uninformative.
Worked Example: A Boundary Mass in a Variance Estimate
In a hypothetical set of 200 bootstrap replicates for a shared random-effect variance \(\tau^2\), all fits pass the prespecified checks. Thirty-four estimates equal zero; the other 166 are positive. The boundary proportion is \(\frac{34}{200}=0.170\), or 17.0%.
Suppose the mean of the 166 positive estimates is \(0.18\) marker-units squared and their standard deviation is \(0.12\) marker-units squared. Those numbers describe only the positive estimates. They are not the mean and standard deviation of all 200 estimates, because the 34 zeros must also be included when summarizing the full empirical distribution.
For example, the mean across all replicates is \(\frac{166(0.18)+34(0)}{200}=\frac{29.88}{200}=0.1494\) marker-units squared. The point mass at zero also affects a percentile interval. If the empirical 97.5th percentile is \(0.41\) marker-units squared, the 2.5th percentile is zero because 34 of 200 values are zero, so the central percentile interval is \([0,0.41]\) marker-units squared.
This interval is not evidence that the variance is known to be zero for some fixed proportion of future studies. It describes the bootstrap distribution produced by this resampling and fitting procedure. The substantial boundary frequency signals weak or uneven information about the variance and cautions against a normal approximation centered on a positive estimate.
Extreme Replicates and the Shape of Uncertainty
An extreme estimate can have a large effect on the bootstrap standard error, particularly for association parameters that are weakly identified in some resamples. First check whether the replicate genuinely converged, whether its gradient and other fit diagnostics are acceptable, and whether it respects the model’s parameter constraints. If it is valid, it belongs in the uncertainty assessment. Removing it solely because it inflates the standard error changes the target summary and generally understates the observed variability.
A single extreme value can affect the mean and standard deviation more than the median and percentile interval. These summaries answer different questions; choosing the one that looks most favorable is not a remedy for instability. Report the distribution’s shape and the number of extreme estimates, and explain any additional summary used. If a result depends heavily on one or a few valid replicates, that dependence is itself important evidence about uncertainty.
Worked Example: One Extreme but Converged Association Estimate
Consider 10 hypothetical, converged bootstrap estimates of an association coefficient \(\alpha\), measured as log hazard ratio per one-unit increase in the latent marker: nine estimates are \(0.20\), and one is \(1.10\). Assume the extreme replicate passes the same diagnostic criteria as the others and is within the parameter space.
The bootstrap mean is \(\bar{\alpha}^{*}=\frac{9(0.20)+1.10}{10}=\frac{2.90}{10}=0.290\) log hazard-ratio units per marker unit. The sample standard deviation is \[ \sqrt{\frac{9(0.20-0.29)^2+(1.10-0.29)^2}{9}} = \sqrt{\frac{9(0.0081)+0.6561}{9}} = \sqrt{0.081} \approx 0.285. \]
The median is \(0.20\), showing how strongly the mean is pulled upward by the one large estimate. On the hazard-ratio scale, the estimate \(0.20\) corresponds to \(\exp(0.20)\approx 1.22\), while \(1.10\) corresponds to \(\exp(1.10)\approx 3.00\), per one-unit increase in the latent marker. These are replicate estimates, not separate causal effects. Because the large value passed diagnostics, deleting it would conceal a feature of the bootstrap distribution rather than correct a demonstrated fitting error.
Justification, Diagnostics, and Alternatives
The standard-deviation formula follows the usual sample-variance calculation applied to the empirical bootstrap distribution. In each replicate, the resampled subjects stand in for a new sample from the empirical distribution of the observed subjects. If the estimator is sufficiently regular and the fitting procedure succeeds throughout, the spread of replicate estimates approximates the sampling spread of the estimator. But if only successful fits are summarized, the calculation uses the distribution conditional on success. In symbols, for a set \(A\) of estimates, \(P(\hat{\theta}^{*}\in A\mid\text{fit succeeds})\) need not equal \(P(\hat{\theta}^{*}\in A)\). This is why the success rate and the nature of failures are part of interpreting the uncertainty summary, not administrative details.
A practical diagnostic record should distinguish the attempted number of replicates from the successful number and should include the parameter-specific boundary counts. Plotting successful estimates can reveal skewness, clusters, or a long tail that a single standard error obscures. For failed fits, record the messages and numerical checks rather than treating all failures as one phenomenon. Check whether failures are concentrated in particular parameters or coincide with weak information, such as very few observed events in a resample. These checks describe the bootstrap’s behavior; they do not establish that any one subject caused it.
The bootstrap has a different role from common alternatives. A Hessian-based standard error uses local curvature near the fitted estimate and can be convenient when that local approximation is adequate; it may not represent a skewed or boundary-heavy distribution well. A profile-likelihood interval examines fit over values of a parameter and can reveal asymmetry, though it also depends on successful, reliable refitting. A parametric bootstrap generates data from a fitted model rather than resampling observed subjects, so its conclusions depend more directly on the assumed data-generating model. None automatically makes failed fits disappear. Comparing methods can be informative, but large disagreement calls for investigation rather than choosing whichever interval is narrowest.
Bootstrap instability has limits as a diagnostic. A low failure rate does not prove that the model is identifiable, and a high boundary rate does not by itself prove that the boundary is the correct population value. Results also depend on the number of replicates: with a small \(B\), estimated tail percentiles are imprecise. Increasing \(B\) reduces Monte Carlo noise in bootstrap summaries but does not fix systematic failures, a poor model, or weak information in the observed data.
Common Mistakes
- Counting boundary fits as failures. A boundary estimate can be a valid constrained optimum. Check the parameter space and fit diagnostics before classifying it.
- Dropping failures without reporting them. A standard error from the remaining estimates can describe a selected subset. Give the failure count and assess whether its cause is understood.
- Deleting a converged extreme estimate. A surprising value is not invalid just because it changes the interval. Remove or replace it only when a specific fitting defect is demonstrated and handled transparently.
- Reading a boundary proportion as a population probability. It is a frequency in the bootstrap replicates under the chosen procedure, not a direct probability statement about the true parameter.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- A bootstrap resamples 150 subjects. Should each subject’s longitudinal records be sampled independently of that subject’s event record? Explain.
- Out of 250 attempts, 15 fits fail, while 20 successful fits place a variance estimate at zero. Calculate the failure proportion and the boundary proportion among successful fits.
- Why can the standard deviation of successful bootstrap estimates be misleading when failures are not rare?
- A converged replicate gives an association estimate far from the others. Should it automatically be discarded? State what should be checked.
Solutions. (1) No. Resample subjects as units and retain each selected subject’s longitudinal and event or censoring records together; independent resampling would break their joint structure. (2) The failure proportion is \(15/250=0.060\), or 6%. There are \(250-15=235\) successful fits, so the boundary proportion among successful fits is \(20/235\approx0.0851\), or 8.51%. (3) It summarizes estimates conditional on a successful fit; if success is related to the resampled data or estimates, that subset may not represent the full bootstrap distribution. (4) No. Check convergence and diagnostic criteria, parameter constraints, and whether the value is a valid estimate. If valid, retain it and describe its effect on the distribution rather than deleting it for being extreme.