Top Banner
Agile Metrics: Velocity Not Goal. Michael “Doc” Norton @DocOnDev [email protected]
57

Velocity is NOT the Goal - PNSQC

Oct 17, 2014

Download

Documents

Updated version of this talk as presented at Pacific Northwest Software Quality Conference in 2012. This is a longer version, including content on scatter diagrams and standard deviation.
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: Velocity is NOT the Goal - PNSQC

Agile Metrics:Velocity is Not the

Goal.Michael “Doc” Norton ◊ @DocOnDev ◊ [email protected]

Page 2: Velocity is NOT the Goal - PNSQC

Work units delivered over timeWhat’s “Agile” Velocity?

Page 3: Velocity is NOT the Goal - PNSQC

Tells us about the health of the projectTrailing Indicator

Page 4: Velocity is NOT the Goal - PNSQC

Planning ByVelocity

Page 5: Velocity is NOT the Goal - PNSQC

Velocity Graph

0

6

12

18

24

30

1 2 3 4 5 6 7 8 9 10

25

2827

2829

28

24

28

30

27

Velocity

Page 6: Velocity is NOT the Goal - PNSQC

Yesterday’s Weather

0

6

12

18

24

30

1 2 3 4 5 6 7 8 9 10

30 25 28 27 28 29 28 24 28 30

25

2827

2829

28

24

28

30

27

Weather Actual

Page 7: Velocity is NOT the Goal - PNSQC

Burn Down

0

125

250

375

500

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Ideal Actual Estimate

Page 8: Velocity is NOT the Goal - PNSQC

Rolling Average

0

6

12

18

24

30

1 2 3 4 5 6 7 8 9 10

30 25 27 27 28 28 28 26 27 2730 25 28 27 28 29 28 24 28 30

25

2827

2829

28

24

28

30

27

Weather Rolling Actual

Page 9: Velocity is NOT the Goal - PNSQC

Burn Down

0

125

250

375

500

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Ideal Actual Estimate

Page 10: Velocity is NOT the Goal - PNSQC

Do you feelConfident?

Page 11: Velocity is NOT the Goal - PNSQC

StandardDeviation

Page 12: Velocity is NOT the Goal - PNSQC

Standard Deviation Basics

Page 13: Velocity is NOT the Goal - PNSQC

?

Page 14: Velocity is NOT the Goal - PNSQC

Standard Deviation Basics

Page 15: Velocity is NOT the Goal - PNSQC

Standard Deviation Basics

Calculate the mean (average) of the population

Compute the difference of each data point from

the mean, and square the result of each

Compute the average of these values, and take

the square root

Page 16: Velocity is NOT the Goal - PNSQC

Calculate the mean

0

6

12

18

24

30

1 2 3 4 5 6 7 8 9 10

25

2827

2829

28

24

28

30

27

Velocity

(25+28+27+28+29+28+24+28+30+27)/10 = 27.4

Page 17: Velocity is NOT the Goal - PNSQC

Take differences and square

0

6

12

18

24

30

1 2 3 4 5 6 7 8 9 10

25

2827

2829

28

24

28

30

27

Velocity

(25-27.4)**2 = (-2.4)**2 = 5.76(28-27.4)**2 = (0.6)**2 = 0.36(27-27.4)**2 = (-0.4)**2 = 0.16(28-27.4)**2 = (0.6)**2 = 0.36(29-27.4)**2 = (1.6)**2 = 2.56

(28-27.4)**2 = (0.6)**2 = 0.36(24-27.4)**2 = (-3.4)**2 = 11.56(28-27.4)**2 = (0.6)**2 = 0.36(30-27.4)**2 = (2.6)**2 = 6.76(27-27.4)**2 = (-0.4)**2 = 0.16

(25+28+27+28+29+28+24+28+30+27)/10 = 27.4

Page 18: Velocity is NOT the Goal - PNSQC

Square root of difference avg.

0

6

12

18

24

30

1 2 3 4 5 6 7 8 9 10

25

2827

2829

28

24

28

30

27

Velocity

(25-27.4)**2 = (-2.4)**2 = 5.76(28-27.4)**2 = (0.6)**2 = 0.36(27-27.4)**2 = (-0.4)**2 = 0.16(28-27.4)**2 = (0.6)**2 = 0.36(29-27.4)**2 = (1.6)**2 = 2.56

(28-27.4)**2 = (0.6)**2 = 0.36(24-27.4)**2 = (-3.4)**2 = 11.56(28-27.4)**2 = (0.6)**2 = 0.36(30-27.4)**2 = (2.6)**2 = 6.76(27-27.4)**2 = (-0.4)**2 = 0.16

(25+28+27+28+29+28+24+28+30+27)/10 = 27.4

(2.84)**1/2 = 1.685

Page 19: Velocity is NOT the Goal - PNSQC

Standard Deviation

0

6

12

18

24

30

1 2 3 4 5 6 7 8 9 10

25

2827

2829

28

24

28

30

27

Velocity

1.685

Page 20: Velocity is NOT the Goal - PNSQC

Burn Down :: 1SD

0

125

250

375

500

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Ideal Actual Estimate High Low

Page 21: Velocity is NOT the Goal - PNSQC

Burn Down :: 2SD

0

125

250

375

500

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

Ideal Actual Estimate High Low

Page 22: Velocity is NOT the Goal - PNSQC

Same Mean, Same Rolling, Different DeviationStandard Deviation

Set: 10,11,9,10Mean: 10Rolling: 10Deviation: 0.7Velocity: 9.3-10.7

