Skip to content
Tutorials Center
My learning

Topics

Lesson 25 of 41 ยท Risk, Quality and Communication

Quality Management

Understand project quality management: quality planning, assurance versus control, cost of quality, Pareto charts, control charts and definition of done, with Python.

Quality is not "the best possible". It is the degree to which a product or result meets requirements and fits its purpose. A cheap disposable pen that writes reliably for a week is high quality; a gold pen that leaks is not. Project quality management therefore starts by asking what the customer actually needs and then builds the processes to deliver exactly that, consistently, at an acceptable cost.

Quality is also not the same as grade. Grade is a category (a basic or a premium hotel); quality is how well the item meets the needs of its grade. A low-grade product can be high quality. A high-grade product with many defects is low quality.

The three processes

Quality management in three steps

Plan Define standards, metrics and how to check them.
Assure Make sure the process is followed.
Control Inspect results and fix defects.

Assurance prevents problems; control finds them.

1 / 2

Plan quality decides which standards apply (company policy, ISO 9001, coding standards, regulations), what the acceptance criteria are, and which metrics you will track (defects per release, test coverage, rework hours, customer satisfaction).

Manage quality (quality assurance) is about the process: audits, reviews, retrospectives, checklists, and training. It asks "are we working the way we said we would?"

Control quality is about the product: inspections, tests, measurements. It asks "does this deliverable meet the criteria?" Output goes to the customer for acceptance as a verified deliverable.

Cost of quality

Quality costs money to get, and poor quality costs even more.

Category Examples
Prevention Training, clear requirements, design reviews
Appraisal Testing, inspection, audits
Internal failure Rework, scrap, bug fixes before release
External failure Warranty claims, support calls, lost customers, recalls

The first two are the cost of conformance, the last two the cost of nonconformance. Spending a little more on prevention usually lowers the total.

Python Cost of quality: prevention versus failure

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The numbers (in thousands) are made up, but the pattern is typical: the cheapest total is rarely at either extreme.

Seven basic quality tools

Quality professionals use seven simple tools. You can build most of them in a few lines.

  • Check sheet: tally of defects by type.
  • Pareto chart: bars sorted by frequency, with the cumulative percentage. It shows the "vital few" causes.
  • Cause-and-effect (fishbone) diagram: groups possible causes (people, process, tools, materials, environment).
  • Histogram, scatter diagram, control chart and flowchart (see below).
Python Pareto analysis of defects

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Here two causes account for about 73 percent of all defects. The Pareto principle (roughly 80/20) tells you where a day of effort pays most: fix the calculation and validation logic first.

Control charts

A control chart plots a measurement over time with a center line (the mean) and upper and lower control limits, commonly mean plus or minus three standard deviations. Points outside the limits, or seven in a row on one side of the mean (a "rule of seven"), signal that something has changed and the process is no longer stable. Control limits are not the same as specification limits: the first describe what the process does, the second what the customer accepts.

Python Find out-of-control points

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

An out-of-control point asks for root cause analysis, not blame. The five whys technique (ask "why" repeatedly until you reach a process cause) is the simplest method.

Quality in software and agile projects

Quality is built into the daily work:

  • A definition of done lists what must be true for any item to count as finished: code reviewed, tests written and passing, documentation updated, no known critical defects.
  • Acceptance criteria describe the conditions for one specific story ("given an expired card, when the user pays, then an error message is shown").
  • Continuous integration runs tests on every change, so defects surface within minutes.
  • Retrospectives (see Scrum) feed process improvement back in.

Quality is also a risk topic: a quality defect found late is a risk that came true (see the risk process). Changes to quality requirements flow through change control.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which activity is quality assurance rather than quality control?

    Assurance looks at the process (are we following it?). Control inspects products.
  2. 2. A bug found by a customer after release is part of which cost of quality?

    Failures found by customers after release are external failure costs, usually the most expensive.
  3. 3. What does a Pareto chart help you find?

    Sorted bars plus a cumulative line reveal the vital few causes to fix first.
  4. 4. Control limits on a control chart are usually set at:

    Limits describe the natural variation of the process, usually +/- 3 sigma, not what the customer demands.

Summary

  • Quality means fitness for purpose; grade is a different idea.
  • Plan quality, manage it (assurance of the process), control it (inspection of the product).
  • Prevention and appraisal cost less than internal and external failure.
  • Pareto charts, check sheets, fishbones and control charts are the core tools.
  • In agile work, the definition of done and acceptance criteria turn quality into a daily habit.

Next: Communication Management