It is difficult to capture the full picture visually.
Among age, CGPA, and work study hours, where does most of our data actually lie?
Let us compare the average ages, CGPA, and work study hours between students that are vs not depressed.
## # A tibble: 2 × 7
## Depression mean_age median_age mean_CGPA median_CGPA mean_hrs median_hrs
## <int> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 0 27.1 28 7.62 7.64 6.24 6
## 2 1 24.9 24 7.68 7.85 7.81 9
Immediately the CGPA stands out the most, as there is only a small difference between depressed and non-depressed students. Older students were generally less depressed, with a mean age of 27.14 versus 24.88 for depressed. The mean hours spent studying/working is also higher among depressed students by more than an hour, and the median difference is a surprising 3 hours, suggesting that less free time might have an impact on depressive symptoms.