Skip to content

Collecting Data

AP Statistics · Topic 3

Video lesson for this topic Open the video page
7:31

Collecting Data

An online poll collects thirty thousand replies. A careful survey asks only one thousand people. Which is closer to the truth? The small one, almost every…

English narration · English + 中文 subtitles burned in

3.1

Can We Trust the Data We Collected?

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

VAR-1
Given that variation may be random or not, conclusions are uncertain.

VAR-1.E
Identify questions to be answered about data collection methods. [Skill 1.A]

  • VAR-1.E.1 Methods for data collection that do not rely on chance result in untrustworthy conclusions.

Source: College Board AP Course and Exam Description

A website asks visitors "Do you like this website?" and 92% click Yes. A survey at a gym finds that most people exercise daily. Both numbers are real, and both are nearly useless, because of who was asked. This unit is about the decisions made before any data exist, which decide what the data can ever tell you.

A conclusion is only as good as the data behind it. How data are collected decides what you may conclude – whether you can generalize to a population 总体, and whether you can claim cause and effect. Poorly collected data can be worse than none.

Vocabulary Train
English
population/ˌpɒpjʊˈleɪʃn/
3.2

Observational Studies and Experiments

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

DAT-2
The way we collect data influences what we can and cannot say about a population.

DAT-2.A
Identify the type of a study. [Skill 1.C]

  • DAT-2.A.1 A population consists of all items or subjects of interest.
  • DAT-2.A.2 A sample selected for study is a subset of the population.
  • DAT-2.A.3 In an observational study, treatments are not imposed. Investigators examine data for a sample of individuals (retrospective) or follow a sample of individuals into the future collecting data (prospective) in order to investigate a topic of interest about the population. A sample survey is a type of observational study that collects data from a sample in an attempt to learn about the population from which the sample was taken.
  • DAT-2.A.4 In an experiment, different conditions (treatments) are assigned to experimental units (participants or subjects).

DAT-2.B
Identify appropriate generalizations and determinations based on observational studies. [Skill 4.A]

  • DAT-2.B.1 It is only appropriate to make generalizations about a population based on samples that are randomly selected or otherwise representative of that population.
  • DAT-2.B.2 A sample is only generalizable to the population from which the sample was selected.
  • DAT-2.B.3 It is not possible to determine causal relationships between variables using data collected in an observational study.

Source: College Board AP Course and Exam Description

  • In an observational study 观察性研究 you measure individuals without trying to influence them. It can show association, but not causation, because lurking variables may explain the link.
  • In an experiment 实验 you deliberately impose a treatment 处理 and compare responses. A well-designed experiment can establish cause and effect.

An observational study can look back at data that already exist (retrospective, such as old medical records) or follow a group forward in time and collect data as things happen (prospective). Either way, nothing is imposed, so neither kind can show causation. Results can be generalized only to the population the sample was randomly chosen from: a random sample of one school's students says nothing about students at other schools.

Worked example (observational or experiment?). An article reports that adults who sleep at least $7$ hours a night have lower blood pressure. The researchers asked people how much they sleep and measured their blood pressure. The explanatory variable is hours of sleep; the response is blood pressure. It is an observational study: no one was told how much to sleep. Exercise status could be a confounding variable 混杂变量: people who exercise regularly may tend to sleep longer, and exercise lowers blood pressure, so the study cannot tell whether sleep or exercise causes the lower readings. A full answer always gives both links: to the explanatory variable and to the response.

Explore

Observational study or experiment?

In an experiment the researcher imposes a treatment (and can show cause); an observational study only records what already happens (and can show association, not cause).

Vocabulary Train
English
observational study/ɒbzəˈveɪʃənl ˈstʌdi/
experiment/ekˈsperɪmənt/
treatment/ˈtriːtmənt/
confounding variable/kənˈfaʊndɪŋ ˈveərɪəbl/
3.3

Random Sampling

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

