AP · Statistics · Observational Studies and Experiments

Observational Studies and Experiments

13 min readUpdated November 30, 2026FreeAP Statistics, Collecting Data

In an experiment the researcher imposes a treatment on the subjects; in an observational study the researcher only records what already happens. Only an experiment with random assignment supports a cause-and-effect conclusion, because random assignment balances confounding variables. Only random sampling lets you generalize the results to a larger population.

Quick check

  1. A study selects 200 adults at random from a city's voter list. What does selecting them at random protect against?Show answerHide answer

    Bias in who is chosen. Every group of 200 voters had the same chance of being the sample, so it tends to represent the whole list.

  2. Students who eat breakfast tend to get higher grades. Does breakfast raise grades?Show answerHide answer

    No. Students who eat breakfast may differ in other ways, such as sleep or family routines, that also affect grades.

Know these already? Jump to the practice questions

What you'll be able to do

  • Distinguish an observational study from an experiment.
  • Explain how a confounding variable can create or hide an association.
  • Explain what random assignment and random sampling each allow you to conclude.
  • State the scope of inference for a given study, in context.

Key terms

Observational study

A study that measures variables of interest without trying to influence the responses.

In plain English
The researcher watches and records; the subjects choose their own "treatment".
Don't write
"it is an experiment because data were collected".

Experiment

A study in which the researcher deliberately imposes treatments on the experimental units and measures their responses.

In plain English
The researcher decides who gets what.
Don't write
"experiment" for any study with two groups; the researcher must assign the groups.

Confounding variable

A variable that is associated with the explanatory variable and also affects the response, so their effects on the response cannot be separated.

In plain English
A hidden difference between the groups that could explain the result instead.
Don't write
A variable that affects the response but is not linked to the explanatory variable.

Scope of inference

What a study's design allows you to conclude: whether results generalize to a population, and whether cause and effect is justified.

In plain English
Who the results apply to, and whether you can say "causes".
Don't write
"the results prove the treatment works for everyone".

How do you tell an observational study from an experiment?

Ask one question: did the researcher decide which treatment each individual received?

  • If yes, it is an experiment. The explanatory variable is the treatment imposed, and the response variable is the outcome measured.
  • If no, it is an observational study, even if it compares groups and even if the sample was random.

Asking people how much they exercise and how well they sleep is observational. Assigning volunteers to a walking plan or their usual routine, then measuring sleep, is an experiment. The note on Designing Experiments covers how to build a good one.

Check yourself

Researchers compare the test scores of students who chose an online course with those who chose an in-person course. Experiment or observational study?
Show answerHide answer

Observational study. The students chose their own course; the researchers did not assign it.

What is a confounding variable?

In an observational study the groups can differ in many such ways, so you cannot tell whether the explanatory variable or the confounder caused a difference in the response.

Name a confounder with both links. In a hypothetical study of coffee and heart disease, coffee drinkers may smoke more often (link to the explanatory variable), and smoking raises heart disease risk (link to the response). Worked example 1 puts numbers on this.

Examiner's eye

Marks are lost for naming a confounder without both links. Say how it is associated with the explanatory variable and how it affects the response, in context.

Check yourself

Towns with more ice cream sales have more drownings. What variable could be confounding?
Show answerHide answer

Hot weather. Hot days increase ice cream sales and also send more people swimming, which raises drownings.

What do random assignment and random sampling each allow?

  • Random assignment of units to treatments spreads confounding variables, known and unknown, roughly evenly across the groups. So if the groups differ in the response by more than chance would explain, the treatment caused the difference.
  • Random sampling from a population makes the sample represent that population, so results generalize to it, and only to it.

Key idea

Random assignment supports cause and effect; random sampling supports generalizing to the population.

Check yourself

A random sample of 500 adults from one state shows that dog owners report walking more. Can you generalize this to all adults in the country?
Show answerHide answer

No. You can generalize the association only to adults in that state, and you still cannot say dog ownership causes more walking.

Which method decides the scope of inference?

Random assignmentNo random assignment
Random samplingCause and effect, and generalize to the populationAssociation only, but generalize to the population
No random samplingCause and effect for subjects like these onlyAssociation in the sample only

Worked example 1: Spotting a confounder

Question: A hypothetical observational study followed 200 coffee drinkers and 200 non-drinkers. Of the coffee drinkers, 150 smoked; 30 of these smokers and 2 of the 50 non-smokers developed heart disease. Of the non-drinkers, 50 smoked; 10 of these smokers and 6 of the 150 non-smokers developed heart disease. (a) Find the proportion of each group that developed heart disease. (b) Compare the rates within smokers and within non-smokers. (c) Explain why smoking is a confounding variable.

