##
## Welch Two Sample t-test
##
## data: hr$average_montly_hours by hr$left
## t = -7.5323, df = 4875.1, p-value = 5.907e-14
## alternative hypothesis: true difference in means between group Stayed and group Left is not equal to 0
## 95 percent confidence interval:
## -10.534631 -6.183384
## sample estimates:
## mean in group Stayed mean in group Left
## 199.0602 207.4192
We reject the Ho the p-value is <.01, where the average monthly hours for employees that left is greater
Employees that work more hours are more likely to leave
##
## Welch Two Sample t-test
##
## data: hr$satisfaction_level by hr$left
## t = 46.636, df = 5167, p-value < 2.2e-16
## alternative hypothesis: true difference in means between group Stayed and group Left is not equal to 0
## 95 percent confidence interval:
## 0.2171815 0.2362417
## sample estimates:
## mean in group Stayed mean in group Left
## 0.6668096 0.4400980
We reject the Ho the p-value is <.01, where the satisfaction level for employees that left is greater. Mean satisfaction in the group that left was .44, mean satisfaction in the group that Stayed was .66
Employees that are less satisfied are more likely to leave the company.
##
## Welch Two Sample t-test
##
## data: hr$last_evaluation by hr$left
## t = -0.72534, df = 5154.9, p-value = 0.4683
## alternative hypothesis: true difference in means between group Stayed and group Left is not equal to 0
## 95 percent confidence interval:
## -0.009772224 0.004493874
## sample estimates:
## mean in group Stayed mean in group Left
## 0.7154734 0.7181126
We fail to reject the null hypothesis as the p-value is 0.4683, which is greater than 0.01. There is no significant difference in last evaluation scores between employees who stayed and those who left. The mean last evaluation score for employees who stayed was 0.715, while the mean for those who left was 0.718.
Employees who left and those who stayed had almost the same performance ratings, so there’s no clear evidence that performance influenced whether they stayed or left.
##
## Welch Two Sample t-test
##
## data: hr$number_project by hr$left
## t = -2.1663, df = 4236.5, p-value = 0.03034
## alternative hypothesis: true difference in means between group Stayed and group Left is not equal to 0
## 95 percent confidence interval:
## -0.131136535 -0.006540119
## sample estimates:
## mean in group Stayed mean in group Left
## 3.786664 3.855503
We fail to reject the null hypothesis at the 0.01 significance level, as the p-value is 0.03034, which is greater than 0.01. While the mean number of projects was slightly higher for employees who left (3.86) compared to those who stayed (3.79), this difference is not statistically significant at the stricter 0.01 threshold.
Employees that had more projects did not show statistically signifigant numbers in leaving vs staying with the company, the range for employees that left was larger than the employees that stayed though.