Sobol Indices
Description
Sobol indices show how much of the variation in a model's output can be traced to each of its inputs. The analyst sets a range or probability distribution for every input and runs the model on a large, carefully designed sample of input combinations. The variance (spread) of the outputs is then split into shares. A first-order index is the share caused by one input varying on its own, and a total-order index also counts every interaction that input takes part in. A large gap between the two signals that an input matters mainly through interactions, and optional second-order indices show which pairs of inputs interact.
Example Use Cases
Explainability
Analysing a climate prediction model to determine which atmospheric parameters (temperature, humidity, pressure) contribute most to rainfall forecast uncertainty, helping meteorologists understand which measurements need the highest precision.
A risk team validating a portfolio valuation model asks which economic indicators (interest rates, inflation, GDP growth) drive most of the variation in predicted portfolio value. A large gap between an indicator's total-order and first-order indices shows it acts mainly through interactions, which tells the team which scenarios to stress-test together.
Limitations
- The standard sampling scheme needs N(2D+2) model runs for D inputs (N(D+2) without second-order indices), with N often in the thousands. A slow model, or one with dozens of inputs, quickly becomes impractical. Grouping related inputs, or screening first with a cheaper method such as Morris, reduces the cost.
- Assumes the inputs vary independently. If real inputs are correlated, for example income and postcode, the sample contains combinations the model never meets in practice, and the indices can mislead about which inputs matter.
- Needs a probability distribution or range for every input, and the indices depend on that choice, because widening one input's range raises its share of the variance. If the ranges do not reflect the real deployment population, the ranking describes a model the users will never face.
- Variance is the only yardstick. When the output is heavily skewed or has several peaks, variance shares can be unreliable guides to which inputs matter, and a moment-independent method such as PAWN may suit better.
- Estimates carry sampling error. With too few runs the confidence intervals can be as wide as the indices themselves, so small indices cannot be told apart from zero. Report the intervals SALib returns and check that the ranking holds when N is increased.