Week 1: Types of Data & Scales of Measurement
3787 words
19 min read
2026-09-12T00:00:00.000Z
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
Data classification, categorical vs numerical variables, scales of measurement (nominal, ordinal, interval, ratio), and observational studies. # Statistics for Data Science I — Week 1: Types of Data & Scales of Measurement IITM’s Week 1 introduces **types of data, descriptive and inferential statistics, and scales o...

Statistics for Data Science I — Week 1: Types of Data & Scales of Measurement
IITM’s Week 1 introduces types of data, descriptive and inferential statistics, and scales of measurement.
TL;DR
Statistics starts with one question:
What kind of data do I have, and what can I legitimately do with it?
The central chain is:
The highest-value ideas are:
- population vs sample
- parameter vs statistic
- descriptive vs inferential statistics
- categorical vs numerical data
- discrete vs continuous data
- nominal / ordinal / interval / ratio scales
- why the measurement scale controls valid mathematical operations
1. What is statistics?
Statistics is the discipline of:
- collecting data
- organizing data
- summarizing data
- analyzing data
- drawing conclusions from data
It is not merely "calculating averages."
At a high level:
2. What is data?
Data are recorded observations about entities.
Examples:
- a person's age
- exam score
- city
- height
- product rating
- number of purchases
- blood group
- temperature
A single measured characteristic is usually called a variable.
3. Observation vs variable
Suppose we have:
| Student | Age | Score | City |
|---|---|---|---|
| A | 19 | 82 | Rajkot |
| B | 21 | 75 | Ahmedabad |
| C | 20 | 91 | Junagadh |
Each row is an observation.
Each column is a variable.
So:
textObservation = one entity/record Variable = one characteristic measured across observations
4. Population
The population is the complete collection of individuals or objects we want to study.
Examples:
- all IITM BS students
- all voters in India
- all light bulbs produced by a factory this month
- every transaction made by a company in 2026
Population does not necessarily mean "people."
It means the complete target collection.
5. Sample
A sample is a subset of the population that is actually observed.
If:
and we survey:
students, those 500 form the sample.
So:
6. Why do we use samples?
Often studying the whole population is:
- too expensive
- too slow
- impossible
- destructive
- unnecessary
Example:
If a factory wants to test the breaking strength of every bulb by destroying it, testing the entire population would leave nothing to sell.
So we sample.
7. Parameter
A parameter is a numerical characteristic of a population.
Examples:
- true population mean
- true population proportion
- true population variance
Common notation:
Population mean:
Population variance:
Population standard deviation:
Population proportion:
8. Statistic
A statistic is a numerical characteristic calculated from a sample.
Examples:
Sample mean:
Sample variance:
Sample standard deviation:
Sample proportion:
9. Parameter vs statistic
This distinction is fundamental.
| Population | Sample |
|---|---|
| parameter | statistic |
| μ | xˉ |
| σ | s |
| p | p^ |
A statistic is often used to estimate a parameter.
For example:
10. Example
Suppose all 10,000 students have an actual average height:
You sample 200 students and calculate:
Then:
- 169.8 cm is a parameter
- 170.4 cm is a statistic
11. Descriptive statistics
Descriptive statistics summarizes observed data.
Typical tools include:
- tables
- charts
- mean
- median
- mode
- range
- variance
- standard deviation
- percentages
It answers:
What does the data we actually observed look like?
12. Example of descriptive statistics
Suppose five scores are:
We may report:
Mean:
Median:
Range:
Those statements summarize those five observations.
No broader population conclusion is required.
13. Inferential statistics
Inferential statistics uses sample data to make statements about a wider population.
Examples:
- estimating average income of a city from sampled households
- predicting election support using a poll
- determining whether a medicine works from a clinical trial
- estimating defect rate using sampled products
Conceptually:
14. Descriptive vs inferential
Suppose we survey:
students.
Descriptive
62% of the surveyed students prefer online exams.
This describes the sample.
Inferential
We estimate that about 62% of all students prefer online exams.
Now we are generalizing beyond the observed sample.
15. Why inference contains uncertainty
A sample is not usually identical to the population.
Different samples may produce different values.
For example:
This variation is why probability becomes central later in Statistics 1.
Statistical inference does not normally say:
"The population value definitely equals this."
It quantifies uncertainty.
16. Variable
A variable is a characteristic that can take different values.
Examples:
- age
- gender category
- annual salary
- number of siblings
- exam grade
- temperature
The first major classification is:
17. Categorical data
Categorical data represents labels or groups.
Examples:
- blood group
- city
- marital status
- operating system
- eye color
- department
The values indicate category membership rather than meaningful arithmetic quantities.
18. Numerical data
Numerical data represents quantities where arithmetic usually has meaningful interpretation.
Examples:
- height
- weight
- age
- income
- number of purchases
- temperature
Numerical data is often further divided into:
19. Discrete data
Discrete variables take separated, countable values.
Usually obtained by counting.
Examples:
- number of children
- number of cars
- number of emails received
- number of goals scored
Possible values might be:
You generally cannot have:
children.
20. Continuous data
Continuous variables can take values across an interval.
Usually obtained by measurement.
Examples:
- height
- weight
- time
- temperature
- distance
A height may theoretically be:
depending on measurement precision.
21. Count vs measurement mental model
A useful shortcut:
Discrete
"How many?"
Continuous
"How much?"
Examples:
Number of phones:
Phone weight:
22. But be careful with decimal values
Having decimal notation does not automatically mean continuous.
Suppose a rating system allows only:
Even though decimals occur, values are from a fixed countable set.
So it is discrete.
The issue is not:
"Does it contain decimals?"
The issue is:
"Can it theoretically vary continuously?"
23. Identifier numbers are not numerical measurements
Suppose:
textStudent ID = 104293
The value is written using digits.
But arithmetic like:
has no meaningful statistical interpretation.
So Student ID is effectively categorical/nominal data.
This is a common trap:
Numbers used as labels are not necessarily quantitative variables.
24. Scales of measurement
Variables are also classified by measurement scale.
The classical four levels are:
Each level carries more mathematical structure.
25. Nominal scale
Nominal data consists of categories with no inherent ordering.
Examples:
- blood group
- country
- eye color
- operating system
- department
For blood type:
there is no meaningful statement such as:
They are simply labels.
26. What can we do with nominal data?
Meaningful operations include:
- equality
- inequality
- counting frequencies
- percentages
- mode
For example:
or:
But averaging category labels makes no sense.
27. Ordinal scale
Ordinal data has an inherent order.
Examples:
- satisfaction: poor / fair / good / excellent
- class rank
- education level
- star rating
- competition placements
You can say:
But the distances between categories are not necessarily equal.
28. Ordinal example
Suppose satisfaction levels are encoded:
Although numbers are used, we cannot automatically conclude:
the gap between poor and fair is exactly equal to the gap between good and excellent.
The numbers may just encode rank.
29. Nominal vs ordinal
Nominal:
categories only.
Ordinal:
categories + meaningful order.
Examples:
| Variable | Scale |
|---|---|
| Blood type | nominal |
| City | nominal |
| Race position | ordinal |
| Satisfaction level | ordinal |
30. Interval scale
Interval data has:
- meaningful order
- meaningful differences
- equal intervals
But it lacks a meaningful absolute zero.
Classic example:
Difference between:
and:
is the same size as the difference between:
and:
Both differences are:
31. Why Celsius has no true zero
0∘Cdoes not mean "no temperature."
Therefore it is not meaningful to say:
is "twice as hot" as:
The ratio:
does not have the physical meaning implied by a ratio scale.
32. Ratio scale
Ratio data has:
- meaningful ordering
- equal intervals
- meaningful differences
- a true zero
Examples:
- height
- weight
- distance
- age
- duration
- income
- number of items
Because zero represents absence of the quantity, ratios are meaningful.
33. Example of meaningful ratio
If one object weighs:
and another:
then it is meaningful to say:
So the first weighs twice as much.
That makes weight ratio-scale data.
34. The four scales as increasing structure
Think:
textNominal ↓ ordering added Ordinal ↓ equal differences added Interval ↓ true zero added Ratio
So:
in terms of mathematical information available.
35. Master comparison table
| Scale | Categories | Ordered | Equal intervals | True zero |
|---|---|---|---|---|
| Nominal | ✓ | ✗ | ✗ | ✗ |
| Ordinal | ✓ | ✓ | ✗ | ✗ |
| Interval | ✓ | ✓ | ✓ | ✗ |
| Ratio | ✓ | ✓ | ✓ | ✓ |
This table is worth memorizing.
36. Examples by scale
Nominal
- religion category
- eye color
- postal code
- phone number
- city
Ordinal
- movie rating
- class rank
- satisfaction category
- education level
Interval
- Celsius temperature
- Fahrenheit temperature
- calendar year in ordinary interpretation
Ratio
- Kelvin temperature
- height
- weight
- time duration
- age
- income
37. Kelvin vs Celsius
Kelvin has a meaningful zero:
corresponds to absolute zero.
So Kelvin temperature is treated as ratio scale.
Celsius has an arbitrary zero point:
so Celsius is interval scale.
This contrast is a standard exam example.
38. Calendar years
Years such as:
have meaningful equal differences:
But year zero is not a "complete absence of time."
So calendar year is typically treated as interval-scale.
39. Age
Age has a meaningful zero:
means zero elapsed age from birth.
Differences and ratios are meaningful in the ordinary measurement sense.
Thus age is typically:
40. Ordinal numeric encoding trap
Suppose:
Although:
and:
that numerical equality does not prove equal psychological distance between categories.
The numerical encoding does not upgrade ordinal data to interval data.
41. Binary categorical data
Variables with two categories are categorical.
Examples:
- yes/no
- pass/fail
- present/absent
Even if encoded:
the underlying variable may still be nominal.
Coding does not determine the scale.
42. Qualitative vs quantitative
Another common terminology:
Qualitative
Usually categorical.
Quantitative
Usually numerical.
So:
and:
depending on textbook terminology.
43. Cross-sectional data
Cross-sectional data records many entities at approximately the same point in time.
Example:
salaries of 1,000 employees in September 2026.
The variation is primarily across individuals.
44. Time-series data
Time-series data records a variable across time.
Example:
India's monthly inflation rate from 2020–2026.
The ordering in time matters.
45. Panel / longitudinal intuition
If you repeatedly observe the same entities over time, you get longitudinal or panel-style data.
Example:
monthly spending of the same 100 households for three years.
This combines:
- cross-sectional variation
- temporal variation
This terminology may appear later even if Week 1 keeps things simpler.
46. Raw data vs processed information
Suppose raw values are:
A summary such as:
compresses those observations.
Statistics frequently turns:
But every summary discards some information.
That tradeoff matters.
47. Census
A census collects information from every population member.
If every household in a country is surveyed, that's a census.
Advantage:
- potentially complete coverage
Disadvantages:
- costly
- slow
- administratively difficult
- still vulnerable to measurement/nonresponse errors
A census is not automatically error-free.
48. Sample survey
A sample survey collects information only from a subset.
If appropriately selected, the sample can provide useful inference about the population at much lower cost.
The quality depends heavily on how the sample is selected, not merely its size.
Sampling methods come later.
49. Representative sample
A representative sample resembles the relevant structure of the population sufficiently for the intended inference.
A huge biased sample can still be bad.
Example:
Suppose you want opinions of all citizens but survey only visitors to one specialized website.
Even:
responses may be systematically biased.
So:
50. Bias
Bias is a systematic tendency for a method to produce distorted results.
Possible sources include:
- sampling bias
- nonresponse
- poorly worded questions
- measurement errors
- selection effects
Random variation and bias are different problems.
51. Observational units
An observational unit is the basic entity on which variables are measured.
Examples:
Dataset of students:
Dataset of countries:
Dataset of transactions:
Knowing the observational unit prevents confusion about what rows actually represent.
52. Example classification
Consider:
Number of messages sent by a user per day.
This is:
- numerical
- discrete
- ratio scale
Why?
It's a count:
and:
means no messages.
53. Example classification
Time needed to finish an exam.
This is:
- numerical
- continuous
- ratio scale
A duration of:
means no elapsed time.
54. Example classification
User's preferred operating system.
This is:
- categorical
- nominal
There is no inherent ordering:
from the variable itself.
55. Example classification
Finishing position in a race.
Values:
This is ordinal.
Rank tells order but not equal performance gaps.
The time gap between first and second may be:
while second to third may be:
56. Example classification
Temperature in Celsius.
- numerical
- usually continuous
- interval scale
57. Example classification
Height.
- numerical
- continuous
- ratio scale
58. Example classification
Number printed on a cricket jersey.
Although numerical-looking:
the numbers serve primarily as labels.
So this variable is nominal.
59. Why scale matters
Measurement scale determines which operations make sense.
Suppose categories are encoded:
Then computing:
and concluding "average color = blue" is meaningless.
Numbers do not automatically legitimize arithmetic.
60. A useful operation hierarchy
Roughly:
Nominal
Can ask:
Ordinal
Can additionally ask:
Interval
Can additionally meaningfully compare differences:
Ratio
Can additionally meaningfully compare ratios:
That is a strong mental model for the four scales.
Common mistake: sample = population
No.
Population is the full target group.
Sample is the observed subset.
Unless a census is performed:
Common mistake: statistic = parameter
No.
Statistic:
Parameter:
A statistic may estimate a parameter.
Common mistake: descriptive means "simple"
Descriptive vs inferential is not about difficulty.
A sophisticated visualization can still be descriptive.
A simple sample proportion used to generalize to a population becomes inferential.
The distinction is about scope of the conclusion.
Common mistake: all numbers are numerical data
Phone numbers, IDs, jersey numbers and PIN codes use digits but often represent nominal categories/identifiers.
Ask:
Does arithmetic on these values mean anything?
If no, treat them as labels.
Common mistake: discrete = integer
Often, but not necessarily.
A discrete variable can take noninteger values if those possibilities form a countable separated set.
Example:
can still be discrete.
Common mistake: continuous means infinitely precise measurement
Actual measuring instruments always have finite precision.
A person's measured height may be recorded as:
The underlying variable is still conceptually continuous.
Variable type concerns the underlying possible values, not just displayed precision.
Common mistake: ordinal data has equal spacing
No.
Ordinal tells ordering only.
If:
you know rank.
You do not necessarily know:
Common mistake: zero always means ratio scale
Not every dataset containing the numeric value zero has a true zero.
Celsius contains:
but zero does not mean absence of temperature.
"True zero" has a conceptual meaning.
69. Classification workflow
When given a variable, ask:
text1. Is it a category or a quantity? ├── category → categorical └── quantity → numerical 2. If numerical: ├── countable separated values → discrete └── continuum → continuous 3. Measurement scale: ├── labels only → nominal ├── meaningful order → ordinal ├── equal intervals, arbitrary zero → interval └── equal intervals + true zero → ratio
This handles most Week 1 classification questions.
70. Complete example
Suppose a university records:
| Variable | Example |
|---|---|
| Student ID | 29183 |
| Degree year | 1st |
| Exam marks | 86 |
| Height | 176.4 cm |
| City | Junagadh |
Classification:
Student ID
Categorical, nominal.
Degree year
Often ordinal because year 1 < year 2 < year 3 in progression.
Exam marks
Numerical; typically discrete depending on scoring system; ratio/interval interpretation can depend on context, so don't automatically overclaim ratios.
Height
Numerical, continuous, ratio.
City
Categorical, nominal.
The context of a variable can matter.
71. Data classification is not always purely mechanical
Some variables can be interpreted differently depending on how they are defined.
Example:
"Age"
Exact age measured to arbitrary precision:
→ continuous.
Age recorded only as completed years:
→ discrete recorded data.
So always read the wording of the question carefully.
72. Week 1 conceptual map
textSTATISTICS │ ├── Population │ └── parameter │ ├── Sample │ └── statistic │ ├── Descriptive │ └── summarize observed data │ └── Inferential └── learn about population from sample DATA │ ├── Categorical │ ├── nominal │ └── ordinal │ └── Numerical ├── discrete └── continuous │ ├── interval └── ratio
73. What you should actually master
By the end of Statistics 1 Week 1, you should be able to:
- Define population and sample.
- Distinguish parameter from statistic.
- Distinguish descriptive from inferential statistics.
- Identify observational units and variables.
- Classify variables as categorical or numerical.
- Distinguish discrete from continuous data.
- Recognize numeric labels as categorical when appropriate.
- Distinguish nominal from ordinal scales.
- Distinguish interval from ratio scales.
- Explain why Celsius is interval but Kelvin is ratio.
- Explain why numeric coding does not change a variable's actual measurement scale.
- Classify realistic variables from context.
If those are comfortable, Stats 1 Week 1 is under control.
Quick Recall & Flashcards
Test your active recall before proceeding to practice problems. Format:
Question :: Answer.- Week 1 Diagnostic: Which scale of measurement applies to 'temperature measured in Celsius'? :: Answer: C — Celsius has an arbitrary zero point (0°C does not mean total absence of heat), so it is an Interval scale. Ratios like 'twice as hot' are not meaningful on this scale.
- Week 1 Diagnostic: Is the number of students attending a lecture a discrete or continuous numerical variable? :: Answer: A — Student counts take distinct non-negative integer values (0, 1, 2, ...), making it a discrete numerical variable.
Practice & Self-Check
Attempt these diagnostic questions to verify your operational understanding.
1
Question 1
Which scale of measurement applies to 'temperature measured in Celsius'?
MCQ
3 Unit Assessment
A. Nominal
B. Ordinal
C. Interval
D. Ratio
2
Question 2
Is the number of students attending a lecture a discrete or continuous numerical variable?
MCQ
3 Unit Assessment
A. Discrete
B. Continuous
C. Categorical nominal
D. Categorical ordinal