Step-by-step answer
Stretch 30–45 min5 stepsSimulate retry granularity
A numpy Monte Carlo of total page parses per matter when retries happen per page, per document or per matter, checked against the closed form n/(1-p)^n. Document-level retries double the 48-page lease's cost at a 1.43% page failure rate; matter-level retries double the whole matter's cost at 0.31%.
Back to the exercise