1. Learn
  2. /
  3. Courses
  4. /
  5. Data Analysis and Statistical Inference

Exercise

Relationships between two variables

When the response variable is numerical and the explanatory variable is categorical, we can evaluate the relationship between the two variables by comparing means (or medians, or other measures) of the numerical response variable across the levels of the explanatory categorical variable.

Instructions

100 XP
  • Think about the types of variables habit and weight (numerical/categorical).
  • Based on your findings, make an appropriate plot that visualizes the relationship between these variables.