A simulator predicts a material's bulk modulus from twelve force-field parameters. Each parameter is uncertain, and each simulator run costs time. Before drawing thousands of random inputs, we can ask a smaller question: which directions in parameter space actually move the prediction?
Write the quantity of interest as and choose a nominal input . Throughout this chapter, derivatives are evaluated at unless stated otherwise. Our first approximation will be local. That qualification matters: a parameter can be invisible near one operating point and decisive elsewhere.
In this chapter: local response, computing derivatives, propagating uncertainty, screening and sparsity.
A gradient measures a direction, not just a parameter
For a perturbation , Taylor's theorem gives, when third derivatives are bounded nearby,
The gradient gives the first-order response; the Hessian measures curvature and interactions. A displacement along isolates . A simultaneous displacement in two coordinates can expose even when both first derivatives vanish.
A one-dimensional slice isolates the idea. Let around . The derivative fixes the tangent, while the curvature controls the gap. Move the probe through the neighbourhood before changing : the omitted term should shrink quadratically as the probe returns to zero.
Q(s) = s + cs² · Qlinear(s) = s
s = 0.000omitted term = 0.000
For example, take the illustrative model
Then and . Moving either coordinate alone misses the interaction; moving both adds the product . The quadratic approximation is exact for this example. By contrast, has zero gradient at the origin without being insensitive to joint perturbations. Screening solely by the gradient would discard its entire response.
Paying for derivatives
If only simulator evaluations are available, a forward difference estimates
One shared baseline and perturbed runs cost evaluations. For a smooth deterministic function, truncation error is ; central differences reduce it to at a cost of perturbed runs. Smaller steps eventually amplify roundoff, simulator noise and solver tolerances. Choose relative to a meaningful parameter scale, including a nonzero absolute scale when , and check stability over several step sizes. The source's rule cannot be universal.
Central second differences give
where for signs . For these stencils, sharing the baseline and exploiting symmetry requires
evaluations for the full Hessian. This includes all coordinate perturbations; do not charge for them again when also estimating the gradient. Automatic differentiation, when the simulator supports it, and adjoint methods can change this cost substantially. Neither removes modelling error or differentiation through an unconverged solver.
Sensitivity depends on the uncertainty we supply
A derivative has units of output divided by input. Comparing raw derivatives of a distance and an energy is therefore not meaningful without scales. Multiplying by a reference scale gives , in output units. The source calls dimensionless; a dimensionless relative sensitivity is instead , provided the denominator is nonzero. For uncertain inputs, measures the first-order effect of a one-standard-deviation perturbation.
Let the random displacement have mean zero and covariance . The linear approximation yields
Now transport the same input cloud through the linear response. Changing correlation rotates and reshapes the cloud without changing either coordinate variance. Watch the output distribution rather than treating correlation as an extra independent uncertainty.
Q = Δ₁ + g₂Δ₂ · Var(Q) = 1 + g₂² + 2ρg₂
ρ = -0.90Var(Q) = 1.400
For independent coordinates this becomes . Correlation adds cross terms, which can reinforce or cancel. Compare the same gradient under positive and negative correlation in the figure; the individual parameter uncertainties stay fixed.
The formula also explains its own limitation. If , it predicts no variance, even though quadratic terms may fluctuate. Retaining the Hessian gives an approximate mean shift . For centred Gaussian inputs, the variance of the quadratic Taylor model is
because centred Gaussian third moments vanish and fourth moments factor into covariance pairings. This is an added analytic example, not a claim about the unavailable lecture simulator. For with independent unit Gaussians, it correctly gives variance one where linear propagation gives zero.
From screening to sparse regression
With many inputs, first-order screening can identify candidates for a reduced model. The original notes report that two exponential parameters dominated a Tersoff bulk-modulus calculation, while cutoff parameters were locally inactive. That observation depends on the nominal configuration, perturbation range and quantity of interest. It does not license fixing the same parameters for every configuration or observable.
An alternative samples joint perturbations. Set with nonzero scales , and . Taylor's theorem becomes
where contains curvature and simulation error. If only a few coefficients are appreciable, estimate them using the Lasso:
The cornered penalty can set coefficients exactly to zero. Ridge's smooth penalty usually shrinks them without selecting a small support. Sparse recovery still requires an informative design, adequate signal, controlled Taylor error and suitable regularisation. Under appropriate assumptions, sample requirements often involve for active variables; is not a universal guarantee. Correlated columns can make individual parameter attribution impossible.
The source reports a demonstration selecting five of one hundred parameters from thirty runs. Its data are absent, so this remains a reported example. The transferable lesson is to test the reduced model on withheld runs, multiple nominal points and the intended uncertainty range. The next chapter develops the regression problem that screening has already produced.
Check your understanding
For , verify the gradient and Hessian at the origin and the quadratic variance above. Then choose and show why perfectly correlated equal input errors cancel, whereas independent errors do not. These are useful analytic checks before trusting a simulator-based sensitivity calculation.