Question 21
In decision tree algorithms, how is Shannon's Entropy H(S) mathematically defined for a dataset with classes having proportions p_i?
Detailed Solution
Shannon entropy quantifies impurity or information disorder: H(S) = - sum(p_i * log2(p_i)). When a node is completely pure, entropy is 0.