From first principles
Propagate fitted uncertainty to a reported quantity
Suppose a fit gives a parameter estimate \(m\) with covariance \(C\), and the quantity to be reported is \(z=h(p)\). Near \(m\), expand a differentiable \(h\) to first order. Writing \(g=\nabla h(m)\), each small parameter change contributes through its directional sensitivity,
Correlations can either reduce or enlarge the propagated variance. For a genuinely nonlinear quantity or a large parameter region, a local line may miss the full shape. One alternative holds the target value fixed and finds the best fit compatible with it. With an objective \(\Phi\), define
Comparing this constrained objective with its unconstrained minimum tracks compensating changes in the nuisance parameters. A confidence level for its increase requires an explicit statistical model; tracing an objective curve alone supplies no probability calibration.
Derivation and applications
Derive a profile interval using the covariance of a linear fit
Suppose a Gaussian linear experiment gives unconstrained estimate \(m\) and strictly positive covariance \(C\), with correctly known noise scale. Its negative log likelihood relative to the optimum is the quadratic distance \(\tfrac12(p-m)^TC^{-1}(p-m)\). To profile a reported scalar \(z=c^Tp\), require the candidate parameters to satisfy that equality. Introduce a multiplier and differentiate with respect to the vector,
The constraint determines \(\lambda=(c^Tm-z)/(c^TCc)\). Substitution gives both the parameter combination selected at each target value and the profile height,
This reproduces the usual propagated Gaussian variance while showing exactly how the other fitted coordinates move along the profile. For a monotone function \(q=g(z)\), imposing \(q\) fixes the corresponding \(z=g^{-1}(q)\). The profile then transforms without approximation,
An interval selected by a likelihood-ratio threshold maps by applying \(g\) to its two endpoints. It can be asymmetric even when the underlying likelihood in \(p\) is exactly quadratic. If \(g\) is not one-to-one, every feasible branch must be considered and the smallest objective chosen.
Worked example
Track the nuisance displacement along a profile
Take \(m=(2,4)^T\), \(C=\left(\begin{smallmatrix}1&0.5\\0.5&1\end{smallmatrix}\right)\), and target \(z=p_1+p_2\). The target mean is 6 and variance 3. At \(z=9\), \(Cc=(1.5,1.5)^T\), giving constrained state \((3.5,5.5)^T\). The twice-log-likelihood increase is \(3^2/3=3\). Holding the second parameter fixed would impose a different and more restrictive path.
Second application
Transform an interval for a positive output
A second model estimates \(z=\ln(q/q_0)\) with mean \(0.4\) and deviation \(0.3\); let \(q_0=10\). At threshold \(2\Delta\Phi=4\), the interval in \(z\) is \([-0.2,1.0]\). Mapping its endpoints gives \(q\in[8.19,27.18]\), around the maximum-likelihood value \(10e^{0.4}=14.92\). A symmetric interval about that value would lose the exact profile geometry.
Push uncertainty through the prediction
Often a user needs tomorrow's temperature or a time to threshold, rather than all fitted coefficients. For a linear target \(h(x)=c^\mathsf{T}x\) and Gaussian posterior, \(h\) is Gaussian with mean \(c^\mathsf{T}m\) and variance \(c^\mathsf{T}C c\). Include covariance terms: positively correlated errors raise uncertainty in a sum and reduce it in a difference. For a new noisy measurement add its own independent measurement variance. Reporting this predictive interval as the uncertainty of the noise-free underlying response would mix two questions.
For a smooth nonlinear \(h\), expand about the mean \(m\). The first-order variance is \(\nabla h^\mathsf{T}C\nabla h\); the leading correction to the mean is \(\tfrac12\operatorname{tr}[H_h(m)C]\). If the gradient vanishes, first-order variance propagation can return zero despite substantial uncertainty. For example, if \(x\) is centred normal with variance \(s^2\) and \(h=x^2\), then \(\mathbb Eh=s^2\) and \(\operatorname{Var}h=2s^4\), using the Gaussian fourth moment. The linear approximation at zero would miss both.
A positive rate and a nonlinear lifetime
Suppose \(\theta=\ln(k/k_{\rm unit})\) is normal with mean \(m\) and standard deviation \(s\). A decay lifetime is
Its median is \(e^{-m}/k_{\rm unit}\); its mean is larger by \(e^{s^2/2}\). A central 95% interval is \([e^{-m-1.96s},e^{-m+1.96s}]/k_{\rm unit}\). These endpoints need not be equally far from the median. For median 10 s and \(s=0.5\), the interval is approximately [3.75, 26.6] s and mean 11.33 s. Transform samples or quantiles if strong nonlinearity makes symmetric error bars misleading.
A profile follows compensating changes
Let the fit have parameters \((p,q)\). To profile \(p\), fix it temporarily at each trial value and minimise the objective over \(q\). The resulting curve reflects how much the other parameter can compensate. Holding \(q\) fixed instead gives a slice that is generally steeper and gives deceptively narrow intervals. For the sum-of-squares surface \(F=(p+q-2)^2+0.04(q-1)^2\), minimising gives
The resulting profile is \(0.04(p-1)^2/1.04\). A slice at the joint optimum's \(q=1\) is just \((p-1)^2\). Both have minimum at one but radically different curvature.
Read the level as well as the curve
A profile likelihood is a maximisation over nuisance parameters. A Bayesian marginal instead integrates their probability. Even when their modes agree the two objects can differ in shape in nonlinear models. A likelihood-ratio threshold yields approximate confidence sets under regularity assumptions and enough informative data. Boundaries, multiple modes and poorly identified nuisance parameters may invalidate a familiar chi-square cutoff. Report the objective convention and how the threshold was calibrated, e.g. by simulated repetitions of the full experiment. A plot of the raw profile and representative predicted curves along it remains interpretable even when an asymptotic confidence level is questionable.
Invert a test to put an interval on a ratio
A scientifically relevant quantity may be \(q=\mu_y/\mu_x\), for example the response per unit excitation. Estimates \(\hat x,\hat y\) can each have nearly Gaussian uncertainty even when their ratio is highly asymmetric. Suppose for now that they are independent normals with known variances \(s_x^2,s_y^2\), and that the true denominator is nonzero. To test a proposed ratio \(q\), consider the contrast \(\hat y-q\hat x\). If the proposed ratio is correct, that contrast has mean zero and variance \(s_y^2+q^2s_x^2\). The source of difficulty, the uncertain denominator, now enters the reference variance explicitly.
Collect all values whose absolute standardised contrast is at most a normal quantile \(z\). Squaring and expanding gives the quadratic inequality
This inversion gives a confidence set because it contains the true ratio exactly when the correctly standardised contrast falls in the specified acceptance region. Its shape need not resemble a symmetric error bar. If the leading coefficient changes sign, the accepted set may be unbounded. A covariance between \(\hat x\) and \(\hat y\) changes the variance to \(s_y^2+q^2s_x^2-2q\,\mathrm{Cov}(\hat x,\hat y)\), so the preceding coefficients require modification.
A precise reading divided by an uncertain excitation
Use \(z=2\), corresponding to about 95.45 percent coverage for the stated normal model. Set \(\hat x=2,\hat y=4,\ s_x=0.5,\ s_y=1\). The quadratic coefficients are 3, −16 and 12. Its roots are \((16\pm\sqrt{112})/6\), about 0.903 and 4.431. The accepted set is the closed interval between them because the polynomial opens upward. The point estimate is two. The interval extends considerably farther upward than downward because a smaller plausible excitation can produce a much larger ratio. A symmetric linearised interval loses this asymmetry.
Now keep the observations and numerator uncertainty fixed but raise \(s_x\) to 1.5. The resulting inequality is \(-5q^2-16q+12\le0\), whose roots are \((-16\pm\sqrt{496})/10\), about −3.827 and 0.627. The accepted set consists of the two exterior rays. It includes very large positive and negative values. For such values the standardised contrast approaches \(|\hat x|/s_x=4/3\), inside the threshold two, precisely because the data cannot rule out an excitation arbitrarily close to zero.
An investigator with independent physical information that the excitation is strictly positive may intersect the set with the resulting permitted parameter space. A numerical routine that simply discards negative draws or clips ratios at a convenient maximum is instead changing the uncertainty analysis. The unbounded set is a measurable statement about what an experiment failed to localise, and identifies the denominator measurement as an appropriate target for redesign.
When \(\hat x^2=z^2s_x^2\) exactly, the quadratic term disappears. The confidence set is then ordinarily a half-line determined by a linear inequality. This is the transition between bounded and exterior solutions. A robust implementation must handle it directly instead of dividing by a leading coefficient that may be zero or extremely small.
Change parameters · Explore the worked calculation
Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.