Top Banner
Lead Time: What We Know About It And How It Can Help Forecast Your Projects
52
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Agile DC Lead Time

Lead Time:What We Know About ItAnd How It Can Help Forecast Your

Projects

Page 2: Agile DC Lead Time

Alexei Zheglov

Page 3: Agile DC Lead Time

@az1#agiledc

Page 4: Agile DC Lead Time

Goodhart’s Law

Page 5: Agile DC Lead Time

Kanban System Lead Time

DeliveredIdeas AnalysisInputQueue

Ready to

Deliver∞325

Development Test

3

Lead Time

The FirstCommitment

Point

AB

C

Discarded

D

Page 6: Agile DC Lead Time

Ask Not

DeliveredIdeas AnalysisInputQueue

Ready to

Deliver∞325

Development Test

3

Lead Time

AB

C

Discarded

D

Not “how long will it take?”

Page 7: Agile DC Lead Time

Do Ask

DeliveredIdeas AnalysisInputQueue

Ready to

Deliver∞325

Development Test

3

Lead Time

AB

C

Discarded

D

When should we start?

When do we need it?

Page 8: Agile DC Lead Time

Decide

DeliveredIdeas AnalysisInputQueue

Ready to

Deliver∞325

Development Test

3

Lead Time

AB

C

Discarded

DOne event

precedes (leads) another one

by this much

One eventprecedes (leads) another

oneby this much

Page 9: Agile DC Lead Time

Why?

DeliveredIdeas AnalysisInputQueue

Ready to

Deliver∞325

Development Test

3

Lead Time

The FirstCommitment

PointAB

C

Discarded

D

Includes the time the work item

spent as an option

Depends on the transaction

costs (external to the system)

Measures the true delivery

capability

Page 10: Agile DC Lead Time

Customer Lead Time

DeliveredIdeas Activity 1InputQueue

Output Buffer

∞???

Activity 2 Activity 3

?

Customer Lead Time

AB

Kanban system(s) lead time

+time spent in the

unlimited buffer(s)

C

Discarded

D

Page 11: Agile DC Lead Time

(Local) Cycle Time

DeliveredIdeas Activity 1InputQueue

Output Buffer

∞???

Activity 2 Activity 3

?

AB

C

Discarded

D

Cycle time is always local

Always qualify where it is from

and to

Often depends mainly on the size of the local

effort

Page 12: Agile DC Lead Time

Discussion 1: Gaming Metrics

Page 13: Agile DC Lead Time

Readyto Test

Flow Efficiency

F

Q E

C A

J

GD

GYBG

DE NP

P1

AB

Customer Lead Time

Wait Wait WorkWork

IdeasReadyto Dev

5IP

Development Testing

Done3 35

UATReady toDeliver

∞ ∞

Work WaitWork

Official training material, used with permission

Page 14: Agile DC Lead Time

Readyto Test

Flow Efficiency

F

Q E

C A

J

GD

GYBG

DE NP

P1

AB

Customer Lead Time

Wait Wait WorkWork

IdeasReadyto Dev

5IP

Development Testing

Done3 35

UATReady toDeliver

∞ ∞

Work WaitWork

Official training material, used with permission

Work is waiting

Work is still waiting!Multitasking creates

hidden queues!

Page 15: Agile DC Lead Time

Readyto Test

Flow Efficiency

F

Q E

C A

J

GD

GYBG

DE NP

P1

AB

Customer Lead Time

Wait Wait WorkWork

IdeasReadyto Dev

5IP

Development Testing

Done3 35

UATReady toDeliver

∞ ∞

Work WaitWork

Official training material, used with permission

%100time elapsed

time touchefficiencyflow

Page 16: Agile DC Lead Time

Readyto Test

Measuring Flow Efficiency

F

Q E

C A

J

GD

GYBG

DE NP

P1

AB

Customer Lead Time

Wait Wait WorkWork

IdeasReadyto Dev

5IP

Development Testing

Done3 35

UATReady toDeliver

∞ ∞

Work WaitWork

Official training material, used with permission

Timesheets arenot

necessary!

Rough approximations (±5%) are often

sufficient

In Aggregate

Sampling

Page 17: Agile DC Lead Time

