By Elena Llaudet, co-author of Data Analysis for Social Science (DSS)
Random sampling creates a representative sample of the target population when the sample size n is large enough.
Suppose the population consists of 1,000 individuals, where 20% of them are orange, 10% are blue, 20% are pink, 30% are green, and 20% are purple. If we randomly select a sample of n individuals from this population, the sample will have similar proportions of each type of individual as long as n is large enough. Let's take a closer look:
Note: N is the total population size and n is the sample size. The white numbers on top of each bar show the actual count of individuals of that type in each group.