##
## Pearson's product-moment correlation
##
## data: hr$satisfaction_level and hr$last_evaluation
## t = 12.933, df = 14997, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
## 0.08916727 0.12082195
## sample estimates:
## cor
## 0.1050212
The p-value < Than alpha (0.001) therefore we reject the null Ho and say there is a positive and small correlation between last evaluation and satisfaction level
As evaluations increase, satisfaction increases slightly
##
## Pearson's product-moment correlation
##
## data: hr$number_project and hr$average_montly_hours
## t = 56.219, df = 14997, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
## 0.4039037 0.4303411
## sample estimates:
## cor
## 0.4172106
The p-value < Than alpha (0.001) therefore we reject the null Ho and say there is a positive and medium correlation between number of projects and average monthly hours
As number of projects increases, average monthly hours increase
##
## Pearson's product-moment correlation
##
## data: hr$promotion_last_5years and hr$time_spend_company
## t = 8.2768, df = 14997, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
## 0.05148468 0.08334679
## sample estimates:
## cor
## 0.06743293
The p-value < Than alpha (0.001) therefore we reject the null Ho and say there is a positive and small correlation between promotion in the last 5 years and time spent at the company
As time spent at the company increases, promotions increase slightly
##
## Pearson's product-moment correlation
##
## data: hr$average_montly_hours and hr$time_spend_company
## t = 15.774, df = 14997, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
## 0.1119801 0.1434654
## sample estimates:
## cor
## 0.1277549
The p-value < Than alpha (0.001) therefore we reject the null Ho and say there is a positive and small correlation between average monthly hours and time spent at the company
As time spent at the company increases, average monthly hours increase slightly
library(plotly)