1. Average Monthly Hours vs. Left

t-test

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

Technical Interpretation

Reject the Ho, p value < 0.01, there is a difference in means, where employees who left had more average monthly hours

Non-technical Interpretation

Employees that left worked more hours.

Graph

2. Satisfaction Level vs. Promotion Within the Last 5 Years

t-test

## 
##  Welch Two Sample t-test
## 
## data:  hr$satisfaction_level by hr$promotion_last_5years
## t = -3.6545, df = 337.3, p-value = 0.0002987
## alternative hypothesis: true difference in means between group 0 and group 1 is not equal to 0
## 95 percent confidence interval:
##  -0.06787297 -0.02037446
## sample estimates:
## mean in group 0 mean in group 1 
##       0.6118951       0.6560188

Technical Interpretation

Reject the Ho, p-value < 0.01, there is a difference in means, where if employees got promoted within the last 5 years, they are slightly more satisfied.

Non-technical Interpretation

Employees that were promoted within the last 5 years, were slightly more satisfied.

Graph

3. Average Monthly Hours vs. Left

T-test

## 
##  Welch Two Sample t-test
## 
## data:  hr$time_spend_company by hr$Work_accident
## t = -0.23359, df = 2738.4, p-value = 0.8153
## alternative hypothesis: true difference in means between group No and group Yes is not equal to 0
## 95 percent confidence interval:
##  -0.08269677  0.06509122
## sample estimates:
##  mean in group No mean in group Yes 
##          3.496960          3.505763

Technical Terms

We maintain the Ho, the p value is > 0.01, there is no difference in means, showing work accidents occurrence do not change with the time an employee spends at the company.

Non-technical Terms

The time an employee spends at the company does not change if they have a work accident.

Graph

4. Satisfaction levels and Employee Status

T-Test

## 
##  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 Left and group Stayed is not equal to 0
## 95 percent confidence interval:
##  0.2171815 0.2362417
## sample estimates:
##   mean in group Left mean in group Stayed 
##            0.6668096            0.4400980

Techincal Terms

We reject Ho because the p-value is less than 0.01. This indicates that there is a statistically significant difference in satisfaction levels between employees who left and those who did not.

Non-technical terms

Employees who Left the Company are more Satisfied

Graph