learning-it by example

Back to the video

Estimate a Deployment: P50 and P90 With Monte Carlo

The plan said 34 days. One simulated project in a hundred finished that fast.

Video #323 ยท Forward deployed engineer interviews

Steps in the video

  1. 0:00 The plan said 34 days. One simulated project in a hundred finished that fast.
  2. 0:34 The idea
  3. 1:27 Setup
  4. 1:52 The plan
  5. 2:25 Finish and sample
  6. 2:51 Run it ten thousand times
  7. 3:13 Compare
  8. 3:57 What this does not show
  9. 4:32 Mistakes to avoid
  10. 4:58 My take and next steps
  11. 5:28 Recap

Files

  • plan.py (16 lines)
  • run.py (16 lines)
  • simulate.py (40 lines)

Download the code (zip)

Tested with

Python 3.12.15

What this does not show

A made-up 12-task plan; the ranges and the triangular shape are assumptions; tasks are treated as independent, so the real spread is likely wider.

Sources

Learning IT by Example.