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.

Ishikawa's seven quality tools

Ishikawa's seven quality tools are simple, visual techniques (cause‑and‑effect, check sheet, control chart, histogram, Pareto chart, scatter diagram, stratification) used to find, measure and control quality problems in software and engineering processes.

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

Ishikawa's seven quality tools are used by engineers to find and prioritise causes of defects, to measure how a process behaves, and to communicate data clearly. In software engineering these tools help in debugging, test‑data collection, monitoring test metrics and deciding which defects to fix first.

Key ideas

Start from first principles: when we have a quality problem we need (1) data, (2) a way to visualise patterns in the data, and (3) a way to prioritise actions. Ishikawa's seven quality tools provide these three capabilities in simple, mostly graphical statistical methods.

List of the seven tools (each name defined):

  • Cause‑and‑effect diagram (also called Ishikawa diagram or fishbone diagram): a diagram that organises possible causes of a specific problem into major categories and subcauses. Definition: "A visual tool that starts from a single effect (the problem) and branches backwards into possible causes, grouped into categories." Assumption: the problem can be stated clearly and team members can propose causes.

    • Diagram to draw in exam: draw a horizontal arrow (the fish spine) pointing right. At the arrow head write the effect (problem). Draw 4–6 major diagonal branches (bones) into the spine; label each with a category name. From each branch draw smaller bones for subcauses. Common categories in manufacturing: Man, Machine, Method, Material, Measurement, Environment. For software you may prefer: People, Process, Tools, Requirements, Data, Environment.
  • Check sheet: a structured form for collecting and tallying data in real time at the location where the data is generated. Definition: "A check sheet is a predefined table used to collect and tally occurrences or measurements while they happen." Assumption: data can be recorded conveniently at the point of occurrence.

  • Control chart: a time‑ordered plot of a process statistic with a central line (process mean) and upper and lower control limits that show expected variation. Definition: "A control chart is a time series chart of a quality measure with evidence of statistical control shown by limits computed from process data." Assumptions: data points are collected in time order and are independent within subgroups or suitably subgrouped; the process distribution is approximately stable within the period used to calculate limits.

    • Diagram to draw in exam: vertical axis = quality measure (e.g. defect count or response time), horizontal axis = time (sample number). Draw central line (mean), and two horizontal lines above/below them labelled UCL and LCL (upper/lower control limits). Plot sample points and connect them. Common out‑of‑control signals include any point beyond a control limit, long runs/trends (e.g., 7 or more points on one side of the center line), or cyclical patterns.
  • Histogram: a bar chart showing the frequency distribution of a measured variable across contiguous intervals (bins). Definition: "A histogram groups continuous data into bins and shows the frequency of observations in each bin to reveal the shape of the distribution." Assumptions: measurement scale is numeric and bin width chosen sensibly.

    • Diagram: horizontal axis = bins (continuous variable ranges), vertical axis = frequency or relative frequency.
  • Pareto chart: a bar chart of defect counts (or other categories) ordered from largest to smallest, combined with a cumulative percentage line. Definition: "A Pareto chart displays causes in descending order of frequency and the cumulative percentage so that the most important causes are visible at a glance." It uses the Pareto principle (often observed) that roughly 80% of problems come from 20% of causes — this is an empirical rule, not a law.

    • Diagram: bars (left vertical = count), bars sorted descending; right vertical = cumulative percentage with a line from 0% to 100%. Categories should be mutually exclusive; if needed, use an 'Other' category placed last.
  • Scatter diagram: a plot of paired numerical data (x,y) to look for a relationship (association). Definition: "A scatter diagram plots one variable against another to show whether the variables appear related." Assumption: both variables are numeric and measured on at least interval scale.

  • Stratification (also called 'stratify data'; some sources list a Flowchart as an alternative seventh tool rather than a synonym): separating data into layers (strata) to reveal patterns that pooled data hides. Definition: "Stratification means separating data by source, time, shift, module, or any other meaningful category before analysis." Assumption: you can identify meaningful strata (e.g., by team, by module, by test environment).

Exact definitions and key points to remember (university style):

  • Definition (process in statistical control): "A process is in statistical control if its observed variation is caused only by common causes (inherent system variation) rather than assignable special causes." This is the theoretical assumption behind using control charts to detect special causes.
  • Pareto principle statement (exact): "The Pareto principle states that many events (roughly 80%) are caused by a few causes (roughly 20%)." Note: this is an empirical rule of thumb, not an exact law. Use Pareto chart to test whether the principle holds for your data.

When to use each tool (short guide):

  • Use check sheet when you need to collect raw counts or defect types on the shop floor or during testing.
  • Use Pareto to prioritise which modules or defect types to fix first.
  • Use fishbone when you need a structured brainstorming of root causes.
  • Use histogram to understand distribution (spread, skewness) of a measure (e.g., response time).
  • Use control chart when monitoring a process over time to see if it is stable.
  • Use scatter to check relationships (e.g., load vs response time).
  • Use stratification to separate data by factors like environment or tester.

Note: the canonical category names for fishbone diagrams vary across domains; the 6M set (Man, Machine, Method, Material, Measurement, Environment) is common in manufacturing, while adapted software categories (People, Process, Tools, Requirements, Data, Environment) are acceptable if stated clearly.

Formulas

mean x̄ = (Σ x_i) / n — x̄ is the sample mean, x_i are observations, n is sample size, units = units of x, applies when computing average of numeric data.