What tells you the method

An overall comparison plus a split by a third variable means check whether the third variable explains the difference.

  1. Step 1: Overall rates.

    Coffee drinkers: 30+2200=0.16\frac{30 + 2}{200} = 0.16. Non-drinkers: 10+6200=0.08\frac{10 + 6}{200} = 0.08.

    Why

    Each rate uses everyone in the group.

  2. Step 2: Rates within each smoking group.

    Smokers: 30150=0.2\frac{30}{150} = 0.2 and 1050=0.2\frac{10}{50} = 0.2. Non-smokers: 250=0.04\frac{2}{50} = 0.04 and 6150=0.04\frac{6}{150} = 0.04.

    Why

    Comparing like with like removes smoking's effect.

  3. Step 3: Explain the confounding.

    Coffee drinkers are more likely to smoke (0.750.75 against 0.250.25), and smokers have a higher heart disease rate. Within each smoking group the rates are equal.

    Why

    A confounder is linked to the explanatory variable and affects the response.

Check it

0.75(0.2)+0.25(0.04)=0.160.75(0.2) + 0.25(0.04) = 0.16, the coffee drinkers' overall rate.

Answer

(a) 0.160.16 for coffee drinkers and 0.080.08 for non-drinkers. (b) Within each smoking group the rates match: 0.20.2 for smokers and 0.040.04 for non-smokers. (c) Smoking is linked to coffee drinking and raises heart disease risk, so it, not coffee, explains the difference.

Worked example 2: Stating the scope of inference

Question: A researcher randomly selects 400 students from a large university and randomly assigns half to a daily meditation app and half to an app with no meditation content. After 8 weeks, the hypothetical mean stress scores are 31.2 and 35.8 (lower is better), a difference larger than chance would explain. (a) Is this an experiment or an observational study? (b) What is the difference in mean stress scores? (c) State the scope of inference.

What tells you the method

Look for random sampling and random assignment, then use the scope-of-inference table.

  1. Step 1: Classify.

    It is an experiment, because the researcher assigned the apps.

    Why

    The treatment was imposed, not chosen.

  2. Step 2: Compare.

    35.8−31.2=4.635.8 - 31.2 = 4.6 points lower stress with meditation.

    Why

    Lower scores mean less stress.

  3. Step 3: Scope.

    Random assignment supports cause and effect; random sampling supports generalizing to all the university's students.

    Why

    The study used both kinds of randomness.

Check it

The population is this university's students, so the conclusion does not extend to students elsewhere.

Answer

(a) An experiment. (b) Mean stress was 4.64.6 points lower with meditation. (c) The meditation app caused lower stress, for all students at this university.

Your turn

Question: A random sample of 1,000 adults in a state is surveyed. Of the 620 who eat breakfast daily, 434 report high energy; of the 380 who do not, 209 report high energy. Find each proportion and state the scope of inference.

  1. Step 1:

    Breakfast eaters: 434620=0.70\frac{434}{620} = 0.70.

  2. Step 2: Your go: find the non-eaters' proportion, then state the scope of inference.

Show the full solutionHide the solution

Non-eaters: 209380=0.55\frac{209}{380} = 0.55. The random sample lets you generalize this association to adults in the state. The study is observational, so you cannot conclude that breakfast causes high energy; adults with healthier routines may both eat breakfast and sleep more.

Answer: 0.700.70 for breakfast eaters and 0.550.55 for non-eaters; the association generalizes to adults in the state, but there is no cause-and-effect conclusion.

Traps

Trap

Thinking a random sample allows a cause-and-effect conclusion.

It seems right because randomness sounds like it removes every problem. But random sampling only makes the sample represent the population. Without random assignment, confounding variables can still explain the difference.

Check yourself

A random sample of workers shows that those who bike to work take fewer sick days. Does biking cause fewer sick days?
Show answerHide answer

Not shown. It is an observational study; healthier people may be more likely to choose biking.

Trap

Thinking an experiment's result applies to everyone.

It seems right because experiments can show cause and effect. But if the subjects were volunteers, the conclusion applies only to subjects like them.

Check yourself

Volunteers randomly assigned to two diets lose more weight on diet A. Does this apply to all adults?
Show answerHide answer

No. Random assignment supports cause and effect, but only for adults like these volunteers.

What's examined

Observational studies, experiments and scope of inference are tested on the AP® Statistics exam (Collecting data: Collecting Data), in both the multiple-choice and free-response sections. Expect Identify, Explain and Justify, always in the context of the study.

