SST 101 • UNIT 2 • Statistics

Types Of Data

Topics covered: Qualitative (Categorical): Nominal and Ordinal, Quantitative (Numerical): Discrete and Continuous

Looking for SST 101 Types Of Data PDF material?
Generate printable PDF revision notes, past examination papers with marking rubrics, and formula cheat sheets.
Download Course PDF Pack (.zip)

Syllabus Study Notes (Core Overview)

Free Overview Preview

1. Foundational Concepts, Definitions, and Axioms

1.1 Why the classification of data comes before every calculation

Statistics is the science of data, and its first act is never arithmetic but classification. Collecting, classifying, summarizing, organizing, analyzing, and interpreting numerical information are listed in that order for a reason: the class into which an observation falls decides which of the later operations are meaningful and which are nonsense dressed in algebra. A mean of examination marks is informative; a mean of eye colours is not, even though both can be computed from symbols that look identical. The difference is not one of arithmetic but of the structure that the numbers are permitted to carry.

This unit therefore builds a vocabulary of data types, and then a stricter vocabulary of measurement scales. The first distinguishes what kind of thing has been recorded, a category or a quantity. The second distinguishes how much structure the recorded value carries: whether it supports only a statement of sameness, or also a statement of order, or also a statement of equal spacing, or also a statement of ratio. Every legitimate summary, every legitimate graph, and every legitimate coding scheme is licensed by that second classification.

The practical importance is immediate. Two analysts who disagree about whether a satisfaction score is ordinal or interval will disagree about whether reporting a mean score is honest, and the disagreement cannot be settled by computing more carefully. It is settled by asking which transformations of the recorded values leave the information intact. That question is the organising principle of this entire note.

1.2 Variables, observations, and data sets

> Definition (Variable). A variable is a characteristic or property of an individual population unit.

> Definition (Observation). An observation is the value that a variable assumes for one particular unit.

> Definition (Data set). A data set is the collection of observations on one or more variables, recorded for a set of units.

Three terms then follow without further assumption. A population is the set of all units about which a question is asked; a sample is a subset of those units; and a data set is the record produced by measuring the units that were actually reached. A single variable measured on a sample yields a univariate data set. Two variables measured on the same units yield a bivariate data set, and it is the bivariate case that makes cross-classification possible.

The distinction between a variable and its recorded values is easy to blur and expensive to blur. The variable is the characteristic; the observation is one realisation of it. Statements about scales are statements about variables, not about the particular numbers that happen to appear in one data set. A variable whose observations all happen to be whole numbers is not thereby discrete, and a variable recorded to two decimal places is not thereby continuous.

1.3 The qualitative and quantitative dichotomy

> Definition (Quantitative data). Quantitative data are measurements that are recorded on a naturally occurring numerical scale.

> Definition (Qualitative data). Qualitative data are measurements that cannot be measured on a natural numerical scale; they can only be classified into one of a group of categories.

The definition turns on the phrase naturally occurring numerical scale. A number that arises because a unit was counted, or because a quantity was compared with a standard unit, lies on such a scale. A number that arises because a clerk typed a code beside a category does not. Category codes are labels written in digits, and the fact that they can be added is an accident of notation rather than a property of the category.

Qualitative data are also called categorical data, and the two words are interchangeable. Each observation places its unit into one of a set of categories, and the only primitive relation between two observations is whether they fall in the same category or in different ones. Quantitative data support two further primitive relations: one observation may exceed another, and the excess may be compared with the excess between a third pair.

The dichotomy is exclusive and exhaustive at this level of description. Every variable that can be recorded is either a category or a quantity, provided that the recording instrument has been described honestly.

1.4 The nominal scale

> Definition (Nominal scale). A variable is measured on a nominal scale when its values are labels that identify categories and nothing more, so that the only admissible comparison between two values is equality or inequality.

Blood group, marital status, region of residence, payment method, and species of tree are nominal. The categories may be listed in any order, and a table of counts may be sorted by frequency or alphabetically without any loss of meaning. Nominal data admit counting: the number of units in each category is a legitimate summary, and the proportion of units in each category is a legitimate summary of relative size. Nominal data do not admit ordering, so no category is high or low, and they do not admit arithmetic, so the sum of two category names has no referent.

Nominal variables are frequently recorded with numerical codes, and this is where most of the mischief begins. Coding card as 1, cash as 2, and mobile as 3 produces a column of integers that a spreadsheet will happily average. The average is a real number, but it is a number about the coding scheme and not about the customers.

1.5 The ordinal scale

> Definition (Ordinal scale). A variable is measured on an ordinal scale when its values are categories that stand in a known order, so that any two values can be compared as lower, equal, or higher, while the magnitudes of the differences between neighbouring categories are not defined.

Satisfaction ratings, examination grades, military ranks, stages of a disease, and clothing sizes are ordinal. Ordinal data admit everything nominal data admit, and in addition they admit ranking: the median category, the quartile categories, and order-based comparisons of two groups are all legitimate. What ordinal data do not admit is the assumption that the step from category one to category two equals the step from category two to category three. That assumption is an extra, empirical claim about the measuring instrument, and the scale itself supplies no evidence for it.

The absence of equal spacing is not a technicality. A respondent who moves from "dissatisfied" to "neutral" may travel much further in felt experience than a respondent who moves from "neutral" to "satisfied", because the labels are words and the words are not spaced like the rulings of a ruler. Reporting a mean of ordinal codes asserts that the spacings are equal, and the assertion is unsupported.

1.6 The interval scale

> Definition (Interval scale). A variable is measured on an interval scale when its values lie on a numerical axis with equal spacing between consecutive units, so that differences are comparable, while the zero point is chosen by convention rather than fixed by the nature of the quantity.

Temperature in degrees Celsius is the standard example, and the reason is visible in the arithmetic. The difference between ten degrees and twenty degrees equals the difference between twenty degrees and thirty degrees, so intervals can be added and subtracted and compared. But zero degrees is the freezing point of water, not the absence of temperature, so a temperature of twenty degrees is not twice as warm as ten degrees in any physical sense. Calendar years behave in the same way: the interval from 1990 to 2000 is a decade, but the year 2000 is not twice the year 1000.

Interval data admit the arithmetic mean, the standard deviation, correlation, and every summary built from differences. They do not admit ratios, so they do not admit the coefficient of variation, the geometric mean, or a statement such as "twice as hot".

1.7 The ratio scale

> Definition (Ratio scale). A variable is measured on a ratio scale when its values lie on a numerical axis with equal spacing and possess a true zero, so that the ratio of two values is meaningful.

Mass, length, duration, income, age, and the number of children in a family are ratio measurements. A mass of twenty kilograms is twice a mass of ten kilograms, and the doubling is a physical fact rather than a convention, because zero kilograms means no mass at all. Ratio data admit every summary that interval data admit, and in addition they admit multiplicative comparisons: coefficients of variation, geometric means, growth rates, and elasticities.

The distinction between interval and ratio is not academic decoration. Every statement of the form "twice as much" or "fifty per cent larger" requires a true zero. A report that one day was twice as hot as another is meaningless on the Celsius scale and meaningful on the Kelvin scale, and only because the Kelvin scale has a true zero.

1.8 Discrete and continuous quantitative variables

> Definition (Discrete variable). A quantitative variable is discrete when its possible values are separated, so that between two adjacent possible values no other possible value lies. Such variables arise from counting.

> Definition (Continuous variable). A quantitative variable is continuous when, between any two of its possible values, a further possible value lies. Such variables arise from measurement.

The number of children in a family is discrete because the values are the whole numbers and nothing lies between two and three. The mass of a student is continuous because a mass of fifty-two kilograms and a mass of fifty-three kilograms are separated by a continuum of possible masses. The operational test is the halfway test: compute the value halfway between two observed values and ask whether that value is possible for the variable. If it is impossible, the variable is discrete; if it is possible, the variable is continuous.

Discreteness has a second, deeper consequence that students often miss. When a variable is discrete, a table that lists each distinct value with its frequency loses no information at all, because the omitted values are impossible rather than merely unobserved. When a variable is continuous, such a table cannot be written, because no two observations can be guaranteed to coincide. Continuous data must be grouped into classes, and grouping is always a lossy operation.

1.9 Recording precision is not the same as scale

A continuous variable recorded to a fixed precision produces observations that look discrete. Age is continuous, yet a survey records age in completed years; mass is continuous, yet a hospital scale reports to the nearest kilogram. The recording has quantised the value, but the variable has not changed. The distinction matters because the halfway test is applied to the variable, not to the printed digits.

