Welcome to the course! Anurag Gupta and Abhishek Trehan People - - PowerPoint PPT Presentation

welcome to the course
SMART_READER_LITE
LIVE PREVIEW

Welcome to the course! Anurag Gupta and Abhishek Trehan People - - PowerPoint PPT Presentation

DataCamp Human Resources Analytics: Predicting Employee Churn in R HUMAN RESOURCES ANALYTICS : PREDICTING EMPLOYEE CHURN IN R Welcome to the course! Anurag Gupta and Abhishek Trehan People Analytics Practitioners DataCamp Human Resources


slide-1
SLIDE 1

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Welcome to the course!

HUMAN RESOURCES ANALYTICS: PREDICTING EMPLOYEE CHURN IN R

Anurag Gupta and Abhishek Trehan

People Analytics Practitioners

slide-2
SLIDE 2

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Understanding employee turnover

Churn refers to the gradual loss of employees over a period of time Churn / Turnover / Attrition are interchangeably used

slide-3
SLIDE 3

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Why employee turnover matters?

Employee turnover is the biggest issue facing HR Employee turnover is the highest its been in 10 years Turnover costs way more than you think

slide-4
SLIDE 4

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Types of employee turnover

VOLUNTARY TURNOVER When an employee chooses to resign INVOLUNTARY TURNOVER When an organization decides to let go of an employee

slide-5
SLIDE 5

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Common reasons for employee turnover

Better opportunity Health Relocation Education Personal reasons etc.

slide-6
SLIDE 6

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Hidden reasons of employees turnover

Relationship with manager Percent salary hike Overtime Travel distance Career satisfaction Tenure

slide-7
SLIDE 7

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Course overview

Chapter 1: Introduction to employee turnover prediction Chapter 2: Building relationship with data Chapter 3: Building turnover prediction model using logistic regression Chapter 4: Model validation, RoI calculation and retention strategy

slide-8
SLIDE 8

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Basic requirements for the course

dplyr: Data wrangling ggplot2: Visualization and exploration

slide-9
SLIDE 9

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Let's practice!

HUMAN RESOURCES ANALYTICS: PREDICTING EMPLOYEE CHURN IN R

slide-10
SLIDE 10

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Know more about turnover

HUMAN RESOURCES ANALYTICS: PREDICTING EMPLOYEE CHURN IN R

Anurag Gupta

People Analytics Practitioner

slide-11
SLIDE 11

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Understanding the data

glimpse(org) Observations: 2,291 Variables: 12 $ emp_id <chr> "E11061", "E1031", "E6213", "E5900", "E3044"... $ status <chr> "Inactive", "Inactive", "Inactive", "Inactiv... $ turnover <int> 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1,... $ location <chr> "New York", "New York", "New York", "New Yor... $ level <chr> "Analyst", "Analyst", "Analyst", "Analyst", ... $ date_of_joining <chr> "22-03-2012", "09-03-2012", "06-01-2012", "2... $ last_working_date <chr> "11-09-2014", "05-06-2014", "30-04-2014", "0... $ gender <chr> "Male", "Female", "Female", "Female", "Femal... $ department <chr> "Customer Operations", "Customer Operations"... $ mgr_id <chr> "E1712", "E10524", "E4443", "E3638", "E3312"... $ cutoff_date <chr> "31-12-2014", "31-12-2014", "31-12-2014", "3... $ emp_age <dbl> 22.49, 22.42, 22.24, 22.32, 22.14, 22.67, 22...

slide-12
SLIDE 12

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Calculating turnover rate

Turnover rate =

  • r

Turnover rate = = mean(turnover) where 1 means Inactive ; 0 means Active Total number of employees Number of employees who left Count of all 1’s + Count of all 0’s Count of all 1’s

slide-13
SLIDE 13

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Count Active and Inactive employees

# Count Active and Inactive employees

  • rg %>%

count(status) # A tibble: 2 x 2 status n <fct> <int> 1 Active 1881 2 Inactive 410

slide-14
SLIDE 14

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Calculate turnover rate

# Calculate average turnover rate

  • rg %>%

summarize(turnover_rate = mean(turnover)) turnover_rate 1 0.1789612

slide-15
SLIDE 15

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Calculate turnover rate at each level

df_level <- org %>% group_by(level) %>% summarize(turnover_level = mean(turnover)) df_level # A tibble: 7 x 2 level turnover_level <fct> <dbl> 1 Analyst 0.215 2 Assistant Manager 0.0365 3 Director 0 4 Manager 0.0435 5 Senior Manager 0 6 Specialist 0.149 7 Vice President 0

slide-16
SLIDE 16

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Visualize the turnover trends using ggplot

# Visualize the results library(ggplot2) ggplot(df_level, aes(x = level, y = turnover_level)) + geom_col()

slide-17
SLIDE 17

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Let's practice!

HUMAN RESOURCES ANALYTICS: PREDICTING EMPLOYEE CHURN IN R

slide-18
SLIDE 18

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Talent segments

HUMAN RESOURCES ANALYTICS: PREDICTING EMPLOYEE CHURN IN R

Anurag Gupta

People Analytics Practitioner

slide-19
SLIDE 19

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Identifying the talent segments

slide-20
SLIDE 20

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Identifying the talent segments

slide-21
SLIDE 21

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Filtering the dataset

# Select the employees at Analyst and Specialist level

  • rg2 <- org %>%

filter(level %in% c("Analyst", "Specialist"))

slide-22
SLIDE 22

DataCamp Human Resources Analytics: Predicting Employee Churn in R

HR data sources across employee life cycle (ELC)

Employee Life Cycle HR Data Source Talent Acquisition Taleo, ADP Employee Info SAP HR, Workday, SuccessFactors Learning & Development SkillSoft, Cornerstone Rewards & Recognition OC Tanner, Kwench Onboarding, Engagement and Exit Surveys SurveyMonkey, SurveyGizmo

slide-23
SLIDE 23

DataCamp Human Resources Analytics: Predicting Employee Churn in R

HR data architecture

slide-24
SLIDE 24

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Merge datasets using left_join()

glimpse(df1) Observations: 2 Variables: 2 $ emp_id <int> 1, 2 $ level <fct> Analyst, Analyst glimpse(df2) Observations: 2 Variables: 2 $ emp_id <int> 1, 2, 3 $ location <fct> NYC, Atlanta, NYC df3 <- left_join(df1, df2, by = "emp_id") glimpse(df3) Observations: 2 Variables: 3 $ emp_id <int> 1, 2 $ level <fct> Analyst, Analyst $ location <fct> NYC, Atlanta

slide-25
SLIDE 25

DataCamp Human Resources Analytics: Predicting Employee Churn in R

Let's practice!

HUMAN RESOURCES ANALYTICS: PREDICTING EMPLOYEE CHURN IN R