Formula for proportions:

random sampling, stratified sampling, and cluster sampling.