🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Data Science & Analytics › Statistics for Data Science & Analytics › Lesson 1
TEC-DATA85-02 · Lesson 1 · 10 clock hours · theory

Data Types, Measurement Scales, and Descriptive Statistics

Objective. Students classify variables by type and measurement scale and compute measures of central tendency and spread by hand and in a spreadsheet.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

What Are Data Types and Why Do They Matter?

Before you can summarize, visualize, or model data, you need to know what kind of data you are working with. Using the wrong statistical technique on the wrong type of data produces misleading results. This lesson gives you the vocabulary and the arithmetic you need to describe any dataset accurately.

Data variables fall into two broad families: categorical (qualitative) and numerical (quantitative). Categorical variables place observations into groups or labels. Numerical variables record amounts or counts that can be measured on a number line.

The Four Measurement Scales

Stanley Smith Stevens described four levels of measurement that are now standard across statistics and data science. Each level adds a property that the level below it lacks.

Nominal scale — Labels only; no natural order. You can count how many observations fall in each category, but arithmetic such as addition or averaging is meaningless. Examples: inspection district name, sensor manufacturer brand, survey respondent's city.

Ordinal scale — Categories that have a meaningful order, but the gaps between categories are not guaranteed to be equal. A Likert-item response (Strongly Disagree / Disagree / Neutral / Agree / Strongly Agree) is ordinal. You know Agree ranks higher than Neutral, but you cannot claim the psychological distance from Neutral to Agree is identical to the distance from Disagree to Neutral. Other examples: restaurant star ratings, letter grades.

Interval scale — Ordered categories with equal, meaningful gaps, but no true zero point. The absence of a true zero means ratios are not interpretable. Temperature in Fahrenheit or Celsius is the classic example: 40 °F is not "twice as warm" as 20 °F. Sensor timestamps expressed as calendar dates are also interval.

Ratio scale — Interval properties plus a true, meaningful zero that represents the complete absence of the quantity. Ratios are now fully interpretable. Revenue in dollars, weight in kilograms, inspection scores on a 0–100 scale, and count of code violations are all ratio variables. Most numerical data you encounter in business analytics is ratio scale.

Measures of Central Tendency

Descriptive statistics summarize a dataset with a small number of values. The three measures of central tendency locate the "center" of a distribution.

Mean (arithmetic average): Add all values and divide by the count (n). The mean uses every data point, so it is sensitive to extreme values (outliers).

Median: Sort the values from smallest to largest. For an odd count, the median is the middle value. For an even count, it is the average of the two middle values. The median is resistant to outliers, which is why income distributions are usually reported with the median rather than the mean.

Mode: The value that appears most often. A dataset can have no mode, one mode, or multiple modes. Mode is the only measure of central tendency appropriate for nominal data.

Measures of Spread

Central tendency alone is incomplete. Two datasets can share the same mean yet differ dramatically in how spread out their values are.

Range: Maximum minus minimum. Simple but heavily influenced by outliers.

Variance (s²): The average of the squared deviations from the mean. For a sample, divide the sum of squared deviations by (n − 1) rather than n; this gives an unbiased estimate of the population variance.

Standard deviation (s): The square root of the variance. It is expressed in the same units as the original data and is the most commonly reported measure of spread.

Interquartile range (IQR): The difference between the 75th percentile (Q3) and the 25th percentile (Q1). Because it captures the middle 50 % of the data, it is resistant to outliers and is often paired with the median.

Accuracy and Integrity in Descriptive Reporting

A persistent real-world error is reporting the mean when the median is the more honest summary. When a distribution is strongly skewed — for example, a neighborhood where most households earn modest wages but a handful earn very high incomes — the mean is pulled toward the tail and overstates the "typical" value. Always inspect the shape of your distribution before choosing which statistic to report.

When you share descriptive statistics, also state the sample size (n), the time period the data covers, and the source. Open datasets from portals such as the NYC or Chicago open data portals are citable public records; always confirm the data dictionary so you know whether a score column is truly ratio scale or has a bounded maximum that limits its interpretation.

