Sub topic 5
Measuring spread: standard deviation (P - O) / 6 and variance
This chapter assumes you can compute the PERT expected duration (O + 4M + P) / 6 for a task. It also assumes you know that a standard deviation is a typical distance of outcomes from the average, and that you can square numbers and take square roots. Combining tasks along a path and reading confidence levels come in later chapters. Here you learn to measure how uncertain a single task is.
Why the expected duration is not enough
Two tasks can have the same expected duration and very different risk. Suppose a team gives these estimates, in days:
| Task | Optimistic (O) | Most likely (M) | Pessimistic (P) | PERT mean |
|---|---|---|---|---|
| Tight | 5 | 6 | 7 | 6.0 |
| Wide | 2 | 6 | 10 | 6.0 |
Both tasks have an expected duration of 6 days. A schedule built only on the mean treats them as the same. The first task will almost certainly finish between 5 and 7 days. The second could finish in 2 days or take 10. If the second task sits on your critical path, your project date is much less certain.
The expected duration answers "where is the center?" The spread answers "how far from the center might we land?" PERT measures spread with the standard deviation and the variance.
The formula
For a task with optimistic estimate O and pessimistic estimate P:
- Standard deviation: σ = (P − O) / 6
- Variance: σ² = ((P − O) / 6)²
The standard deviation is in the same unit as the estimate (days). The variance is in squared units (days²). It has no direct everyday meaning, but it is the quantity you add when you combine tasks.
For O = 4, M = 6, P = 14, the standard deviation is (14 − 4) / 6 = 1.67 days. The variance is 1.67² ≈ 2.78 days².
def pert_stats(o, m, p):
"""Return (expected duration, standard deviation, variance) in days."""
if not o <= m <= p:
raise ValueError("need optimistic <= most likely <= pessimistic")
mean = (o + 4 * m + p) / 6
std_dev = (p - o) / 6
return mean, std_dev, std_dev ** 2
tasks = {"A": (2, 4, 8), "B": (3, 5, 13), "C": (1, 2, 3)}
for name, (o, m, p) in tasks.items():
mean, sd, var = pert_stats(o, m, p)
print(f"{name}: mean={mean:.2f} sd={sd:.2f} variance={var:.2f}")Running it prints:
A: mean=4.33 sd=1.00 variance=1.00
B: mean=6.00 sd=1.67 variance=2.78
C: mean=2.00 sd=0.33 variance=0.11These three tasks reappear in the next chapter, where they form one path.
Why divide by 6
The divisor 6 comes from a normal-distribution rule of thumb. About 99.7% of outcomes of a normal distribution fall within three standard deviations on either side of the mean. That band is six standard deviations wide. PERT assumes the optimistic and pessimistic values are close to the edges of what could realistically happen. So the distance P − O covers about six standard deviations, and one standard deviation is (P − O) / 6.
This is a convention, not a measurement. It works well when O and P really are near-extreme values. It gives misleading numbers when the estimators mean something else by O and P, as the later section on percentile estimates shows.
What the spread tells you
The standard deviation gives you a practical band around the mean. Under a normal approximation:
- About 68% of outcomes fall within one standard deviation of the mean.
- About 95% fall within two standard deviations.
For task B above (mean 6.00, σ = 1.67), the one-standard-deviation band is about 4.3 to 7.7 days. Task durations are usually skewed, so treat these bands as approximations. They are good enough to compare tasks and spot risky ones.
Here is the earlier tight-versus-wide comparison computed:
def pert_stats(o, m, p):
mean = (o + 4 * m + p) / 6
std_dev = (p - o) / 6
return mean, std_dev, std_dev ** 2
for label, (o, m, p) in {"Tight": (5, 6, 7), "Wide": (2, 6, 10)}.items():
mean, sd, var = pert_stats(o, m, p)
print(f"{label}: mean={mean:.1f} sd={sd:.2f} variance={var:.2f}")Tight: mean=6.0 sd=0.33 variance=0.11
Wide: mean=6.0 sd=1.33 variance=1.78The means match. The wide task has four times the standard deviation, and sixteen times the variance. Squaring makes variance grow quickly with the range. A task that is twice as wide has four times the variance.
Comparing tasks of different size
A standard deviation of 2 days means different things for a 4-day task and a 40-day task. To compare relative uncertainty, divide the standard deviation by the mean. This ratio is the coefficient of variation.
| Task | Mean | Standard deviation | Standard deviation / mean |
|---|---|---|---|
| A | 4.33 | 1.00 | 0.23 |
| B | 6.00 | 1.67 | 0.28 |
| C | 2.00 | 0.33 | 0.17 |
Task B is the riskiest in both absolute and relative terms. This ratio is a screening aid and not part of the PERT calculation itself. It helps you decide where to spend effort refining estimates.
Why variance, not standard deviation, gets added
When you combine tasks into a path, you add variances and not standard deviations. The details belong to the next chapter, but the reason belongs here because it explains why this chapter introduces variance at all.
Imagine two independent tasks with standard deviations of 3 and 4 days. Both could run long, but it is unlikely that both run long by the same amount at the same time. Some of the uncertainty cancels. The correct combination is:
- Variances: 3² + 4² = 9 + 16 = 25
- Combined standard deviation: √25 = 5 days
Adding the standard deviations directly would give 7 days, which overstates the uncertainty. Variance is the quantity that adds cleanly for independent tasks. Standard deviation is the number you convert back to for reading results.
The standard deviation ignores the most likely value
Look at the formula again. M does not appear in (P − O) / 6. Two tasks with the same O and P have the same standard deviation, wherever the most likely value sits:
def pert_stats(o, m, p):
mean = (o + 4 * m + p) / 6
std_dev = (p - o) / 6
return mean, std_dev, std_dev ** 2
for o, m, p in [(4, 6, 14), (4, 12, 14)]:
mean, sd, var = pert_stats(o, m, p)
print(o, m, p, round(mean, 2), round(sd, 2))4 6 14 7.0 1.67
4 12 14 11.0 1.67The first task has a long tail to the right of its most likely value. The second has a long tail to the left and bunches up near its pessimistic end. Their means differ by 4 days, yet the formula assigns them identical spreads. A skewed shape would suggest different risk profiles, but the simple formula cannot see that.
This is a deliberate simplification. The formula is cheap to compute and easy to audit. It gives a usable approximation, not an exact description of each task.
How close is the approximation?
PERT is derived from a beta distribution, a flexible shape bounded between O and P. You can compute the beta distribution's actual standard deviation and compare it to the shortcut. The scaling used in the Monte Carlo example of the later chapter on simulation sets the shape parameters from the estimates, so the same parameters are used here:
def beta_std(o, m, p):
alpha = 1 + 4 * (m - o) / (p - o)
beta = 1 + 4 * (p - m) / (p - o)
var = alpha * beta / ((alpha + beta) ** 2 * (alpha + beta + 1))
return (p - o) * var ** 0.5
print(round(beta_std(4, 6, 14), 2), round((14 - 4) / 6, 2))1.73 1.67The beta distribution gives 1.73 days and the shortcut gives 1.67 days, a difference of about 4%. Estimates are rarely accurate to that level anyway, so the shortcut is acceptable. Its accuracy is highest when M is near the middle of the range and falls slightly when M is close to either end.
Checking the three values before computing
The spread depends on the estimates, so bad inputs give bad spreads. Run a few checks before trusting any task's standard deviation.
- Order. O ≤ M ≤ P must hold. The
pert_statsfunction above raises an error otherwise. - Zero range. If P = O, the standard deviation is 0. That is only reasonable for a task with no uncertainty, such as a fixed-length vendor lead time. For ordinary work it usually means the estimator did not think about risk.
- Units. Keep O, M and P in the same unit. Mixing hours and days gives a meaningless range.
- Tail size. If P is more than about three to four times M, ask what event drives that tail. A very long tail often marks a risk that should be managed separately and not hidden inside the estimate.
When estimators give percentiles
Sometimes teams ask for a "10% chance it is faster than this" value and a "10% chance it is slower than this" value instead of true extremes. The 10th and 90th percentiles of a normal distribution lie about 1.28 standard deviations on either side of the mean, so the range between them is about 2.56 standard deviations wide. The matching formula is:
σ ≈ (P90 − P10) / 2.56
For a 5th to 95th percentile pair, the divisor is about 3.29. Applying 6 to these ranges would shrink the standard deviation to less than half its true value. The rule is simple: the divisor must match what the estimators were asked for. Agree on the definition of O and P with your team before collecting numbers, and record it with the estimates.
| What O and P mean | Divisor for σ |
|---|---|
| Near-extreme values (about 0.1% and 99.9%) | 6 |
| 5th and 95th percentiles | 3.29 |
| 10th and 90th percentiles | 2.56 |
The table shows the common conventions. Classic PERT uses the first row.
Limits to keep in mind
- Normal assumption. The "6 standard deviations" logic and the 68%/95% bands are normal-distribution reasoning. Real task durations are skewed and have a hard lower bound, so the bands are rough.
- Estimator bias. People tend to give optimistic O and M values and a P that is not pessimistic enough. The resulting spread is too small, which makes the project look safer than it is.
- Spread of the estimate, not of reality. The standard deviation describes how uncertain the estimator says the task is. It does not describe how wrong the estimator might be about the whole range.
A later chapter covers these limits for whole projects. The point for now is that a small standard deviation shows confidence, and confidence is not the same as accuracy.
Summary of the calculation steps
- Collect O, M and P in one unit, with an agreed definition of O and P.
- Compute the mean with (O + 4M + P) / 6.
- Compute the standard deviation with (P − O) / 6, or with the percentile divisor if that is what O and P mean.
- Square the standard deviation to get the variance.
- Record the mean and variance, and report the standard deviation.
Exercise
A task has O = 3, M = 5 and P = 15 days. Compute the PERT expected duration, the standard deviation and the variance.
Show answer
Expected duration = (3 + 4 × 5 + 15) / 6 = 38 / 6 ≈ 6.33 days. Standard deviation = (15 − 3) / 6 = 2 days. Variance = 2² = 4 days².
Exercise
Two tasks have the same O and P but different M values (O = 2, P = 12 for both; M = 4 for one and M = 9 for the other). Which has the larger PERT standard deviation, and what does this show about the formula?
Show answer
They have the same standard deviation, (12 − 2) / 6 ≈ 1.67 days. The formula uses only O and P, so it ignores where the most likely value sits. Their expected durations differ: (2 + 16 + 12) / 6 = 5.0 and (2 + 36 + 12) / 6 ≈ 8.33 days.
Exercise
Your estimators gave a 10th-percentile value of 6 days and a 90th-percentile value of 14 days. What standard deviation should you use, and how far off would (P - O) / 6 be?
Show answer
Use the percentile divisor 2.56: (14 − 6) / 2.56 ≈ 3.13 days. Applying (P − O) / 6 gives 8 / 6 ≈ 1.33 days, which is less than half the correct value, so the task would look much less risky than it is.
Exercise
Two independent tasks have standard deviations of 3 days and 4 days. What is the standard deviation of the two together, and why is it not 7?
Show answer
Add the variances: 9 + 16 = 25. The square root is 5 days. It is not 7 because independent tasks are unlikely to both run long at once, so part of their uncertainty cancels. Variances add for independent tasks, and standard deviations do not.