Tutorials › Quantitative Systems Pharmacology (QSP) › Building a Joint Calibration Objective

Calibrating to Multiple Data Sources · Tutorial 582 of 799

Building a Joint Calibration Objective

Build and evaluate a joint calibration objective without confusing different measurement scales or error models.

Advanced 12 min read

What You'll Learn

  • Express a joint calibration objective as a sum of source-specific likelihood contributions.
  • Distinguish standardized residuals on the original scale from residuals on a log scale.
  • Incorporate within-source correlation through a covariance matrix.
  • Use binomial deviance for count data rather than treating proportions as Gaussian observations.
  • Identify when source contributions can be summed and when dependence requires a joint model.
  • Diagnose scale mismatches, inappropriate weights, and misleadingly dominant contributions.

Why a Joint Objective Needs More Than One Residual Formula

A QSP model may be calibrated against data from several assays and studies. One source may report a continuous concentration with approximately additive measurement error; another may report a positive biomarker with multiplicative error; a third may record responders out of a fixed number of subjects. These observations do not share a common raw scale or necessarily follow the same probability model. Adding their raw residuals, or squaring every raw residual, therefore has no general statistical justification.

A joint calibration objective combines evidence by first expressing each source’s observations under an appropriate observation model, then combining the resulting likelihood contributions. The model prediction for source \(s\), observation \(i\), is written \(f_{si}(\theta)\), where \(\theta\) denotes the biological model parameters being calibrated. The observation model specifies how the recorded data vary around that prediction. This tutorial assumes the data definitions, units, replicate structure, and source weights have already been considered; the task here is to formulate the combined objective consistently.

Definition: A joint calibration objective is a scalar function of the model parameters formed from the likelihood contributions of all included data sources. Under conditional independence of sources, the joint likelihood is the product of their likelihoods, so its negative log-likelihood is a sum. A common convention is to minimize minus twice the log-likelihood, \(-2\ell(\theta)\), because it gives familiar residual-squared terms for Gaussian observations. Fixed terms that do not depend on \(\theta\) may be omitted for parameter optimization, but terms depending on estimated error parameters must be retained.

From Source Models to a Joint Objective

Let \(y_s\) denote all observations from source \(s\), and let \(L_s(\theta)\) be their likelihood under the QSP predictions and that source’s observation model. If the sources are conditionally independent given the model parameters, then

$$ L(\theta)=\prod_{s=1}^{S}L_s(\theta), \qquad -2\log L(\theta)=\sum_{s=1}^{S}-2\log L_s(\theta). $$

The independence condition concerns the observations after accounting for the modeled quantities and any specified dependence. It does not mean observations within a source must be independent. Within-source correlation can be represented in \(L_s\), for example by a covariance matrix. If sources share dependent observations or errors, their likelihoods cannot simply be multiplied as though independent; a joint distribution must represent that dependence.

For a source with a multivariate normal observation model, let \(r_s=y_s-f_s(\theta)\) be the residual vector and let \(\Sigma_s\) be its covariance matrix. Then

$$ -2\log L_s(\theta) = r_s^{\mathsf T}\Sigma_s^{-1}r_s +\log|\Sigma_s| +n_s\log(2\pi). $$

If \(\Sigma_s\) is fixed, the last two terms do not change with \(\theta\), so minimizing the source contribution is equivalent to minimizing \(r_s^{\mathsf T}\Sigma_s^{-1}r_s\). If covariance parameters are estimated, the log-determinant term generally depends on those parameters and cannot be dropped. The quadratic term is dimensionless: residuals are measured relative to their variances and correlations, rather than being compared in raw units.

Other observation models lead to different contributions. For positive measurements with multiplicative error, a lognormal model is one standard option: \(\log Y_{si}\sim N(\log m_{si}(\theta),\tau_s^2)\), where \(m_{si}(\theta)\) is the median on the original scale. Its residual is \(\log y_{si}-\log m_{si}(\theta)=\log(y_{si}/m_{si}(\theta))\), not \(y_{si}-m_{si}(\theta)\). For a binomial outcome with \(k_s\) responses among \(N_s\) individuals and model probability \(p_s(\theta)\), the likelihood is proportional to \(p_s(\theta)^{k_s}[1-p_s(\theta)]^{N_s-k_s}\). Each model preserves the observation scale and error assumptions relevant to its source.

Worked Calculations

Worked Example: Combining Additive and Multiplicative Assay Error

Hypothetical data. At one candidate parameter value, a continuous assay reports 12 ng/mL and the model predicts 10 ng/mL. Assume independent additive normal error with known standard deviation 4 ng/mL. A second, positive-valued source has observations 100 and 200 arbitrary concentration units, predictions 90 and 220 in the same units, and independent lognormal errors with log-scale standard deviation 0.20. Assume the sources and the two lognormal observations are independent, and use unit source weights.

