##
## Welch Two Sample t-test
##
## data: hr1$satisfaction_level by hr1$Left
## t = -46.636, df = 5167, p-value < 2.2e-16
## alternative hypothesis: true difference in means between group left and group Stayed is not equal to 0
## 99.9 percent confidence interval:
## -0.2427168 -0.2107063
## sample estimates:
## mean in group left mean in group Stayed
## 0.4400980 0.6668096
We reject the Ho as the p-value < alpha (0.001). Therefore we reject the Ho, there is a difference in satisfaction level between employees that left vs. stayed.
Employees that stayed are, on average, more satisfied.
##
## Welch Two Sample t-test
##
## data: hr1$last_evaluation by hr1$Left
## t = 0.72534, df = 5154.9, p-value = 0.4683
## alternative hypothesis: true difference in means between group left and group Stayed is not equal to 0
## 99.9 percent confidence interval:
## -0.009340354 0.014618703
## sample estimates:
## mean in group left mean in group Stayed
## 0.7181126 0.7154734
The p-value is very small (p < 0.001), so we reject the null hypothesis.There is a statistically significant difference in last evaluation scores between employees who left and those who stayed.
Employees who stayed had, on average, slightly higher evaluation scores than those who left.
##
## Welch Two Sample t-test
##
## data: hr1$average_montly_hours by hr1$Left
## t = 7.5323, df = 4875.1, p-value = 5.907e-14
## alternative hypothesis: true difference in means between group left and group Stayed is not equal to 0
## 99.9 percent confidence interval:
## 4.705107 12.012907
## sample estimates:
## mean in group left mean in group Stayed
## 207.4192 199.0602
The p-value is very small (p < 0.001), indicating we reject the null hypothesis. There is a significant difference in average monthly hours between employees who left and those who stayed.
Employees who left tended to work more hours per month on average than those who stayed.
##
## Welch Two Sample t-test
##
## data: hr1$number_project by hr1$Left
## t = 2.1663, df = 4236.5, p-value = 0.03034
## alternative hypothesis: true difference in means between group left and group Stayed is not equal to 0
## 99.9 percent confidence interval:
## -0.03579547 0.17347213
## sample estimates:
## mean in group left mean in group Stayed
## 3.855503 3.786664
The p-value is large (p > 0.001), so we accept the null hypothesis. Employees who left and those who stayed showed no significant difference in the number of projects.
The Number of Projects Had No Affect on The Number of People Who Left or Stayed.