Natural selection and allele frequencies