Top Banner
Grow your system from good to awesome! Kanban Metrics in practice @ SNS GOOD CRAP AWESOME! @BattistonMattia
42
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: Kanban Metrics in practice at Sky Network Services

Grow your system from good to awesome!

Kanban Metricsin practice

@ SNSGOOD

CRAP

AWESOME!

@BattistonMattia

Page 2: Kanban Metrics in practice at Sky Network Services

About me

● from Verona, Italy

● software dev & continuous improvement

● Kanban “helper”

● ~1.5 year Sky Network Services

Mattia Battiston

@BattistonMattia

[email protected]

Ciao!

Page 3: Kanban Metrics in practice at Sky Network Services

Why are we here?

OUR EXPERIENCE

WHY

HOW

IMPROVING

LESSONS LEARNT

FORECASTING

Page 4: Kanban Metrics in practice at Sky Network Services

Kan...what?

a little knowledge of Kanban helps(limiting WIP, lead time, value vs waste, queues, batches, etc.)

Page 5: Kanban Metrics in practice at Sky Network Services

Why do we need metrics?

#1: drive continuous improvement #2: forecast the future

Page 6: Kanban Metrics in practice at Sky Network Services

But I thought metrics were bad....

Typical problems:

gamingdysfunctions

Page 7: Kanban Metrics in practice at Sky Network Services

Good vs Bad metrics

● look at improving the whole system ● reward/punish individuals

“95% performance is attributable to

the system, 5% to the people”

W. Edwards Deming

● actionable -> help take decisions ● vanity -> make you feel better

● gaming leads to good ● gaming leads to bad

● in team’s influence ● can’t do anything about it

● feedback about state of reality ● used as target

● usually expressed as trends ● usually expressed as single numbers

● leading (let you change behaviour) ● lagging (tell you about the past)

Page 8: Kanban Metrics in practice at Sky Network Services

Keep a systemic approach

Avoid local optimizations - all metricsneed to improve for the system to improve

Page 9: Kanban Metrics in practice at Sky Network Services

Our system

Iteration-Based

On-demand

Direct

Page 10: Kanban Metrics in practice at Sky Network Services

How do we collect the data?

Page 11: Kanban Metrics in practice at Sky Network Services

The Spreadsheet

Inputs: story details; start time and duration of each state; # stories per state;

Page 12: Kanban Metrics in practice at Sky Network Services

Metrics Characteristics

● Purpose: which fitness criteria does it help me with?

delivery time, predictability, quality, continuous improvement

● Objective: what do we use this metric for?

leading, retrospect, forecast

● Frequency/time frame: how often do we refresh and look at this metric? what time

frame does it look at?

daily (short term), iteration (long term)

Page 13: Kanban Metrics in practice at Sky Network Services

All the maths you need

● Min, Max

Normal: data is distributed

around a central value

e.g. height of UK population

Skewed: data has a long tail

on one side (positive or

negative)

e.g. income of UK population

(positive skew)

Lead time of stories follows

skewed distribution

● Average (mean)

avg(1,2,2,2,3,14) = (1+2+2+2+3+14)/6 = 4

● Median: separates the high half from the low half. Less impacted by outliers

median(1,2,2,2,3,14) = 2

● Mode: value that occurs more frequently

mode(1,2,2,2,3,14) = 2

● Standard Deviation: measures the amount of dispersion from the average. When

high, values are spread over a large range.

stdev(1,2,2,2,3,14) = 4.5; stdev(1,2,2,2,3,5) =1.2;

● Percentile: percentage of elements that fall within a range

50% perc(1,2,2,3,7,8,14) = 3; 80% perc(1,2,2,3,7,8,14) = 7.8;

● Normal Distribution vs Skewed Distribution:

Page 14: Kanban Metrics in practice at Sky Network Services

Cumulative Flow Diagram

Description: Each day shows how many stories are in each state

no.

sto

ries

days

Page 15: Kanban Metrics in practice at Sky Network Services

Cumulative Flow Diagram

● Objective: retrospect (but needs a good facilitator)

CFD used for Retrospective

● Objective: demonstrate effectiveness of changes

changed WIP limit in DEV to 2

Page 16: Kanban Metrics in practice at Sky Network Services

Cumulative Flow Diagram

● Objective: decide what you should work on today

● Objective: forecasting: rough info about lead time, wip, delivery date (although

they’re easier to use when tracked separately)

WIP

LEAD TIME

Page 17: Kanban Metrics in practice at Sky Network Services

CFD Patterns

(taken from CFD article by Pawel Brodzinski)

growing lines: indicate large WIP + context switching. action: use WIP limits

stairs: indicates large batches and timeboxesaction: move towards flow (lower WIP,

more releases, cross-functional people)

flat lines: nothing’s moving on the boardaction: investigate blockers, focus on finishing, split in

smaller stories

single flat line: testing bottleneckaction: investigate blockers, pair with testers,

automate more

typical timeboxed iterationdropping lines: items going backaction: improve policies

Page 18: Kanban Metrics in practice at Sky Network Services

metrics for

Delivery Time

Page 19: Kanban Metrics in practice at Sky Network Services

Control Chart

Description: For each story it shows how long it took. Displays Upper and Lower controllimits; when a story falls out of limits something went wrong and you should talk about it.

