moneyball peter varhol_starwest2012

56
Moneyball and the Science of Building Great Testing Teams Peter Varhol

Upload: peter-varhol

Post on 13-Aug-2015

122 views

Category:

Technology


0 download

TRANSCRIPT

Moneyball and the Science of Building Great Testing Teams

Peter Varhol

© 2011 Seapine Software, Inc. All rights reserved.

Agenda

What is Moneyball?

What does this have to do with testing

Bias and its variations

Applying Moneyball to testing

Building great testing teams

Summary and questions

© 2011 Seapine Software, Inc. All rights reserved.

Moneyball is About Baseball

© 2011 Seapine Software, Inc. All rights reserved.

Fielding

© 2011 Seapine Software, Inc. All rights reserved.

Pitching

© 2011 Seapine Software, Inc. All rights reserved.

And Especially Offense

© 2011 Seapine Software, Inc. All rights reserved.

But It’s Also About Building Great Teams

© 2011 Seapine Software, Inc. All rights reserved.

Oakland Had a Problem

• There are rich teams and there are poor teams, then there's fifty feet of crap, and then there's us.

© 2011 Seapine Software, Inc. All rights reserved.

How Do You Build Great Teams?

• Baseball experts didn’t know a number of things

• Getting on base is highly correlated with winning games

• Pitching is important but not a game-changer

• Fielding is over-rated

• In general, data wins out over expert judgment

• Bias clouds judgment

© 2011 Seapine Software, Inc. All rights reserved.

What Does This Have to Do With Testing?

• We maintain certain beliefs in testing practice

• Which may or may not be factually true

• That bias can affect our testing results

• How do bias and error work?

• We may be predisposed to believe something

• That affects our work and our conclusions

© 2011 Seapine Software, Inc. All rights reserved.

What Does This Have to Do With Testing?

• We may test the wrong things

• Not find errors, or find false errors

• We may do too many testing activities by rote

• This means we aren’t really thinking about what we are testing

• We may work too hard and become fatigued

© 2011 Seapine Software, Inc. All rights reserved.

Let’s Consider Human Error

• Thinking, Fast and Slow – Daniel Kahneman

• System 1 thinking – fast, intuitive, and sometimes wrong

• System 2 thinking – slower, more deliberate, more accurate

© 2011 Seapine Software, Inc. All rights reserved.

Consider This Problem

• A bat and ball cost $1.10

• The bat cost one dollar more than the ball

• How much does the ball cost?

© 2011 Seapine Software, Inc. All rights reserved.

Where Does Error Come In?

• System 1 thinking keeps us functioning

• Fast decisions, usually right enough

• Gullible and biased

• System 2 makes deliberate, thoughtful decisions

• It is in charge of doubt and unbelieving

• But is often lazy

• Difficult to engage

© 2011 Seapine Software, Inc. All rights reserved.

Where Does Error Come In?

• What are the kinds of errors that we can make, either by not engaging System 2, or by overusing it?

• Priming

• Cognitive strain

• Halo effect

• Heuristics

• Regression to the mean

© 2011 Seapine Software, Inc. All rights reserved.

The Role of Priming

• System 1 can be influenced by prior events

• How would you describe your financial situation?

• Are you happy?

• People tend to be primed by the first question

• And answer the second based on financial concerns

© 2011 Seapine Software, Inc. All rights reserved.

The Role of Priming

• If we are given preconceived notions, our instinct is to support them

• We address this by limiting advance advice/ opinions

• “They were primed to find flaws, and that is exactly what they found.”

© 2011 Seapine Software, Inc. All rights reserved.

The Role of Cognitive Strain

• Ease can introduce errors

• When dealing with the familiar, we accept System 1

• Strain engages System 2

• We have to think about the situation

• And are more likely to draw the correct conclusion

© 2011 Seapine Software, Inc. All rights reserved.

But . . .

• We tire of cognitive strain

• System 2 makes mistakes when in continual use

• System 1 responds

• Often in error

© 2011 Seapine Software, Inc. All rights reserved.

