The study of genetic variation within and among populations, including genetic drift, gene flow, and natural selection.