People Analytics · Machine Learning · Power BI

Turning $12.3M in turnover cost into a retention strategy.

An end-to-end analytics project that audits pay-for-performance, prices the true cost of losing talent, and predicts who is likely to leave next, delivered as a Python ML pipeline and a 3-page executive Power BI dashboard.

Pythonpandasscikit-learn Power BIDAXPower Query Random ForestCross-ValidationGit
Total Turnover Cost
$0
237 exits · 16.12% attrition
Regrettable Loss
0%
$6.46M from 87 key-talent exits
Underpaid Top Performers
0
25.5% below peer median pay
Recalibration ROI
0×
$401K protects $1.58M
The Business Problem

Three questions leadership couldn't answer

The organization of 1,470 employees had above-benchmark attrition but no view of what it cost, whether pay rewarded performance, or who would leave next.

01 · COST

What is turnover really costing us?

Headcount reports showed 237 exits but not the dollar impact, or which losses actually hurt.

02 · FAIRNESS

Do we actually pay for performance?

Top performers got bigger raises, yet they left just as often. Something in the pay structure was broken.

03 · RISK

Who is about to leave?

HR reacted to resignations after the fact. They needed a ranked list of at-risk talent to act on now.

Dashboard Page 1 · Turnover Economics

Over half the cost comes from people we wanted to keep

Each exit was priced using SHRM replacement multipliers (0.75× to 1.25× annual salary). Regrettable exits cost $74K each, nearly 1.9× a standard exit.

Turnover Cost by Job Role

Total replacement cost of departed employees
Sales Executives alone account for $4.63M (37.5%) of all turnover cost.

Regrettable vs. Standard Turnover

Share of $12.33M replacement cost
36.7% of exits drive 52.4% of the financial loss.

Attrition Rate: Overtime vs. No Overtime

By department
Overtime workers quit at 30.5% vs. 10.4%, a 2.9× multiplier.

The Early-Career Retention Cliff

Attrition rate by tenure band
43% of all exits happen in the first 2 years (29.8% attrition).
Dashboard Page 2 · Pay-for-Performance Audit

The "Merit Hike Mirage"

Top performers receive bigger raises, but those raises land on compressed salaries. Within the same role and level, they earn no premium at all, and they leave at the same rate.

Rating 3 vs. Rating 4: Side by Side

Core contributors vs. outstanding performers
MetricRating 3Rating 4
Headcount1,244226
Avg salary hike14.00%21.85%
Median monthly pay$4,966$4,777
Compa-ratio (role & level)1.031.01
Stock option level0.790.80
Attrition rate16.08%16.37%
+7.85 pts more raise, but zero retention advantage.

Recalibration Budget by Department

Annual cost to lift 30 underpaid top performers to 1.00 compa-ratio
$400,968/yr protects $1,577,340 in replacement exposure: a 3.93× return.
Dashboard Page 3 · Predictive Flight Risk

From reacting to resignations to predicting them

A Random Forest model scores every employee's probability of leaving, using 5-fold out-of-fold cross-validation so no one is scored by a model that saw their outcome.

Top 10 Drivers of Attrition

Held-out permutation importance · ROC-AUC 0.814
Burnout, not pay alone, is the #1 predictor of who leaves.

9-Box Talent & Retention Matrix

1,233 active employees · performance × predicted risk
Low Risk
Moderate
High / Critical
Rating 4
Top
174
Future Leaders
Fast-track
14
Watchlist
$669K exposure
1
Critical Target
$15.8K exposure
Rating 3
Core
951
Bedrock
Retain & reward
84
Steady
Engagement focus
9
Burnout Risk
Workload relief
15 top performers are at risk right now, representing $684,780 in exposure.
The Deliverable

A 3-page executive Power BI app

Full-HD canvas, custom sidebar navigation, hover-animated KPI cards, a burnout risk quadrant and an AI decomposition tree for root-cause drilldown.

How It Was Built

From raw HR data to executive decisions

1

Ingest

1,470 employee records, 35 HR attributes.

2

Engineer

Compa-ratio, Burnout Index, SHRM replacement cost, stagnation flags.

3

Model

Random Forest vs. Logistic Regression, 5-fold out-of-fold scoring.

4

Segment

9-box matrix of performance × predicted flight risk.

5

Visualize

DAX measures and a 3-page interactive Power BI report.

Python & ML

  • pandas, NumPy
  • scikit-learn
  • Random Forest
  • Permutation importance

Power BI

  • DAX measures
  • Power Query
  • Decomposition tree
  • Custom navigation

HR Analytics

  • Compa-ratio analysis
  • SHRM cost modeling
  • 9-box talent matrix
  • Attrition economics

Validation

  • Stratified K-Fold CV
  • ROC-AUC 0.814
  • Baseline comparison
  • Leak-free scoring
Recommendations

Five actions, each tied to a number

1

Off-cycle pay recalibration

Lift 30 underpaid top performers to peer-median pay.

3.93× ROI$401K protects $1.58M
2

Stay interventions for at-risk talent

Target the 15 top performers in the Critical and Watchlist boxes within 30 days.

$685Kexposure protected
3

Overtime circuit breakers

Cap sustained overtime in Sales (37.5% attrition) and R&D (27.3%).

2.9×risk multiplier removed
4

First-24-month onboarding guardrails

Structured 90/180/365-day check-ins for early-tenure employees.

$3.58Mearly-exit cost pool
5

Five-tier performance ratings

Replace the compressed 3-or-4 scale so pay can actually differentiate.

100%rated 3 or 4 today

Explore the full project

The Python pipeline, enriched dataset and Power BI file are all open on GitHub.