Skip to content
Ahmed Alazzawi
Data AnalyticsHR Analytics / Workforce Analytics

Employee & Workforce Analytics

A five-year workforce analytics case study of a fictional U.S. organization built on synthetic data — turnover, retention exposure, compensation positioning, and source reconciliation — using PostgreSQL, Python, and dependence-aware statistical modeling.

Validated separations, 2021–2025
3,539
2,777 voluntary · 762 involuntary
Annual turnover rate, 2025
12.42%
Down from 16.27% in 2021 (−3.85 pp)
Annualized turnover, 1–3 years' tenure
20.66%
vs. 10.44% at 10+ years · descriptive
Employee-month observations
290,014
8,430 employees · 60 months · synthetic

01Overview

A five-year diagnostic of workforce stability and retention exposure

The simulated organization finishes 2025 with meaningfully lower turnover than at the start of the period: annual turnover declined from 16.27% in 2021 to 12.42% in 2025, a 3.85-percentage-point improvement. That improvement does not eliminate uneven exposure — early-tenure employees, entry-level roles, and lower relative pay positions show higher departure rates.

The project follows a complete analytical workflow: a PostgreSQL analytical view feeds Python/Pandas quality checks, exploratory analysis, and statistical and predictive models. It deliberately separates descriptive rates, statistical evidence, model performance, and business implications, and documents the source discrepancies that any dashboard built on this data would need to disclose.

Results are published as two companion documents: an Executive Business Report for business and HR leadership, and a Comprehensive Statistical & Analytical Report for analysts and technical reviewers.

02Objectives

Analytical objectives

The analysis evaluates what the workforce data contain, how reliably different sources agree, which measurable patterns coincide with turnover and compensation outcomes, and how much information remains after statistical adjustment.

Analytical questions

  1. 01How did headcount, turnover, and separation type change between 2021 and 2025?
  2. 02Do turnover rates vary across organizational tenure, job level, department, compensation position, performance status, and time in role?
  3. 03Which differences are descriptively substantial, which persist in cluster-aware uncertainty analysis, and which remain after multivariable adjustment?
  4. 04How are annual salary adjustments distributed, and what explains changes in cross-sectional average salaries?
  5. 05How well do simple regression and classification models describe or predict the simulated outcomes?
  6. 06Which data discrepancies and modeling limitations must accompany any downstream business interpretation?

03Dataset & scope

Dataset and analytical scope

The source is a synthetic workforce simulation of a fictional U.S. organization, observed in monthly snapshots from January 2021 to December 2025. It does not contain records from an actual employer.

Employee-month rows
290,014
21 source columns
Unique employees
8,430
Observed across five years
Monthly periods
60
Jan 2021 – Dec 2025
Duplicate employee-month keys
0
Structural integrity check

Different questions use different populations, and the reports keep them distinct. Employee-month rows are repeated observations of the same people, so the analysis never treats them as independent individuals.

Units of analysis

Analytical unitSize
Full monthly extract290,014 employee-month rows
Validated terminated employee cohort3,539 employees
December 2025 active snapshot4,867 employees
Latest available active row per person8,306 employees
Next-month separation panel281,608 rows · 8,244 people · 3,415 events
April eligible salary comparisons23,364 employee-year comparisons

04Methodology

Data architecture and analytical methodology

PostgreSQL structures and serves the data; Python performs statistical profiling, visualization, modeling, and final reconciliation.

The Python notebook connects to the PostgreSQL database workforce_analytics via psycopg and reads the analytical view analytics.vw_employee_monthly. Separation-type analysis also reads a separately supplied separation-history file and explicitly matches its employee IDs against the validated termination cohort. The upstream PostgreSQL scripts are published in the project repository; the statistical report notes that this upstream SQL was not separately audited within the report itself.

Annual turnover divides recorded separations by mean monthly active headcount. Segment comparisons use annualized exposure rates (separations ÷ active employee-months × 12 × 100). Because employee-months from the same worker are not independent, uncertainty is estimated by resampling employees, and regression standard errors are clustered by employee.

Analytical steps

  1. 01Type conversion, duplicate-key checks, and missingness profiling — observed missingness is preserved rather than imputed by assumption.
  2. 02Cross-source reconciliation of active status, separation history, and redundant career fields.
  3. 03Descriptive turnover by year, separation type, job level, tenure, department, compa-ratio, performance status, and time in role.
  4. 04A next-month separation panel linking characteristics in an active month to termination in the following month.
  5. 05Exploratory chi-square tests with Cramér's V, reported as naive because of repeated observations.
  6. 06Employee-cluster bootstrap confidence intervals (500 replications) for key rate differences.
  7. 07A binomial GLM with logistic link and employee-clustered robust standard errors for adjusted exit odds.
  8. 08Salary-change OLS models, an exact workforce-composition decomposition of average salary, and a raise-participation logistic model with a 2025 temporal holdout.
  9. 09Pearson correlations on each employee's latest active observation, excluding the redundant promotion-timing field.

05Selected KPIs

Selected workforce KPIs

