Model with conditional interaction
In this example, we show regional effects of a model with conditional interactions using PDP, ALE, and RHALE.
In particular, we:
- show how to use
effector
to estimate the regional effects using PDP, ALE, and RHALE
- provide the analytical formulas for the regional effects
- test that (1) and (2) match
We will use the following model:
where the features are independent and uniformly distributed in the interval .
The model has an interaction between and caused by the terms:
.
This means that the effect of on the output depends on the value of and vice versa.
Therefore, there is no golden standard on how to split the effect of to two parts, one that corresponds to and one to .
Each global effect method has a different strategy to handle this issue.
Below we will see how PDP, ALE, and RHALE handle this interaction.
In contrast, does not interact with any other feature, so its effect can be easily computed as .