Skip to main content
Home
  • Agile
  • Manage
  • Test
Register
Log In
  • Home
    • TechWell.com
  • My Page
  • Communities
    • Agile
    • Manage
    • Test
  • Interact
    • Blogs
    • Forums
  • Resources
    • Articles
    • Better Software
    • Download Center
    • News Center
    • Podcasts
  • Events
    • Web Seminars
    • Conferences
    • Training
  • Jobs
  • Membership
  • Feedback
  • Contact Us

Goodhart’s Law

Blog Post

Goodhart’s Law

Blog Post by Lee Copeland | Comments: (0) | Mon, 12/19/2011 - 11:00am
  • Login or register to post comments
  • Print

For many years, I have argued against the poor set of metrics we use in IT. Recently, I came across a reference to Goodhart's Law, which explains our problem. Proposed in 1975 by Charles Goodhart—a former advisor to the Bank of England and emeritus professor at the London School of Economics—the law states that once a social or economic indicator is made a target for the purpose of guiding policy, then it will lose the information content that originally made it useful. Goodhart wrote, "Any observed statistical regularity will tend to collapse once pressure is placed upon it for control purposes." [1] Professor Marilyn Strathern has restated Goodhart's Law more succinctly and more generally: "When a measure becomes a target, it ceases to be a good measure." [2]

We often see this in the world of IT metrics. Management chooses a metric in an attempt to understand the behavior of a system or process. Later, this same metric becomes a goal ("Attain this value or else"). When this occurs, the "or else" part motivates people to change their behavior to achieve the goal.

A classic metric of this type is "lines of code written per day." When used as a measure, this metric can be valuable for estimating. However, when LOC/day becomes a goal, developers may be enticed to write more lines of less efficient code. For example, a classic Java "for" loop has the generic form:

for (initialization; termination; increment) {
     statement(s)
}

An example of this loop is:
   for(int i=1; i<11; i++){System.out.
   println("Count is: " + i);}

If writing more lines of code is rewarded (and thus becomes my personal goal), I can write the equivalent Java as:
int i=1;
while (i<11) {
System.out.println("Count is: " + i);
i++;
}

In the early days of the object-oriented paradigm, a number of metrics were proposed as indicators of the quality of system design. One of these was the subclass:superclass 11ratio—sometimes called the specialization ratio. The specialization ratio measures the extent to which a superclass has captured an abstract idea. A large value indicates a high reuse by the subclasses. For structures using single inheritance, the values range from 1 to ∞. Values close to 1 suggest a poor design since deep, linear inheritance trees are generally considered to be poor design. Various standard class libraries have specialization ratios ranging from 1 to 4 [3].

At one company I know, to facilitate the evaluation of object-oriented designs by people who knew nothing about what made a good design, not only was the specialization ratio measured, but a goal was set—the specialization ratio had to be 3 or above. Designs not meeting that goal were sent back for rework. Developers, not liking rework, simply added cleverly disguised empty classes until the ratio was met.

In other cases, rewarding testers for the number of test cases resulted in many poorly written test cases; rewarding testers for the number of bugs they found resulted in a high number of unimportant or duplicate bugs reported; and penalizing testers for bugs rejected by the development staff resulted in important bugs going unreported. It’s not always about the design or code. An example is a metric for the age of trouble tickets (the length of time a ticket was open before being resolved). The organization set a goal of x days or less for a ticket to be open. Since many tickets did not close within the established goal, the service desk manager met the goal by closing and then reopening the tickets, resetting the clock and thus faking the numbers. However, management got what they seemed to want—a report showing that everything was fine.

Goodhart's Law reminds us that connecting rewards and punishments to the achievement of specific goals can create unintended consequences. Some will strive to reach those numbers without concern for anything else. If the person being measured is affected by the outcome, she is likely either to lie, thus subverting the usefulness of the measurement, or to focus on what is being measured without regard for the consequences.

Originally published Nov. 4, 2011

References

  1. Goodhart, C.A.E. "Monetary Relationships: A View from Threadneedle Street" in Papers in Monetary Economics Volume I, Reserve Bank of Australia, 1975.
  2. European Review
  3. Henderson-Sellers, Brian. Object Oriented Metrics: Measures of Complexity. Prentice Hall, 1996
  • Project & Team Management
  • Process Metrics
  • Measurement & Reporting
  • Charles Goodhart
  • Goodhart's Law
  • IT metrics
  • lines of code
  • Marilyn Strathern
  • object oriented
About The Author: Lee Copeland

Lee Copeland has more than thirty years of experience in the field of software development and testing. He has worked as a programmer, development director, process improvement leader, and consultant. Based on his experience, Lee has developed and taught a number of training courses focusing on software testing and development issues. Lee is the managing technical editor for Better Software magazine, a regular columnist for StickyMinds.com, and the author of A Practitioner's Guide to Software Test Design. Contact Lee at lcopeland@sqe.com.

