Sub topic 5
Classifying Y and X as Continuous or Discrete
Assume you know the DMAIC cycle, the purpose of the Analyze phase, and basic descriptive statistics such as the mean, median, and standard deviation. You should also be able to read a histogram and a box plot.
Start with the process question
In Six Sigma, Y is the output or response you want to improve. X is an input, factor, or possible cause that may explain changes in Y.
For example:
> Does oven temperature affect the curing time of a coating?
- Y is curing time.
- X is oven temperature.
Classifying both variables helps you shortlist suitable hypothesis tests. Do not choose a test only because a software menu offers it. First identify what each variable represents and how it was measured.
Continuous and discrete variables
A continuous variable can take any value within a range. It usually comes from measurement.
Examples include:
- Length in millimeters
- Weight in grams
- Temperature in degrees
- Cycle time in seconds
- Diameter in millimeters
A discrete variable takes separate values. It often comes from counting or grouping.
Examples include:
- Number of defects
- Number of calls
- Shift: day or night
- Machine: A, B, or C
- Defect status: defective or acceptable
A category stored as a number is still categorical. If machine A is coded as 1, machine B as 2, and machine C as 3, the numbers are labels. Their average has no process meaning.
| Variable | Example values | Classification | Reason |
|---|---|---|---|
| Cycle time | 12.4, 12.5, 12.6 seconds | Continuous | Measured on a scale |
| Defect count | 0, 1, 2, 3 | Discrete numerical | Counted events |
| Shift | Day, evening, night | Discrete categorical | Named groups |
| Defect status | 0 or 1 | Discrete categorical | Two outcome categories |
Classify the measurement, not the spreadsheet column
A column containing whole numbers is not automatically discrete. Temperature rounded to whole degrees may represent a continuous measurement recorded with limited precision. Conversely, a product ID is not a numerical variable for analysis.
Also identify the unit of analysis. A defect count per product differs from a defect count per batch. Mixing these units can create misleading results.
Use Y and X together
The test depends mainly on the type of Y and the type of X:
| Y, the response | X, the factor | Typical question |
|---|---|---|
| Continuous | Two categorical groups | Do two group means differ? |
| Continuous | Three or more categorical groups | Do any group means differ? |
| Continuous | Continuous | Are the variables associated? |
| Binary or categorical | Categorical | Are the categories associated? |
| Count or proportion | One target or group | Does the rate differ from a target or between groups? |
For a continuous Y and two independent groups, a two-sample t-test is often a candidate. For three or more groups, consider one-way ANOVA. For a categorical Y and categorical X, consider a chi-square test of association. These are shortlists, not automatic decisions. Study the design, independence, and assumptions before testing.
Exercise
A project records waiting time in minutes, service channel as phone, web, or branch, and whether the customer complained. Classify each variable as Y or X and as continuous or discrete.
Show answer
Waiting time is a continuous Y. Service channel is a discrete categorical X. Complaint status is a discrete categorical variable and could be a Y for a separate question.