Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 17

Choosing the Right Hypothesis Test

Recommended resources

Introduction

Welcome back. In our last lesson, we used graphical tools like Box Plots and Multi-Vari Charts to visually explore our process data. These charts gave us strong clues about where problems might lie—for instance, we might have seen that one machine appears to produce parts with a lower average diameter, or that defect rates seem higher on the night shift.

However, a visual difference in a sample of data isn't enough. We need to ask: is this difference statistically significant, or could it have happened by random chance? Answering this question with confidence is the core purpose of formal hypothesis testing.

This lesson is the bridge from visual analysis to statistical proof. Our goal is to learn how to select the appropriate hypothesis test based on the data type and the objective of the comparison. For a Six Sigma practitioner, this is a critical skill. Choosing the wrong test is like using a torque wrench to hammer a nail—the result will be invalid and misleading. We will focus on building a systematic, logical approach to ensure you always select the right statistical tool for the job.


1. The Logic of Choosing a Statistical Test

Selecting a statistical test isn't about memorizing a long list of options. It's a structured process that starts with asking a few fundamental questions about your data and your goal.

To begin, let's watch a video that frames this selection process as a logical, step-by-step procedure, much like following a clinical guideline or a process flowchart.

How to choose the correct statistical test - or how to tell the correct test has been used

This video from the 'school of surgery' channel provides an excellent overview of the structured thinking required to choose the correct test. It introduces the key concepts we'll be using throughout this lesson.

Please watch the following segments: Introduction (00:00 - 02:21): Pay attention to the analogy of a structured, logical flowchart. Dependent and Independent Variables (02:21 - 03:23): This is a quick refresher on terminology. In our manufacturing context, the dependent variable is usually your process output or CTQ (the 'Y'), and the independent variable is the factor you are investigating (the 'X'). Types of Data (03:23 - 05:49): Focus on the 'NOIR' mnemonic (Nominal, Ordinal, Interval, Ratio). This builds on what we covered in Module 2 about data classification. Research Question (07:53 - 09:21): Note the crucial distinction between looking for 'differences' between groups and 'association' between variables.

As the video highlighted, the selection process boils down to three core questions, which we will now explore in the context of a manufacturing improvement project.

The 3 Key Questions for Test Selection:

  1. What is the type of your data? (Specifically, the data for your response variable or CTQ).
  2. What is the purpose of your analysis? (e.g., comparing groups, looking for relationships).
  3. How many groups/samples are you analyzing, and what is their relationship? (e.g., two independent machines, three shifts, paired measurements before and after a change).

2. A Tool for the Job: The Hypothesis Test Decision Tree

Engineers love a good flowchart, and for good reason—it makes complex decisions simple and repeatable. Selecting a hypothesis test is no different. The image below is a decision tree that is an indispensable tool for any Green Belt.

Hypothesis Test Decision Tree
This Hypothesis Test Decision Tree maps out the selection process. Starting from the top, you answer questions about your data and objective to navigate to the correct statistical test at the bottom.

We will use this "Hypothesis Test Decision Tree" as our guide. Let's break down the key branching points.

Decision Point 1: Data Type (Continuous vs. Discrete)

This is the first and most important split.

  • Continuous Data (Interval/Ratio): Measurements that can take any value within a range. Examples: part diameter, cycle time, temperature, pressure. These tests often focus on comparing averages (means) or variation.
  • Discrete/Attribute Data (Nominal/Ordinal): Data that is counted or categorized. Examples: pass/fail counts, defect type categories (e.g., scratch, dent, crack), shift number (1, 2, 3). These tests often focus on comparing proportions or counts in categories.

Decision Point 2: Analysis Purpose & Number of Groups

Your graphical analysis from the previous lesson will guide you here.

  • Comparing one group to a standard: "Is our average fill volume still calibrated to 500ml?" (e.g., 1-Sample t-test).
  • Comparing two groups: "Is Machine A faster than Machine B?" (e.g., 2-Sample t-test).
  • Comparing more than two groups: "Is there a difference in defect rates across our three suppliers?" (e.g., ANOVA or Chi-Square).
  • Looking for a relationship (Correlation/Regression): "Does furnace temperature affect material hardness?" We will cover these tests in detail in Module 5.

Decision Point 3: Parametric vs. Non-Parametric Tests

Notice how the "Continuous" path on our decision tree splits based on whether the data is "Normal." This leads to the choice between parametric and non-parametric tests.

Hypothesis Testing: A Comprehensive Guide

This article from 6sigma.us provides a concise, practical explanation of parametric and non-parametric tests and when to use each.