sample standard deviation s = sqrt( Σ (x_i - x̄)^2 / (n-1) ) — s is sample standard deviation, units = units of x, use for variability when estimating population sd from sample.

Pearson correlation r = Σ (x_i - x̄)(y_i - ȳ) / sqrt( Σ (x_i - x̄)^2 · Σ (y_i - ȳ)^2 ) — r is dimensionless, -1 ≤ r ≤ 1, applies to measure linear association between numeric variables x and y.

UCL = μ + k·σ , LCL = μ - k·σ — UCL and LCL are upper and lower control limits, μ is process mean, σ is process standard deviation, k is number of standard deviations (commonly 3 for 3‑sigma limits). Units = units of the quality measure. Applies when process approximate normal and you want to detect special causes. In practice, μ and σ are estimated from baseline (Phase I) data; for attribute charts (p, np, c, u) use binomial/Poisson-based limits, and if LCL computes below 0 for count data, set it to 0.

category percentage = (count_category / total_count) · 100% — percent of defects in that category.

cumulative percentage (for Pareto) = Σ percentages in descending order — cumulative percent used to identify top contributors.

No special syntax to remember beyond these simple formulas for this topic.

Worked examples

Example 1 — Fishbone diagram for a login failure bug (qualitative, step‑by‑step): Problem (effect): "Users cannot log in: authentication fails with error code 401." Steps to create fishbone:

  1. Draw horizontal arrow pointing right; label head: "Login failure — 401".
  2. Choose 6 categories adapted for software: People, Process, Tools, Requirements, Data, Environment. Draw six bones into the spine.
  3. Under People list possible causes: "insufficient training of QA, incorrect test steps".
  4. Under Process list: "no regression test for auth, missing test case for token expiry".
  5. Tools: "wrong version of auth library, misconfigured CI/CD secret injection".
  6. Requirements: "ambiguous requirement about session timeout".
  7. Data: "corrupt tokens in DB, bad test accounts".
  8. Environment: "different time zone on test server, clock skew, expired certs".
  9. Review with team; mark likely root causes (e.g., expired certs and misconfigured secret injection). Answer (model): The fishbone shows two high‑priority causes to investigate first: misconfigured secret injection (Tools) and expired TLS certificate (Environment). These become immediate actions.

Example 2 — Pareto chart numeric (defect counts by module): Given defect counts: Module A = 45, B = 30, C = 15, D = 6, E = 4. Total = 100. Step 1: compute percentages: A = 45%, B = 30%, C = 15%, D = 6%, E = 4%. Step 2: compute cumulative percentages in descending order: A = 45%, A+B = 75%, A+B+C = 90%, +D = 96%, +E = 100%. Step 3: interpret: top two modules (A and B) cause 75% of defects. According to Pareto, fix A and B first. Plot description to draw: bars left to right: A(45), B(30), C(15), D(6), E(4). Draw a line for cumulative percent reaching 100% on last bar. Final answer: Modules A and B together produce 75% of defects, so prioritise them.

Example 3 — Scatter diagram and Pearson r (numeric): Data: sample of 5 tests measuring CPU load x (units: %) and response time y (units: seconds): x = [1, 2, 3, 4, 5], y = [2, 4, 5, 4, 5]. Step 1: compute means: x̄ = 3, ȳ = 4. Step 2: compute numerator Σ(x_i - x̄)(y_i - ȳ) = 4 + 0 + 0 + 0 + 2 = 6. Step 3: compute Σ(x_i - x̄)^2 = 10, Σ(y_i - ȳ)^2 = 6, product = 60, sqrt = 7.745967. Step 4: r = 6 / 7.745967 = 0.7746. Conclusion: r ≈ 0.775, a moderately strong positive linear association (but remember: correlation ≠ causation).

Common mistakes

  • Using a check sheet without clear categories, making later counts useless.
  • Interpreting correlation from a scatter plot as proof of causation.
  • Forgetting to put bars in descending order for Pareto charts or forgetting the cumulative percent line.
  • For control charts: using raw pooled data without subgrouping when subgroup statistics are required, or misunderstanding that control limits are about process variation, not specification limits.
  • Using histogram bars as disconnected categories (bar gaps) for continuous data; remember histogram bins are contiguous ranges.

For your exam

Types of questions:

  • Definitions and short notes (define each tool, state when to use it).
  • Draw and label diagrams (fishbone, control chart, histogram, Pareto) and explain how to read them.
  • Small calculations: percentages for Pareto, Pearson r for scatter, mean/sd for control chart limits.
  • Case study: given defect counts or a problem statement, create a fishbone and propose actions.

What a full‑marks answer includes:

  • A clear definition of the requested tool (bold or clearly marked), assumptions, and when it applies.
  • Correct, neatly labelled diagram drawn as instructed (describe drawing if text answer required).
  • For numeric questions: show every calculation step, correct formulas, units (if any) and final result highlighted.
  • For reasoning: explain why you chose a particular tool and how it leads to action (e.g., Pareto to prioritise fixes, control chart to detect special causes).

Quick check

  1. Name three tools from Ishikawa's seven that are primarily quantitative.
  2. What is the usual k value used when calculating control limits for UCL/LCL in common practice?
  3. True or False: A Pareto chart always follows the 80/20 rule exactly.

Answers: 1) Pareto chart, Histogram, Scatter diagram (also Control chart and Check sheet provide quantitative data). 2) k = 3 (three‑sigma limits are commonly used). 3) False — 80/20 is a rule of thumb; the actual split depends on data.

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

Stuck on something here?