##
## Pearson's Chi-squared test
##
## data: table1
## X-squared = 381.23, df = 2, p-value < 2.2e-16
The p-value is less than 0.01. Indicating a relationship between employee attrition and salary.
Employees with lower salaries are more likely to leave the company compared to those with higher salaries.
##
## Pearson's Chi-squared test with Yates' continuity correction
##
## data: table2
## X-squared = 56.262, df = 1, p-value = 6.344e-14
The p-value is less than 0.01. Indicating a relationship between employee attrition and whether the employee was promoted in the last 5 years.
Employees who were not promoted in the last 5 years are more likely to leave the company.
##
## Pearson's Chi-squared test with Yates' continuity correction
##
## data: table3
## X-squared = 357.56, df = 1, p-value < 2.2e-16
The p-value is less than 0.01. Indicating a relationship between employee attrition and whether the employee had a work accident.
Employees who have not experienced a work accident are more likely to leave the company.
##
## Pearson's Chi-squared test
##
## data: table4
## X-squared = 86.825, df = 9, p-value = 7.042e-15
The p-value is less than 0.01. Indicating a relationship between the department and employee attrition.
Employees in some departments like sales and technical are more likely to leave compared to others like HR or management.