We often want to know a truth about a huge group when we can only check a small piece of it, and we need to know when we can trust that small piece to tell us the truth.
1
Populations, Samples, Parameters, and Statistics
The population is the entire group we care about, and the sample is the smaller group we actually check.
Populations, Samples, Parameters, and Statistics
The first letters match the group each number describes:
ParameterStatistic⟷Population(a number describingthe whole group)⟷Sample(a number calculated fromthe smaller group)
Suppose a battery factory makes 50,000 AA batteries a day and an inspector tests 200 of them. Here is how we sort the numbers:
Text solution
Match the groupsAll 50,000 batteries made that day form the population, while the 200 tested batteries form the sample.
Match the averagesThe true 14.5-hour average of all 50,000 batteries is the parameter, and the 14.2-hour average from the 200 tested batteries is the statistic.
ParameterStatistic=14.5 hours,=14.2 hours
2
Biased and Random Sampling Methods
We want a sample that represents the population fairly. Selection bias occurs when the way we pick people systematically favors some parts of the population over others. Random selection keeps personal preference out of the selection, though a particular random sample can still differ from the population by chance.
Biased and Random Sampling Methods
Stratified and cluster sampling both split the population into groups first, so we tell them apart by how the groups are built and how we pick from them:
Stratified SampleCluster Sample=groups differ(like grade levels)Some from ALL=each group resembles the population(like homerooms)ALL from Some
Compare the sampling methods on this 2,000-student school. In the illustrated samples, the 7:15 AM hallway convenience sample misses late arrivals and gives a statistic far from the true 58% parameter, while the four random samples give statistics nearby. Other random samples could differ by chance.
Compare which students each sampling method selects and how each illustrated sample statistic compares with the true parameter. Random samples can still differ from the population by chance.
3
Survey Bias Traps
Picking a random sample helps avoid selection bias, but the way we ask the question, or who actually answers it, can still bias a survey.
Survey Bias Traps
Even when a survey starts with a random sample of 100 students, the 15 who reply may feel differently about the topic from the 85 who ignore the email:
Random sample of 10085 do not reply15 replies(risk of nonresponse bias)
4
Observational Studies and Experiments
When we want to know whether a treatment actually causes an effect, like whether drinking green tea every morning improves memory, we have to look at how the groups were formed.
Observational Studies and Experiments
In an observational study, researchers observe without assigning treatments. A confounding variable, such as good sleep, could help explain both green-tea drinking and better memory scores. A randomized controlled experiment assigns treatments and can provide evidence about cause and effect:
Random Assignment(helps balance other factors)Control / Placebo Group(provides a comparisonwith similar expectations)Blinding(reduces effects of knowingthe assignments)Same Testing Conditions(controls other experimentaldifferences)Replication(larger groups reduce chancevariation in averages)
These features make a causal conclusion more reliable, but we still have to assess whether the observed difference could reasonably have happened by chance.
Compare how the groups form below. In the illustrated self-selected groups, healthy habits are more common in the green tea group. Random assignment can leave small groups very uneven by chance. With 200 volunteers, the groups tend to have more similar proportions of these habits, though chance imbalances can remain.
In this example, volunteers choosing their own group makes healthy habits more common in the Green Tea group. Random assignment tends to give larger groups more similar proportions of these habits, though chance imbalances can remain.
5
Spotting and Fixing Flaws in an Experiment
Now let's take a flawed fertilizer study on 6 tomato plants and fix each part of its design.
Spotting and Fixing Flaws in an Experiment
Text solution
Fix the hand-picked groups (No Random Assignment)Instead of giving fertilizer to the 3 tallest plants, number the plants, randomly shuffle the numbers, and assign the first half to the fertilizer group and the rest to the control group.
All plantsrandom assignmentTreatment Group(fertilizer)vs. Control Group(plain water)
Fix the different environments (Confounding Variables)Instead of putting fertilized plants on a sunny windowsill and control plants in the shade, keep the growing conditions the same.
Both groups get identicalsunlight, temperature,soil, and water
Increase replication (Small Groups)With only 3 plants per group, one bad root can strongly affect the average. Use larger groups to reduce the effect of natural plant-to-plant variation on the group averages.
3 plants per group⟶50 plants in Treatment and 50 plants in Control
6
Testing a Stated Model with a Simulation
When a stated model gives a claimed probability, we can use a computer simulation to assess a sample result. Here we test whether the win rate is lower than claimed by counting simulated results at our observed number or below.
Testing a Stated Model with a Simulation
Here is how we test a game company's 40% Rare Gem claim after getting only 3 gems in n=20 chests.
Text solution
Assume the stated model is true and simulateModel the openings as independent, each with win probability p=0.40. Let a computer simulate opening n=20 chests 200 times. The expected count is 8 gems.
Center=40% of 20=0.40×20=8 gems
Find the tail percentage for the observed resultCount how many of the 200 simulated trials landed at our result of 3 gems or fewer, and divide by 200.
Tail fraction=2002=0.01=1%
Compare against the 5% cutoffBecause 1% is below our chosen 5% cutoff, we call the 40% model inconsistent with our sample. This is evidence against the model, though a rare result can still happen when the model is true.
1%<5%⟹Stated modelis INCONSISTENTwith the result
Compare results from 2 through 8 gems on the 200-trial dot plot below. Under our chosen rule, a lower-tail percentage of at least 5% is labelled consistent, while less than 5% is labelled inconsistent.
For a test of a lower-than-claimed win rate, count simulated results at the observed number or below and compare that tail percentage with the chosen 5% cutoff.
Key concepts
Run any study through five questions to see what the numbers mean and whether you can trust the conclusion.
Recap: Five Questions to Check a Study
Parameter or Statistic?
Check whether the number describes the entire Population(Parameter, like the true 58% of all 2,000 students) or was calculated from the smaller Sample(Statistic, like 62% of the 100 surveyed students).
How was the sample picked?
Asking whoever is nearby (convenience) or letting people volunteer online (self-selected) risks selection bias. Match the random method to its setup. Every possible group of the required size has an equal chance in a simple random sample. A random start among the first 20 students followed by every 20th student is systematic. Randomly picking some from all groups is stratified. Randomly choosing groups and surveying all from those groups is cluster. Stratified sampling is useful when we want to ensure every grade is represented. Random selection does not guarantee that a particular sample matches the population.
Did the survey fall into a trap?
Watch for leading questions whose wording pushes an answer. Use neutral wording. For sensitive topics, anonymity can reduce pressure to give socially acceptable answers. Nonresponse bias occurs when respondents differ from nonrespondents in ways that affect the answers. A low response rate is a warning sign.
Observational Study or Experiment?
In an observational study, researchers observe without assigning treatments. A confounding variable, such as good sleep, could explain an association between green-tea drinking and memory scores, so that comparison alone does not establish causation. A randomized controlled experiment assigns treatments randomly, uses an appropriate control / placebo group and blinding, keeps experimental conditions the same, and includes replication. These features support causal conclusions, but the observed difference must still be assessed against chance variation. When an experiment is unethical, such as assigning people to smoke, researchers can use observational studies.
Does the Stated Model match the Simulation?
For our test of a lower-than-claimed rate, count simulated trials at your observed number or below. Apply the chosen cutoff:
A city has 40,000 registered voters. Before an election, a local newspaper surveys 400 voters and finds that 56% plan to vote for the school bond. On election day, 52% of all 40,000 voters actually vote for the bond. Identify the population, the sample, the parameter, and the statistic.
A common slip is calling 56% the parameter because it comes first in the problem. Check which group each percentage actually measures.
First match the big group and the small group, then match each percentage to the group it came from.
PopulationAll 40,000 registered voters in the city.
SampleThe 400 voters surveyed by the newspaper.
Watch out: A common slip is calling 56% the parameter because it comes first in the problem. Check which group each percentage actually measures.
Parameter52% (describes all 40,000 voters in the population).
Statistic56% (calculated from the sample of 400 surveyed voters).
2
A high school principal wants to survey students about cafeteria food. Identify the sampling method used in each plan: (a) Put all student ID numbers into a computer and randomly generate 80 numbers. (b) Stand outside the gym after basketball practice and ask the first 50 students who walk out. (c) Split the student body by grade level (Freshmen, Sophomores, Juniors, Seniors) and randomly select 20 students from each grade. (d) Randomly select 4 third-period classrooms that each contain a mix of students and survey every student in those 4 rooms. (e) Line students up at the entrance, randomly choose one of the first 15 students, and survey that student and every 15th student after them.
For (c) and (d), check whether the principal picks some students from all groups or all students from some groups.
(a)Simple random sample.
(b)Convenience sample (biased).
Watch out on (c) and (d): Don't mix up stratified and cluster just because both start with groups. In (c) every grade gets sampled (20 from each), whereas in (d) only 4 rooms get picked and everyone inside them is surveyed.
(c)Stratified sample (some from all groups).
(d)Cluster sample (all from some groups).
(e)Systematic sample.
3
Compare these two scenarios: In Study A, a student council posts an open poll on the school's social media page asking students to rate the new dress code, and 120 students click the link to vote. In Study B, the council selects a simple random sample of 120 students and emails them the poll, but 102 students ignore the email and only 18 reply. Name the risk of bias in Study A and the risk of bias in Study B, and explain how both could give unrepresentative results for the same underlying reason.
Look at how the 120 students were invited in each study before they decided whether to answer.
Watch out: It is easy to call both studies "self-selected" because students chose to reply in both. The difference is that Study A was open to anyone from the start, while Study B started with a random sample of 120 students before 102 of them refused to answer.
Study ARisk of self-selected (voluntary response) bias.
Study BRisk of nonresponse bias.
Why both could failIn both studies, students who respond may have different views from those who do not. For example, students with strong opinions may be more likely to answer. If so, the responses could overrepresent those views.
4
A teacher chooses a simple random sample of 60 students, calls each student to her desk one by one, and asks: "Don't you think irresponsible students who copy homework should receive automatic detentions?" Identify two distinct survey bias traps in this setup and explain how to fix each one.
Look at the specific words in the question, and then look at where and to whom the student has to say their answer out loud.
Watch out: Don't say the sample itself is biased. The teacher already used a simple random sample of 60 students, so both flaws happen during the survey step.
Trap 1Lack of anonymity on a sensitive topic: answering face-to-face at the teacher's desk pressures students to give the socially acceptable answer. Fix: Make the survey completely anonymous, such as having students drop unmarked paper slips into a locked box.
Trap 2Leading question (wording bias): loaded words like "Don't you think" and "irresponsible" push students toward saying yes. Fix: Rewrite the question neutrally, such as "Do you support giving detentions for copying homework?"
5
Researchers want to know if playing video games late at night causes lower GPA. They find 150 students who play video games after 11:00 PM every night and 150 students who never play late at night, and compare their GPAs. (a) Is this an observational study or an experiment? Explain why. (b) The late-night gamers have a significantly lower average GPA. Can the researchers conclude that late-night gaming causes a lower GPA? Name a specific confounding variable to support your answer.
Did the researchers assign 150 students to stay up playing video games, or did those students already have that habit?
(a)It is an observational study because the researchers did not assign students to play or not play video games; they simply observed existing habits.
Watch out on (b): A large sample does not remove confounding. Having 150 students in each group does not establish that gaming caused the GPA difference.
(b)No, this observational comparison alone cannot establish cause and effect. A confounding variable such as poor time management could make both late-night gaming and less studying more likely, helping explain the lower GPA.
6
A company tests whether a new herbal supplement reduces headaches. They select 8 volunteers. They pick the 4 volunteers with the mildest headaches to take the supplement at a quiet spa, while the 4 volunteers with the worst headaches receive nothing at all and stay at work. After a week, the supplement group reports fewer headaches. Identify four flaws in this experiment and state how to fix each one.
Check how the two groups were formed, where each group spent the week, whether the control group knew they got nothing, and how many volunteers were tested.
Watch out: The second group is a control group, but giving it nothing does not control for expectations associated with taking a pill. A look-alike placebo and blinding help make expectations similar in both groups.
(1) No random assignment (hand-picked groups)Use a coin flip or random number generator to assign volunteers to the treatment and control groups.
(2) Confounding variables (different conditions: quiet spa vs. work)Keep the experimental conditions and environment the same for both groups.
(3) No placebo / blindingGive the control group an identical-looking sugar pill (placebo). Keep subjects and evaluators unaware of the assignments in a double-blind setup, reducing differences in expectations and assessment.
(4) Small groups (limited replication)Test a much larger sample, such as 100 volunteers per group, to reduce the effect of person-to-person variation on the group averages.
7
A cereal company claims that 30% of its boxes contain a prize ticket (their stated model). To test this claim, you buy a random sample of 25 boxes. A computer simulates buying 25 boxes 200 times assuming the true probability is 30%. Out of the 200 simulated trials, 36 trials resulted in 5 or fewer prizes, and 4 trials resulted in 2 or fewer prizes. Using the 5% cutoff: (a) If your 25 boxes contained 5 prizes, is the company's 30% model consistent or inconsistent with your result? (b) If your 25 boxes contained 2 prizes, is the 30% model consistent or inconsistent with your result? Show the percentage for each.
A common slip is calculating 255=20% and 252=8% (which would wrongly make part (b) look consistent). Those are just your sample statistics, whereas the 5% cutoff compares how often the result happened out of the 200 simulated trials.
Divide the number of simulated trials in the tail by all 200 simulated trials, not by the 25 boxes in your sample.
Watch out: A common slip is calculating 255=20% and 252=8% (which would wrongly make part (b) look consistent). Those are just your sample statistics, whereas the 5% cutoff compares how often the result happened out of the 200 simulated trials.
(a)
20036=18%
Since 18%≥5%, getting 5 or fewer prizes happens easily by random chance, so the 30% model is consistent with your result.
(b)
2004=2%
Since 2%<5%, we call the 30% model inconsistent with your result at the chosen cutoff. This is evidence against the model, though it does not rule out a rare chance result.