Hooker Mentch Zhou 2021 - Linear Simulation Design and Theorem 1

Summary

The benchmark is a 10-feature linear truth with coefficients , marginals, and joined by a Gaussian copula with correlation . Theorem 1 shows that for a least-squares linear fit, expected permutation importance is and PD/ICE are lines of slope , so a linear model’s PaP ranking ignores correlation. In simulation, linear models recover the true ranking at . Random forests and neural networks instead push above - (equal coefficients) and often above (coefficient 1.2). The inflation is worst at small and for OOB importance.

Overview

§2 builds a setting where the “right answer” is known. §3 shows that PaP diagnostics from flexible learners miss it. The authors’ claim (p. 6) is that PaP tools mislead only when both a flexible learner and correlated features are present. Neither alone causes large bias, but the combination “is in fact very common in practice.” Theorem 1 covers the “linear learner” half of that claim.

Main Content

Data-generating process (§2, eq. (2), p. 5)

Definition: Simulation model (eq. (2))

  • Each marginally.
  • All features are independent except , which are coupled by a Gaussian copula with correlation parameter .
  • The noise is deliberately small so the effects are clear.

Design logic (p. 6):

  • share the coefficient of and act as a reference group.
  • has no influence.
  • bracket with coefficients 0.5, 0.8, 1.2, 1.5, which gives a clear ordering.
  • With equal scales, importance should follow ; see Gregorutti et al. (2015) and Theorem 1.

Theorem 1

Theorem 1: PaP diagnostics for a least-squares linear model (§2, p. 6)

Let be fit by least squares. Then

  1. , where is the expectation over permutations and is the mean of feature ;
  2. , with ;
  3. , with .

Here uses squared-error loss. Part 1 appears in Gregorutti et al. (2015) and Fisher et al. (2019); parts 2-3 follow directly. The analogous population statement holds when the diagnostics are applied to data generated from a linear model.

Hats in the printed Theorem 1 constants (p. 6, checked against the rendered PDF)

The theorem concerns the fitted model, and parts 1-3 print the slope as . The constants, however, are printed without hats: and . For PD and ICE of to be exact, they must be and . The source also leaves the intercept out of both constants. The transcription above keeps the printed form. Two further notes:

  • The rendered PDF typesets the ICE constant correctly as . Only the PDF’s text layer garbles it (primes are pushed to a separate line, so it extracts as ""). Use the rendered page, not copied text, as the reference.
  • None of this affects the conclusions. PD and ICE are lines with slope whatever the intercept constant is, and part 1 is stated correctly with .

Proof sketch (Appendix A, p. 21)

Note . Expand

The cross term has zero permutation expectation: least-squares residuals are orthogonal to , so , and . The first term equals . Add and subtract : its permutation expectation is , because the original and the permuted value each contribute one variance. PD and ICE follow by direct calculation.

Reading. A linear model’s permutation importance is the squared coefficient times the marginal sum of squares. With standardized covariates this is the coefficient magnitude, close to how linear models are usually read. Nothing in it depends on the correlation between and the other features. The bias seen with RF/NN is therefore not a property of the permutation estimand for linear truth. It comes from the learner.

Simulation protocol (§2, p. 6)

Simulation protocol (§2-§3)

  1. For each , draw training data from eq. (2).
  2. Fit (a) a random forest (randomForest in R), (b) a single-hidden-layer neural network with 20 hidden nodes (nnet), (c) a least-squares linear model.
  3. Compute on the training data for every model, and the original OOB importance for the forest (from importance). OOB importance uses out-of-bag residuals per tree, so it is specific to bagging.
  4. Record for , and ICE curves for 11 reference points with , , and drawn uniformly once and held fixed across simulations, so the references lie in the bulk of the data.
  5. Convert importances to ranks (lowest = 1, highest = 10) so that scale does not matter, as in screening.
  6. Repeat 50 times and average.

Results (§3, pp. 7-8)

Theoretical ranks under eq. (2), lowest to highest: , , , - tied at ranks 4-8 (average 6), , .

Figure 1 (p. 7). Average importance rank per feature, . Series: random forest (r), neural network (n), linear model (l), RF OOB (o); dashed lines show the theoretical rank. The caption says “over 10 models” while the text says 50 simulations, a discrepancy in the source.

SettingLinear modelRF / NN / OOB permutation
Theoretical ordering, including the - tieAgree with the linear model and with Theorem 1
Unchanged, matches the coefficients ranked above and frequently above (coef 1.2)

Average ranks read from the Fig. 1 plot (p. 7, rendered at 300 dpi and enlarged; approximate to about ±0.1 rank). Theoretical ranks: - about 6 (tied ranks 4-8), , , , , . “1, 2, 3” means the marker sits on the integer to within plotting resolution. The RF (r) markers at are mostly hidden under the OOB (o) markers, so the two rows are nearly identical there.

