Speciation can evolve gradually or through mechanisms like polyploidy, occurring in either allopatric or sympatric populations. Population genetics highlights that allele frequencies within a population tend to favor heterozygosity under random conditions, with P and Q representing allele frequencies.