Planning and requirements · lesson 9 of 10
Ideas in this lesson
AStory pointssize compared with other stories, not hours
BPlanning pokereveryone shows at once, then the outliers explain
CThree-point estimatebest, likely and worst cases
DCone of uncertaintyestimates narrow as the project goes on

Estimating

Last updated

“How long will it take?” is the question every team is asked and nobody can answer exactly. Estimates are guesses about work that hasn't been understood yet, and the honest answer is a range that narrows as the project goes on. In this lesson you'll size Pila's stories against each other, play planning poker with the team, make a three-point estimate, and learn why the first date anyone gives is the least reliable.

By the end of this lesson you can

  • Explain why early estimates are uncertain, using the cone of uncertainty
  • Size stories relative to each other with story points and planning poker
  • Make a three-point estimate and say what range it gives

Why estimates are hard

At the start of a project, nobody knows exactly what will be built, let alone how long it takes. Steve McConnell's Software Estimation (2006) draws this as the cone of uncertainty, from Barry Boehm's earlier work: early estimates can be far off in either direction, and the range narrows as decisions are made.

The cone of uncertainty: how far off an estimate can be (McConnell, 2006)
When the estimate is madeCould be off byFor a “12-week” estimate
Initial idea0.25 to 4 times3 to 48 weeks
Product agreed0.5 to 2 times6 to 24 weeks
Requirements done0.67 to 1.5 times8 to 18 weeks
User interface designed0.8 to 1.25 times10 to 15 weeks
Detailed design done0.9 to 1.1 times11 to 13 weeks

McConnell stresses that these are the best a skilled team can do; the cone narrows only if the team actually makes the decisions. He also separates three things people mix up: an estimate (what we think it will take), a target (what someone wants) and a commitment (what we promise). "Before the fiesta" is a target.

Bigger or smaller than that one?

People are bad at saying how many hours something will take, and better at saying whether it's bigger or smaller than something else. Story points use that: the team picks a small, well-understood story as a reference, and sizes the rest against it.

Points are usually drawn from a sequence with growing gaps, such as 1, 2, 3, 5, 8, 13. The gaps are deliberate: nobody can tell an 11 from a 12, so the scale doesn't pretend to. Points measure size, including complexity and uncertainty, not hours; a team learns how many points it finishes in a sprint, its velocity, and plans from that. Points are only meaningful within one team; comparing two teams' velocities says nothing.

Planning poker

Planning poker was described by James Grenning in 2002 and spread by Mike Cohn. Each developer has cards with the point values. For each story, everyone picks a card in secret and shows it at the same time, so nobody anchors on the first number said aloud. If the votes are far apart, the highest and lowest explain, and everyone votes again.

You're in Pila's sizing meeting. Vote on three stories.

Story 1 of 3Story points: 1, 2, 3, 5, 8, 13

As a counter staff member, I want to print a number for someone without a phone, so that nobody is left out.

How big is it, compared with the others? Pick a card; everyone shows at the same time.

The number matters less than the conversation. The widest spreads find the risks.

Three points, not one

For one task, a three-point estimate asks for three numbers: the best case a, the most likely m, and the worst case b. A common way to combine them, from the PERT planning method of the 1950s, weights the most likely value four times:

E=a+4m+b6

Here E is the expected time. Marco estimates the text-message story: best case 3 days, most likely 5, worst case 13 (if the SMS company's service misbehaves). Then

E=3+4×5+136=366=6 days

The useful part isn't the 6: it's that the worst case is 13, more than twice the likely case. Report the range, "about 6 days, could be 13", and the reason. That tells Bea where the risk is.

Spot the trap: one date on day one

Spot the trapBea

At the very first meeting, before any requirements exist, Kap. Ernesto asks: “So when will it be ready? I need a date for my speech.”

What happens if…

Check what you learned

Why does planning poker have everyone show their card at the same time?
Best case 2 days, most likely 4, worst case 12. What is the three-point estimate?
According to the cone of uncertainty, when are estimates least reliable?

Sources

Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.

All sources for Simple Software Development