Studying the Relationship between a Categorical and a Numeric Variable
Let's first recall the methods discussed to study the relationship between the numeric and categorical variable and discuss the approach to execute it.
In this section, we will discuss the different aggregation metrics that we can use for summarizing the data. So far, we have used avg, but a better approach would be to use a combination of avg, min, max, and other metrics.
Exercise 31: Studying the Relationship between the y and age Variables
We have a categorical dependent variable and nine numeric variables to explore. To start small, we will first explore the relationship between our target, y, and age. To study the relationship between a categorical and numeric variable, we can choose a simple analytical technique where we calculate the average age across each target outcome; if we see stark differences, we can make insights from the observations.
In this exercise, we will calculate the average age across each target...