Case study · Domenico Perroni
All case studies · PDF · Italiano
People analytics
Who leaves, and may a model say who?
Client: A shared-services organisation of 4,000 employees in Italy, Poland, Germany and Spain (synthetic), whose HR team wants a retention model and has to decide whether it may use one.
Who leaves and when, can a model warn in time, is it fair, and what may HR do with it under the AI Act?
0.75AUC on quarters the model never saw; counting the same signs gets 0.72
38%of next quarter's resignations in the top 10% of scores
77 of 100hires still here after a year; 94 if early leavers are miscounted
88%of flagged people stay: why the card rules out decisions

What I did
- Fitted an attrition model on one quarter and scored it on the next two, which it had never seen, against a checklist of the same signs and the data's own ceiling.
- Audited it by sex, age, country and working time, and wrote its model card: the provider's answers to the 14 questions the AI Act register asks of a high-risk system.
- Measured how long people stay with survival analysis on tenure, counting people hired before the data began from the tenure they had then.
- Delivered a browser tool for the client's own HRIS export, teams never names, and a workbook reconciled with Python.
What it found
- Most of the value is in knowing which signs to watch: the weights add 0.03 of AUC over counting them, and the model closes 84% of the gap between chance and the ceiling.
- Country of work is not an input, so Germany is over-read, 3.6% predicted where 2.2% resign. Fixing it is a significant change under the AI Act, so the provider's duties come first.
- People paid below band stay 22.4 of their first 36 months against 31.3, the same effect in year one as after it.
With real data
- Inputs as they stood on each scoring date, with pay position changing at every raise.
- A decision on the engagement input: an individual survey score breaks the confidentiality most surveys promise.
How it is checked. Statistics written from scratch and tested against closed forms (AUC as Mann-Whitney, the Cox score test as the log-rank test); the tool agrees with Python on 1,530 values, the workbook on 121, recalculated by LibreOffice in CI.
People analyticsModel validationSurvival analysisEU AI ActPython, no dependencies
Synthetic or public data; not legal, pay or investment advice. Figures as published on 24 November 2026. Domenico Perroni · HR advisory, people analytics, reward · Kraków · d0m3n1c0x.github.io