Readyto Test

Measuring Flow Efficiency

F

Q E

C A

J

GD

GYBG

DE NP

P1

AB

Customer Lead Time

Wait Wait WorkWork

IdeasReadyto Dev

5IP

Development Testing

Done3 35

UATReady toDeliver

∞ ∞

Work WaitWork

The results are often between 1%

and 5%*

*-Zsolt Fabok, Lean Agile Scotland 2012, LKFR12; Hakan Forss, LKFR13

The result is not limited to the number!

What did you decide to do?

Page 18: Agile DC Lead Time

If the Flow Efficiency Is 5%...

If... Before After Improvement

Hire 10x engineers 100 95.5 +4.7%

The task is three times bigger 100 110 -9.1%

The task is three times smaller 100 96.7 +3.4%

Reduce delays by half 100 52.5 +90%

Page 19: Agile DC Lead Time

Consequences of Low Flow Efficiency

Page 20: Agile DC Lead Time

Goodhart’s Law’s Corollary

Page 21: Agile DC Lead Time

Start Measuring?

Page 22: Agile DC Lead Time

Discussion 2: Measuring Lead Time

Page 23: Agile DC Lead Time

Deterministic approachto a probabilistic process?

probabilistic

!!!

Page 24: Agile DC Lead Time

0-4 5-9 10-14 15-19 20-24 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 65-69 70-74 75-79 80-84 85-89 95-99 100-104

0

2

4

6

8

10

12

14

16

18

20

Example

Page 25: Agile DC Lead Time

0-4 5-9 10-14 15-19 20-24 25-29 30-34 35-39 40-44 45-49 50-54 55-59 60-64 65-69 70-74 75-79 80-84 85-89 95-99 100-104

0

2

4

6

8

10

12

14

16

18

20

Example

Best-fit distribution:Weibull with

shape parameter k=1.62

Page 26: Agile DC Lead Time

Heterogeneous Demand

DeliveredIdeas AnalysisInputQueue

Ready to

Deliver∞325

Development Test

3

AB

C

Discarded

D

E

G

F

H

Demand placed upon our system is differentiatedby type of work and risk

Page 27: Agile DC Lead Time

Drill down by project type

0-410-14

20-2430-34

40-4450-54

60-6470-74

80-8495-99

02468

101214161820

0-4 5-9 10-14

15-19

20-24

25-29

30-34

35-39

40-44

45-49

50-54

55-59

60-64

65-69

70-74

75-79

80-84

85-89

95-99

100-104

0

2

4

6

8

10

12

14

16

18

20

Mixed data from different types of

projects

Page 28: Agile DC Lead Time

4 types, 4 different distributions

0-410-14

20-2430-34

40-4450-54

60-6470-74

80-8495-99

02468

101214161820

0-410-14

20-2430-34

40-4450-54

60-6470-74

80-8495-99

02468

101214161820

5-910-14

15-1920-24

25-2930-34

35-3940-44

45-4950-54

55-5960-64

65-6975-79

80-8485-89

100-1040

2

4

6

8

10

12

14

16

18

0-4 5-9 10-14

15-19

20-24

25-29

40-44

55-59

60-64

65-69

70-74

75-79

95-99

0

1

2

3

4

5

6

...

...

Page 29: Agile DC Lead Time

Delivery Expectations

0-410-14

20-2430-34

40-4450-54

60-6470-74

80-8495-99

02468

101214161820

0-410-14

20-2430-34

40-4450-54

60-6470-74

80-8495-99

02468

101214161820

Shape Average In 98%

1.62

1.23

1.65

3.22

In 85% of cases

30 d

35 d

40 d

56 d

<51

<63

<68

<78

<83

<112*

<110*

<99

Page 30: Agile DC Lead Time

Delivery Expectations

0-410-14

20-2430-34

40-4450-54

60-6470-74

80-8495-99

02468

101214161820

0-410-14

20-2430-34

40-4450-54

60-6470-74

80-8495-99

02468

101214161820

Shape Average In 98%

1.62

1.23

1.65

3.22

In 85% of cases

30 d

35 d

40 d

56 d

<51

<63

<68

<78

<83

<112*

<110*

<99

