Model · People Analytics
Both a class-weighted logistic regression and a random forest were trained on the same 80/20 stratified split, which kept the dataset's 16.1% attrition rate consistent in both the training data and the 294 held-out test employees. Logistic regression is the model we shipped — it's explainable to HR without a data science background, and it catches more of the people who actually leave.
Ranks at-risk employees well above chance
Share of actual leavers correctly flagged — the metric we optimized for
Below the 84% "everyone stays" baseline — expected, and the right trade
About 1 in 3 flags is a real leaver
Random forest scored higher on raw accuracy (83.3%) but recalled only 38.3% of leavers — it would have missed 6 in 10 people who actually left. Logistic regression trades some accuracy for the ability to actually catch them, and its coefficients are simple enough to explain to HR in a sentence, not a black box.