🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Data Science & Analytics › Statistics for Data Science & Analytics › Lesson 5
TEC-DATA85-02 · Lesson 5 · 11 clock hours · lab

Sampling Methods and the Central Limit Theorem

Objective. Students demonstrate the Central Limit Theorem through repeated sampling simulation and explain how sample size affects the sampling distribution of the mean.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Sampling Methods and the Central Limit Theorem

Why Sampling Matters

Data scientists rarely have access to every observation in a population. A city health department cannot interview every resident; a retail analyst cannot examine every transaction in real time. Instead, you draw a sample — a manageable subset — and use it to make inferences about the whole population. The validity of those inferences depends on two things: how you collected the sample and how large it is. This lesson addresses both.

Common Sampling Methods

Simple random sampling (SRS) gives every member of the population an equal chance of selection. A random-number generator picks IDs from a complete list. SRS is the gold standard for avoiding bias, but it requires a full list (sampling frame) of the population.

Systematic sampling selects every kth element after a random start. If you have 10,000 records and want 500, you pick one of the first 20 at random, then take every 20th record after that. It is efficient but can fail if the list has a hidden periodic pattern that aligns with your interval.

Stratified sampling divides the population into non-overlapping groups called strata (e.g., age bands or neighborhoods), then draws a random sample from each stratum. It guarantees representation of each group and usually produces more precise estimates than SRS for the same total sample size.

Cluster sampling divides the population into clusters (e.g., city blocks), randomly selects whole clusters, and surveys everyone inside the chosen clusters. It cuts travel or data-collection costs but increases sampling error because people within a cluster tend to be similar to each other.

Convenience sampling uses whoever is easiest to reach — social media followers, walk-in clinic patients, or volunteer respondents. It is fast and cheap but almost always introduces selection bias, meaning the sample systematically differs from the population. Convenience samples are acceptable for exploratory pilots but not for drawing population-level conclusions.

When you design a sampling plan, you must identify the target population, choose a method that fits your resources and research question, and document at least one bias risk. For a city-health survey, stratified sampling by neighborhood income level often outperforms SRS because health outcomes are strongly associated with socioeconomic factors.

The Central Limit Theorem (CLT)

The Central Limit Theorem is one of the most important results in statistics. In plain language it states:

> When you draw many independent random samples of size n from any population with a finite mean (μ) and finite variance (σ²), the distribution of those sample means will be approximately normal, centered at μ, with standard deviation σ/√n — and this approximation improves as n increases.

The term σ/√n is called the standard error of the mean. It tells you how much sample means vary from one sample to the next. A larger sample size shrinks the standard error, meaning your sample mean is a more precise estimate of the population mean.

The practical power of the CLT is that the population does not need to be normal. It can be skewed, bimodal, or even uniform. Given a large enough sample, the sampling distribution of the mean converges to a normal shape regardless. In practice, n ≥ 30 is the conventional threshold for most moderately skewed populations, though heavily skewed populations or those with extreme outliers may require larger samples.

Observing the CLT Through Simulation

The most convincing way to understand the CLT is to simulate it. The general approach:

1. Define a skewed population — for example, an exponential distribution, which has a long right tail.

2. Draw 1,000 independent samples at each of three sizes: n = 5, n = 30, and n = 100.

3. For each sample, compute the sample mean.

4. Plot the 1,000 sample means for each size as a histogram.

At n = 5 you will see a histogram that still shows skew inherited from the population. At n = 30 the histogram begins to look bell-shaped. At n = 100 it is clearly normal and noticeably narrower — the standard error is smaller. This visual demonstration is exactly what the CLT predicts.

Connecting CLT to Real Projects

Understanding the CLT guides practical decisions:

Data Ethics and Sampling

Convenience sampling and poorly designed stratification can systematically exclude vulnerable or underrepresented groups. A city-health survey that only reaches people with smartphones will miss elderly or low-income residents, skewing results and potentially misdirecting public health resources. Always ask: Who is missing from my sample, and how does that affect my conclusions?

Safety Note

This is a software-based lab. No physical hazards apply. Follow your program's acceptable-use policy for computing resources, keep your Jupyter Notebook files saved to approved storage, and never upload real patient or personally identifiable health data to a public notebook environment. Use only the synthetic scenario data provided in the handout.

Key terms8

PopulationThe complete set of individuals, records, or observations that a study aims to describe or draw conclusions about.
SampleA subset of the population selected for observation and measurement; used to make inferences about the full population.
Central Limit Theorem (CLT)A statistical theorem stating that the sampling distribution of the sample mean approaches a normal distribution as sample size increases, regardless of the shape of the population distribution, provided the population has a finite mean and variance.
Standard Error of the MeanThe standard deviation of the sampling distribution of the mean, calculated as the population standard deviation divided by the square root of the sample size (σ/√n). It measures how precisely the sample mean estimates the population mean.
Sampling DistributionThe probability distribution of a statistic (such as the sample mean) obtained by drawing all possible samples of a given size from a population.
Stratified SamplingA probability sampling method in which the population is divided into non-overlapping subgroups (strata) and a random sample is drawn from each stratum to ensure proportional representation.
Selection BiasA systematic error that occurs when the method of selecting participants causes the sample to differ from the target population in a way that distorts results.
Sampling FrameThe complete list or database from which a sample is drawn; ideally it covers every member of the target population without duplication or omission.

