← Programming Concepts in Mechanical Engineering (25ME34I)
Hypothesis Testing, Design of Experiments, Quality Tools and TQM
Programming Concepts in Mechanical Engineering (25ME34I) · C-25 Diploma Mechanical, Semester III
Read with diagrams, search and self-test
After studying this chapter you will be able to:
• Explain the steps of hypothesis testing and perform t-tests and ANOVA in Python.
• Explain Design of Experiments (DOE) and analyse a 2² factorial experiment.
• Construct Pareto charts, fishbone diagrams, flowcharts, histograms and scatter diagrams with Python.
• Explain continuous improvement, Lean, Six Sigma and Total Quality Management (TQM).
12.1 Hypothesis Testing
Engineers constantly ask questions like: "Has the new cutting tool really improved surface finish?", "Is the mean diameter still 25.00 mm?", "Do the three machines produce the same average output?" Because measurements always vary, the answer must be based on statistics. Hypothesis testing is a procedure for deciding, from sample data, whether a claim about a population is supported.
Key terms
| Term | Meaning |
|---|---|
| Null hypothesis H₀ | Statement of "no change / no difference" (e.g. μ = 25.00 mm; μ₁ = μ₂) |
| Alternative hypothesis H₁ | What we suspect (μ ≠ 25.00; μ₁ ≠ μ₂; μ₁ > μ₂) |
| Level of significance α | Risk of rejecting a true H₀; commonly 0.05 (5 %) |
| Test statistic | Value computed from data (t, F, z) |
| p-value | Probability of getting data at least this extreme if H₀ were true |
| Decision rule | If p-value < α, reject H₀; otherwise do not reject H₀ |
| Type I error (α) | Rejecting H₀ when it is true (false alarm) |
| Type II error (β) | Accepting H₀ when it is false (missed signal) |
| Confidence level | 1 − α (95 %) |
Fig. 12.1 Steps in hypothesis testing
The t-test
The t-test (W. S. Gosset, "Student", 1908) compares means when the sample is small (n < 30) and the population standard deviation is unknown.
• One-sample t-test: t = (xn − μ₀) / (s / √n), degrees of freedom = n − 1. Tests whether a sample mean differs from a target.
• Independent two-sample t-test: compares the means of two independent groups (old tool vs new tool).
• Paired t-test: compares two measurements on the same items (hardness before and after heat treatment).
Worked Example 12.1 – one-sample t-test
Eight shafts from a lathe measured 25.03, 25.01, 25.04, 25.02, 24.99, 25.03, 25.02, 25.04 mm. Is the mean different from 25.00 mm at α = 0.05?
xn = 200.18 / 8 = 25.0225 mm; s = 0.01669 mm; t = (25.0225 − 25.00) / (0.01669/√8) = 0.0225 / 0.005901 = 3.81. For 7 degrees of freedom the critical t (two-tailed, 5 %) is 2.365. Since 3.81 > 2.365 (p ≈ 0.007 < 0.05), H₀ is rejected: the machine is producing oversize shafts and should be re-set.
ANOVA (Analysis of Variance)
When three or more group means are to be compared, repeated t-tests increase the chance of a false alarm. ANOVA (R. A. Fisher) tests H₀: μ₁ = μ₂ = ... = μₖ in one step by comparing the variation between groups with the variation within groups:
F = Mean square between groups (MSB) / Mean square within groups (MSW)
A large F (small p-value) means at least one group mean is different.
| Source | Sum of squares | df | Mean square | F |
|---|---|---|---|---|
| Between groups | SSB | k − 1 | MSB = SSB/(k − 1) | MSB/ MSW |
| Within groups (error) | SSW | N − k | MSW = SSW/(N − k) | |
| Total | SST = SSB + SSW | N − 1 |
12.2 Design of Experiments (DOE)
Design of Experiments is a planned approach to find how input variables (factors) affect an output (response), using the minimum number of trials. Instead of changing one factor at a time (which misses interactions and wastes trials), DOE changes several factors together in a structured pattern.
| Term | Meaning | Example (turning) |
|---|---|---|
| Response | Measured output | Surface roughness Ra (µm) |
| Factor | Controllable input | Cutting speed, feed |
| Level | Value of a factor | Speed: 100 (low, −1) and 200 m/min (high, +1) |
| Run / treatment | One combination of levels | Speed high, feed low |
| Main effect | Average change in response when a factor goes from low to high | Effect of feed on Ra |
| Interaction | Effect of one factor depends on the level of another | Speed × feed |
| Replication | Repeating runs to estimate error | Two runs per combination |
Types: full factorial (2ᵏ runs for k factors at 2 levels), fractional factorial, Taguchi orthogonal arrays (L4, L8, L9), response surface methods.
Main effect of A = (average response at A high) − (average response at A low).
Applications: optimising machining parameters, welding current and speed, heat-treatment temperature and time, injection-moulding settings.
12.3 Quality Improvement Tools
The seven basic quality tools popularised by Kaoru Ishikawa solve the majority of shop-floor quality problems.
Fig. 12.2 The seven basic quality tools
| Tool | Purpose |
|---|---|
| Check sheet | Simple form for collecting defect data at the source |
| Histogram | Shows distribution (shape, centre, spread) of measurements |
| Pareto chart | Ranks problems to identify the vital few |
| Cause-and-effect (fishbone) diagram | Lists possible causes of a problem in categories |
| Scatter diagram | Shows relationship between two variables |
| Control chart | Monitors process stability over time |
| Flowchart / stratification | Shows process steps / separates data by source |
Pareto chart
Based on the Pareto principle (80/20 rule) stated by Vilfredo Pareto and applied to quality by Juran: about 80 % of the problems come from 20 % of the causes ("vital few versus trivial many"). A Pareto chart is a bar chart of defect categories in descending order of frequency, with a cumulative percentage line. Effort is directed at the tallest bars first.
Steps: collect defect data with a check sheet → arrange categories in descending order → compute percentages and cumulative percentages → draw bars and cumulative line → identify categories contributing about 80 %.
Cause-and-effect (fishbone / Ishikawa) diagram
The effect (problem) is written at the head of the "fish". The main bones represent cause categories – commonly the 6M: Man, Machine, Method, Material, Measurement, Mother nature (environment). Sub-causes are added as smaller bones, usually through brainstorming. It organises thinking and helps locate the root cause.
Fig. 12.3 Fishbone diagram for oversize shaft diameter
Flowchart
A process flowchart shows the sequence of operations in a process using standard symbols. It helps to understand the process, identify inspection points, bottlenecks and non-value-adding steps.
Fig. 12.4 Process flowchart for shaft manufacturing with inspection points
12.4 Continuous Improvement, Lean, Six Sigma and TQM
Continuous improvement (Kaizen) and the PDCA cycle
Kaizen (Japanese: "change for the better") means continuous, small, incremental improvements involving every employee. It is driven by the Deming (PDCA) cycle:
Fig. 12.5 Plan-Do-Check-Act cycle
• Plan: identify the problem, analyse causes, plan the change.
• Do: implement on a small scale (trial).
• Check: measure results and compare with the plan.
• Act: standardise if successful; otherwise repeat the cycle.
Lean manufacturing
Lean, derived from the Toyota Production System, aims to deliver value to the customer with minimum waste. Taiichi Ohno identified seven wastes (TIMWOOD): Transport, Inventory, Motion, Waiting, Over-production, Over-processing, Defects (an eighth, unused talent, is often added).
Lean tools: 5S (Sort, Set in order, Shine, Standardise, Sustain), Just-In-Time (JIT), Kanban, Poka-Yoke (mistake proofing), SMED (quick changeover), TPM (Total Productive Maintenance), Value Stream Mapping, Jidoka (automation with a human touch).
Six Sigma
Six Sigma, developed at Motorola (1986) and made famous by General Electric, is a data-driven methodology to reduce variation and defects to 3.4 defects per million opportunities (DPMO). A "six-sigma process" has its specification limits 6σ away from the mean (Cp = 2; allowing a 1.5σ long-term shift gives 3.4 DPMO).
| Sigma level | DPMO (with 1.5σ shift) | Yield |
|---|---|---|
| 2σ | 308,537 | 69.1 % |
| 3σ | 66,807 | 93.3 % |
| 4σ | 6,210 | 99.38 % |
| 5σ | 233 | 99.977 % |
| 6σ | 3.4 | 99.99966 % |
Fig. 12.6 Six Sigma DMAIC cycle
DMAIC (for improving existing processes): Define the problem and goals, Measure the current performance, Analyse the root causes, Improve by implementing solutions (often DOE), Control to sustain gains (control charts, SOPs). DMADV is used for designing new processes. Roles: Champion, Master Black Belt, Black Belt, Green Belt, Yellow Belt.
Lean Six Sigma combines waste elimination (Lean) with variation reduction (Six Sigma).
Total Quality Management (TQM)
TQM is an organisation-wide philosophy in which every employee, at every level, continuously improves processes, products and services to satisfy customers. Contributors: Deming (14 points, PDCA), Juran (quality trilogy: planning, control, improvement), Crosby (zero defects, "quality is free"), Ishikawa (quality circles, fishbone), Feigenbaum (total quality control).
Principles of TQM:
1. Customer focus – internal and external customers.
2. Total employee involvement – quality circles, suggestion schemes.
3. Process-centred approach.
4. Integrated system across departments.
5. Strategic and systematic approach; top-management commitment.
6. Continual improvement (Kaizen).
7. Fact-based decision making (SQC tools).
8. Communication and supplier partnership.
| Aspect | Traditional QC | TQM |
|---|---|---|
| Focus | Product inspection | Process and customer |
| Responsibility | Quality department | Everyone |
| Approach | Detect defects | Prevent defects |
| Improvement | Occasional | Continuous |
| Suppliers | Chosen on price | Long-term partners |
12.5 Practice Programs (Week 12)
Program 12.1 – Pareto chart of defects in a machining shop
# Program 12.1: Pareto chart
import matplotlib.pyplot as plt
defects = {"Oversize dia": 46, "Poor finish": 28, "Burrs": 15,
"Wrong length": 8, "Thread damage": 5, "Dent": 3,
"Others": 2}
items = sorted(defects.items(), key=lambda kv: kv[1], reverse=True)
names = [k for k, v in items]; counts = [v for k, v in items]
total = sum(counts); cum, s = [], 0
for c in counts:
s += c; cum.append(100 * s / total)
print(f"{'Defect':<15}{'Count':>6}{'%':>8}{'Cum %':>8}")
for nm, c, cp in zip(names, counts, cum):
print(f"{nm:<15}{c:>6}{100*c/total:>8.1f}{cp:>8.1f}")fig, ax = plt.subplots(figsize=(7, 3.6))
ax.bar(names, counts, color="#2E75B6", edgecolor="k")
ax.set_ylabel("Number of defects")
ax.tick_params(axis="x", rotation=30, labelsize=8)
ax2 = ax.twinx()
ax2.plot(names, cum, "o-", color="#E2741B")
ax2.axhline(80, color="gray", ls="--", lw=1)
ax2.set_ylim(0, 105); ax2.set_ylabel("Cumulative %")
ax.set_title("Pareto chart of machining defects")
plt.tight_layout(); plt.show()Defect Count % Cum % Oversize dia 46 43.0 43.0 Poor finish 28 26.2 69.2 Burrs 15 14.0 83.2 Wrong length 8 7.5 90.7 Thread damage 5 4.7 95.3 Dent 3 2.8 98.1 Others 2 1.9 100.0
Interpretation: "Oversize diameter" and "Poor finish" together account for about 69 % of defects, and with "Burrs" about 83 %. Improvement effort must start with these three (vital few).
Program 12.2 – Fishbone diagram drawn with Matplotlib
# Program 12.2: Cause-and-effect (fishbone) diagram
import matplotlib.pyplot as plt
effect = "Excess\nsurface\nroughness"
causes = {"Man": ["Untrained", "Fatigue"],
"Machine": ["Spindle play", "Vibration"],
"Method": ["High feed", "Wrong speed"],
"Material": ["Hard spots", "Variation"],
"Measurement": ["Probe worn", "No calibration"],
"Environment": ["Dust", "Temperature"]}
fig, ax = plt.subplots(figsize=(8, 4)); ax.axis("off")
ax.set_xlim(0, 10); ax.set_ylim(0, 6)
ax.annotate("", xy=(8.3, 3), xytext=(0.3, 3),
arrowprops=dict(arrowstyle="-|>", lw=2.5))
ax.text(8.4, 3, effect, va="center", fontsize=10, weight="bold",
bbox=dict(boxstyle="round", fc="mistyrose"))
for i, (cat, subs) in enumerate(causes.items()):
x = 1.5 + (i % 3) * 2.3
top = i < 3
y0 = 5.3 if top else 0.7
ax.plot([x, x + 1.4], [y0, 3], color="navy", lw=1.8)
ax.text(x, y0 + (0.2 if top else -0.35), cat, ha="center",
weight="bold", color="darkorange")
for j, s in enumerate(subs):
f = (j + 1) / 3
xx, yy = x + 1.4 * f, y0 + (3 - y0) * f
ax.plot([xx - 0.8, xx], [yy, yy], color="gray")
ax.text(xx - 0.85, yy, s, ha="right", va="center", fontsize=7)
ax.set_title("Fishbone diagram - surface finish problem")
plt.tight_layout(); plt.show()Program 12.3 – Process flowchart drawn with Matplotlib
# Program 12.3: Process flowchart of an inspection station
import matplotlib.pyplot as plt
from matplotlib.patches import FancyBboxPatch, Polygon
fig, ax = plt.subplots(figsize=(4, 6)); ax.axis("off")
ax.set_xlim(0, 6); ax.set_ylim(0, 10)
def box(y, t, c="lightyellow"):
ax.add_patch(FancyBboxPatch((1.5, y - .35), 3, .7,
boxstyle="round,pad=0.05", fc=c, ec="k"))
ax.text(3, y, t, ha="center", va="center", fontsize=8)
def arrow(y1, y2, x=3):
ax.annotate("", xy=(x, y2), xytext=(x, y1),
arrowprops=dict(arrowstyle="-|>"))
box(9.3, "START: part arrives", "lightgreen")
box(8.0, "Measure diameter")
ax.add_patch(Polygon([(3, 7.1), (4.4, 6.4), (3, 5.7), (1.6, 6.4)],
fc="pink", ec="k"))
ax.text(3, 6.4, "Within\ntolerance?", ha="center", va="center",
fontsize=8)
box(4.6, "Accept: send to assembly")
box(3.2, "Record in check sheet")
box(1.9, "STOP", "lightgreen")
ax.add_patch(FancyBboxPatch((4.6, 6.05), 1.3, .7,
boxstyle="round,pad=0.05", fc="lightblue", ec="k"))
ax.text(5.25, 6.4, "Reject /\nrework", ha="center", va="center",
fontsize=8)
for a, b in [(8.95, 8.35), (7.65, 7.1), (5.7, 4.95), (4.25, 3.55),
(2.85, 2.25)]:
arrow(a, b)
ax.annotate("", xy=(4.6, 6.4), xytext=(4.4, 6.4),
arrowprops=dict(arrowstyle="-|>"))
ax.text(3.1, 5.3, "Yes", fontsize=8)
ax.text(4.35, 6.6, "No", fontsize=8)
plt.title("Inspection process flowchart", fontsize=10)
plt.tight_layout(); plt.show()Program 12.4 – Histogram and scatter diagram
# Program 12.4: Histogram and scatter diagram
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(2)
weight = np.random.normal(500, 4, 120) # casting weight, g
speed = np.linspace(80, 240, 25) # cutting speed
Ra = 3.2 - 0.009 * speed + np.random.normal(0, .12, 25)
r = np.corrcoef(speed, Ra)[0, 1]
print(f"Mean weight = {weight.mean():.2f} g, "
f"s = {weight.std(ddof=1):.2f} g")
print(f"Correlation coefficient speed vs Ra = {r:.3f}")
fig, ax = plt.subplots(1, 2, figsize=(7.5, 3))
ax[0].hist(weight, bins=12, color="#A9D18E", edgecolor="k")
ax[0].set_title("Histogram of casting weight", fontsize=9)
ax[0].set_xlabel("Weight (g)"); ax[0].set_ylabel("Frequency")
ax[1].scatter(speed, Ra, color="crimson")
m, c = np.polyfit(speed, Ra, 1)
ax[1].plot(speed, m * speed + c, "k--")
ax[1].set_title(f"Scatter: speed vs Ra (r = {r:.2f})", fontsize=9)
ax[1].set_xlabel("Cutting speed (m/min)"); ax[1].set_ylabel("Ra (µm)")
plt.tight_layout(); plt.show()Mean weight = 499.67 g, s = 4.24 g Correlation coefficient speed vs Ra = -0.952
A correlation coefficient close to −1 shows a strong negative relationship: surface roughness decreases as cutting speed increases.
Program 12.5 – One-sample and two-sample t-tests with SciPy
# Program 12.5: t-tests
from scipy import stats
import statistics as st
d = [25.03, 25.01, 25.04, 25.02, 24.99, 25.03, 25.02, 25.04]
t, p = stats.ttest_1samp(d, 25.00)
print(f"One-sample: mean = {st.mean(d):.4f}, "
f"t = {t:.3f}, p = {p:.4f}")
print("Reject H0: mean differs from 25.00" if p < 0.05
else "Accept H0: mean = 25.00")old_tool = [1.82, 1.95, 1.76, 1.88, 1.91, 1.85, 1.79, 1.93] # Ra um
new_tool = [1.62, 1.70, 1.58, 1.75, 1.66, 1.69, 1.61, 1.72]
t2, p2 = stats.ttest_ind(old_tool, new_tool)
print(f"\nTwo-sample: old mean = {st.mean(old_tool):.3f}, "
f"new mean = {st.mean(new_tool):.3f}")
print(f"t = {t2:.3f}, p = {p2:.6f}")
print("New tool gives significantly different finish"
if p2 < 0.05 else "No significant difference")One-sample: mean = 25.0225, t = 3.813, p = 0.0066 Reject H0: mean differs from 25.00
Two-sample: old mean = 1.861, new mean = 1.666 t = 6.119, p = 0.000027 New tool gives significantly different finish
Program 12.6 – One-way ANOVA: output of three machines
# Program 12.6: One-way ANOVA
from scipy import stats
import matplotlib.pyplot as plt
A = [52, 55, 53, 51, 54, 56] # parts per hour, machine A
B = [58, 60, 57, 59, 61, 58]
C = [53, 52, 55, 54, 51, 53]
F, p = stats.f_oneway(A, B, C)
print(f"F = {F:.3f}, p-value = {p:.6f}")
print("Machine means differ significantly" if p < 0.05
else "No significant difference between machines")
# manual ANOVA table
groups = [A, B, C]; N = 18; k = 3
grand = sum(map(sum, groups)) / N
SSB = sum(len(g) * (sum(g)/len(g) - grand) ** 2 for g in groups)
SSW = sum(sum((x - sum(g)/len(g)) ** 2 for x in g) for g in groups)
MSB, MSW = SSB / (k - 1), SSW / (N - k)
print(f"SSB = {SSB:.2f} SSW = {SSW:.2f} MSB = {MSB:.2f} "
f"MSW = {MSW:.3f} F = {MSB/MSW:.3f}")
plt.figure(figsize=(5, 3))
plt.boxplot(groups, tick_labels=["A", "B", "C"])
plt.ylabel("Parts per hour"); plt.title("Output of three machines")
plt.grid(alpha=.3); plt.tight_layout(); plt.show()F = 24.543, p-value = 0.000019 Machine means differ significantly SSB = 125.44 SSW = 38.33 MSB = 62.72 MSW = 2.556 F = 24.543
Program 12.7 – 2² factorial DOE: effect of speed and feed on surface roughness
# Program 12.7: 2x2 full factorial experiment
import matplotlib.pyplot as plt
# coded levels: speed (A), feed (B); response Ra in um (2 replicates)
runs = [(-1, -1, [3.1, 3.3]), (+1, -1, [2.4, 2.2]),
(-1, +1, [4.6, 4.8]), (+1, +1, [3.2, 3.4])]
y = {(a, b): sum(r) / len(r) for a, b, r in runs}
A_eff = (y[1, -1] + y[1, 1]) / 2 - (y[-1, -1] + y[-1, 1]) / 2
B_eff = (y[-1, 1] + y[1, 1]) / 2 - (y[-1, -1] + y[1, -1]) / 2
AB_eff = (y[1, 1] + y[-1, -1]) / 2 - (y[1, -1] + y[-1, 1]) / 2
for (a, b), v in y.items():
print(f"Speed {a:+d}, Feed {b:+d}: mean Ra = {v:.2f}")
print(f"Main effect of speed = {A_eff:.2f} um")
print(f"Main effect of feed = {B_eff:.2f} um")
print(f"Interaction effect = {AB_eff:.2f} um")
best = min(y, key=y.get)
print("Best setting (lowest Ra):", best)
fig, ax = plt.subplots(1, 2, figsize=(7, 3))
ax[0].plot([-1, 1], [(y[-1,-1]+y[-1,1])/2, (y[1,-1]+y[1,1])/2], "o-",
label="Speed")
ax[0].plot([-1, 1], [(y[-1,-1]+y[1,-1])/2, (y[-1,1]+y[1,1])/2], "s-",
label="Feed")
ax[0].set_title("Main effects plot", fontsize=9); ax[0].legend()
ax[0].set_xticks([-1, 1]); ax[0].set_ylabel("Mean Ra (um)")
for b, mk in [(-1, "o-"), (1, "s--")]:
ax[1].plot([-1, 1], [y[-1, b], y[1, b]], mk, label=f"Feed {b:+d}")
ax[1].set_title("Interaction plot", fontsize=9); ax[1].legend()
ax[1].set_xticks([-1, 1]); ax[1].set_xlabel("Speed (coded)")
plt.tight_layout(); plt.show()Speed -1, Feed -1: mean Ra = 3.20 Speed +1, Feed -1: mean Ra = 2.30 Speed -1, Feed +1: mean Ra = 4.70 Speed +1, Feed +1: mean Ra = 3.30 Main effect of speed = -1.15 um Main effect of feed = 1.25 um Interaction effect = -0.25 um Best setting (lowest Ra): (1, -1)
Interpretation: increasing speed reduces Ra by about 1.15 µm; increasing feed raises Ra by about 1.25 µm; the negative interaction shows that high speed is even more beneficial at high feed. The best setting is high speed with low feed.
12.6 Solved Exam Questions
Q1. Explain hypothesis testing and its steps. (6 marks)
Answer: Hypothesis testing decides, using sample data, whether to reject a claim about a population. Steps: (1) state H₀ and H₁; (2) choose α (usually 0.05); (3) select the test (t, F) and compute the statistic; (4) find the p-value or critical value; (5) decide – reject H₀ if p < α; (6) draw an engineering conclusion. Type I and Type II errors are defined in Section 12.1.
Q2. Differentiate between t-test and ANOVA. (4 marks)
Answer: The t-test compares one mean with a target or two means; ANOVA compares three or more means simultaneously using the F-ratio of between-group to within-group variance. Using repeated t-tests for many groups inflates the Type I error, which ANOVA avoids.
Q3. What is Design of Experiments? Explain factor, level, response, main effect and interaction. (6 marks)
Answer: See Section 12.2 and Program 12.7.
Q4. Explain Pareto chart and fishbone diagram with examples. (8 marks)
Answer: See Section 12.3, Programs 12.1 and 12.2 and Fig. 12.3.
Q5. Explain Lean, Six Sigma and TQM. (8 marks)
Answer: Lean eliminates the seven wastes (TIMWOOD) using 5S, JIT, Kanban, Poka-Yoke; Six Sigma reduces variation to 3.4 DPMO through DMAIC; TQM is a company-wide philosophy of customer focus, total involvement and continuous improvement based on facts. See Section 12.4.
Q6. Generate Python code to plot different quality-control tools for given data. (20 marks)
Answer: Programs 12.1 (Pareto), 12.2 (fishbone), 12.3 (flowchart) and 12.4 (histogram and scatter).
12.7 Multiple Choice Questions
1. The null hypothesis usually states a) a difference exists b) no difference or no effect c) the sample is wrong d) the alternative is false
Answer: (b) Reason: H₀ represents the status quo that the test tries to disprove.
2. H₀ is rejected when a) p-value > α b) p-value < α c) p-value = 1 d) t = 0
Answer: (b) Reason: A small p-value means the data are unlikely under H₀.
3. Rejecting a true null hypothesis is a a) Type I error b) Type II error c) sampling error d) measurement error
Answer: (a) Reason: Its probability equals the significance level α.
4. To compare the means of four machines in one test, use a) one-sample t-test b) ANOVA c) Pareto chart d) c-chart
Answer: (b) Reason: ANOVA compares three or more group means using the F statistic.
5. The Pareto principle states that a) 50 % causes give 50 % effects b) about 80 % of problems arise from about 20 % of causes c) all causes are equal d) 6σ gives zero defects
Answer: (b) Reason: It focuses effort on the vital few causes.
6. The fishbone diagram was developed by a) Juran b) Kaoru Ishikawa c) Pareto d) Taguchi
Answer: (b) Reason: It is also called the Ishikawa or cause-and-effect diagram.
7. Six Sigma quality corresponds to a) 66,807 DPMO b) 3.4 DPMO c) 233 DPMO d) zero defects exactly
Answer: (b) Reason: With a 1.5σ long-term shift, 6σ capability gives 3.4 defects per million.
8. DMAIC stands for a) Design, Make, Assemble, Inspect, Correct b) Define, Measure, Analyse, Improve, Control c) Develop, Manage, Audit, Inspect, Check d) Define, Model, Act, Inspect, Close
Answer: (b) Reason: It is the Six Sigma improvement roadmap.
9. Which of the following is NOT one of the seven wastes of Lean? a) Inventory b) Waiting c) Quality planning d) Over-production
Answer: (c) Reason: The wastes are transport, inventory, motion, waiting, over-production, over-processing and defects.
10. PDCA cycle is associated with a) Deming b) Taylor c) Ford d) Fisher
Answer: (a) Reason: Deming popularised Plan-Do-Check-Act for continuous improvement.
11. In a 2² factorial design, the number of runs (without replication) is a)2 b)4 c)8 d)6
Answer: (b) Reason: 2 factors at 2 levels give 2 × 2 = 4 combinations.
12. The SciPy function for one-way ANOVA is a) stats.ttest_ind b) stats.f_oneway c) stats.anova d) stats.norm
Answer: (b) Reason: f_oneway returns the F statistic and p-value.
13. A scatter diagram shows a) frequency distribution b) relationship between two variables c) ranking of defects d) process steps
Answer: (b) Reason: Correlation between variables such as speed and roughness is seen.
14. Kaizen means a) mistake proofing b) continuous improvement c) just in time d) visual card
Answer: (b) Reason: Kaizen is small, continual improvement by everyone.
15. Poka-Yoke is a Lean tool for a) inventory control b) mistake proofing c) scheduling d) costing
Answer: (b) Reason: Devices prevent or immediately detect human errors.
16. TQM emphasises a) inspection by quality department only b) involvement of all employees and customer focus c) price-based supplier selection d) final inspection only
Answer: (b) Reason: TQM makes quality everyone's responsibility.
12.8 Exercises
1. Defect data for a foundry: blowholes 52, sand inclusion 30, cold shut 12, shrinkage 9, misrun 5, others 4. Draw a Pareto chart in Python.
2. Draw a fishbone diagram for "excessive vibration in a pump".
3. Two operators measured 10 parts each; write a program to test whether their mean readings differ.
4. Explain 5S with workshop examples.
5. Compare Lean and Six Sigma.