kanban metrics in practice for leading continuous improvement

37
for leading Continuous Improvement Kanban Metrics in practice @BattistonMattia

Upload: mattia-battiston

Post on 13-Jan-2017

1.205 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Kanban Metrics in practice for leading Continuous Improvement

for leadingContinuous Improvement

Kanban Metricsin practice

@BattistonMattia

Page 2: Kanban Metrics in practice for leading Continuous Improvement

About me

● from Verona, Italy

● software dev & continuous improvement

● Kanban, Lean, Agile “helper”

● Sky Network Services

Mattia Battiston@BattistonMattia

[email protected]

Ciao!

Page 3: Kanban Metrics in practice for leading Continuous Improvement

Why are we here?

OUR EXPERIENCE

WHY

HOW

IMPROVING

LESSONS LEARNT

FORECASTING

Page 4: Kanban Metrics in practice for leading Continuous Improvement

Kan...what?

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

Page 5: Kanban Metrics in practice for leading Continuous Improvement

Why do we need metrics?

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

Page 6: Kanban Metrics in practice for leading Continuous Improvement

But I thought metrics were bad....

Typical problems:gaming

dysfunctions

Page 7: Kanban Metrics in practice for leading Continuous Improvement

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

● feedback about state of reality ● used as target

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

● all metrics must improve ● local optimisations

Page 8: Kanban Metrics in practice for leading Continuous Improvement

Our system

Iteration-Based

On-demand

Direct

Page 9: Kanban Metrics in practice for leading Continuous Improvement

How do we collect the data?

Page 10: Kanban Metrics in practice for leading Continuous Improvement

The SpreadsheetInputs: story details; start time and duration of each state

Public version: https://goo.gl/0A9QSN

For you to copy, reuse, get inspired, etc.

Page 11: Kanban Metrics in practice for leading Continuous Improvement

All the maths you need

● Min, Max

Normal: data is distributed around a central valuee.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 outliersmedian(1,2,2,2,3,14) = 2

● Mode: value that occurs more frequentlymode(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 12: Kanban Metrics in practice for leading Continuous Improvement

Cumulative Flow DiagramDescription: Each day shows how many stories are in each state

n. s

torie

s

days

Page 13: Kanban Metrics in practice for leading Continuous Improvement

Cumulative Flow DiagramIdeal CFD: thin lines growing in parallel at a steady rate -> good flow!

Page 14: Kanban Metrics in practice for leading Continuous Improvement

Cumulative Flow Diagram● Objective: retrospect (but needs a good facilitator)

CFD used for Retrospective

● Objective: demonstrate effectiveness of changes

changed WIP limit in DEV from 3 to 2

Page 15: Kanban Metrics in practice for leading Continuous Improvement

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

Throughput

Delivery Date

Page 16: Kanban Metrics in practice for leading Continuous Improvement

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 17: Kanban Metrics in practice for leading Continuous Improvement

metrics forDelivery

Time

Page 18: Kanban Metrics in practice for leading Continuous Improvement

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

stories

lead

tim

e (d

ays)

Page 19: Kanban Metrics in practice for leading Continuous Improvement

Cycle/Lead Time stats + HistoryDescription: 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 20: Kanban Metrics in practice for leading Continuous Improvement

Lead Time distribution

lead time (days)

n. s

torie

s th

at t

ook

that

long

Description: For each lead time bucket (#days), how many stories have taken that long.Useful to show as a percentage to know probability.

WEIBULL DISTRIBUTION

50%

80%

Page 21: Kanban Metrics in practice for leading Continuous Improvement

Story HealthDescription: Indicates if the story is in good health or if we should worry about it. Based on lead time distribution

50-80% >90%80-90%0-50%0-4 gg 5-7 gg 8-10 gg >10 gg

Page 22: Kanban Metrics in practice for leading Continuous Improvement

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 23: Kanban Metrics in practice for leading Continuous Improvement

metrics forPredictability

Page 24: Kanban Metrics in practice for leading Continuous Improvement

Iteration Throughput

iteration

no. s

torie

s co

mpl

eted

Description: Number of stories that get done for each iteration

Page 25: Kanban Metrics in practice for leading Continuous Improvement

Rolling Wave ForecastingDescription: visualise in the backlog the likelihood of stories getting done in the next 2 weeks

Page 26: Kanban Metrics in practice for leading Continuous Improvement

Arrivals RateDescription: how often a story is started, aka pulled into our system (arrival). This is how often you can change your mind about what to do next

Page 27: Kanban Metrics in practice for leading Continuous Improvement

Points vs Lead Timele

ad t

ime

(day

s)

story points

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

Page 28: Kanban Metrics in practice for leading Continuous Improvement

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

Page 29: Kanban Metrics in practice for leading Continuous Improvement

Task TimeDescription: 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 30: Kanban Metrics in practice for leading Continuous Improvement

metrics forQuality

Page 31: Kanban Metrics in practice for leading Continuous Improvement

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

Page 32: Kanban Metrics in practice for leading Continuous Improvement

metrics forContinuous

Improvement

Page 33: Kanban Metrics in practice for leading Continuous Improvement

Flow EfficiencyDescription: 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 34: Kanban Metrics in practice for leading Continuous Improvement

Time in status

time

spen

t in

sta

te (

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 35: Kanban Metrics in practice for leading Continuous Improvement

Retrospective

Page 36: Kanban Metrics in practice for leading Continuous Improvement

ResourcesBooks

Metrics● Data driven coaching - Troy Magennis● Seven Deadly Sins of Agile Measurement - Larry Maccherone● The Impact of Lean and Agile Quantified - Larry Maccherone● Kanban at Scale: A Siemens Success Story - Bennet Vallet● FocusedObjectives@Github - Troy Magennis● Visual feedback brings key Agile principles to life - Bazil Arde

n● How visualisation improves Psychological Safety - Bazil Arden

Forecasting● Cycle Time Analytics - Troy Magennis● Top Ten Data and Forecasting Tips - Troy Magennis● Forecasting Your Oranges - Dan Brown● Using Maths to work out Potentially Deliverable Scope - Ba

zil Arden● Forecasting Cards - Alexei Zheglov

Story Points● Story Points and Velocity: The Good Bits - Pawel Brodzi

nski● No correlation between estimated size and actual time

taken - Ian Carroll

Lead Time● Analyzing the Lead Time Distribution Chart - Alexei Zheglov● Inside a Lead Time Distribution - Alexei Zheglov● Lead Time: what we know about it, how we use it - Alexei Z

heglov● The Economic Impact of Software Development Process Cho

ice - Troy Magennis

More● Flow Efficiency - Julia Wester● Cumulative Flow Diagram - Pawel Brodzinski

Page 37: Kanban Metrics in practice for leading Continuous Improvement

Thank you!

@BattistonMattia

[email protected]

really, really appreciated! Help me improve