Sub topic 2
Bottom-up estimation: summing task estimates
This chapter assumes you know basic project vocabulary (task, milestone, deliverable), can compute averages, and understand a work breakdown structure. It covers six techniques that build on each other.
Bottom-up estimation
Bottom-up estimation sums the estimates for small tasks to get the total effort. The total is only as good as the task estimates, so break work into pieces a team member can judge in hours or days.
Three-point and PERT estimates
For each task, estimate three values: optimistic (O), most likely (M), and pessimistic (P). PERT (Program Evaluation and Review Technique) gives an expected value of (O + 4M + P) / 6 and a standard deviation of (P - O) / 6.
from math import sqrt
tasks = {"api": (2, 4, 12), "ui": (3, 5, 13), "tests": (1, 2, 5)}
total, variance = 0.0, 0.0
for name, (o, m, p) in tasks.items():
expected = (o + 4 * m + p) / 6
sd = (p - o) / 6
total += expected
variance += sd ** 2
print(f"{name}: {expected:.1f} days (sd {sd:.1f})")
print(f"total: {total:.1f} days, sd {sqrt(variance):.1f}")Group estimation
Expert judgment means asking people who know the work. Delphi has experts estimate privately, share results, and revise over several rounds. Planning poker has each person reveal an estimate card at once. Large gaps between cards prompt discussion.
Relative estimation, story points and velocity
Story points rank work by size against a reference task, not by hours. Velocity is the number of points a team completes per sprint, measured from past sprints. Remaining points divided by average velocity gives the expected sprint count.
Parametric estimation
Parametric estimation multiplies a quantity by a unit rate from past projects. For example, 40 screens at 2 person-days each gives 80 person-days.
From effort to calendar time
Effort is the work measured in person-days. Duration depends on team size and on the share of each day spent on this work.
from math import ceil
def calendar_days(effort_person_days, people, focus_factor):
return ceil(effort_person_days / (people * focus_factor))
print(calendar_days(20, 2, 0.7)) # 15 working daysExercise
Exercise
A task has O = 3, M = 5 and P = 10 days. What is its PERT expected value?
Show answer
(3 + 4 × 5 + 10) / 6 = 33 / 6 = 5.5 days.