View More

More like this

  • Better Software & Agile Development Conference West
  • Thinking Inside the Box
  • Less Is More
  • First Things First
  • How Much Work Can You Do?

Welcome to TechWell!

With an ever-expanding library of content by industry experts, TechWell is your source for software knowledge. The site is still growing, so please pardon our dust. If you see anything that requires our attention, please CONTACT us.

Not a member? REGISTER to join our community.
Already a member? Log In

Hot Topics

  • Most Read
  • Most Discussed
  • Most Shared
  • New Downloads

Matt Heusser and Company Discuss "Testing is Dead"

Blog Post by Jonathan Vanian
 Do you think testing is dead? Matt Heusser recently put up a great podcast over at Software Test Professionals discussing this blasphemous topic. Read More

Edit Those Epics

Article by Johanna Rothman | Comments (23)
 I've been working with folks making their transition to agile. One of the hardest transitions is for the managers and technical leaders.Managers are accustomed to working in timeboxes. To them, the... Read More

Management Myth #1: The Myth of 100% Utilization

Article by Johanna Rothman | Comments (17)
 A manager took me aside at a recent engagement. “You know, Johanna, there’s something I just don’t understand about this agile thing. It sure doesn’t look like everyone is being used at 100 percent... Read More

Passing the Baton

Article by Rinku Sahay | Comments (2)
 I was watching a relay race recently. A relay is where members of a team take turns to perform and complete a certain action or activity. In a relay race, one team member passes a baton to another... Read More

Three Components of Effective Defect-management Systems

Article by Krishen Kota | Comments (3)
 From a high-level view, defect management systems are made up of a combination of some defect management tools or tool and a defect management process. These two primary components work together to... Read More

The Optimists Don't Make It Out

Blog Post by Lee Copeland | Comments (2)
 There’s only one advantage to delayed flights, missed connec­tions, and extra nights stuck in hotels far away from home—you can catch up on your reading. The book at the top of my “to read” list was... Read More

Considering the Modern Technology Career

Article by Matthew Heusser
 Software development is a young field, at least compared with established professions like law and medicine. The choice to work in software is likewise a different choice. It is often made in youth... Read More

Testing Tradeoffs and Project Risk: A Case Study

Article by Payson Hall
 The project had issues. It was a two-year project intended to swap an aging legacy application for a commercial product. The vendor’s off-the-shelf software required some customization and extension... Read More

The ROI of Learning for Testers

Article by Lisa Crispin
  During my software career, I’ve spent a lot of time and effort learning new thinking and technical skills. I’ve encouraged my peers to do the same. The series that Janet Gregory and I wrote on... Read More

The Top 5 Frustrations for Project Managers

See how you can avoid management swoop-in at the eleventh hour, or creating and sending around a dreaded 200-page plan that no one has time to read once, let alone every time a change occurs. We've... Read More - Get this content

Follow Us On...

Follow us on Twitter
Twitter
Follow us on Facebook
Facebook
Follow us on LinkedIn
LinkedIn
Follow our RSS feed
RSS Feed

Sponsors

  ASTQB
  HP Software
  Microsoft
  Neustar
  SQE Training
  SmartBear Software
  Tricentis


Our Bloggers

Johanna Rothman is a management consultant and a regular StickyMinds.com and Better Software magazine columnist.

Steve Berczuk is an engineer and ScrumMaster at Humedica where he's helping to build next-generation SaaS-based clinical informatics applications.

Naomi Karten is a highly experienced speaker and seminar leader who draws from her psychology and IT backgrounds to help organizations improve customer satisfaction, manage change, and strengthen teamwork.

Lee Copeland has more than thirty years of experience in the field of software development and testing.

Lisa Crispin has worked as a tester on agile teams for the past ten years, and enjoys sharing her experiences via writing, presenting, teaching and participating in agile testing communities around the world.

Claire Moss has been testing software for 8 years. Although authoring a testing blog and articles are new for her, Claire has always had a passion for writing, which might be a strange trait for a Discrete mathematician.

Site Contents
Back To Top
  • » My Page
  • » Communities
    • - Agile
    • - Manage
    • - Test
  • » Solution Central
    • - HP Solution Center
  • » Interact
    • - Blogs
    • - Forums
  • » Resources
    • - Articles
    • - Better Software Magazine
    • - Download Center
    • - News Center
    • - Podcasts
    • - Videos
  • » Events
    • - Web Seminars
    • - Conferences
    • - Training



Techwell

  • Terms of Use
  • Privacy Policy
  • RSS
  • Site Feedback
  • Subscription Services