Headline indicators for the simulated organization. Salary figures are base pay only and compare changing workforce populations, not raises for a typical employee.

Five-year recorded separations
3,539
Validated cohort
Voluntary share of separations
78.5%
2,777 of 3,539
Active workforce, Dec 2025
4,867
Monthly snapshot measure
Annualized base-salary total, Dec 2025
$486.0M
Excludes benefits, incentives, taxes
Mean annual base salary, Dec 2025
$99,861
Median $88,600
Change in workforce mean salary
+8.55%
Jan 2021 → Dec 2025 · population change
Annualized turnover, job level L1
19.86%
vs. 12.51% at L3
Employee-months without a rating
13.77%
Concentrated among newer employees
Annual employee turnover rate by year, 2021–2025
Fig. 01Annual separations divided by average observed monthly active headcount.Full size
Monthly active workforce headcount, 2021–2025
Fig. 02Observed monthly active headcount: 4,923 in January 2021, a low of 4,669 in April 2022, and 4,867 in December 2025.Full size

Annual turnover rate

YearSeparationsMean active headcountTurnover rate
20217804,793.8316.27%
20227254,728.9215.33%
20237044,753.5014.81%
20247304,767.0015.31%
20256004,829.6712.42%

06Workforce findings

Where retention exposure is concentrated

The improvement in turnover was led by fewer voluntary exits, while early organizational tenure, entry-level roles, lower relative pay, and low or missing performance ratings coincide with higher separation rates.

Annual voluntary and involuntary turnover rates, 2021–2025
Fig. 03Annual voluntary and involuntary exit rates, using the same headcount denominator.Full size

Voluntary turnover fell from 12.66% in 2021 to 9.59% in 2025; involuntary turnover fell from 3.61% to 2.84%. In the adjusted model, 2025 still shows lower exit odds than 2021 (OR 0.808, 95% CI 0.721–0.905) — an association with the calendar year, not an explanation of what changed.

Early tenure and entry-level roles

Annualized employee turnover by organizational-tenure segment
Fig. 04Annualized observed separation rates by organizational-tenure segment.Full size

Annualized turnover was 19.44% in the first year of tenure, 20.66% at one to three years, and 10.44% at ten or more years — the highest rate falls after the first year, not within it. The pattern persists after adjustment: organizational tenure of 0–1 years (OR 2.206) and 1–3 years (OR 1.933) show higher exit odds than 10+ years.

Entry-level employees had the highest clearly supported job-level rate (L1 19.86% vs. L3 12.51% and L4 10.48%), but the adjusted L1 vs. L3 contrast is smaller (OR 1.137). L7 and L8 have very few departures and do not support stable comparisons.

Departments differ more in volume than in rate: Human Resources had the highest rate (15.97%) while Operations generated the most exits (859). Adjusted department contrasts were not individually statistically distinguishable from the baseline at the nominal 5% level.

Pay position, performance, and time in role

Next-month separation rate by compa-ratio group
Fig. 05Monthly next-month separation rates by compensation-to-midpoint group.Full size
Next-month separation rate by performance rating, including a missing-rating category
Fig. 06The “Missing” category is retained intentionally; it is not interpreted as poor performance.Full size

Three signals were examined at three levels of evidence: the descriptive next-month exit rate, an employee-cluster bootstrap interval for the difference, and an adjusted odds ratio from the multivariable model. All three bootstrap intervals exclude zero, and each adjusted odds ratio stays above 1 — consistent associations within the simulation, not evidence that changing pay, ratings, or role timing would change exits.

Missing performance ratings also coincide with higher exits (1.764%; adjusted OR 2.011 vs. high performance), but missingness mainly reflects review eligibility among newer employees and is not interpreted as low performance. The time-in-role measure is current-role tenure; the stored promotion-timing field is an exact duplicate of it, so no promotion-delay effect can be identified.

Evidence by level: descriptive, bootstrap, and adjusted

ContrastNext-month exit rateDifference, pp (bootstrap 95% CI)Adjusted OR (95% CI)
Compa-ratio <0.80 vs. 1.10+1.534% vs. 0.961%+0.573 [+0.295, +0.833]1.542 [1.240, 1.917]
Low vs. high performance1.832% vs. 0.681%+1.151 [+0.955, +1.332]2.315 [1.834, 2.923]
Role tenure 13–24 vs. 25–48 months1.583% vs. 1.081%+0.502 [+0.357, +0.622]1.228 [1.100, 1.372]

07Compensation

Compensation: composition explains much of the average

Workforce mean base salary rose from $91,998 in January 2021 to $99,861 in December 2025 (+8.55%), and the median from $81,370 to $88,600 (+8.89%). These compare two different workforce populations and are not raises earned by continuously employed individuals.

Distribution of positive salary increases
Fig. 07The number of increases is an event count across months, not a unique-person count.Full size

An exact decomposition separates within-employee pay changes from the effects of entrants and exits. In April 2025 the mean rose $3,395.27: +$3,548.24 from continuing employees, −$226.66 from entrants, and +$73.69 from exits. In May 2025 the mean fell $594.95 with zero within-employee change, driven mainly by entrants (−$755.27) and partly offset by exits (+$160.31).

