Employee Attrition Analysis

T-Test 1: Avg Monthly hours vs Employee Status

T-Test results

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

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

Non-technical interperation

Employees that left worked more hours

Graphical representation

T-Test 2: Time Spent at Company vs Employee Status

T-Test results

## 
##  Welch Two Sample t-test
## 
## data:  hr$time_spend_company by hr$left
## t = -22.631, df = 9625.6, 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.5394767 -0.4534706
## sample estimates:
## mean in group Stayed   mean in group Left 
##             3.380032             3.876505

Technical interperation

Reject the Ho, p-value < 0.01, where the longer a person stayed at the company they were more likely to leave

Non-technical interperation

Employees that spent more time at the company were more likely to leave

Graphical representation

T-Test 3: Satisfaction Level vs Employee Status

T-Test results

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

Technical interperation

Reject the Ho, p-value < 0.01, there is a difference in means, where employees who left were less satisfied

Non-Technical representation

Employees that left were less satisfied

Graphical representation

T-Test 4: Number of Projects vs Employee Status

T-Test results

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

Technical interperation

Accept the Ho, p-value > 0.01, concludes that there is no association between the number of projects an employee had and if they left the company

Non-Technical representation

Cannot conclude that there is an association

Graphical representation