Sub topic 7
Three-Point and PERT Estimates
Assume you know basic project terms such as task, dependency, and schedule, and that you can calculate averages. This chapter shows how to estimate a task when its duration is uncertain.
A single estimate hides uncertainty. A task may take four days in normal conditions, but a new integration could take much longer. Three-point estimation makes that uncertainty visible by asking for three values:
- Optimistic (O): the shortest realistic duration if conditions are favorable.
- Most likely (M): the duration you expect under normal conditions.
- Pessimistic (P): the longest realistic duration when known risks occur.
The values should describe reasonable scenarios, not impossible extremes. For example, “one day if everything goes perfectly” may be too optimistic if that result is unlikely.
The PERT calculation
PERT, or Program Evaluation and Review Technique, uses a weighted average:
\[ E = \frac{O + 4M + P}{6} \]
The most likely estimate receives four times the weight of either endpoint. PERT also estimates the standard deviation, which describes the spread of possible results:
\[ SD = \frac{P - O}{6} \]
For a task estimated as O = 2 days, M = 4 days, and P = 12 days:
\[ E = \frac{2 + 4(4) + 12}{6} = 5\text{ days} \]
\[ SD = \frac{12 - 2}{6} \approx 1.7\text{ days} \]
The expected value is five days, but the wide spread signals substantial uncertainty.
from math import sqrt
tasks = {
"api": (2, 4, 12),
"ui": (3, 5, 13),
"tests": (1, 2, 5),
}
def pert(optimistic, most_likely, pessimistic):
expected = (optimistic + 4 * most_likely + pessimistic) / 6
standard_deviation = (pessimistic - optimistic) / 6
return expected, standard_deviation
total_expected = 0.0
total_variance = 0.0
for name, estimates in tasks.items():
expected, standard_deviation = pert(*estimates)
total_expected += expected
total_variance += standard_deviation ** 2
print(f"{name}: {expected:.1f} days")
total_sd = sqrt(total_variance)
print(f"expected total: {total_expected:.1f} days")
print(f"approximate 90% upper estimate: "
f"{total_expected + 1.28 * total_sd:.1f} days")Combining task estimates
For independent tasks, add their expected values. Add their variances, which are the squared standard deviations, and then take the square root:
\[ SD{\text{total}} = \sqrt{SD1^2 + SD2^2 + \cdots + SDn^2} \]
This avoids simply adding every pessimistic value. It produces a project-level range based on the assumptions in the task estimates.
PERT does not predict the future precisely. It is a model. Its results become misleading when estimates are dependent, risks are missing, or the three values are guesses with false precision. Revisit estimates when new information changes the optimistic, most likely, or pessimistic scenarios.
Exercise
A task has O = 3 days, M = 6 days, and P = 15 days. What are its PERT expected value and standard deviation?
Show answer
The expected value is (3 + 4×6 + 15) / 6 = 7 days. The standard deviation is (15 − 3) / 6 = 2 days.