Among 18,731 positive consecutive-month salary changes, the median increase was 3.770% and the mean 4.823%. All of them occurred in April because the generator defines an April merit cycle — a simulation design rule, not a discovered payroll pattern. Raise participation and amounts differ sharply by prior rating and compa-ratio, but much of that association is built into the simulation: the generator's merit matrix uses both.

08Model performance

What the models can and cannot support

The turnover model ranks outcomes better than random in sample, but only modestly; it is useful for adjusted descriptive interpretation, not for predicting individual departures.

Turnover model ROC-AUC
0.6318
In sample · no out-of-sample validation
Relative Brier improvement
0.27%
0.011948 vs. 0.011980 baseline
Salary-change OLS R²
0.364
20,522 obs · 6,193 people
Raise-participation ROC-AUC
0.8889
2025 temporal holdout

The raise-participation model was trained on 2021–2024 and tested on 2025 (3,907 observations, 91.43% raise prevalence). Its high PR-AUC (0.9894) partly reflects that prevalence; recall for the no-raise class was 7.46% at a 0.50 threshold and 66.57% at 0.90. This holdout applies only to raise participation and does not validate the turnover model.

09Data quality

Data quality and reconciliation findings

The panel is structurally clean on several checks yet carries cross-source and construct-validity disagreements that must stay visible in any reporting built on it.

The 24 unmatched active employees have their last monthly observations between August and November 2025; the cause has not been established by identifying the mismatch. Neither count is silently substituted for the other.

Missing values by field

FieldMissing recordsMissing share
Latest performance rating39,92613.77%
Unscheduled absence days4,3611.50%
Average weekly hours2,9341.01%
Manager ID600.02%

Reconciliation findings

  1. 01Active count mismatch — 4,891 employees are active in the final employee status versus 4,867 in the December 2025 monthly snapshot, leaving 24 unmatched.
  2. 02Separation history — 3,580 source records versus 3,539 validated terminations; all 3,539 match a history record, while 41 source IDs fall outside the validated cohort.
  3. 03Redundant career field — role tenure and months since last promotion are exactly equal in all 290,014 rows, so the latter is retained for traceability but excluded from models.
  4. 04Performance-rating coverage — 13.77% of rows lack a rating; coverage is 0.00% at 0–5 months of tenure and 100.00% from 24 months onward.

10Business implications

Business implications

The most defensible management response is a targeted measurement and investigation program, not a single company-wide retention initiative or a claim that one policy will solve turnover.

Recommended management agenda (illustrative, for the fictional organization)

  1. 01Early-tenure experience — review the 6-, 12-, and 24-month employee experience; compare managers and role families rather than assuming a single cause.
  2. 02Pay-positioning review — evaluate persistent low compa-ratio groups within comparable jobs, markets, and performance levels.
  3. 03Workload and role clarity — investigate high-volume operational teams and role transition points through manager and employee feedback.
  4. 04Consistent performance-data coverage — separate “not yet rated” from true missing or defective records and monitor review eligibility.
  5. 05Headcount reconciliation — reconcile monthly snapshot counts to end-of-period employee status before publishing an official dashboard.

Proposed execution sequence

  1. 01First 30 days — establish a trustworthy baseline: validate the 24-person active-count discrepancy and unmatched separation records, and publish consistent definitions for headcount, turnover, compa-ratio, and review eligibility.
  2. 02Days 31–60 — investigate with business partners: review the largest exit-volume teams alongside the highest-rate segments and test whether patterns have a plausible operational explanation.
  3. 03Days 61–90 — test and measure: pilot a small intervention where evidence supports it, defining the comparison population and success measures before launch, without claiming causation from an uncontrolled before/after comparison.
01

Data

Synthetic workforce simulation

Fictional U.S. organization — not an actual employer · January 2021 – December 2025

  • Monthly employee snapshots: status, job level, department, tenure, and current-role tenure
  • Base salary and compa-ratio (salary relative to the modeled pay-band midpoint)
  • Latest performance rating, unscheduled absence, and average weekly hours
  • Separation history with voluntary and involuntary type
02

Limitations

Limitations

  • Synthetic, parameterized workforce: relationships reflect simulator assumptions and must not be generalized as empirical HR findings.
  • Associations only: descriptive rates, bootstrap intervals, and adjusted odds ratios do not establish causal effects.
  • The turnover model has modest in-sample discrimination, a negligible Brier gain, and no out-of-sample validation.
  • Exits are modeled as all-cause, mixing voluntary and involuntary mechanisms.
  • Naive chi-square tests overstate independent evidence; bootstrap intervals are not adjusted for multiple exploratory comparisons.
  • Performance-rating missingness is tenure-related, so complete-case comparisons can be biased.
  • Sparse L7/L8 groups and the generator's April salary cycle limit what can be inferred from those patterns.
  • Upstream view and staging SQL were not separately reviewed within the statistical report.
03

Technologies

  • PostgreSQL
  • SQL
  • Python
  • Pandas
  • Statistical Analysis
  • Data Visualization