Data Classification and Sampling
Lesson: Data Classification and Sampling
In statistics, we often work with data, which are pieces of information collected about people, objects, or events. Before we analyze data, we need to understand what type of data we have and how the data were collected. These two ideas are very important because they affect how we summarize data and how trustworthy our conclusions are.
In this lesson, you will learn how to classify variables as qualitative or quantitative, and as discrete or continuous. You will also learn the main sampling methods: random, stratified, systematic, and cluster sampling.
1. What is a variable?
A variable is any characteristic that can be recorded for an individual in a study. An individual could be a person, a school, a car, a package, or anything else being studied.
Examples of variables include:
- Age of a student
- Favorite sport
- Number of siblings
- Height of a plant
- Type of phone used
2. Qualitative vs. Quantitative Variables
The first big classification is whether a variable is qualitative or quantitative.
Qualitative variables describe qualities or categories. They usually do not involve meaningful numerical calculations.
Examples of qualitative variables:
- Eye color
- Blood type
- Political party preference
- Favorite subject
Even if categories are given numbers, the variable can still be qualitative. For example, if students rate lunch as 1 = poor, 2 = fair, 3 = good, these numbers represent categories, not actual amounts.
Quantitative variables represent numerical values where arithmetic makes sense. These variables measure or count something.
Examples of quantitative variables:
- Test score
- Weight
- Distance traveled
- Number of pets
A useful question is: Does the number describe an amount? If yes, the variable is probably quantitative. If it labels a category, it is qualitative.
3. Discrete vs. Continuous Variables
Discrete and continuous are classifications of quantitative variables.
Discrete variables come from counting. They usually take separate values, often whole numbers.
Examples of discrete variables:
- Number of students in a classroom
- Number of text messages received today
- Number of goals scored in a game
You cannot usually have values like 2.5 students or 7.3 goals, so these values are counted one by one.
Continuous variables come from measuring. They can take any value in an interval, including decimals.
Examples of continuous variables:
- Height
- Time
- Temperature
- Mass
For example, a runner's time might be 12.4 seconds, 12.43 seconds, or 12.431 seconds depending on the precision of the measuring tool.
Important idea:
- Qualitative: categories
- Quantitative: numbers that measure or count
- Discrete: counted values
- Continuous: measured values
4. Population and Sample
In statistics, the population is the entire group we want information about. A sample is a smaller group selected from the population.
For example:
- If a school wants to know how much sleep its students get, the population is all students in the school.
- If the school surveys 150 students, those 150 students are the sample.
We use samples because studying an entire population is often too expensive, takes too much time, or is not practical.
5. Why Sampling Method Matters
A sample should represent the population fairly. If the sample is chosen poorly, the results may be biased. A biased sample tends to favor certain outcomes and does not reflect the whole population well.
For example, if a school surveys only students in an honors math class about homework time, the sample may not represent all students in the school.
6. Main Sampling Methods
There are several common sampling methods. You should know how each one works and when it is useful.
A. Random Sampling
In a random sample, every individual in the population has an equal chance of being selected.
Example: Number all 2,000 students in a school from 1 to 2000, then use a random number generator to choose 100 students.
Why it is useful: It helps reduce bias because selection is based on chance, not personal choice.
B. Stratified Sampling
In a stratified sample, the population is divided into groups called strata that share a common trait. Then a random sample is taken from each stratum.
Example: A school divides students by grade level (9th, 10th, 11th, 12th) and randomly selects students from each grade.
Why it is useful: It ensures that important subgroups are represented in the sample.
C. Systematic Sampling
In a systematic sample, you choose individuals according to a fixed pattern after a random starting point.
Example: From an alphabetized list of students, start at the 7th student and then choose every 20th student after that.
If the starting point is random and the list has no hidden pattern that affects results, this method can work well.
D. Cluster Sampling
In a cluster sample, the population is divided into natural groups, called clusters. Then some clusters are randomly selected, and all individuals in those selected clusters are surveyed.
Example: A district randomly selects 3 homeroom classes and surveys every student in those classes.
Why it is useful: It is often easier and cheaper when the population is spread out.
7. Comparing Stratified and Cluster Sampling
Students often confuse stratified and cluster sampling, so it is important to compare them carefully.
- Stratified sampling: divide into groups based on a characteristic, then randomly choose some individuals from every group.
- Cluster sampling: divide into natural groups, then randomly choose entire groups and include everyone in those groups.
Example:
- Stratified: choose some students from each grade level.
- Cluster: choose a few entire classrooms and survey every student in them.
8. How to Identify the Sampling Method
Use these clues:
- If everyone has an equal chance directly, think random.
- If the population is split into categories and sampled from each category, think stratified.
- If every nth person is selected, think systematic.
- If whole groups are chosen, think cluster.
9. Worked Example 1: Classifying Variables
Classify each variable as qualitative or quantitative. If it is quantitative, say whether it is discrete or continuous.
- Number of books in a backpack
- Brand of shoes worn by a student
- Time spent studying for a test
- Number of languages spoken
Solution
- Number of books in a backpack: quantitative, discrete. It is a count.
- Brand of shoes worn by a student: qualitative. It names a category.
- Time spent studying for a test: quantitative, continuous. Time is measured and can include decimals.
- Number of languages spoken: quantitative, discrete. It is counted in whole numbers.
10. Worked Example 2: Identifying a Sampling Method
A principal wants to survey students about cafeteria food. She separates students into freshmen, sophomores, juniors, and seniors, then randomly chooses 25 students from each group.
What sampling method is this?
Solution
The students are first divided into groups by grade level, and then a random sample is taken from each group. This is stratified sampling.
Why not cluster sampling? Because the principal did not choose whole groups and survey everyone in them. She selected some individuals from each group.
11. Worked Example 3: Distinguishing Systematic and Random Sampling
A company has a list of 800 employees. It randomly chooses a starting point at employee 12, then selects every 15th employee after that.
What sampling method is this?
Solution
This is systematic sampling because the sample is chosen using a fixed interval: every 15th employee.
The random starting point helps make the sample fairer, but the key feature is the regular pattern.
12. Worked Example 4: Evaluating a Sampling Plan
A student wants to estimate how many hours teenagers spend on social media each day. She asks 30 students from the school library right after school.
Is this likely to be a good sample?
Solution
This is probably not a good sample because it may be biased. Students in the library right after school may not represent all teenagers. For example, they may spend their time differently from students who play sports, work after school, or go straight home.
A better method would be to take a random sample of students from the entire school, or use a stratified sample if the student wants to make sure different grade levels are represented.
13. Choosing the Best Sampling Method
Different situations call for different methods.
- Random sampling is a strong general method when a full list of the population is available.
- Stratified sampling is useful when you want all important subgroups represented.
- Systematic sampling is simple and efficient when data are listed in order and no harmful pattern exists.
- Cluster sampling is useful when the population is naturally grouped and it is easier to sample entire groups.
14. Common Mistakes to Avoid
- Do not call a variable continuous unless it is quantitative first.
- Do not assume that any variable with numbers is quantitative. Sometimes numbers are just labels.
- Do not confuse stratified and cluster sampling.
- Do not ignore bias. Even a large sample can give poor results if it is chosen badly.
15. Quick Check
Try these on your own:
- Classify: hair color
- Classify: number of missed school days
- Classify: body temperature
- A coach selects every 5th athlete from a roster after a random start. What method is used?
- A researcher randomly chooses 4 classrooms and surveys every student in those rooms. What method is used?
Answers
- Hair color: qualitative
- Number of missed school days: quantitative, discrete
- Body temperature: quantitative, continuous
- Every 5th athlete: systematic sampling
- 4 classrooms, everyone surveyed: cluster sampling
Summary
Data classification helps us understand what kind of information we are working with. Qualitative variables describe categories, while quantitative variables describe numerical amounts. Quantitative variables can be discrete if they are counted, or continuous if they are measured.
Sampling is how we choose part of a population to study. Random, stratified, systematic, and cluster sampling each have different uses. Understanding these methods helps you decide whether a sample is fair and whether statistical conclusions are reliable.
Put what you read to the test
You've worked through Data Classification and Sampling. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.