Computer Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Total quality management

Total Quality Management (TQM) is a management approach for continuous process and product improvement that aims to achieve long-term customer satisfaction and reduced costs.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Engineers use Total Quality Management (TQM) when they design, build and maintain software systems to make processes predictable, reduce defects, lower costs and increase customer satisfaction. TQM gives a framework for continuous improvement that links process controls, measurement and employee involvement — useful when preparing SQA plans, quality models and following standards such as ISO (see the syllabus topics Software quality and quality management systems and Quality standards: ISO and CMMI).

Key ideas

  • Customer satisfaction — 'the customer's sense of fulfilment when a product or service meets or exceeds expectations'. This is the prime objective of TQM.

  • Process — 'a set of interrelated or interacting activities that transforms inputs into outputs.' TQM treats processes (not only final inspection) as the primary lever for quality.

  • Continuous improvement — a recurring activity to incrementally improve products, services or processes. Two precise mechanisms used in TQM are the PDCA cycle and data-driven process improvement.

    • PDCA (Plan–Do–Check–Act) — define each word: Plan (establish objectives and processes necessary to deliver results), Do (implement the plan), Check (measure and compare results against objectives and report), Act (take actions to improve the process). Draw: a circle divided into four quadrants labelled Plan, Do, Check, Act clockwise; optionally show arrows forming the cycle.
  • Cost of Quality (COQ) — the total costs related to ensuring and failing to ensure quality. COQ is split into prevention costs, appraisal costs, internal failure costs, and external failure costs. Definitions: Prevention costs are spent to prevent defects (training, process improvement); Appraisal costs are inspection and testing costs; Internal failure costs are costs of defects found before delivery; External failure costs are costs when defects reach the customer (returns, reputation loss).

  • Defect — 'an imperfection or lack of required attribute in a work product' (use consistent exam definition; synonyms: bug, fault). Assumption: defects are counted relative to some baseline (requirements or design). In exam answers, distinguish: error (human mistake), defect/fault (in product), and failure (observed deviation in operation).

  • Defect density — defects per unit size (commonly per thousand lines of code, KLOC) used to compare modules/processes. Unit: defects/KLOC or defects/FP (function point).

  • Defect Removal Efficiency (DRE) — a metric measuring the proportion of defects removed before delivery. Exact definition: DRE = (Defects removed during development) / (Total defects = defects removed during development + defects found after release). Expressed as a percentage.

  • Statistical process control (SPC) — use of control charts and statistical methods to monitor and control a process. Key assumption: process performance data are available and roughly follow a distribution suitable for control limits (often approximate normality for averages). Use the appropriate chart: X-bar/R or X-bar/S for variable data (assume approximate normality), and p/np/c/u charts for attribute counts (binomial/Poisson). Control limits are typically set at ±3 standard deviations (3σ) from the center line.

  • The seven basic quality tools (QC tools) — check sheet, histogram, Pareto chart (80/20), cause-and-effect (Ishikawa/fishbone) diagram, scatter diagram, control chart, and flowchart. Know when to use each.

  • Fishbone (cause-and-effect/Ishikawa) diagram — how to draw: sketch a main horizontal “spine” pointing to the stated effect/problem at the right; add diagonal “bones” for categories such as Methods, Machines, Materials, Manpower, Measurement, and Environment (6M); list specific causes as smaller bones under each category.

  • Relation to standards: TQM is broader than any single standard. ISO 9001 is a set of requirements for a quality management system; complying with ISO 9001 helps implement TQM, but ISO is a standard whereas TQM is an organisational philosophy.

  • Roles and culture: TQM requires management commitment (leadership), employee involvement (training and empowerment), and data-driven decision-making (measurements and feedback). These are non-technical but examined in theory questions. Also learn the seven quality management principles (ISO 9000:2015): customer focus, leadership, engagement of people, process approach, improvement, evidence-based decision making, and relationship management.

Formulas

Defect density = D / S — D is number of defects found, unit: defects; S is size of software, unit: KLOC (thousand lines of code) or function points; output unit: defects/KLOC. Applies when size is measured consistently.

DRE = R / (R + F) — R is defects removed before release, F is defects found after release (in field). DRE is dimensionless; express as percentage by multiplying by 100. Applies when counts of defects are reliable.

