1 Population and Sample
statistical inference
sampling distribution
Learning objectives
Define and distinguish population, sample, parameter, statistic, estimator, and estimate, and identify each in a real study.
Distinguish between the population distribution and the sample distribution, two conceptually distinct objects that are easy to confuse.
Explain what sampling variability is and why it is unavoidable, the problem that the next chapter tackles head-on.
Introduction
Imagine you are a quality-control manager at Apple’s iPhone manufacturing plant. Apple sources its displays from external suppliers, and every incoming shipment must meet strict durability standards before it goes into production. A new shipment of \(50{,}000\) screens has just arrived. To verify quality, you need to determine the average pressure at which a screen cracks; if the average falls below the required threshold, the shipment goes back to the supplier.

Exercise 1.1 How would you approach this problem?
The most straightforward answer to Exercise 1.1 is to test every screen. If you did, you would know exactly the cracking pressure of every unit and could answer any durability question with perfect certainty. There is just one problem: testing a screen destroys it. Test all \(50{,}000\) and you have no screens left to assemble iPhones, resulting in a flawless quality report, and no product to ship.
So, how can we learn (at least approximately) about the average pressure at which the screens crack without testing all the screens?
A reasonable solution is to test a portion of the screens (i.e., a sample) and use what we learn from that sample to make an informed decision about the whole shipment. This, learning about a large population from a smaller, manageable sample, is the essence of statistical inference.
But going down this path raises important questions:
- How should you select the screens to be tested?
- How many screens is enough?
- How confident can you be that what you observed in, say, \(300\) screens reflects the behaviour of all \(50{,}000\)?
- If a colleague independently tested a different \(300\) screens, would they reach the same conclusion?
These questions are of fundamental importance in any statistical study, and they are not just technical details, because statistical inference is not about making educated guesses; it is about quantifying uncertainty in a rigorous, principled way so that decisions can be made with a known level of confidence.
In this chapter, the basic concepts of statistical inference. By the end, you will understand not just which statistics to compute, but why they work and how much to trust them; the very same reasoning that allows a polling firm to estimate the views of 40 million Canadian voters from a survey of \(1{,}500\) people, or a clinical trial of \(300\) patients to reveal whether a new drug actually works.
1.1 Population and Parameters
In statistical inference, we generalize the information from a sample to the entire population. In everyday conversation, words like “population,” “sample,” and “inference” are used quite loosely. To be able to statistically generalize our results, we must be absolutely clear about the boundaries of our study: Who are we studying? What are we measuring?
In statistics, giving these concepts exact boundaries is what allows us to make safe, reliable calculations. Let’s establish these core building blocks, always keeping our shipment of screens in mind.
1.1.1 Who are we studying? The target population.
The first thing to nail down is the group we care about. In the screens problem, Apple’s decision is about the shipment that just arrived: all \(50{,}000\) screens sitting in the warehouse. We call this group the target population:
Definition 1.1 (Target Population) The complete group of all individuals or items that we are interested in studying.
The boundary of the target population matters more than it might seem. It is specifically this shipment, not every screen the supplier has ever made, and not next month’s delivery. A conclusion about this population does not automatically transfer to any other. Defining the target population carefully is the first, and often most overlooked, step of any study.
As you can see in the example above, a vague population boundary doesn’t just make your calculations messy: it can lead to dangerously misleading business decisions.
1.1.2 What do we measure? The variable of interest.
Once we know who we are studying, we specify what we want to learn about each element. In the screens problem, we want to know the pressure at which each screen cracks. We call this the variable of interest:
Definition 1.2 (Variable of Interest) The characteristic or measurement we wish to study.
In our problem, the variable is crack pressure (in psi). Screen #1 has its own crack pressure, screen #2 has a different one, and so on for all \(50{,}000\) screens. In summary, each element in the population has its own value for the variable of interest.
Note that crack pressure is a numerical variable, i.e., it is a number, and taking averages or comparing pressures makes sense. Not every variable works this way. If we were instead asking each screen “did it pass or fail quality control?”, the variable would be categorical: it places each screen into one of two groups rather than assigning it a number.
ImportantCommon Mistake: Count vs. Variable
Students often think: “If we count that 480 screens passed, ‘480’ is a number, so shouldn’t this be a numerical variable?”
Remember to always look at the individual level. The variable is what you record for one single screen. If you walk up to Screen #42, its value is simply a category: "pass" or "fail". The fact that we later count or average these categories doesn’t change the nature of the variable itself. If the individual raw data consists of labels/words, the variable is categorical.
The type of variable matters because it determines which summaries and statistical methods are appropriate. We will see both types throughout the course.
Exercise 1.2 For each of the following scenarios, identify the type of the variable of interest at the individual level.
(a) An agricultural scientist measures the weight (in grams) of individual apples harvested from an orchard.
(b) A biology department records the natural hair color (e.g., black, brown, blonde, red) of students enrolled in an introductory course.
(c) A university registrar records each student’s phone number.
1.1.3 What if we could measure everything? Population distribution and parameters.
If we could somehow afford to measure the crack pressure of every screen in the shipment (without destroying them), we would have a complete list of \(50{,}000\) numbers, one per screen. This complete picture is called the population distribution:
Definition 1.3 (Population Distribution) The collection of values of the variable of interest across the entire population.
(Disclaimer: this is not a formal definition of “distribution”, but it will serve us well throughout the course.)
With the population distribution in hand, we could answer any question about the shipment:
- What fraction of screens crack below Apple’s \(750\) psi threshold? If it is more than \(1\%\), Apple returns the shipment.
- What is the average crack pressure across all \(50{,}000\) screens?
- What pressure can \(99.9\%\) of screens withstand?
- This could be useful for warranty purposes: if we know that \(99.9\%\) of screens survive at least \(X\) psi, we can offer a warranty covering any screen that cracks under \(X\) psi.
Unfortunately, the population distribution is precisely what we cannot observe directly. In this case, measuring crack pressure requires applying pressure until the screen breaks. It is a destructive test. Measure all \(50{,}000\) and you have zero screens left to put in iPhones.
This is not just a quirk of the screens problem. In virtually every real study, the population distribution is unobservable, because measuring the entire population is too expensive, too slow, ethically impossible, or, as here, physically destructive. The whole point of statistical inference is to learn something reliable about the population distribution from a small, observable piece of it.
For learning purposes, let’s play pretend. Suppose we have access to the entire shipment of \(50{,}000\) screens’ crack pressure data. In practice, we would never have access to this; but having the ground truth here lets us study how well our statistical methods work.
A histogram lets us see the overall shape: where the values concentrate, how much spread there is, and whether the distribution is symmetric or skewed.
We can see that the distribution is right-skewed (i.e., a longer tail on the right), meaning some screens are exceptionally strong, and that most screens survive well above the \(750\) psi threshold. But a small fraction (just left of the red line) do not.
Making sense of a list with \(50{,}000\) values is not easy, so having a list of \(50{,}000\) numbers is not useful in itself. What matters are specific numerical summaries that let us answer our questions, like the fraction of screens that crack below Apple’s \(750\) psi threshold, or the average crack pressure across the shipment. These numerical summaries of the population distribution are called parameters.
Definition 1.4 (Parameter) A numerical summary of the population distribution.
Parameters describe the population as a whole; they are fixed (constants) but usually unknown. Common parameters include the proportion \(p\), the mean \(\mu\), the median \(Q_{0.5}\), and the standard deviation \(\sigma\). The right choice depends on the question. For example, for the screens shipment:
- “What fraction of screens fail Apple’s threshold?” → proportion \(p\)
- the fraction of all \(50{,}000\) screens with crack pressure below \(750\) psi.
- the fraction of all \(50{,}000\) screens with crack pressure below \(750\) psi.
- “What is the typical crack pressure?” → mean \(\mu\) or median \(Q_{0.5}\)
- these are central tendency measures; the median might be more informative here because the distribution is right-skewed, and a few extremely strong screens could inflate the mean making it misrepresent a typical screen. But more importantly, it gives us a very useful interpretation: “Half of the screens crack below \(Q_{0.5}\) psi, and half above.” The mean would be harder to interpret in this context.
- these are central tendency measures; the median might be more informative here because the distribution is right-skewed, and a few extremely strong screens could inflate the mean making it misrepresent a typical screen. But more importantly, it gives us a very useful interpretation: “Half of the screens crack below \(Q_{0.5}\) psi, and half above.” The mean would be harder to interpret in this context.
- “How consistent is the manufacturing process?” → standard deviation \(\sigma\)
- a small \(\sigma\) means screens are uniform; a large \(\sigma\) means quality varies widely. It is related to the width of the distribution: a wider distribution has a larger \(\sigma\).
- a small \(\sigma\) means screens are uniform; a large \(\sigma\) means quality varies widely. It is related to the width of the distribution: a wider distribution has a larger \(\sigma\).
- “What pressure can \(99.9\%\) of screens withstand?” → quantile \(Q_{0.001}\)
- the \(0.1\)th percentile, useful for setting warranty thresholds.
Parameters are much easier to communicate than a raw list of \(50{,}000\) numbers. Compare:
“I’m returning this shipment because \(3.2\%\) of screens crack under \(750\) psi, and our standard requires no more than \(1\%\).”
versus
“I’m returning this shipment. Here are the \(50{,}000\) crack-pressure values I collected. I don’t like them.”
The first message is immediately clear, yet it doesn’t mention the raw values at all. The second is useless, even though it contains all the data. At some point, we need to summarize the population distribution to make informed decisions.
CautionVariable vs. parameter: a common confusion
Students very frequently confuse variables for parameters and vice-versa. The variable is what you measure on each individual screen: screen #3,471 has a crack pressure of \(803.2\) psi; screen #12,847 has \(941.7\) psi. Every screen has its own value. The parameter is a single number that summarizes the entire population: \(p = 0.032\) is the fraction of all \(50{,}000\) screens that fail. One lives at the level of the individual; the other lives at the level of the population.
1.1.3.1 Exercises
Exercise 1.3 A streaming platform wants to understand whether its users are engaging enough with the service. The business team asks: does the average daily watch time across all active subscribers exceed \(45\) minutes?
(a) What is the variable of interest, and is it numerical or categorical?
(b) What is the parameter of interest, and what symbol do we use for it?
Exercise 1.4 What proportion of screens in the shipment crack at or below \(750\) psi? Is this above or below Apple’s \(1\%\) maximum?
TipHint
In R, a comparison like x <= threshold returns TRUE for each element that satisfies the condition and FALSE otherwise. How would you turn a vector of TRUE/FALSE values into a proportion?
TipSolution
screens_pop |>
summarise(proportion = mean(crack_pressure <= 750))Exercise 1.5 What pressure can \(99.9\%\) of the screens in the shipment withstand? (That is, find the pressure such that only \(0.1\%\) of screens crack at or below it.)
TipHint
If \(99.9\%\) of screens survive at or above a pressure, what fraction crack below it? Which percentile does that correspond to? R has a function that computes percentiles directly — check ?quantile if you’re unsure of the syntax.
TipSolution
screens_pop |>
summarise(pressure = quantile(crack_pressure, 0.001))Exercise 1.6 Samsung’s sales representative pushes back:
“Look the average crack pressure for this shipment is around \(1{,}000\) psi, well above your \(750\) psi threshold. There’s no way this shipment fails your standard.”
Is the representative’s argument convincing?
1.2 Sample
In the previous section, we established what we want to learn: the target population, the variable of interest, and the parameters that concisely describe the population distribution. But, since we cannot measure the variable of interest for every individual in the population, we collect data on a subset of the population: a sample. In this section, we introduce some new concepts: what a sample is, how to draw one to avoid systematic bias, how to summarize the data it contains, and how those summaries connect back to the parameters we actually care about. Let’s start with the definition of a sample.
Definition 1.5 (Sample) A subset of the population.
What we hope for is that this subset will represent the population well, but this is not always the case.
Imagine you are making a soup and want to know if it has enough salt. You don’t drink the whole pot; you taste a single spoonful (a sample) and extrapolate your finding to the entire pot (the population). If you stirred the pot well before tasting, the spoonful will be a great representation of the whole pot of soup.
Now imagine you are cooking a basket of French fries. You take a single piece to see if you have added enough salt. But, purely by random chance, you grab a fry on top of the basket that got too much salt on top. You conclude incorrectly that the whole basket is too salty. Here, you drew a random sample that doesn’t represent the population well (but it is still a sample)!