The Halo Effect of Thinking

• Favorable first impressions influence later judgments

• We want our first impressions to be correct

• Provides a simple explanation for results

• Cause and effect get reversed

• A leader who succeeds is decisive;the same leader who fails is rigid

© 2011 Seapine Software, Inc. All rights reserved.

The Halo Effect of Thinking

• Controlling for halo effects

• Facts and standards predominate

• Resist the desire to try to explain

© 2011 Seapine Software, Inc. All rights reserved.

The Role of Heuristics

• We unconsciously form rules of thumb

• That enable us to quickly evaluate a situation and make a decision

• No thinking necessary

• System 1 in action

© 2011 Seapine Software, Inc. All rights reserved.

The Role of Heuristics

• Sometimes heuristics can be incomplete or even wrong

• And we make mistakes

© 2011 Seapine Software, Inc. All rights reserved.

The Anchoring Effect

• Expectations play a big role in results

• Suggesting a value ahead of time significantly influences our prediction

• It doesn’t matter what the value is

© 2011 Seapine Software, Inc. All rights reserved.

Regression to the Mean

• We seek causal reasons for exceptional performances

• But most of the time they are due to normal variation

© 2011 Seapine Software, Inc. All rights reserved.

Regression to the Mean

• “When I praise a good performance, the next time it’s not as good.”

• “When I criticize a poor performance, it always improves the next time.”

• But achievement = skill + luck

• Praise or criticism for exceptionalperformances won’t help

© 2011 Seapine Software, Inc. All rights reserved.

Regression to the Mean

• We are terrible at forecasting the future

• Picking team members

• Estimating testing times

• But are great at explaining the past

• She was a great hire

© 2011 Seapine Software, Inc. All rights reserved.

Regression to the Mean

• But we believe in the value of experts

• Even when those experts are often wrong

• And we discount algorithmic answers

• Even when they have a better record than experts

• We take credit for the positive outcome

• And discount negative ones

© 2011 Seapine Software, Inc. All rights reserved.

Regression to the Mean

• Are expertise and expert intuition real?

• Yes, under certain circumstances

• A domain with largely unchanging rules and circumstances

• Years of work to develop expertise

• But even experts often don’t realize theirlimits

© 2011 Seapine Software, Inc. All rights reserved.

And About Those Statistics

• We don’t believe they apply to our unique circumstances!

• We can extrapolate from the particular to the general

• But not from the general to the particular

© 2011 Seapine Software, Inc. All rights reserved.

Thinking About Testing

© 2011 Seapine Software, Inc. All rights reserved.

Thinking About Testing

• We don’t know the quality of an application

• So we substitute other questions

• Number and type of defects

• Performance or load characteristics

© 2011 Seapine Software, Inc. All rights reserved.

Thinking About Testing

• Those we can answer

• But do they relate to the question on quality?

• It depends on our definition of quality

• We could be speaking different languages

• Quality to users may be different

© 2011 Seapine Software, Inc. All rights reserved.

Thinking About Testing

• Back to System 1 and System 2 thinking

• System 1 lets us form immediate impressions

• Helps us identify defects

• But often fails at the bigger picture

• System 2 is more accurate

• But requires greater effort

© 2011 Seapine Software, Inc. All rights reserved.

Thinking About Testing

• With simple rote tests, System 1 is adequate

• The process is well-defined

• Exploratory testing engages System 2

• Exploratory testing is a good change of pace

• Too much exploratory testing will wear you out

© 2011 Seapine Software, Inc. All rights reserved.

Lessons to Testing

• Decorrelate errors

• Don’t let biases become common

• Identify the possible sources of bias

• Anchor

• Halo

• Priming

© 2011 Seapine Software, Inc. All rights reserved.

Lessons to Testing

• Recognize and reduce bias

• Preconceived expectations of quality will influence testing

• Even random information may affect results

© 2011 Seapine Software, Inc. All rights reserved.

Lessons to Testing

• Automation is more than simply an ROI calculation

• It reduces bias and team errors