The correct formulation is that recording at precision $h$ replaces a true value $x$ by a reported value $x^{}$ in a cell of width $h$ centred on $x^{}$. The reported value is a class mark, and the class boundaries are $x^{} - \frac{h}{2}$ and $x^{} + \frac{h}{2}$. This is precisely why the grouped frequency table for masses reported to the nearest kilogram carries boundaries at half-kilogram positions. The grouping is not an arbitrary presentational choice; it is the structure that the recording precision imposes.

1.10 Cross-classification of two variables

> Definition (Contingency table). A contingency table cross-classifies a sample by two variables, placing the categories of one variable in the rows and the categories of the other in the columns, and recording in each cell the number of units that fall into that combination of categories.

A contingency table is the natural summary when both variables are qualitative, and it remains the natural summary when a quantitative variable has been grouped into categories for the purpose of the cross-tabulation. Each cell count is called a joint frequency; the totals at the foot and at the right margin are called marginal frequencies; and a distribution formed by fixing one category and reading across a row or down a column is called a conditional distribution.

The table licenses three distinct readings, and confusing them is the commonest error in this part of the subject. The joint distribution reports how many units fall in each combination. The marginal distribution reports how many fall in each category of one variable, ignoring the other. A conditional distribution reports the composition of one row or column, and therefore answers a question of the form "among the loyal customers, what fraction pay by card?" A rhetorical claim about a group is almost always a claim about a conditional distribution, while a headline count is almost always a joint or marginal frequency.

1.11 Notation

Let $x_i$, for $i = 1, 2, \dots, n$, denote the $i$-th observation of a quantitative variable $X$. The mean is written $\bar{x}$, the variance of a population $s^{2}$, and its standard deviation $s$. Frequencies are written $f_1, \dots, f_k$, so that the total number of observations is $n = \sum_{i=1}^{k} f_i$.

$$
\sum_{i=1}^{k} f_i = n
$$

For a grouped table, classes carry a lower boundary $L_j$ and an upper boundary $U_j$, a width $h_j = U_j - L_j$, and a class mark $m_j = \frac{L_j + U_j}{2}$. For a contingency table with $r$ rows and $c$ columns, the cell count is $O_{ij}$, the row total is $R_i$, the column total is $C_j$, and the grand total is $n$.

2. Theorems, Lemmas, and Analytical Properties

2.1 The principle that governs every admissible summary

The following principle is the organising theorem of the whole topic. It converts a vague instruction to "use the right average" into a test that can be applied mechanically.

> Definition (Admissible transformation). An admissible transformation of a scale is a relabelling of the recorded values that preserves every distinction the scale is able to express.

> Principle (Admissibility). A summary statistic is admissible for a scale if and only if it is equivariant under every admissible transformation of that scale, that is, if and only if applying the transformation to the data applies the same transformation to the summary.

The principle has a plain reading. If a change of labels that destroys no information nevertheless changes the summary, then the summary was reading the labels rather than the information. Under that reading, a statistic is a legitimate summary exactly when it survives every recoding that the scale treats as irrelevant.

2.2 The admissible transformations of the four scales

> Theorem (Admissible transformation classes). The admissible transformations are as follows: for a nominal scale, every one-to-one relabelling of the categories; for an ordinal scale, every strictly increasing transformation of the categories; for an interval scale, every transformation of the form $y = a + bx$ with $b > 0$; for a ratio scale, every transformation of the form $y = bx$ with $b > 0$.

The nesting is exact: the ratio class is contained in the interval class, which is contained in the ordinal class, which is contained in the nominal class. A statistic that survives a wide class of transformations survives every narrower class as well, which is why a mode, legitimate on a nominal scale, remains legitimate on all three stronger scales.

Scale Admissible transformations Distinctions the scale can express
Nominal Any one-to-one relabelling Same or different
Ordinal Any strictly increasing relabelling Same, different, and ordered
Interval Any $y = a + bx$, $b > 0$ Order and equal differences
Ratio Any $y = bx$, $b > 0$ Order, differences, and ratios

2.3 The mode is admissible on every scale

> Theorem (Invariance of the mode). Let $g$ be any one-to-one transformation of the recorded values. If $m$ is a mode of the data, then $g(m)$ is a mode of the transformed data.

The reason is that a one-to-one transformation cannot merge two distinct values or split one value into two, so the frequencies attached to the values are simply carried across to their images. The most frequent value remains the most frequent value.

The theorem is the formal licence for the only average that nominal data possess. A mode is a statement about which category is commonest, and that statement is exactly as informative after relabelling as before.

2.4 The median is admissible on ordinal and stronger scales

> Theorem (Equivariance of the median). Let $g$ be strictly increasing. Then the median of the transformed data equals $g$ applied to the median of the original data.

