Statistics & Probability: lesson 3 of 5

Statistics & Probability

PATH 01MODULE 06LESSON 03 OF 05Next: Probability Fundamentals and Conditional Probability

Populations, Samples, and the Central Limit Theorem

Understand sampling, variability, and why repeated sample means support statistical estimation.

Intermediate16 min readstatisticssamplingcentral-limit-theoreminference

Concept

A population is the full group of interest, such as every order placed this year. A sample is a smaller subset observed from that population. A population value is a parameter; a sample-derived value is a statistic. Sampling lets teams learn when measuring everyone is impractical.

Why It Matters

Surveying every customer or manually checking every delivery is often too slow or expensive. But a sample can mislead if it is unrepresentative. Sampling variability explains why two honest samples can produce different averages.

Intuition

Imagine repeatedly drawing 100 orders and calculating average order value. Each sample mean will differ because each sample contains different customers. The collection of those means forms a sampling distribution. It is not the same thing as the original order-value distribution.

Population, Sample, Parameter, Statistic

If all 500,000 orders have a true average value, that average is the population mean. The mean from 1,000 randomly selected orders is a sample mean. We use the sample statistic to estimate the unknown population parameter, while acknowledging uncertainty.

Representative Sampling and Bias

A representative sample reflects relevant population groups. Random sampling reduces selection bias, but must be designed carefully: sampling only mobile users cannot represent all customers if desktop behavior differs. A bigger biased sample is still biased.

Central Limit Theorem

The Central Limit Theorem says, under common conditions, that if we repeatedly take sufficiently sized random samples and calculate their means, the distribution of those sample means tends toward a normal-shaped distribution. This can occur even when individual order values are right-skewed.

It does not mean original data becomes normal. It does not mean one sample is a sampling distribution. It also does not repair biased sampling. Its value is that repeated averages have predictable behavior, supporting confidence intervals and hypothesis tests later.

Real-World Example

An operations team samples delivery times to estimate average delivery time. A few late deliveries may make individual times skewed, but many repeated random samples of 100 deliveries will have means that are more regular than the original times. The team can estimate the population average and communicate uncertainty rather than claiming the sample mean is exact.

When to Use It

Use sampling thinking for surveys, experiments, quality checks, A/B tests, and dataset analysis. Before generalizing, ask who was sampled, how, whether key groups were included, and whether the sample reflects the decision population.

Failure Signals

Common Mistakes

  1. Confusing a sample statistic with a population parameter.
  2. Assuming a large sample removes selection bias.
  3. Claiming the CLT makes every dataset normal.
  4. Ignoring sampling variability when comparing two averages.

Best Practices

Define the population first, sample randomly when possible, record the sampling process, and report sample size. Compare important sample characteristics with the target population. Treat estimates as estimates, especially when data is sparse or groups differ.

Data Science Perspective

Sampling appears in experimentation, model evaluation, training datasets, and monitoring. The CLT underpins later confidence intervals and tests, while representative data remains essential for models that generalize fairly.

Interview Perspective

Question: Does the CLT mean the original data is normal? A strong answer: no; it concerns the distribution of repeated sample means under common conditions.

Practice Questions

  1. Identify population, sample, parameter, and statistic for a survey of 500 app users.
  2. Why is a large sample of only premium customers biased for all customers?
  3. Explain why two random samples can have different means.

Quick Quiz

  1. What is a population parameter? Answer: a value describing the full population.
  2. What does CLT describe? Answer: repeated sample means.
  3. Does random sampling guarantee no error? Answer: no, but it reduces systematic selection bias.

Worked Example: Average Delivery Time

A delivery company wants to estimate this week's typical delivery time from millions of orders. The population mean is the unknown average across every delivery; a randomly selected sample mean is an estimate. Repeating that sample would produce a slightly different mean. Those repeated means form a sampling distribution, which is not the same as the distribution of individual delivery times. Under common conditions and sufficiently large random samples, the Central Limit Theorem says the sample-mean distribution tends to be approximately normal-shaped. This supports later precision estimates, but it does not make the original delivery times normal.

Sampling Decisions Matter

A large sample can still be biased. Sampling weekday deliveries misses weekend behavior, and a voluntary survey can overrepresent highly engaged customers. Define the target population first, give relevant groups a fair chance of inclusion, record exclusions, and check whether important subgroups have enough observations. More rows cannot repair a flawed sampling method.

