Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Introduction to Predictive Analytics in HR | Predictive People Analytics
Python for People Analytics

bookIntroduction to Predictive Analytics in HR

Swipe to show menu

Predictive analytics is a powerful branch of data analysis that focuses on using historical data to forecast future outcomes. In the context of People Analytics, predictive analytics helps you anticipate key HR outcomes such as employee attrition, performance, or engagement. By leveraging patterns in existing data, you can move beyond simply describing what has happened to making informed predictions about what is likely to happen. This approach provides HR professionals with actionable insights, enabling proactive strategies to retain top talent, improve performance, and optimize workforce planning.

123456789101112
import pandas as pd # Create a simple DataFrame with features relevant for attrition prediction data = { "age": [25, 34, 45, 29, 41], "tenure": [2, 6, 10, 3, 8], "satisfaction": [0.8, 0.6, 0.4, 0.9, 0.5], "attrition": [0, 1, 1, 0, 1] # 0 = stayed, 1 = left } df = pd.DataFrame(data) print(df)
copy

When building predictive models in HR, the choice of featuresโ€”also called variables or predictorsโ€”is critical. Features such as age, tenure, and satisfaction are selected because they have been shown to correlate with outcomes like attrition. For instance, employees with lower satisfaction scores or shorter tenure may be more likely to leave. By carefully selecting relevant features, you ensure the model focuses on the most informative factors, which increases the accuracy and usefulness of predictions.

12345678
# Separate features (X) and target (y) for modeling X = df[["age", "tenure", "satisfaction"]] y = df["attrition"] print("Features (X):") print(X) print("\nTarget (y):") print(y)
copy

1. What is the goal of predictive analytics in HR?

2. Fill in the blank: In predictive modeling, features are the ____ used to make predictions.

3. Why is feature selection important in predictive analytics?

question mark

What is the goal of predictive analytics in HR?

Select the correct answer

question-icon

Fill in the blank: In predictive modeling, features are the ____ used to make predictions.

question mark

Why is feature selection important in predictive analytics?

Select all correct answers

Everything was clear?

How can we improve it?

Thanks for your feedback!

Sectionย 3. Chapterย 1

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Sectionย 3. Chapterย 1
some-alt