Worked examples4

1. A population has a mean of 50 and a standard deviation of 20. You draw random samples of size n = 100. What is the standard error of the mean, and within what range would you expect approximately 95% of sample means to fall?
  1. Step 1 — Calculate the standard error: SE = σ/√n = 20/√100 = 20/10 = 2.
  2. Step 2 — By the CLT, the sampling distribution of the mean is approximately normal with mean 50 and standard deviation 2.
  3. Step 3 — A normal distribution contains approximately 95% of values within ±1.96 standard deviations of the mean: 50 ± 1.96 × 2 = 50 ± 3.92.
  4. Step 4 — The interval is 50 − 3.92 = 46.08 to 50 + 3.92 = 53.92.
Answer: The standard error is 2. Approximately 95% of sample means will fall between 46.08 and 53.92.
2. You want the standard error of the mean to be no greater than 1.5 for a population with σ = 12. What is the minimum sample size required?
  1. Step 1 — Write the standard error formula: SE = σ/√n, so 1.5 = 12/√n.
  2. Step 2 — Solve for √n: √n = 12/1.5 = 8.
  3. Step 3 — Square both sides: n = 8² = 64.
  4. Step 4 — Verify: SE = 12/√64 = 12/8 = 1.5. ✓
Answer: A minimum sample size of 64 is required.
3. A health survey draws every 25th patient from an alphabetical clinic roster of 5,000 patients, starting from patient number 14. What sampling method is this, and how many patients will be surveyed?
  1. Step 1 — Identify the method: selecting every kth element after a random start is systematic sampling.
  2. Step 2 — Determine k: k = 25 (every 25th patient).
  3. Step 3 — Count the selected patients: starting at 14, the selected positions are 14, 39, 64, … up to the largest value ≤ 5,000.
  4. Step 4 — Number of patients = floor((5,000 − 14)/25) + 1 = floor(4,986/25) + 1 = floor(199.44) + 1 = 199 + 1 = 200.
Answer: The method is systematic sampling. A total of 200 patients will be surveyed.
4. In a simulation, you draw 1,000 samples of size n = 5 from an exponential population with mean 4 and standard deviation 4. What mean and standard deviation do you expect for the distribution of those 1,000 sample means?
  1. Step 1 — By the CLT, the expected mean of the sampling distribution equals the population mean: μ_x̄ = 4.
  2. Step 2 — The expected standard deviation of the sampling distribution (standard error) is: SE = σ/√n = 4/√5.
  3. Step 3 — Calculate √5 ≈ 2.236, so SE = 4/2.236 ≈ 1.789.
  4. Step 4 — At n = 5 the distribution of sample means will still show noticeable skew because the sample size is small; normality improves substantially at n = 30 and n = 100.
Answer: The sampling distribution of the mean should be centered near 4 with a standard deviation (standard error) of approximately 1.79. The shape will still be visibly skewed at n = 5.

The math in this lesson2

Learners compute standard error σ/√n and a 95% interval for a sample mean.
S-IC.4S-ID.4
Brush up in the math halls at newSchoolWorks.com:
In class: Guided Python simulation: students draw 1,000 samples of sizes n=5, 30, and 100 from a skewed population distribution, compute the sample mean for each draw, and plot all three sampling distributions side by side to observe convergence to normality. · Sampling methods comparison: instructor presents simple random, systematic, stratified, cluster, and convenience sampling; students design a sampling plan for a hypothetical city-health survey, justify their choice of method, and identify one bias risk. · Written lab report (one to two pages): students state the CLT in their own words, present their simulation plots with captions, and explain what the results mean for choosing sample sizes in real projects.
Materials: Jupyter Notebook, numpy, matplotlib, seaborn; city-health survey scenario handout; OpenIntro Statistics Chapter 5
Check: Lab report graded on a 10-point rubric: correct simulation code (4 pts), accurate plot interpretation (3 pts), coherent CLT explanation (3 pts); pass mark 70%.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Statistical Concepts — CompTIA Data+
1. According to the Central Limit Theorem, what happens to the shape of the sampling distribution of the mean as sample size increases?
Statistical Concepts — CompTIA Data+
2. A population has σ = 15. A researcher draws samples of size n = 225. What is the standard error of the mean?
Data Collection and Preparation — Google Data Analytics
3. A data analyst divides a city into five income brackets and draws a random sample from each bracket. Which sampling method is being used?
Data Integrity and Ethics — IBM Data Science Professional
4. A city-health survey recruits participants by posting a link on the city's social media page. What is the primary bias risk of this approach?
Exploratory Data Analysis — IBM Data Science Professional
5. In a Python CLT simulation, a student draws 1,000 samples of size n = 5 and n = 100 from the same right-skewed exponential population and plots the sample means. What difference should the student observe between the two histograms?
Statistical Concepts — CompTIA Data+
6. Which of the following best describes the standard error of the mean?
Data Visualization and Reporting — Microsoft PL-300
7. A Power BI report shows average customer satisfaction scores broken down by store location. Some locations have only 8 survey responses while others have over 200. What statistical concern should the analyst flag for viewers of this report?
Data Collection and Preparation — Google Data Analytics
8. A researcher wants to survey households across a large metropolitan area. She randomly selects 20 city blocks and then surveys every household on each selected block. Which sampling method is this?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.