DAT-2
The way we collect data influences what we can and cannot say about a population.

DAT-2.C
Identify a sampling method, given a description of a study. [Skill 1.C]

  • DAT-2.C.1 When an item from a population can be selected only once, this is called sampling without replacement. When an item from the population can be selected more than once, this is called sampling with replacement.
  • DAT-2.C.2 A simple random sample (SRS) is a sample in which every group of a given size has an equal chance of being chosen. This method is the basis for many types of sampling mechanisms. A few examples of mechanisms used to obtain SRSs include numbering individuals and using a random number generator to select which ones to include in the sample, ignoring repeats, using a table of random numbers, or drawing a card from a deck without replacement.
  • DAT-2.C.3 A stratified random sample involves the division of a population into separate groups, called strata, based on shared attributes or characteristics (homogeneous grouping). Within each stratum a simple random sample is selected, and the selected units are combined to form the sample.
  • DAT-2.C.4 A cluster sample involves the division of a population into smaller groups, called clusters. Ideally, there is heterogeneity within each cluster, and clusters are similar to one another in their composition. A simple random sample of clusters is selected from the population to form the sample of clusters. Data are collected from all observations in the selected clusters.
  • DAT-2.C.5 A systematic random sample is a method in which sample members from a population are selected according to a random starting point and a fixed, periodic interval.
  • DAT-2.C.6 A census selects all items/subjects in a population.

DAT-2.D
Explain why a particular sampling method is or is not appropriate for a given situation. [Skill 1.C]

  • DAT-2.D.1 There are advantages and disadvantages for each sampling method depending upon the question that is to be answered and the population from which the sample will be drawn.

Source: College Board AP Course and Exam Description

To learn about a population you take a sample 样本. Random sampling 随机抽样 protects against selection bias 偏差 and lets you generalize (it cannot fix undercoverage, nonresponse, or response bias — see below). Common designs:

  • Simple random sample (SRS) 简单随机样本: every group of the chosen size is equally likely.
  • Stratified 分层: split the population into similar strata, then sample within each.
  • Cluster 整群: split into clusters, randomly choose whole clusters.
  • Systematic 系统: pick every $k$th individual from a random start.

A census 普查 measures every individual in the population, which is usually too slow or expensive. Most samples are drawn without replacement (no one can be chosen twice); drawing with replacement puts each chosen individual back, so it can be picked again.

Strengths and weaknesses. A stratified sample gives more precise estimates than an SRS of the same size when the strata really differ in the response (for example, juniors and seniors answer differently), and it guarantees every stratum is represented. A cluster sample is cheaper and quicker (survey whole classrooms or whole streets), but if the clusters differ from one another, the estimate is less precise. A systematic sample is easy to carry out, but it fails if the list has a repeating pattern. If a factory's two machines alternate on a conveyor belt, "every $10$th tortilla" always comes from the same machine, so the sample does not represent the day's production.

Four random sampling designs: who gets selected, and how
Four random sampling designs: who gets selected, and how

A convenience sample 方便样本 or voluntary response sample is not random and is biased.

Worked example. To survey a school, an administrator lists all students by grade and randomly selects $20$ from each grade. This is a stratified sample – the grades are the strata – which guarantees every grade is represented, unlike an SRS that might by chance draw few from one grade.

Common mistakes. Mixing up stratified and cluster samples. Stratified: split into groups of similar individuals and take a random sample from every group. Cluster: split into groups that each look like the whole population, randomly choose some groups, and survey everyone in them. Also, calling a sample random when it is only convenient (“the first $50$ students in the canteen”).

Random outcomes: dice make each face equally likely under fair conditions
Random outcomes: dice make each face equally likely under fair conditions
Vocabulary Train
English
sample/ˈsæmpl/
Random sampling/ˈrændəm ˈsæmplɪŋ/
bias/ˈbaɪəs/
Simple random sample (SRS)/ˈsɪmpl ˈrændəm ˈsæmpl/
Stratified/ˈstrætɪfaɪd/
Cluster/ˈklʌstə/
Systematic/ˌsɪstəˈmætɪk/
census/ˈsensəs/
convenience sample/kənˈviːnɪəns ˈsæmpl/
3.4

