a. Chi-Square Test
##
## Pearson's Chi-squared test
##
## data: table(hr$Department, hr$left)
## X-squared = 86.825, df = 9, p-value = 7.042e-15
b. Interpretations:
p-value interpretation: The p-value is 7.042e-15, which is extremely
small (<0.01), so there is a very low probability that this
relationship is due to chance
chi-square test interpretation: There is a strong association
between the employee’s department and whether they left the company
non-technical interpretation: Employees in some departments are
significantly more likely to leave the company than others. HR employees
are most likely to leave, while RandD are least likely.