Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Linearized propagation

Use this page when uncertainties are small enough that a local derivative may summarize how a smooth scientific map changes their covariance.

The scientific question

Given an input vector with a stated mean and covariance, how does a smooth map change those moments near a chosen expansion point? Linearized propagation answers that local question efficiently. It is useful for sensitivity diagnosis and for small, approximately unimodal perturbations, but it is not an exact general propagation rule.

The expansion point matters. A Jacobian evaluated at the mean answers a different local question from a Jacobian evaluated at a nominal best fit or another reference state. The caller must record that point and the units and ordering of every input and output component.

Mathematical objects

Let f:RdRmf:\mathbb{R}^{d}\rightarrow\mathbb{R}^{m} be differentiable near an arbitrary expansion point x0\mathbf{x}_{0}. Let X\mathbf{X} have mean μx=E[X]\boldsymbol{\mu}_{x}=\mathbb{E}[\mathbf{X}] and covariance CxRd×d\mathbf{C}_{x}\in\mathbb{R}^{d\times d}. Define Y=f(X)\mathbf{Y}=f(\mathbf{X}) and the Jacobian J0Rm×d\mathbf{J}_{0}\in\mathbb{R}^{m\times d} evaluated at x0\mathbf{x}_{0} by (J0)ai=fa/xi(J_0)_{ai}=\partial f_a/\partial x_i. The expansion point may equal the mean, but the derivation does not require that choice.

The units expose the contract. (J0)ai(J_0)_{ai} has units [Ya]/[Xi][Y_a]/[X_i], (Cx)ij(C_x)_{ij} has units [Xi][Xj][X_i][X_j], and (Cy)ab(C_y)_{ab} must have units [Ya][Yb][Y_a][Y_b]. Off-diagonal entries are cross-covariances, not optional noise terms. Dropping them changes both the input model and the propagated answer.

Rank is also informative. If Cx\mathbf{C}_{x} has rank rr, the first-order output covariance has rank at most min(r,rankJ0)\min(r,\operatorname{rank}\mathbf{J}_{0}). A singular covariance can represent exact constraints or an under-resolved model; adding a small diagonal floor changes that scientific statement.

Core derivation

At the arbitrary point x0\mathbf{x}_{0}, a first-order Taylor expansion gives

μx=E[X],f(X)f(x0)+J0(Xx0).\boldsymbol{\mu}_{x}=\mathbb{E}[\mathbf{X}], \qquad f(\mathbf{X})\approx f(\mathbf{x}_{0})+\mathbf{J}_{0}(\mathbf{X}-\mathbf{x}_{0}).

Taking the expectation of (1) defines the approximate output mean. Subtracting that mean centers the linearized output about μx\boldsymbol{\mu}_{x} rather than about the expansion point:

μ^y=f(x0)+J0(μxx0),f(X)μ^yJ0(Xμx).\widehat{\boldsymbol{\mu}}_{y}=f(\mathbf{x}_{0}) +\mathbf{J}_{0}(\boldsymbol{\mu}_{x}-\mathbf{x}_{0}), \qquad f(\mathbf{X})-\widehat{\boldsymbol{\mu}}_{y} \approx\mathbf{J}_{0}(\mathbf{X}-\boldsymbol{\mu}_{x}).

The expected outer product of the centered relation in (2) is therefore

CyJ0CxJ0T.\mathbf{C}_{y}\approx \mathbf{J}_{0}\mathbf{C}_{x}\mathbf{J}_{0}^{\mathsf{T}}.

Equation (3) follows because E[(Xμx)(Xμx)T]=Cx\mathbb{E}[(\mathbf{X}-\boldsymbol{\mu}_{x}) (\mathbf{X}-\boldsymbol{\mu}_{x})^{\mathsf{T}}]=\mathbf{C}_{x}. By contrast, the raw second moment around an arbitrary expansion point is

E[(Xx0)(Xx0)T]=Cx+(μxx0)(μxx0)T.\mathbb{E}[(\mathbf{X}-\mathbf{x}_{0})(\mathbf{X}-\mathbf{x}_{0})^{\mathsf{T}}] =\mathbf{C}_{x} +(\boldsymbol{\mu}_{x}-\mathbf{x}_{0}) (\boldsymbol{\mu}_{x}-\mathbf{x}_{0})^{\mathsf{T}}.

Thus (4) equals Cx\mathbf{C}_{x} only when the expansion point equals the input mean. For an affine map f(x)=Ax+bf(\mathbf{x})=\mathbf{A}\mathbf{x}+\mathbf{b}, the equation is exact with J0=A\mathbf{J}_{0}=\mathbf{A} whenever the second moments exist. For a nonlinear map, neglected Hessian and higher-order terms can shift both the mean and the covariance.

If inputs X\mathbf{X} and Z\mathbf{Z} are jointly uncertain, their full block covariance includes Cxz\mathbf{C}_{xz}. Propagating f(X,Z)f(\mathbf{X},\mathbf{Z}) requires the augmented Jacobian and those cross-covariances. Propagating the blocks separately silently assumes independence.

Failure modes and interpretation limits

What Jaxstro may add

JAX owns transformations and random primitives. NumPyro and BlackJAX own probabilistic inference and sampling mechanics. Informax owns inference-aware scientific workflows in the Jaxstro ecosystem. A future jaxstro.uncertainty would own only domain-agnostic propagation representations, unit and shape conventions, deterministic key policy, provenance, and evidence contracts. Covariance propagation does not perform inference and does not validate a probability model.

A future helper may compute Jacobian-vector or vector-Jacobian factorizations, preserve component and unit metadata, and report symmetry, rank, and conditioning diagnostics. It may not choose an inference model, insert undocumented covariance floors, discard cross-covariances, or call the approximation exact.

Evidence required before implementation

The minimum evidence includes analytic affine maps, independently calculated Jacobians, unit-consistency tests, symmetry and positive-semidefinite checks, rank-deficient examples, and central finite-difference comparisons on a smooth domain. Nonlinear cases must compare the first-order result with high-resolution ensemble propagation as input scale shrinks, demonstrating the expected local convergence rather than agreement at one hand-picked scale.

Tests must cover correlated inputs, rectangular Jacobians, batched covariances, JIT and VMAP behavior, float32 and float64 conditioning, and explicit failures for nonfinite values or mismatched shapes. Evidence should report the expansion point and must separate numerical agreement from validation of the probability model.

Claim boundary

The formula on this page is exact for affine maps and a first-order approximation for general smooth maps. It does not reconstruct tails, modes, support, or a posterior; it does not justify independence assumptions; and it does not certify that the input covariance is scientifically meaningful. No runtime surface exists, and no implementation or release date is implied.

Connected representations, foundations, and methods