CHAID Decision Tree
CHAID Decision Tree
• Total column is the sum of yes and no decisions for each row. Expected values are the half of total
column because there are 2 classes in the decision. It is easy to calculate the chi-squared values based
on this table.
• For example, chi-square yes for sunny outlook is √((2 – 2.5)2 / 2.5) = 0.316 whereas actual is 2 and
expected is 2.5.
• Chi-square value of outlook is the sum of chi-square yes and no columns.
0.316 + 0.316 + 1.414 + 1.414 + 0.316 + 0.316 = 4.092
Temperature feature
• This feature has 3 classes: hot, mild and cool. The following table summarizes the chi-
square values for these classes.