Working Safely with Data

Data science does not involve physical hazards in the same way a construction trade does, but professional data handling carries its own safety obligations. Always verify you are authorized to access and use a dataset before downloading it. Municipal open datasets are public by design, but datasets containing personal identifiers require careful handling under applicable privacy regulations. Never share raw data files that contain personally identifiable information (PII) via unsecured channels. Lock your workstation when you step away from it, and store project files in access-controlled locations. These practices protect the people whose data you are analyzing and protect you professionally.

Using Spreadsheet Functions

In Microsoft Excel or Google Sheets the key functions for this lesson are: `AVERAGE()`, `MEDIAN()`, `MODE.SNGL()`, `MAX()`, `MIN()`, `VAR.S()`, `STDEV.S()`, and `QUARTILE.INC()` or `QUARTILE()`. Always verify at least one result by hand to confirm you have selected the correct cell range. A common mistake is including a header row in the range, which inserts a text value and silently distorts the result.

Key terms9

Nominal scaleThe lowest level of measurement; variables are classified into named categories with no inherent order (e.g., inspection district, sensor brand).
Ordinal scaleA measurement scale in which categories have a meaningful rank order but the intervals between ranks are not necessarily equal (e.g., Likert-item responses, star ratings).
Interval scaleA scale with equally spaced units and no true zero point, so ratios between values are not meaningful (e.g., temperature in Celsius, calendar year).
Ratio scaleA scale with equally spaced units and a true zero, making ratios between values fully interpretable (e.g., revenue, count of code violations, weight).
MeanThe arithmetic average of a set of values; calculated by summing all values and dividing by the count. Sensitive to outliers.
MedianThe middle value of a dataset when values are sorted in order; resistant to outliers and preferred for skewed distributions.
Standard deviationThe square root of the sample variance; measures the average distance of data points from the mean in the original units of measurement.
Interquartile range (IQR)The difference between the 75th percentile (Q3) and the 25th percentile (Q1); describes the spread of the middle 50% of a dataset and is resistant to outliers.
VarianceThe average of the squared deviations from the mean; for a sample, the sum of squared deviations is divided by (n − 1) to produce an unbiased estimate.

Worked examples4

1. A city inspector records the following seven sanitation scores for a block of restaurants: 88, 91, 76, 95, 88, 72, 84. Calculate the mean, median, and mode.
  1. Step 1 — Mean: Sum all values: 88 + 91 + 76 + 95 + 88 + 72 + 84 = 594. Divide by n = 7: 594 ÷ 7 = 84.857, rounded to 84.9.
  2. Step 2 — Median: Sort the values in ascending order: 72, 76, 84, 88, 88, 91, 95. With n = 7 (odd), the median is the 4th value: 88.
  3. Step 3 — Mode: Identify the value that appears most often. The value 88 appears twice; all others appear once. Mode = 88.
Answer: Mean ≈ 84.9, Median = 88, Mode = 88.
2. Using the same seven sanitation scores (88, 91, 76, 95, 88, 72, 84), calculate the sample variance and sample standard deviation.
  1. Step 1 — Confirm the mean: 84.857 (use the full decimal for accuracy).
  2. Step 2 — Find each squared deviation from the mean: (88 − 84.857)² = (3.143)² = 9.878; (91 − 84.857)² = (6.143)² = 37.737; (76 − 84.857)² = (−8.857)² = 78.446; (95 − 84.857)² = (10.143)² = 102.880; (88 − 84.857)² = (3.143)² = 9.878; (72 − 84.857)² = (−12.857)² = 165.302; (84 − 84.857)² = (−0.857)² = 0.734.
  3. Step 3 — Sum the squared deviations: 9.878 + 37.737 + 78.446 + 102.880 + 9.878 + 165.302 + 0.734 = 404.855.
  4. Step 4 — Divide by (n − 1) = 6 to get the sample variance: 404.855 ÷ 6 = 67.476.
  5. Step 5 — Take the square root to get the sample standard deviation: √67.476 ≈ 8.21.
