From the course: Machine Learning and AI Foundations: Decision Trees with SPSS
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
How CHAID handles continuous variables
From the course: Machine Learning and AI Foundations: Decision Trees with SPSS
How CHAID handles continuous variables
- [Instructor] Our continuous variable will be age. CHAID actually starts by converting age into deciles. It has to do this because chi square can't be run on continuous variables, yet in this case we get only two notes. So what's going on? It seems like age, 13, is an important cut off, It seems like age, 13, is an important cut off, which certainly is consistent with this notion of women and children first. So how does CHAID do it? When we force it into more segments, we get a better sense of what the deciles must have looked like. In fact if we take a closer look at the sample size we can see that node 14 has 41 records we can see that node 14 has 41 records out of a total in this particular tree of 500. So about the size we would expect a decile to be. By the way deciles aren't going to be exactly 50 because we're talking about integers here and for that reason you're not going to get that exact number. If we move on to node 15, we see that that has 48. Also about what we expect…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
What is an algorithm?2m 14s
-
(Locked)
Chi-squared overview2m 45s
-
(Locked)
Buliding a tree interactively2m 51s
-
(Locked)
Bonferonni adjustment4m 46s
-
(Locked)
What is level of measurement?2m 44s
-
How CHAID handles nominal variables1m 24s
-
(Locked)
How CHAID handles ordinal variables1m 17s
-
(Locked)
How CHAID handles continuous variables2m 9s
-
(Locked)
A quick look at the complete CHAID tree5m 35s
-
(Locked)
-
-
-