Why Reporting Is Part of the Simulation
A design simulation can be carefully coded and still be difficult to evaluate if its report omits what generated the data, which designs were compared, or how failed analyses were handled. A reproducible report makes those decisions inspectable. It allows a reader to understand what the reported performance means, assess whether the assumptions fit the intended application, and rerun the calculation when the software and computational details are available.
Reproducibility does not mean that a simulation result is certain or that its assumptions are true. It means that the study describes its computational and statistical choices sufficiently for another analyst to implement the same procedure, and that it reports the remaining Monte Carlo error and any departures from the planned procedure. The report should distinguish the question answered by the simulation from the evidence needed to apply its results to practice.
What Another Analyst Needs to Reconstruct
The report should make the simulation a sequence of specified operations rather than a general description. State what was generated for each replicate, how each candidate design determined the observations, what analysis was applied, and how the resulting performance measure was calculated. Include fixed inputs and decision rules, not merely the name of a model or software package.
- Data-generating assumptions: name the model, parameter values, distributions, dependence structures, covariates, residual error, and any transformations. Identify which quantities are fixed and which vary across individuals or replicates. State how missingness, censoring, measurement limits, or other relevant features were generated—or state that they were absent.
- Scenarios: define each scenario by its changed assumptions and list the values used. Explain whether scenarios represent alternative plausible settings, stress tests, or other specified conditions. Avoid leaving “low,” “typical,” or “high” undefined.
- Candidate designs: give the planned sampling times, sample sizes, dose or observation schedule, allocation, and other features that distinguish the designs. If a design is adaptive, state the decision rule, the information available at each decision, and any constraints.
- Analysis procedure: specify the model fitted, estimation method, initialization, bounds, convergence criteria, and how estimates or performance measures were obtained. Report relevant software and version information and any custom implementation choices.
- Simulation execution: report the planned and completed replicate counts for each scenario and design, random-number generator and seed or stream strategy, code availability, and relevant computational environment. These details help readers understand the implementation; a seed alone does not describe the study.
- Results and exclusions: define each performance measure, its units, its denominator, and how failed fits or invalid outputs were handled. Present results by scenario and design, with an appropriate measure of Monte Carlo error.
For a pharmacometric illustration, consider an explicitly hypothetical comparison of two concentration-sampling schedules following an intravenous bolus. A report might state that concentrations were generated from a one-compartment model, \(C_i(t)=D/V_i\exp[-(CL_i/V_i)t]\), with dose \(D=100\) mg, typical clearance \(CL=5\) L/h, and typical volume \(V=50\) L. It would then specify any between-individual variability, residual error, and their distributions and parameter values. For example, if individual clearance and volume were lognormally distributed, the report would give the standard deviations of their log-scale random effects and their correlation. It would list the two schedules as actual sampling times in hours, state the number of individuals assigned to each design, and name the fitted model and estimation procedure. Reporting only “a population PK model with typical variability” would not permit reconstruction.
Worked Example: Turning a Model Description Into a Reproducible Specification
Suppose a hypothetical study simulates two designs, each with 40 individuals. Design A samples at 1, 4, and 12 hours; Design B samples at 0.5, 2, 6, and 12 hours. The intended performance measure is the proportion of replicate analyses whose estimated typical clearance is within 20% of the generating value. What additional information would make the setup reproducible?
Data generation. State the structural concentration model, the dose and true typical parameter values, and whether individual parameters vary. For example, specify \(CL_i=5\exp(\eta_{CL,i})\) L/h and \(V_i=50\exp(\eta_{V,i})\) L, with \((\eta_{CL,i},\eta_{V,i})\) having a mean-zero bivariate normal distribution. Give both random-effect standard deviations and their correlation. Define the observation-error model and its parameters, units, and any correlation across observations. These are assumptions for this hypothetical illustration, not claims about an actual study.
Design and analysis. Say whether all 40 individuals receive the same schedule, how concentrations are measured, and which model is fitted. Specify the estimator, convergence rule, and the calculation used to judge clearance accuracy. The criterion is \(|\widehat{CL}-5|/5\leq 0.20\), with clearance in L/h.
Execution and results. Report the number of planned and completed replicates for each design, the random-number approach, software details, and the number and handling of failed fits. Without those details, a reader cannot tell whether “proportion within 20%” was calculated over all attempted simulations or only successful fits.
Replicate Counts and Monte Carlo Error
A simulated performance estimate is itself subject to Monte Carlo error because it is calculated from a finite number of random replicates. If a performance measure is a probability, such as coverage or successful estimation, define \(I_r=1\) when replicate \(r\) meets the stated criterion and \(I_r=0\) otherwise. With \(R\) independent replicates, the estimated probability is \(\hat p=R^{-1}\sum_{r=1}^{R}I_r\). Its estimated Monte Carlo standard error (MCSE) is
This expression follows because each \(I_r\) has estimated variance \(\hat p(1-\hat p)\), and the variance of the mean of \(R\) independent indicators is that variance divided by \(R\). Taking the square root gives the estimated standard deviation of the simulation estimate across repeated runs of the same simulation. Independence here refers to the replicates used for that estimate; the report should describe any design that induces dependence, such as pairing candidate designs within replicate.
For a continuous performance measure \(Y_r\), report its replicate mean and the sample standard deviation \(s_Y\) across replicates. The estimated MCSE of the mean is \(s_Y/\sqrt{R}\), when the replicate-level values are independent and have finite variance. For paired design comparisons, define the replicate-level difference first and report its mean and MCSE across replicate differences; this preserves the pairing in the uncertainty calculation.
An MCSE quantifies numerical uncertainty from using finitely many simulation replicates. It does not quantify uncertainty about whether the data-generating assumptions are correct, nor does it establish that simulated performance will match performance in a real population. If a normal approximation is reasonable, an estimate plus or minus about 1.96 MCSEs can summarize its Monte Carlo precision, but the report should identify this as an approximation and not present it as a general-purpose confidence interval for real-world performance.
Worked Example: Reporting Monte Carlo Precision for a Proportion
In a hypothetical scenario, 5,000 independent replicates are completed, and an analysis meets a pre-specified accuracy criterion in 4,100 replicates. Calculate the estimated proportion and its MCSE.
The estimated proportion is \(\hat p=4{,}100/5{,}000=0.8200\). The estimated Monte Carlo standard error is
The report would state that the estimated proportion was 82.0%, with an MCSE of 0.543 percentage points, based on 5,000 replicates. A rough normal-approximation range for Monte Carlo precision is \(0.8200\pm1.96(0.005433)\), or approximately 0.8094 to 0.8306. This describes simulation variability in the estimate under the specified setup; it is not a 95% probability statement about a fixed unknown real-world proportion.
Failures, Exclusions, and Denominators
A report should distinguish simulations attempted, simulations completed, and simulations included in each summary. State failure categories and counts—for example, optimizer nonconvergence, an invalid parameter estimate, or a software error—and whether each was included, excluded, or assigned a defined outcome. Apply pre-specified rules consistently across designs and scenarios. If rules changed after examining results, describe the change and its consequences rather than presenting the final analysis as if it had been planned from the outset.
Different denominators can answer different questions. A performance summary among successful fits estimates performance conditional on obtaining a successful fit. A summary that treats failed fits as not meeting an estimation criterion includes operational failure in the reported rate. Neither is automatically correct for every purpose; the report must define the target and show enough information for readers to see how failures affect it. Never silently discard failures while reporting a denominator that suggests all attempted replicates were analyzed.
Worked Example: Showing the Effect of Failed Fits
A hypothetical scenario plans 1,000 replicates. In 12, the fitting algorithm fails; among the 988 successful fits, 731 meet the specified accuracy criterion. Report the results under two clearly defined summaries.
Conditional on a successful fit: the estimated proportion meeting the criterion is \(731/988=0.7399\), or 74.0%. The report must label this as conditional on successful fitting and disclose that 12 of 1,000 attempted fits failed.
Counting fitting failure as not meeting the criterion: the proportion is \(731/1{,}000=0.7310\), or 73.1%. This summary includes the algorithm’s failures in the outcome and uses all attempted replicates as its denominator.
The two values differ because the summaries answer different questions. Reporting the attempted count, failure count, successful-fit count, and criterion makes that distinction explicit. If failure is handled in another way, that rule and the resulting denominator should be reported as well.
Scenario-Specific Results and Reporting Choices
Present results at the level needed to evaluate the comparisons. A table organized by scenario and candidate design should identify the performance measure, units, replicate count, estimate, MCSE, and any failures or exclusions. State clearly which direction of a measure is preferred. If an overall summary combines scenarios, document its weighting rule and retain scenario-specific results so that the aggregate cannot conceal a setting where performance differs substantially.
| Scenario | Design | Replicates attempted / analyzed | Performance estimate | MCSE | Failures or exclusions |
|---|---|---|---|---|---|
| Explicit scenario label and assumptions | Defined sampling plan | Counts and denominator rule | Measure, value, and units | Value and units | Count and handling rule |
| Second specified scenario | Second defined plan | Counts and denominator rule | Measure, value, and units | Value and units | Count and handling rule |
A compact table is not a substitute for methods. Explain how measures were computed, how uncertain or invalid outputs were classified, and which results correspond to each scenario. Report relevant deviations from the planned analysis. When several metrics are presented, define each one in the same terms used in the simulations; a label such as “precision” needs an operational definition and units or scale.
Common Reporting Pitfalls and Limits
- Giving a seed but not the simulation specification. A seed cannot reveal the model, candidate schedules, analysis settings, or failure rules. Report the statistical specification and implementation details as well as the random-number strategy.
- Reporting only successful fits. A success-only estimate can overstate overall operational performance if failures are common. Give all relevant counts and label conditional summaries.
- Using a large replicate count as a quality claim. More replicates can reduce MCSE, but they cannot repair misspecified assumptions, an incorrectly implemented model, or an analysis that does not match the intended question.
- Reporting an aggregate without its components. An overall result can obscure scenario-specific behavior. Show the component results and explain any aggregation rule.
- Interpreting MCSE as real-world uncertainty. MCSE describes finite simulation noise under the specified setup. It does not measure uncertainty in the model assumptions or guarantee transportability.
The report is limited by the choices it describes: a perfectly reproducible simulation can still address an unrealistic scenario or omit an important source of variation. Transparency makes those limitations assessable; it does not remove them. A useful final check is whether a reader could write down the generating distributions, implement each candidate design and analysis, determine the denominator of every result, and understand the precision and limitations of each reported estimate.
Check Your Understanding
Answer each question using the reporting principles above. Short solutions follow the questions.
- A simulation estimates a success probability of 0.50 from 1,000 independent replicates. What is its estimated MCSE?
- A report says “500 successful simulations” but does not state how many were attempted. What information is missing, and why does it matter?
- Why should a report give scenario-specific results when it also presents an overall average?
- What does an MCSE describe, and name one important uncertainty it does not describe?
Solutions. (1) \(\sqrt{0.50(1-0.50)/1{,}000}=\sqrt{0.00025}\approx0.01581\), or 1.58 percentage points. (2) The attempted count, failures or exclusions, and denominator rule are missing. Without them, a reader cannot determine whether the estimate is conditional on successful simulation or how often the procedure failed. (3) Scenario-specific results show whether the aggregate masks variation across conditions and let readers inspect performance in each setting. (4) MCSE describes finite-replicate simulation variability in an estimated performance measure under the specified setup. It does not quantify uncertainty that the data-generating assumptions are correct or that results apply to a real population.