For example: Root = [40, 80] Left Node = [28, 42] and Right Node = [30, 20] Using classification rate, i got
40/120 - ((28+42)/120 * 28/(28+42) + (30+20)/120 * 20/(30