Practice questions

  1. Recall Which study is an experiment?
    • A) Researchers compare the grades of students who do and do not play a sport.
    • B) A survey asks a random sample of adults how many hours they sleep.
    • C) Researchers record the diets of patients who chose to join a nutrition program.
    • D) Researchers randomly assign plants to two fertilizers and measure their growth.
Show answer

Answer: D) Researchers randomly assign plants to two fertilizers and measure their growth.

Marking points:

  • Only in D does the researcher impose the treatment.
  • A and C compare groups that chose for themselves. B only records answers.
  1. Apply A hypothetical study finds that children with larger shoe sizes score higher on a reading test. Which variable is most likely confounding?
    • A) Age
    • B) Shoe brand
    • C) The color of the test paper
    • D) The day of the week of the test
Show answer

Answer: A) Age

Marking points:

  • Older children have larger feet and also read better, so age is linked to both variables.
  • B, C and D are not plausibly linked to both shoe size and reading score.
  1. Apply Sixty volunteers are randomly assigned to drink either a new sports drink or water, and the sports-drink group runs significantly farther. Which conclusion is justified?
    • A) The drink causes longer runs for all adults.
    • B) Association only; cause and effect cannot be concluded.
    • C) The drink causes longer runs for people like these volunteers.
    • D) No conclusion, because there was no random sample.
Show answer

Answer: C) The drink causes longer runs for people like these volunteers.

Marking points:

  • Random assignment supports cause and effect; the volunteers were not a random sample, so the result does not extend to all adults.
  • A overgeneralizes. B ignores random assignment. D ignores that random assignment still supports a causal conclusion for the subjects.
  1. Apply In a hypothetical survey, 36 of 120 teens who play video games more than 2 hours a day report poor sleep, compared with 18 of 90 teens who play less. Find the difference between the two proportions (more-gaming minus less-gaming).
Show answer

Answer: The difference is 0.10.1.

Marking points:

  • 36120=0.3\frac{36}{120} = 0.3 and 1890=0.2\frac{18}{90} = 0.2, so the difference is 0.3−0.2=0.10.3 - 0.2 = 0.1.
  • The study is observational, so this does not show that gaming causes poor sleep.
  1. Recall What does selecting individuals at random from a population allow you to do?
    • A) Conclude that the explanatory variable causes changes in the response.
    • B) Generalize the results to the population the sample came from.
    • C) Remove all confounding variables.
    • D) Generalize the results to every population.
Show answer

Answer: B) Generalize the results to the population the sample came from.

Marking points:

  • Random sampling makes the sample represent its population.
  • A and C need random assignment. D overreaches beyond the sampled population.
  1. Exam-style A hypothetical gardener randomly assigns 160 tomato seedlings from one greenhouse to a new soil mix or the usual mix, 80 each. Of the new-mix seedlings, 48 survive a cold night, compared with 30 of the usual-mix seedlings. (a) Find the difference in survival proportions (new minus usual). (b) If the difference is larger than chance would explain, can the gardener conclude the new mix causes better survival?
Show answer

Answer: (a) The difference is 0.2250.225. (b) Yes, for seedlings like these, because the seedlings were randomly assigned to the mixes.

Marking points:

  • 4880=0.6\frac{48}{80} = 0.6 and 3080=0.375\frac{30}{80} = 0.375, so the difference is 0.6−0.375=0.2250.6 - 0.375 = 0.225.
  • Random assignment supports cause and effect.
  • The seedlings were not a random sample from a wider population, so the result applies only to seedlings like these.
  1. Exam-style A random sample of 800 residents of a county finds that those who live near a park report better mood than those who do not. Which statement gives the correct scope of inference?
    • A) A nearby park causes better mood for county residents.
    • B) A nearby park causes better mood for everyone.
    • C) Nothing can be concluded about county residents.
    • D) The association holds for county residents, but not cause and effect.
Show answer

Answer: D) The association holds for county residents, but not cause and effect.

Marking points:

  • The random sample allows generalizing to the county's residents.
  • No treatment was imposed, so a confounder such as income could explain the difference.
  • A and B claim causation without random assignment; B also overgeneralizes. C ignores the random sample.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • In an experiment the researcher imposes treatments; in an observational study the researcher only records.
  • A confounder is linked to the explanatory variable and affects the response; name both links.
  • Random assignment is what allows "causes"; random sampling is what allows "applies to the population".
  • Without either, a study shows an association in its own sample only.

Keep learning

Prerequisites: Sampling Methods

Explore AP Statistics tutoring →

View the full Statistics syllabus →

More in this unit

Collecting Data

All Observational Studies and Experiments notes

Part of Novark's AP Statistics notes