Hersi Maths WhatsApp me

Understand · explore · practise

Types of data

Distinguish qualitative and quantitative variables, discrete and continuous measurements, and the underlying quantity from its rounded record. Original examples and worked practice.

Before you startUnderstand a variable as something recorded for each unit.

01 / Meaning before appearance

A number can be a quantity or simply a label.

Qualitative: categories or attributes. Quantitative: numerical amounts.

For quantitative variables, distinguish discrete allowed values from a continuous range.

Route 302 is a label for a bus service; 30 passengers is a count. Both contain digits, but they represent different kinds of information. Look at what is recorded and whether arithmetic describes a meaningful amount.

What does the value mean?Explore

Bus route code

Qualitative

A route code identifies a category. Arithmetic on route numbers does not measure an amount.

Classify the meaning of the variable, not just whether its recorded value contains digits. The notes below cover the distinctions without needing these controls.

02 / Categories and labels

Qualitative data need not be written as words.

Eye colour, method of travel and type of fuel are categories. A database may code them as 1, 2 and 3 without turning them into measured quantities. Nominal categories have no inherent ranking. Ordinal categories, such as poor/fair/good/excellent, have an order, but the gaps between categories are not necessarily equal.

01 · Numerical category codes

A survey records car colour as 1 = blue, 2 = red, 3 = white. Is car colour quantitative?

Hint

The code stands for a category.

Worked solution

No. Colour is qualitative. The numerical coding does not make the difference between red and white a measured quantity.

02 · Ordered categories

Classify satisfaction recorded as very dissatisfied, dissatisfied, neutral, satisfied or very satisfied.

Hint

There is an order, but no measured numerical spacing.

Worked solution

Qualitative, ordinal data. The categories are ranked, but equal gaps between categories are not established.

03 / Numerical quantities

Arithmetic relates to an amount.

Counts, lengths, masses and durations are quantitative. Units matter: a journey time of 30 minutes and a journey distance of 30 kilometres measure different variables. Ask what one data value means before calculating summaries.

Compare three records about a bus.Worked example

Route code 302: qualitative identifier

Adding route labels has no useful quantitative interpretation.

Passenger count 30: quantitative, discrete

Passengers are counted in whole units.

Journey time 23.5 minutes: quantitative, continuous

Duration is measured; the recorded precision may be limited.

Watch: similar-looking numbers can mean different things

Pause, replay or seek freely. The notes explain the same idea and stay in view.

03 · Variable and unit

A parcel record contains “delivery zone 4” and “mass 4 kg”. Classify each variable.

Hint

One four is a label; the other is a measured amount.

Worked solution

Delivery zone is qualitative categorical data. Mass is quantitative continuous data, measured in kilograms.

04 / Discrete quantitative variables

Only particular separated values are allowed.

Numbers of customers, defects or messages are integer counts. A discrete variable can also use fixed fractional steps, such as shoe sizes in a system allowing only whole and half sizes. Discrete does not mean “must be an integer” or “has only a few possible values”.

04 · A count

Classify the number of emails received in a day. Could 4.5 be a possible observation?

Hint

Each email contributes one to the count.

Worked solution

Quantitative discrete. An individual daily count is a nonnegative integer, so 4.5 is not a possible count.

05 · A fractional average

The mean number of children per household in a sample is 1.7. Does this make the variable continuous?

Hint

An average need not itself be an attainable observation.

Worked solution

No. Each household’s number of children is an integer count, so the variable is discrete. The average can be fractional.

06 · Half-size steps

A shoe-size system allows 6, 6.5, 7, 7.5 and so on. Is shoe size continuous?

Hint

Not every value between neighbouring sizes is allowed.

Worked solution

No. The allowed sizes are discrete, despite some being fractional.

05 / Continuous quantitative variables

The model allows any value within a range.

Lengths, masses, durations and temperatures are normally modelled as continuous. In practice instruments round or limit precision, but the underlying quantity is still continuous in the statistical model. “Continuous” does not mean that every imaginable real number is physically possible; there may be bounds.

07 · A bounded measurement

Relative humidity is recorded as a percentage. Does its range from 0% to 100% make the underlying variable discrete?

Hint

A bounded interval can still contain continuously varying values.

Worked solution

No. Relative humidity is modelled as continuous; it can vary within that interval. Recording it to whole percentages limits the recorded precision.

06 / Underlying versus recorded values

Say which one you are classifying.

Rounding a continuous measurement produces a record on a discrete grid.

It does not change the nature of the underlying variable.

A time recorded as 12 seconds to the nearest second represents an underlying duration around 12 seconds, not necessarily exactly 12. In a question asking for the type of “time”, continuous is appropriate; if asked about the set of possible rounded records, those occur at integer-second steps. Explain the distinction.

08 · Rounded heights

Student heights are recorded to the nearest centimetre. Classify the underlying variable and the possible recorded values.

Hint

Separate height from its rounded representation.

Worked solution

Underlying height is continuous quantitative. The rounded records lie on a whole-centimetre grid and so form a discrete set of recorded values.

09 · Age needs a definition

Compare exact age as elapsed time since birth with age in completed whole years.

Hint

The measurement definitions differ.

Worked solution

Exact elapsed age is continuous. Age in completed whole years takes integer values and is discrete. State which definition the study uses.

07 / Classify and justify

Give a reason based on meaning and allowed values.

  1. Is the value a category or a numerical amount?
  2. If quantitative, what values are allowed?
  3. Distinguish the underlying measurement from rounding.
  4. State units and any important definition.
  5. Do not let a numerical code or fractional mean mislead you.

10 · Three classifications

A delivery study records vehicle registration, number of stops and exact route distance. Classify each with a reason.

Hint

One is an identifier, one a count and one a measurement.

Worked solution

Registration is a qualitative identifier. Number of stops is quantitative discrete because it is a count. Exact route distance is quantitative continuous because it is measured on a continuous length scale.

Section 1 of 7 · Meaning before appearance