BUSINESS ANALYTICS • FOUNDATIONS OF BUSINESS ANALYTICS

Data Types & Summaries — Identify data types (categorical, numeric, time series) and appropriate summaries

Choosing the right summary statistic begins with correctly classifying the data you are analyzing.

Historical Context & Motivation

Long before the rise of modern analytics platforms, organizations faced a fundamental challenge: how to distill massive volumes of raw observations into actionable intelligence. The problem was never simply about collecting data—merchants in ancient Mesopotamia kept clay-tablet inventories, and Renaissance-era Italian bankers maintained double-entry ledgers—but about understanding what kind of information each datum represented and what operations could legitimately be performed on it. A misclassification—treating a product category code as if it were a number to be averaged, for instance—produces results that are arithmetically valid yet managerially meaningless. The intellectual history of data classification and summary statistics therefore tracks the broader evolution of statistics as a discipline, from government census counts to the real-time dashboards that drive contemporary business decisions.

1749
Descriptive Statistics Coined
Gottfried Achenwall used the term Statistik to describe the systematic collection and summary of state data—population counts, trade volumes, and agricultural output—laying the conceptual groundwork for distinguishing between types of data.
1894
Karl Pearson's Standard Deviation
Pearson formalized the standard deviation as a measure of numeric spread, establishing that different data types demand different summary measures. His work underscored that measures of central tendency alone are insufficient without accompanying dispersion metrics.
1946
Stevens' Scales of Measurement
Stanley Smith Stevens published his seminal typology of nominal, ordinal, interval, and ratio scales, providing a rigorous framework for determining which statistical operations are permissible for each data type.
1970s
Rise of Time Series Analysis in Business
Box and Jenkins popularized ARIMA modeling, transforming how businesses analyzed sequential, time-stamped data. Forecasting revenue, inventory demand, and stock prices became standard practice in corporate planning departments.
2010s
Big Data and Automated Classification
Cloud-based platforms such as Tableau, Power BI, and Python's pandas library automated data type detection, yet analysts still must verify classifications and choose appropriate summaries to avoid misleading dashboards.

The central question this lesson addresses is deceptively simple: Given a column of business data, how do you determine its type, and what summary measures convey the most useful information? Answering this correctly is the prerequisite for every downstream analytical task—from building a regression model to designing a KPI dashboard.

Core Principles & Definitions

Before any analysis begins, every variable in a dataset must be assigned to one of three broad families: categorical, numeric, or time series. Each family admits a distinct set of summary operations; applying the wrong operation yields nonsensical output. A careful analyst treats data-type identification not as a bureaucratic checkbox but as the first strategic decision in any project—one that shapes visualization choices, statistical tests, and even the business narrative that ultimately reaches stakeholders.

1

Categorical Data

Values represent labels or group memberships with no inherent numeric meaning. Sub-types include nominal (no ordering, e.g., department names) and ordinal (ranked order, e.g., customer satisfaction ratings of Low / Medium / High). Summarize with frequencies, proportions, and the mode.
2

Numeric Data

Values represent measurable quantities. Sub-types include discrete (countable integers, e.g., number of support tickets) and continuous (infinite precision, e.g., quarterly revenue in dollars). Summarize with mean, median, standard deviation, and percentiles.
3

Time Series Data

A sequence of numeric or categorical observations indexed by time. Examples include daily stock prices, monthly sales figures, and weekly web traffic. Unique summaries include trend, seasonality, and moving averages.
4

Matching Summaries to Types

The golden rule: the permissible summary depends on the scale of measurement. Computing a mean on zip codes (nominal) is meaningless, while reporting only the mode for revenue data discards most of the information. Always ask, 'Does this mathematical operation preserve the meaning of the original variable?'
KEY TAKEAWAY
Think of data types like kitchen tools. Categorical data is like a set of labeled bins—you can count what's in each bin and identify the fullest one (the mode), but averaging the labels makes no sense. Numeric data is like ingredients measured on a scale—you can average, sum, and compute standard deviations. Time series data is like a recipe timeline—the order matters as much as the quantity, and you need to watch for seasonal patterns the way a chef tracks ingredient availability by season.

