01 / 20

Variable Types
in Business

Learn to distinguish categorical and quantitative variables: the foundation of every business data analysis.

Business Statistics

What Is a Variable?

In statistics, a variable is any characteristic, number, or quantity that can be measured or counted. Every column in a business spreadsheet represents a variable: customer name, revenue, product category, satisfaction rating, and more.

The Two Major Types

Categorical
Describes a quality or label. Values are group names: "Retail," "Male," "Visa."
Quantitative
Describes a measurable amount. Values are numbers you can add or average: \( $5{,}200 \), \( 42 \) units.

Variable Taxonomy at a Glance

Variables Categorical Quantitative Nominal Ordinal Discrete Continuous Industry, Gender Rating (1-5 stars) # of employees Revenue ($) No natural order Has a rank order Countable integers Any value in range

Categorical Variables Explained

A categorical variable places each observation into a group or category. The values are labels, not numbers you can add up.

Nominal
Categories with no natural order: payment method (Cash, Card, Mobile), department (HR, Sales, IT).
Ordinal
Categories with a meaningful rank: customer satisfaction (Low, Medium, High), employee tier (Junior, Senior, Lead).

Quantitative Variables Explained

A quantitative variable records a numerical measurement where arithmetic operations (mean, sum, difference) make sense.

Discrete
Countable whole numbers: number of stores (\( n = 12 \)), defects per batch (\( n = 3 \)).
Continuous
Can take any value in a range: revenue (\( $48{,}312.57 \)), weight (\( 2.73\text{ kg} \)), time (\( 4.5\text{ hrs} \)).

The Classification Rule

Is the value a number? Yes No Does averaging make sense? Categorical Yes Quantitative No Categorical Revenue, Units Sold ZIP codes, ID numbers Industry, Color, Status

Categorical vs Quantitative: Side by Side

Categorical Quantitative
Values Labels / Groups Numbers / Amounts
Averaging ✕ No meaning ✓ Meaningful
Sub-types Nominal, Ordinal Discrete, Continuous
Chart types Bar chart, Pie chart Histogram, Scatter plot
Business example Product category Quarterly sales (\( $ \))
Summary stat Mode, frequency Mean (\( \bar{x} \)), SD (\( s \))

Why Classification Matters

1
Choosing the right chart: Bar charts for categorical data, histograms for quantitative data. Using the wrong chart misleads stakeholders.
2
Selecting valid statistics: You can compute a mean \( \bar{x} \) for revenue but not for payment method. The mode works for both.
3
Running correct analyses: Regression requires quantitative outcomes; chi-square tests require categorical data.
4
Avoiding garbage-in, garbage-out: Feeding ZIP codes into a regression model as numbers produces nonsense predictions.

How to Classify a Variable

1
Read the variable name and ask: what does this column record?
2
Look at sample values. Are they words/labels or numbers?
3
Apply the averaging test: Would \( \bar{x} \) of these values make sense?
4
Determine the sub-type. Categorical: nominal or ordinal? Quantitative: discrete or continuous?
5
Verify with context. A number-coded variable (1 = Male, 2 = Female) is still categorical.

Example 1: Online Retailer

Order ID Product Price ($) Qty Shipping 1001 Laptop 899.99 1 Express 1002 Headphones 59.99 2 Standard 1003 Mouse 24.50 3 Express

Example 2: Employee Survey

Department
Categorical (nominal): HR, Engineering, Marketing: no inherent order.
Job Satisfaction
Categorical (ordinal): 1-star to 5-star. Ranks exist, but gaps are unequal.
Annual Salary
Quantitative (continuous): \( $72{,}350.00 \). Averaging is meaningful.

Example 3: Market Research

A coffee chain surveys customers. Classify each variable:

1
Preferred drink (Latte, Espresso, Tea): Categorical (nominal): no natural ranking among drinks.
2
Visit frequency (Daily, Weekly, Monthly): Categorical (ordinal): there is a clear rank order.
3
Amount spent (\( $4.75 \)): Quantitative (continuous): any dollar value is possible.
4
Number of visits this month (\( 8 \)): Quantitative (discrete): countable whole-number visits.

Matching Variables to Charts

Categorical Bar Chart Pie Chart Summary: Mode, Frequency Test: Chi-Square Quantitative Histogram Scatter Plot Summary: Mean, Median, SD Test: t-test, Regression

Common Mistakes

✕ Numbers = Quantitative
ZIP codes, phone numbers, and ID numbers are categorical despite being digits. Averaging ZIP code 90210 and 10001 gives 50105.5: meaningless.
✕ Ordinal = Quantitative
A 5-star rating scale looks numeric, but the "distance" between stars is not guaranteed to be equal. It is ordinal categorical.
✕ Wrong Chart Choice
Using a histogram for categorical data or a pie chart for continuous data produces misleading visuals for business decisions.

Quick Reference Summary

Sub-type Definition Business Example Best Chart
Nominal Labels, no order Industry, Region Bar chart
Ordinal Labels with rank Satisfaction rating Bar chart
Discrete Countable numbers Number of employees Histogram
Continuous Measurable amounts Revenue (\( $ \)) Histogram / Box plot

Question 1 of 5

A company records each customer's preferred payment method (Cash, Credit Card, Mobile Pay). What type of variable is this?

Question 2 of 5

A store tracks the number of items returned per day. Which variable type best describes this?

Question 3 of 5

An analyst records each company's stock ticker symbol (AAPL, GOOG, TSLA). A colleague argues this is quantitative because it can be coded as numbers. Who is correct?

Question 4 of 5

A hotel asks guests to rate cleanliness as Poor, Fair, Good, Very Good, or Excellent. What is the variable type?

Question 5 of 5

Which of the following is the best chart to display the distribution of annual revenue across 200 small businesses?