stories

cycle

tim

e (

days)

Page 20: Kanban Metrics in practice at Sky Network Services

Cycle/Lead Time stats + History

Description: Stats to get to know your cycle time and lead time. They let you predict “how

long is the next story likely to take?”. Visualize trends of improvement

Page 21: Kanban Metrics in practice at Sky Network Services

Lead Time distribution

50%

85%

cycle time (days)

no.

sto

ries t

hat

took t

hat

long

Description: For each lead time bucket (#days), how many stories have taken that long.

Useful to show as a percentage to know probability.

Page 22: Kanban Metrics in practice at Sky Network Services

Story Health

50-80% >90%80-90%0-50%

Description: Indicates if the story is in good health or if we should worry about it. Basedon lead time distribution

0-6d 6-10d 10-14d 14+d

Page 23: Kanban Metrics in practice at Sky Network Services

Cycle Time vs Release Prep. Time

stories

days

Description: For each story shows how long it spent in the iteration and in release

preparation (Context specific). Used to discuss cost vs value of release testing.

Page 24: Kanban Metrics in practice at Sky Network Services

metrics for

Predictability

Page 25: Kanban Metrics in practice at Sky Network Services

Iteration Throughput

iteration

no.

sto

ries c

om

ple

ted

Description: Number of stories that get done for each iteration

Page 26: Kanban Metrics in practice at Sky Network Services

Daily Throughput

day

no.

sto

ries c

om

ple

ted

Description: Number of stories that get done daily. Should worry when nothing gets done

for a while.

Page 27: Kanban Metrics in practice at Sky Network Services

WIP

iteration

avg d

aily W

IP

Description: For each iteration, the average daily WIP.

Page 28: Kanban Metrics in practice at Sky Network Services

Little’s Law

more visible here

Description: Lead Time = WIP / Throughput

Should demonstrate that when WIP decreases then Lead Time goes down and Throughput

goes up.

Page 29: Kanban Metrics in practice at Sky Network Services

Points vs Cycle Time

cycle

tim

e (

days)

story points

Description: Shows low correlation between estimated points and actual cycle time

Page 30: Kanban Metrics in practice at Sky Network Services

Disney Stations

Description: Like queueing at Disneyland. “How long in here? How long from here?”

Page 31: Kanban Metrics in practice at Sky Network Services

Task Time

Description: Shows how long tasks usually take (context specific). Gives you an idea of

how long a story will take based on n. of tasks

Page 32: Kanban Metrics in practice at Sky Network Services

metrics for

Quality

Page 33: Kanban Metrics in practice at Sky Network Services

Bugs percentage

Description: Percentage of bugs over stories. Also expressed as “1 bug every X stories”

Page 34: Kanban Metrics in practice at Sky Network Services

Bugs per iteration

iteration

no.

bugs

Description: Shows how many bugs were in a particular iteration

Page 35: Kanban Metrics in practice at Sky Network Services

Bugs analysis

Description: For each bug it shows at which stage it was found and what caused it.

Used to demonstrate how seldom we find important problems in release testing (high cost,

low value)

Page 36: Kanban Metrics in practice at Sky Network Services

metrics for

Continuous Improvement

Page 37: Kanban Metrics in practice at Sky Network Services

Flow Efficiency

Description: Shows how long stories have spent in queues - nobody was working on

them. Shows how much you could improve if you removed waiting time.

Page 38: Kanban Metrics in practice at Sky Network Services

Time in status

tim

e s

pent

in s

tate

(days)

story

Description: for each story visualise how long it spent in each status (absolute and

percentage). Shows trends of where stories spend more time

Page 39: Kanban Metrics in practice at Sky Network Services

Stats per Status

Description: control chart, cycle time distribution and stats for each status. Helps forecast

how long stories are going to take; gives indications on where you should improve.

Page 40: Kanban Metrics in practice at Sky Network Services

Retrospective

Page 41: Kanban Metrics in practice at Sky Network Services

Resources

Presentations

● Troy Magennis LKUK13 LKCE13 Agile 2014

● David Anderson Kanban's 3 Agendas LKUK13

● Hakan Forss The Red Brick Cancer

Articles

● Cycle-time Analysis and Monte Carlo Simulation Results (Troy Magennis)

● The Seven Deadly Sins of Agile Measurement (Larry Maccherone)

● A Tool for tracking Kanban projects (Emily Webber)

● FocusedObjective@Github

● Lean Forecasting Tutorial by Troy Magennis

● Cumulative Flow Diagram (Pawel Brodzinski)

Case Studies

Siemens Health Services Sandvik IT Ericsson SAP Lean Kanban Case Studies series

● Dan Brown Flow Like Ketchup (LLKD14)

● Dimitar Bakardzhiev LKUK14 webinar

● Larry Maccherone LKUK14

● Analyzing Lead Time Distribution Chart (Alexei Zheglov)

● Inside a Lead Time Distribution (Alexei Zheglov)

● Forecasting Your Oranges (Dan Brown)

● worldofchris@github (Chris Young)

Books

Page 42: Kanban Metrics in practice at Sky Network Services

Thank you!

@BattistonMattia

[email protected]

really, really appreciated! Help me improve