When Sampling Goes Wrong

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

DAT-2
The way we collect data influences what we can and cannot say about a population.

DAT-2.E
Identify potential sources of bias in sampling methods. [Skill 1.C]

  • DAT-2.E.1 Bias occurs when certain responses are systematically favored over others.
  • DAT-2.E.2 When a sample is comprised entirely of volunteers or people who choose to participate, the sample will typically not be representative of the population (voluntary response bias).
  • DAT-2.E.3 When part of the population has a reduced chance of being included in the sample, the sample will typically not be representative of the population (undercoverage bias).
  • DAT-2.E.4 Individuals chosen for the sample for whom data cannot be obtained (or who refuse to respond) may differ from those for whom data can be obtained (nonresponse bias).
  • DAT-2.E.5 Problems in the data gathering instrument or process result in response bias. Examples include questions that are confusing or leading (question wording bias) and self-reported responses.
  • DAT-2.E.6 Non-random sampling methods (for example, samples chosen by convenience or voluntary response) introduce potential for bias because they do not use chance to select the individuals.

Source: College Board AP Course and Exam Description

Bias makes estimates systematically miss the truth:

  • Undercoverage 覆盖不足: some groups are left out of the sampling frame.
  • Nonresponse 无回应: selected people do not answer.
  • Response bias 回应偏差: people answer inaccurately (bad wording, sensitive topics).

Response bias has two common forms. Question wording bias 问题措辞偏差 comes from confusing or leading questions ("Don't you agree that the unfair new dress code should be dropped?"). Self-reporting is unreliable when people forget or want to look good: asked how many miles they walk, people tend to overstate it, so an activity tracker gives more accurate data than a journal.

Worked example (bias and its direction). An environmental science teacher asks only the students in her own classes whether the school should install solar panels. Her students have studied renewable energy and may be more likely to say yes than the school as a whole. The sample proportion who answer yes will probably overestimate the true proportion for all students.

Bias is about a consistent error in one direction – increasing the sample size does not fix it.

Common mistakes. Saying a larger sample reduces bias: it reduces variability only. Naming a bias without saying, in context, which way it pushes the estimate (too high or too low) and why.

Undercoverage, nonresponse and response bias
Undercoverage, nonresponse and response bias
Vocabulary Train
English
Undercoverage/ˌʌndəˈkʌvərɪdʒ/
Nonresponse/ˌnɒnrɪˈspɒns/
Response bias/rɪˈspɒns ˈbaɪəs/
question wording bias/ˈkwestʃn ˈwɜːdɪŋ ˈbaɪəs/
3.5

Designing an Experiment

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

VAR-3
Well-designed experiments can establish evidence of causal relationships.

VAR-3.A
Identify the components of an experiment. [Skill 1.C]

  • VAR-3.A.1 The experimental units are the individuals (which may be people or other objects of study) that are assigned treatments. When experimental units consist of people, they are sometimes referred to as participants or subjects.
  • VAR-3.A.2 An explanatory variable (or factor) in an experiment is a variable whose levels are manipulated intentionally. The levels or combination of levels of the explanatory variable(s) are called treatments.
  • VAR-3.A.3 A response variable in an experiment is an outcome from the experimental units that is measured after the treatments have been administered.
  • VAR-3.A.4 A confounding variable in an experiment is a variable that is related to the explanatory variable and influences the response variable and may create a false perception of association between the two.

VAR-3.B
Describe elements of a well-designed experiment. [Skill 1.B]

  • VAR-3.B.1 A well-designed experiment should include the following:
    • a. Comparisons of at least two treatment groups, one of which could be a control group.
    • b. Random assignment/allocation of treatments to experimental units.
    • c. Replication (more than one experimental unit in each treatment group).
    • d. Control of potential confounding variables where appropriate.