Visual Explanation — The Data Type Taxonomy

The taxonomy shows how business data branches into three primary families—categorical, numeric, and time series—each mapping to a distinct set of appropriate summary statistics shown in the lower panels.

The diagram above illustrates the fundamental decision tree every analyst faces when encountering a new dataset. At the top level, you determine whether each variable is categorical, numeric, or time-indexed. Categorical variables split further into nominal (unordered labels) and ordinal (ranked labels), while numeric variables divide into discrete counts and continuous measurements. Time series data occupies its own branch because the temporal ordering introduces dependencies between observations that standard cross-sectional summaries cannot capture. The lower panel links each data type to its permissible summaries—a mapping you will apply in every analytics project.

Mathematical Framework for Summary Statistics

Each family of data types has a formal mathematical framework for its summary statistics. Understanding the equations—not merely the button to press in Excel—enables you to reason about when a summary is appropriate, how it behaves under outliers, and what it conceals. The following equations form the quantitative backbone of descriptive analytics in business.

Numeric Data Summaries

SAMPLE MEAN
x̄ = (1/n) × Σᵢ₌₁ⁿ xᵢ
Where is the sample mean, n is the number of observations, and xᵢ is the i-th observation. The mean is sensitive to outliers, making it less reliable when distributions are heavily skewed—a common occurrence in revenue and salary data.
SAMPLE STANDARD DEVIATION
s = √[ (1/(n−1)) × Σᵢ₌₁ⁿ (xᵢ − x̄)² ]
Where s quantifies the average distance of each observation from the mean. Division by (n − 1) rather than n applies Bessel's correction, yielding an unbiased estimate of the population variance when working with a sample.

Categorical Data Summaries

RELATIVE FREQUENCY (PROPORTION)
pⱼ = fⱼ / n
Where pⱼ is the proportion for category j, fⱼ is the frequency count of category j, and n is the total number of observations. Multiplying by 100 gives the percentage share of each category.

Time Series Summaries

SIMPLE MOVING AVERAGE (SMA)
SMAₜ = (1/k) × Σⱼ₌₀ᵏ⁻¹ xₜ₋ⱼ
Where SMAₜ is the moving average at time t, and k is the window size (number of periods averaged). A 3-month SMA of sales, for example, smooths out monthly volatility and reveals the underlying trend.

Detailed Classification & Decision Guide

In practice, identifying data types is not always straightforward. ZIP codes look numeric but are actually nominal; Likert-scale survey responses (1 = Strongly Disagree through 5 = Strongly Agree) are ordinal, not interval; and a column labeled 'Date' may serve as either a simple identifier or the index of a genuine time series depending on whether the analyst intends to model temporal dependencies. The following decision guide and comparison table provide a systematic approach to resolving these ambiguities in real business datasets.

Follow this decision flowchart from top to bottom for any variable: determine whether arithmetic is meaningful, check for ordering or temporal indexing, and arrive at the correct classification. The 'Common Traps' box at the bottom highlights frequently misclassified variables.
Common misclassification traps in business datasets
Variable ExampleLooks LikeActually IsWhy
ZIP Code (90210)NumericNominalAveraging ZIP codes is meaningless; they are geographic labels.
Survey Rating (1–5)NumericOrdinalThe intervals between 1→2 and 4→5 are not guaranteed to be equal.
Daily Revenue ($)NumericTime SeriesEach observation is time-indexed; temporal dependencies (trends, seasonality) exist.
Employee ID (EMP-0042)CategoricalNominalIDs are unique identifiers, not categories to group or rank.
Quarterly Units SoldNumericDiscrete & Time SeriesCounts are discrete integers, and the quarterly cadence creates temporal structure.

Worked Example — Retail Store Dataset

Consider a small dataset from a retail chain. Each row represents a single transaction with the following columns: Store_Region (Northeast, Southeast, West), Transaction_Amount ($), Customer_Rating (1–5 stars), Number_of_Items (integer), and Month (Jan 2024–Jun 2024). We need to classify each variable and compute the appropriate summary.

