Sampling distribution of the sample proportion and its standard error

If we take two random samples of the same size, we may get two different proportions. The sampling distribution tells us how likely those results are and how far they tend to fall from the population proportion.

Find the sample proportion and its center

Let p be the fraction of the population with the characteristic we’re counting. If x people in a random sample of size n have it, the sample proportion is pˆ=x/n. In a school of 5,000 students, for example, we could take random samples of 100 and calculate the share with brown hair for each sample.

The sampling distribution describes the possible values of pˆ and their probabilities. Its mean is p. For independent observations, its variance is p(1-p)/n, so its standard error is the square root of that value.

σpˆ=p(1-p)n

See the exact distribution for a sample of two

Suppose three of four people have brown hair. Choose two people with replacement. The 16 ordered draws are equally likely. There are 9 ways to draw brown hair twice, 6 ways to draw it once, and 1 way to draw it neither time.

Sample proportions from two draws with replacement
Sample proportionProbability
0116
12616
1916

Multiply each possible value of pˆ by its probability and add the results to get the mean.

μpˆ=0·116+12·616+1·916=34

The variance is (3/4)(1/4)/2=3/32, so the standard error is 3/32=6/8.

Adjust the standard error when sampling without replacement

For a simple random sample without replacement from a finite population of size N, multiply the variance by (N-n)/(N-1). This reduces the spread because each draw changes what is left in the population. If the sample is a small fraction of the population, the factor is close to 1. With replacement, use the independent-draw formula.

σpˆ=p(1-p)n·N-nN-1

If p is unknown, pˆ can be used to estimate the standard error. When we’re calculating a probability under a stated population proportion, use that stated value for p.

Estimate the chance that a sample lands near 40 percent

An ice cream shop claims that 40% of its 1,000 customers order a waffle cone. Suppose we randomly sample 90 different customers, or 9% of the population. How likely is the sample proportion to fall within five percentage points of 40%?

The expected counts are 90(0.4)=36 and 90(0.6)=54. Both are at least 10, and the sample is a small share of the population, so a normal approximation is reasonable here. Its center is 0.40 and its corrected standard error is about 0.04929.

σpˆ=0.2490·910999≈0.04929
Normal approximation for the waffle-cone sampleThe normal curve is centered at point four. The shaded band covers sample proportions between point three five and point four five.0.350.400.45p̂
The shaded region covers sample proportions within five percentage points of 40%.

The endpoints are 0.35 and 0.45. Each is 0.05/0.04929≈1.01 standard errors from the center. The normal area between those endpoints is about 0.690, so about 69% of such samples would land within that range if the claim is true.