Skip to game

Gini Impurity Game

Calculate node impurity, compare candidate splits, choose cleaner partitions, build decision-tree intuition, earn achievements, and review progress through interactive visual challenges across all levels.

0
Score
0
Streak
3
Lives
Timer
0%
Accuracy
0
Best
0%

Game setup

The bank contains 132 questions. Progress and achievements are stored locally in your browser.

Category Difficulty
Question 1

Formula:

Partition visualization

Colours and shape labels represent classes. The center line separates child nodes.

Candidate splits

Decision-tree path

    Performance report

    Question review

    How Gini impurity works

    Node impurity

    Convert class counts into proportions. Square and sum those proportions. Subtract the result from one.

    Weighted split score

    Calculate impurity for each child. Weight each value by child size. Add the weighted values together.

    Cleanest partition

    Compare valid candidate scores. Select the smallest weighted Gini. Larger reductions indicate stronger immediate improvement.

    Related Calculators

    Grow a Decision TreeInformation Gain ChallengeTree Pruning PuzzleDecision Path ExplorerRandom Forest BuilderFeature Importance ChallengeTree Depth Balancer

    Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.