VAR-3.C
Compare experimental designs and methods. [Skill 1.C]

  • VAR-3.C.1 In a completely randomized design, treatments are assigned to experimental units completely at random. Random assignment tends to balance the effects of uncontrolled (confounding) variables so that differences in responses can be attributed to the treatments.
  • VAR-3.C.2 Methods for randomly assigning treatments to experimental units in a completely randomized design include using a random number generator, a table of random values, drawing chips without replacement, etc.
  • VAR-3.C.3 In a single-blind experiment, subjects do not know which treatment they are receiving, but members of the research team do, or vice versa.
  • VAR-3.C.4 In a double-blind experiment neither the subjects nor the members of the research team who interact with them know which treatment a subject is receiving.
  • VAR-3.C.5 A control group is a collection of experimental units either not given a treatment of interest or given a treatment with an inactive substance (placebo) in order to determine if the treatment of interest has an effect.
  • VAR-3.C.6 The placebo effect occurs when experimental units have a response to a placebo.
  • VAR-3.C.7 For randomized complete block designs, treatments are assigned completely at random within each block.
  • VAR-3.C.8 Blocking ensures that at the beginning of the experiment the units within each block are similar to each other with respect to at least one blocking variable. A randomized block design helps to separate natural variability from differences due to the blocking variable.
  • VAR-3.C.9 A matched pairs design is a special case of a randomized block design. Using a blocking variable, subjects (whether they are people or not) are arranged in pairs matched on relevant factors. Matched pairs may be formed naturally or by the experimenter. Every pair receives both treatments by randomly assigning one treatment to one member of the pair and subsequently assigning the remaining treatment to the second member of the pair. Alternately, each subject may get both treatments.

Source: College Board AP Course and Exam Description

Good experiments follow three principles:

  • Comparison with a control group 对照组 (often a placebo 安慰剂).
  • Random assignment 随机分配 of subjects to treatments, to balance out other variables.
  • Replication 重复: enough subjects per treatment to see a real effect.
A completely randomized experiment compares a treatment group with a control group
A completely randomized experiment compares a treatment group with a control group

The vocabulary. The experimental units 实验单元 are the individuals that receive treatments (called subjects or participants when they are people). The explanatory variable in an experiment is a factor 因子, and its values are levels; each level or combination of levels is a treatment. The response variable is what is measured afterwards.

Worked example. A gardener tests three fertilisers on $30$ tomato plants and measures each plant's mass of fruit. Treatments: the three fertilisers. Experimental units: the $30$ plants. Response: mass of fruit. With two factors, such as fertiliser (3 levels) and watering (2 levels), there are $3\times2=6$ treatments.

Is there a control group? A control group gets no active treatment, or a placebo that looks like the real treatment, so that the treatment effect can be separated from everything else. The placebo effect is a real response to an inactive treatment, caused by expecting to improve. An experiment comparing two new drugs has no control group, but it can still compare the two drugs with each other.

Confounding 混杂 occurs when another variable is tied to the treatment so their effects cannot be separated; random assignment guards against it. Blinding 盲法 hides who is getting which treatment to prevent expectation effects: in a single-blind 单盲 study only one side is kept unaware (usually the subjects, or only the people assessing the result), while in a double-blind 双盲 study neither the subjects nor the researchers who interact with them know, blocking both the placebo effect and biased assessment. Blocking 区组 groups similar subjects and randomizes within each block to reduce variability.

Worked example: describing random assignment. Forty volunteers will test two study apps, A and B, 20 per app. A full-credit description names the method precisely enough that someone else could carry it out:

Number the volunteers 1 to 40. Use a random number generator to choose integers from 1 to 40, ignoring repeats, until 20 different numbers are chosen. Those 20 volunteers use app A; the remaining 20 use app B.

