All of inference rests on one fact: a sample is only a part of the population, and different samples give different answers. Understanding this variation is the first step.

Population, Sample and Parameter

A population is the complete group about which we want information, and a sample is a part of it that is actually observed. A number that describes the population, such as its mean mu or proportion P, is a parameter and is usually unknown. A number calculated from a sample, such as the sample mean x-bar or sample proportion p, is a statistic and is used to estimate the parameter. Sampling should be random so that every member has a known chance of selection and the sample is not biased.

Definition: Parameter and statistic. A parameter is a numerical characteristic of a population; a statistic is the same kind of characteristic calculated from a sample.

Sampling Distribution

If many samples of the same size n are drawn and the statistic is calculated for each, the values vary. Their distribution is the sampling distribution of the statistic. The standard deviation of this distribution is called the standard error, and it measures how much the statistic varies from sample to sample.

Sampling Distribution of the Mean and Proportion

For the sample mean, the average of its distribution is mu and the standard error is sigma divided by the square root of n. By the central limit theorem, when n is large, about 30 or more, the distribution of the sample mean is approximately normal whatever the shape of the population. For a sample proportion p from a population with proportion P, the average is P and the standard error is the square root of P(1 - P) / n. Larger samples give smaller standard errors, so the estimate becomes more reliable.

Table 4.1: Sampling distributions of mean and proportion

Statistic Mean of distribution Standard error
Sample mean mu sigma / square root of n
Sample proportion P square root of P(1 - P) / n
Shape for large n Approximately normal Narrower as n grows

Example 4.1: Standard error and probability of a sample mean

Problem: Marks of a population have mean 60 and standard deviation 12. For samples of size 36, find the standard error and the probability that a sample mean exceeds 63.

Solution:

  1. Standard error = 12 / square root of 36 = 2.
  2. Z = (63 - 60) / 2 = 1.5.
  3. P(Z greater than 1.5) = 1 - 0.9332.

Result: The standard error is 2 and the probability is 0.0668.

from math import erf, sqrt
cdf = lambda z: 0.5 * (1 + erf(z / sqrt(2)))
se = 12 / sqrt(36)
print(se, round(1 - cdf((63 - 60) / se), 4))

Output

2.0 0.0668

Common mistakes

  • Using sigma instead of sigma divided by the square root of n for a sample mean.
  • Confusing the standard deviation of the population with the standard error.
  • Applying the central limit theorem to very small samples from a skewed population.

Key takeaways

  • A parameter describes a population and a statistic describes a sample.
  • Standard error of the mean = sigma / square root of n.
  • For large n the sample mean is approximately normal.
  • Larger samples give smaller standard errors.

Practice questions

  1. Distinguish a parameter from a statistic.
  2. What is the standard error of the sample mean?
  3. State the central limit theorem in one line.

Answers to the practice questions

  1. A parameter describes a population, a statistic describes a sample.
  2. sigma divided by the square root of n.
  3. For large n, the sample mean is approximately normally distributed.

Sources

  • Official BCA syllabus Probability and Statistics, course code 26BCA403DS01, Unit IV