Skip to main content
Statistics LibreTexts

1.4.2: Qualitative versus Quantitative Variables

  • Page ID
    22000
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Some researchers call the first two scales of measurement (Ratio Scale and Interval Scale) “quantitative” because they measure things numerically, and call the last scale of measurement (Nominal Scale) “qualitative” because you count the number of things that have that quality. The MooMooMath YouTube series did a short segment on these two types of variables. [It turns out that there are a LOT of videos online about statistics! Use them any time you are confused! My only caution is that some videos use slightly different formulas than in this textbook, and some use software that will not be discussed here, so make sure that the information in the video matches what your professor is showing you.] Ordinal scales are sort of in-between these two types, but are more similar in statistical analyses to qualitative variables.

    Quantitative Variables

    Quantitative variables are measured with some sort of scale that uses numbers. For example, height can be measures in the number of inches for everyone. Halfway between 1 inch and two inches has a meaning. Anything that you can measure with a number and finding a mean makes sense is a quantitative variable. If a decimal makes sense, then the variable is quantitative.

    Quantitative variables are usually continuous.

    Example \(\PageIndex{1}\)

    The data are the weights of backpacks with books in them. You sample the same five students. The weights (in pounds) of their backpacks are 6.2, 7, 6.8, 9.1, 4.3. Notice that backpacks carrying three books can have different weights. Is the weight of the backpacks a quantitative variable?

    Solution

    Yes, the weights are quantitative data because weight is a numerical variable that is measured.

    Qualitative Variables

    Qualitative variables, which are the nominal Scale of Measurement, have different values to represent different categories or kinds. Qualitative/nominal variables name or label different categories of objects. Something is either an apple or an orange, halfway between an apple and an orange doesn’t mean anything. Qualitative variables are counted, and the counts are used in statistical analyses.The name or label of a qualitative variable can be a number, but the number doesn’t mean anything.

    Exercise \(\PageIndex{1}\)

    Let’s say I collected data and coded it:

    • Women = 1
    • Men = 2,
    • Non-binary = 3

    Does it make any sense to add these numbers? To find the “mean” of gender?

    Answer

    No. An average gender of 1.75 (or whatever) doesn't tell us much since gender is a qualitative variable (nominal scale of measurement), so you can only count it.

    Qualitative variables are discrete.

    Deciding: Quant or Qual?

    Use the following to practice identifying whether variables are quantitative (measured with numbers) or qualitative (categories).

    Exercise \(\PageIndex{2}\)
    1. City
    2. Gender
    3. Weight
    4. Type of degree
    5. College major
    6. Percent correct on Exam 1.
    7. Score on a depression scale (between 0 and 10)
    8. How long it takes you to blink after a puff of air hits your eye.
    9. What is another example of a quantitative variable?
    10. What is another example of a qualitative variable?
    Answer
    1. City: Qualitative (named, not measured)
    2. Gender: Qualitative (named, not measured)
    3. Weight: Quantitative (number measured in ounces, pounds, tons, etc.; decimal points make sense)
    4. Type of degree: Qualitative (named, not measured)
    5. College major: Qualitative (named, not measured)
    6. Percent correct on Exam 1: Quantitative (number measured in percentage points; decimal points make sense)
    7. Score on a depression scale (between 0 and 10): Quantitative (number measured by the scale; decimal points make sense)
    8. How long it takes you to blink after a puff of air hits your eye: Quantitative (number measured in milliseconds; decimal points make sense)
    9. What is another example of a quantitative variable? (Your answer should be something that was measured, not counted, and in which decimal points make sense.)
    10. What is another example of a qualitative variable? (Your answer should be something that is a category or name.)

    Okay, that probably makes it seem like it's easy to know whether your variable is qualitative or quantitative.

    Exercise \(\PageIndex{3}\) shows that variables can be defined in different ways.

    Exercise \(\PageIndex{3}\)

    You go to the supermarket and purchase three cans of soup (19 ounces) tomato bisque, 14.1 ounces lentil, and 19 ounces Italian wedding), two packages of nuts (walnuts and peanuts), four different kinds of vegetable (broccoli, cauliflower, spinach, and carrots), and two desserts (16 ounces Cherry Garcia ice cream and two pounds (32 ounces chocolate chip cookies).

    Name data sets that are quantitative discrete, quantitative continuous, and qualitative.

    Solution

    One Possible Solution:

    • The three cans of soup, two packages of nuts, four kinds of vegetables and two desserts are quantitative discrete data because you count them.
    • The weights of the soups (19 ounces, 14.1 ounces, 19 ounces) are quantitative continuous data because you measure weights as precisely as possible.
    • Types of soups, nuts, vegetables and desserts are qualitative data because they are categorical.

    Try to identify additional data sets in this example.

    As you'll learn in the next chapter, there are types of graphs that are designed for qualitative variables and other graphs that are most appropriate for quantitative variables. Before you learn about that, why don't you check out these graphs to see if you can figure out whether the variable is qualitative or quantitative.

    Exercise \(\PageIndex{6}\)

    A statistics professor collects information about the classification of her students as freshmen, sophomores, juniors, or seniors. The data she collects are summarized in the pie chart Figure \(\PageIndex{1}\). What type of data does this graph show?

    Pie chart with mostly (maybe two-thirds) in one color, which seems to correspond to freshman.
    Figure \(\PageIndex{1}\)- Statistics Students (CC-BY by Barbara Illowsky & Susan Dean (De Anza College) from OpenStax)
    Answer

    This pie chart shows the students in each year, which is qualitative data.

    Exercise \(\PageIndex{7}\)

    The Registrar keeps records of the number of credit hours students complete each semester. The data she collects are summarized in the histogram.

    Histogram showing a mostly symmetrical frequency distribution of credit hours.
    Figure \(\PageIndex{2}\)- Credit Hours (CC-BY by Barbara Illowsky & Susan Dean (De Anza College) from OpenStax)

    What type of data does this graph show?

    Answer

    A histogram is used to display quantitative data: the numbers of credit hours completed.

    Final Word on Scales of Measurement

    The type of scale determines what specific statistical analysis you should use. I'm going to share a flow chart now that shows how knowing the type and number of variables (IVs and levels, and DVs) and whether they are related (dependent) or not related (independent) is how you choose which statistical analysis to choose: Decision Tree PDF I know, that might be a little overwhelming right now! Dr. MO isn't sharing this to scare you, but to show how important knowing the type of variable will be when analyzing data statistically. Plus, it's easier to learn new material if you can connect it to something that you already know. You might want to print out the Decision Tree, then write notes on it when you learn about each type of analysis. That way, you can "hang" your new knowledge on the "tree" that you already have.

    In good news, by the end of this book, you'll be familiar with all of these, and know how to compute most of them!

    In bad news, statistical software will run what you ask, regardless of the measurement scale of the variable. If it’s a number, you can analyze it. When this happens with qualitative variables, the results are junk. If you say apple=1 and orange=2, it will find the average of an appleorange. Since that's not a thing, you're answer wouldn't mean anything. More reason to understand the different kinds of variables!


    This page titled 1.4.2: Qualitative versus Quantitative Variables is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Michelle Oja.