Variation within populations arises from genetic and environmental sources. Genetic variation is caused by mutations, gene flow, non-random mating, and genetic drift. Environmental variation stems from factors like climate, food availability, and interactions with other organisms. Both genetic and environmental sources contribute to most traits, like height, which are influenced by a combination of genetic and non-genetic factors. Selection acts on phenotypic variation to influence the frequency of alleles in a population over generations.