The averages are insufficient

to specify delivery capabilities!

The average says nothing about variability!

Needed:the average and a high percentile (usually 80-

99%)

Page 31: Agile DC Lead Time

Another Example

0-2.5 2.5-5 5-7.5 7.5-10 10-12.5 12.5-15 15-17.5 25-27.50

2

4

6

8

10

12

Development

0-3 3-6 6-9 9-12 12-15 15-180

2

4

6

8

10

12

14

Support

Shape: 1.16 Shape: 0.71

Page 32: Agile DC Lead Time

Weibull DistributionsOccur Frequently

Operations, support (k<1)

New product development (k>1)

Page 33: Agile DC Lead Time

Weibull DistributionsOccur Frequently

Operations, support (k<1)

New product development (k>1)

The unique signature of your

process

The unique signature of your

process

Page 34: Agile DC Lead Time

Bias

Feedback

How to “Read” a Distribution

Scale

Control

Expectations

Forecast

Page 35: Agile DC Lead Time

Mode: how we rememberthe “typical” delivered work

item.Trouble: it’s a very low

percentile.18-28% common.

Page 36: Agile DC Lead Time

Median: 50% more, 50% less.

Perfect for creatingvery short feedback loops

Page 37: Agile DC Lead Time

Average: we need it for Little’s Law

LeadTime

WIPteDeliveryRa

Little’s Law:handle with care

Page 38: Agile DC Lead Time

The 63% percentile isthe best indicator of

scale

Page 39: Agile DC Lead Time

High percentiles (80th-99th):critical to defining

service-level expectations

High percentiles (80th-99th):critical to defining

service-level expectations

Page 40: Agile DC Lead Time

Statistical process control:Sprint duration in iterative

methods,SLAs in Operations, etc.

Page 41: Agile DC Lead Time

Forecasting Cards

Page 42: Agile DC Lead Time

While I Was Preparing This Presentation, Somebody Sent Me This...

Page 43: Agile DC Lead Time

Discussion 3:Probabilistic or Deterministic?

Page 44: Agile DC Lead Time

TestReady

S

RQ

P

ON

F

A Few Words About Projects…

H

E

C

I

G

D

M

DevReady

5Ongoing

Development Testing

Done3 35

UATReleaseReady

∞ ∞

ProjectScope

Official training material, used with permission

Page 45: Agile DC Lead Time

Delivery Rate

Lead Time

WIP=

Applying Little’s Law

From observed capability

Treat as a fixed variable

Targetto

achieve plan

Calculated based on known lead time

capability & required delivery

rate

Determines staffing level

Official training material, used with permission

Page 46: Agile DC Lead Time

Delivery Rate

Lead Time

WIP=

Applying Little’s Law

From observed capability

Treat as a fixed variable

Targetto

achieve plan

Calculated based on known lead time

capability & required delivery

rate

Determines staffing level

Complicating factors here:

Dark matter“Z-curve effect”

Scope creep

Complicating factors here:Variety of work item types and

risks

Page 47: Agile DC Lead Time

Delivery Rate

Lead Time

WIP=

Applying Little’s Law

From observed capability

Treat as a fixed variable

Targetto

achieve plan

Calculated based on known lead time

capability & required delivery

rate

Determines staffing level

Complicating factors here:

Dark matter“Z-curve effect”

Scope creep

Complicating factors here:Variety of work item types and

risks

Page 48: Agile DC Lead Time

TestReady

S

RQ

P

ON

F

A Few Words About Projects…

H

E

C

I

G

D

M

DevReady

5Ongoing

Development Testing

Done3 35

UATReleaseReady

∞ ∞

ProjectScope

Lead time data andobserved/measured delivery

capabilityat the feature/user story level

are critical to forecasting projects

The project initiation phase is a great time to

builda forecasting model and

feedback loops

Page 49: Agile DC Lead Time

New Kanban Book

Mike Burrows

Page 50: Agile DC Lead Time

Influencers

Troy Magennis Dimitar Bakardzhiev David J Anderson

Dan Vacanti Dave White Frank Vega

Page 51: Agile DC Lead Time

Discussion 4: What Now?

Page 52: Agile DC Lead Time

Alexei Zheglov