The french fries example illustrates this: a sample is not necessarily representative. The word “sample” simply means a subset of the population, and carries no guarantee of quality. But the situation is even trickier than that. Since we do not know the population distribution, we can never be certain whether our sample is a “good” one (i.e., represents the population well) or a “bad” one (unrepresentative).
Because we cannot assess the quality of individual samples, how we draw our samples becomes crucial. We need to develop good sampling methods that are reliable and allow us to measure our uncertainty in a principled way.
1.2.1 How do we sample? Simple Random Sampling
In statistics, there are many possible sampling strategies, each with its own advantages and disadvantages. Some of the most common include:
- Simple random sampling: elements are selected one by one, ensuring that at each step of the drawing process, every remaining element of the population has an equal chance of being selected next.
- Stratified sampling: the population is divided into subgroups (strata), and a random sample is drawn from each.
- Cluster sampling: the population is divided into clusters, and clusters are randomly selected.
All of these methods share one key ingredient that makes them effective: randomness.
Randomness is the magical element of statistics, and it may feel counterintuitive at first. How can randomness be a good thing? Isn’t it better to be precise and deliberate? Well, to start with, randomness prevents the hand-picking that introduces bias in sample selection by ensuring that no individual or subgroup is systematically favoured or excluded. In addition, it gives us the mathematical tools to quantify how uncertain our estimates are, something no non-random method can do in a principled way.
In this course, we focus exclusively on simple random sampling (SRS). Don’t let the name fool you. SRS is a widely used method in practice, and it is surprisingly good given how “simple” it is. There are two types of SRS: with replacement and without replacement.
To draw a simple random sample of size \(n\) without replacement from a population, you:
- List all elements of the population.
- Select one element at random (all elements have the same probability of being selected).
- Record the selected element’s value and remove it from the population.
- Repeat steps 2 and 3 exactly \(n\) times.
To draw a simple random sample of size \(n\) with replacement, you follow the same procedure but do not remove the selected element from the population in Step 3. Let’s explore the difference between the two methods in the next exercise.
Exercise 1.7 (Explore: With vs. Without Replacement) Suppose we have a population consisting of a bag of \(N = 8\) colored, numbered balls. We want to select a random sample of size \(n = 6\). Using the interactive simulator below, draw a sample under both schemes and observe how the two methods behave.
Instructions:
Click the “Draw next ball” button to draw balls one by one.
Watch the “Population (bag)” on the left (With Replacement) and the right (Without Replacement).
Draw all 6 balls, then answer the questions below.
(a) Run the simulation a few times. What is a key consequence of sampling with replacement that can never occur when sampling without replacement?
(b) Based on your observations, which sampling method is more efficient for gathering new information about a population?
(c) Suppose we decide to draw a simple random sample of size \(n = 8\) without replacement, what will the resulting sample look like?
□
In SRS with replacement, we can select the same element multiple times (because the element is not removed from the population). If we select the same element more than once, we don’t learn anything new about the population from those repeated selections. Hence, sampling with replacement is less efficient than sampling without replacement. Therefore, we always use sampling without replacement when sampling from the population.
So, why did we discuss sampling with replacement at all?
As it turns out, sampling with replacement has a key advantage: it doesn’t change the population after each draw, making the draws independent of one another.
Independent samples is another key concept assumed by most statistical methods we will learn in this course. The draws in a sample are independent if the selection of one element does not affect the probability of selecting any other element. As it turns out, SRS without replacement yields draws that are not strictly independent, because once we select an element, it is removed from the population, which slightly changes the probabilities for the remaining elements. Fortunately, if the population size, \(N\), is much larger than the sample size, \(n\), (e.g., \(N > 10n\)), the violation of independence is negligible, and we can treat the sample as “approximately independent” for practical purposes (although, technically speaking, there’s no such thing as “approximately independent”). Let’s see an example.
Example 1.2 Consider a box with \(6\) balls, \(3\) red and \(3\) blue.
We want to draw a sample of size \(n = 3\) balls without replacement. Let’s check the probability that the third ball is red:
| First two balls selected | Chance the third ball is red |
|---|---|
| Blue, Blue | \(3/4 = 0.750\) |
| Blue, Red | \(2/4 = 0.500\) |
| Red, Red | \(1/4 = 0.250\) |
As you can see, the probability of drawing a red ball on the third draw depends on what we drew in the first two draws. This means that the draws are not independent (i.e., the outcome of one draw affects the probabilities of the next draw).
But let’s check what happens when we have a much larger population with the same proportion of red balls. Say our box has \(10{,}000\) balls, where \(5{,}000\) are red and \(5{,}000\) are blue. We want to draw a sample of size \(n = 3\) balls without replacement. The probability that the third ball is red is:
| First two balls selected | Chance the third ball is red |
|---|---|
| Blue, Blue | \(5{,}000/9{,}998 \approx 0.5001\) |
| Blue, Red | \(4{,}999/9{,}998 = 0.5000\) |
| Red, Red | \(4{,}998/9{,}998 \approx 0.4999\) |
Again, the probabilities differ based on the first two draws, so the draws are not strictly independent, but the change in probabilities is very small. If we assume independence in our calculations, these tiny changes wouldn’t affect our results in any meaningful way. For this reason, in practice, if the sample size is small relative to the population size, we can treat the draws as independent even when sampling without replacement. How small is “small”? A common rule of thumb is that if the population size is at least 10 times larger than the sample size (\(N > 10n\)).
□
NoteRules of Thumb in Statistics
We will encounter several widely used “rules of thumb” throughout this course. Many statisticians disagree with some of these rules, as they are often generic and highly subjective. The \(N > 10n\) guideline above is one such example.
Nonetheless, we present them because they are common in practice and can be helpful for quick, initial checks. Just remember: these are guidelines, not mathematical laws, and you should always apply them with caution.
Let us return to our running example, and draw a random sample of \(n = 300\) screens from the shipment of \(50{,}000\). We will use the slice_sample() function from the dplyr package to draw our sample. (Note: remember, our population of screens is stored in the screens_pop data frame).
At this point, we have a sample of \(300\) screens. In practice, we would only have access to the data in screens_sample, and we would not know the true population distribution (which is stored in screens_pop).
Now that we have our sample, how do we use the sample to learn about the population distribution and its parameters?
1.2.2 Sample distribution and statistics
Think of your sample as all the information you have about the population. The information is not perfect (because it is just a small, observable piece of the population), but it is all you have to work with. So, if you are interested in the population distribution, the best you can do is to look at the distribution of the variable of interest within your sample. This is what we call the sample distribution.
Definition 1.6 (Sample Distribution) The distribution of the variable of interest within a given sample.
The sample distribution is something we can observe and plot, but it changes every time we take a new sample because the sample is random. The population distribution, by contrast, is fixed (it never changes, since the population is fixed) but it is unobservable.
Once again, the sample distribution is not the same as the population distribution and it can look quite different from the population distribution (depending on the random sample you take). Encouragingly, as the sample size increases, the sample distribution tends to look more and more like the population distribution. Let’s explore this convergence in action!
Exercise 1.8 (Explore: Effect of Sample Size on the Sample Distribution) Use the interactive simulator below to draw random samples of different sizes \(n\) from the screen durability population (screens_pop), and observe how the sample distribution behaves relative to the true population distribution.
Instructions:
Set the sample size (\(n\)) slider to a small value (like \(n = 10\)). Click “↺ New sample” multiple times. Notice how much the blue histogram (sample distribution) changes with each click, and how different it looks from the red line (population distribution).
Now, increase the slider to a large value (like \(n = 1000\) or \(n = 2000\)). Click “↺ New sample” a few times. Observe the shape of the blue histogram and the calculated sample statistics (\(\bar{x}\) and the \(\%\) below threshold).
Answer the questions below.
(a) As you increase the sample size \(n\) using the slider, what happens to the shape of the sample distribution (blue histogram) relative to the population distribution (red curve)?
(b) Click ↺ New sample several times first at \(n = 10\) and then at \(n = 2000\). Watch the steelblue dashed line (\(\bar{x}\)). How does the sample mean (\(\bar{x}\)) behave at these two sizes?
(c) As the sample size \(n\) increases from \(10\) to \(2000\), what happens to the overall spread (width) of the blue histogram?
□
Just as we compute summaries of the population distribution (parameters) to concisely describe it, we can also compute summaries of the sample distribution. Summaries of the sample distribution are called statistics, and they are used to estimate population parameters.
Definition 1.7 (Statistics, estimators, and estimates) A statistic is a numerical summary computed from sample data. When used to estimate a population parameter, a statistic is called an estimator. The specific value the estimator takes in a particular sample is called an estimate.
These three terms are easy to blend together in prose, so it helps to see them side by side for a single concrete quantity:
| Concept | Role | Example (screens shipment) |
|---|---|---|
| Parameter | Fixed, unknown number describing the population | Population mean crack pressure, \(\mu\) |
| Estimator | The statistic used to estimate the parameter | Sample mean, \(\bar{X}\) |
| Estimate | The specific number the estimator produces for this sample | \(\bar{x} = 1{,}012\) psi |
Remember, the population parameter is a fixed number that we want to learn about, but we cannot observe it directly. A statistic depends on the sample, which is random, so statistics are also random. Usually, we perform the same computation on our sample that we would on the population to calculate the parameter. For example, if we want to estimate the population mean, \(\mu\), we compute the sample mean \(\bar{X}\), which is the average of the variable of interest in our sample. If we want to estimate the population variance, \(\sigma^2\), we compute the sample variance \(S^2\).
For the screens shipment, let’s compute the sample mean \(\bar{X}\): the average crack pressure of the \(300\) sampled screens. We would use this value as our estimate of the unknown population mean \(\mu\).
In this case, the estimator is the sample mean \(\bar{X}\), and the estimate is the value we computed: sample_mean_cp.
1.2.3 Population vs. Sample: The Big Picture
Before moving to the exercises, let us consolidate everything introduced in this section. Each concept we use to describe the population has a direct counterpart in the sample.
The Group
Population
The entire collection of individuals or items that we are interested in studying.
Fixed
Unobservable
sampled
to obtain
to obtain
Sample
The subset of the population actually selected, observed, and measured.
Random
Observable
The Data Distribution
Population Distribution
The pattern and spread of values across the entire population.
Fixed
Unknown
approximated
by
by
Sample Distribution
The pattern and spread of values observed within the collected sample.
Random
Observable
The Summary Measures
Parameter
A single numerical value summarizing the population distribution (e.g., population mean μ or proportion p).
Fixed
Unknown
estimated
by
by
Statistic / Estimator
A single numerical value calculated directly from the sample data (e.g., sample mean x̄ or proportion p̂).
Random
Observable
Exercise 1.9 (Match the Population and Sample Concepts) Let’s put this mapping into practice. Suppose a transit agency wants to estimate the true proportion of all registered voters in Vancouver who support a new light rail proposal. They randomly select and contact \(1{,}000\) registered voters, and find that \(58\%\) of these surveyed voters support the proposal.
Match the corresponding population and sample concepts by dragging the cards from the Top Deck and dropping them into their correct roles in the Population or Sample columns below.
Top Deck (Drag cards from here)
Support/oppose status across registered voters in Vancouver
The 1,000 surveyed voters
The proportion of registered voters in Vancouver who support the proposal.
Support/oppose status across the 1,000 respondents of the survey.
All registered voters in Vancouver
58% of the respondents support the proposal.
Population
Sample
0 of 3 counterparts matched
Exercise 1.10 (Sorting Properties) Now let’s verify if you can classify various quantities based on whether they describe the population (fixed but unknown) or the sample (random but observable).
Play the categorization game below to test your understanding.
0 of 6 cards sorted
1.2.4 Exercises
Exercise 1.11 A nutritionist is studying the daily fruit intake (in servings) of university students. She recruits \(n = 80\) students from the university cafeteria during lunch.
(a) Compute the sample mean fruit intake. This is the estimate of the population mean \(\mu\).
TipHint
Use the mean() function and select the fruit_servings column from the nutrition_sample dataset (i.e. nutrition_sample$fruit_servings).
sample_mean_fruit <- mean(nutrition_sample$fruit_servings)
cat("Sample mean:", sample_mean_fruit)
sample_mean_fruit <- mean(nutrition_sample$fruit_servings)
cat("Sample mean:", sample_mean_fruit)(b) Compute the sample median and sample standard deviation.
TipHint
Use summarise() to compute the summary statistics. Within summarise(), compute the median() and the standard deviation sd() of the fruit_servings column.
nutrition_sample |>
summarise(
median = median(fruit_servings),
std_dev = sd(fruit_servings)
)
nutrition_sample |>
summarise(
median = median(fruit_servings),
std_dev = sd(fruit_servings)
)(c) In this study, which of the following is a parameter?
Exercise 1.12 Below, four students each draw a random sample from the same population and compute the sample mean. Their results are: \(\bar{x}_1 = 47.3\), \(\bar{x}_2 = 51.8\), \(\bar{x}_3 = 44.9\), \(\bar{x}_4 = 49.6\).
(a) The four students all computed different estimates. Is this expected?
(b) Do any of these estimates equal the true population parameter?
We do not know, and in practice we never know, how close our estimate happens to be to the true parameter. This is the fundamental challenge of statistical inference. The sample estimates are (hopefully!) close to the truth, but essentially never exactly equal to it. Our job is to quantify how close they are likely to be.
Exercise 1.13 A political scientist surveys residents of Calgary to estimate the proportion of Calgarians who prefer cycling to driving for commuting. She recruits participants by standing outside shopping malls on weekday afternoons.
(a) What is the target population?
(b) Is there a potential problem with this study design?
Yes. The sampled population (mall visitors on weekday afternoons) is unlikely to represent all Calgary residents. People who visit malls on weekday afternoons may be retired, unemployed, or work shift jobs, groups with potentially different commuting habits than, say, 9-to-5 office workers who may never visit a mall on a weekday afternoon. The results of this survey may not generalize to all Calgarians.
Exercise 1.14 For each concept in the left column, use the dropdown to select its sample counterpart.
Exercise 1.15 (a) The population mean \(\mu\) is best described as:
(b) The sample mean \(\bar{X}\) is best described as:
(c) Apple’s quality-control manager uses the sample of \(300\) screens and reports: “The sample mean crack pressure is \(\bar{x} = 1{,}012\) psi, so the average crack pressure of all \(50{,}000\) screens is exactly \(\mu = 1{,}012\) psi.” What is wrong with this statement?
1.3 Take-home points
The target population is the complete group we want to learn about; the variable of interest is what we measure on each individual member. A parameter is a fixed (but usually unknown) numerical summary of the population distribution. Common parameters are the proportion \(p\), the mean \(\mu\), the median \(Q_{0.5}\), and the standard deviation \(\sigma\).
A sample is a subset of the population. It carries no guarantee of being representative, that is why how we sample matters. Simple random sampling (SRS) selects elements one at a time, each with equal probability, and comes in two flavours:
- without replacement: more efficient (no wasted repeat draws), but strictly speaking violates independence between draws;
- with replacement: less efficient, but keeps the draws independent. A rule of thumb is that if the population size \(N\) is at least \(10\) times the sample size \(n\) (\(N > 10n\)), the violation from sampling without replacement is negligible.
The sample distribution is the distribution of the variable of interest within a given sample. Unlike the population distribution, it is observable, but it changes every time we draw a new sample, and it is generally not the same as the population distribution (though it converges to it as \(n\) grows).
A statistic is a numerical summary computed from sample data; when used to estimate a parameter, it is called an estimator, and the specific value it takes in a given sample is an estimate. Because the sample is random, a statistic is a random variable: its value changes from sample to sample, even though it is always computable (observable) from the data at hand.
This randomness in the statistic is called sampling variability, and it is unavoidable: any single estimate could be a lucky or unlucky draw. The next chapter asks the natural follow-up question: how do we tell whether a given estimate is trustworthy?