"Randomly put them into two groups" earns nothing: it does not say how. Drawing names from a hat also works, if you say the slips are the same size and well mixed.

Vocabulary Train
English
control group/kənˈtrəʊl ɡruːp/
placebo/pləˈsiːbəʊ/
Random assignment/ˈrændəm əˈsaɪnmənt/
Replication/ˌreplɪˈkeɪʃn/
experimental units/ekˌsperɪˈmentl ˈjuːnɪts/
factor/ˈfæktə/
Confounding/kənˈfaʊndɪŋ/
Blinding/ˈblaɪndɪŋ/
single-blind/ˈsɪŋɡl blaɪnd/
double-blind/ˈdʌbl blaɪnd/
Blocking/ˈblɒkɪŋ/
3.6

Choosing the Right Design

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

VAR-3
Well-designed experiments can establish evidence of causal relationships.

VAR-3.D
Explain why a particular experimental design is appropriate. [Skill 1.C]

  • VAR-3.D.1 There are advantages and disadvantages for each experimental design depending on the question of interest, the resources available, and the nature of the experimental units.

Source: College Board AP Course and Exam Description

Match the design to the goal: use a completely randomized design for uniform subjects; a randomized block design when a known variable (sex, age) affects the response; a matched-pairs design when each subject can serve as its own control. State how you would carry out the randomization.

A randomized block design: group similar subjects, then randomize within each block
A randomized block design: group similar subjects, then randomize within each block

Worked example: blocking. The study-app volunteers are 24 Grade 10 and 16 Grade 11 students, and grade level surely affects test scores. A randomized block design 随机区组设计 separates the two grades first. Within each grade, randomly assign half to app A and half to app B: 12 and 12 in Grade 10, 8 and 8 in Grade 11. Then compare the apps within each grade. Grade differences can no longer hide, or exaggerate, the effect of the app.

Worked example (matched pairs with twins). A dermatologist tests two acne creams on $10$ pairs of twins. Each twin's acne is similar to the other twin's, but severity differs a lot between pairs. In a matched-pairs design 配对设计, for each pair, flip a coin: heads, the first-listed twin gets cream A and the other gets cream B; tails, the reverse. Then compare the two twins in each pair. Because twins start alike, a difference within a pair is mainly due to the cream, not to how severe the acne was to begin with. A single person can also be their own pair: each subject uses both treatments, in a random order.

Vocabulary Train
English
randomized block design/ˈrændəmaɪzd blɒk dɪˈzaɪn/
matched-pairs design/mætʃt peəz dɪˈzaɪn/
3.7

What an Experiment Lets You Conclude

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

VAR-3
Well-designed experiments can establish evidence of causal relationships.

VAR-3.E
Interpret the results of a well-designed experiment. [Skill 4.B]

  • VAR-3.E.1 Statistical inference attributes conclusions based on data to the distribution from which the data were collected.
  • VAR-3.E.2 Random assignment of treatments to experimental units allows researchers to conclude that some observed changes are so large as to be unlikely to have occurred by chance. Such changes are said to be statistically significant.
  • VAR-3.E.3 Statistically significant differences between or among experimental treatment groups are evidence that the treatments caused the effect.
  • VAR-3.E.4 If the experimental units used in an experiment are representative of some larger group of units, the results of an experiment can be generalized to the larger group. Random selection of experimental units gives a better chance that the units will be representative.

Source: College Board AP Course and Exam Description

Two questions decide the scope of a conclusion:

  • Random assignment used? Then a significant difference can be attributed to the treatment (causation) – for these subjects.
  • Random sampling from a population? Then results generalize to that population.

Only an experiment with random assignment supports a cause-and-effect claim; only random sampling supports generalization. Say exactly which you have.

Statistically significant 统计显著 means the difference between the treatment groups is too large to be explained easily by the chance variation of random assignment alone. In a well-designed experiment, a statistically significant difference is evidence that the treatments caused the difference.

