Sub topic 3
Reading a confidence level from the mean and standard deviation
This chapter assumes you know how to compute a PERT mean and standard deviation for each task, and that you understand task, duration, dependency, and critical path.
A path's expected duration is the sum of its task means. Its variance is the sum of its task variances, and its standard deviation is the square root of that variance. If the path duration is roughly normal, you can read a confidence level from these two numbers. The 85% duration is the mean plus 1.036 standard deviations, because 1.036 is the z-score that leaves 85% of the normal curve below it.
from math import sqrt
from statistics import NormalDist
# (optimistic, most likely, pessimistic) in days for tasks on one path
tasks = [(2, 4, 8), (3, 5, 13), (1, 2, 3)]
mean = sum((o + 4 * m + p) / 6 for o, m, p in tasks)
variance = sum(((p - o) / 6) ** 2 for o, m, p in tasks)
std_dev = sqrt(variance)
p85 = NormalDist(mean, std_dev).inv_cdf(0.85)
print(round(mean, 2), round(std_dev, 2), round(p85, 2)) # 12.33 1.97 14.38Getting good O, M and P values from people
The method is only as good as its inputs. Ask the estimator for the most likely value first, then ask for the optimistic and pessimistic values. Use concrete conditions, such as "everything goes right" and "the usual problems occur", rather than abstract percentages. Check that O is less than M and M is less than P. If P is only slightly larger than M, the estimator may be leaving out known risks.
Assumptions and limitations
Independence
The variances add only if task durations are independent. If two tasks share a resource, a supplier, or a risk, their delays are correlated, and the true path spread is wider than the sum suggests.
Critical path shifts
PERT calculates the path that looks longest on average. Once you add uncertainty, another path may have a higher chance of being the longest. The 85% figure for the planned critical path can understate the risk of the project as a whole.
Bias
Estimators tend to set optimistic values too close to the most likely value. Compare past actual durations with past estimates before you trust the spread.
Going further: Monte Carlo simulation
Monte Carlo simulation draws a random duration for each task from its three-point distribution, adds the draws along each path, and repeats thousands of times. This handles correlated tasks and shifting critical paths, which the normal approximation cannot. The 85th percentile of the simulated totals is the answer you want.
Exercise
Exercise
A path has a mean of 10 days and a standard deviation of 2 days. What duration gives an 85% chance of being met?
Show answer
10 + 1.036 × 2 = 12.07, so about 12.1 days.