When I work on workforce planning, attrition is one of the assumptions that directly affects headcount and workforce cost.
A common approach is to use a fixed attrition percentage across departments. For example, if Finance assumes 12% annual attrition, we apply that percentage to the planned headcount and estimate how many employees may leave.
This is simple to maintain in a planning model, but it assumes the same attrition rate works across Sales, Technology, Operations, Finance and HR.
I wanted to check what happens when I use employee-related data to estimate attrition separately for each department instead of applying one percentage everywhere.
I also want to understand how the difference affects replacement cost in a workforce plan.
For this experiment, I use Python and synthetic worker data. I am not running the machine learning model inside Workday Adaptive Planning.
How I build the model
I start by generating a dataset of 1,500 synthetic workers across five departments.
Each worker has information such as department, years of employment, compensation ratio, performance rating, months since promotion, overtime hours and annual compensation.
The compensation ratio represents salary compared with a reference market midpoint. For example, a ratio of 1.0 means the salary matches the midpoint, while 0.9 means it is 10% below.
I also generate a departure indicator showing whether the worker leaves or stays.
The departure outcomes are created using a synthetic formula that considers the employee attributes. They are not based on real employee behavior.
I use a Random Forest classifier from scikit-learn for the experiment.
The model uses 70% of the records for training and keeps 30% for testing. That gives me 1,050 training records and 450 test records.
I configure 300 trees with a maximum depth of six and use a fixed random seed so I can reproduce the result.
The model gives me a score for each worker representing its estimated likelihood of departure in this simulated dataset.
I then compare the results against a flat 12% attrition assumption.
What the dashboard shows

The dashboard contains four charts. I use them to understand which variables the model relies on, how predicted attrition compares across departments, how the scores differ between leavers and non-leavers, and what happens to replacement cost.
The first chart shows feature importance.
Compensation ratio has the highest importance at approximately 40%. Months since promotion comes next at around 16%. Overtime hours and tenure each contribute around 14%.
Department and performance rating have lower importance in this fitted model.
This is useful because it shows which variables the model uses most when making predictions.
However, feature importance is not the same as proving why employees leave. These scores describe how the model works with the generated data. They do not establish a cause-and-effect relationship.
The second chart compares the 12% planning assumption against predicted and observed attrition rates for each department.
| Department | Model Predicted | Observed in Synthetic Data |
|---|---|---|
| Sales | 17.8% | 21.3% |
| Technology | 19.3% | 20.5% |
| Operations | 15.6% | 14.2% |
| Finance | 11.3% | 4.9% |
| HR | 12.9% | 9.3% |
The difference between departments is clear.
Sales and Technology have much higher attrition in the generated data than the flat 12% assumption. Finance has considerably lower observed attrition.
The model reflects some of these differences, although it does not match every department exactly.
For Finance, for example, the predicted attrition is 11.3%, while the observed attrition is only 4.9%.
That is a meaningful difference. It tells me that I should not assume a model is accurate for every department just because its overall accuracy metric looks reasonable.
How I check model accuracy
I use ROC AUC to evaluate how well the model separates workers who leave from workers who stay.
The result is:
ROC AUC = 0.81
An AUC of 0.5 represents random ranking performance, while 1.0 represents perfect separation.
The 0.81 result tells me that the model has useful ranking ability on the 450 held-out test records.
The third chart shows the distribution of predicted risk scores for workers who stay and workers who leave.
The workers who leave generally have higher scores, but the two distributions overlap.
This is important. Even when the model identifies useful patterns, it cannot tell us with certainty whether a particular employee will leave.
AUC also does not confirm that a predicted 20% probability corresponds to a real-world departure rate of 20%. That requires a separate probability calibration test.
What happens to replacement cost?
This is the part I find most relevant for financial planning.
A workforce forecast needs to convert headcount movements into financial assumptions.
For this experiment, I assume that replacing a departing worker costs 50% of annual CTC.
I use this only as a test assumption. It is not a standard replacement-cost rate established by Workday or this model.
For the flat planning method, I calculate:
Replacement Cost = Headcount × 12% × Average Annual CTC × 50%
For the model-based calculation, I replace the 12% assumption with the department’s average predicted attrition rate.
The dashboard shows the following totals:
| Method | Estimated Replacement Cost |
|---|---|
| Flat 12% Assumption | ₹12.48 crore |
| Model-Based Calculation | ₹17.23 crore |
| Difference | ₹4.74 crore |
The model-based amount is approximately 38% higher than the flat planning estimate.
In the chart, Sales and Technology account for much of the increase.
This makes sense because those departments have higher predicted attrition rates and relatively large worker populations in the generated data.
There is also an important limitation in this calculation. I use department-level average probabilities and average compensation, rather than calculating expected cost separately for each worker. The model scores also include the training records.
So ₹17.23 crore is an illustrative planning estimate, not an independently validated future cost forecast.
Still, the comparison shows why one attrition percentage can produce a different workforce cost estimate from a department-based assumption.
How I would use this with Workday Adaptive Planning
In Workday Adaptive Planning, workforce models can use employee or position data, headcount accounts, compensation assumptions and calculated workforce costs.
Workday supports modeled sheets for record-based personnel planning and cube sheets for reviewing aggregated workforce information.
For an actual implementation, I would first review the workforce data available from Workday HCM or the existing workforce planning model.
I would check the employee population, department mappings, historical departures and compensation definitions.
Then I would prepare the required data outside Adaptive Planning and test the Python model using historical periods.
I would not directly replace the existing attrition assumption after one experiment.
Instead, I would compare the model’s department-level estimates with the business assumptions already used by Finance and HR.
If the results remain reliable across multiple periods, I could prepare department-level planning assumptions for review and import approved values into a separate Adaptive Planning version or assumption structure.
I would also reconcile the headcount movements and workforce costs after loading them.
The model output should support the planning discussion, not automatically determine decisions about individual employees.
This notebook does not connect to Workday HCM or Adaptive Planning. It demonstrates the Python calculation and cost comparison using generated data.
What I would test next
The first thing I would improve is the way I validate the model.
The AUC comes from the held-out test records, but the department-level risk and cost calculations use predictions across the full synthetic population, including the training records.
For a stronger test, I would calculate department-level predictions and costs on records the model has not seen during training.
I would also test the model across different time periods rather than relying on one random train-test split.
Another area is probability calibration. If I want to use predicted probabilities for financial planning, I need to check whether the predicted attrition rates are close to the actual departure rates.
I would also compare the model with simpler alternatives, such as historical department-level attrition rates.
There is no reason to use a more complex model if a simpler method produces equally reliable planning assumptions.
For real employee data, I would need additional controls around privacy, fairness, access and appropriate use. The model should not be used to make individual employment decisions or label employees for action.
Final observation
In this experiment, the Random Forest model achieves an AUC of 0.81 on the test dataset.
The replacement cost estimate increases from ₹12.48 crore under the flat 12% assumption to ₹17.23 crore using the model’s department-level predictions.
The result does not establish that the model is a better forecasting method in production. It shows how different attrition assumptions affect workforce cost in this synthetic example.
What I find useful is being able to compare the assumptions and see where the difference comes from.
Instead of using the same rate across every department, I can test whether separate assumptions are justified by the data.
Before bringing those values into a workforce planning model, I still need to validate the predictions, review the business definitions and confirm that the resulting headcount and cost calculations make sense.
That is the approach I want to follow: build a small model, test the numbers, understand the limitations and then decide whether it adds value to the planning process.
All worker records, attrition outcomes, compensation values and replacement costs in this experiment are synthetic. No real employee or client data is used.
Thanks for reading- Krishna Singh