1. If we have a gene with two alleles, for example H (dominant allele) and h (recessive allele) than according the HW equilibrium (p2+2pq+q2=1, p+q=1)
p is the frequency of the allele H (),
q is the frequency of the allele h.
p2 is the frequency of dominant homozygous,
q2 is frequency of the recessive homozygous and
2pq is frequency of the heterozygous.
So, if p=0.45, than p2=0.2025=20.3%
2. If the gene is with two alleles, A (dominant) and a (recessive) than according the HW equilibrium (p2+2pq+q2=1, p+q=1)
p is the frequency of the allele A,
q is the frequency of the allele a.
p2 is the frequency of dominant homozygous (AA),
q2 is frequency of the recessive homozygous (aa) and
2pq is frequency of the heterozygous (Aa).
If the frequency of the aa genotype is 34%, than q2=0.34, q=0.58, p=1-0.58=0.42
p2=0.176=17.6%
3. If the gene for giraffe spots is with two alleles, A for dark brown(dominant) and a for light brown (recessive) than according the HW equilibrium (p2+2pq+q2=1, p+q=1):
p is the frequency of the allele A (dark brown allele),
q is the frequency of the allele a (light brown allele).
p2 is the frequency of dominant homozygous (AA-dark),
q2 is frequency of the recessive homozygous (aa-light) and
2pq is frequency of the heterozygous (Aa-dark).
If the frequency of dark brown giraffes is 65%, p2+2pq=0.65, than q2= 1-0.65=0.35
q=0.59, p=0.41=41%