Answer: Sample variance s² ≈ 67.5; sample standard deviation s ≈ 8.21.
3. Using the sorted scores (72, 76, 84, 88, 88, 91, 95), calculate the IQR.
  1. Step 1 — Find Q1 (25th percentile). With 7 values, the lower half (excluding the median) is: 72, 76, 84. The median of this lower half is 76, so Q1 = 76.
  2. Step 2 — Find Q3 (75th percentile). The upper half (excluding the median) is: 88, 91, 95. The median of this upper half is 91, so Q3 = 91.
  3. Step 3 — Calculate IQR: Q3 − Q1 = 91 − 76 = 15.
Answer: IQR = 15.
4. A dataset of household incomes in one zip code has a mean of $95,000 and a median of $52,000. Which statistic better represents the typical household, and what does the difference suggest about the distribution?
  1. Step 1 — Compare the mean and median: the mean ($95,000) is substantially higher than the median ($52,000).
  2. Step 2 — Recall that the mean is pulled in the direction of outliers. When the mean exceeds the median by this much, it signals a right-skewed distribution with a small number of very high incomes inflating the average.
  3. Step 3 — For a right-skewed distribution, the median is the more representative measure of the typical household income because it is not distorted by the extreme high values.
Answer: The median ($52,000) better represents the typical household. The large gap between mean and median indicates a right-skewed distribution driven by a small number of very high earners.

The math in this lesson1

Learners compute mean, median, mode and spread for a data set by hand and in code.
S-ID.2
Brush up in the math halls at newSchoolWorks.com:
In class: Lecture and guided notes: nominal, ordinal, interval, ratio scales with trade examples (sensor readings, survey Likert items, revenue figures); students sort a card set of 20 variables into the four scale categories. · Spreadsheet lab: given a 200-row municipal dataset (e.g., city inspection scores), students calculate mean, median, mode, range, variance, standard deviation, and IQR using built-in functions and verify two values by hand calculation. · Small-group discussion: compare three real headlines that misuse averages (e.g., mean income vs. median income); each group writes a one-paragraph correction and presents to the class.
Materials: Microsoft Excel or Google Sheets, municipal open-data CSV (e.g., NYC or Chicago open data portal), whiteboard, scientific calculators, NIST/SEMATECH e-Handbook of Statistical Methods (online reference)
Check: Exit quiz of 10 items: students must correctly classify 5 variables by scale and compute mean, median, and standard deviation for a small data set; pass mark 70%.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Data types and measurement — CompTIA Data+, Google Data Analytics
1. A dataset records customer satisfaction as 'Poor,' 'Fair,' 'Good,' or 'Excellent.' Which measurement scale does this variable use?
Data types and measurement — CompTIA Data+, IBM Data Science Professional
2. Which of the following variables is measured on a ratio scale?
Descriptive statistics — CompTIA Data+, Google Data Analytics
3. A sample of five daily sensor readings is: 10, 14, 14, 18, 24. What is the median?
Statistical interpretation — Google Data Analytics, IBM Data Science Professional
4. A news headline states 'Average teacher salary in the district is $78,000,' but a few administrators earning more than $200,000 are included in the calculation. Which statistic would give a more accurate picture of what a typical teacher earns?
Descriptive statistics — CompTIA Data+, IBM Data Science Professional
5. For a sample dataset, sample variance is calculated by dividing the sum of squared deviations from the mean by which value?
Data types and measurement — CompTIA Data+, Google Data Analytics
6. Which measure of central tendency is the ONLY one appropriate for a nominal variable such as the make of vehicle involved in traffic incidents?
Descriptive statistics — CompTIA Data+, Microsoft PL-300
7. A 200-row dataset of city inspection scores has Q1 = 68 and Q3 = 84. What is the IQR, and what does it represent?
Data governance and ethics — IBM Data Science Professional, CompTIA Data+
8. A data analyst downloads a CSV from a public city portal and notices it contains residents' names and home addresses alongside inspection results. What is the MOST important action before sharing this file with teammates via a public folder?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.