Because a strictly increasing transformation preserves the order of the observations, it preserves which observation occupies the middle position. The median is therefore read from the same unit before and after the transformation, and the summary moves with the record rather than with the labels. This is the formal licence for reporting a median category on an ordinal scale.

A qualification belongs with the theorem. When $n$ is even, the usual median is the arithmetic average of the two central observations, and averaging is an operation that requires equal spacing. For genuinely ordinal data the median should therefore be reported as the pair of central categories, or as the interval between them, rather than as their numerical average.

2.5 The mean requires an interval or ratio scale

> Theorem (Affine equivariance of the mean). For constants $a$ and $b$ with $b > 0$, if $y_i = a + b x_i$ for every $i$, then $\bar{y} = a + b\bar{x}$.

> Theorem (Failure under monotone recoding). There exists a strictly increasing transformation $g$ and a data set for which the mean of the transformed data differs from the transformation of the mean.

The second theorem is what disqualifies the mean on an ordinal scale. Order is preserved by every increasing transformation, so if the mean were admissible on an ordinal scale it would have to be equivariant under all of them. It is not. Section 3 supplies an explicit counterexample, which is enough to settle the question.

The first theorem explains why the mean is perfectly at home on an interval scale. A change of origin and unit is precisely a change of thermometer, and the mean responds to it in the only sensible way: it moves with the data.

2.6 Variance and standard deviation under change of scale

> Theorem (Scaling of the variance). If $y_i = a + b x_i$ for every $i$, then $s_y^{2} = b^{2} s_x^{2}$ and $s_y = \left| b \right| s_x$.

The variance is unaffected by the change of origin because it is built from deviations, and deviations are unchanged by a shift. It is multiplied by the square of the unit conversion because each deviation is multiplied by $b$. The standard deviation therefore behaves like a length, which is exactly what it is.

This theorem is the formal statement that the standard deviation is admissible on an interval scale: it transforms by a positive constant, so a statement such as "the standard deviations of the two groups are equal" is preserved by any change of units.

2.7 The coefficient of variation requires a ratio scale

> Theorem (Invariance of the coefficient of variation under similarity). Let $v = \frac{s}{\bar{x}}$ for positive data. If $y_i = b x_i$ with $b > 0$, then $v_y = v_x$. If instead $y_i = a + b x_i$ with $a \ne 0$, then in general $v_y \ne v_x$.

The first part shows that $v$ is a legitimate summary on a ratio scale: it is unchanged when the unit of measurement is changed, so it is genuinely unit-free. The second part shows that $v$ is illegitimate on an interval scale: it changes when the origin is moved, and the origin of an interval scale is arbitrary. Section 3 gives the algebra and a numerical illustration.

2.8 A dispersion measure for nominal data

> Definition (Index of qualitative variation). For $k$ categories with frequencies $f_1, \dots, f_k$ summing to $n$, the index of qualitative variation is

$$
\mathrm{IQV} = \frac{k\left(n^{2} - \sum_{i=1}^{k} f_i^{2}\right)}{n^{2}\left(k - 1\right)}
$$

> Theorem (Range of the index). The index satisfies $0 \le \mathrm{IQV} \le 1$, with equality at zero exactly when all observations fall in one category and equality at one exactly when the categories are equally frequent.

The index is admissible on a nominal scale because it is computed from the category frequencies and is therefore unchanged by any relabelling of the categories. It is the only kind of dispersion that nominal data can support, and it answers a question that nominal data can ask: how evenly is the sample spread across the available categories?

2.9 Independence in a contingency table

> Definition (Statistical independence). Two qualitative variables cross-classified in a contingency table are independent when the conditional distribution of one variable is the same in every category of the other.

> Theorem (Expected counts under independence). If the two variables are independent, the expected count in cell $(i,j)$ is

$$
E_{ij} = \frac{R_i C_j}{n}
$$

The theorem converts a statement about distributions into a number for each cell, and the number is the benchmark against which the observed count is judged. A cell whose observed count greatly exceeds its expected count signals an association between the two categories.

2.10 The class mark as a weighted mean of the class

> Theorem (Class mark identity). For a class with boundaries $L$ and $U$, the class mark $m = \frac{L+U}{2}$ satisfies $U - m = m - L$, so the mark is equidistant from both boundaries.

