1. Left vs Work Accident

a. Chi-Square Test

## 
##  
##    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 
## 
## 

b. Technical Interpretation

There is an association between leaving and work accidents, employees with work accidents are less likely to leave.

c. Non-Technical Interpretation

Employees without a work accident are more than 3 times more likely to leave (.265/.078)

d. Graph

2. Left vs Promotion Last 5 Years

a. Chi-Square Test

## 
##  
##    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 
## 
## 

b. Technical Interpretation

There is an association between employees who chose to leave and employees who received a promotion within the last 5 years. Employees who have received a promotion in that time frame are more likely to stay.

c. Non-Technical Interpretation

Employees without a promotion are more than 4 times more likely to leave (.24/.06)

d. Graph

3. Left vs Salary

a. Chi-Square Test

## 
##  
##    Cell Contents
## |-------------------------|
## |                       N |
## | Chi-square contribution |
## |           N / Row Total |
## |           N / Col Total |
## |         N / Table Total |
## |-------------------------|
## 
##  
## Total Observations in Table:  14999 
## 
##  
##              | hr$salary 
##      hr$left |      high |       low |    medium | Row Total | 
## -------------|-----------|-----------|-----------|-----------|
##            0 |      1155 |      5144 |      5129 |     11428 | 
##              |    47.915 |    33.200 |     9.648 |           | 
##              |     0.101 |     0.450 |     0.449 |     0.762 | 
##              |     0.934 |     0.703 |     0.796 |           | 
##              |     0.077 |     0.343 |     0.342 |           | 
## -------------|-----------|-----------|-----------|-----------|
##            1 |        82 |      2172 |      1317 |      3571 | 
##              |   153.339 |   106.247 |    30.876 |           | 
##              |     0.023 |     0.608 |     0.369 |     0.238 | 
##              |     0.066 |     0.297 |     0.204 |           | 
##              |     0.005 |     0.145 |     0.088 |           | 
## -------------|-----------|-----------|-----------|-----------|
## Column Total |      1237 |      7316 |      6446 |     14999 | 
##              |     0.082 |     0.488 |     0.430 |           | 
## -------------|-----------|-----------|-----------|-----------|
## 
##  
## Statistics for All Table Factors
## 
## 
## Pearson's Chi-squared test 
## ------------------------------------------------------------
## Chi^2 =  381.225     d.f. =  2     p =  1.652087e-83 
## 
## 
## 

b. Technical Interpretation

There is an association between salary level and employees staying. The higher the salary, the more likely employees are to stay.

c. Non-Technical Interpretation

People with low salaries are 3 times more likely than those with high salaries to leave

d. Graph

4. Left vs Time Spent

a. Chi-Square Test

## 
##  
##    Cell Contents
## |-------------------------|
## |                       N |
## | Chi-square contribution |
## |           N / Row Total |
## |           N / Col Total |
## |         N / Table Total |
## |-------------------------|
## 
##  
## Total Observations in Table:  14999 
## 
##  
##              | hr$time_spend_company 
##      hr$left |         2 |         3 |         4 |         5 |         6 |         7 |         8 |        10 | Row Total | 
## -------------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|
##            0 |      3191 |      4857 |      1667 |       640 |       509 |       188 |       162 |       214 |     11428 | 
##              |   209.353 |     0.552 |    40.594 |   207.268 |     2.647 |    13.986 |    12.052 |    15.921 |           | 
##              |     0.279 |     0.425 |     0.146 |     0.056 |     0.045 |     0.016 |     0.014 |     0.019 |     0.762 | 
##              |     0.984 |     0.754 |     0.652 |     0.434 |     0.709 |     1.000 |     1.000 |     1.000 |           | 
##              |     0.213 |     0.324 |     0.111 |     0.043 |     0.034 |     0.013 |     0.011 |     0.014 |           | 
## -------------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|
##            1 |        53 |      1586 |       890 |       833 |       209 |         0 |         0 |         0 |      3571 | 
##              |   669.977 |     1.765 |   129.910 |   663.303 |     8.472 |    44.760 |    38.569 |    50.950 |           | 
##              |     0.015 |     0.444 |     0.249 |     0.233 |     0.059 |     0.000 |     0.000 |     0.000 |     0.238 | 
##              |     0.016 |     0.246 |     0.348 |     0.566 |     0.291 |     0.000 |     0.000 |     0.000 |           | 
##              |     0.004 |     0.106 |     0.059 |     0.056 |     0.014 |     0.000 |     0.000 |     0.000 |           | 
## -------------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|
## Column Total |      3244 |      6443 |      2557 |      1473 |       718 |       188 |       162 |       214 |     14999 | 
##              |     0.216 |     0.430 |     0.170 |     0.098 |     0.048 |     0.013 |     0.011 |     0.014 |           | 
## -------------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|
## 
##  
## Statistics for All Table Factors
## 
## 
## Pearson's Chi-squared test 
## ------------------------------------------------------------
## Chi^2 =  2110.08     d.f. =  7     p =  0 
## 
## 
## 

b. Technical Interpretation

There is an association between time spent and employees leaving. Employees who have spent less than 6 years at the company are more likely to leave than those over 6 years working. The trend follows a bell curve as new employees and those with over 7 years of experience leave at a far lower rate.

c. Non-Technical Interpretation

Employees between the years 3 and 6 have the are more likely to leave than those outside that range of time.

d. Graph