Why Stress-Test a Boundary?
A model boundary specifies which biological processes and external influences are represented in the model and which are left outside it. A boundary is not adequate in the abstract; it is adequate, or not, for a defined decision, endpoint, population, and time horizon. Earlier material on diagnosing bias from omitted feedback loops highlights one reason an exclusion can matter: the omitted process may change the model’s predicted response. A stress test asks a more decision-focused question: could a plausible change in an included input, or a plausible effect of an excluded process, change the treatment ranking or the decision itself?
The test is a set of conditional model calculations, not a statistical test. It does not establish that a perturbed input value or excluded process occurs in patients. Its value is that it makes the consequence of the boundary visible: if a modest, credible perturbation changes the preferred intervention, then the decision depends on that boundary choice and should be reported as conditional or investigated further.
Set Up a Decision-Focused Test
Let \(Y(d,u)\) denote the model-predicted outcome under intervention \(d\) and input conditions \(u\). The input vector \(u\) may include such quantities as baseline disease state, a forcing input, or a contextual condition that the model already represents. For two interventions, define the paired contrast
The same input condition \(u\) must be used for both counterfactuals. Otherwise, the contrast combines the intervention difference with a change in context, making the treatment comparison difficult to interpret. The sign of \(\Delta\) identifies which intervention is preferred only after the outcome scale is defined. For example, if \(Y\) is benefit, a larger value may be better; if \(Y\) is disease burden, a smaller value may be better.
A useful stress test has four elements:
- Decision: state what choice the model is meant to inform, such as selecting between two interventions or deciding whether a predicted benefit clears a minimum criterion.
- Domain: define the population, context, endpoint, time horizon, and range of input conditions relevant to that choice.
- Perturbations: vary one or more decision-relevant inputs over a range supported by evidence or by the intended use domain. Label scenario values as hypothetical when they are illustrative.
- Interpretation: record whether the ranking or threshold decision changes, and identify which boundary assumption is responsible for the change.
For an excluded process, a counterfactual scenario can represent a bounded effect of that process on the output or treatment contrast. This is a stress-test device, not evidence that the omitted process has been correctly specified. In particular, the effect should not be selected merely because it produces a desired conclusion. Its range needs a scientific rationale, such as relevant evidence, a defensible upper bound, or an explicitly labelled exploratory scenario.
When Can a Ranking Reverse?
Suppose the baseline contrast is \(\Delta(u_0)\), and the input is moved along a specified perturbation direction \(v\), so that \(u(t)=u_0+t v\). If the response is locally approximated by a straight line, the first-order change in the contrast is the directional derivative \(s\). The approximation is then \(\Delta(u(t))\approx\Delta(u_0)+st\). If \(s\) has the opposite sign to the baseline contrast, the approximate crossing occurs at:
This follows by setting the approximated contrast equal to zero and solving \(\Delta(u_0)+st=0\). A crossing matters for boundary adequacy only if it falls within the justified perturbation range. The formula is a local or linear-scenario calculation; when the model response is nonlinear, evaluate the model at multiple points across the range rather than relying on the line approximation.
A threshold decision has the same structure. If a predicted benefit \(B(u)\) must meet a minimum value \(T\), define the margin \(M(u)=B(u)-T\). The decision changes when \(M(u)\) crosses zero. A baseline prediction just above \(T\) has little margin, so even a small plausible perturbation may change the decision. That is a reason to examine the boundary, not a reason to treat the threshold as a biological discontinuity.
Worked Example: Perturbing an Included Disease-Drive Input
Hypothetical scenario. A model compares two treatments at week 24. The outcome is reduction in disease activity, in percentage points, so a larger benefit is preferred. Let \(u\) be an inflammatory-drive index, with \(u=0\) at the reference condition. The model gives \(Y(A,u)=14-0.5u\) and \(Y(B,u)=12-0.1u\). The intended domain includes \(0\leq u\leq6\).
At the reference condition, the predictions are \(Y(A,0)=14-0.5(0)=14\) percentage points and \(Y(B,0)=12-0.1(0)=12\) percentage points. Thus \(\Delta(0)=14-12=2\) percentage points, and treatment A is preferred at the reference condition.
For a general input value, the paired contrast is
Set the contrast to zero to find the ranking-crossing input: \(2-0.4u=0\), so \(u=5\). This lies within the intended range. At the upper endpoint, \(u=6\), the predictions are \(Y(A,6)=14-3=11\) and \(Y(B,6)=12-0.6=11.4\) percentage points. Treatment B is then preferred by \(11.4-11=0.4\) percentage points.
The model therefore does not support an unconditional ranking across the stated domain. The ranking depends on the inflammatory-drive input. This calculation does not show that either treatment causes the stated benefit in a real population; it reports how this model’s counterfactual predictions vary over the chosen domain.
Representing an Excluded Process as a Counterfactual
A process outside the model boundary cannot be directly varied as one of the model’s represented mechanisms. One practical stress test is to define a transparent scenario adjustment to the outcome or contrast and ask how large that adjustment would need to be to change the decision. The adjustment must have clear units and a specified direction. It is a probe of decision dependence, not a replacement for a mechanistic representation.
Worked Example: Could an Excluded Feedback Reverse the Ranking?
Hypothetical scenario. At the chosen endpoint, a model predicts benefits of 13 and 11 percentage points for treatments A and B, respectively. A compensatory feedback process is excluded. Let \(q\) be a dimensionless scenario strength from 0 to 4. For this stress test only, suppose the process would reduce A’s benefit by \(0.7q\) percentage points and B’s by \(0.1q\) percentage points. These assumed adjustments are illustrative, not measured effects.
With the scenario adjustment, the benefits are \(Y_A(q)=13-0.7q\) and \(Y_B(q)=11-0.1q\). The adjusted contrast is
The baseline ranking favours A by 2 percentage points. The ranking reverses when \(2-0.6q=0\), or \(q=2/0.6=3.333\). This crossing is inside the assumed range. At \(q=4\), A’s benefit is \(13-2.8=10.2\) percentage points and B’s is \(11-0.4=10.6\) percentage points, so B leads by 0.4 percentage points.
The appropriate conclusion is conditional: if an excluded process has an effect with the assumed direction and sufficient magnitude, it could reverse the model’s ranking. The example does not establish that the process exists, that \(q=4\) is biologically plausible, or that these adjustment sizes are correct. Those questions require evidence and a justified range.
Thresholds, Diagnostics, and Failure Modes
Worked Example: Testing a Minimum-Benefit Criterion
Hypothetical scenario. A decision rule is to proceed with a treatment if its predicted reduction in 30-day exacerbation risk is at least 9 percentage points. The model predicts \(B(x)=10.5-0.9x\) percentage points, where \(x\) is a represented risk-context input. The intended range is \(0\leq x\leq2\).
At the reference condition, \(B(0)=10.5\) percentage points, which exceeds the 9-point criterion by \(10.5-9=1.5\) percentage points. The threshold crossing is found by solving \(10.5-0.9x=9\), giving \(0.9x=1.5\), so \(x=1.5/0.9=1.667\).
The crossing is within the stated range. At \(x=2\), the predicted reduction is \(10.5-0.9(2)=8.7\) percentage points, below the criterion. Thus, proceeding is supported at lower values of this input under the stated rule, but not throughout the intended range. The result identifies a threshold-sensitive decision; it does not establish the clinical validity of the criterion or of the model prediction.
Several checks help determine whether a stress test is informative rather than misleading:
- Check paired conditions. Compare interventions at the same population, input values, endpoint, and time horizon. A change in any of these can confound the comparison.
- Check directions and units. Confirm that “larger is better” or “smaller is better” is stated correctly, and that a scenario adjustment is expressed on the same scale as the outcome.
- Check the range. A crossing outside the intended domain does not demonstrate a decision reversal within that domain. A crossing inside an unjustified range is not persuasive evidence of a real vulnerability.
- Check the shape of the response. Sparse endpoints can miss curvature or a non-monotone response. Evaluate intermediate values when there is reason to expect nonlinearity.
- Check the boundary claim. A changed prediction shows dependence on the tested scenario. It does not, by itself, identify the true omitted biology or prove that adding more detail would improve the decision.
A common mistake is to perturb an included input, see no ranking change, and conclude that the boundary is adequate. That test only addresses the chosen input perturbation. It says nothing about a different excluded process that could affect the same contrast. The correction is to state separately which represented inputs were varied and which excluded-process counterfactuals were considered. Another mistake is to call a treatment “robustly preferred” because it wins at the baseline input. The correction is to report the range tested and whether the ranking holds across that range.
These tests complement, but do not replace, other analyses. A local sensitivity calculation describes how an output changes near a reference condition; a finite-range stress test checks whether the decision changes over a specified domain. Parameter uncertainty analysis asks how uncertainty in estimated quantities affects predictions, whereas an excluded-process counterfactual probes a structural omission. Comparing a small number of justified scenarios is not a comprehensive assessment of every plausible mechanism or model structure. Finally, a stress test can reveal a fragile decision, but it cannot show that a boundary change is feasible, supported by evidence, or beneficial.
Check Your Understanding
For each problem, use the stated hypothetical model and show whether the decision changes over the specified range. Solutions are included below the questions.
- A model predicts benefits \(Y(A,u)=12-0.4u\) and \(Y(B,u)=10.2-0.1u\) percentage points for \(0\leq u\leq5\). Does the treatment ranking reverse in this range?
- An excluded-process scenario changes the treatment contrast to \(\Delta(q)=1.5-0.5q\) percentage points, with \(0\leq q\leq4\). At what value does the ranking tie, and what is the ranking at \(q=4\)?
- A model predicts benefit \(B(x)=12-1.2x\) percentage points, and the decision threshold is 10 percentage points. For \(0\leq x\leq1.5\), does the prediction fall below the threshold?
- Why does an unchanged treatment ranking under perturbation of one represented input not prove that all excluded processes are irrelevant?
Solutions. 1. The contrast is \(\Delta(u)=(12-0.4u)-(10.2-0.1u)=1.8-0.3u\). It is \(1.8\) at \(u=0\) and \(0.3\) at \(u=5\), remaining positive throughout the interval, so A remains preferred in this tested range. 2. Set \(1.5-0.5q=0\), giving \(q=3\). At \(q=4\), \(\Delta(4)=1.5-2=-0.5\) percentage points, so B is preferred by 0.5 percentage points. 3. The threshold crossing satisfies \(12-1.2x=10\), so \(x=2/1.2=1.667\), outside the tested range. At the maximum, \(B(1.5)=12-1.8=10.2\) percentage points, so the prediction does not fall below the threshold in the stated range. 4. That perturbation tests only one represented input over its specified range. A different excluded process could affect the outcome or treatment contrast in a way not represented by that input test; its relevance must be considered through a separate, justified counterfactual or other evidence.