- Question it answers
- What kind of data do I have, and what can I do with it?
- Data needed
- A data sheet or data collection plan
- Key output
- A type for each variable, and the methods that fit
- Scales
- Nominal, ordinal, interval, ratio
- Families
- Categorical or numerical; discrete or continuous
- Excel
- ISNUMBER, COUNTIF, PivotTable, Text to Columns
- Minitab
- Data > Change Data Type; Stat > Tables > Tally
- Why it matters
- The wrong method for the data type gives wrong answers
The Idea in Plain Language
Before you choose a chart, a test, or a control chart, ask one question: what kind of data is this? The answer decides almost everything that follows. You can average weights, but you cannot average the colors of cars. You can count defects per unit, but a count behaves differently from a measurement.
The Four Scales of Measurement
| Scale | What it tells you | Example | Fair summaries | Not meaningful |
|---|---|---|---|---|
| Nominal | Which group | Supplier, defect type, shift, machine | Counts, percentages, mode | Average, order |
| Ordinal | Which group, and the order | Survey rating 1 to 5, severity High/Med/Low | Median, percentiles, counts per level | Gaps between levels, a plain average |
| Interval | Order and equal gaps, no true zero | Temperature in °C, calendar date | Mean, standard deviation | Ratios (40°C is not twice as hot as 20°C) |
| Ratio | Order, equal gaps, and a true zero | Weight, time, length, pressure, money | Everything above, plus ratios and the coefficient of variation | Nothing: all arithmetic is fair |
In practice most process data are ratio (cycle time, weight) or nominal and ordinal (defect type, rating). Interval data are rare outside temperature and dates. The useful split for choosing methods is categorical versus numerical, and within numerical, discrete counts versus continuous measurements.
Why the Type Decides the Method
| Data type | Typical question | Summary | Chart | Test or tool |
|---|---|---|---|---|
| Continuous, one group | What is the average and the spread? | Mean, standard deviation | Histogram, individuals chart | t-test, interval for the mean |
| Continuous, several groups | Do the groups differ? | Mean and SD by group | Box plot, dot plot | ANOVA, t-test |
| Continuous, two variables | Does Y move with X? | Correlation | Scatter plot | Regression |
| Discrete counts of defects | Is the defect rate changing? | Defects per unit | c or u chart, Pareto | Poisson methods |
| Pass/fail | Is the proportion different? | Proportion defective | p chart, bar chart | Test for proportions |
| Two categories (nominal) | Are they associated? | Counts in a table | Stacked bar | Chi-square |
| Ordinal ratings | Do ratings differ between groups? | Median, counts per level | Bar chart of counts | Mann-Whitney, Kruskal-Wallis |
The method selector on the Stat Dojo home page follows this same logic and gives the Excel and Minitab route for each choice.
Worked Example 1: The Trap of Averaging Ratings
Twenty operators rated a new work instruction from 1 (poor) to 5 (excellent). The ratings are ordinal: a 4 is better than a 3, but nobody can say the gap from 3 to 4 equals the gap from 1 to 2.
| Rating | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| Number of operators | 2 | 2 | 2 | 8 | 6 |
- Mean = 3.70. It treats the ratings as if the gaps were equal.
- Median = 4.0, the middle rating. It uses only the order, so it is safe for ordinal data.
- Mode = 4, the most common answer (8 of 20).
- Top-two-box = 70% of operators gave a 4 or 5. A share of operators is easy to explain and honest for ordinal data.
Worked Example 2: Measuring Beats Sorting
Two lots of 25 shafts each were checked against an upper diameter limit of 10.0 mm. A go/no-go gauge says 25 of 25 pass in Lot A and 25 of 25 pass in Lot B. As attribute data, the lots look identical.
- Lot A: mean 9.50 mm, SD 0.102 mm, largest value 9.71.
- Lot B: mean 9.85 mm, SD 0.059 mm, largest value 9.95.
Run It in Excel and Minitab
ExcelStep by step
- Check the type of each column. Numbers are right-aligned by default; text is left-aligned. returns TRUE for real numbers, which catches numbers stored as text.
- Fix numbers stored as text with , or .
- Count categories with , or build a with the category in Rows and Count in Values.
- Keep ordinal codes consistent with a list: .
- Use the median for ordinal data: .
MinitabStep by step
- Minitab marks the type in the column header: a column holding text shows -T after its name, a date column -D, and a numeric column nothing.
- Change the type with or . Use to replace codes with labels.
- Count categories with and tick Counts and Percents.
- Declare ordered text levels (Low, Medium, High) with from the column’s right-click menu, so charts list them in order.
- Summaries by type: for numeric data, Tally for categorical data.
Tally for Discrete Variables: Rating
Rating Count Percent
1 2 10.00
2 2 10.00
3 2 10.00
4 8 40.00
5 6 30.00
N=20Reading and Reporting
- State the type of each variable in the data plan before you collect anything.
- Choose the summary that fits the type: counts and percentages for categories, median for ordinal, mean and SD for continuous.
- Do not recode data downward (a measurement into pass/fail) unless the decision truly is pass/fail. Keep the measurement.
- Document the gauge or definition for attribute data so two people classify the same way.
Common Mistakes
| Mistake | Why it misleads | Better |
|---|---|---|
| Averaging nominal codes (1 = Plant A, 2 = Plant B) | The numbers are labels; the average is meaningless | Count and compare percentages |
| Averaging a 1 to 5 rating without comment | The gaps between levels are not equal | Report counts, median, and top-two-box |
| Turning a measurement into pass/fail for analysis | Throws away most of the information | Analyze the measurement; report pass/fail separately |
| Treating counts as continuous | Small counts are skewed and cannot go below zero | Use Poisson methods, or a c or u chart |
| Numbers stored as text | Sorts and summaries silently fail | Convert the type before analysis |
| No defined classification rule for attribute data | Different people judge differently | Write an operational definition and test it with an attribute agreement study |
Try It Yourself
Classify each variable: (a) the number of scratches on a panel; (b) the color of a wire; (c) the satisfaction score from 1 to 7; (d) the time to resolve a ticket; (e) pass or fail on a leak test.
Show the answer
(a) Discrete numerical (a count). (b) Nominal. (c) Ordinal. (d) Continuous (ratio). (e) Categorical with two levels (nominal), often called binary or attribute data.
A c chart suits (a), a Pareto chart suits (b), a bar chart of counts suits (c), an individuals chart and histogram suit (d), and a p chart suits (e).
Data Types and Scales: Frequently Asked Questions
What is the difference between discrete and continuous data?
Discrete data are counts that can only take certain values, such as 0, 1, 2 defects. Continuous data can take any value in a range, limited only by how finely you can measure, such as weight or time.
Is a 1 to 5 rating scale continuous?
No. It is ordinal. The levels are ordered, but the gaps are not necessarily equal. Many practitioners average the ratings anyway, which is often acceptable for large samples, but the median and the share of top ratings are safer.
What is attribute data?
Attribute data are categories or counts, such as pass/fail or number of defects. Variable data are measurements. Control charts, capability studies, and tests differ between the two.
Why does the data type matter so much?
Each statistical method assumes a kind of data. A t-test needs numerical measurements, a chi-square test needs counts in categories, and a control chart is chosen by whether you measure or count.
Can I convert continuous data to categories?
You can, by grouping measurements into bands, but you lose information and power. Do it only to communicate a result, not to analyze.
Sources and Further Reading
- S. S. Stevens, “On the Theory of Scales of Measurement,” Science, 1946.
- NIST/SEMATECH, e-Handbook of Statistical Methods, Exploratory Data Analysis (itl.nist.gov/div898/handbook).
- David S. Moore, George P. McCabe, and Bruce A. Craig, Introduction to the Practice of Statistics, Freeman.
- Minitab Support, “Data types in Minitab” (support.minitab.com).
This content is educational. Worked examples use made-up data. Menu names for Minitab follow recent versions of Minitab Statistical Software and can differ slightly in older releases; Excel steps use Microsoft 365 and the Analysis ToolPak.