The identity is trivial and consequential. Because every observation in the class lies within half a class width of the mark, replacing each observation by the mark introduces an error of at most $\frac{h}{2}$ in any single value, and the grouped mean inherits that bound in the sense that the grouped and exact means differ by no more than $\frac{h}{2}$.

Unlock Complete Study Notes & Exam Traps

The full guide includes formal proofs, worked exemplar calculations, high-yield exam traps, and examiner marking schemes. Continue studying this topic in Mentify Prep Studio.

Verified Examination Problems

5 verified questions in catalog

Question 2 (30 marks)

  1. Calculate the mean, median and mode of the following weights (in kilogrammes) of a group of 14 students:

$$
63,\ 62,\ 63,\ 61,\ 63,\ 64,\ 60,\ 65,\ 63,\ 64,\ 64,\ 66,\ 64,\ 67
$$

(6 marks)
2. Find two numbers whose arithmetic mean is 12.5 and geometric mean is 10.
(5 marks)
3. In a survey of 25 families in a certain county, the number of children per family was recorded as follows:

$$
\begin{array}{ccccc}
1 & 0 & 2 & 3 & 4\
7 & 2 & 3 & 4 & 4\
8 & 4 & 5 & 8 & 6\
7 & 6 & 5 & 3 & 3\
9 & 7 & 9 & 4 & 5
\end{array}
$$

  1. Construct a discrete frequency distribution table using single-valued classes.
    (2 marks)
  2. Compute the average number of children per family.
    (2 marks)
  3. How many families in this sample have fewer than 4 children?
    (1 mark)
  4. The following are some particulars of the distribution of weights of boys and girls in a certain class:

$$
\begin{array}{lcc}
& \text{Boys} & \text{Girls}\
\text{Number} & 100 & 50\
\text{Mean weight} & 60\text{ kg} & 45\text{ kg}\
\text{Variance} & 9 & 4
\end{array}
$$

  1. Find the standard deviation of the combined data.
    (5 marks)
  2. Which of the two distributions is more variable?
    (4 marks)
  3. The first three moments of a distribution about the value 2 are 1, 16 and -40. Show that the mean is 3, the variance is 15 and the third moment about the mean is -86.
    (3 marks)
  4. A bag contains 5 white, 6 red and 9 black balls. Two balls are drawn at random from the bag without replacement. Find the probability that they will both be black.
    (2 marks)
Full Step-by-Step Solution & Marking Rubric Locked
View Solution in Studio →

Question 2 (30 marks)

(a) The following are the marks (out of 100) of 60 students in a mathematics test.

$16, 13, 5, 80, 86, 7, 51, 48, 24, 56, 70, 19, 61, 17, 16, 36, 34, 42, 34, 35, 72, 55, 75, 31,$

$52, 28, 72, 97, 74, 45, 62, 68, 86, 35, 85, 36, 81, 75, 55, 26, 95, 31, 7, 78, 92, 62, 52, 56,$

$15, 63, 25, 36, 54, 44, 47, 27, 72, 17, 4, 30.$

(i) Using class intervals of width 10 (i.e. $0-9$, $10-19$, $\ldots$), construct a grouped frequency distribution table. (3 marks)
(ii) Construct a cumulative frequency curve for the data. (3 marks)
(b) For 8 pairs of observations the following results were obtained:

$$\sum x = 50,\quad \sum y = 40,\quad \sum x^2 = 524,\quad \sum y^2 = 524,\quad \sum xy = 364,\quad n = 8.$$

(i) Find the equation of the regression line of $Y$ on $X$. (5 marks)
(ii) Calculate the coefficient of correlation between $X$ and $Y$. (4 marks)
(c) A bag contains 5 red balls and 3 black balls. If 3 balls are drawn without replacement, what is the probability that:

(i) no black ball will be selected? (1 mark)
(ii) exactly one red ball will be selected? (3 marks)
(d) Compute the mean, range, variance and standard deviation of the following set of numbers: $6, 10, 15, 25, 30, 32, 40, 46$. (5 marks)
(e) Distinguish the following terms as used in statistics:

(i) A population and a sample
(ii) Parameter and a statistic
(iii) Continuous and a discrete variable

Full Step-by-Step Solution & Marking Rubric Locked
View Solution in Studio →
+ 3 More Verified Exam Questions Available

Access all authentic past questions, interactive AI hint generation, and full marking rubrics in the course studio.

Unlock All Questions in Studio →
Ready to practice this topic interactively?
Generate custom exam variants, chat with the AI course tutor, and solve past papers.
Launch Interactive Study