Data Types and Sampling Methods
Data Types and Sampling Methods are two foundation ideas in statistics. Before we can analyze data, we need to know what kind of data we have and how it was collected. These choices affect what graphs make sense, what calculations are appropriate, and whether the conclusions are trustworthy.
In this lesson, you will learn how to distinguish categorical data from quantitative data, and how to evaluate four common sampling methods: simple random sampling, stratified sampling, cluster sampling, and systematic sampling. You will also learn how to spot possible bias in a sample.
Why this matters: If the wrong type of data is identified, the analysis can be misleading. If the sample is collected poorly, even perfect calculations will not give reliable results. Good statistics starts with good data.
1. Populations, Samples, and Bias
A population is the entire group you want to study. A sample is the smaller group actually observed or measured.
- Population: all 12th Grade students in a school
- Sample: 100 students chosen from that school
Because it is often too expensive or time-consuming to study every member of a population, statisticians use samples. The goal is for the sample to represent the population well.
Bias happens when a sampling method tends to favor certain outcomes or certain groups, causing the sample to not fairly represent the population.
For example, if a school surveys only students in advanced math classes about homework time, the results may not represent all students. That sample is likely biased because it excludes many students with different experiences.
2. Data Types
Statistics often begins by asking: What kind of variable is being recorded? At this level, the two main types are categorical and quantitative.
Categorical Data
Categorical data places individuals into groups or categories. The values are labels, not measurements. You do not add or average category names.
Examples of categorical data include:
- Eye color
- Favorite subject
- Type of phone used
- Whether a student has a part-time job: yes or no
For categorical data, we often summarize using:
- Counts
- Percentages
- Bar graphs
- Pie charts
Quantitative Data
Quantitative data consists of numerical values that represent amounts or measurements. These values usually make sense to add, subtract, average, or compare by size.
Examples of quantitative data include:
- Height in centimeters
- Test score
- Number of siblings
- Time spent studying
For quantitative data, we often summarize using:
- Mean or median
- Range or standard deviation
- Dot plots, histograms, or box plots
Important idea: Just because data uses numbers does not always mean it is quantitative. If the numbers are only labels, then the data is still categorical.
For example, if jerseys are numbered 4, 12, and 30, those numbers identify players, but they do not measure an amount. Jersey number is categorical, not quantitative.
3. Comparing Categorical and Quantitative Data
- Categorical: describes which group something belongs to
- Quantitative: describes how much or how many
You can ask yourself these questions:
- Is this value a label or a measurement?
- Would it make sense to calculate an average?
- Does the variable place people into groups, or measure a number?
If the variable is a label or group, it is categorical. If it measures an amount, it is quantitative.
4. Worked Example 1: Identifying Data Types
Classify each variable as categorical or quantitative:
- a) Number of hours a student sleeps each night
- b) Blood type
- c) ZIP code
- d) Number of books read this month
Solution
- a) Number of hours a student sleeps each night: quantitative, because it measures an amount of time.
- b) Blood type: categorical, because it places people into groups such as A, B, AB, or O.
- c) ZIP code: categorical, because although it uses numbers, the numbers are labels for areas, not measurements.
- d) Number of books read this month: quantitative, because it counts how many books were read.
5. Sampling Methods
Once we know what data we want, we need to decide how to select the sample. Different sampling methods are designed for different situations. A good method reduces bias and helps the sample reflect the population.
A. Simple Random Sample
In a simple random sample, every possible sample of a given size has an equal chance of being selected. A common way to do this is to number all members of the population and use a random number generator.
Example: A principal wants to survey 50 students out of 1200 students. Each student is assigned a number from 1 to 1200, and 50 numbers are randomly chosen.
Why it is useful: It is one of the fairest sampling methods because it uses chance rather than human choice.
Possible limitation: It can be hard to carry out if a complete list of the population is not available.
B. Stratified Sample
In a stratified sample, the population is first divided into smaller groups called strata. These groups are formed based on an important characteristic, such as grade level, gender, or region. Then a simple random sample is taken from each stratum.
Example: A school wants a survey sample that represents all grade levels. Students are grouped into 9th, 10th, 11th, and 12th grades, then a random sample is taken from each grade.
Why it is useful: It ensures all important groups are represented.
Possible limitation: If the strata are chosen poorly, or if some strata are sampled unfairly, bias can still occur.
C. Cluster Sample
In a cluster sample, the population is divided into groups called clusters, usually based on location or natural grouping. Then one or more entire clusters are randomly selected, and everyone in those clusters is sampled.
Example: A district wants to survey students. It randomly chooses 3 schools and surveys every student in those schools.
Why it is useful: It is often cheaper and easier, especially when the population is spread out.
Possible limitation: If the chosen clusters are not representative of the whole population, the sample may be biased.
D. Systematic Sample
In a systematic sample, members of the population are selected according to a fixed rule, usually every \(k\)-th person after a random starting point.
If a population has size \(N\) and you want a sample of size \(n\), a common interval is
$$k \approx \frac{N}{n}$$Then you choose a random starting number from 1 to \(k\), and select every \(k\)-th individual.
Example: A manager has a list of 500 customers and wants a sample of 50. Since
$$k = \frac{500}{50} = 10,$$the manager randomly chooses a starting point from 1 to 10, then selects every 10th customer on the list.
Why it is useful: It is simple and fast.
Possible limitation: If there is a pattern in the list that matches the sampling interval, the sample may be biased.
6. How to Tell the Sampling Methods Apart
- Simple random: choose individuals directly at random from the whole population
- Stratified: split into important groups, then sample from each group
- Cluster: split into natural groups, randomly choose whole groups, then survey everyone in them
- Systematic: choose every \(k\)-th person after a random start
A good shortcut is this:
- If every group is sampled, it is usually stratified.
- If only some groups are chosen and everyone in them is surveyed, it is usually cluster.
7. Worked Example 2: Identifying Sampling Methods
Identify the sampling method in each situation.
a) A researcher assigns every student in a college a number and uses a random number generator to select 200 students.
b) A company divides workers into departments and randomly selects 10 workers from each department.
c) A city divides neighborhoods into blocks, randomly selects 5 blocks, and surveys every household on those blocks.
d) A teacher chooses a random starting student on the class list, then surveys every 3rd student.
Solution
- a) Simple random sample
- b) Stratified sample, because the population is divided into departments and each department is sampled
- c) Cluster sample, because whole blocks are selected and everyone in them is surveyed
- d) Systematic sample, because every 3rd student is chosen after a random start
8. Bias in Sampling
Even if a method sounds scientific, it can still produce a biased sample. We should always ask: Does this method give all parts of the population a fair chance to be represented?
Common sources of bias include:
- Undercoverage: some groups are left out of the sampling process
- Convenience sampling: choosing people who are easy to reach instead of choosing randomly
- Voluntary response: only people who choose to respond are included
- Poor timing or wording: when data collection favors certain answers
For this concept, focus especially on whether the sampling method may leave out part of the population or overrepresent one group.
Examples of possible bias:
- Surveying only athletes about school lunch may not represent all students.
- Taking every 10th name from a list arranged by team membership may accidentally over-sample one group.
- Choosing one neighborhood cluster to represent an entire city may be misleading if that neighborhood is unusual.
9. Worked Example 3: Assessing Bias
A school wants to know how much time students spend on homework each night. A survey is given only to students in the library after school.
Question: Is this likely to be biased?
Solution
Yes, this is likely biased. Students in the library after school may be more likely to study longer than the average student. The sample does not fairly represent all students in the school.
This is not one of the four standard random methods. It is closer to a convenience sample because the school surveyed students who were easy to reach.
10. Worked Example 4: Choosing and Evaluating a Method
A district wants to estimate the average number of hours students spend on screens per day. The district has elementary, middle, and high school students. Which sampling method would be a good choice: simple random, stratified, cluster, or systematic?
Solution
A stratified sample would be a strong choice. The district can divide students into elementary, middle, and high school groups, then randomly sample from each group.
This is a good idea because screen time may differ by age group. If the district used only a simple random sample, one school level might be underrepresented by chance. Stratified sampling helps ensure that all major groups are included.
A cluster sample could be easier, such as choosing a few schools and surveying all students there, but it may be less accurate if those schools are not typical of the whole district.
11. Quick Comparison Table in Words
- Categorical data: group or label
- Quantitative data: number or measurement
- Simple random sample: random individuals from the whole population
- Stratified sample: random individuals from every group
- Cluster sample: random whole groups, then survey everyone in them
- Systematic sample: every \(k\)-th individual after a random start
- Bias: a sample that does not fairly represent the population
12. Tips for Test Questions
- If the values are words or labels, think categorical.
- If the values measure an amount, think quantitative.
- If the problem says “randomly choose people from each group,” think stratified.
- If it says “randomly choose groups and survey everyone in them,” think cluster.
- If it says “every 5th,” “every 10th,” or similar, think systematic.
- If it says “use a random number generator on the whole population,” think simple random.
- Always ask whether some people are more likely than others to be included. If so, there may be bias.
Summary
In statistics, categorical data places individuals into groups, while quantitative data measures numerical amounts. Correctly identifying the data type helps determine how the data should be summarized and displayed.
To collect data fairly, statisticians use sampling methods such as simple random, stratified, cluster, and systematic sampling. Each method has strengths, but each can also lead to bias if used poorly. A good statistical conclusion depends on both the right kind of data and a representative sample.
Put what you read to the test
You've worked through Data Types and Sampling Methods. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.