Sub topic 1
Why a Single Number Is Not Enough
A schedule built from single-number duration estimates looks precise, but the precision is not real. This chapter shows what a single number hides and measures the effect with small, checkable calculations. The following chapters replace the single number with three values and turn them into an expected duration and a confidence level.
Prerequisites
This chapter assumes you already know:
- Basic scheduling vocabulary: task, duration, dependency, and critical path (the longest chain of dependent tasks, which sets the project's earliest finish).
- Averages, squares, and square roots.
- A rough idea of a probability distribution (how likely each possible outcome is) and of a standard deviation (a typical distance of outcomes from their average).
You do not need to know PERT yet. The code uses plain Python and the standard library only.
What a single-point estimate hides
A single-point estimate says "this task takes 6 days." A schedule tool treats that as a fact. Start date plus 6 days gives a finish date, and the finish dates of dependent tasks follow from it.
The task will not take exactly 6 days. It will take some number of days that you cannot know yet, so the real duration is a random quantity with a range of possible values, each with its own probability. A single number picks one point from that range and drops the rest. Three pieces of information are lost:
- Width. A task that takes 5 to 7 days and a task that takes 3 to 20 days can both be "6 days." They carry very different risk.
- Shape. Durations are rarely symmetric. A task can finish somewhat early, but when things go wrong it can run far over. The range leans toward long outcomes.
- Meaning. Nobody knows which statistic the 6 stands for. It might be the best case, the most common outcome, the average, or a number someone padded to feel safe.
Because of this, a single-number schedule cannot answer the question stakeholders actually ask: "How likely are we to hit this date?"
Estimates are ranges with a shape
Why the shape is skewed
Duration has a hard floor and no ceiling. A task cannot take fewer than zero days, and there is usually a practical minimum well above that. Nothing limits how long it can take, because of rework, waiting on other people, or a discovered problem. This gives a distribution with a short left side and a long right tail.
For a right-skewed distribution, three statistics that people casually call "the estimate" fall in a predictable order:
- The mode is the single most likely value.
- The median is the value that the task finishes by 50% of the time.
- The mean is the probability-weighted average of all outcomes.
With a right tail, the mode is smallest, the median is larger, and the mean is largest. The long tail pulls the average up while leaving the peak where it is.
Worked example: one task
Suppose a team member says a task is best case 4 days, most likely 6 days, and worst case 14 days. As a rough model, treat the duration as a triangular distribution (a distribution shaped like a triangle, with its peak at 6 and its ends at 4 and 14). We will use this model only to ask: if the plan says 6 days, how often does the task actually finish within 6 days?
For a triangular distribution with minimum a, peak c, and maximum b, the probability of finishing by day x (the cumulative distribution function, or CDF) is:
- 0 if
xis at or belowa. (x - a)^2 / ((b - a)(c - a))ifxis betweenaandc.1 - (b - x)^2 / ((b - a)(b - c))ifxis betweencandb.- 1 if
xis at or aboveb.
def triangular_cdf(x, a, c, b):
"""Probability that a triangular(a, c, b) duration is <= x."""
if x <= a:
return 0.0
if x <= c:
return (x - a) ** 2 / ((b - a) * (c - a))
if x < b:
return 1 - (b - x) ** 2 / ((b - a) * (b - c))
return 1.0
a, c, b = 4, 6, 14 # optimistic, most likely, pessimistic (days)
for day in (6, 8, 10, 14):
print(day, round(triangular_cdf(day, a, c, b), 3))
# 6 0.2
# 8 0.55
# 10 0.8
# 14 1.0The result is the point of this chapter. The plan says 6 days, and under this model the task finishes within 6 days only 20% of the time. The most likely value is not a likely deadline. An 80% chance of success needs 10 days, which is a 67% increase over the number in the plan.
The "8" row is also worth noting. It is the average of this distribution, and the task finishes by then 55% of the time. Chapter 3 derives that average formally.
Which number did they give you?
In practice, different people mean different things by "the estimate." Before you combine numbers, you need to know which statistic each one is.
| What the person gave you | What it usually represents | Typical bias in a plan |
|---|---|---|
| "It's about 6 days" | The mode, or a mental picture of a smooth run | Too low. It ignores the tail. |
| "Probably 8, give or take" | Something near the mean | Roughly neutral, but hides the spread. |
| "Let's say 10 to be safe" | A padded value, often close to an 80% outcome | Too high for one task. Padding on every task compounds. |
| "Best case 4" | The optimistic extreme | Far too low as a commitment. |
Each of these is a legitimate answer to a different question. The problem starts when a schedule adds them up as if they were all the same kind of number.
Errors add up in a way a single number cannot show
The skew problem gets worse when you chain tasks. This section uses a deliberately simple model so that every figure can be verified exactly.
Consider three tasks done one after another. Each one independently takes:
- 4 days with probability 0.6,
- 6 days with probability 0.3,
- 12 days with probability 0.1.
For each task, 4 days is the most likely value. A planner who uses most-likely values for every task gets a path of 4 + 4 + 4 = 12 days. The program below enumerates all 27 combinations of outcomes and computes the exact distribution of the total.
from itertools import product
task = {4: 0.6, 6: 0.3, 12: 0.1} # days -> probability
totals = {}
for combo in product(task.items(), repeat=3):
days = sum(d for d, _ in combo)
prob = 1.0
for _, p in combo:
prob *= p
totals[days] = totals.get(days, 0.0) + prob
mean = sum(d * p for d, p in totals.items())
on_time = sum(p for d, p in totals.items() if d <= 12)
print(round(mean, 1), round(on_time, 3)) # 16.2 0.216
running = 0.0
for d in sorted(totals):
running += totals[d]
if running >= 0.85:
print(d, round(running, 3)) # 22 0.945
breakThe output shows three things:
- The expected total is 16.2 days, not 12. The plan is 35% too short on average.
- The chance of finishing within the planned 12 days is 0.216. It is the chance that all three tasks hit their best-looking outcome at once, which is 0.6 × 0.6 × 0.6.
- The first duration that gives at least an 85% chance of success is 22 days, nearly double the plan. (At 20 days the chance is only 0.837.)
The diagram shows the full distribution of the total.
The reason is that bad outcomes are not cancelled by good ones. Each task can save at most 2 days against the plan (it can only go from 6 to 4 if you planned on 6), but it can lose up to 8. Early finishes are small and late finishes are large, so the sum drifts later than the sum of the modes.
Merge points make it worse
Real schedules are networks, not single chains. Where two parallel paths join (a merge point), the next task can start only when both finish. Suppose each path has a 50% chance of finishing by day 10 and the paths are independent. Then:
| Number of paths merging | Chance all finish by day 10 |
|---|---|
| 1 | 0.5 |
| 2 | 0.25 |
| 3 | 0.125 |
| 4 | 0.0625 |
Each extra merging path multiplies the probability by 0.5. A schedule with several near-critical paths is therefore late more often than its critical path alone suggests. This effect is sometimes called merge bias. A single-number schedule shows only the longest path and never shows it.
What this means for estimating
You now have the argument for changing how estimates are made. The points below are the working model for the rest of the tutorial.
- A task duration is a range with a shape, not a point.
- The estimate must say which part of the range it describes. A mode, a median, a mean, and a padded value are different numbers.
- To describe a range, you need at least three facts: a low value, a typical value, and a high value. A tail-heavy range needs the high value most, because that is where single-point estimates lose the most information.
- Once each task has a range, you can combine ranges along a path and state a confidence level, such as "85% likely to finish by day 22," in place of one date with no probability attached.
The next chapters build this in order. They define the three values, compute the triangular and weighted (PERT) averages, add a spread measure, combine tasks along a path, and read a confidence level from the result.
Common errors at this stage
- Treating the plan date as the 50% date. With a right-skewed distribution, the mode is usually below the median, so a plan built from modes is likely to be late more than half the time.
- Padding every task and calling it risk management. If each person adds a safety margin to their own task, the project accumulates margin that is hidden and often consumed anyway. Padding also gives you no probability statement, only a larger number.
- Averaging when you need a quantile. The mean (16.2 days in the example) is not a commitment. Only 70.2% of outcomes fall at or below 16 days, so a mean-based date is still late in roughly three out of ten runs. A commitment needs a percentile, such as 85%.
- Ignoring dependence between tasks. The exact calculation above assumes independence. If one root cause (a late vendor, a new technology) slows all three tasks, the late outcomes happen together and the tail is heavier than shown. A later chapter on assumptions covers this.
- Reading the model's numbers as measurements. The probabilities in this chapter come from a stated model, not from observed data. A model that is wrong about the tail is wrong about the confidence level.
Exercise
A task has optimistic 4, most likely 6 and pessimistic 14 days, modelled as a triangular distribution. Using the CDF from this chapter, what is the probability that the task finishes within 11 days? (Use x = 11, a = 4, c = 6, b = 14.)
Show answer
Since 11 lies between the peak (6) and the maximum (14), use 1 - (b - x)^2 / ((b - a)(b - c)). That gives 1 - (14 - 11)^2 / (10 × 8) = 1 - 9/80 = 0.8875, so about an 88.8% chance. The plan's 6 days has only a 20% chance, so planning on the most likely value leaves a large gap.
Exercise
Two independent paths merge before the final task. Path A has a 70% chance of finishing by day 20. Path B has an 80% chance of finishing by day 20. What is the chance both are done by day 20, and why is a schedule that shows only the critical path misleading here?
Show answer
Multiply the probabilities because the paths are independent: 0.7 × 0.8 = 0.56, so a 56% chance. Each path on its own looks reasonably safe, but the chance that both finish is lower than either one alone. A schedule that shows only the single longest path reports a date based on one path and ignores the extra risk created by the merge.
Exercise
In the three-task example, each task takes 4 days (probability 0.6), 6 days (0.3) or 12 days (0.1). The plan uses the most likely value for each task. Give the planned total, the expected total, and the smallest total duration that gives at least an 85% chance of success.
Show answer
The planned total is 4 + 4 + 4 = 12 days. The expected total is 3 × (4 × 0.6 + 6 × 0.3 + 12 × 0.1) = 3 × 5.4 = 16.2 days. The cumulative probability reaches 0.837 at 20 days and 0.945 at 22 days, so the smallest duration with at least 85% confidence is 22 days.