When we want to know an average or a percentage for a huge population, we can only measure a small random sample, and we need a way to tell how close that single sample result is to the truth.
1
Parameters and Statistics
A parameter is the fixed target number that describes an entire population, while a statistic is the number we calculate from a random sample to estimate it.
Parameters and Statistics
To keep the two straight in equations, we use different symbols depending on whether we are measuring an average (a mean) or a yes-or-no percentage (a proportion):
Means:Proportions:populationparameterμ and samplestatisticxˉpopulationparameterp and samplestatisticp^
Read xˉ as "x-bar" and p^ as "p-hat". The bar or hat on top shows that the number came from a sample rather than the whole population.
Suppose the university registrar reports that 42% of all students at the university live on campus, while 38% of a random sample of 50 students live on campus. Here is how we classify those numbers:
Text solution
Match the whole-population percentage to the parameterBecause 42% describes all students at the university and measures a yes-or-no category (living on campus), it is the population proportion.
p=0.42
Match the surveyed group's percentage to the statisticBecause 38% comes from the random sample of 50 students, it is the sample proportion.
p^=0.38
So p^=0.38 is the sample's estimate of the true campus proportion p=0.42.
2
What a Sampling Distribution Is
A single sample gives us one statistic like xˉ=6.1 hours, but a second random sample of 9 students from the same population will almost certainly give a different xˉ. To judge how much a statistic varies from sample to sample, we look at its sampling distribution: the distribution of that statistic across every possible sample of the same size n from the same population.
What a Sampling Distribution Is
For a tiny population of 4 roommates sleeping 4,6,8, and 10 hours, we can build the exact sampling distribution for samples of size n=2 by hand:
Text solution
Average all four individuals to find the population parameterThe true population mean is fixed because it includes every roommate.
μ=44+6+8+10=7 hours
List all six pairs of size n=2 and average each pairEvery distinct pair of roommates gives one possible sample mean xˉ.
Plot the six sample means on a number lineThe resulting graph of xˉ values stays centered at μ=7 hours, from 5 to 9 hours instead of 4 to 10.
⟶individuals in population4 to 10 hourssample means xˉ for n=25 to 9 hours
So no sample of size 2 can have a mean as low as 4 or as high as 10, because the highest or lowest sleeper is always averaged with someone closer to the middle.
Whenever one roommate's sleep time changes, the three pair averages that include that roommate shift only half as far, keeping the sampling distribution centered at μ and narrower than the range of the individual roommates.
Moving one roommate only shifts the pairs they are in by half as much, so the pair averages stay narrower than the individuals and share the exact same center.
3
Population, Sample, and Sampling Distributions
When a population has 20 million college students instead of 4 roommates, there are too many samples of size n=9 to list by hand. Instead, we use a computer to draw 1,000 random samples of 9 students from a population with an assumed mean μ=6.5 hours. That gives us three different distributions that are easy to mix up unless we check what a single dot represents on each graph.
Population, Sample, and Sampling Distributions
Here is how we tell the three sleep-study graphs apart:
Text solution
Match the sample size to the distribution of sample dataGraph A has only 9 dots, which matches the n=9 individual students in our single sample.
Graph A:1 dot = 1 surveyed student9 dots from 4 to 8 hours⟹Distribution of sample data(xˉ=6.1)
Match the widest spread to the population distributionGraph B contains all 20 million individual students, including the 2-hour and 11-hour sleepers.
Graph B:1 value = 1 student in population20 million valuesfrom 2 to 11 hours⟹Population distribution(μ=6.5)
Match the tight cluster around μ to the sampling distributionGraph C has 1,000 dots clustered between 5.3 and 7.7 hours because high and low sleepers averaged out inside each 9-student group.
Graph C:1 dot = average xˉ of 9 students1,000 dotsfrom 5.3 to 7.7 hours⟹Simulated samplingdistribution of xˉ
So Graph A shows one sample of individuals, Graph B shows the whole population of individuals, and Graph C shows how the sample mean xˉ varies across 1,000 samples.
Each single dot in the sampling distribution is the average of an entire 9-student sample, so even when a sample includes a 2-hour or 11-hour sleeper, the other 8 students in that group pull xˉ back toward μ=6.5.
Each dot on the sampling distribution averages 9 students, so even when one sleeps 2 or 11 hours, the other 8 pull the average back near 6.5.
4
Testing a Claim with a Sampling Distribution
In real life, we only collect one sample and we don't know the true parameter μ. We use a simulated sampling distribution to test whether an outside claim about μ could realistically produce our sample statistic xˉ just by random chance.
Testing a Claim with a Sampling Distribution
Here is how we test the university brochure's claim of μ=7.0 hours against our sample of n=36 students with xˉ=6.1 hours:
Text solution
Center the simulation at the claimed parameterAssume the brochure's claim is true so the computer generates random samples of n=36 from a population centered at 7.0 hours.
Count how many simulated samples are as low as our sample statisticFind our sample mean xˉ=6.1 on the simulated distribution to see how often random chance gives a result that low.
when μ=7.0 is trueSimulated xˉ values:6.35 to 7.5 hours⟶observed result is in the far tail2000 samples have xˉ≤6.1
Judge whether random chance is believable when the result is in the tailBecause getting xˉ≤6.1 happens 0 times in 200 samples when μ=7.0, random chance from sample to sample is not a believable explanation.
So our single sample statistic xˉ=6.1 gives strong evidence that the true campus sleep average is lower than the 7.0 hours claimed in the brochure.
Be careful not to say that a rare sample result proves a claim is false with 100% certainty. Even when the claim is true, a sample result that rare is still possible by random chance, so we say the result gives strong, convincing evidence against the claim.
Key concepts
Everything here comes down to separating the fixed population number from the varying sample estimate, and picturing how averages of size n behave across repeated samples:
Parameter vs. Statistic
Check who the number describes and what kind of question was asked. A number for the entire population is a fixed parameter (μ=6.5 hours for a mean, p=0.42 for a yes/no proportion), while a number from a surveyed group is a varying statistic (xˉ=6.1 hours or p^=0.38).
Reading the Three Distributions
Look at what one dot represents and how wide the dots spread. On the population distribution, one dot is one individual and the spread is widest (2 to 11 hours). On the distribution of sample data, one dot is still one individual, so there are only n dots (9 dots averaging xˉ=6.1). On the sampling distribution of xˉ, one dot is the average of an entire sample of n individuals, centered at μ=6.5 and clustered much closer together (5.3 to 7.7 hours) because high and low values average out inside each sample.
When Not to Assume a Symmetric Bell Shape
Taking larger samples (n=36 or n=100) clusters the sampling distribution of xˉ closer around μ and makes a skewed distribution more symmetric. Still, do not assume the sampling distribution is symmetric when the population is strongly skewed and the sample size n is small (such as n=4), because a small group cannot average out a long tail.
Testing a Claim
Simulate samples of size n assuming the claimed parameter is true (μ=7.0), then check where your sample statistic (xˉ=6.1) lands. If almost no simulated samples land that far out (0 out of 200), you have strong, convincing evidence against the claim, though not 100% proof.
5
Practice
1
A city transit report states that the average commute time for all bus riders in the city is 34 minutes, and that 64% of all riders transfer buses at least once. A commuter group surveys a random sample of 40 bus riders and finds an average commute time of 37.5 minutes, with 70% transferring at least once. Identify each of the four numbers as a parameter or a statistic, and write each one using its proper symbol.
Watch out for the common mistake of writing μ=0.64; percentages of a yes/no category always use p and p^, never μ and xˉ.
For each number, ask two questions: does it describe all city bus riders or the 40 surveyed riders, and is it an average time or a yes/no percentage?
All bus riders (34 minutes and 64%)Both describe the entire population of city bus riders, so both are parameters. Use μ for the average time and p for the transfer proportion. (Watch out for the common mistake of writing μ=0.64; percentages of a yes/no category always use p and p^, never μ and xˉ.)
Parameters:μ=34 minutes,p=0.64
Sample of 40 riders (37.5 minutes and 70%)Both are calculated from the random sample of 40 riders, so both are statistics. Use xˉ for the sample mean and p^ for the sample proportion.
Statistics:xˉ=37.5 minutes,p^=0.70
2
A tiny company has only 4 employees: Alex, Blair, Casey, and Devon. The number of sick days they took last year are 1,3,5, and 11 days, respectively. Find the population mean μ, list all 6 possible random samples of size n=2 with their sample means xˉ to describe the sampling distribution, and explain why no sample of size 2 can have a mean as low as 1 or as high as 11.
Pair Alex (1) with each of the other three employees first, then pair Blair (3) with the remaining employees so you get all 6 distinct pairs without repeats.
Population meanAverage all 4 employees.
μ=41+3+5+11=5 days
All 6 samples of size n=2 and their means(Be careful not to pair an employee with themselves like {1,1} with xˉ=1 or {11,11} with xˉ=11; a sample of size 2 chooses two different employees.)
Why xˉ cannot be 1 or 11Each sample pairs two different employees, so the employee at 1 day is always averaged with someone higher and the employee at 11 days is always averaged with someone lower, keeping the sample means between 2 and 8 days.
3
A researcher takes a random sample of 16 apples from an orchard of 50,000 apples and weighs them in grams, then uses a computer to take 500 simulated samples of 16 apples from the orchard. She prints three dotplots on the same scale: Graph X has 500 dots clustered tightly between 142 g and 158 g; Graph Y has 16 dots spread between 125 g and 171 g; Graph Z has 50,000 dots spread between 110 g and 190 g. Identify which graph is the population distribution, the distribution of sample data, and the simulated sampling distribution, and state what one dot represents in each graph.
Match the exact number of dots in each graph (50,000,16, and 500) to the three groups in the problem before checking the spread.
Graph Z is the population distributionIt has 50,000 dots with the widest spread (110 g to 190 g), and one dot represents one apple in the orchard.
Graph Y is the distribution of sample dataIt has 16 dots (125 g to 171 g), and one dot represents one apple from the single sample of 16.
Graph X is the simulated sampling distribution of xˉIt has 500 dots clustered tightly between 142 g and 158 g, and one dot represents the average weight xˉ of 16 apples from one simulated sample. (Don't say one dot in Graph X is "one apple from the 500 samples". Each dot is a 16-apple average, which is why Graph X is so much narrower than Graphs Y and Z.)
4
Suppose the distribution of household water use in a town is strongly skewed to the right (lopsided, with a long tail on the high end) with a population mean of μ=250 gallons per day. Compare the center, spread, and shape of the sampling distribution of xˉ for small random samples of size n=4 versus large random samples of size n=100.
First check whether changing the sample size changes the true center μ=250, then think about how much one high-water household pulls the average of a 4-house group compared to a 100-house group.
CenterBoth sampling distributions are centered at the exact same population mean, μ=250 gallons per day. (Don't think the right skew pulls the center of the n=4 sampling distribution above 250; the mean of the sampling distribution of xˉ is always μ=250.)
SpreadFor n=4, the sampling distribution is narrower than the population distribution. For n=100, high and low values average out much more within each sample, clustering the distribution much closer around 250 gallons per day.
ShapeFor n=4, because the population is strongly skewed and the sample size is small, the sampling distribution is still noticeably skewed to the right. Do not assume every sampling distribution is automatically symmetric. For n=100, averaging 100 households per dot makes the sampling distribution much more symmetric.
5
A battery maker claims that its batteries last an average of 50 hours. A consumer tester measures a random sample of 25 batteries and gets a sample mean of xˉ=46.2 hours. To test the company's claim, what population mean should the computer simulation assume, and what should the tester conclude if only 1 out of 1,000 simulated samples of 25 batteries produces a mean of 46.2 hours or less? Explain whether this proves with 100% certainty that the company's claim is false.
Do not set the simulation center to the sample statistic xˉ=46.2 hours. We need to see how samples behave when μ=50.
To test whether random chance is a believable explanation for the low sample mean, start the simulation using the company's claimed mean rather than the sample result.
Assumed population meanThe simulation must assume the company's claim is true, setting μ=50 hours. (Do not set the simulation center to the sample statistic xˉ=46.2 hours. We need to see how samples behave when μ=50.)
ConclusionGetting xˉ≤46.2 hours in only 1 out of 1,000 simulated samples leaves two possibilities: either μ really is 50 hours and the tester happened to get a 1-in-1,000 random sample by chance, or the true population mean is less than 50 hours. Because 46.2 is so unusual when μ=50, there is strong, convincing evidence against the company's claim.
Why it is not 100% proofThis does not prove the claim is false with 100% certainty, because a 1-in-1,000 random sample is still possible by chance.