• Workflow, test case execution, and defect tracking can especially benefit

© 2011 Seapine Software, Inc. All rights reserved.

Lessons to Testing

• Formulas versus judgments

• Formulas usually win

• Except . . .

© 2011 Seapine Software, Inc. All rights reserved.

Lessons to Testing

• If the expert has the same data as the formula

• The expert can add value

• That value sometimes produces a better result

© 2011 Seapine Software, Inc. All rights reserved.

Lessons to Testing

• We estimate badly

• We assume the best possible outcomes on a series of tasks

• Past experience is the best predictor of future performance

• Use your data

• But add value after the fact

© 2011 Seapine Software, Inc. All rights reserved.

Lessons to Testing

• Regression to the mean is a central fallacy

• There will be variation in team members and performances

• These variations should not be assigned cause

© 2011 Seapine Software, Inc. All rights reserved.

How Can We Build a Great Team?

© 2011 Seapine Software, Inc. All rights reserved.

How Do You Build Great Teams

• You minimize error in judgment

• Recognize and reduce bias

• You keep people sharp by not continually stressing them

• Overwork can make thinking lazy

© 2011 Seapine Software, Inc. All rights reserved.

How Can We Build Great Teams?

• Choose great testers

• Choose team members who exhibit the characteristics of great testers

• Not necessarily those whose resume matches the job description

© 2011 Seapine Software, Inc. All rights reserved.

How Can We Build Great Teams?

• What are the characteristics of great testers?

• Mix of System 1 and System 2 thinking

• Creativity

• Curiosity

• Willingness to question and question

• Ability to see the big picture

• Focus and perseverance

• Team player, but able to work individually

© 2011 Seapine Software, Inc. All rights reserved.

How Can We Build Great Teams?

• Who exhibits those characteristics?

• The usual suspects

• But who else?

•Scientists

•Marathon Runners

•Fashion Designers

© 2011 Seapine Software, Inc. All rights reserved.

How Can We Build Great Teams?

• Where do we find them?

• Colleges

• Civic Organizations

• Sports Leagues

© 2011 Seapine Software, Inc. All rights reserved.

How Can We Build Great Teams?

• Interview Questions:

• Tell me about a problem and how you solved it.

• Have you ever found a “bug” in anything you have bought or used, not necessarily software?

•How did you find it?

•What did you do about it?

• Tell me about something you bought or used that you feel is poorly designed and why.

© 2011 Seapine Software, Inc. All rights reserved.

How Can We Build Great Teams?

• Preconceived expectations of quality will bias us

• Keep expectations to a minimum

• Avoid groupthink

• Once the team has agreed, ask them how the plan can fail

• Re-evaluate the plan in this light

© 2011 Seapine Software, Inc. All rights reserved.

Building a Great Team

• Vary rote and exploratory testing

• Explore a portion of the application

• Then run test cases

• System 1 and System 2 are exercised in succession

© 2011 Seapine Software, Inc. All rights reserved.

Building a Great Team

• Expertise is good up to a point

• But experts need to be certain of the limits of their expertise

• Experts shouldn’t make the decisions

• But they can provide input

• Must be willing to work from data

© 2011 Seapine Software, Inc. All rights reserved.

Building a Great Team

• Becoming skillful at testing

• But learn broad rather than deep

• Expertise may be more of a hindrance

• Seek jacks-of-all-trades

© 2011 Seapine Software, Inc. All rights reserved.

Summary

• Testing is influenced by a variety of thinking errors

• Understanding how people think can make us attuned to the errors we make

• We can adapt our approach to testing and team management to account for errors

• Expertise matters, but only to a point

© 2011 Seapine Software, Inc. All rights reserved.

For More Information

• Moneyball, a movie starring Brad Pitt

• Moneyball, a book by Michael Lewis

• The King of Human Error, Vanity Fair

• Thinking, Fast and Slow, a book by Daniel Kahneman

• The Halo Effect, a book by Philip Rosenzweig

© 2011 Seapine Software, Inc. All rights reserved.

Questions?