Question 1

## 
##  Pearson's Chi-squared test
## 
## data:  table(hr$salary, hr$left)
## X-squared = 381.23, df = 2, p-value < 2.2e-16
There is a significant relationship between salary levels and employees leaving.
Salary levels are linked to whether employees leave the company.

Question 2

## 
##  Pearson's Chi-squared test
## 
## data:  table(hr$Department, hr$left)
## X-squared = 86.825, df = 9, p-value = 7.042e-15
There is a significant realationship between depatment and employees that left.
An Employees department is connected wo whether they leave the company and some departments hacve higher levels of employees that left.

Question 3

## 
##  Pearson's Chi-squared test with Yates' continuity correction
## 
## data:  table(hr$promotion_last_5years, hr$left)
## X-squared = 56.262, df = 1, p-value = 6.344e-14
There is a significant relationship between whether an employee was promoted in the last 5 yeeatns and the likelihood of leaving the company.
Employees who where not promoted in the last 5 years shows they are more likely to leave.

Question 4

## 
##  Pearson's Chi-squared test with Yates' continuity correction
## 
## data:  table(hr$Work_accident, hr$left)
## X-squared = 357.56, df = 1, p-value < 2.2e-16
There is a significant relationship between work accidents ans employees that left.
Employees that had a work accident is linked to an employee leaving the company.