The study of how genetic variation evolves over time and is transmitted from generation to generation.