Correcting Variable Importance Scored by Random Forests
This paper proposes a method to correct Random Forest variable importance scores by grouping variables based on their conditional correlations to prevent correlated variables from being masked or undervalued.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Problem: The "Shadow" Effect
Imagine you are a talent scout trying to find the best singer in a room full of people. You have a microphone (the Random Forest algorithm) that measures how much each person contributes to the group's overall sound.
Usually, the microphone works great. But imagine two singers, Alice and Bob. They are twins who sing the exact same song in perfect harmony. They are so similar that when you ask, "How much did Alice contribute?" the microphone gets confused. It thinks, "Well, Bob is right there singing the same thing, so I can't tell if the sound is coming from Alice or Bob."
Because of this confusion, the microphone gives Alice a very low score, even though she is a fantastic singer. It's as if Bob is casting a "shadow" over Alice, hiding her true talent. In the world of data, this happens when variables (like "Age" and "Years of Experience") are highly correlated. The standard method often underestimates the importance of one because the other is doing the same job.
The Solution: The "Silence" Test
The authors of this paper propose a new way to measure importance. Instead of just asking, "What happens if we mess up Alice's voice?" (which is what the old method does), they suggest a different approach: Remove the shadows.
They propose two main ways to do this:
Method 1: The "One-by-One" Detective
Imagine you want to know how important Alice is.
- First, you identify everyone in the room who is singing the exact same song as Alice (her "conditionally correlated" friends).
- You ask all those friends to leave the room and go silent.
- Now, with only Alice left (and no one mimicking her), you ask her to sing.
- You measure how much the group's sound improves just because Alice is there.
Because her "twin" Bob is gone, Alice's true value shines through. The paper calls this Method 1. It checks every single variable, finds its "twins," removes them, and sees how much the model (the prediction) drops without them.
Method 2: The "Group Hug" (Clustering)
This method is a bit more organized. Instead of looking at one person at a time, you look at the whole room and divide everyone into small, tight-knit groups based on who sounds like whom.
- Group A: Alice, Bob, and Charlie (all sing the same song).
- Group B: Dave and Eve (they sing a different song).
- Group C: Frank (he sings alone).
To test Alice's importance, you don't just remove Bob; you remove the entire Group A. Then you see how much the sound drops. If the sound drops a lot, it means that whole group was crucial. Since no one outside Group A sounds like them, Alice's contribution is no longer hidden by her friends.
The paper calls this Method 2, and it uses a mathematical technique called "Spectral Clustering" to figure out who belongs in which group.
Why Not Just "Mess Up" the Voice?
You might ask, "Why not just scramble Alice's voice (permute it) instead of removing her?"
The authors explain that scrambling a voice works fine if you only do it to one person. But if you have to scramble three or four people at once (because they are all twins), the math gets messy. It's like trying to untangle a knot by pulling on multiple strings at once; the result is unpredictable.
Instead, the paper suggests simply removing the correlated variables entirely. It's cleaner, more stable, and gives a clearer picture of who actually matters.
What Did They Find?
The authors tested this idea on real-world data sets (like predicting heart disease, wine quality, and obesity levels).
- The Result: In many cases, the standard method (Random Forest) was giving "zero" or very low scores to variables that doctors and experts knew were actually very important.
- The Fix: By using their new methods, those "hidden" variables suddenly got high scores.
- Example: In a liver disease dataset, a specific enzyme marker was being ignored by the old method because it was correlated with another marker. The new method realized, "Hey, this enzyme is actually super important!" and gave it a high score.
- Example: In a heart disease dataset, "Age" and "Gender" were being underestimated. The new method corrected this, showing they are indeed critical factors.
The Bottom Line
The paper argues that when variables are "best friends" (highly correlated), the standard way of measuring importance often makes one of them look unimportant.
By removing the "best friends" before measuring, the authors show that we can see the true value of each variable. They offer two tools to do this:
- Method 1: A flexible, detailed check for every single variable.
- Method 2: A faster, grouped approach that clusters similar variables together.
Both methods help us stop the "shadows" from hiding the true stars of the data.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.