Sub topic 5
Measuring Spread: Standard Deviation and Variance in PERT
This chapter assumes you know basic scheduling terms such as task, duration, dependency, and critical path. It also assumes you can calculate averages, squares, and square roots. The previous chapter introduced three-point estimates:
- Optimistic duration, O: the shortest reasonable duration.
- Most likely duration, M: the duration you expect under normal conditions.
- Pessimistic duration, P: a longer but still reasonable duration.
The PERT spread formulas use these three values to describe uncertainty around the expected duration.
Why spread matters
An expected duration gives the center of an estimate. It does not show how widely the actual result might vary.
Consider two tasks:
| Task | O | M | P | PERT expected duration |
|---|---|---|---|---|
| A | 4 | 6 | 8 | 6 |
| B | 1 | 6 | 11 | 6 |
Both tasks have the same PERT expected duration:
\[ E = \frac{O + 4M + P}{6} = 6 \]
However, Task B has a much wider possible range. Its actual duration is less predictable. Treating both tasks as simply “six days” hides that difference.
Standard deviation gives a duration-sized measure of spread. Variance is the square of standard deviation. Both values help you carry uncertainty from individual tasks into a path estimate.
PERT standard deviation
For a three-point PERT estimate, the commonly used standard deviation formula is:
\[ \sigma = \frac{P - O}{6} \]
Here:
- \(\sigma\) is the PERT standard deviation.
- \(P - O\) is the full reasonable range.
- The number 6 reflects the traditional PERT assumption that the range from optimistic to pessimistic covers about six standard deviations.
The formula does not use the most likely estimate directly. The value of M affects the expected duration, but the spread formula uses the distance between O and P.
Worked example
Suppose a task has these estimates:
- \(O = 4\) days
- \(M = 6\) days
- \(P = 14\) days
The range is:
\[ P - O = 14 - 4 = 10 \]
The standard deviation is:
\[ \sigma = \frac{10}{6} \approx 1.67 \text{ days} \]
A standard deviation of 1.67 days means that the task has meaningful uncertainty around its expected duration. It is not a promise that the task will finish within exactly 1.67 days of the mean.
def pert_spread(optimistic, pessimistic):
standard_deviation = (pessimistic - optimistic) / 6
return standard_deviation
spread = pert_spread(4, 14)
print(round(spread, 2)) # 1.67The estimates must be ordered correctly:
\[ O \leq M \leq P \]
If the pessimistic estimate is smaller than the optimistic estimate, the inputs are invalid. A useful implementation can reject such values rather than silently producing a misleading result.
Variance is the square of standard deviation
Variance is calculated as:
\[ \sigma^2 = \left(\frac{P - O}{6}\right)^2 \]
For the example above:
\[ \sigma^2 = 1.67^2 \approx 2.78 \text{ days}^2 \]
Variance is expressed in squared units. That makes “2.78 days squared” difficult to interpret directly as a duration. Its main use is mathematical: variances can be added when combining independent task durations.
| Quantity | Formula | Example | Unit |
|---|---|---|---|
| Range | \(P - O\) | 10 | days |
| Standard deviation | \((P - O) / 6\) | 1.67 | days |
| Variance | \(\sigma^2\) | 2.78 | days² |
Do not add standard deviations when combining tasks. Add variances first, then take the square root:
\[ \sigma{\text{path}} = \sqrt{\sigma1^2 + \sigma2^2 + \dots + \sigman^2} \]
This rule matters because uncertainty does not combine in the same way as expected durations.
Reading the result
A larger range produces a larger standard deviation and variance.
| O | M | P | Standard deviation | Variance |
|---|---|---|---|---|
| 4 | 6 | 8 | 0.67 | 0.44 |
| 4 | 6 | 14 | 1.67 | 2.78 |
| 4 | 6 | 20 | 2.67 | 7.11 |
The first and second rows have the same optimistic and most likely values. The pessimistic value changes, so the uncertainty grows.
The last row has a standard deviation four times as large as the first row, but its variance is sixteen times as large. Squaring magnifies differences in spread. This is why a task with a very wide range can dominate the variance of a path.
Using spread for path estimates
For tasks on one path, calculate each task's PERT expected duration and variance. Then combine them:
\[ \mu{\text{path}} = \sum \mui \]
\[ \sigma^2{\text{path}} = \sum \sigmai^2 \]
\[ \sigma{\text{path}} = \sqrt{\sigma^2{\text{path}}} \]
For example, suppose three dependent tasks have these PERT standard deviations:
- Task A: \(1.00\) day
- Task B: \(1.50\) days
- Task C: \(0.50\) day
The path variance is:
\[ 1.00^2 + 1.50^2 + 0.50^2 = 1 + 2.25 + 0.25 = 3.50 \]
The path standard deviation is:
\[ \sqrt{3.50} \approx 1.87 \text{ days} \]
The path standard deviation is not \(1.00 + 1.50 + 0.50 = 3.00\) days. Adding standard deviations would overstate the uncertainty under the independence assumption.
Assumptions and common errors
PERT spread is an estimate, not a measurement from historical data. The formula assumes that O and P describe a reasonable range and that the distribution of possible durations has a PERT-like shape.
Common errors include:
- Using calendar extremes instead of reasonable optimistic and pessimistic outcomes.
- Setting P so high that it represents an almost impossible disaster.
- Setting O so low that it requires perfect conditions.
- Forgetting that variance uses squared units.
- Adding standard deviations instead of variances.
- Treating the PERT standard deviation as a guarantee about the finish date.
- Reporting many decimal places when the input estimates are rough.
A careful estimator should ask what causes the range. If the pessimistic value includes a known external dependency, that dependency may need its own task or risk treatment rather than being hidden inside P.
Summary
The PERT standard deviation estimates the spread of one task's duration:
\[ \sigma = \frac{P - O}{6} \]
Variance is its square:
\[ \sigma^2 = \left(\frac{P - O}{6}\right)^2 \]
Use standard deviation to describe uncertainty in duration units. Use variance when combining independent tasks on a path. Add the variances, then take the square root to recover the path's standard deviation.
Exercise
A task has O = 3 days, M = 5 days, and P = 15 days. What are its PERT standard deviation and variance?
Show answer
The standard deviation is (15 - 3) / 6 = 2 days. The variance is 2² = 4 days².