Stratified sampling
In statistics, stratified sampling is a method of sampling from a population which can be partitioned into subpopulations.
In statistical surveys, when subpopulations within an overall population vary, it could be advantageous to sample each subpopulation independently.
Stratification is the process of dividing members of the population into homogeneous subgroups before sampling. The strata should define a partition of the population. That is, it should be collectively exhaustive and mutually exclusive: every element in the population must be assigned to one and only one stratum. Then sampling is done in each stratum, for example: by simple random sampling. The objective is to improve the precision of the sample by reducing sampling error. It can produce a weighted mean that has less variability than the arithmetic mean of a simple random sample of the population.
In computational statistics, stratified sampling is a method of variance reduction when Monte Carlo methods are used to estimate population statistics from a known population.
Strategies
- Proportionate allocation uses a sampling fraction in each of the strata that are proportional to that of the total population. For instance, if the population consists of n total individuals, m of which are male and f female, then the relative size of the two samples should reflect this proportion.
- Optimum allocation – The sampling fraction of each stratum is proportionate to both the proportion and the standard deviation of the distribution of the variable. Larger samples are taken in the strata with the greatest variability to generate the least possible overall sampling variance. Neyman allocation is a strategy of this type.
Example
Assume that we need to estimate the average number of votes for each candidate in an election. Assume that a country has 3 towns: Town A has 1 million factory workers, Town B has 2 million office workers and Town C has 3 million retirees. We can choose to get a random sample of size 60 over the entire population but there is some chance that the resulting random sample is poorly balanced across these towns and hence is biased, causing a significant error in estimation. Instead, if we choose to take a random sample of 10, 20 and 30 from Town A, B and C respectively, then we can produce a smaller error in estimation for the same total sample size. This method is generally used when a population is not a homogeneous group.Advantages
The reasons to use stratified sampling rather than simple random sampling include- If measurements within strata have a lower standard deviation, stratification gives a smaller error in estimation.
- For many applications, measurements become more manageable and/or cheaper when the population is grouped into strata.
- When it is desirable to have estimates of the population parameters for groups within the population – stratified sampling verifies we have enough samples from the strata of interest.
Disadvantages
It would be a misapplication of the technique to make subgroups' sample sizes proportional to the amount of data available from the subgroups, rather than scaling sample sizes to subgroup sizes. Data representing each subgroup are taken to be of equal importance if suspected variation among them warrants stratified sampling. If subgroup variances differ significantly and the data needs to be stratified by variance, it is not possible to simultaneously make each subgroup sample size proportional to subgroup size within the total population. For an efficient way to partition sampling resources among groups that vary in their means, variance and costs, see "optimum allocation".The problem of stratified sampling in the case of unknown class priors can have a deleterious effect on the performance of any analysis on the dataset, e.g. classification. In that regard, minimax sampling ratio can be used to make the dataset robust with respect to uncertainty in the underlying data generating process.
Combining sub-strata to ensure adequate numbers can lead to Simpson's paradox, where trends that exist in different groups of data disappear or even reverse when the groups are combined.
Mean and standard error
The mean and variance of stratified random sampling are given by:where
Note that the term, which equals, is a finite population correction and must be expressed in "sample units". Forgoing the finite population correction gives:
where the is the population weight of stratum.
Sample size allocation
For the proportional allocation strategy, the size of the sample in each stratum is taken in proportion to the size of the stratum. Suppose that in a company there are the following staff:- male, full-time: 90
- male, part-time: 18
- female, full-time: 9
- female, part-time: 63
- total: 180
The first step is to calculate the percentage of each group of the total.
- % male, full-time = 90 ÷ 180 = 50%
- % male, part-time = 18 ÷ 180 = 10%
- % female, full-time = 9 ÷ 180 = 5%
- % female, part-time = 63 ÷ 180 = 35%
- 50% should be male, full-time.
- 10% should be male, part-time.
- 5% should be female, full-time.
- 35% should be female, part-time.
- male, full-time = 90 × = 20
- male, part-time = 18 × = 4
- female, full-time = 9 × = 2
- female, part-time = 63 × = 14