Cambridge 9709 · Mathematics (9709) A2 · Chapter 31 · S2 - Sampling and Estimation

S2: Sampling and Estimation

Summarized revision notes, free to read. Sit the matching past papers in any Paperverse world when you are done.

Introduction

Ever wondered how companies know the average opinion of millions of customers without asking everyone? Or how scientists can estimate the average size of a fish in a huge lake? That's the magic of sampling! In this chapter, we're diving into the powerful techniques statisticians use to learn about a massive group (a population) by studying a small, manageable part of it (a sample). First, we'll figure out how to make our sample's statistics a fair and unbiased estimate of the whole population's values. Then, we'll explore the super-important Central Limit Theorem to understand the distribution of the sample mean – it’s a game-changer! Finally, we'll learn how to build confidence intervals, which give us a range of values where we can be pretty sure the true population mean lies. Let's get ready to turn small clues into big conclusions! 🕵️‍♀️

Unbiased Estimates of Population Parameters6.4

Okay, let's get into it. Imagine you're trying to figure out the true average listening time on Spotify for all students in your year group. That true average is the population mean, which we call $\mu$. Obviously, you can't survey everyone. So, you grab a sample – say, 10 of your friends – and find their average listening time. This is your sample mean, $\bar{x}$. Now, the big question is: how good is your sample mean as a guess for the real population mean? This is where the idea of an unbiased estimate comes in. An estimator is unbiased if it doesn't systematically over- or under-shoot the target. Think of it like an aim assist in a game that's perfectly calibrated. A good, unbiased estimator might not be perfect every time, but its average shot is right on target. Your sample mean, $\bar{x}$, is a perfect, unbiased estimator for the population mean $\mu$. It's your best shot, and on average, it's spot on. Easy! <br><br>But what about the variance of listening times, $\sigma^2$? This is where it gets a little more complex. If you just calculate the variance of your sample of 10 friends and divide by $n=10$, you'll actually end up with a value that's, on average, too small. This is a biased estimate! Why? Because your friends' listening times are naturally going to be closer to their own little group average ($\bar{x}$) than they are to the true average of the entire year group ($\mu$). To correct for this sneaky underestimation, we have to adjust our formula. A diagram showing two dartboards. The 'Unbiased Estimator' board has darts scattered all around the bullseye, but the average position is the center. The 'Biased Estimator' board has darts clustered together, but the whole cluster is off to the side We create an unbiased estimate of the population variance, which we call $s^2$, by dividing by $(n-1)$ instead of $n$. This makes our result a little bit bigger, perfectly counteracting the bias. It's the ultimate stats hack. <br><br>So, for any sample of size $n$, the two key estimates you need are:<br>Unbiased estimate of population mean ($\mu$): $\bar{x} = \frac{\sum x}{n}$<br>Unbiased estimate of population variance ($\sigma^2$): $$s^2 = \frac{1}{n-1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right)$$

Calculating Unbiased Estimates from Sample Data6.4

Problem You track the number of hours you worked at your part-time barista job over a random sample of 6 days. The hours are: 5, 8, 4, 7, 5, 9. Calculate unbiased estimates for the mean and variance of the number of hours you work per day.

Step 1 First, let's find the sample mean, $\bar{x}$. This is our unbiased estimate for the true mean number of hours, $\mu$. We just add up the hours and divide by the number of days, $n=6$. $$\bar{x} = \frac{5+8+4+7+5+9}{6} = \frac{38}{6} \approx 6.33 \text{ hours}$$

Step 2 Next, we need the ingredients for our variance formula, $s^2$. We already have $n=6$ and $\sum x = 38$. Now we need to find the sum of the squares, $\sum x^2$. $$\sum x^2 = 5^2 + 8^2 + 4^2 + 7^2 + 5^2 + 9^2 = 25 + 64 + 16 + 49 + 25 + 81 = 260$$

Step 3 Time to plug everything into the magic formula for the unbiased estimate of variance. The key is to divide by $n-1$, which is $6-1 = 5$. $$s^2 = \frac{1}{n-1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right) = \frac{1}{5} \left( 260 - \frac{38^2}{6} \right) = \frac{1}{5} (260 - 240.667...) \approx 3.87$$

Step 4 Finally, state your answers clearly. We've found the unbiased estimates for the population mean and variance based on your sample data. Unbiased estimate of population mean is $\bar{x} \approx 6.33$.<br>Unbiased estimate of population variance is $s^2 \approx 3.87$.

