1 Does Getting A Promotion In The Last 5 Years Effect If The Employee Will Leave?

## 
##  
##    Cell Contents
## |-------------------------|
## |                       N |
## | Chi-square contribution |
## |           N / Row Total |
## |           N / Col Total |
## |         N / Table Total |
## |-------------------------|
## 
##  
## Total Observations in Table:  14999 
## 
##  
##              | hr$promotion_last_5years 
##      hr$left |         0 |         1 | Row Total | 
## -------------|-----------|-----------|-----------|
##            0 |     11128 |       300 |     11428 | 
##              |     0.290 |    13.343 |           | 
##              |     0.974 |     0.026 |     0.762 | 
##              |     0.758 |     0.940 |           | 
##              |     0.742 |     0.020 |           | 
## -------------|-----------|-----------|-----------|
##            1 |      3552 |        19 |      3571 | 
##              |     0.928 |    42.702 |           | 
##              |     0.995 |     0.005 |     0.238 | 
##              |     0.242 |     0.060 |           | 
##              |     0.237 |     0.001 |           | 
## -------------|-----------|-----------|-----------|
## Column Total |     14680 |       319 |     14999 | 
##              |     0.979 |     0.021 |           | 
## -------------|-----------|-----------|-----------|
## 
##  
## Statistics for All Table Factors
## 
## 
## Pearson's Chi-squared test 
## ------------------------------------------------------------
## Chi^2 =  57.26273     d.f. =  1     p =  3.813123e-14 
## 
## Pearson's Chi-squared test with Yates' continuity correction 
## ------------------------------------------------------------
## Chi^2 =  56.26163     d.f. =  1     p =  6.344155e-14 
## 
## 

Technical:

There is a dependency between getting a promotion in the last 5 years and if the employee left there job

Non_Technical:

Those who did not get a promotion are almost 4 times as likely to leave

2 Does Having A Work Accident Effect if you leave

## 
##  
##    Cell Contents
## |-------------------------|
## |                       N |
## | Chi-square contribution |
## |           N / Row Total |
## |           N / Col Total |
## |         N / Table Total |
## |-------------------------|
## 
##  
## Total Observations in Table:  14999 
## 
##  
##              | hr$Work_accident 
##      hr$left |         0 |         1 | Row Total | 
## -------------|-----------|-----------|-----------|
##            0 |      9428 |      2000 |     11428 | 
##              |    12.346 |    73.029 |           | 
##              |     0.825 |     0.175 |     0.762 | 
##              |     0.735 |     0.922 |           | 
##              |     0.629 |     0.133 |           | 
## -------------|-----------|-----------|-----------|
##            1 |      3402 |       169 |      3571 | 
##              |    39.510 |   233.709 |           | 
##              |     0.953 |     0.047 |     0.238 | 
##              |     0.265 |     0.078 |           | 
##              |     0.227 |     0.011 |           | 
## -------------|-----------|-----------|-----------|
## Column Total |     12830 |      2169 |     14999 | 
##              |     0.855 |     0.145 |           | 
## -------------|-----------|-----------|-----------|
## 
##  
## Statistics for All Table Factors
## 
## 
## Pearson's Chi-squared test 
## ------------------------------------------------------------
## Chi^2 =  358.5938     d.f. =  1     p =  5.698673e-80 
## 
## Pearson's Chi-squared test with Yates' continuity correction 
## ------------------------------------------------------------
## Chi^2 =  357.5624     d.f. =  1     p =  9.55824e-80 
## 
## 

Technical

There is a dependency between having a workplace accident and leaving the company

Non-Technical

Employees that had a work place accident are about 1/3 less likely to leave the company

3 How does working in sales compare to other departments?

## 
##  
##    Cell Contents
## |-------------------------|
## |                       N |
## | Chi-square contribution |
## |           N / Row Total |
## |           N / Col Total |
## |         N / Table Total |
## |-------------------------|
## 
##  
## Total Observations in Table:  14999 
## 
##  
##              | hrsales$sales 
## hrsales$left |        no |       yes | Row Total | 
## -------------|-----------|-----------|-----------|
##            0 |      8302 |      3126 |     11428 | 
##              |     0.097 |     0.255 |           | 
##              |     0.726 |     0.274 |     0.762 | 
##              |     0.765 |     0.755 |           | 
##              |     0.554 |     0.208 |           | 
## -------------|-----------|-----------|-----------|
##            1 |      2557 |      1014 |      3571 | 
##              |     0.311 |     0.815 |           | 
##              |     0.716 |     0.284 |     0.238 | 
##              |     0.235 |     0.245 |           | 
##              |     0.170 |     0.068 |           | 
## -------------|-----------|-----------|-----------|
## Column Total |     10859 |      4140 |     14999 | 
##              |     0.724 |     0.276 |           | 
## -------------|-----------|-----------|-----------|
## 
##  
## Statistics for All Table Factors
## 
## 
## Pearson's Chi-squared test 
## ------------------------------------------------------------
## Chi^2 =  1.477012     d.f. =  1     p =  0.2242427 
## 
## Pearson's Chi-squared test with Yates' continuity correction 
## ------------------------------------------------------------
## Chi^2 =  1.425351     d.f. =  1     p =  0.2325247 
## 
## 

Technical:

There is no dependence between being in the sales department and leaving the company.

Non-Technical:

Being in the Sales department Does Not effect the odds of an employee leaving

4 Are Those with a low salary more likely to leave?

## 
##  
##    Cell Contents
## |-------------------------|
## |                       N |
## | Chi-square contribution |
## |           N / Row Total |
## |           N / Col Total |
## |         N / Table Total |
## |-------------------------|
## 
##  
## Total Observations in Table:  14999 
## 
##  
##              | hrlow$low_Sal 
##   hrlow$left |        no |       yes | Row Total | 
## -------------|-----------|-----------|-----------|
##            0 |      6284 |      5144 |     11428 | 
##              |    31.614 |    33.200 |           | 
##              |     0.550 |     0.450 |     0.762 | 
##              |     0.818 |     0.703 |           | 
##              |     0.419 |     0.343 |           | 
## -------------|-----------|-----------|-----------|
##            1 |      1399 |      2172 |      3571 | 
##              |   101.172 |   106.247 |           | 
##              |     0.392 |     0.608 |     0.238 | 
##              |     0.182 |     0.297 |           | 
##              |     0.093 |     0.145 |           | 
## -------------|-----------|-----------|-----------|
## Column Total |      7683 |      7316 |     14999 | 
##              |     0.512 |     0.488 |           | 
## -------------|-----------|-----------|-----------|
## 
##  
## Statistics for All Table Factors
## 
## 
## Pearson's Chi-squared test 
## ------------------------------------------------------------
## Chi^2 =  272.232     d.f. =  1     p =  3.702208e-61 
## 
## Pearson's Chi-squared test with Yates' continuity correction 
## ------------------------------------------------------------
## Chi^2 =  271.5996     d.f. =  1     p =  5.085079e-61 
## 
## 

Technical:

There is a dependence between having a low salary and leaving the company

Non-Technical:

Those with a lower salary are more than 1.5 times as likely to leave