Sub topic 10
Parametric estimation: unit rates and models
This chapter assumes you know the vocabulary of effort and duration, can read basic Python, and have seen analogous and bottom-up estimation. It covers how to turn historical data into a repeatable estimate, where the method fails, and how to check a parametric estimate before you rely on it.
What parametric estimation is
Parametric estimation predicts effort or duration from a measurable size driver and a rate learned from past work. The general form is:
effort = size × rateThe size driver is a count you can obtain before the work starts. Examples are screens to build, endpoints to implement, pages to write, test cases to run, or servers to migrate. The rate is the effort that past work needed per unit of that driver.
Analogous estimation compares your project with one similar project as a whole. Bottom-up estimation sums judgments about each task. Parametric estimation sits between them. It uses many past data points, like analogous estimation, but it scales with size, like bottom-up estimation. Because the rate comes from data, the estimate is repeatable: two people with the same history and the same size count get the same number.
Where it works well
Parametric estimation works when the work is repetitive and countable, and when the past work resembles the new work. The conditions are:
- The size driver can be counted early and with little dispute.
- Effort really does grow with that count.
- You have at least several completed examples, recorded as actual effort rather than planned effort.
- The new work uses a similar team, technology and level of difficulty.
| Work type | Size driver | Typical rate unit |
|---|---|---|
| Data migration | Tables migrated | Person-days per table |
| Documentation | Pages | Person-hours per page |
| Manual testing | Test cases | Person-minutes per case |
| Report development | Reports | Person-days per report |
| Cabling or installation | Units installed | Person-hours per unit |
It works badly for novel work, research, and work where the size is the unknown. "Number of features" is a poor driver if features differ in cost by a factor of twenty.
Step 1: derive a unit rate with a range
A single average hides spread. Compute the rate for each past project, then keep the range.
# (units delivered, actual person-days) from past, similar work
history = [(8, 14), (12, 22), (5, 9), (20, 41), (15, 27)]
rates = [days / units for units, days in history]
mean_rate = sum(rates) / len(rates)
low_rate, high_rate = min(rates), max(rates)
new_units = 18
print(f"rate: {low_rate:.2f} to {high_rate:.2f} person-days per unit "
f"(mean {mean_rate:.2f})")
print(f"{new_units} units: {new_units * low_rate:.1f} to "
f"{new_units * high_rate:.1f} person-days, "
f"expected {new_units * mean_rate:.1f}")With this data the 18-unit estimate runs from about 31.5 to 36.9 person-days, with an expected value near 33.2. The result is effort, not duration. Convert it to calendar time with the method from the chapter on people, focus and availability.
The min-to-max range from five points is narrow and probably too optimistic about the future. Five observations rarely include the bad case. Treat this range as a floor on uncertainty and widen it using the techniques in the contingency chapter.
Step 2: check whether effort scales linearly
A fixed rate assumes that doubling the size doubles the effort. That is often untrue. Larger work needs more coordination, more integration and more rework, so the rate per unit rises with size. This is a diseconomy of scale. Sometimes the opposite holds: setup cost is spread over more units, which is an economy of scale.
A common model is a power law:
effort = a × size^bWhen b is above 1, effort grows faster than size. When b is below 1, it grows slower. When b is 1, the simple unit rate is correct. You can fit a and b by linear regression on the logarithms of size and effort, because taking logs turns the formula into a straight line: log(effort) = log(a) + b × log(size).
from math import log, exp
from statistics import linear_regression # Python 3.10+
sizes = [8, 12, 5, 20, 15]
efforts = [14, 22, 9, 41, 27]
slope, intercept = linear_regression(
[log(s) for s in sizes],
[log(e) for e in efforts],
)
a, b = exp(intercept), slope
def predict(size):
return a * size ** b
print(f"effort = {a:.2f} * size^{b:.2f}")
print(f"18 units: {predict(18):.1f} person-days")Compare b with 1. If it is close, the linear unit rate is adequate and simpler to explain. If it is clearly above 1, a linear rate underestimates large work.
Well-known published models, such as COCOMO for software, follow this same shape: a size input, an exponent, and adjustment factors. You can use a published model when you have no local data, but its coefficients come from other organizations. Calibrate it against your own history as soon as you have any.
The process as a whole
Adjusting for differences
A rate from past work applies to the new work only if the conditions match. When they differ, apply an explicit adjustment and state it as an assumption. For example:
- The new team is less experienced with the technology: multiply the rate by 1.2 to 1.5, based on evidence if you have it.
- Past work included heavy rework that the new work will avoid: reduce the rate only if you can name why.
- Requirements are less stable: widen the range rather than shifting the average.
Keep adjustments few and visible. Each factor you add is a guess layered on data. A model with ten tuning factors can be tuned to give any answer you want, which defeats its purpose.
Common errors
- Using planned effort as history. Rates must come from actual recorded effort. Planned numbers only reproduce your old estimating mistakes.
- Mixing different kinds of work. Averaging simple and complex units into one rate gives a number that fits neither. Group units into size classes (small, medium, large) and keep a rate for each.
- A size driver that is not known early. If the count only becomes clear late in the project, the estimate is only as good as your guess of the count. Estimate the count as a range too and carry it through.
- Omitting non-proportional work. Project management, environment setup and release activities often do not scale with the unit count. Estimate them separately and add them.
- Reporting false precision. An estimate of 33.24 person-days implies accuracy the data cannot support. Round to the precision your spread justifies.
- Ignoring outliers silently. If one past project had a rate twice the others, find out why. Remove it only if you can explain it and the cause will not recur.
Combining with other techniques
Parametric estimation works as a cross-check. If your bottom-up total for 18 units is 50 person-days but the historical rate predicts 31 to 37, one of the two is wrong, and the gap tells you where to look. Either the task list contains work the history never needed, or the bottom-up estimates carry padding. Agreement between two independent methods increases confidence. A large disagreement is a prompt to investigate before committing.
It also feeds the calibration cycle. Each finished project adds a data point, so the model improves with use. That is why the loop in the diagram returns to the start.
Exercise
A team's history shows these actuals for report development: (4 reports, 10 person-days), (6 reports, 15 person-days), (10 reports, 28 person-days). A new project needs 30 reports. Compute each past rate, and explain why using the average rate for 30 reports is risky.
Show answer
The rates are 2.5, 2.5 and 2.8 person-days per report. The average is about 2.6, which would give about 79 person-days for 30 reports. The risk is that the history covers only 4 to 10 reports, and the rate rises with size (2.8 at 10 reports). Thirty reports is three times the largest past project, so the rate is likely higher still because of coordination and integration costs. The estimate should be given as a wide range with the extrapolation stated as an assumption, and the team should cross-check it with a bottom-up estimate of at least part of the work.