For the additive-error observation, the standardized residual is \((12-10)/4=0.5\). Its parameter-dependent minus-twice-log-likelihood contribution is the squared standardized residual:

$$ J_{\mathrm{normal}}=\left(\frac{12-10}{4}\right)^2=0.5^2=0.25. $$

For the lognormal observations, use log ratios. Their unrounded log residuals are \(\log(100/90)=0.1053605\) and \(\log(200/220)=-0.09531018\). Thus

$$ \begin{aligned} J_{\mathrm{lognormal}} &=\left(\frac{\log(100/90)}{0.20}\right)^2 +\left(\frac{\log(200/220)}{0.20}\right)^2\\ &\approx 0.2775+0.2271=0.5046. \end{aligned} $$

The combined objective contribution at this candidate is \(J=0.25+0.5046=0.7546\), up to likelihood constants that are fixed under the stated known error variances. The calculation keeps the first source’s residual in ng/mL until standardization and uses log ratios for the positive-valued source. It does not treat the numerical values from the two scales as directly comparable.

Worked Example: Accounting for Correlated Residuals

Hypothetical data. A source reports two measurements in the same units. At a candidate parameter value, its residual vector is \(r=(2,-1)^{\mathsf T}\) units. Assume a bivariate normal error model with standard deviation 2 units for each observation and correlation \(\rho=0.5\). The covariance matrix is therefore \(\Sigma=4\begin{pmatrix}1&0.5\\0.5&1\end{pmatrix}\). These assumptions specify both marginal uncertainty and within-source dependence.

For this fixed covariance matrix, the parameter-dependent contribution is \(r^{\mathsf T}\Sigma^{-1}r\). For a two-observation covariance matrix with common variance \(\sigma^2\) and correlation \(\rho\), this quadratic form can be written as

$$ r^{\mathsf T}\Sigma^{-1}r = \frac{r_1^2-2\rho r_1r_2+r_2^2}{\sigma^2(1-\rho^2)}. $$

Substituting \(r_1=2\), \(r_2=-1\), \(\rho=0.5\), and \(\sigma=2\) gives

$$ \frac{2^2-2(0.5)(2)(-1)+(-1)^2}{2^2(1-0.5^2)} = \frac{4+2+1}{4(0.75)} = \frac{7}{3} \approx 2.333. $$

If the correlation were incorrectly ignored, the contribution would be \(2^2/2^2+(-1)^2/2^2=1.25\), not 2.333. The discrepancy occurs because the residuals have opposite signs, a pattern that is less consistent with positively correlated errors. The covariance structure is part of the observation model, not an optional adjustment after calculating residuals.

Worked Example: Adding a Binomial Source by Its Likelihood

Hypothetical data. A study records 7 responders among 10 individuals. At a candidate parameter value, the model predicts response probability \(p=0.60\). Assume independent Bernoulli outcomes with this common probability, so the total response count is binomial. A useful contribution is the binomial deviance, the likelihood-ratio measure comparing the model probability with the saturated probability \(\hat p=7/10=0.70\):

$$ D = 2\left[ k\log\left(\frac{k}{Np}\right) +(N-k)\log\left(\frac{N-k}{N(1-p)}\right) \right]. $$

Here \(k=7\), \(N=10\), and \(p=0.60\), so

$$ \begin{aligned} D &=2\left[7\log\left(\frac{7}{6}\right) +3\log\left(\frac{3}{4}\right)\right]\\ &=2\left[7(0.1541507)+3(-0.2876821)\right]\\ &=2(1.079055-0.863046) \approx 0.4320. \end{aligned} $$

The deviance is nonnegative and is zero when the model probability equals the observed proportion, here 0.70. This binomial contribution can be added to compatible likelihood or deviance contributions from other conditionally independent sources. It is not the squared difference between 0.70 and 0.60: such a difference omits the information that the proportion is based on only 10 individuals.

Why the Likelihood Sum Works

The key justification is the logarithm’s conversion of products into sums. If the sources are conditionally independent, their joint probability density or mass function is \(\prod_s L_s(\theta)\). Taking minus twice its logarithm gives \(-2\sum_s\log L_s(\theta)=\sum_s[-2\log L_s(\theta)]\). Each term retains its source’s distribution and measurement scale; the sum is possible because each term is a log-likelihood contribution, not because the original measurements have the same units.

For independent normal observations with known standard deviations \(\sigma_{si}\), the parameter-dependent part reduces to \(\sum_i[(y_{si}-f_{si}(\theta))/\sigma_{si}]^2\). This follows by substituting the normal density into \(-2\log L\); its remaining terms are fixed when the standard deviations are known. For a multivariate normal source, the same argument yields the covariance-weighted quadratic form. These forms are special cases of a likelihood-based objective, not a rule to square every kind of residual.