Classifying & Summarizing a Retail Dataset
1
Step 1 — Classify Each VariableApply the decision flowchart. Store_Region: Cannot perform arithmetic → no natural order → Nominal. Transaction_Amount: Arithmetic meaningful, not time-indexed per se → Continuous Numeric. Customer_Rating: Numbers represent ranks, intervals unequal → Ordinal. Number_of_Items: Countable integers → Discrete Numeric. Month: Sequential time index → use to aggregate Transaction_Amount into a Time Series.
2
Step 2 — Summarize Store_Region (Nominal)Count frequencies: Northeast = 120 transactions, Southeast = 95, West = 85. Total n = 300. Proportions: Northeast = 120/300 = 0.40 (40%), Southeast ≈ 0.317 (31.7%), West ≈ 0.283 (28.3%). Mode = Northeast.
Mode = Northeast; largest share at 40%
3
Step 3 — Summarize Transaction_Amount (Continuous Numeric)Suppose the 300 transactions yield Σxᵢ = $21,600. Mean = $21,600/300 = $72.00. After computing deviations, suppose s = $18.50. Median = $67.00 (indicating right skew from a few large purchases). Minimum = $8.50, Maximum = $245.00, IQR = Q₃ − Q₁ = $85.00 − $55.00 = $30.00.
Mean = $72.00; Median = $67.00; s = $18.50; IQR = $30.00
4
Step 4 — Summarize Customer_Rating (Ordinal)Because intervals between rating levels are not guaranteed equal, use the median rather than the mean as the measure of central tendency. Suppose the median rating is 4 and the mode is also 4. Report frequencies: 1-star (10), 2-star (25), 3-star (60), 4-star (130), 5-star (75). The distribution is left-skewed toward higher satisfaction.
Median Rating = 4 stars; Mode = 4 stars
5
Step 5 — Summarize Monthly Revenue (Time Series)Aggregate Transaction_Amount by Month: Jan = $3,200, Feb = $3,050, Mar = $3,500, Apr = $3,700, May = $4,100, Jun = $4,050. Compute a 3-month SMA for April: SMA₄ = (3,200 + 3,050 + 3,500)/3 = $3,250.00. The upward trend from Jan to May suggests growing sales, though June's slight dip may indicate early seasonality or a one-time fluctuation.
3-month SMA (April) = $3,250.00; Overall trend = positive

Strengths & Limitations of Summary Measures

No single summary statistic tells the whole story. The choice of summary involves trade-offs between simplicity and completeness, robustness and sensitivity to outliers, and ease of communication versus statistical rigor. The table below maps each major summary to its strengths and limitations so you can make informed selections when building dashboards and reports for stakeholders.

Strengths and limitations of key summary measures
Summary MeasureStrengthsLimitations
MeanUses all data points; mathematically tractable; foundational for regression and other models.Highly sensitive to outliers; misleading for skewed distributions (e.g., income data).
MedianRobust to outliers; appropriate for ordinal data; better represents 'typical' observation in skewed data.Ignores magnitude of extreme values; harder to use in further algebraic analysis.
ModeOnly measure of central tendency for nominal data; easy to interpret; reveals most common outcome.May not be unique (bimodal distributions); ignores all other observations.
Standard DeviationQuantifies spread in same units as data; essential for risk analysis, confidence intervals, and process control.Sensitive to outliers; assumes roughly symmetric distribution for meaningful interpretation.
Moving AverageSmooths noise in time series; reveals underlying trend; intuitive for managers.Lags behind actual data; choice of window size is subjective; cannot capture sudden shifts quickly.
KEY TAKEAWAY
Reporting a single summary is like describing a city's climate with only the average annual temperature—it might say 70°F, but that ignores whether the city experiences mild days year-round or swings between 30°F winters and 110°F summers. Always pair a measure of center (mean or median) with a measure of spread (standard deviation or IQR) for numeric data, and always report the full frequency distribution—not just the mode—for categorical data.

Connection to Advanced Analytics

