Allele frequencies and inheritance