Sensitivity analysis measures how much each input of a model contributes to the variation in its output. It tells you which process settings, material properties or assumptions deserve attention, and which can be left alone. In a fab this is the step that turns a long list of "possible causes" into a ranked list of knobs worth controlling.
The choice of method depends on the question:
Local sensitivity. The simplest check changes one input at a time from a baseline and records the output change. The derivative $\partial y/\partial x_i$ at that baseline gives the same information for small changes. It is cheap and easy to explain, but it only describes the model at one point and cannot see interactions: if the effect of $x_i$ depends on another input, a sweep from a single baseline can miss it completely.
Global, variance-based sensitivity. The Sobol indices treat inputs as random and ask what fraction of the output variance each one explains. For independent inputs $X_1,\dots,X_d$ and output $Y$, the first-order and total indices are:
Here $X_{\sim i}$ means every input except $X_i$. $S_i$ is the variance share explained by $X_i$ on its own, and $T_i$ includes every interaction in which $X_i$ takes part. Always $T_i\ge S_i$; a large gap signals interaction. If the model is purely additive, $\sum S_i=1$.
Worked example. Take the model $y=3x_1+x_2+2x_1x_3$ with each input uniform on $[-1,1]$, so each has variance $1/3$. Because the three terms are uncorrelated, the variances add: $\operatorname{Var}(3x_1)=9/3=3$, $\operatorname{Var}(x_2)=1/3$, and $\operatorname{Var}(2x_1x_3)=4\cdot\tfrac13\cdot\tfrac13=4/9$, for a total of $V=3.778$.
- One-at-a-time at the centre: moving each input from $-1$ to $+1$ with the others at $0$ swings $y$ by $6,\,2$ and $0$. So $x_1$ looks like $75\%$ of the story, $x_2$ like $25\%$, and $x_3$ appears to do nothing.
- First-order indices: $S_1=3/V=0.794$, $S_2=0.088$, $S_3=0$. They sum to $0.882$, and the missing $0.118$ is the interaction.
- Total indices: $T_1=(3+4/9)/V=0.912$, $T_2=0.088$, $T_3=0.118$. Input $x_3$ is not irrelevant: it matters through its product with $x_1$, and its total share of $11.8\%$ is even larger than that of $x_2$ ($8.8\%$).
A Monte Carlo estimate with $131{,}072$ base samples (fixed seed) reproduces all six indices to within $0.02$ of the analytic values.
How the indices are estimated. With two independent sample matrices $A$ and $B$, and $AB_i$ equal to $A$ with column $i$ taken from $B$, the standard estimators are:
This costs $N(d+2)$ model runs; for $d=3$ and $N=2^{17}$ that is $655{,}360$ evaluations, which is trivial for a formula and expensive for a fab simulation. For expensive models, screen first with the Morris method, which needs only a few dozen runs per input, or fit a fast surrogate model and compute the indices on that.
Reading and using the results.
- Rank, then act: tighten control of inputs with a large $T_i$; inputs with small $T_i$ can be fixed at nominal values, which simplifies the model.
- Gap = interaction: a big difference between $T_i$ and $S_i$ means one-factor tuning will not work; optimise those inputs together.
- Distributions matter: the indices depend on how widely each input varies. A sensitive input that is already tightly controlled can rank low. Use realistic input ranges.
- Independence: the formulas above assume independent inputs. Correlated inputs need different methods, and shares of variance can no longer be assigned cleanly.
- Variance is not everything: if you care about the failure tail rather than the spread, use a measure of the tail, such as the effect on the probability of exceeding a spec.
- Model error: sensitivity analysis describes the model. A wrong model gives a confident but wrong ranking, so validate it against data first.
Read sensitivity analysis as asking which dials actually move the answer, once everything varies at once: a one-at-a-time test can miss an input that matters only in combination, and a variance share cannot.