Friedman's H-statistic

If there is no interaction we can decompose the PDP into

PDjk(xj,xk)=PDj(xj)+PDk(xk)P D_{j k}\left(x_j, x_k\right)=P D_j\left(x_j\right)+P D_k\left(x_k\right)

and the prediction function into

f^(x)=PDj(xj)+PDj(xj).\hat{f}(x)=P D_j\left(x_j\right)+P D_{-j}\left(x_{-j}\right).

Here j-j means all features that are not jj.

The two statistics are

Hjk2=i=1n[PDjk(xj(i),xk(i))PDj(xj(i))PDk(xk(i))]2i=1nPDjk2(xj(i),xk(i))H_{j k}^2=\frac{\sum_{i=1}^n\left[P D_{j k}\left(x_j^{(i)}, x_k^{(i)}\right)-P D_j\left(x_j^{(i)}\right)-P D_k\left(x_k^{(i)}\right)\right]^2}{\sum_{i=1}^n P D_{j k}^2\left(x_j^{(i)}, x_k^{(i)}\right)}

(interaction of feature jj with kk) and

Hj2=i=1n[f^(x(i))PDj(xj(i))PDj(xj(i))]2i=1nf^2(x(i))H_j^2=\frac{\sum_{i=1}^n\left[\hat{f}\left(x^{(i)}\right)-P D_j\left(x_j^{(i)}\right)-P D_{-j}\left(x_{-j}^{(i)}\right)\right]^2}{\sum_{i=1}^n \hat{f}^2\left(x^{(i)}\right)}

(interaction of feature jj with all other features).

The statistic is expensive to evaluate, it takes 2n22n^2 and 3n23n^2 calls to the model.

Examples

Bildschirmfoto 2023-07-11 um 11.28.41.png Bildschirmfoto 2023-07-11 um 11.28.50.png

Pros
  • underlying theory
  • meaningful interpretation
  • dimensionless (comparable across features and models)
  • detects all interactions
  • arbitrarily high interactions
Cons
  • computationally expensive
  • estimates have variance
  • no test for strong enough interaction
  • same as PDPCorrelation can lead to high values