Sub topic 16
Using Velocity and Flow Metrics for Forecasting Without Gaming
This chapter assumes you already know what story points, a sprint, and a product backlog are. It also assumes you have seen a team's sprint capacity discussed in planning. Here you will learn how to turn sprint data into a forecast you can share. You will also learn how to keep that data honest.
What metrics are for
Sprint metrics answer one question: when is a given amount of work likely to be done? They are an input to planning conversations. They do not measure how good the team is.
A useful rule is Goodhart's law: when a measure becomes a target, it stops being a good measure. If you ask a team to raise its velocity, the team can do that by inflating estimates. Velocity goes up and nothing ships faster. Keep every metric in this chapter as a forecasting aid, never a goal.
Velocity as a forecasting input
Velocity is the number of story points a team finishes in a sprint. Only work that meets the Definition of Done counts. Partly finished stories count for zero.
Velocity is only comparable within one team over time. Points are a local unit. A team that scores 40 is not faster than a team that scores 20, because the two teams size stories differently.
A rolling average smooths out one-off good or bad sprints. The script below uses the last three sprints.
import math
completed_points = [21, 18, 24, 20] # points finished in the last four sprints
remaining_points = 85
recent = completed_points[-3:]
average_velocity = sum(recent) / len(recent)
sprints_needed = math.ceil(remaining_points / average_velocity)
print(f"Average velocity (last 3 sprints): {average_velocity:.1f}")
print(f"Forecast: about {sprints_needed} sprints to finish {remaining_points} points")With these numbers the average is 20.7 and the forecast is 5 sprints. That single number hides a lot of uncertainty, so do not share it alone.
Forecast as a range
Take the best and worst recent sprints to bound the answer. Here the lowest is 18 points and the highest is 24.
| Scenario | Velocity | Sprints for 85 points |
|---|---|---|
| Pessimistic | 18 | 5 |
| Average | 20.7 | 5 |
| Optimistic | 24 | 4 |
You would tell stakeholders "four to five sprints, most likely five." State what the range assumes: stable team size, no major new scope, and the remaining points staying accurate. Re-forecast every sprint as the backlog changes.
Remaining points are themselves an estimate. Items far down the backlog are rough, and unrefined items tend to grow once the team looks at them. Treat long-range forecasts with matching caution.
Flow metrics
Flow metrics measure how individual items move through the workflow. They do not depend on point estimates, so they are harder to inflate.
- Cycle time is the time from when work starts on an item to when it is done.
- Lead time is the time from when an item is requested to when it is done. It includes waiting in the backlog.
- Work in progress (WIP) is the number of items started but not finished.
- Throughput is the number of items finished in a period, such as a sprint.
Throughput can replace velocity. If the team finishes about 9 items per sprint and 40 items remain, the forecast is about 4 to 5 sprints. This works best when items are roughly similar in size, which smaller stories encourage.
Cycle time is useful for promises about single items. Report it as a percentile, not an average. "85% of stories finish within 6 days" is more honest than "the average is 4 days," because a few slow items distort an average.
Reading the charts
Two simple charts are enough for most teams.
- Burn-up chart: completed work and total scope are plotted as two lines. When scope grows, you can see it. A burndown hides scope growth because the target line moves with it.
- Cycle time scatter plot: each dot is one finished item. Clusters show the normal range. Dots far above the cluster are outliers worth discussing in the retrospective.
A rising WIP count with flat throughput means the team is starting more than it finishes. The usual fix is a WIP limit, not more people.
How metrics get gamed
Gaming is rarely dishonest. It is usually a reasonable response to pressure.
| Pressure | Gaming behavior | Effect |
|---|---|---|
| Target velocity | Inflate estimates | Velocity rises, output does not |
| Pressure to close stories | Skip testing, redefine Done | Defects appear in later sprints |
| Target cycle time | Split work artificially, or start late | Numbers look better, flow does not |
| Individual comparison | Pick easy stories | Hard, valuable work is avoided |
Prevent this with a few habits:
- Never put velocity in a performance review or compare teams with it.
- Do not set velocity targets. Ask about the forecast instead.
- Pair a speed metric with a quality signal, such as escaped defects, so that cutting corners shows up.
- Share metrics with the team first. They know why a number moved.
Edge cases
- New team or team change: with fewer than three sprints of data, or after people join or leave, historical velocity is unreliable. Say so, and widen the range.
- Holidays and leave: adjust for capacity first, then apply velocity. Divide velocity by planned capacity to get points per available person-day.
- Re-estimation: if the team changes its estimation scale, restart the average from the change.
- Carry-over: do not give partial credit for unfinished stories. Count them in the sprint where they finish.
- Unplanned work: if interruptions take a regular share of the sprint, track them. Either reserve capacity for them or accept that velocity will be lower.
Exercise
A team finished 16, 22, and 19 points in its last three sprints. 60 points remain. Give a forecast range in sprints, and name one thing you would state alongside it.
Show answer
The average is 19 points, so the likely answer is 4 sprints (60 / 19 is about 3.2, rounded up). Using the lowest sprint (16) gives 4 sprints (3.75, rounded up), and the highest (22) gives 3 sprints (2.7, rounded up). So the range is 3 to 4 sprints, most likely 4. State the assumptions, such as stable team size and no new scope, and say you will re-forecast each sprint.
Exercise
Leadership asks the team to raise velocity by 20% next quarter. Describe one likely result and one alternative request that helps more.
Show answer
Likely result: estimates inflate, so velocity rises without more delivered value, and quality may drop as stories are closed early. A better request is to ask for a shorter cycle time or fewer items in progress, and to review it with a quality measure such as escaped defects, or to ask what is slowing the team down and discuss it in the retrospective.