Built by an HR leader (ex-Amazon, ex-AWS) for CHROs who are tired of Excel that lies.
Live Demo: sanoojcools-workforce-scenario-engine.streamlit.app | Video: Coming soon
CHROs spend 2 days rebuilding headcount models every time Finance asks "what-if". The answer is a single-point estimate with no confidence interval. The board doesn't trust it.
Finance asks: "Can we actually hire 120 engineers in Bangalore in 90 days?"
HR answers: "We'll try."
This engine answers: "No. You have 5 recruiters x 4 reqs x 75% accept = 15 hires/mo max. You will be 42 roles short, costing ₹3.2Cr in lost capacity. Here are 73 Pareto-optimal plans that do work."
Feature 1: Causal Survival + Retention ROI Optimizer
- Replaces flat 15% attrition with Weibull survival curves + Cox-style hazard ratios
- Factors: compa-ratio, tenure peak (12-24mo), performance, Ready Now status, Sales/Ops risk, gender x tech interaction, attrition cascade (contagion)
- Flags:
is_regrettable(EE/GE + Ready Now),compa_ratio,attrition_probability - Retention Budget Optimizer: Set bonus (₹L) and P(prevent) uplift → Get Expected Saves, Cost, ROI, Net Saved CoV. Turns retention from gut feel to ROI math.
Feature 2: Talent Supply Chain + Cost of Vacancy
- Hiring as a constrained queue:
max_hires = recruiters * reqs/recruiter * offer_accept_rate - Tracks
unfilledroles,effective_headcount(ramped), andCoV (Cost of Vacancy) = unfilled * revenue_per_FTE - Red breach banner when capacity exceeded. Bar chart: Hired vs Unfilled per month.
- Slider:
Revenue / FTE / Month (Lakhs)— the number CFOs actually care about.
Feature 5: Pareto Frontier Autonomous Architect
- Instead of 3 fixed scenarios (Status Quo / Growth / Cost Opt), runs 50-500 autonomous trials
- Multi-objective: Min Cost, Max Headcount, Min Risk% (High/Critical)
- Non-dominated sorting → Pareto Frontier (black stars). Bubble color = Risk%
- Output: Top 5 Pareto plans with hires, recruiters, attrition_mult, final HC, cost, unfilled, CoV. One-click apply.
- 12-month Monte Carlo: 1000 runs with fan charts P10/P50/P90 for headcount + cost + CoV
- Tornado Sensitivity: What actually moves final HC and cost
- Restructuring Simulator: Cut by LIFO/performance/cost/level with severance and break-even
- AI Co-pilot: Tool-calling agent for what-if, dept deep-dive, optimize, restructuring
- Board Deck Mode: 16:9 screenshot-ready charts
- Use demo 500 employees (synthetic, no PII)
- Set Recruiters = 2, see Headcount vs Capacity chart diverge + Unfilled stack rise
- Scroll to Retention ROI: Set Target = Critical Only, Bonus = 2L → See positive ROI
- Scroll to Pareto Frontier → Run Autonomous Search (200 trials) → See 73 optimal plans
- Python + Streamlit + Plotly + Pandas + NumPy
- No backend, no DB, no tracking. Privacy-first.
pip install streamlit plotly pandas numpy
streamlit run app.py
# open http://localhost:8501Required: level, department, tenure_months, performance_rating, salary_lakhs, promotion_readiness
Optional: age, gender, employee_id, revenue_per_fte_lakh
Demo generator includes compa_ratio, is_regrettable, attrition_probability automatically.
Now includes: survival baseline, Weibull tenure peak, compa-ratio <0.85 = +12% risk, cascade x1.4 if >2 exits in same dept same month, ramp productivity, CoV 2.5 months revenue, queueing for TA capacity.
Sanuj Krishnan — 14+ yrs HR leadership at Amazon, AWS, Swvl, Trianz. Built this to bridge people strategy and data science.
MIT — Use, fork, commercialize. Star if useful.
v5.0 Roadmap: Feature 3 Promotion Chain Graph + Feature 4 Skills Ledger (Buy/Build/Borrow/Bot) coming next.