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, where employees without accidents are more likely to leave

c. Non-Technical Interpretation

Employees without work accidents are more than 3 times more likely to leave. (0.265 / 0.078)

d. Graph

2. Left vs Promotion in the 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 leaving and getting a promotion in the last 5 years, where employees are less likely to leave if they have gotten a recent promotion.

c. Non-Technical Interpretation

Employees without promotions in the last 5 years are about 4 times more likely to leave (0.242 / 0.06)

d. Graph

3. Left vs Department

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$left 
## hr$Department |         0 |         1 | Row Total | 
## --------------|-----------|-----------|-----------|
##    accounting |       563 |       204 |       767 | 
##               |     0.783 |     2.506 |           | 
##               |     0.734 |     0.266 |     0.051 | 
##               |     0.049 |     0.057 |           | 
##               |     0.038 |     0.014 |           | 
## --------------|-----------|-----------|-----------|
##            hr |       524 |       215 |       739 | 
##               |     2.709 |     8.670 |           | 
##               |     0.709 |     0.291 |     0.049 | 
##               |     0.046 |     0.060 |           | 
##               |     0.035 |     0.014 |           | 
## --------------|-----------|-----------|-----------|
##            IT |       954 |       273 |      1227 | 
##               |     0.391 |     1.252 |           | 
##               |     0.778 |     0.222 |     0.082 | 
##               |     0.083 |     0.076 |           | 
##               |     0.064 |     0.018 |           | 
## --------------|-----------|-----------|-----------|
##    management |       539 |        91 |       630 | 
##               |     7.250 |    23.202 |           | 
##               |     0.856 |     0.144 |     0.042 | 
##               |     0.047 |     0.025 |           | 
##               |     0.036 |     0.006 |           | 
## --------------|-----------|-----------|-----------|
##     marketing |       655 |       203 |       858 | 
##               |     0.002 |     0.008 |           | 
##               |     0.763 |     0.237 |     0.057 | 
##               |     0.057 |     0.057 |           | 
##               |     0.044 |     0.014 |           | 
## --------------|-----------|-----------|-----------|
##   product_mng |       704 |       198 |       902 | 
##               |     0.408 |     1.307 |           | 
##               |     0.780 |     0.220 |     0.060 | 
##               |     0.062 |     0.055 |           | 
##               |     0.047 |     0.013 |           | 
## --------------|-----------|-----------|-----------|
##         RandD |       666 |       121 |       787 | 
##               |     7.346 |    23.510 |           | 
##               |     0.846 |     0.154 |     0.052 | 
##               |     0.058 |     0.034 |           | 
##               |     0.044 |     0.008 |           | 
## --------------|-----------|-----------|-----------|
##         sales |      3126 |      1014 |      4140 | 
##               |     0.255 |     0.815 |           | 
##               |     0.755 |     0.245 |     0.276 | 
##               |     0.274 |     0.284 |           | 
##               |     0.208 |     0.068 |           | 
## --------------|-----------|-----------|-----------|
##       support |      1674 |       555 |      2229 | 
##               |     0.348 |     1.114 |           | 
##               |     0.751 |     0.249 |     0.149 | 
##               |     0.146 |     0.155 |           | 
##               |     0.112 |     0.037 |           | 
## --------------|-----------|-----------|-----------|
##     technical |      2023 |       697 |      2720 | 
##               |     1.178 |     3.771 |           | 
##               |     0.744 |     0.256 |     0.181 | 
##               |     0.177 |     0.195 |           | 
##               |     0.135 |     0.046 |           | 
## --------------|-----------|-----------|-----------|
##  Column Total |     11428 |      3571 |     14999 | 
##               |     0.762 |     0.238 |           | 
## --------------|-----------|-----------|-----------|
## 
##  
## Statistics for All Table Factors
## 
## 
## Pearson's Chi-squared test 
## ------------------------------------------------------------
## Chi^2 =  86.82547     d.f. =  9     p =  7.04213e-15 
## 
## 
## 

b. Technical Interpretation

There is an association between leaving and department, where employees working in management are more likely to leave than employees in HR

c. Non-Technical Interpretation

Employees who work in management are more than 2 times more likely to leave than employees in HR.(.291 / .144)

d. Graph

4. Left vs Salary Level

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$left 
##    hr$salary |         0 |         1 | Row Total | 
## -------------|-----------|-----------|-----------|
##         high |      1155 |        82 |      1237 | 
##              |    47.915 |   153.339 |           | 
##              |     0.934 |     0.066 |     0.082 | 
##              |     0.101 |     0.023 |           | 
##              |     0.077 |     0.005 |           | 
## -------------|-----------|-----------|-----------|
##          low |      5144 |      2172 |      7316 | 
##              |    33.200 |   106.247 |           | 
##              |     0.703 |     0.297 |     0.488 | 
##              |     0.450 |     0.608 |           | 
##              |     0.343 |     0.145 |           | 
## -------------|-----------|-----------|-----------|
##       medium |      5129 |      1317 |      6446 | 
##              |     9.648 |    30.876 |           | 
##              |     0.796 |     0.204 |     0.430 | 
##              |     0.449 |     0.369 |           | 
##              |     0.342 |     0.088 |           | 
## -------------|-----------|-----------|-----------|
## Column Total |     11428 |      3571 |     14999 | 
##              |     0.762 |     0.238 |           | 
## -------------|-----------|-----------|-----------|
## 
##  
## 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 leaving and level of salary, as employees with lower salaries are more likely to leave

c. Non-Technical Interpretation

Employees with low salaries are more than 3 times more likely to leave than people with high salaries (.204 / .066)

d. Graph