Documentation

18.8 Marginal likelihood and OFV

Population likelihood removes the unobserved ETA by integration:

\[ L_i=\int p(y_i\mid\eta)p(\eta\mid\Omega)\,d\eta. \]

The total likelihood is the product across independent subjects. On the nlmx/NONMEM objective scale, subject contributions are approximately \(-2\log L_i\), and the total OFV is their sum. The constant \(n_{obs}\log 2\pi\) is omitted.

The marginal likelihood sums over plausible individual effects

Using the conditional objective,

OFV_i = log|OMEGA| + p log(2π) − 2 log ∫ exp[−J_i(eta)/2] d eta

where \(p\) is the number of active ETAs. This integral is analytic for a linear Gaussian model. Nonlinear PK models usually need approximation or stochastic integration.

The omitted observation constant is harmless for comparing models fitted to the same observations under the same convention. It matters when comparing absolute values from different likelihood definitions or transformed data. Different numbers of observations also change the constant, so raw OFV across different datasets is not a selection statistic.

The frozen nonlinear example computes this integral numerically over ETA and uses it as a toy reference. Numerical quadrature is feasible with one ETA but becomes exponentially difficult as ETA dimension grows, motivating approximations.

Practical interpretation

Imagine slicing the ETA axis into narrow intervals. Each slice contributes conditional fit multiplied by population plausibility. The integral adds their areas; the mode uses only the highest region plus local shape. In several dimensions the number of grid cells explodes, which is the computational reason population software relies on linearization, Laplace, importance sampling or stochastic approximation rather than routine brute-force quadrature.

Common mistakes

Do not maximize the conditional likelihood as though ETAs were fixed, compare OFV across changed observation sets, or assume all programs retain the same constants. A lower OFV is meaningful only within a comparable likelihood.

Checklist

  • Identify the integrated variables and active ETA dimension.
  • Confirm subject independence and observation inclusion.
  • Record omitted constants and transformations.
  • Use the same approximation for model comparisons.
  • Separate numerical integration evidence from general validation.

Further reading

Next: linearisation, followed by the four method pages.