Random Sampling

We rarely have access to an entire population. Instead, we take a sample and use it to learn about the population. The quality of that sample matters.

01. What Is Random Sampling?

Imagine that we want to know the average height of everyone in a large population.

Measuring every person would be expensive and time-consuming. Instead, we can select a smaller group — a sample.

If the sample is selected properly, it can give us useful information about the much larger population.

Population → Random Sample → Information
The crucial word is "random".

Every member of the population should have a known opportunity to be selected. This helps prevent the sample from systematically favouring one type of observation over another.

02. Population vs Sample

A population can contain thousands, millions or even billions of observations.

A sample is simply a smaller collection selected from that population.

Population

The complete group we are interested in.

Examples include every voter, every customer, every transaction or every investment return.

Sample

A smaller group selected from the population.

We use the sample to estimate characteristics of the larger population.

Sample statistic → estimate of population parameter

03. Take a Random Sample

Let's make this concrete.

We will create a population of 1,000 observations with different values and randomly select a sample from it.

Every time you take a new sample, the observations will be different — and so will the sample mean.

20
Population size
1,000
Population mean
Sample mean
Take another sample.

The population has not changed. Only the sample has. If the sample mean changes, that is sampling variability.

04. Why Randomness Matters

Suppose we want to estimate the average value of a population.

A random sample gives observations from across the population. But imagine that instead we deliberately select observations from only one part of the population.

The resulting estimate could be systematically wrong.

Random sample

Observations are selected randomly from the entire population.

Sample mean

Biased sample

Observations are deliberately selected from one end of the population.

Sample mean
Random sampling is about avoiding systematic bias.

A sample does not need to perfectly represent every feature of the population. Random selection simply gives us a defensible mechanism for making the sample representative on average.

05. Sampling Variability

One random sample gives us one estimate. But what happens if we repeatedly take new random samples from exactly the same population?

The sample means will vary.

This is not a mistake. It is a fundamental feature of sampling.

20
1,000
Population mean
Mean of sample means
Standard deviation of sample means
This is the sampling distribution of the mean.

Each point in the distribution represents the mean of one random sample. The distribution tells us how our estimate would behave if we repeated the sampling process many times.

06. Sample Size Matters

Larger samples generally give us more information about the population.

More importantly, the means of larger samples tend to fluctuate less from sample to sample.

25
Larger samples produce more stable estimates.

This is one of the most important ideas in statistics. Increasing sample size reduces sampling variability.

07. Watch the Sampling Distribution Form

We can now combine the ideas.

Start with the same population, repeatedly take random samples, calculate the mean of every sample, and then plot those means.

With enough samples, the shape of this distribution becomes visible.

This is the key connection to the Central Limit Theorem.

Under suitable conditions, the distribution of sample means becomes approximately Normal as the sample size becomes sufficiently large.

We are not changing the original population. We are changing the number of times we sample it.

08. Random Sampling in the Real World

Random sampling is not just a mathematical exercise. It is used whenever we want to learn about a large population without observing every member of it.

Opinion polls

A sample of voters can be used to estimate the views of a much larger population.

Quality control

Manufacturers can inspect a sample of products rather than testing every item.

Medical research

Researchers often study a sample of participants to learn about a wider population.

Finance

Analysts can use samples of historical returns to learn about the behaviour of an investment.

09. Sampling Bias

Random sampling reduces the risk of systematic bias, but not every sample is random.

Consider an online survey asking: "Should the government increase funding for cycling?"

If the survey is promoted only on a cycling website, the people who choose to respond are unlikely to represent the wider population.

Biased sample → Biased estimate
A large sample is not automatically a good sample.

Ten thousand badly selected observations can give a worse estimate than a much smaller genuinely random sample.

10. From Sampling to Simulation

We have now built an important chain of ideas.

Population → Random Samples → Sample Statistics

We can repeat the sampling process thousands of times and study the resulting distribution.

But there is another powerful possibility.

Instead of sampling from a population of people, transactions or measurements, we can sample from a model of possible future outcomes.

That is the basic idea behind Monte Carlo simulation.

We repeatedly generate random outcomes from a model, build thousands of possible scenarios, and then examine the distribution of the results.

11. The Next Step: Monte Carlo Simulation

Random sampling gives us the machinery we need.

We know how to generate random observations. We know how to take samples. We know how repeated samples create distributions.

Now we can use the same principle to simulate possible futures.

Random Sampling → Thousands of Futures

This is the foundation of Monte Carlo simulation.

Continue to Monte Carlo Simulation →
← Back to Central Limit Theorem