Data type classification is not merely a descriptive exercise; it directly shapes every advanced analytical method you will encounter. The type of your dependent variable determines whether you build a linear regression (numeric outcome), a logistic regression (binary categorical outcome), or a multinomial model (multi-class categorical outcome). Similarly, time series data requires specialized techniques such as exponential smoothing, ARIMA, or Prophet rather than cross-sectional methods. The foundational classification skills you build here are the prerequisite for selecting the right model architecture later in the analytics pipeline.

From foundations to advanced analytics
Foundational ConceptAdvanced ExtensionBusiness Application
Nominal classificationChi-square tests; dummy variable encoding for regressionA/B test analysis; market segmentation
Ordinal rankingOrdinal logistic regression; Spearman correlationCustomer satisfaction modeling; NPS analysis
Numeric mean and std. dev.Hypothesis testing (t-tests, ANOVA); linear regressionRevenue forecasting; quality control (Six Sigma)
Moving averages & trendARIMA; exponential smoothing; seasonal decompositionDemand planning; financial forecasting
Frequency distributionsProbability distributions; Bayesian inferenceRisk assessment; insurance pricing

As you progress through the business analytics curriculum, you will revisit the classification framework from this lesson repeatedly. Machine learning algorithms require explicit data type specification—encoding categorical predictors as dummy variables, scaling numeric features, and structuring time-stamped observations into lagged windows. The rigor you develop now in distinguishing a nominal variable from an ordinal one, or recognizing when a numeric column actually represents a time series, will prevent costly modeling errors downstream.

Practice Problems

PROBLEM 1CONCEPTUAL
A marketing analyst wants to summarize the 'Product Category' column in a sales database (values: Electronics, Apparel, Home Goods, Grocery). She proposes computing the mean of the categories. Explain why this is incorrect, identify the correct data type, and state which summary measures would be appropriate.
PROBLEM 2BASIC CALCULATION
A small business records the following daily transaction amounts over five days: $120, $85, $95, $200, $100. Compute the sample mean and sample standard deviation. Round to two decimal places.
PROBLEM 3INTERMEDIATE
A dataset contains these columns: Customer_ID, Age, Gender, Annual_Income, Satisfaction_Score (1–10 Likert scale), and Signup_Date. Classify each variable by data type (nominal, ordinal, discrete numeric, continuous numeric, or time series) and justify your classification. Then state which summary measure(s) you would report for each.
PROBLEM 4APPLIED
A supply chain manager receives monthly warehouse shipment volumes (in pallets) for the past 12 months: 340, 360, 310, 380, 420, 450, 430, 470, 500, 480, 510, 530. Compute the 3-month simple moving average for months 4 through 12 and describe the trend. Should the manager use the overall mean as a forecast for month 13? Why or why not?
PROBLEM 5CRITICAL THINKING
A consultant presents a dashboard to the CEO showing: (1) the average customer satisfaction score is 4.2, (2) the mean annual revenue per store is $1.8M, and (3) the most common product defect type is 'Cosmetic.' Critically evaluate each summary. For which metrics might the chosen summary be misleading, and what alternative or additional summaries would you recommend? Discuss at least one scenario for each where the summary obscures an important business insight.

Lesson Summary

Every analytics project begins with a classification decision. Categorical data (nominal and ordinal) represents labels and ranks and should be summarized with frequency counts, proportions, and the mode; for ordinal variables, the median is also appropriate. Numeric data (discrete and continuous) supports the full arsenal of arithmetic summaries—mean, median, standard deviation, IQR, and percentiles. Time series data requires order-aware summaries such as trend analysis, seasonality decomposition, and moving averages.

The golden rule is to match the summary to the data type: never compute a mean on nominal labels, never ignore temporal structure in sequential data, and always pair a measure of center with a measure of spread for numeric variables. Watch for common traps—ZIP codes masquerading as numbers, Likert scales treated as interval data, and cross-sectional means applied to trending time series. Mastering this foundational classification step ensures that every downstream model, dashboard, and business narrative rests on a statistically sound foundation.

Varsity Tutors • Business Analytics • Data Types & Summaries