Advancing QE Skills | p-Value Correctly Interpreted, but Conclusion Still Wrong — Two Outputs from the Same Data, Five Must-Check Items, and Three Default Traps
1. Applicable Scenarios
A precision component company purchases the same model of shaft (Ø10.000±0.020 mm) from two suppliers. The incoming dimensions are verified by the Quality Engineer (QE), and the conclusions are recorded in the supplier's monthly scorecard. The customer's Supplier Quality Engineer (SQE) conducts a quarterly sampling inspection of the original output. In one comparison: Supplier A provided 20 pieces with a mean of 10.004 and a standard deviation of 0.0062; Supplier B provided 8 pieces with a mean of 10.014 and a standard deviation of 0.0198. The same data set yields two different results from the software, and both sides can justify their conclusions.
This type of work is not always worth a major effort. The checklist should only be used if all three conditions are met: the conclusion must be signed, used for evaluation or submitted to the customer, and there are consequences if it is wrong; at least three inspections or capability analyses are conducted each month, and the analyst is sufficiently experienced to check the premises; the data comes from more than two sources—suppliers, machines, shifts, batches—and the premises will not naturally hold.
Scenarios where the checklist should not be used are also important to clarify:
- The original data is invalid (non-random sampling, missing pages, uncalibrated instruments): fix the data first. Statistical software can only make the deviation more precise, not eliminate it.
- The magnitude of the difference is much greater than the measurement capability (more than three times the tolerance, distinguishable by the naked eye): make a direct judgment without the need for inspection. Providing a "p<0.001" might leave the door open for "statistical controversy."
- Effective sample size n≤5 and the distribution is clearly skewed: the power of any test is below 0.3, and the only honest conclusion is "insufficient data." Writing "no significant difference" is treating the absence of evidence as evidence.
- Single-piece, destructive, extremely costly tests (n=3): start with a physical mechanism analysis and engineering judgment; statistical methods should only be used as supporting evidence and not to dominate the conclusion.
The key players are those who speak with data: Data Analysis QE, SQE Review Position, and R&D QE. The readers of the output are procurement, suppliers, and customer SQEs—they do not care what tests you ran, only whether your conclusion is valid.
2. Criteria and Thresholds
First, look at these two lines of output. The software defaults to "assume equal variances," giving the first line: combined standard deviation 0.0116, t=2.07, df=26, p=0.049, mean difference 95%CI 0.00006 to 0.0199. The second line, Welch (does not assume equal variances): t=1.40, df=7.56, p=0.201, CI −0.0066 to 0.0266. One says "Supplier B's incoming material is off, deduct points," and the other says "cannot determine." The difference is not in the data, but in the different denominators used in these two lines.
The variance ratio between the two groups is 10.2 times, and the Levene test p<0.01, indicating that the assumption of equal variances is invalid. The combined standard deviation is a weighted average of the variances of the two groups, giving more weight to the group with the larger variance, reducing the standard error by about 32%, and inflating the t-value by nearly 50%, causing p to drop from 0.20 to 0.049. This is not the software's fault—both lines are calculated, but the mistake is in only copying the first line.
The criteria are straightforward:
- When the sample sizes of the two groups are equal, the standard errors of the pooled and Welch methods are mathematically identical, differing only in degrees of freedom, and the conclusion will not change—either line can be used.
- When the sample sizes are unequal and variance ratio >3: the Welch line must be used. When the variance ratio ≤3, the difference in p-values between the two lines is usually within 10%, and the pooled method is acceptable but must be noted.
- When p is in the 0.01~0.10 range, both lines must be run and reported.
Now, let's see how fragile the conclusion with p=0.049 is: the lower limit of the CI is 0.00006 mm, or 0.06 µm, which is one order of magnitude smaller than the instrument's resolution (1 µm). The lower limit is close to 0, meaning that "there is a shift" relies on the fifth decimal place. Using this to deduct points can be easily overturned by a supplier's retest.
Five Must-Check Items (in order, missing any one invalidates the conclusion)
| Must-Check Item | Where to Look | Criteria | Consequences of Not Checking |
|---|---|---|---|
| 1. Are the premises valid? | Levene or Bartlett p; use Shapiro-Wilk for normality if n<30 | Levene p>0.05 and the n of the two groups differ by less than 20% → use the pooled line; otherwise, use the Welch line | In this example, p changes from 0.049 to 0.201, reversing the conclusion |
| 2. One-tailed or two-tailed | The alternative hypothesis setting in the output | The direction must be written into the analysis plan before looking at the data; the software defaults to two-tailed, and the premise for a directional hypothesis is prior knowledge | Selecting the direction after seeing the data can halve p, which is considered data manipulation |
| 3. How are missing values handled? | The effective n in the output, compared to the number of imported rows | Missing values <5% can be deleted and noted; 5%~10% should be handled both ways, and the conclusions must be consistent; >10% stop analysis and check the data source | The report states n=30, but only 19 rows were actually used |
| 4. Effect size and interval | Mean difference, 95%CI, Cohen's d | Do not write "improvement" if the CI crosses 0; the difference must be greater than 2 times σ_GR&R (or 5 times the resolution); d≥0.8 is considered meaningful in engineering | Statistically significant but the difference is too small to be detected by the instrument, which means measuring noise |
| 5. Multiple comparisons | Number of groups k being compared | For k≥3, use Tukey or Bonferroni (α/k); uncorrected comparisons must be labeled as "exploratory" | The family-wise error rate for three groups is 14.3%, for six groups 26.5%, and for ten groups 40.1% |
The "2 times σ_GR&R" in item 4 comes from the measurement system itself: if the difference is as small as the 6σ extended value of the GR&R, you cannot distinguish between the difference and measurement variation.
Three Default Traps
- Assuming equal variances is the default selection. This is how the example went wrong—using the same data and the same computer, the p-values of the two lines differ by four times.
- Deleting entire rows for missing values. SPSS's listwise deletion or R's
na.omitcan reduce 30 rows to 19, and many people never check the n in the output. - Display precision. The default three significant digits can turn p=0.0004 into 0.000 and R²=0.996 into 0.99, leading to decimal point errors in the report.
Any changes to these three defaults and the original defaults should be saved as screenshots—not for audits, but for your reference a year later.
3. Executable Steps
Step 1: Fix the data. Save a read-only copy of the original values, locking the units, instrument numbers, sampling dates, and exclusion records; store the analysis file separately from the original file. The first line of the report should include three numbers: the number of imported rows, the effective n, and the number of excluded records with reasons.
Step 2: Check the three premises. Homogeneity of variances, normality, and independence (whether grouped by batch or shift). Copy all three p-values into the appendix, not just the main p-value—the p-values for the premises are the only basis for explaining the conclusion.
Step 3: Define the line and leave a trace. Clearly specify which line is used and why; take screenshots of the software version and every default option you changed. If someone asks "why was it calculated this way a year later," the only evidence you can provide is this screenshot.
Step 4: Provide the three components. Point estimate, 95%CI, and effect size—none of these can be missing. ANOVA and regression should be accompanied by residual plots to check for funnel shapes or trends over time; t-tests should be accompanied by box plots. A report that only provides the p-value is equivalent to only giving "yes" or "no."
Step 5: Write conclusions using fixed sentence structures and state the power.
Under α=0.05, two-tailed, Welch test, Supplier B has a higher mean than Supplier A by 0.010 mm (95%CI −0.007 to 0.027), t=1.40, df=7.6, p=0.201; n=20/8, the minimum detectable difference is 0.023 mm (power 0.8). Conclusion: Insufficient data to determine either a shift or no shift; to detect a difference of 0.010 mm, the sample size for Supplier B needs to be increased to about 37 pieces.
Hard rule: Any "not significant" conclusion must be accompanied by the minimum detectable difference (MDE). Without the MDE, "no difference" and "not detected" look the same on paper. In this example, MDE=0.023 mm, and to determine "interchangeability," the CI must fall within ±0.005 (one quarter of the tolerance)—a difference of one order of magnitude, and the only correct conclusion is "insufficient data."
4. Counterexamples and Misconceptions
One: Only copying the first line and writing the marginal p-value into the evaluation. A company deducted 5 points from a supplier based on the pooled p=0.049. The supplier appealed with their own Welch analysis p=0.20. A retest with 40 additional samples showed a difference of 0.004 and p=0.55, and the deduction was revoked. The cost was not just 5 points but the loss of credibility for the scorecard.
Two: Discussing significance when the difference is less than the measurement capability. In one case, p=0.03 and the difference was 0.0015 mm, while the instrument resolution was 0.005 and 6σ_GRR=0.006. The conclusion should be "undetectable," and an MSA should be conducted before discussing differences; writing "effective improvement" is treating instrument noise as a process result.
Three: Changing to one-tailed after seeing the graph. Running a two-tailed test with p=0.09 and then changing to one-tailed to get p=0.045. Whether the direction is prior knowledge can only be proven by the analysis plan; without a plan, this is a standard p-hacking move.
Four: Treating "not significant" as "no difference." Writing "the two suppliers are interchangeable" when p=0.20 without conducting an equivalence test. Equivalence requires the CI to fall entirely within ±Δ, which must be determined before the analysis based on the tolerance or engineering significance (commonly one quarter of the tolerance). In this example, the upper limit of the CI is 0.027, which is more than five times Δ.
Five: Not correcting for multiple comparisons. Conducting t-tests between three machines, each at α=0.05, results in an overall error rate of 14.3%; for ten groups, it can reach 40%. Either use ANOVA followed by Tukey, or reduce α to 0.05/k and clearly state this in the report.
Six: Writing p=0.000 in the report. The probability cannot be 0, and the customer's SQE will suspect that the data has been manipulated upon seeing this number. The correct notation is p<0.001.
5. Self-Check List
- The n in the report is the effective sample size, matching the original row count and excluded records.
- The p-values for homogeneity of variances and normality are included in the appendix, with reasons for using pooled or Welch.
- Each comparison conclusion includes the 95%CI and effect size; no "improvement" is written if the CI crosses 0.
- "Not significant" conclusions are accompanied by the minimum detectable difference and required sample size.
- Multiple comparisons are noted with the correction method; p-values are not written as 0.000.
- The software version and any changed default options are saved as screenshots.
Check the premises first, then read the effect size, and finally look at the p-value.
Knowledge code: 6.3.3
Version: v20261111
Author: QTank QTank is dedicated to providing systematic professional knowledge, methodologies, and practical tools for quality management practitioners, helping companies continuously improve their quality capabilities.