Skip to contents

The profile likelihood gives confidence intervals of parameters and predictions of nonlinear models without a quadratic approximation [1], [2]. Guide: Profile likelihood, Prediction uncertainty.

Profile and threshold

The objective function \(\mathcal{J}(\theta) = -2 \log L(\theta) - 2 \log \pi(\theta)\) is the data term plus the prior \(\pi\) (Likelihood and prior). Along the profile of \(\theta_i\) the other parameters minimize \(\mathcal{J}\),

\[\hat\theta(c) = \operatorname*{arg\,min}_{\theta \,:\, \theta_i = c} \mathcal{J}(\theta) , \tag{1}\]

and the profile likelihood is the data term along this path,

\[\mathrm{PL}_i(c) = -2 \log L\bigl(\hat\theta(c)\bigr) . \tag{2}\]

Without a prior, (2) is the minimum of \(-2 \log L\) with \(\theta_i = c\). By the likelihood ratio test, the rise \(\mathrm{PL}_i(c) - \mathrm{PL}_i(\hat\theta_i)\) from the optimum \(\hat\theta_i\) below the \(1 - \alpha\) quantile of \(\chi^2_1\) (3.84 for 95 %) defines an asymptotic confidence interval, invariant under reparameterization of \(\theta_i\). Without a prior the optimum is the minimum of (2); with a prior (2) may fall below the value at the optimum, and the rise is still measured from there. profileThreshold() computes the threshold, method = "F" the finite-sample one for estimated standard deviations. A prior wide against the data curvature keeps (1) finite where the data do not determine \(\theta_i\) and changes (2) little where they do.

profile() stops on \(\mathcal{J}\) by default; stepControl = list(stop = "data") ends a profile at the threshold of (2), and confint(val.column = "data") reads the interval off (2).

Shapes

shape of (2) meaning
above the threshold on both sides finite interval
below the threshold on one side practically non-identifiable
exactly flat structurally non-identifiable, a symmetry (Symmetries), removed by a gauge

On the log scale, a one-sided profile towards \(-\infty\) means the reaction can be switched off, towards \(+\infty\) that the process is in equilibrium on the time scale of the data, replaceable by a large fixed value or the quasi-steady state. Both limits give a smaller model with the same fit [3]. Each profile tests one limit with all other parameters free; several limits together need a likelihood ratio test of the reduced model.

Computing a profile

A profile is a sequence of constrained fits, each started from the last point.

  • method = "optimize" steps \(\theta_i\) and refits the others with trust(), one converged fit per point.

  • method = "integrate" follows the constrained optimum of the Lagrangian \(\mathcal{J}(\theta) + \lambda\,(\theta_i - c)\), where \(\nabla \mathcal{J} + \lambda e_i = 0\) and \(\theta_i = c\). Differentiating in \(c\) gives the path equation

    \[\begin{pmatrix} H & e_i \\ e_i^\top & 0 \end{pmatrix} \begin{pmatrix} \mathrm{d}\theta/\mathrm{d}c \\ \mathrm{d}\lambda/\mathrm{d}c \end{pmatrix} = \begin{pmatrix} 0 \\ 1 \end{pmatrix} \tag{3}\]

    with the Hessian \(H\) of \(\mathcal{J}\): one evaluation and one linear solve per step. The step solves (3) with \(-\gamma \nabla \mathcal{J}\) in place of the upper zero, which pulls it back to the constrained optimum (\(\gamma = 1\) by default, adapted to the size of the pull); with a Gauss-Newton \(H\) the path still drifts, and algoControl = list(reoptimize = TRUE) corrects each step by a short fit.

Step control and stops:

rule setting
step shrinks mismatch of predicted and actual change above atol
step doubles mismatch below 0.3 * atol, or below 0.3 * rtol relative
side ends objective (or data term, stop = "data") up by the threshold; limits relative to the optimum reached; limit steps

A point of \(\mathcal{J}\) below the start value is a better optimum: fit and profiles are then to be repeated from it. Where the curvature jumps, the step shrinks to min and stays on the profile.

Prediction profiles

A prediction \(z = g(t, \theta)\) has the profile likelihood

\[\mathrm{PPL}(z) = -2 \log L\bigl(\hat\theta(z)\bigr) , \quad \hat\theta(z) = \operatorname*{arg\,min}_{\theta \,:\, g(t, \theta) = z} \mathcal{J}(\theta) , \tag{4}\]

whose threshold gives a confidence interval of the prediction [2]; without a prior it is the image of the parameter region at the \(\chi^2_1\) threshold, not of the joint region.

A validation data point makes \(z\) a parameter \(v\), tied to the prediction by

\[\left( \frac{g(t, \theta) - v}{\sigma_v} \right)^2 . \tag{5}\]

The profile of \(v\) is (4) for \(\sigma_v \to 0\) and lies below (4) otherwise, so the interval of \(v\) is wider: for a quadratic (4) of half-width \(w\) the half-width becomes \((w^2 + \Delta \sigma_v^2)^{1/2}\), \(\Delta\) the threshold. datapointL2() builds (5) as an objfn from the evaluation of normL2(), which therefore predicts at \(t\) (times = t). With attrName = "data", (5) adds to the data term, so stop = "data" and confint(val.column = "data") include it. Where the model cannot follow \(v\), (5) grows and ends the profile.

References

[1]
A. Raue et al., “Structural and practical identifiability analysis of partially observed dynamical models by exploiting the profile likelihood,” Bioinformatics, vol. 25, no. 15, pp. 1923–1929, 2009, doi: 10.1093/bioinformatics/btp358.
[2]
C. Kreutz, A. Raue, and J. Timmer, “Likelihood based observability analysis and confidence intervals for predictions of dynamic models,” BMC Systems Biology, vol. 6, no. 1, p. 120, 2012, doi: 10.1186/1752-0509-6-120.
[3]
T. Maiwald et al., “Driving the model to its limit: Profile likelihood based model reduction,” PLOS ONE, vol. 11, no. 9, p. e0162366, 2016, doi: 10.1371/journal.pone.0162366.