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.
Types of variablesImportant
The single most important classification in the course decides which tables, charts and summaries make sense.
| Type | Values are | Examples | Typical summary |
|---|---|---|---|
| Categorical, nominal | category names without order | country, payment method, brand | counts and percentages |
| Categorical, ordinal | categories with a natural order | satisfaction (poor to excellent), education level | counts, percentages, sometimes a median |
| Identifier | a label that singles out one case | student number, order ID | none: it only identifies |
| Quantitative | numbers with units | price in euro, time in minutes, count of items | mean, 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?
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.
Order number
Country
Number of items and basket value
Star rating
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.
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.
Multiple choice (8)
Which variable in a property listing is categorical?
A customer number is best described as...
Hotel ratings of one to five stars are...
Which data set is a time series?
In a data table, the cases are...
Figures for 2018, 2019, 2022 and 2025 are not a proper time series because...
Which question is NOT one of the W questions about data?
An analyst writes "mean delivery time = 23.4" without a unit. What is missing?
Exam-style open questions (2)
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.
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.