Sampling

Stage 16 of 23 Strand 3 of 5 11 lessons

11 illustrated lessons, each teaching the why before the how.

Start with Populations and Samples in the app →
Revise Sampling with flashcards →

Jump to a lesson

Populations and Samples

A parameter is fixed; a statistic varies.

A parameter describes the whole population and a statistic describes only your sample

Read the full lesson →

Usample30970

There are a thousand people in the population, and you can only ask thirty.

fixed?known?population meanyesnosample meannoyes

The population mean is fixed but unknown. You can compute the sample mean.

statisticand it changes with every sampleestimate of a parameter

So a statistic is an estimate of a parameter, and it changes with each sample.

Now you

Usample40960

Is the true proportion of faulty parts a parameter or a statistic?

Usample40960

Is the proportion faulty in the box you opened a parameter or a statistic?

Sampling Methods

Chosen to avoid bias, not for convenience.

A sampling method is chosen to avoid bias rather than to be convenient

Read the full lesson →

Usample2080

In a simple random sample, every member has the same probability of being chosen, and the selections are independent.

ABC

In a stratified sample, split the population into groups, then take from each group in proportion to its size.

010203040

In a systematic sample, take every tenth name on the list. It is fast, but it relies on the order of the list being fair.

at the gymeveryone elsepeoplethe venue filters the sample

A convenience sample takes whoever is easy to reach. At a gym, the venue decides who can be sampled.

the whole populationa sampleask a chosen fewa censusask every member

Ask every member instead and it is a census — complete, and often impractical.

under 3030 to 60over 60

In a quota sample, fill a fixed count from each group, choosing freely. It is stratified sampling without the randomness.

Now you

at the gymeveryone elsepeople

A survey about exercise asks the first 20 people leaving a gym. What is wrong?

askedstudents

A school asks every single student about lunch. What is that called?

Observational Studies and Experiments

Assigning the treatment is what buys a cause.

Only a study that assigns the treatment at random can support a claim about cause

Read the full lesson →

60 volunteerscoinnew drugcoindummy pill

In an experiment the researcher assigns the treatment — here by a coin toss.

60 patientsown choicealready take itown choicealready do not

In an observational study you only record groups people put themselves into.

take itdo nothealthier firstfrailer firstthe groups already differ

Self-chosen groups can differ before the treatment, and that alone can explain a gap.

drugdummyhealthier firstfrailer firstchance splits every other difference evenly

Assigning at random spreads every other difference evenly over the two groups.

treatment grouphandled the same way in every respect but onecontrol group

The control group is treated identically except for the treatment being tested.

treatment assigned at randomnothing else could have sorted the groupsa causetreatment not assignedsomething else may have sorted theman association

Random assignment supports a cause; observing without it supports only an association.

random samplingthe population it may be extended towho the result coversrandom assignmentwhether the result is a cause

Random sampling settles who a result covers; random assignment settles whether the result is a cause.

Now you

drugdummyhealthier firstfrailer firstchance splits every other difference evenly

Volunteers were split by coin toss. What does that give the study?

treatment not assignedsomething else may have sorted the groupsan association

An observational study finds a new drug goes with lower blood pressure. What may you conclude?

Capture and Recapture

The tagged share of a catch mirrors the pond.

Matching the tagged fraction of a catch to the pond estimates the whole population

Read the full lesson →

taggeduntaggedfish20 tagged fish mix into the pond

Tag 20 fish and release them — they scatter through a pond of unknown size.

fishfrequencytagged6untagged24total30

Recapture 30 fish: 6 carry tags — a fifth of the catch is tagged.

6 of 30 taggedthe catch is representative of the pond
solve for the pond

If the catch is representative of the pond, the fractions match — solving gives about 100 fish.

tags mix evenlyor the estimate is wrongno tag falls off

The estimate rests on assumptions: tagged fish mix fully, and every tag stays on.

Now you

taggeduntaggedfish

Suppose the tagged fish spread right through the pond before the next catch. Is the estimate sound?

taggeduntaggedfish

Suppose half the tags fall off before the next catch. Is the estimate sound?

The Sampling Distribution

Every possible sample mean, piled up.