The Distribution of the Sample Mean6.4

Okay, let's get real. Imagine you want to find the average amount of time students at your school spend on Spotify each day. Asking every single person is impossible, right? That's the population. Instead, you grab a sample, say 50 friends, and find their average time. This average is your sample mean, which we call $\bar{X}$.<br><br>Now, what if your friend also took a sample of 50 different people? Their sample mean would probably be slightly different from yours. If we took tons of these samples and plotted all their means, we'd get a new distribution: the distribution of the sample mean. So, what are its properties?<br><br>First, the average of all these sample means will be the true average of the whole school. Makes sense, right? So, the expected value of the sample mean is just the population mean: $E(\bar{X}) = \mu$.<br><br>Second, the spread of the sample means will be smaller than the spread of the individual times. Think about it: getting a sample where everyone listens for 10 hours is super unlikely compared to finding one person who does. The bigger your sample size ($n$), the more the sample means will 'huddle' around the true mean. The variance is given by $Var(\bar{X}) = \frac{\sigma^2}{n}$, where $\sigma^2$ is the population variance. A diagram showing a wide, skewed population distribution at the top. Below it, several dots representing individual sample means are plotted. These dots form a much narrower, symmetrical, bell-shaped curve, illustrating the Central Limit Theorem.<br><br>This leads us to the MVP of statistics: the Central Limit Theorem (CLT). This is a total game-changer. The CLT states that if your sample size ($n$) is large enough (usually $n \ge 30$), the distribution of the sample mean $\bar{X}$ will be approximately a Normal distribution, even if the original population wasn't Normal at all. It's like putting a weirdly shaped playlist on shuffle and discovering it creates a perfectly balanced vibe. This is clutch because it lets us use our Z-scores and Normal distribution tables to find probabilities about the sample mean, which is incredibly powerful.

Worked Example: Applying the Central Limit Theorem6.4

Problem The time, in minutes, that a student spends on a part-time weekend job has a mean of 480 minutes and a standard deviation of 60 minutes. The distribution of these times is unknown. A random sample of 35 students is taken. Find the probability that the mean time spent working for this sample is more than 500 minutes.

Step 1 First, let's pull out all the key info from the problem. We're given the population mean ($\mu$), population standard deviation ($\sigma$), and our sample size ($n$). $$\mu = 480 \quad \sigma = 60 \quad n = 35$$

Step 2 The original distribution is unknown, but our sample size $n=35$ is greater than 30. This is our green light to use the Central Limit Theorem! This means we can treat the distribution of the sample mean, $\bar{X}$, as a Normal distribution. $$n=35 \ge 30, \text{ so by CLT, } \bar{X} \text{ is approximately Normal.}$$

Step 3 Now, let's define the parameters for the distribution of $\bar{X}$. The mean of $\bar{X}$ is just $\mu$, and its variance is $\frac{\sigma^2}{n}$. $$E(\bar{X}) = \mu = 480 \\ Var(\bar{X}) = \frac{\sigma^2}{n} = \frac{60^2}{35} = \frac{3600}{35} \approx 102.86 \\ \Rightarrow \bar{X} \sim N(480, \frac{3600}{35})$$

Step 4 We need to find $P(\bar{X} > 500)$. To do this, we standardize the value 500 to find its Z-score. Remember the formula: $Z = \frac{\bar{X} - \mu}{\sigma / \sqrt{n}}$. $$Z = \frac{500 - 480}{\sqrt{\frac{3600}{35}}} = \frac{20}{60 / \sqrt{35}} = \frac{20\sqrt{35}}{60} \approx 1.972$$

Step 5 Now we look up this Z-score in our standard normal distribution tables or use a calculator. We want the area to the right of our Z-score, since the question asks for 'more than' 500 minutes. $$P(\bar{X} > 500) = P(Z > 1.972) = 1 - P(Z < 1.972) \\ = 1 - 0.9757 = 0.0243$$

Step 6 Finally, write down the answer. So, there's about a 2.43% chance that the average work time for a sample of 35 students will be over 500 minutes. Not very likely, but totally possible! $$\text{The probability is } 0.0243 \text{ (3 s.f.)}$$

Confidence Intervals for Population Mean and Proportion6.4

