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
  • Solution Central
    • HP Solution Center
  • 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 - 10:00
  • share
  • 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

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.

More like this

  • Better Software & Agile Development Conference West
  • What's on Your Dashboard?
  • Best Practices for Software Projects
  • Best Practices for Software Projects: Estimating
  • Best Practices for Software Projects: Requirements Scrubbing

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

Three Components of Effective Defect-management Systems

Article by Krishen Kota | Comments (1)
 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

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

eBay to Open New Development Center in India

News by Jonathan Vanian
 Want a job? You might want to catch the next flight to Bangalore. San Jose’s eBay is opening a global development center in India’s “garden city” and plans on hiring “1,000 technologists over the... Read More

Three Components of Effective Defect-management Systems

Article by Krishen Kota | Comments (1)
 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

CM: The Next Generation—Tailoring CM and ALM Tools

Blog Post by Jonathan Vanian
 Today we published a great piece by Joe Farah over at CM Crossroads. Joe Farah has been working in software field since the late 1960s, and he’s personally witnessed the ever-evolving world of... 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

Three Components of Effective Defect-management Systems

Article by Krishen Kota | Comments (1)
 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

Press Release: Klocwork Insight(TM) Ensures Software Security and Reliability for Bids Trading's Financial Trading System

News by TechWell Staff
 Burlington, Mass – Klocwork Inc, the global leader in automated source code analysis (SCA) solutions for developing more secure and reliable software, today announced that BIDS Trading, operators of... Read More

CollabNet Releases CloudForge

News by Jonathan Vanian
 Brisbane’s CollabNet is starting off this week with a new corporate strategy and a new product launch. As of this Monday, CollabNet will now focus on “the enterprise adoption of hybrid cloud... Read More

5 Critical Deployment Mistakes You Don't Want to Make

Are you still having to manage complex projects manually, running into script mayhem or having trouble adding new platforms for your application? Learn how your Release Managers, Testers, Development... Read More - Get this content

Neoload — 30-Day Load Test Trial Download

Increasingly enterprises are deploying web applications to drive competitive advantage. As expectations for availability, speed, and reliability increase daily, ensuring the performance of web... Read More - Get this content

Paradigm Shift in Test Automation- The Solution to the Maintenance Problem

While fundamental innovations have been made in the software development industry, maintenance problems have stymied the great early promise of test automation - until now. With its unique Business... 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
  MindFire Solutions
  PTC
  Neotys
  QA Symphony
  SQE Training
  SmartBear Software
  SOASTA
  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

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