Summarizing the Relationship between Two Features
Learn how to investigate whether there is an association between two variables.
StartKey Concepts
Review core concepts you need to learn to master this subject
Associated Variables
Mean and Median Differences
Side-by-Side Box Plots
Overlaid Histograms
Covariance
Correlation
Non-linear Associations
Scatter Plots
Associated Variables
Associated Variables
When variables are associated, information about the value of one variable provides information about the value of the other variable. For example, average temperature might be associated with ice cream sales because people tend to buy more ice cream in summer months, when the temperature is hotter. This doesn’t necessarily mean that the higher temperature causes more people to buy ice cream, but it does mean that we can predict ice cream sales more accurately if we know what the temperature is outside.
- 1Examining the relationship between variables can give us key insight into our data. In this lesson, we will cover ways of assessing the association between a quantitative variable and a categorical…
- 2Recall that in the last exercise, we began investigating whether or not there is an association between math scores and the school a student attends. We can begin quantifying this association by us…
- 3The difference in mean math scores for students at GP and MS was 0.64. How do we know whether this difference is considered small or large? To answer this question, we need to know something about …
- 4Another way to explore the relationship between a quantitative and categorical variable in more detail is by inspecting overlapping histograms. In the code below, setting alpha = .5 ensures that th…
- 5In each of the previous exercises, we assessed whether there was an association between a quantitative variable (math scores) and a BINARY categorical variable (school). The categorical variable is…
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory