Abstract
Random Forest has become one of the most popular tools for feature selection. Its ability to deal with high-dimensional data makes this algorithm especially useful for studies in neuroimaging and bioinformatics. Despite its popularity and wide use, feature selection in Random Forest still lacks a crucial ingredient: false positive rate control. To date there is no efficient, principled and computationally light-weight solution to this shortcoming. As a result, researchers using Random Forest for feature selection have to resort to using heuristically set thresholds on feature rankings. This article builds an approximate probabilistic model for the feature selection process in random forest training, which allows us to compute an estimated false positive rate for a given threshold on selection frequency. Hence, it presents a principled way to determine thresholds for the selection of relevant features without any additional computational load. Experimental analysis with synthetic data demonstrates that the proposed approach can limit false positive rates on the order of the desired values and keep false negative rates low. Results show that this holds even in the presence of a complex correlation structure between features. Its good statistical properties and light-weight computational needs make this approach widely applicable to feature selection for a wide-range of applications.
Introduction
Random Forests (RF) are a cornerstone of feature selection, particularly in high-dimensional "wide" datasets common in genomics and neuroimaging. While RF provides importance rankings, it lacks a principled mechanism for determining significance thresholds. Currently, practitioners rely on arbitrary heuristics or computationally intensive permutation testing—the latter often requiring days of processing for a single experiment. This paper introduces a lightweight probabilistic model to bridge this gap, providing a mathematically grounded method to control the False Positive Rate (FPR) without the overhead of simulations.
Methodology: Modeling Selection Frequency
The proposed approach centers on Selection Frequency (SF), which counts how many times a specific feature is chosen as the optimal split across all nodes in the forest.
The core innovation is the derivation of a null model. Under the null hypothesis—where no feature is truly related to the target label—each feature is assumed to have an equal probability ($1/F$) of being selected at any given node. The authors model this process for two common RF training strategies:
- Strategy I (Standard RF): A random subset of features is sampled at every node. In this case, the selection frequency follows a Binomial Distribution.
- Strategy II (Tree-level Subsampling): A subset is chosen once per tree. This requires a more complex model involving integer partitions and multinomial distributions.
By applying these distributions, researchers can analytically calculate the probability that a "noise" feature would be selected $k$ or more times by chance. This allows for the selection of a threshold $k$ that maintains a target FPR ($\alpha$).
Experimental Evaluation
The model was validated using both independent synthetic data and real-world covariance structures from the OASIS dataset (315 subjects). The latter provided a rigorous test, as biological data often contains complex correlations that can challenge simple statistical assumptions.
Key Findings
- Computational Efficiency: The analytical model provides thresholds almost instantaneously. In comparative tests, permutation testing took 22 hours, while the proposed method took a fraction of a second.
- FPR Control and Power: In high-dimensional settings ($S \ll F$), the model successfully limited the FPR to levels near the target $\alpha$ (e.g., 0.01). Furthermore, it often achieved lower False Negative Rates than permutation testing, demonstrating superior sensitivity.
- Robustness: Despite the "equal probability" assumption, the model remained effective even in the presence of highly correlated features, such as neighboring pixels in brain scans.
Conclusion and Future Work
This work provides a much-needed statistical compass for Random Forest feature selection. While the model shows a slight "spurious gap" in extremely high-dimensional, small-sample scenarios, it remains a highly efficient and conservative tool for scientific discovery. Future research will focus on explicitly incorporating the effects of sample bagging and bootstrapping to further refine the approximation's accuracy in diverse training regimes.
Summary updated