PanelSeries
RF (r)5.56.455.855.96.25123910
NN (n)6.356.15.45.355.43.74.33.956.87.5
Linear (l)5.855.656.056.16.3123910
RF OOB (o)5.56.455.75.956.25123910
RF (r)7.98.454.954.955.11237.710
NN (n)7.457.455.35.05.32.853.63.66.957.15
Linear (l)6.155.856.055.955.91239.0510
RF OOB (o)8.89.14.854.955.151237.059.05

Reading the full table:

  • At , RF and OOB push to ranks 8-9 and push - down to about 5. OOB places (coefficient 1) level with or slightly above (coefficient 1.5) on average (about 9.1 vs 9.05). The ranks of the uncorrelated low-signal features - do not move for RF, OOB or the linear model (1, 2, 3 in both panels). The distortion is confined to the correlated pair and the features whose rank slots they take (-, , ).
  • The NN is mis-ranked at both correlations. At it already ranks the null feature at about 3.7 and (4.3) above (3.95). At the pair rises to about 7.45, above (about 6.95) and (about 7.15).
  • The linear model is unchanged between panels (all within ±0.2 of theory), as Theorem 1 predicts.

The plot also shows that the 20-node NN compresses rankings toward the middle even at . The paper does not comment on this.

Why Figure 2 exists (p. 7). The authors anticipate the objection that the Fig. 1 result “may be viewed as being due to the very high correlation parameter employed, and the specific sample size”, and so vary both. They attribute the Fig. 1 pattern to permuting only one of the correlated features, which breaks its relationship with the other and evaluates the function “in regions which, by construction, have no data nearby” (see Fig. 4).

Figure 2 (p. 8). Joint effect of and . Eq. (2) is modified so that and each have coefficient 0.8, making them less important than -; their theoretical rank is 4.

Design elementValues
0, 0.1, 0.25, 0.35, 0.5, 0.75, 0.9
100, 200, 500, 1000, 2000, 5000
Replicates20 per cell
Panels(1) avg rank of vs at ; (2) RF; (3) NN; (4) RF-OOB, each vs by

Findings:

  • For small , any nonzero correlation makes look more important than -, especially under OOB importance.
  • For small the effect disappears at larger .
  • For large the rank falls with but never below 5, still above the theoretical value of 4.

Fig. 2 caption fidelity (p. 8)

The caption reads “Left: change in the average rank of and as correlation increases with . Remaining plots (left to right): average importance for each as a function of for fandom forests, neural networks, and random forests using OOB importance measures, respectively.” “fandom forests” is a typo for “random forests”. The caption’s panel order was checked against the panel titles printed in the figure: left to right they are “Average Importance Rank of X1 and X2 by ”, then “RF:”, “NN:” and “RFo:” “Average Importance Rank of X1 and X2 by and n”. This matches the caption and the Panel 1-4 numbering used below. The caption mixes (panel 1) and (remaining panels) for the same sample size.

Figure 2, transcribed. All values below were read from the rendered plot points (p. 8, 400 dpi), so they are approximate to about ±0.1 rank. The theoretical rank is 4 in every panel. Panel titles: “Average Importance Rank of and by ” and “RF / NN / RFo: Average Importance Rank of and by and n”; y-axis “Importance Rank”; x-axis of panels 2-4 on a log scale.

Panel 1: average rank vs at .

00.10.250.350.50.750.9
Random forest (r)4.054.354.64.955.756.56.9
Neural network (n)4.35.055.054.954.756.66.4
Linear model (l)4.04.04.04.04.04.13.95
RF OOB (o)4.054.254.95.656.67.658.0

Panel 2: random forest ( on training data), rank by and .

\ 100200500100020005000
04.64.553.953.94.053.95
0.15.05.054.354.154.44.4
0.255.35.55.04.654.64.55
0.355.856.055.55.054.954.6
0.56.26.46.25.855.754.9
0.756.857.37.06.86.55.75
0.97.47.457.27.156.956.1

Panel 3: neural network. The curves for cross repeatedly and overlap, so individual values are rougher (about ±0.2).

\ 100200500100020005000
0~4.45~4.3~4.5~4.64.35~4.3
0.1~4.45~4.45~4.554.05~5.0~4.5
0.25~4.45~4.35.2~4.55~5.05~4.5
0.35~4.3~4.354.75~4.6~4.9~4.2
0.5~4.45~4.354.0~5.254.75~4.5
0.754.955.25.2~5.26.6~4.5
0.95.45.77.46.756.3~4.75

Panel 4: random forest OOB importance (“RFo”).

\ 100200500100020005000
04.454.554.03.94.14.0
0.14.855.14.454.254.34.4
0.255.75.855.355.04.954.7
0.356.056.35.855.65.655.25
0.56.856.86.76.656.656.6
0.757.357.757.87.657.657.6
0.97.98.48.158.18.08.0