Sampling variability is expected, not a sign that one analysis failed. The goal is to quantify uncertainty and reduce avoidable bias, then communicate both the estimate and its limits.

Deep Dive

Deep Dive: Standard Error and Precision

Standard deviation describes how much individual observations vary. For example, order values can differ widely from customer to customer. Standard error describes something different: how much a sample estimate, such as the sample mean order value, would vary if the team repeated the sampling process.

For a sample mean, a useful approximation is:

SE(mean) = s / sqrt(n)

Here, s is the sample standard deviation and n is the sample size. The square root matters: collecting more observations usually makes an estimate more precise, but doubling a sample does not cut uncertainty in half.

Suppose two teams estimate average order value and both observe a sample standard deviation of about $20:

TeamSample sizeApproximate standard error
A100 orders$20 / sqrt(100) = $2.00
B2,500 orders$20 / sqrt(2500) = $0.40

Team B's estimate is usually more precise because repeated samples of 2,500 orders have less variation in their means than repeated samples of 100 orders. This does not make Team B automatically more correct: both teams still need a sample that represents the population they want to describe.

Confidence Intervals: A Range From a Procedure

A confidence interval combines an estimate with its sampling uncertainty. A common structure is:

estimate +/- critical value * standard error

The exact critical value depends on the method and assumptions. The key idea is not to memorize 1.96; it is to understand that more uncertainty creates a wider interval.

A 95% confidence interval is produced by a procedure designed so that, if the same sampling process were repeated many times, about 95% of the resulting intervals would contain the fixed true population parameter. It is not correct to say that a completed interval has a 95% probability of containing that fixed value. The parameter does not move; the interval would change if the sample changed.

An interval communicates precision, not every kind of research quality. A narrow interval can still be misleading when the data collection process is biased or the measurement is broken.

Precision Does Not Repair Bias

Imagine a product team surveys 50,000 highly engaged users about a new feature. The large sample can create a very narrow confidence interval for highly engaged users, because the estimate is precise for that group. It may still be a poor estimate of satisfaction among all users if casual, dissatisfied, or inactive users were unlikely to respond.

More data can reduce standard error. It does not automatically remove selection bias, measurement bias, survivorship bias, non-response bias, or a flawed definition of the metric. A precise estimate can still be wrong for the decision population.

Decision Lab

Decision Lab: Compare Uncertainty, Not Just Point Estimates

Two experiments report conversion estimates:

ExperimentConversion estimate95% confidence interval
A10.0%9.7% to 10.3%
B10.5%8.5% to 12.5%

Experiment A is more precise because its interval is much narrower. Experiment B has the larger point estimate, but that alone is not stronger evidence that its conversion is truly higher; its wider interval suggests greater uncertainty, perhaps because it has fewer observations or more variable data.

Before choosing a product change, ask how each sample was collected, whether the experiments used comparable populations and time periods, what the sample sizes were, whether the interval method fits the data, and whether a difference of this size matters to the business. The goal is not to choose A or B from these intervals alone. It is to make the uncertainty visible before treating a point estimate as a decision.

Failure Signals in Estimates

Watch for these signals when reading an average, rate, survey result, or model-performance estimate:

  1. A very wide interval or tiny sample means another reasonable sample could give a meaningfully different estimate.
  2. High variability can make an estimate less precise even when the average looks stable.
  3. A narrow interval does not prove the data represents the intended population.
  4. A confidence level is not certainty about one completed interval.
  5. Comparing point estimates without their uncertainty can exaggerate weak evidence.

Check Your Reasoning

Check Your Reasoning

Question: A dashboard shows customer satisfaction as 84%. What would you need to know before treating 84% as a precise estimate of the entire customer population?

Reasoning: Ask how many customers responded, how they were selected, whether important groups were missing, how variable the responses were, and what interval or uncertainty measure accompanies the rate. A large response count improves precision only if the collection process is relevant to the population and the measurement is trustworthy.

Practice and Build

Practice Connection

Apply this reasoning in Interpret a Confidence Interval, which asks you to explain interval width, repeated-sampling meaning, and survey bias to a stakeholder.

Key Takeaway

Key Takeaways

Samples are useful but variable. Standard error describes uncertainty in an estimate, while standard deviation describes variation among observations. Representative sampling and confidence intervals support careful inference, not certainty; precision cannot repair bias.

Next Lesson

Next, use probability to reason about uncertain events and conditional risk.

Finish this lesson on your terms

Mark it complete when you have worked through the material and are ready to move on.