Data types, sampling and bias
IB Mathematics: Analysis and Approaches SLΒ· 4.1 Introduction to statisticsΒ· 15 min read
1. Classifying Data Typesβ βββββ± 4 min
Data Classification
Data is classified based on its nature and measurement scale, which determines what statistical analyses and graphs are valid for the dataset.
Example:
Eye color is qualitative, while height of an adult is quantitative.
All data can first be split into two broad groups: qualitative (categorical) and quantitative (numerical). Qualitative data describes non-numerical qualities or attributes, while quantitative data represents numerical measurements.
Discrete quantitative data: Counted values that can only take specific separated values (e.g. number of students in a classroom)
Continuous quantitative data: Measured values that can take any value within a range (e.g. the weight of a cat)
Classify each of the following as qualitative, discrete quantitative or continuous quantitative: (a) The mass of an apple, (b) The brand of a laptop, (c) The number of customers at a cafe per day.
- 1
For (a): Mass is a numerical measurement that can take any value within a range, even if it is rounded when recorded.
- 2
Conclusion: (a) is continuous quantitative.
- 3
For (b): Brand is a non-numerical category with no inherent numerical ordering.
- 4
Conclusion: (b) is qualitative.
- 5
For (c): Number of customers is a counted value that can only be a non-negative integer.
- 6
Conclusion: (c) is discrete quantitative.
2. Common Sampling Methodsβ β ββββ± 5 min
Population and Sample
= population size, = sample size
The population is the entire group of interest in a statistical study. A sample is a smaller subset of the population selected for analysis.
Example:
If studying test scores of all IB SL students, the population is all IB SL students globally, and a sample is 100 students selected from 10 schools.
Random sampling methods give every member of the population a known non-zero chance of being selected, which helps produce a representative sample. The most common methods tested in IB are:
Simple random sampling: Every sample of size has equal chance of being selected, usually generated with random numbers
Systematic sampling: Select every -th member of the population after a random starting point
Stratified sampling: Split population into strata (groups sharing a characteristic), then sample proportionally from each stratum
Cluster sampling: Split population into naturally occurring clusters, randomly select clusters, then sample all members within selected clusters
A university has 800 first-year, 600 second-year, 400 third-year, and 200 fourth-year students. Calculate the number of students to sample from each year for a stratified sample of size 100.
- 1
First calculate total population size:
- 2
- 3
Calculate the sampling fraction, the proportion of the population to sample:
- 4
- 5
Multiply each year's size by the sampling fraction: First year: , Second year: , Third year: , Fourth year:
- 6
Final answer: 40, 30, 20, 10 students from each year respectively.
3. Sampling Biasβ β ββββ± 6 min
Sampling Bias
Bias occurs when some members of the population are systematically more or less likely to be selected in the sample, leading to unrepresentative results that cannot be generalized to the full population.
Common types of bias you will be asked to identify include: selection bias (the sampling frame excludes part of the population), self-selection bias (participants choose to take part), and survivorship bias (only existing subjects are included).
A researcher wants to find the average amount of time high school students spend exercising per week. They post a survey on a gym's social media page and collect 200 responses. Explain why this sample is biased.
- 1
Identify the population of interest: All high school students. Identify who is systematically excluded: Students who do not follow this gym's social media, and students who do not go to the gym.
- 2
The sample will overrepresent students who exercise more than average, so the calculated average will be higher than the true average for all high school students.
- 3
This is selection bias, because the sampling frame (gym followers) does not represent the entire population of interest.
Exam tip:
When IB asks you to "comment on the validity" of a sampling method, you always need to discuss whether the method produces biased results.
4. Common Pitfalls
Wrong move:
Calling rounded continuous data discrete (e.g. calling age in whole years discrete)
Why:
Data classification is based on the underlying measurement, not how it is recorded. Age is a continuous measurement even when rounded.
Correct move:
Always classify data based on the nature of the measurement, not how it is reported.
Wrong move:
Confusing stratified sampling and cluster sampling
Why:
Both methods split the population into groups, but the sampling process is very different.
Correct move:
Stratified: sample proportionally from every group. Cluster: randomly select whole groups, sample all within selected groups.
Wrong move:
Claiming a large sample size removes bias
Why:
Large sample size reduces random sampling error, but does not fix systematic bias.
Correct move:
Always check for systematic exclusion of population groups first, regardless of sample size.
Wrong move:
Treating all qualitative data as the same type
Why:
While IB SL does not require you to distinguish ordinal vs nominal, you still need to recognize that qualitative data is never quantitative.
Correct move:
Even if categories are labeled with numbers (e.g. jersey numbers), they are still qualitative if the numbers do not represent measurements.
5. Quick Reference Cheatsheet
Category | Type | Key Summary |
|---|---|---|
Data Classification | Qualitative | Non-numerical categorical attributes |
Data Classification | Discrete Quantitative | Counted, distinct values only |
Data Classification | Continuous Quantitative | Measured, any value in range |
Sampling | Simple Random | All -sized samples equally likely |
Sampling | Systematic | Every -th member after random start |
Sampling | Stratified | Proportional sample from every strata |
Sampling | Cluster | Full sample from randomly selected clusters |
Bias | Key Rule | Large sample size does not remove bias |
When this came up on past exams
AI-estimated based on syllabus patterns β cross-check with official past papers for accuracy. Use only as revision-focus signals.
- 2022 Β· 2
Identify type of given data
- 2021 Β· 1
Comment on sampling bias in a study
Going deeper
What's Next
Now that you understand foundational concepts of data collection, classification, and sampling bias, you are ready to move on to organizing, summarizing, and visualizing data. Data classification directly determines which summary measures and graphs are appropriate for a dataset. Understanding bias is also critical for later topics like confidence intervals and hypothesis testing, where unrepresentative samples can lead to incorrect conclusions about population parameters, a common focus of extended response questions in IB exams.
