Why Read the Diagnostics Together?
A generated virtual population can match several target means and still represent the wrong population. Its marginal distributions may look plausible while relationships between parameters are distorted; common subgroups may be well represented while a clinically important rare subgroup is nearly absent. A diagnostic panel is useful because it places these different kinds of evidence side by side. The task is not to find one universally good score, but to decide whether the population is adequate for its intended use and whether any mismatch matters for that use.
The interpretation depends on the target being checked, the population being evaluated, and the rules specified for judging fit. Targets may be reference summaries, clinically justified ranges, or prespecified constraints. A plot or residual has no universal pass threshold: a small discrepancy may matter greatly for a decision-critical phenotype, while a larger discrepancy in an irrelevant region may not affect the intended analysis.
Interpret a panel in context. First confirm that each displayed quantity refers to the intended population, variables, units, and eligibility denominator. Then check marginal shapes and summaries, joint structure, subgroup representation, and target residuals. Finally, decide which discrepancies could affect the model outputs or decisions for which the virtual population will be used.
What Each Panel Component Can Tell You
Marginal plots can reveal differences that a mean or standard deviation alone misses: a shifted tail, a support gap, an extra mode, or a concentration of values at a boundary. Histograms and density displays depend on bin widths and smoothing choices, so small visual differences should not be treated as exact measurements. Quantile plots can make distributional shifts easier to locate, but they still examine one variable at a time.
Correlation summaries provide a compact view of pairwise linear association. They do not describe every aspect of a joint distribution: equal correlations do not imply equal conditional distributions, tail dependence, or higher-order structure. Check that the same variables, transformations, and eligible observations are used for the target and generated summaries. A correlation computed in the full population cannot be directly interpreted as a subgroup correlation.
Subgroup counts show how many generated individuals satisfy each phenotype definition. Read each count with its denominator and definition. A count of 10 has a different meaning in a population of 100 than in a population of 1,000. Also inspect important intersections: adequate counts for two phenotypes separately do not guarantee adequate representation of individuals who have both.
Target residuals make the direction and scale of discrepancies explicit. A residual in the original units is directly interpretable, but residuals for different quantities cannot be compared just by their numerical magnitudes. Standardization can help, provided the scaling quantity has a justified interpretation, such as a prespecified tolerance. It should not be mistaken for an inferential standard error unless the sampling model and purpose actually justify that interpretation.
Residual Scaling: A Short Justification
Suppose a target summary is \(T\), the corresponding generated summary is \(G\), and a positive, prespecified tolerance is \(\tau\), expressed in the same units as \(G\) and \(T\). The signed residual and its tolerance-scaled version are
The ratio \(r_{\tau}\) is dimensionless. If \(r_{\tau}=1\), the generated summary is one tolerance above its target; if \(r_{\tau}=-1\), it is one tolerance below. This follows directly because \(G-T=r_{\tau}\tau\). The sign preserves direction, and the magnitude expresses discrepancy in units of the chosen tolerance. This scaling makes quantities with different units easier to review, but it does not make them equally important or establish that any particular value is acceptable. Tolerances should be set from the target's relevance and intended use, not selected after seeing the discrepancies.
Worked Example: Reading Marginal Target Residuals
Suppose a hypothetical qualification target for clearance is a mean of 12.0 L/h, a standard deviation of 3.0 L/h, and a 90th percentile of 16.0 L/h. A generated population gives 11.4 L/h, 3.2 L/h, and 15.5 L/h, respectively. Assume the prespecified tolerances are 1.0 L/h for the mean, 0.5 L/h for the standard deviation, and 1.5 L/h for the 90th percentile.
For the mean, \(r=11.4-12.0=-0.6\) L/h and \(r_{\tau}=-0.6/1.0=-0.60\). The generated mean is 0.6 L/h below target, or 0.60 mean-tolerances below it.
For the standard deviation, \(r=3.2-3.0=0.2\) L/h and \(r_{\tau}=0.2/0.5=0.40\). The generated variability is 0.2 L/h above target, or 0.40 standard-deviation-tolerances above it.
For the 90th percentile, \(r=15.5-16.0=-0.5\) L/h and \(r_{\tau}=-0.5/1.5=-0.333\). The generated upper quantile is 0.5 L/h below target. These three residuals are all within one stated tolerance, but that fact alone does not establish adequacy: the marginal plot might still reveal an important shape difference, and these summaries say nothing about relationships with other variables.
Subgroups: Counts, Denominators, and Rarity
A subgroup diagnostic is interpretable only when its membership rule and denominator are explicit. For a subgroup defined among all eligible generated individuals, its observed proportion is the subgroup count divided by the eligible count. If the target is a proportion \(p\), the expected count at generated size \(n\) is \(np\); this is a useful scale for checking representation, not automatically a requirement that the realized count equal \(np\). Eligibility restrictions change the denominator, and overlapping phenotypes mean subgroup counts need not add to the population total.
Rare subgroups deserve particular attention. A small absolute count may make it difficult to characterize within-subgroup variability or support the intended simulation, even if the overall population is large. Conversely, a count difference should not be judged without considering how the population was constructed: a deliberately constrained finite population is not the same as a random sample from a source population. A count-based uncertainty calculation may be a helpful reference under an appropriate sampling interpretation, but it does not by itself certify the generated population.
Worked Example: Interpreting a Rare-Phenotype Count
A hypothetical target specifies that 10% of eligible individuals have a rare phenotype. A generated population has 200 eligible individuals, of whom 14 have that phenotype. The target-scale count is \(200 \times 0.10=20\), while the observed proportion is \(14/200=0.07\), or 7%. The proportion residual is \(0.07-0.10=-0.03\), a deficit of 3 percentage points; the count is 6 below the target-scale count of 20.
For a descriptive reference only, if individuals were independent draws with a fixed phenotype probability of 0.10, the proportion's binomial standard deviation would be \( \sqrt{0.10(1-0.10)/200}=\sqrt{0.00045}=0.0212 \), or 2.12 percentage points. The observed proportion difference is about \(-0.03/0.0212=-1.41\) of that scale. This calculation is not a p-value and does not establish that the count is acceptable. The population may have been selected or weighted rather than sampled independently. If the rare phenotype is essential to a planned analysis, 14 individuals may be inadequate even when the deficit seems modest on this descriptive scale.
Joint Fit and Conditional Structure
A marginal match is not evidence of a joint match. If two parameters each have the correct distribution, their generated correlation can still be too weak, too strong, or reversed. This matters when model behavior depends on combinations of parameters—for example, when high exposure and low sensitivity jointly identify a response phenotype. Pairwise correlations are useful alerts, but they do not replace inspection of important conditional or multivariable patterns.
Worked Example: Marginals Fit, Correlation Does Not
Suppose two hypothetical model parameters, baseline biomarker \(X\) and response sensitivity \(Y\), have target correlation 0.65. Their marginal plots and target summaries are judged adequate, but the generated population's correlation is 0.18. The signed correlation residual is \(0.18-0.65=-0.47\). If the prespecified tolerance for this correlation is 0.15, the tolerance-scaled residual is \(-0.47/0.15=-3.13\).
The generated association is substantially weaker than the target under the stated tolerance. This is a joint-structure mismatch despite the marginal fit. The correlation comparison is meaningful only if the same eligible individuals and parameter definitions were used for both calculations. The result should prompt inspection of a scatterplot or conditional summaries and of clinically important combinations of \(X\) and \(Y\). It does not, by itself, identify why the relationship changed or prove that a particular clinical prediction will be biased; that requires assessing the consequences for the intended model use.
From a Panel to an Adequacy Decision
A defensible decision uses the panel as a set of complementary checks rather than collapsing everything into one number. A practical review can proceed as follows:
Confirm the same definitions, units, transformations, eligibility rules, and denominators are used for target and generated quantities.
Look for shifts, missing regions, tail differences, or multiple modes that are not captured by the displayed summaries.
Check dependence summaries and important conditional or intersecting phenotypes, especially those tied to the intended use.
Use each residual's sign and scale; identify which discrepancies exceed relevant tolerances or minimum representation requirements.
Record which checks pass, which fail or need review, and whether the population is adequate for the specified use—not for every possible use.
This approach differs from relying on a single distribution-distance score, which can summarize selected discrepancies but may obscure their location or clinical relevance. It also differs from treating a plot as a formal hypothesis test: plots help diagnose patterns, while formal inference requires a defined sampling model and addresses a different question. The earlier material on distance metrics provides tools for quantitative comparisons; interpretation still requires identifying what each discrepancy means for the target use.
Common Mistakes and Limitations
- “The means match, so the population fits.” Matching means does not rule out tail, support, subgroup, or dependence problems. Review the rest of the panel.
- “The overall score is good, so every important feature is good.” A combined score can average away a severe mismatch in a decision-critical subgroup or relationship. Keep critical checks visible and apply their criteria separately.
- “A standardized residual is a z-score.” A residual divided by a tolerance is in tolerance units, not necessarily standard errors. Do not attach a probability or significance interpretation without a justified sampling distribution.
- “The subgroup count is close, so it is sufficient.” Closeness to a target proportion does not guarantee enough individuals for the planned within-subgroup analysis. Check the absolute count and intended use.
- “Matching correlations proves the joint distributions match.” Correlation is only one feature of dependence. Inspect relevant conditional patterns and combinations as well.
Diagnostics are limited by the targets and features they include. A panel cannot reveal a mismatch in an unreported variable, an unexamined subgroup, or a joint feature that its summaries do not capture. Adequacy is therefore conditional on the intended use and the diagnostic coverage. Documenting that scope makes the conclusion more useful than an unqualified statement that a virtual population “fits.”
Check Your Understanding
Answer each question using the distinctions between marginal fit, joint fit, subgroup representation, and residual scale.
- A target mean is 8 mg/L and a generated mean is 8.4 mg/L. The prespecified tolerance is 0.5 mg/L. What are the signed residual and tolerance-scaled residual?
- Why can matching both variables' marginal distributions fail to preserve a clinically important joint pattern?
- A phenotype target is 5% in a generated population of 400, and 12 individuals meet the definition. Calculate the target-scale count and the observed proportion. What should be checked before judging adequacy?
- A correlation residual is divided by a prespecified tolerance and equals \(-2\). What does this mean, and what does it not mean?
Solutions. (1) The signed residual is \(8.4-8.0=0.4\) mg/L; the scaled residual is \(0.4/0.5=0.80\), meaning 0.80 tolerances above target. (2) Marginals describe each variable separately; their association or conditional distribution can differ, changing how combinations of values occur. (3) The target-scale count is \(400 \times 0.05=20\); the observed proportion is \(12/400=0.03\), or 3%. Check the phenotype definition, eligibility denominator, and whether 12 individuals are enough for the intended analysis; the count alone does not settle adequacy. (4) The correlation is two tolerances below target. This is not automatically two standard errors, a p-value, or evidence about the probability of the null hypothesis.