If a source weight \(a_s\) has been justified in advance, a weighted objective can be written \(J(\theta)=\sum_s a_s[-2\log L_s(\theta)]\), with \(a_s\geq0\). Such weighting changes the influence of a source; it is not the same thing as using its measurement variance, which already appears inside its likelihood. A weighted likelihood is generally a chosen calibration criterion rather than the ordinary likelihood for independent observations. Its interpretation depends on the rationale and scale of the weights. Do not add weights merely because the component objectives appear numerically different.

1
Write each source’s observation model.
Specify the distribution, the model prediction on that distribution’s scale, and any variance or covariance assumptions.
2
Form its likelihood contribution.
Use the normal, lognormal, binomial, or other specified model. Preserve within-source correlation and the correct probability mass for counts.
3
Combine only compatible contributions.
Sum log-likelihood contributions for conditionally independent sources. Represent dependence across sources in a joint likelihood instead.
4
Check the objective and its components.
Confirm units, transformations, weights, covariance assumptions, and whether any omitted terms depend on parameters being estimated.

Diagnostics, Alternatives, and Limitations

A numerically calculable objective can still be poorly specified. Inspect source-specific contributions and residuals on the scales implied by their observation models. For Gaussian data, standardized residuals should be examined relative to the assumed variance and correlation. For lognormal data, inspect log-scale residuals and verify all observations and predictions used in log ratios are positive. For binomial data, retain both the response count and the denominator; a proportion alone does not describe its sampling precision. Systematic residual patterns may indicate a model or observation-model problem rather than a need to rescale the objective.

Several warning signs merit investigation: one source dominates because its variance was entered in the wrong units; a log-scale model was applied to zero or negative values; a correlated series was treated as independent; a source was counted twice; or an estimated variance was optimized while its log-determinant term was omitted. Also check whether the source weights are being applied consistently and whether a reported total can be traced back to its source contributions. A single total objective hides which source is driving a calibration.

The main alternative is to minimize a raw sum of squared residuals. That approach is appropriate only under restrictive conditions, such as comparable measurement scales and a common, constant Gaussian error variance, or after a defensible standardization that corresponds to the assumed error model. An alternative is a weighted least-squares objective; it can be a useful approximation when residuals are approximately Gaussian and weights reflect their variances, but it does not automatically represent count likelihoods, lognormal errors, or parameter-dependent covariance. The full likelihood is more general, although it too depends on correctly specifying the observation distributions.

The objective does not guarantee that the QSP model is identifiable, that the assumed observation models are adequate, or that a good numerical minimum is scientifically credible. It also does not resolve conflicts between sources by itself. A low total may conceal poor fit to one source, especially when source weights differ. Keep the component contributions and source-specific diagnostics available when assessing a fitted model.

Common Pitfall

Wrong reasoning: “All measurements are numeric, so I can subtract every observation from its prediction, square the differences, and add them. If one source looks too influential, I can divide its residuals by an arbitrary constant.”

Correction: A residual’s contribution depends on the data-generating error model. Standardize additive normal errors by their standard deviations; use log residuals for a specified lognormal model; use the count likelihood for binomial data; and encode correlations through the covariance matrix. Any additional source weight needs a stated rationale and should not replace the variance or likelihood already required by the source model.

Key takeaway: A coherent joint calibration objective combines source-specific likelihood contributions, not unprocessed measurements. Preserve each source’s scale, distribution, uncertainty, and dependence structure before summing contributions.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. A normal assay reports 5 units, the model predicts 7 units, and the known standard deviation is 2 units. What is its parameter-dependent minus-twice-log-likelihood contribution?
  2. Why is a residual of 0.2 not directly comparable between a source measured in ng/mL and one measured on a log scale?
  3. Two residuals are correlated within a study. What must be changed in the objective compared with treating them as independent?
  4. For 4 responders among 8 individuals, the model predicts \(p=0.50\). Calculate the binomial deviance against the saturated model.
  5. If two sources are dependent, is the sum of their marginal negative log-likelihoods automatically a valid joint objective? Explain.

Solutions. (1) The standardized residual is \((5-7)/2=-1\), so its squared contribution is \((-1)^2=1\). (2) The first residual is in ng/mL and reflects additive error; the log-scale residual is dimensionless and reflects a ratio under multiplicative error. Their uncertainty models determine their contributions. (3) Use the source covariance matrix in \(r^{\mathsf T}\Sigma^{-1}r\) and retain the log-determinant if it depends on estimated parameters. (4) The saturated proportion is \(4/8=0.50\), equal to the model probability, so \(D=2[4\log(4/4)+4\log(4/4)]=0\). (5) No. Dependence means the product of marginal likelihoods need not equal the joint likelihood; represent cross-source dependence in a joint model before forming the objective.

Clinical Biostats