1. Left vs.Salary
##
##
## 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
##
##
##
Interpretations
- The p-values is smaller than alpha (0.001), therefore we reject thr
Ho, and conclude that there is an association between leaving and
salary.
- Employees with high salary leave much less.Employees with low
salaries are 4.5 times (0.297/0.066) more likely to leave vs. those with
high salaries.
- Employees with low salaries are 3 times (0.204/0.066) more likely to
leave vs. those with medium salaries
2. Left vs. Sattisfaction Level
##
## Cell Contents
## |-------------------------|
## | Count |
## | Chi-square contribution |
## | Row Percent |
## | Column Percent |
## | Total Percent |
## |-------------------------|
##
## Total Observations in Table: 14999
##
## | hr$left
## hr$satisfaction_group | 0 | 1 | Row Total |
## ----------------------|-----------|-----------|-----------|
## Low (0–25%) | 839 | 934 | 1773 |
## | 193.963 | 620.725 | |
## | 47.321% | 52.679% | 11.821% |
## | 7.342% | 26.155% | |
## | 5.594% | 6.227% | |
## ----------------------|-----------|-----------|-----------|
## Medium-Low (26–50%) | 1423 | 1616 | 3039 |
## | 343.990 | 1100.845 | |
## | 46.825% | 53.175% | 20.261% |
## | 12.452% | 45.253% | |
## | 9.487% | 10.774% | |
## ----------------------|-----------|-----------|-----------|
## Medium-High (51–75%) | 4766 | 253 | 5019 |
## | 232.016 | 742.503 | |
## | 94.959% | 5.041% | 33.462% |
## | 41.705% | 7.085% | |
## | 31.775% | 1.687% | |
## ----------------------|-----------|-----------|-----------|
## High (76–100%) | 4400 | 768 | 5168 |
## | 54.303 | 173.782 | |
## | 85.139% | 14.861% | 34.456% |
## | 38.502% | 21.507% | |
## | 29.335% | 5.120% | |
## ----------------------|-----------|-----------|-----------|
## Column Total | 11428 | 3571 | 14999 |
## | 76.192% | 23.808% | |
## ----------------------|-----------|-----------|-----------|
##
##
## Statistics for All Table Factors
##
##
## Pearson's Chi-squared test
## ------------------------------------------------------------
## Chi^2 = 3462.128 d.f. = 3 p = 0
##
##
##
## Minimum expected frequency: 422.1203
Interpretations
- The p-value is smaller than alpha (0.001), therefore we reject the
H₀, and conclude that there is an association between leaving and job
satisfaction level.
- Employees with high satisfaction (top 25%: 0.76–1.00) leave much
less.
- Employees with low satisfaction (bottom 25%: 0.00–0.25) are 10.7
times (0.652 / 0.061) more likely to leave vs. those with high
satisfaction.Employees with low satisfaction are 1.4 times (0.652 /
0.476) more likely to leave vs. those with medium-low satisfaction
(26–50%).
- Employees with low satisfaction are 8.4 times (0.652 / 0.078) more
likely to leave vs. those with medium-high satisfaction (51–75%).
Graph
## # A tibble: 4 × 2
## satisfaction_quartile pct_left
## <ord> <dbl>
## 1 low 52.7
## 2 medium-low 53.2
## 3 medium-high 5
## 4 high 14.9
3.Left vs. Average Monthly Hours
##
## Cell Contents
## |-------------------------|
## | Count |
## | Chi-square contribution |
## | Row Percent |
## | Column Percent |
## | Total Percent |
## |-------------------------|
##
## Total Observations in Table: 14999
##
## | hr$left
## hr$hours_group | 0 | 1 | Row Total |
## ----------------------|-----------|-----------|-----------|
## Low (≤183) | 4587 | 1634 | 6221 |
## | 4.932 | 15.782 | |
## | 73.734% | 26.266% | 41.476% |
## | 40.138% | 45.757% | |
## | 30.582% | 10.894% | |
## ----------------------|-----------|-----------|-----------|
## Medium-Low (184–223) | 2922 | 147 | 3069 |
## | 145.693 | 466.249 | |
## | 95.210% | 4.790% | 20.461% |
## | 25.569% | 4.116% | |
## | 19.481% | 0.980% | |
## ----------------------|-----------|-----------|-----------|
## Medium-High (224–257) | 2460 | 773 | 3233 |
## | 0.004 | 0.014 | |
## | 76.090% | 23.910% | 21.555% |
## | 21.526% | 21.647% | |
## | 16.401% | 5.154% | |
## ----------------------|-----------|-----------|-----------|
## High (≥258) | 1459 | 1017 | 2476 |
## | 96.879 | 310.034 | |
## | 58.926% | 41.074% | 16.508% |
## | 12.767% | 28.479% | |
## | 9.727% | 6.780% | |
## ----------------------|-----------|-----------|-----------|
## Column Total | 11428 | 3571 | 14999 |
## | 76.192% | 23.808% | |
## ----------------------|-----------|-----------|-----------|
##
##
## Statistics for All Table Factors
##
##
## Pearson's Chi-squared test
## ------------------------------------------------------------
## Chi^2 = 1039.587 d.f. = 3 p = 4.648851e-225
##
##
##
## Minimum expected frequency: 589.4924
Interpretations
- The p-value is smaller than alpha (0.001), therefore we reject the
H₀, and conclude that there is an association between leaving and
average monthly hours.
- Employees with high hours leave much less.Employees with low hours
are 4.4 times (0.183 / 0.041) more likely to leave vs. those with high
hours.
- Employees with low hours are 1.3 times (0.183 / 0.138) more likely
to leave vs. those with medium-low hours.
- Employees with low hours are 2.4 times (0.183 / 0.077) more likely
to leave vs.those with medium-high hours.
Graph
## # A tibble: 4 × 2
## hours_quartile pct_left
## <ord> <dbl>
## 1 low 26.3
## 2 medium-low 4.8
## 3 medium-high 23.9
## 4 high 41.1
Interpretations
- The p-value is smaller than alpha (0.001), therefore we reject the
H₀, and conclude that there is an association between leaving and
promotion in the last 5 years.
- Employees with promotion leave much less.
- Employees without promotion are 4.0 times (0.242 / 0.060) more
likely to leave vs. those with promotion.
Graph
## # A tibble: 2 × 2
## promotion_last_5years pct_left
## <ord> <dbl>
## 1 No 24.2
## 2 Yes 6