Reading the panels against the text.

  • “For small , nonzero correlation makes and appear more important than , particularly for OOB.” Confirmed: at every gives rank ≥5 for RF and RF-OOB, versus 4 in theory. Even gives about 4.5-4.6 at .
  • “For small this effect is removed at larger .” Confirmed for RF and RF-OOB at (back to about 4-4.4 from ). At -0.35 the RF rank only falls to about 4.6 by .
  • “For large , the importance rank decreases with , though never below 5.” True for RF at (lowest 5.75) and for RF-OOB at , where OOB barely decreases at all (0.9: 8.4 → 8.0). It does not hold in the NN panel: at all NN curves, including (about 4.75), are between about 4.2 and 4.75. The NN panel is also non-monotone in , peaking at for (about 7.4). The paper does not comment on either point.
  • RF-OOB is the worst-behaved measure: at it ranks the coefficient-0.8 features about 8th of 10 at every , i.e. above (0.8) and (1.2) in expectation.
  • Previously recorded values in this note (RF at : “about 6.9 at ”; linear model “near 4.5”) were misreadings and are corrected by the tables above: the RF value at is about 6.1 and the linear model sits at 4.0.

Figure 3 (p. 8). Average PD for over 50 simulations, (solid) vs (dashed), plus the SD of the estimated PD. ICE examples for RF (middle-right) and NN (far right): dotted lines for , dashed for , letters pair curves. Solid segments mark the range of conditional on the other features, black lines are PD, blue is the truth.

  • RF: under correlation, edge-effect attenuation of PD appears smaller. But those PDs will be compared with PDs of other features that are still attenuated, so the comparison is unequal.
  • NN: PD variability grows with correlation. High-correlation ICE curves diverge considerably from the true line even though each is an average of 50 replicates, so a single ICE curve is very noisy. This is clearer in the lower-dimensional Fig. 6 (see Hooker Mentch Zhou 2021 - Extrapolation Mechanism in Forests and Neural Nets).

Figure 3, approximate readings (p. 8, read from the rendered plot; truth is , a line from 4.0 to 5.0). Panel titles: “Partial Dependence Examples at and ” and “Partial Dependence Standard Deviation at and ” (log-scale y-axis, 0.01 to about 2.5).

Panel / seriesSolid lineDashed line
PD, random forest: value at → 4.12 → 4.87 (range 0.75)4.21 → 4.78 (range 0.57)
PD, neural networkbelow 4.0 (off the plot) for ; 4.92 at 4.14 at 0, dips to 4.08 at 0.05; 4.84 at 1
PD, linear model4.0 → 5.0, on the truth(overlaps)
PD SD, neural networkabout 2.5 at ; minimum about 0.04 at ; about 0.6 at about 0.45 at 0, about 0.15 by 0.1; minimum about 0.035 near 0.45-0.5; about 0.3 at 1
PD SD, random forestabout 0.03-0.035, with a bump to about 0.055 at about 0.03-0.04, dipping to about 0.025 near 0.5
PD SD, linear modelflat at about 0.022(overlaps)

ICE panels (11 reference points with ; letters A-E pair the two correlation settings; solid segments mark the conditionally supported range):

  • RF ICE: curves are shallower than the truth (slope roughly 0.5-0.75 against 1) and flatten at both ends, i.e. edge attenuation. Paired curves differ by up to about 0.2 (e.g. pair A: about 3.15 vs 2.93 at ) and converge in the middle. The two RF PD lines in this panel run 4.13 → 4.87 and 4.22 → 4.77.
  • NN ICE: the B, C, D, E pairs are near-parallel straight lines of roughly the right slope inside their solid segments. Outside them some unsupported dotted/dashed curves swing wildly: one starts near 3.3 at , jumps to about 4.2 by 0.15 and falls back, and another leaves the plot below 3.0 after . The two NN PD lines run about 3.95 → 4.6 (bending down after 0.9) and 4.15 → 4.83, both flatter than the truth.

Line-type ambiguity in Fig. 3

The caption assigns solid = and dashed = in the PD panels, and dotted = , dashed = in the ICE panels. The legend inside the NN ICE panel instead reads “ICE 0” (dashed), “ICE 0.9” (dotted), “PD 0” (long dash), “PD 0.9” (dotted). Read literally with the caption, the PD panels show the opposite of the text: the RF PD would be the more attenuated one (range 0.57 vs 0.75), and the NN PD SD would be larger at (about 2.5 vs 0.45 at ). The text’s claims (less RF edge attenuation and greater NN variability under correlation) match the plot only if the solid and dashed lines are swapped. We record the readings as they appear and flag the inconsistency instead of resolving it.

Examples

Example: applying Theorem 1 to an equal-coefficient pair

In eq. (2), and every has variance . By Theorem 1, , whatever is. A linear fit therefore gives and the same expected importance. Any gap a random forest shows between them at comes from the learner and the off-data evaluation points, not from the truth.

Connections

See Also