hanegreefs.com/Statistics I
Chapter 1 of 10

Data and decisions

What counts as data, the who and what of a data table, the difference between categorical and quantitative variables, cross-sectional versus time series data, and the software and calculator used in the course.

Textbook: Ch. 1 · Sessions: Module 1, lecture 1, tutorial 1 · About 35 minutes

What data areImportant

In statistics, data are recorded values together with their context. The number 47 on its own says nothing; "47 minutes, the delivery time of order 1023 on a Monday" is data. The context answers the W questions: who was measured, what was measured (and in which units), and also where, when, why and how. Information about the data, such as the source or the date of collection, is called metadata.

Statistics is the set of tools and the reasoning to summarise data, model them and find out what they can tell us: look for patterns, connections and exceptions, and use them to make better decisions.

Data usually sit in a data table. Each row is a case (the who: a customer, a transaction, a country), and each column is a variable (the what: age, amount, region). In a business database, cases that are transactions are often called records; tables can be linked through a shared key in a relational database.

Common trapA table without units or without a clear "who" is not yet usable data. Always ask what one row stands for before you compute anything.

Types of variablesImportant

The single most important classification in the course decides which tables, charts and summaries make sense.

TypeValues areExamplesTypical summary
Categorical, nominalcategory names without ordercountry, payment method, brandcounts and percentages
Categorical, ordinalcategories with a natural ordersatisfaction (poor to excellent), education levelcounts, percentages, sometimes a median
Identifiera label that singles out one casestudent number, order IDnone: it only identifies
Quantitativenumbers with unitsprice in euro, time in minutes, count of itemsmean, median, standard deviation, quartiles

A number is not automatically quantitative. A postal code or a phone number is written in digits, but adding or averaging it makes no sense, so it is categorical. The test: does arithmetic on the values mean something, and do the values have a unit?

Worked example

Classifying the columns of a sales file

A web shop keeps, for each order: order number, date, country, number of items, basket value in euro, and a customer rating from one to five stars.

1

Order number

an identifier: unique per case
2

Country

categorical, nominal
3

Number of items and basket value

quantitative (counts of items; euro)
4

Star rating

ordinal: the stars are ordered, but the step from one to two stars need not equal the step from four to five
Answer

Use bar charts and percentages for country and rating, and histograms, means and standard deviations for items and basket value.

Cross-sectional data and time seriesNeutral

Cross-sectional data measure many cases at (roughly) the same moment, such as the number of shops of a chain in each country at the end of a year. A time series follows one variable for one unit at equally spaced moments: every day, month, quarter or year.

The equal spacing matters. Annual figures for 2010, 2011, 2012 and 2013 form a time series; figures for 2010, 2011, 2015 and 2024 do not, because the gaps differ and a time series plot would distort the pattern.

People who answer a survey are respondents; people in an experiment are subjects or participants; when the units are not people (plants, websites, machines) we speak of experimental units.

Calculator and softwareNeutral

The course works with three tools. The TI-84 calculator is required on the exam: you enter lists with STAT, EDIT and use the statistical functions listed on the formula sheet. R, run inside the RStudio environment, is used in the tutorials for larger data sets and graphs. A spreadsheet is fine for keeping lists, but not for serious statistical work. Data are best stored as plain text files, which any program can read.

Two writing habits from the course pay off everywhere: always carry the units through a calculation, so the result shows its own unit, and write ≈ instead of = when you round.

Since the lectureThe syllabus installation guide mentions R 4.2.2. R 4.5.0 was released on 11 April 2025, and every command used in this course works the same way in the newer versions. Posit, the firm behind RStudio, also released a second free environment, Positron, which left beta in July 2025; the course itself keeps using RStudio.

Key takeaways

  • Data = values plus context: who, what (with units), where, when, why and how.
  • Rows are cases, columns are variables.
  • Categorical (nominal, ordinal, identifier) versus quantitative (numbers with units).
  • Digits do not make a variable quantitative: postal codes and IDs are categorical.
  • Cross-section: many cases at one time; time series: one variable at equal time steps.
  • Carry units and use ≈ when rounding.

Loading cards
Question
Click, tap or press space to flip
Answer

Multiple choice (8)

Question 1 · Chapter 1

Which variable in a property listing is categorical?

Why: Style names a category; the others are numbers with units or counts.
Question 2 · Chapter 1

A customer number is best described as...

Why: Its only role is to single out a case.
Question 3 · Chapter 1

Hotel ratings of one to five stars are...

Why: The categories have an order, but no fixed unit between them.
Question 4 · Chapter 1

Which data set is a time series?

Why: One variable followed at equally spaced moments.
Question 5 · Chapter 1

In a data table, the cases are...

Why: Rows hold the who; columns hold the what.
Question 6 · Chapter 1

Figures for 2018, 2019, 2022 and 2025 are not a proper time series because...

Why: A time series needs regularly spaced moments.
Question 7 · Chapter 1

Which question is NOT one of the W questions about data?

Why: The W questions describe the context of the data.
Question 8 · Chapter 1

An analyst writes "mean delivery time = 23.4" without a unit. What is missing?

Why: The course asks to carry units in every result.

Exam-style open questions (2)

Open question · Chapter 1

Classify the variables

A gym records for each member: membership number, gender, age in years, membership type (basic, plus, premium) and the number of visits last month. Classify each variable and say which summary fits it.

Show the worked outline
  • Membership number: identifier, no summary.
  • Gender: categorical nominal; counts and percentages, bar chart.
  • Age and number of visits: quantitative (years; visits); mean, median, standard deviation, histogram.
  • Membership type: categorical ordinal; counts and percentages, in their natural order.
Open question · Chapter 1

Cross-section or time series

Give one cross-sectional and one time series data set that a supermarket chain could use to decide on opening hours, and say what one row would be in each.

Show the worked outline
  • Cross-section: footfall per store on one Saturday; one row per store.
  • Time series: total visitors per hour for one store over several weeks; one row per hour, equally spaced.
  • The time series shows patterns over the day; the cross-section compares stores.

LabVariable type sorter

Each answer comes with a one-line reason.