Sub topic 5
Analogous estimation: using similar past work
Analogous estimation predicts the effort or duration of new work by comparing it with similar work you have already finished. You start from a recorded actual result, adjust it for the differences, and treat the outcome as a range. This chapter assumes you know the difference between effort and duration, and the units and granularity of estimates (earlier chapters in this tutorial). It also assumes you have a basic work breakdown.
The working model
The method has one idea: new estimate = past actual × adjustments. Everything else is care in choosing the past work and in deciding the adjustments.
- Reference work is the finished task or project you compare against. Use its actual effort or duration, not what was planned.
- Adjustments are the differences between the reference and the new work, such as size, complexity, team experience and technology.
- Scope of comparison can be a whole project, a phase, a feature or a single task. The comparison should be at the same level as the estimate you want.
The technique is also called top-down estimation, because you often apply it to a large piece of work before the detailed breakdown exists. It is fast and cheap. It is also only as good as the match between the old work and the new.
When to use it
Analogous estimation fits best when information is thin. Typical cases:
- An early stage of the project, when only a rough scope exists. This is the wide part of the cone of uncertainty, so the estimate should be a wide range.
- A quick sanity check on a detailed bottom-up estimate. If the bottom-up total is half of what a similar project actually took, ask why.
- Work your organization does repeatedly, such as onboarding a new customer, building another report, or migrating another service.
It fits poorly for novel work with no real precedent, or when past records are missing. In those cases an expert's memory of how long something felt is not a reference. It is a guess.
Choosing good reference work
A reference is only useful if it is genuinely similar in the ways that drive effort. Check these dimensions before you trust a comparison.
| Dimension | Question to ask | Example mismatch |
|---|---|---|
| Scope | Did the past work include the same activities (design, testing, documentation, deployment)? | The past figure covered coding only, but the new work includes testing. |
| Size | How much bigger or smaller is the new work, measured the same way? | Ten screens before, twenty now. |
| Complexity | Are the rules, integrations and edge cases comparable? | The old work had one data source, the new work has four. |
| Team | Same skills, experience and size? | The original team knew the domain, the new team does not. |
| Technology | Same tools, platform and level of maturity? | A new framework the team has not used. |
| Conditions | Similar constraints, such as regulation, approvals and stakeholder involvement? | The past work had no compliance review. |
Prefer several references to one. A single past project may have been unusually smooth or unusually troubled, and you cannot tell from one data point. Three or four references give you a spread, and the spread is itself an estimate of uncertainty.
Adjusting for differences
Adjustments are usually multipliers. A factor above 1.0 increases the estimate, and a factor below 1.0 decreases it. Write each factor down with its reason, so a reviewer can challenge it.
The code below scales three past projects to the size of a new one, applies one extra adjustment, and reports a range rather than a single number. Here the size measure is the number of screens.
from statistics import median
# (name, actual person-days, number of screens)
past = [
("project-a", 41, 10),
("project-b", 70, 15),
("project-c", 30, 8),
]
new_screens = 12
# Documented adjustment: the new work adds a payment integration
# that none of the references had.
adjustment = 1.10
estimates = []
for name, actual, screens in past:
scaled = actual * (new_screens / screens) * adjustment
estimates.append(scaled)
print(f"{name}: {scaled:.1f} person-days")
print(f"range: {min(estimates):.1f} to {max(estimates):.1f} person-days")
print(f"middle reference: {median(estimates):.1f} person-days")Running this prints 54.1, 61.6 and 49.5 for the three references, a range of 49.5 to 61.6, and a middle value of 54.1 person-days. The output is effort. To get calendar time, you still need the conversion from the later chapter on people, focus and availability.
The scaling above assumes effort grows in proportion to size. That often fails, as the pitfalls below explain.
Worked example in words
A team must estimate a new "invoice export" feature. They find two similar past features:
- A "customer export" feature that took 18 person-days, with two output formats.
- A "order export" feature that took 26 person-days, with three output formats and a scheduling option.
The new feature needs three output formats and no scheduling, and the team has now used the export library before. They reason as follows. Format count is the main size driver. The first reference has fewer formats, so scale it up by 3/2, giving 27. The second reference has the same format count but includes scheduling, which the new feature lacks, so reduce it by about 15 percent, giving roughly 22. The team's library experience reduces both by about 10 percent. The results are about 24 and 20 person-days. The stated estimate is 20 to 24 person-days, assuming the existing export library is reused and no scheduling is required.
Notice that the team did not pick one number, and that the assumptions are part of the answer. If scheduling is later added, the assumption is broken and the estimate must change.
Common errors
- Using planned figures instead of actuals. A past plan contains the same optimism you are trying to avoid. Only recorded actuals carry information about what happened.
- Using memory instead of records. People remember how long work felt, and they tend to forget rework and waiting time. Look in time tracking, tickets or commit history.
- Mixing effort and duration. If the reference reports elapsed weeks and you treat them as person-weeks, the estimate is wrong by the team size and the time lost to other duties. Always record which one you have.
- Comparing different scopes. A past figure that excludes testing, deployment or management overhead understates the new work.
- Assuming linear scaling. Doubling the size often more than doubles the effort, because coordination, integration and defects grow faster than the work itself. Larger projects usually need an upward adjustment beyond simple proportion. Conversely, repeating the same kind of component can get cheaper from learning.
- Stacking adjustments without limit. Five multipliers of 1.1 together give 1.61. Each factor seems small, but the combined effect is large and the factors are often guesses. Keep few adjustments and justify each.
- Cherry-picking references. Choosing the project that supports the number you already want defeats the technique. Pick references by the similarity criteria before looking at their results.
- Hiding the uncertainty. An analogous estimate made from a rough scope carries wide error. Report it as a range with a confidence statement, not as a single figure.
Accuracy and trade-offs
Analogous estimation is quick and needs little detail, but its accuracy depends on how closely the reference matches. With good records and close matches it can be reasonably accurate. With weak matches it can be wrong by a large factor, and you will not know which case you are in unless you check the table of dimensions above.
The method also connects to the chapters after it. Once you scale references by a single size measure and a stable rate, you are close to parametric estimation, where the unit rate is formalized. Comparing your estimates with actuals, as covered in the tracking and calibration chapter, tells you whether your adjustments are biased in one direction.
Exercise
A team finished a "supplier portal" in 40 person-days with 8 pages. They now plan a "partner portal" with 12 pages. The team is new to the partner domain, so they apply a factor of 1.2. They assume effort scales in proportion to page count. What is the estimate in person-days, and name two things that could make this figure unreliable?
Show answer
Scale by size: 40 × 12/8 = 60 person-days. Apply the factor: 60 × 1.2 = 72 person-days. It would be better to state a range, since this is a single reference. Two possible weaknesses: effort may not scale linearly with page count (integration and coordination often grow faster), and the 1.2 factor is a guess. Also the supplier portal's scope may differ (for example, testing or documentation not included), and a single reference gives no sense of spread.
Exercise
A colleague says, "Last time we built something like this it took about three months, so it will take three months." List three questions you would ask before using this as an estimate.
Show answer
Any three of the following. Is the three months an actual recorded figure, or a memory of the plan? Is it effort or elapsed duration, and with how many people? Did the past work cover the same scope (design, testing, deployment)? How does the size and complexity compare? Was the team the same, and was the technology the same? Is there more than one reference to show a spread?