Please read the section titled 'Types of Hypothesis Testing: Choosing the Right Tool for Your Analysis'. Focus on the distinction between parametric and non-parametric tests and the criteria for choosing between them.

To summarize the key points:

  • Parametric Tests (like t-tests and ANOVA) are powerful but have assumptions, the most important being that your data is approximately normally distributed. You already learned how to check for normality using probability plots in Module 3.
  • Non-Parametric Tests (like Mann-Whitney or Kruskal-Wallis) are the robust alternative when your data is not normal, or when you are working with ordinal (ranked) data. They are the "safer bet" when assumptions are violated.

3. Practical Application: Using the Decision Tree

Let's solidify this by walking through some common manufacturing scenarios. Refer to the "Hypothesis Test Decision Tree" image as we go.

Scenario A: Calibrating a Filling Machine

  • Problem: A filling machine is supposed to dispense 2.0 Liters. You take a sample of 35 bottles and measure their volume to see if the machine's average is off-target.
  • Applying the Tree:
    1. Data Type? Volume is Continuous.
    2. Objective? Comparing the process Mean to a target (2.0 L). This is a "1 Sample" problem.
    3. Distribution? We run a normality test and find the data is Normal.
    • Conclusion: The path leads us to the 1-Sample t-Test.

Scenario B: Comparing Two Suppliers

  • Problem: You suspect that Supplier A provides raw material with a higher average purity than Supplier B. You measure the purity from 15 batches from each supplier.
  • Applying the Tree:
    1. Data Type? Purity level is Continuous.
    2. Objective? Comparing the Means of 2 Samples (Supplier A vs. B).
    3. Distribution? Let's assume the data from both groups is Normal.
    • Conclusion: The path leads to the 2-Sample t-Test. (If the data were not normal, the path would lead to the Mann-Whitney Test).

Scenario C: Defect Analysis by Production Line

  • Problem: You're analyzing final inspection data. You have defect counts categorized by three production lines and want to know if the proportion of defective units is the same across all three lines.
  • Applying the Tree:
    1. Data Type? The data is Discrete (defective or not defective).
    2. Objective? We are comparing defect counts/proportions across more than two groups. This is a test for association between the categorical variable "Production Line" and the categorical variable "Defect Status".
    • Conclusion: The path leads to the Chi-Square Test.

4. A Final Detail: One-Tailed vs. Two-Tailed Tests

Once you've selected the test (e.g., a 2-Sample t-test), there is one final choice to make: the direction of your hypothesis. This determines whether you use a one-tailed or two-tailed test.

Hypothesis Testing: A Comprehensive Guide

Let's return to the 'Hypothesis Testing: A Comprehensive Guide' to understand this final, crucial detail. The choice has practical implications for your conclusions.

Please read the section 'One-Tailed vs. Two-Tailed Tests in Hypothesis Testing'. Focus on the strategic reasons for choosing one over the other, particularly the examples given.

Here's a simple breakdown for manufacturing contexts:

  • Use a One-Tailed Test when you only care about a change in one specific direction.

    • Question: "Does the new process reduce cycle time?"
    • Hypothesis: You are testing if New Time < Old Time. You don't care if it's simply different; you only care if it's an improvement.
    • This is common in improvement projects.
  • Use a Two-Tailed Test when a difference in either direction is important.

    • Question: "Are the diameters of parts from Mold A different from Mold B?"
    • Hypothesis: You are testing if Diameter A ≠ Diameter B. A difference in either direction (larger or smaller) indicates a lack of consistency that may need to be addressed.
    • This is common in problem-solving or validation scenarios where you're comparing a process to a standard or two processes to each other.

Conclusion

In this lesson, we established a formal process for moving from visual clues to statistical validation. You now have a framework for selecting the correct hypothesis test, which is a cornerstone of the Analyze phase of any Six Sigma project.

Key Takeaways:

  • Selecting the right hypothesis test is a logical process based on your data type, analysis objective, and the number/nature of your samples.
  • The Hypothesis Test Decision Tree is your roadmap for navigating this selection process.
  • The choice between parametric (e.g., t-test, ANOVA) and non-parametric (e.g., Mann-Whitney) tests depends primarily on whether your continuous data meets the assumption of normality.
  • The choice between a one-tailed and two-tailed test depends on whether you are testing for a change in a specific direction (improvement) or for any difference from a standard.

Preview of the Next Lesson:

Now that you know how to choose the right tool, it's time to learn how to use it. In our next lesson, we will perform our first formal statistical analyses. We will focus on the versatile family of t-tests, learning how to perform and interpret t-tests (1-sample, 2-sample, and paired) to compare process means.