COQ = Prevention + Appraisal + InternalFailure + ExternalFailure — each term is money (INR or other currency); applies when cost bookkeeping classifies all quality-related costs.

Yield = (Good output) / (Total output) — for a process step; dimensionless fraction or percentage. Useful in process chains where overall yield multiplies.

(Note: there are many ways to normalise defect density — always state which size unit you use, e.g. KLOC or FP.)

Worked examples

Example 1 — Computing defect density and DRE

Given: A module of size 10 KLOC. During development 45 defects were found and fixed (R). After release, customers reported 5 defects (F). Calculate defect density and DRE.

Step 1: Defect density formula: Defect density = D / S where D = total defects found (use defects found during development + defects found after release = 45 + 5 = 50), S = 10 KLOC.

Step 2: Numbers: Defect density = 50 / 10 = 5 defects/KLOC. Unit: defects per KLOC.

Step 3: DRE formula: DRE = R / (R + F) = 45 / (45 + 5) = 45 / 50 = 0.9.

Final answers: Defect density = 5 defects/KLOC. DRE = 90%.

Example 2 — Using PDCA for a defect-rate reduction improvement (algorithmic trace)

Scenario: Weekly defect count in a test phase averages 20 defects. Team plans to reduce by introducing code review.

Plan: Decide to require peer review for all modules and train reviewers (objective: reduce average weekly defects from 20 to 12).

Do: Implement reviews for two weeks; collect defect counts per week: Week1=15, Week2=12.

Check: Compare to objective: average of two weeks = (15+12)/2 = 13.5 defects/week, improvement but not reached 12.

Act: Adjust review process (increase reviewer time) and re-run PDCA. Document measured change and iterate until objective met.

Write these steps in exam: state initial baseline, the change made, measured effect and next action; show numbers and decision logic.

Example 3 — Cost of Quality allocation (numeric)

Given: In a quarter the company spent INR 200,000 on prevention, INR 150,000 on appraisal, INR 100,000 on internal failures, INR 250,000 on external failures. Compute COQ and fraction spent on prevention.

COQ = 200,000 + 150,000 + 100,000 + 250,000 = INR 700,000. Fraction on prevention = 200,000 / 700,000 = 0.2857 => 28.57%.

Common mistakes

  • Using DRE formula but counting R and F inconsistently (e.g., counting only test-phase removals and excluding design-time removals). Define what you counted.
  • Treating ISO 9001 certification as full evidence of good quality in product terms. ISO certifies processes, not guaranteed defect-free products.
  • Confusing COQ categories (prevention vs appraisal). Prevention reduces defects upstream; appraisal discovers defects.

For your exam

Question types you will see: definitions (short), short notes (explain a principle or benefit), derivations (showing DRE, defect density), numericals (compute DRE, defect density, COQ fractions), diagrams (draw PDCA cycle or a fishbone diagram), and case analysis (apply TQM to a given software process problem).

What full-marks answers include:

  • For definitions: the exact definition (bold term), one-line explanation in simple English, and an assumption where relevant.
  • For derivations: show formula, explain each symbol and unit, substitute numbers with units, and give final numeric answer with units and correct significant figures.
  • For diagrams: draw and label clearly. For PDCA, draw a circle with quadrants Plan / Do / Check / Act and add one sentence explaining each quadrant. For a fishbone diagram, draw a horizontal spine pointing to the effect (problem) box at the right; add diagonal bones for categories (e.g., Methods, Machines, Materials, Manpower, Measurement, Environment), and list plausible causes as smaller bones.
  • For case questions: state the problem, propose specific TQM actions (process measurement, COQ analysis, PDCA steps), expected metrics to measure (DRE, defect density, COQ) and how to verify improvement.

Quick check

  1. Define Total Quality Management in one line.
  2. Give the formula for Defect Removal Efficiency (DRE).
  3. Describe how to draw the PDCA cycle in an exam diagram.

Answers: 1) TQM is an organisational management approach focused on continuous improvement of processes and customer satisfaction. 2) DRE = R / (R + F), where R is defects removed before release and F is defects found after release. 3) Draw a circle divided into four clockwise quadrants labelled Plan, Do, Check, Act; draw arrows around the circle to show iteration and label one sentence under each quadrant explaining its role.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?