What is impurity decrease and how is it aggregated in Random Forest?

Updated May 17, 2026

Short answer

It measures how much a feature reduces node impurity across all trees.

Deep explanation

Each split reduces impurity (Gini or entropy). These reductions are summed over all trees for each feature to compute importance scores. This aggregation can be biased toward continuous or high-cardinality features.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Random Forest interview questions

View all →