Sub topic 1
From suspicion to a testable hypothesis
Prerequisites
This chapter assumes you know the DMAIC phases, the terms defect, process output Y, and input X, and how to build a cause-and-effect diagram or run 5 Whys. You should also be able to compute a mean, median, and standard deviation.
Turning a suspicion into a hypothesis
A root cause from a fishbone diagram is often a belief, such as "the night shift causes defects." A belief cannot be checked. Rewrite it as a hypothesis that names an input (X), a direction, and an output (Y): "Units made on the night shift have a higher defect rate than units made on the day shift."
What the data should show if the cause is real
Write the prediction before you open any data. If the cause is real, the data should show a specific pattern, such as a higher defect rate on one shift or longer cycle times under one setup. If no pattern would appear even when the cause is false, the hypothesis is not testable.
Planning the data you need
Settle these points before collecting anything:
- The output measure (Y), such as a defect flag or cycle time in minutes.
- The factor to compare (X), such as shift or setup.
- The time window and sample size for each group.
- Who records the data, and how.
Collect data for both groups over the same period. Otherwise, a time trend can look like a shift effect.
Can you trust the data? Measurement and data checks
Confirm that the recording method gives consistent results. Then check for missing values, duplicate rows, and impossible values. Also confirm that both shifts use the same defect definition. A definition that differs between groups creates a false difference.
import pandas as pd
df = pd.DataFrame({
"shift": ["A", "A", "B", "B", "B", "A", None, "B"],
"cycle_time_min": [12.1, 11.8, 13.0, 12.8, 12.8, 12.4, 12.0, -1.0],
})
print("Missing values:\n", df.isna().sum())
print("Duplicate rows:", df.duplicated().sum())
print("Units per shift:\n", df["shift"].value_counts())
print("Cycle time range:", df["cycle_time_min"].min(), "to", df["cycle_time_min"].max())Exercise
A team suspects that machine 3 causes scrap. Which statement is a testable hypothesis?
Show answer
"Parts from machine 3 have a higher scrap rate than parts from the other machines over the same four weeks." It names an input, a direction, and a measurable output.