The study of the genetic makeup of populations and the factors that affect the distribution of genetic traits.