Why Summarize Concentration-Time Distributions?
A simulation from a fitted nonlinear mixed-effects model can produce many concentration-time profiles, one for each simulated subject or subject-occasion. At a fixed time, these profiles may differ because of between-subject variability, between-occasion variability, residual variability, or parameter uncertainty, depending on how the simulation was constructed. A time-specific summary makes the distribution of concentrations at that time easier to describe and compare across the dosing interval.
The key is to define exactly which simulated values are being summarized. A distribution across new subjects at a specified occasion answers a different question from a distribution across all subject-occasion records. The resulting summaries describe the simulated ensemble and the simulation design; they are not automatically summaries of every possible source of uncertainty.
For \(S\) simulated units, write the concentrations at time \(t\) in increasing order as \(c_{(1)}(t),\ldots,c_{(S)}(t)\). The summaries are calculated separately at each selected time. For clarity in the calculations below, empirical quantiles use the linear-interpolation convention \(h=1+(S-1)p\): if \(j\) is the integer part of \(h\) and \(\gamma=h-j\), then \(Q_p=(1-\gamma)c_{(j)}+\gamma c_{(j+1)}\), with the endpoints used when \(h\) is an integer. This convention gives a reproducible finite-sample summary; software packages can use different quantile conventions, so the convention should be stated when exact agreement matters.
The median is \(Q_{0.50}\). The interquartile range (IQR) is \(Q_{0.75}-Q_{0.25}\), a measure of the spread of the central half of the simulated values. The sample standard deviation describes spread around the sample mean \(\bar{x}\). For \(S\geq 2\), it is \(s=\sqrt{\sum_{i=1}^{S}(c_i-\bar{x})^2/(S-1)}\); for \(S=1\), the sample standard deviation is undefined because its denominator is zero. All of these concentration summaries have the same units as concentration.
How the Summaries Describe a Distribution
At each time \(t\), the population distribution can be represented by its cumulative distribution function \(F_t(c)=P(C(t)\leq c)\). Its \(p\)th quantile is the concentration at or below which a proportion \(p\) of the distribution lies. In a simulation, the sorted values approximate that distribution, and the empirical quantile is a finite-sample summary of those values. Thus, if the simulated 90th percentile at a particular time is 12 mg/L, approximately 90% of the simulated units have concentrations at or below that value at that time, subject to simulation variability and the chosen quantile convention.
A brief justification explains why the median is often useful. For a proposed center \(m\), consider the total absolute deviation \(L(m)=\sum_i|c_i-m|\). Between successive ordered observations, increasing \(m\) by a small amount reduces the deviations from observations above \(m\) and increases the deviations from observations below \(m\). The net change is determined by the difference between the counts on either side. The loss is minimized where at least half the values lie on each side: at a middle observation when \(S\) is odd, or anywhere between the two middle observations when \(S\) is even. The interpolated median convention above selects the midpoint in the even case. This is why the median is less influenced by a few extreme values than the mean, though it does not make the median immune to unusual values or poor simulation design.
Worked Example: A Skewed Concentration Distribution at One Time
Suppose five hypothetical simulated subjects have concentrations \(1, 2, 3, 4,\) and \(10\) mg/L at \(t=6\) hours. The values are already sorted, so \(S=5\).
Median. With five observations, the middle value is \(c_{(3)}=3\) mg/L.
Quartiles and IQR. For \(p=0.25\), \(h=1+(5-1)(0.25)=2\), so \(Q_{0.25}=c_{(2)}=2\) mg/L. For \(p=0.75\), \(h=4\), so \(Q_{0.75}=c_{(4)}=4\) mg/L. Therefore, \(\mathrm{IQR}=4-2=2\) mg/L.
Mean and sample standard deviation. The mean is \(\bar{x}=(1+2+3+4+10)/5=4\) mg/L. The squared deviations sum to \(9+4+1+0+36=50\) (mg/L)\(^2\), so \(s=\sqrt{50/(5-1)}=\sqrt{12.5}=3.536\) mg/L. The high value makes the mean and standard deviation large relative to the median and IQR. The median and IQR describe the central part of this small simulated sample; they do not show that the 10 mg/L value should be discarded.
Summarize the Intended Simulation Units
The index \(i\) must match the scientific question. If the target is a new subject at a specified occasion, take one value per simulated subject for that occasion. If the target is a randomly selected subject-occasion, then pooling subject-occasion values may be appropriate, provided the occasions and their weights represent that target. If the target is a particular occasion, summarize that occasion separately rather than mixing it with other occasions.
Pooling can change the distribution, not merely increase its sample size. For example, suppose each of two subjects has a concentration on each of two occasions. A pooled summary gives four values equal weight, while a subject-level summary may first choose or average within subjects, depending on the estimand. Repeated values from one subject are also dependent. They should not be treated as additional independent subjects just because they appear as separate rows.
Worked Example: Pooling Occasions Changes the Summary
Consider hypothetical concentrations at \(t=4\) hours for two subjects. Subject A has 2 mg/L on each of two occasions; subject B has 8 mg/L on each occasion. If the target is a subject at a randomly selected occasion and all four subject-occasion records are intentionally given equal weight, the sorted values are \(2,2,8,8\) mg/L.
Using the stated interpolation rule, \(S=4\). For the median, \(h=1+3(0.50)=2.5\), so the median is halfway between \(c_{(2)}=2\) and \(c_{(3)}=8\): \(2+0.5(8-2)=5\) mg/L. For the lower quartile, \(h=1.75\), giving \(Q_{0.25}=2+0.75(2-2)=2\) mg/L. For the upper quartile, \(h=3.25\), giving \(Q_{0.75}=8+0.25(8-8)=8\) mg/L. Thus, the IQR is \(8-2=6\) mg/L.
If the target is instead a randomly selected subject, first recognize that each subject’s two occasions repeat the same value in this example. The subject-level values are 2 and 8 mg/L, with the same interpolated median of 5 mg/L, but they are only two independent subject draws, not four. In general, the numerical summaries can differ when occasions vary or when the number of simulated occasions differs among subjects. The weighting rule should therefore be chosen from the target question, not from which data layout is easiest.
Summaries Across a Time Grid
A concentration-time distribution is often summarized at a prespecified set of times \(t_1,\ldots,t_J\). At each time, calculate the desired summaries across the same intended type of simulation unit. Reporting the median together with lower and upper quantiles can reveal changes in both the typical concentration and the distribution’s spread over time. A time grid should be sufficiently informative for the intended description; summaries at a few sparse times can miss rapid changes between them.
Worked Example: Median and Quartiles at Three Times
Four hypothetical simulated subjects have the following concentrations, in mg/L:
| Time (hours) | Subject 1 | Subject 2 | Subject 3 | Subject 4 |
|---|---|---|---|---|
| 0.5 | 8 | 10 | 12 | 14 |
| 2 | 5 | 8 | 11 | 16 |
| 8 | 1 | 2 | 3 | 9 |
At \(0.5\) hours, the sorted values are \(8,10,12,14\). With \(S=4\), the median uses \(h=2.5\), so it is \((10+12)/2=11\) mg/L. The quartile positions are \(h=1.75\) and \(h=3.25\): \(Q_{0.25}=8+0.75(10-8)=9.5\) mg/L and \(Q_{0.75}=12+0.25(14-12)=12.5\) mg/L. The IQR is \(12.5-9.5=3\) mg/L.
At 2 hours, the ordered values are \(5,8,11,16\). The median is \((8+11)/2=9.5\) mg/L. The quartiles are \(5+0.75(8-5)=7.25\) mg/L and \(11+0.25(16-11)=12.25\) mg/L, giving an IQR of \(12.25-7.25=5\) mg/L.
At 8 hours, the ordered values are \(1,2,3,9\). The median is \((2+3)/2=2.5\) mg/L. The quartiles are \(1+0.75(2-1)=1.75\) mg/L and \(3+0.25(9-3)=4.5\) mg/L, giving an IQR of \(4.5-1.75=2.75\) mg/L. The median declines across these times, while the IQR is largest at 2 hours. These summaries describe distributions at individual times; they do not describe the distribution of a subject’s maximum concentration or total exposure.
Diagnostics, Alternatives, and Limitations
A compact table of medians and quantiles is useful, but diagnostics help determine whether it represents the simulated profiles adequately. At selected times, inspect the underlying simulated values or a distribution plot, check for implausible concentrations, and verify that every value corresponds to the intended time and simulation unit. If concentrations must be nonnegative under the model, negative simulated concentrations may indicate a model or residual-error specification issue rather than a reason to silently truncate values. Also check that concentrations from different occasions or dosing histories have not been combined unintentionally.
- Few simulated units: Quantiles are coarse when \(S\) is small. With \(S=1\), a median can be reported as the single value, but an empirical spread cannot be assessed; the sample standard deviation is undefined.
- Extreme values or skewness: Compare the median and IQR with the mean and sample standard deviation, and inspect the values. A mean can be informative for an average-concentration question, while the median describes the center by rank. Neither should be substituted for the other without regard to the target.
- Time-grid problems: A summary only describes the simulated values at its stated time. Coarse time spacing may conceal a short-lived peak or a rapid change; denser sampling or a justified interpolation of each profile may be needed before summarizing at additional times.
- Changing simulation composition: If some subjects or occasions are absent at certain times, the summaries may be based on different units at different times. Check the counts and clarify whether the changing composition is intended.
The median and quantiles are robust descriptions of location and spread, while the mean and standard deviation provide summaries based on arithmetic deviations. A full distribution plot can show multimodality or tails that a few quantiles conceal. These approaches are complementary: select summaries to answer the intended descriptive question, and retain enough information to notice features the summaries omit.
A time-specific median curve is formed by joining medians calculated separately at each time. It need not correspond to any one simulated subject’s trajectory. Likewise, the pointwise 10th and 90th percentiles at successive times do not identify a single set of subjects who remain between those percentiles throughout the interval. They describe marginal distributions at each time, not simultaneous trajectory-level coverage. The relationship between measurements within a profile is preserved in the simulated data, but it is not fully represented by separate time-specific quantiles.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- Four simulated concentrations at a specified time are 3, 5, 7, and 9 mg/L. Using the interpolation rule in this tutorial, calculate the median, lower quartile, upper quartile, and IQR.
- At one time, a simulation contains 12 records from 6 subjects, with two occasions per subject. When is it appropriate to summarize all 12 records as one distribution?
- What does a simulated 75th percentile of 8 mg/L at 5 hours mean in context?
- Can a curve joining time-specific medians be interpreted as the concentration trajectory of a typical individual? Explain.
Solutions. (1) The ordered values are \(3,5,7,9\). The median is \((5+7)/2=6\) mg/L. The quartile positions are \(h=1.75\) and \(h=3.25\), so \(Q_{0.25}=3+0.75(5-3)=4.5\) mg/L and \(Q_{0.75}=7+0.25(9-7)=7.5\) mg/L. The IQR is \(7.5-4.5=3\) mg/L. (2) Pool all 12 records when the target is explicitly the distribution across subject-occasions and the weighting of occasions matches that target. If the target is subjects, account for the repeated records rather than treating them as 12 independent subjects. (3) Approximately 75% of the simulated units have concentrations at or below 8 mg/L at 5 hours, under the specified simulation design and quantile convention. (4) No. The median at each time is calculated separately, and the subjects contributing the middle rank can change over time; the joined curve need not be any one subject’s trajectory.