Sub topic 6
Combining Tasks on a Path: Sum the Means, Sum the Variances
At the intermediate level, this chapter assumes you know basic scheduling terms such as task, duration, dependency, and critical path. You should also be comfortable with averages, squares, square roots, and the basic idea of a probability distribution.
A single task estimate is uncertain. A path contains several uncertain tasks, so the path duration is uncertain too. PERT combines the uncertainty from each task into one estimate for the complete path.
Why path aggregation matters
Suppose a path contains three dependent tasks:
- Task A must finish before Task B starts.
- Task B must finish before Task C starts.
- The path duration is the sum of all three task durations.
If each task takes exactly its expected duration, adding the expected durations is straightforward. Real tasks vary, however. The path might finish earlier or later than its expected value.
PERT represents each task with:
- A mean, or expected duration.
- A variance, which measures the amount of uncertainty.
- A standard deviation, which is the square root of the variance.
For a task with optimistic duration O, most likely duration M, and pessimistic duration P:
- Expected duration:
E = (O + 4M + P) / 6 - Standard deviation:
σ = (P - O) / 6 - Variance:
σ²
The expected duration describes the center of the estimate. The variance describes its spread.
Sum the expected durations
For tasks that run sequentially on one path, add their expected durations:
E_path = E₁ + E₂ + ... + Eₙ
Consider this path:
| Task | O | M | P |
|---|---|---|---|
| Design | 2 | 4 | 8 |
| Build | 3 | 5 | 13 |
| Test | 1 | 2 | 3 |
Their expected durations are:
- Design:
(2 + 4 × 4 + 8) / 6 = 4.33days - Build:
(3 + 4 × 5 + 13) / 6 = 6.00days - Test:
(1 + 4 × 2 + 3) / 6 = 2.00days
The path mean is therefore:
4.33 + 6.00 + 2.00 = 12.33 days
This is the expected path duration, not a guaranteed completion time.
Sum the variances
Standard deviations do not usually add directly. For independent tasks, variances add:
Variance_path = σ₁² + σ₂² + ... + σₙ²
First calculate each task's standard deviation and variance:
| Task | Expected duration | Standard deviation | Variance |
|---|---|---|---|
| Design | 4.33 | 1.00 | 1.00 |
| Build | 6.00 | 1.67 | 2.78 |
| Test | 2.00 | 0.33 | 0.11 |
The path variance is:
1.00 + 2.78 + 0.11 = 3.89
The path standard deviation is the square root of that variance:
√3.89 ≈ 1.97 days
The combined result is:
- Mean:
12.33days - Variance:
3.89days² - Standard deviation:
1.97days
The variance unit is days squared. It is useful for calculation, but the standard deviation is easier to interpret because it is measured in days.
from math import sqrt
# (optimistic, most likely, pessimistic) in days
tasks = {
"Design": (2, 4, 8),
"Build": (3, 5, 13),
"Test": (1, 2, 3),
}
means = [(o + 4 * m + p) / 6 for o, m, p in tasks.values()]
variances = [((p - o) / 6) ** 2 for o, m, p in tasks.values()]
path_mean = sum(means)
path_variance = sum(variances)
path_std_dev = sqrt(path_variance)
print(f"Mean: {path_mean:.2f} days")
print(f"Variance: {path_variance:.2f} days^2")
print(f"Standard deviation: {path_std_dev:.2f} days")The program prints:
Mean: 12.33 days
Variance: 3.89 days^2
Standard deviation: 1.97 daysHow the aggregation works
The calculation can be viewed as a sequence:
The path mean uses one sum. The path variance uses a separate sum. Do not add the task standard deviations when using the usual independent-task PERT model.
What the result means
The path mean is the center of the modeled duration distribution. The path standard deviation describes how widely durations are expected to vary around that center.
For the example, a normal approximation gives an approximate 85% completion duration:
12.33 + 1.04 × 1.97 ≈ 14.38 days
This means the model estimates about an 85% chance of completing the path within 14.38 days, assuming the PERT conditions hold and the normal approximation is reasonable.
The confidence calculation belongs after aggregation. Applying a confidence multiplier to each task separately and then adding those dates can produce a different result and may double-count conservatism.
Check the path before adding
Only tasks that are sequentially required for the same path should be summed this way. Parallel tasks need different treatment. If two tasks can run at the same time, their durations do not simply add to the project duration. The schedule is usually controlled by whichever parallel branch finishes later.
A practical workflow is:
- Identify the path being analyzed.
- Calculate each task's PERT mean.
- Calculate each task's standard deviation and variance.
- Add the means.
- Add the variances.
- Take the square root of the total variance.
- Apply a chosen confidence level.
Exercise
Three sequential tasks have PERT means of 3, 5, and 4 days and variances of 1, 4, and 0.25 days². What are the path mean and standard deviation?
Show answer
The path mean is 3 + 5 + 4 = 12 days. The path variance is 1 + 4 + 0.25 = 5.25 days², so the path standard deviation is √5.25 ≈ 2.29 days.