Sub topic 7
Three-point and PERT estimates
This chapter assumes you know how to break a project into tasks and how effort differs from duration. It also assumes you are comfortable with averages and the idea of a range. A single-point estimate hides how uncertain a task is. A three-point estimate records that uncertainty, and PERT turns the three numbers into an expected value and a spread.
Three numbers instead of one
A three-point estimate describes each task with three values:
- Optimistic (O): the time if almost everything goes right. It is a realistic best case, not a fantasy.
- Most likely (M): the time you would expect in normal conditions. It is the single value you would give if forced to pick one.
- Pessimistic (P): the time if several things go wrong, but not a disaster that cancels the task.
Software and knowledge work usually have a skewed distribution. A task can take a little less than expected, but it can take far more. Because of this, P is typically much further from M than O is, and the mean ends up above M.
The PERT formulas
PERT stands for Program Evaluation and Review Technique. It was developed in the 1950s for the US Navy's Polaris missile program. It assumes the task duration follows a beta distribution, which is a bounded, skewable shape. Two approximations come from that assumption:
- Expected value:
E = (O + 4M + P) / 6 - Standard deviation:
SD = (P - O) / 6
The expected value is a weighted average that gives the most likely value four times the weight of either extreme. The standard deviation treats the range from O to P as about six standard deviations wide. That is the full width of a bell curve.
A simpler alternative is the triangular estimate, (O + M + P) / 3. It weights the extremes more heavily, so a long pessimistic tail moves it more. PERT is the common default in project management, and either is acceptable if you state which one you used and use it consistently.
A worked example
Take a task with O = 2, M = 4 and P = 12 days.
E = (2 + 4×4 + 12) / 6 = 30 / 6 = 5.0daysSD = (12 - 2) / 6 ≈ 1.7days
The most likely value is 4, but the expected value is 5. The long tail toward 12 pulls the mean up. If you plan with 4, you will be late more often than not.
Combining tasks
For a sequence of tasks, add the expected values. Do not add the standard deviations. Add the variances (the squares of the standard deviations) and take the square root of the total.
The reason is that independent tasks rarely all hit their worst case together. Some overrun and some finish early, so the errors partly cancel. Adding standard deviations directly would overstate the spread.
This code runs the whole calculation for three tasks:
from math import sqrt
# (optimistic, most likely, pessimistic) in days
tasks = {
"api": (2, 4, 12),
"ui": (3, 5, 13),
"tests": (1, 2, 5),
}
def pert(o, m, p):
expected = (o + 4 * m + p) / 6
sd = (p - o) / 6
return expected, sd
total = 0.0
variance = 0.0
for name, (o, m, p) in tasks.items():
e, sd = pert(o, m, p)
total += e
variance += sd ** 2
print(f"{name}: {e:.1f} days (sd {sd:.1f})")
print(f"total: {total:.1f} days, sd {sqrt(variance):.1f}")
print(f"about 90% likely within {total + 1.28 * sqrt(variance):.1f} days")The output is:
api: 5.0 days (sd 1.7)
ui: 6.0 days (sd 1.7)
tests: 2.3 days (sd 0.7)
total: 13.3 days, sd 2.4
about 90% likely within 16.5 daysThe three most likely values add up to 11 days. The expected total is 13.3 days, and a 90% commitment is about 16.5 days. Summing most-likely values would have understated the 50% figure by more than two days and the 90% figure by more than five.
Notice that the project SD of 2.4 is smaller than any simple sum of the task SDs (1.7 + 1.7 + 0.7 = 4.1). That is the variance rule at work.
Turning a spread into a confidence level
If you assume the total is roughly normally distributed, you can translate a multiple of the SD into a probability. This approximation improves as you add more tasks, because sums of many independent values look more bell-shaped.
| Plan to | Added to expected total | Chance of finishing by then |
|---|---|---|
| Expected value | 0 × SD | about 50% |
| Expected + 1 SD | 1.0 × SD | about 84% |
| Expected + 1.28 SD | 1.28 × SD | about 90% |
| Expected + 1.645 SD | 1.645 × SD | about 95% |
| Expected + 2 SD | 2.0 × SD | about 98% |
These are one-sided probabilities, meaning the chance of finishing at or before that date. Use them to state the confidence behind a date, as in "16.5 days at about 90%."
Common errors and gotchas
Treating the formula as more precise than the inputs
PERT is only as good as O, M and P. The arithmetic gives a tidy two-decimal result from guesses. Report rounded values and keep the ranges visible.
Optimistic and pessimistic values that are too narrow
People tend to give ranges that are too tight. The (P - O) / 6 rule assumes O and P are extreme values, roughly the 0.1th and 99.9th percentiles. Most people instead give values they think are about 90% likely to bracket the outcome. If your O and P are really the 5th and 95th percentiles, the range spans about 3.3 standard deviations, so dividing by 3.3 would be more accurate than dividing by 6. Dividing by 6 then understates the spread, and so understates the risk.
Decide what O and P mean before the team gives numbers, and write the definition down. Asking "what is the chance the task takes longer than P?" is a quick check. If the answer is more than a few percent, P is too low.
Assuming independence
Adding variances assumes tasks are independent. In practice they often share causes. The same unfamiliar framework, the same unavailable reviewer or the same unclear requirement can slow several tasks at once. When tasks are positively correlated, the true spread is larger than the formula says. You can partly compensate by estimating shared risks separately and by using a higher confidence multiple than you otherwise would.
Summing non-sequential tasks
The simple sum applies to a chain of tasks done one after another. If tasks run in parallel, the project duration follows the critical path, not the total of all tasks. Apply the variance sum only along that path. Another path may become critical if it slips, so check near-critical paths too.
Mixing effort and duration
PERT works on any consistent unit. Make sure all three values for a task use the same one, either effort in person-days or duration in working days. Convert effort to calendar time afterward, using people and availability.
Anchoring M on the pessimistic number
If a manager asks "can you do it in 4 days?" before you estimate, your O, M and P will cluster around 4. Collect the three values before anyone proposes a target.
When three-point estimates are worth the effort
Use three-point estimates when:
- A task is uncertain, new or depends on other people, so a wide spread matters.
- The cost of being late is high enough to justify a stated confidence level.
- You need a basis for contingency, which the buffers chapter builds on.
For small, routine tasks with little spread, a single value is enough. Spending effort on three numbers for a one-hour task adds noise. A practical rule is to use a three-point estimate for tasks where the pessimistic value is at least about twice the optimistic one, and a single value for the rest.
Exercise
A task has O = 2, M = 3 and P = 10 days. Calculate the PERT expected value and standard deviation. If a second independent task has E = 6 and SD = 2, what are the expected total and the total standard deviation of the two tasks?
Show answer
First task: E = (2 + 4×3 + 10) / 6 = 24 / 6 = 4.0 days. SD = (10 - 2) / 6 ≈ 1.33 days. Combined: expected total = 4 + 6 = 10 days. Total variance = 1.33² + 2² ≈ 1.78 + 4 = 5.78, so total SD = √5.78 ≈ 2.4 days. The SDs are not added directly (1.33 + 2 = 3.33 would overstate the spread).
Exercise
Using the combined result from the previous exercise (expected 10 days, SD 2.4 days), what duration gives about 90% confidence, and why is the simple sum of the three-point most likely values a poor commitment?
Show answer
About 90% confidence is 10 + 1.28 × 2.4 ≈ 13.1 days. The most likely values are 3 days for the first task and probably less than 6 for the second, so their sum sits below the expected total of 10 days. Because the tails are skewed toward longer durations, planning on most likely values gives well under a 50% chance of finishing on time.