Worked example. Researchers randomly assign $100$ volunteers to a new drug or a placebo, and the drug group improves significantly more. Because of the random assignment, the improvement can be attributed to the drug (causation) – but because the subjects were not randomly sampled, the conclusion applies only to these volunteers and does not automatically generalize to everyone.

If random assignment alone rarely produces a difference this large, the result is statistically significant
If random assignment alone rarely produces a difference this large, the result is statistically significant
Vocabulary Train
English
statistically significant/stəˈtɪstɪkli sɪɡˈnɪfɪkənt/
3.7

The scope of a conclusion

Random assignment No random assignment
Random sampling cause and effect, for the whole population association only, for the whole population
No random sampling cause and effect, for these subjects only association only, for these subjects only

Read the design once for each question: was the sample chosen at random (generalize?), and were the treatments assigned at random (causation?).

Common mistakes. Claiming cause and effect from an observational study; generalizing an experiment on volunteers to a whole population; and confusing random sampling (who is in the study) with random assignment (who gets which treatment).

3.7

Practice

Answer each before reading the answers below.

  1. A teacher surveys the first 30 students to arrive at school. Name the sampling method and one likely bias.

  2. A school has 900 students in 30 homerooms. The principal randomly selects 3 homerooms and surveys every student in them. Name the design.

  3. Describe how to randomly assign 30 tomato plants to two fertilisers, 15 each.

  4. A study finds that people who drink more coffee live longer, from medical records. Can it conclude that coffee causes longer life? Explain.

  5. A student says: "A sample of 10,000 people from a voluntary online poll is better than a random sample of 1,000." Correct the student.

  6. A study records whether $500$ adults walk daily and their cholesterol level over five years. Is it an experiment? What could be a confounding variable, and why?

  7. A researcher wants to estimate the mean height of students in a school with very different grade levels (Grades 7 to 12). Suggest a sampling method and explain why it is better than an SRS of the same size.

3.7

Answers

  1. A convenience sample. Early arrivers may differ systematically, for example by living closer or by being more organised, so the results may be biased.

  2. A cluster sample: the homerooms are clusters, and every member of each chosen cluster is surveyed.

  3. Number the plants 1 to 30. Use a random number generator to choose 15 different numbers from 1 to 30; those plants get fertiliser A and the other 15 get fertiliser B.

  4. No. This is an observational study. Coffee drinkers may differ in other ways, such as income or health, which could explain the longer lives. Only random assignment of coffee could support causation.

  5. A voluntary response sample is biased: people with strong opinions are more likely to respond. A larger biased sample is still biased; it only makes the wrong answer look more precise. The random sample of 1,000 is better.

  6. No, it is an observational study: nobody was assigned to walk. Diet could confound: adults who walk daily may also eat more healthily, and diet affects cholesterol, so the effect of walking cannot be separated from the effect of diet.

  7. A stratified random sample by grade. Heights differ a lot between grades, so sampling within each grade (and combining) gives a more precise estimate than an SRS, which might by chance contain too many students from one grade.

3.7

Exam tips

  • Distinguish an observational study (finds association) from an experiment (can show causation).
  • Good sampling is random (SRS, stratified, cluster) — beware bias (voluntary response, undercoverage, nonresponse).
  • Good experiments use control, randomization, and replication; blocking handles a known nuisance variable.
  • Only a randomized experiment supports a cause-and-effect conclusion.
  • Name the population, sample, and any confounding clearly.
  • To explain confounding, link the variable to both the explanatory variable and the response, in context.
  • Describe randomization so precisely that someone else could carry it out: label, random method, what to do with repeats, who gets which treatment.

Interactive lessons on this topic

Work through it step by step, with instant-check exercises.

Past Papers

More topics in AP Statistics

Log in or create account

IGCSE, A-Level & AP