Take many samples and their means form a distribution of their own

Read the full lesson →

population3548265746mean 5sample 15856mean 6

The population is ten scores with a mean of 5. One sample of four gives a mean of 6.

population3548265746mean 5sample 15856mean 6sample 23267mean 4.5sample 34646mean 5

Take two more samples of four from the same ten scores, and each one has a different mean.

2345678population mean 5

Keep only the means and they pile up between 4 and 6, where the scores ran 2 to 8.

Now you

population3548265746sample 15464sample 24856sample 33827three of the many samples of 4

Samples of 4 are taken from these ten scores again and again. How are the sample means spread?

population3548265746sample 1385sample 2527sample 3464three of the many samples of 3

Samples of 3 are taken from these ten scores again and again. How are the sample means spread?

Mean and Variance of X-bar

Unbiased, with variance divided by n.

The sample mean is right on average and its variance is divided by the sample size

Read the full lesson →

xy

On average the sample mean equals the population mean, so it is unbiased.

Var
dividing by n divides variance by n²
Var
one n cancels
Var

Independent variances add to nσ², and dividing by n divides variance by n².

bigger nthe error shrinks with the root of ntighter estimate

So every extra observation narrows the estimate a little further.

Now you

4 ÷ 9what does this come to?

The population variance is 4 and the sample size is 9. What is the variance of the sample mean?

25 ÷ 4what does this come to?

The population variance is 25 and the sample size is 4. What is the variance of the sample mean?

Standard Error

Halve it and you need four times the data.

The standard error is the standard deviation of the sample mean, so it falls with the root of n

Read the full lesson →

xy

Take the square root of the variance and the n comes out as a root: σ/√n.

xy

The standard error falls fast at small n and then very slowly as n grows larger.

halve the errorbecause it is the root of n that dividesquadruple the sample

To halve the standard error you need four times as many readings.

Now you

what does this come to?

Sigma is 12 and n is 4. What is the standard error?

what does this come to?

Sigma is 6 and n is 25. What is the standard error?

The Central Limit Theorem

Means go normal whatever the population was.

Sample means become normal as the sample grows, whatever shape the population had

Read the full lesson →

This population is lopsided and uneven, nothing like a bell.

Take means of samples from it and they pile up symmetrically anyway.

xy

That is the central limit theorem, and it is why the normal curve appears so often.

Now you

xy

As the sample size grows, what does the central limit theorem say about the population itself?

xy

As the sample size grows, what does the central limit theorem say about the sample means?

Applying the Theorem

Thirty is a rule of thumb, not a sharp edge.

A sample of about thirty is usually enough for the normal approximation to be usable

Read the full lesson →

xy

Once the sample means are close enough to normal, every method for the normal distribution applies to them.

xy

Thirty is a rule of thumb, not a sharp cutoff.

A badly lopsided population needs more than thirty, not exactly thirty.

Now you

xy

Is a sample of 5 usually enough for the normal approximation?

xy

Is a sample of 30 usually enough for the normal approximation?

Approximating a Binomial

Match the mean and variance to a normal.

A binomial with enough trials is close enough to a normal to be treated as one

Read the full lesson →

Binomial bars already look bell-shaped once n is reasonably large.

xy

Give the curve the same mean np and variance np(1 − p) as the bars, and it sits on top of them.

0123

The fit needs room in both tails: np and n(1 − p) must both be greater than 5.

Now you

X ~ B(150, 1/5). Which normal approximates it?

X ~ B(75, 1/5). Which normal approximates it?

Continuity Correction

Bars have width; a curve does not.

Swapping bars for a curve needs half a unit of width added back at each edge

Read the full lesson →

678

A binomial bar for X = 7 really covers everything from 6.5 to 7.5.

x

The curve has no bars, so you must say where the bar edges were.

x

P(X ≥ 7) keeps the whole bar for 7, so the boundary is its left edge, 6.5.

x

P(X > 7) drops that bar, so the boundary moves out to its right edge, 7.5.

Now you

Approximating P(X < 7), which boundary do you use?

Approximating P(X ≥ 5), which boundary do you use?

Continue your journey in the app — save your progress