Set: 10,14,9,7Mean: 10Rolling: 10Deviation: 2.5Velocity: 7.5-12.5

Page 23: Velocity is NOT the Goal - PNSQC

Now you do it

6, 11, 12, 10, 8, 7Calculate the mean (average) of the population

Compute the difference of each data point from

the mean, and square the result of each

Compute the average of these values, and take

the square root

Calculate Standard Deviation & Predict Velocity

Page 24: Velocity is NOT the Goal - PNSQC

“You can’t manage what you can’t

measure”

Page 25: Velocity is NOT the Goal - PNSQC

Says Who?

Page 26: Velocity is NOT the Goal - PNSQC

Father of the Quality EvolutionDr. W. Edwards Deming

You can’t manage what

you can’t measure.

Page 27: Velocity is NOT the Goal - PNSQC

Father of the Quality EvolutionDr. W. Edwards Deming

Certainly NOTDon’t be ridiculous!

Page 28: Velocity is NOT the Goal - PNSQC

Running a company on visible figures

alone

[!" #$%#&']

Father of the Quality EvolutionDr. W. Edwards Deming

Page 29: Velocity is NOT the Goal - PNSQC

Lack of constancy of purposeEmphasis on short term profitsEvaluation of performance, merit rating, or annual reviewMobility of top managementRunning a company on visible figures alone

Excessive medical costsExcessive legal damage awards

Seven Deadly Diseasesof

Western Management

Page 30: Velocity is NOT the Goal - PNSQC

5at which is measured, will improveThe Hawthorn Effect

Page 31: Velocity is NOT the Goal - PNSQC

Rather than the symptomsRepair the root cause

What matters is not setting

quantitative goals but 6ing the method by

which th7e goals are attained

Page 32: Velocity is NOT the Goal - PNSQC

What does it mean?Unstable Velocity

Page 33: Velocity is NOT the Goal - PNSQC

You want consistent (small) storiesPoor Story Composition

Page 34: Velocity is NOT the Goal - PNSQC

Get the highest value done firstToo Much WIP

Page 35: Velocity is NOT the Goal - PNSQC

Get everyone you need on the teamDependency on Other Teams

Page 36: Velocity is NOT the Goal - PNSQC

It won’t ever be perfectStable Velocity

Page 37: Velocity is NOT the Goal - PNSQC

Do we always want to go faster?Increase Velocity

Page 38: Velocity is NOT the Goal - PNSQC

Making a metric a target destroys the metricGoodhart’s Law

Page 39: Velocity is NOT the Goal - PNSQC

Rather than the symptomsRepair the root cause

What matters is not setting

quantitative goals but 6ing the method by

which th7e goals are attained

Page 40: Velocity is NOT the Goal - PNSQC

ScatterDiagram

Page 41: Velocity is NOT the Goal - PNSQC

Shows Correlation Between Two VariablesScatter Diagrams

0

5000

10000

15000

20000

0 2 4 6 8

Page 42: Velocity is NOT the Goal - PNSQC

Velocity and Complexity

0

12.5

25

37.5

50

0 25 50 75 100

Negative Correlation

Page 43: Velocity is NOT the Goal - PNSQC

Velocity and Value

0

12.5

25

37.5

50

0 10000 20000 30000 40000

No Correlation

Page 44: Velocity is NOT the Goal - PNSQC

Velocity and Test Coverage

0

12.5

25

37.5

50

0 22.5 45 67.5 90

P7itive Correlation

Page 45: Velocity is NOT the Goal - PNSQC

CumulativeFlow

Page 46: Velocity is NOT the Goal - PNSQC

Sample Backlog

Page 47: Velocity is NOT the Goal - PNSQC

Velocity doesn’t always tell us enoughCumulative Flow

Page 48: Velocity is NOT the Goal - PNSQC
Page 49: Velocity is NOT the Goal - PNSQC

What story does this tell?Velocity Graph

0

5

10

15

20

1 2 3 4 5 6 7 8 9 10

Velocity

Page 50: Velocity is NOT the Goal - PNSQC

What story does this tell?Velocity Graph

0

5

10

15

20

1 2 3 4 5 6 7 8 9 10

Velocity

Page 51: Velocity is NOT the Goal - PNSQC

What story does this tell?Cumulative Flow

0

25

50

75

100

1 2 3 4 5 6 7 8 9 10

Deployed Ready for Approval In Testing In Progress Ready To Start

Page 52: Velocity is NOT the Goal - PNSQC

WhatElse?

Page 53: Velocity is NOT the Goal - PNSQC

Watch more than oneBalanced Metrics

0

4

8

12

16

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Velocity

Page 54: Velocity is NOT the Goal - PNSQC

Watch more than oneBalanced Metrics

0

4

8

12

16

1 2 3 4 5 6 7 8 9 10 11 12 13 14 150

12.5

25

37.5

50

Velocity Quality

Page 55: Velocity is NOT the Goal - PNSQC

Watch more than oneBalanced Metrics

0

4

8

12

16

1 2 3 4 5 6 7 8 9 10 11 12 13 14 150

12.5

25

37.5

50

Velocity Quality Avg. Hours

Page 56: Velocity is NOT the Goal - PNSQC

Watch more than oneBalanced Metrics

0

4

8

12

16

1 2 3 4 5 6 7 8 9 10 11 12 13 14 150

12.5

25

37.5

50

Velocity Quality Avg. Hours Team Joy

Page 57: Velocity is NOT the Goal - PNSQC

Thank You

Michael “Doc” Norton ◊ @DocOnDev ◊ [email protected]