Statistical significance - vacation days
Your other observation was that employees in the sales department take fewer vacation days on average than the rest of the company. You can test whether that observation is statistically significant as well.
This exercise is part of the course
HR Analytics: Exploring Employee Data in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Test the hypothesis using the survey_sales data
___