Okay, so imagine you want to know the true average time students at your school spend on TikTok. Asking every single person is impossible, right? So you take a sample, say 50 people, and find their average. This sample mean, $\bar{x}$, is a good point estimate, but it's probably not the exact true mean, $\mu$. It's like trying to guess a song's BPM by tapping for 10 seconds—you'll be close, but not perfect.<br><br>This is where Confidence Intervals (CIs) come in. A CI is a range of values where we're pretty confident the true population parameter (like the mean $\mu$ or proportion $p$) actually lives. Instead of saying "the average is 2.1 hours", we say "we're 95% confident the average is between 1.9 and 2.3 hours." This range gives us a margin for error.<br><br>The formula for a CI for the mean (when we know the population variance $\sigma^2$) is: $$\bar{x} \pm z \times \frac{\sigma}{\sqrt{n}}$$<br>And for a proportion: $$p_s \pm z \times \sqrt{\frac{p_s(1-p_s)}{n}}$$<br>The 'z' value, or z-critical value, is the secret sauce. It's determined by your chosen confidence level (usually 90%, 95%, or 99%). For a 95% confidence level, the z-value is always 1.96. This number comes from the standard normal distribution and basically tells us how many standard deviations away from the mean we need to go to capture 95% of the possibilities. A diagram of the standard normal distribution curve, showing the central 95% of the area shaded in blue. The boundaries of this area are marked with z-scores of -1.96 and +1.96, with the remaining 2.5% in each tail.<br><br>Thinking about sample size, $n$? If you want a more precise, narrower interval (like estimating your exam score to be between 88-90% instead of 80-98%), you'll need a larger sample size. More data means more confidence and less uncertainty. It's like having more reviews before buying a new game—you get a much better idea of its true quality.

Worked Example: Confidence Interval for a Population Proportion6.4

Problem A researcher wants to estimate the proportion of A-Level students who have a part-time job. They survey a random sample of 250 students and find that 95 of them have a part-time job. Calculate a 99% confidence interval for the true proportion of all A-Level students with a part-time job.

Step 1 First, let's figure out our sample proportion ($p_s$) and find the correct z-value. The sample proportion is just the number of students with jobs divided by the total sample size. For a 99% confidence level, the z-value is a standard value you should memorize. $$p_s = \frac{95}{250} = 0.38$$<br>For 99% confidence, $z = 2.576$

Step 2 Now, we need to calculate the margin of error (the part we add and subtract). This is the 'wiggle room' around our sample proportion. We'll use the formula for the standard error of a proportion and multiply by our z-value. $$\text{Margin of Error} = z \times \sqrt{\frac{p_s(1-p_s)}{n}}$$

Step 3 Let's plug in our numbers: $p_s = 0.38$, $n = 250$, and $z = 2.576$. Be careful with the calculation under the square root! $$\text{Margin of Error} = 2.576 \times \sqrt{\frac{0.38(1-0.38)}{250}} = 2.576 \times \sqrt{0.0009424} \approx 0.0792$$

Step 4 Finally, we build the interval by taking our sample proportion and adding/subtracting the margin of error we just found. This will give us our lower and upper bounds. $$\text{CI} = p_s \pm \text{Margin of Error} = 0.38 \pm 0.0792$$

Step 5 Let's state our final answer clearly as an interval and write a concluding sentence to explain what it means in the context of the problem. This shows you understand the result. $$\text{Lower Bound} = 0.38 - 0.0792 = 0.3008$$<br>$$\text{Upper Bound} = 0.38 + 0.0792 = 0.4592$$<br>So, the 99% CI is (0.301, 0.459). We are 99% confident that the true proportion of all A-Level students with a part-time job is between 30.1% and 45.9%.

Key Points to Remember

  • The sample mean $\bar{x}$ is an unbiased estimate of the population mean $μ$. For the population variance $σ^2$, the unbiased estimate is $s^2 = \frac{n}{n-1} \times (\text{sample variance})$.
  • The Central Limit Theorem states that for a large sample ($n > 30$), the distribution of the sample mean $\bar{X}$ is approximately normal: $\bar{X} \sim N(μ, \frac{σ^2}{n})$.
  • A confidence interval provides a range of plausible values for the population mean, $μ$. For example, a 95% confidence interval is calculated as $\bar{x} \pm 1.96 \frac{σ}{\sqrt{n}}$ for a known population variance.

Revise this chapter in any of the ten Paperverse worlds