8.44 Decision Trees (Regression) Explained (StatQuest)

8.44.1 EDA

Let’s plot a histogram for Sales (target)

Carseats %>% 
     ggplot(aes(Sales)) + 
     geom_histogram(fill = "steelblue")
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.