Sub topic 3
Triangular estimate: the simple average
This chapter covers the triangular estimate, the simplest way to turn three duration values into one number. It assumes you know the schedule vocabulary of task, duration, dependency and critical path. It also assumes you can compute averages, squares and square roots, and that you have a rough idea of what a standard deviation measures. The previous chapter defined the optimistic (O), most likely (M) and pessimistic (P) values. Here we use them to build a baseline that the next chapter's PERT estimate improves on.
What the triangular estimate is
The triangular estimate takes the three values and averages them with equal weight:
triangular = (O + M + P) / 3The name comes from a probability distribution, the triangular distribution. It is defined by a minimum (O), a peak (M, called the mode) and a maximum (P). If you plot how likely each duration is, the plot is a triangle. It rises in a straight line from O up to M, then falls in a straight line from M down to P. The mean of that distribution is exactly (O + M + P) / 3. So the "simple average" is a real statistical property of the triangle and not an arbitrary shortcut.
The triangular estimate is used for two reasons:
- It needs no weighting rule. Anyone who can add three numbers and divide by three can use it.
- It is easy to explain to stakeholders. "We averaged the best case, the likely case and the worst case" needs no further justification.
A worked example
A team estimates a data-migration task:
- Optimistic: 4 days, if no source records are malformed.
- Most likely: 6 days.
- Pessimistic: 14 days, if the source system has to be re-exported twice.
The triangular estimate is (4 + 6 + 14) / 3 = 24 / 3 = 8.0 days.
The most likely value is 6, yet the estimate is 8. The long pessimistic tail (8 days above M, against only 2 days below it) pulls the average upward. This is the main behavior to understand, and the rest of the chapter builds on it.
Where the mean sits in the triangle
The triangle for this task rises from 4 to 6 and then falls slowly from 6 to 14. The distribution is skewed to the right, which means the long tail is on the high side. For right-skewed distributions the mean lies to the right of the mode.
You can ask how likely the task is to finish by the triangular estimate. For a triangular distribution, the probability of finishing at or before a value x is the cumulative distribution function (CDF). It has two pieces:
- For x between O and M:
(x - O)² / ((P - O) × (M - O)) - For x between M and P:
1 - (P - x)² / ((P - O) × (P - M))
For our task, the chance of finishing by the most likely value is (6 - 4)² / (10 × 2) = 0.20. The chance of finishing by the mean of 8 days is 1 - (14 - 8)² / (10 × 8) = 1 - 0.45 = 0.55.
So under the triangular model, the "most likely" duration has only a 20% chance of being met. The average sits at about the 55th percentile. The model says 8 days is a slightly better-than-even bet.
Spread of the triangular distribution
The triangular estimate also has a standard deviation. The variance of a triangular distribution with minimum a, mode b and maximum c is:
variance = (a² + b² + c² - ab - ac - bc) / 18For O = 4, M = 6, P = 14:
- a² + b² + c² = 16 + 36 + 196 = 248
- ab + ac + bc = 24 + 56 + 84 = 164
- variance = (248 - 164) / 18 = 84 / 18 ≈ 4.67
- standard deviation ≈ 2.16 days
Compare this with the PERT standard deviation (P - O) / 6 = 10 / 6 ≈ 1.67 for the same task. The two methods disagree about how wide the uncertainty is. PERT's formula depends only on the range, and the triangular formula also uses where M sits inside the range.
from math import sqrt
def triangular_stats(o, m, p):
"""Return (mean, standard deviation) of a triangular distribution."""
if not o <= m <= p:
raise ValueError("need optimistic <= most likely <= pessimistic")
mean = (o + m + p) / 3
variance = (o**2 + m**2 + p**2 - o * m - o * p - m * p) / 18
return mean, sqrt(variance)
def triangular_cdf(x, o, m, p):
"""Probability that the duration is at most x."""
if x <= o:
return 0.0
if x >= p:
return 1.0
if x <= m:
return (x - o) ** 2 / ((p - o) * (m - o))
return 1 - (p - x) ** 2 / ((p - o) * (p - m))
mean, std_dev = triangular_stats(4, 6, 14)
print(round(mean, 2), round(std_dev, 2)) # 8.0 2.16
print(round(triangular_cdf(6, 4, 6, 14), 2)) # 0.2
print(round(triangular_cdf(mean, 4, 6, 14), 2)) # 0.55The guard o <= m <= p matters. If a person enters M outside the range, the formula still returns a number, but that number describes no real triangle.
Triangular versus PERT
The PERT expected duration weights M four times as heavily as O and P:
PERT = (O + 4M + P) / 6For our task that is (4 + 24 + 14) / 6 = 7.0 days, against 8.0 for the triangular estimate. The following chapter derives and defends the PERT weighting. For now, the comparison shows how the two methods behave when the shape of the estimate changes.
| O | M | P | Shape | Triangular | PERT |
|---|---|---|---|---|---|
| 2 | 5 | 8 | Symmetric | 5.00 | 5.00 |
| 4 | 6 | 14 | Long upper tail | 8.00 | 7.00 |
| 6 | 6 | 10 | M equals O | 7.33 | 6.67 |
| 3 | 10 | 11 | Long lower tail | 8.00 | 9.00 |
Three patterns appear in the table:
- When M is exactly in the middle, both methods give the same answer. The weighting only matters when the estimate is skewed.
- For an upper tail (the usual case in project work), the triangular estimate is higher than PERT. It treats the pessimistic value as a full third of the answer.
- For a lower tail, the order reverses. Triangular is lower than PERT.
Neither method is "correct". They encode different beliefs about how much to trust the single most likely value. PERT trusts M more. Triangular gives the extremes more say, which makes it more cautious for the common right-skewed task.
Why the triangular estimate is often a reasonable default
The triangular estimate has several practical advantages:
- Transparency. Reviewers can verify it by hand in seconds.
- Reasonable conservatism. For tasks with upside risk, it produces a larger number than PERT, which protects against the systematic under-estimation that most schedules suffer from.
- A bounded model. The triangular distribution cannot produce a duration below O or above P. That matches what the estimator claimed.
- Tool support. Many scheduling and risk tools offer the triangular distribution as their default three-point shape, so your hand calculation matches what the tool does.
It also has costs:
- It is sensitive to the extremes. Because O and P each carry a full third of the weight, a careless pessimistic value moves the estimate substantially. Raising P from 14 to 20 days raises the triangular estimate from 8.0 to 10.0 days. The PERT estimate rises from 7.0 to 8.0 days.
- The straight-line shape is an assumption. Real task durations usually have a smoother, rounder peak and a thinner tail than a triangle does.
- It ignores how confident you are in M. If the team has done this exact task a dozen times, M deserves more weight than a third.
Edge cases
M equals O or M equals P. The triangle becomes a right triangle, with its peak at one edge. The formulas still work. In the table above, O = 6, M = 6, P = 10 gives 7.33. The estimator is saying that the best case is also the likely case, and the CDF handles this because the first branch returns 0 for any x at or below O.
O equals P. If all three values are equal, the task has no uncertainty. The mean equals that value and the standard deviation is 0. Be skeptical when this appears for anything that is not a fixed-length event such as a scheduled approval meeting. A zero spread on a work task usually means the estimator has not thought about risk.
M outside the range. If M < O or M > P, the inputs are inconsistent. Do not "fix" them by swapping values silently. Ask the estimator which value they got wrong, because the error may be in the range, not in M.
Mixed units. All three values must use the same unit. A task estimated as 4 days, 6 days and 2 weeks produces a meaningless average of 8 unless you convert 2 weeks to 10 working days first. Decide whether "day" means a working day or a calendar day. Then check that every estimator used the same meaning.
Rounding. Keep the unrounded value while you calculate and round only when you report. Rounding each task to a whole number before summing introduces error that grows with the number of tasks.
Using triangular estimates along a path
Triangular means add up along a path just as PERT means do. For three tasks in sequence with (O, M, P) of (2, 4, 8), (3, 5, 13) and (1, 2, 3):
- Task means: 4.67, 7.00 and 2.00 days, which sum to 13.67 days.
- Task variances: 1.56, 4.67 and 0.17, which sum to about 6.39.
- Path standard deviation: the square root of 6.39, about 2.53 days.
The following code checks this.
from math import sqrt
def triangular_stats(o, m, p):
if not o <= m <= p:
raise ValueError("need optimistic <= most likely <= pessimistic")
mean = (o + m + p) / 3
variance = (o**2 + m**2 + p**2 - o * m - o * p - m * p) / 18
return mean, variance
tasks = [(2, 4, 8), (3, 5, 13), (1, 2, 3)]
stats = [triangular_stats(*t) for t in tasks]
path_mean = sum(mean for mean, _ in stats)
path_variance = sum(variance for _, variance in stats)
print(round(path_mean, 2), round(sqrt(path_variance), 2)) # 13.67 2.53For the same three tasks the PERT path mean is 12.33 days. The two methods differ by 1.34 days over only three tasks. The gap accumulates because every task with an upper tail adds its own gap, so on a large schedule the choice of method can move the finish date by a meaningful amount. A later chapter covers how to combine variances and read confidence levels from them. The point here is that you must not mix methods: summing triangular means for some tasks and PERT means for others gives a total that matches neither model.
Common errors
- Reporting the triangular mean as a commitment. The mean is the center of the distribution. In the worked example it has roughly a 55% chance of being met, so it is not a promise.
- Using it as a "most likely" value. The most likely value is M. The average is a different quantity that is usually larger.
- Using the PERT standard deviation with a triangular mean. The formula (P - O) / 6 belongs to the PERT model. If you chose the triangular mean, use the triangular variance for consistency, or state clearly that you are mixing the two.
- Averaging three people's single estimates. Averaging three guesses is not the same as one person giving O, M and P. The former smooths disagreement and hides the range. The latter captures the uncertainty in one estimator's judgment.
- Anchoring P on M. If P is always M plus a fixed percentage, the spread carries no information about real risk. Ask what would have to go wrong for the pessimistic case to occur.
That gap, (P - 2M + O) / 6, comes from subtracting the PERT formula from the triangular one. For the worked example it is (14 - 12 + 4) / 6 = 1.0 day, which matches the 8.0 versus 7.0 result.
Summary of the working model
- The triangular estimate is (O + M + P) / 3, the mean of a triangular distribution.
- With a long upper tail, the mean exceeds M. It lies on the right of the peak, and the probability of meeting M is low.
- The triangular standard deviation is the square root of (O² + M² + P² - OM - OP - MP) / 18.
- Triangular and PERT agree when M is centered and diverge as the estimate becomes more skewed.
- Validate that O ≤ M ≤ P, use consistent units, and apply one method across the whole schedule.
Exercise
A task has O = 3, M = 5 and P = 13 days. Calculate the triangular estimate and the PERT expected duration, then say which is higher and why.
Show answer
Triangular = (3 + 5 + 13) / 3 = 21 / 3 = 7.0 days. PERT = (3 + 4 × 5 + 13) / 6 = 36 / 6 = 6.0 days. The triangular estimate is higher by 1.0 day. The upper tail is long (8 days above M, only 2 below it), and the triangular formula gives P a full third of the weight, while PERT gives it only a sixth.
Exercise
For O = 4, M = 6 and P = 14 days, use the triangular distribution to find the probability that the task finishes in 10 days or less.
Show answer
Because 10 is greater than M = 6, use the upper branch: 1 - (P - x)² / ((P - O) × (P - M)) = 1 - (14 - 10)² / (10 × 8) = 1 - 16 / 80 = 0.80. The task has an 80% chance of finishing within 10 days.
Exercise
A colleague gives O = 5, M = 4 and P = 9 for a task and asks you to compute the triangular estimate. What should you do, and why?
Show answer
Do not calculate. M is below O, so the three values are inconsistent. The formula would return (5 + 4 + 9) / 3 = 6.0, but that number describes no valid triangle. Ask the colleague which value is wrong: the optimistic value may be too high, or the most likely value may have been entered incorrectly.