Apply the methodLesson 31 of 76 · 8 min
Will the project finish on time?
Propagate uncertain task durations into a project deadline probability.
A project estimate needs a rule for combining task durations. Start with three tasks that must run in sequence, so the project finishes when their durations have been added. The scheduling assumption is part of the model.
Each task uses an invented triangular distribution with a minimum, mode and hard maximum. One trial draws all three task durations and adds them. A deadline probability counts how many trial totals meet the specified boundary.
Report a central duration and an upper quantile alongside the deadline probability. Those summaries answer different planning questions. This first model assumes independent durations and no shared staffing or rework; later lessons introduce dependencies and parallel work rather than hiding them in an arbitrary extra margin.
Does adding the three most likely durations give the most likely project duration automatically?
Write a prediction (optional)
Seeded teaching simulation
Select Run Python below with the code unchanged.
A saved draft is open. To run the published example, open Tools and select Restore example. Recover draft brings your code back.
Execution error
Technical error details
Your result
Published example output
This result comes from the original Python. Your runs appear above. Build environment ↗
Median/P90 completion (days): [14.286 17.394] Estimated P(finish <= 16 days): 0.7588 Mean task durations: [4.677 6.005 3.674]
Read the first result
The sum’s distribution comes from the full task distributions. A sum of modes is not generally the mode or a chosen quantile of the sum.
Try an edit
Replace rng.triangular(3, 5, 10, 20000) with rng.triangular(3, 5, 16, 20000). Select Run Python again. Compare Median/P90 completion (days) and Estimated P(finish <= 16 days) across runs. Why can the deadline chance change when only the second task’s upper bound increases?
Scope. All task distributions and hard bounds are assumptions. The model omits rework, resource conflicts and common causes.
Try a fresh case
Two tasks must run one after the other. Which trial calculation matches?
Need a hint?
Hint 1
Draw the order in which work can occur.
Hint 2
Ask whether one task can start before the other finishes.