Random Forests (RF) are widely used in bioinformatics for their ability to handle complex interactions and high-dimensional data. However, their internal logic for determining variable importance—the Variable Importance Measure (VIM)—has historically suffered from a hidden bias. In their 2008 study, Strobl et al. identify why standard RF importance measures fail in the presence of correlated predictors and introduce a robust "conditional" permutation scheme to correct it.
The Problem: Correlation Bias in Variable Importance
In fields like genomics, identifying the specific drivers of a biological process is as important as predictive accuracy. Random Forests provide a VIM to rank predictors, but standard implementations are "greedy" for correlation. If Variable A is a true driver and Variable B is highly correlated with A, a standard RF often ranks Variable B as equally or more important. This stems from two primary issues:
- Selection Bias: During tree construction, algorithms often prefer splitting on correlated variables.
- Permutation Flaw: Standard VIMs calculate importance by "shuffling" (permuting) a variable's values to see how accuracy drops. This "unconditional" shuffle breaks the relationship between the variable and the outcome, but it also breaks its relationship with all other predictors. This creates unrealistic data points that do not exist in the original distribution, leading to inflated importance scores for correlated features.
The Solution: Conditional Permutation
The authors propose shifting from unconditional to conditional permutation to preserve the underlying data structure.
- Unconditional Approach: Shuffles values across the entire dataset, testing if a variable $X_j$ is independent of both the response $Y$ and all other predictors $Z$.
- Conditional Approach: Shuffles $X_j$ only within groups of observations that have similar values for other predictors $Z$. This specifically breaks the link between $X_j$ and $Y$ while maintaining the correlation between $X_j$ and $Z$.
To implement this efficiently, the authors utilize the partition structure of the trees themselves to define the conditioning "blocks." This method is available in the cforest function within the R package party.
Experimental Validation and the Role of mtry
The paper validates this approach using synthetic simulations and real-world peptide-binding data. A key finding is the significant influence of the mtry parameter—the number of variables randomly sampled at each split.
As shown in the simulation results (Figure 4), small mtry values can exacerbate the preference for correlated variables during the early stages of tree building ("first split"). In the synthetic tests, the standard VIM gave high scores to non-influential variables simply because they were correlated with true predictors. The conditional VIM, by contrast, successfully identified only the true drivers.
In the peptide-binding dataset (310 sequences, 104 variables), the conditional approach led to a significant re-ranking. For instance, "pol3" (polarity at position 3) rose from 11th to 7th place once the bias from its correlated neighbors was removed.
Conclusion
By unmasking the bias inherent in standard Random Forest importance measures, Strobl et al. provide a more reliable tool for feature selection in complex datasets. The conditional permutation scheme ensures that a variable's importance reflects its actual contribution to the model, rather than its proximity to other influential predictors. While computationally more intensive, this approach offers the stability and "truthfulness" required for high-stakes bioinformatics research.
Summary updated