5.5.2Population Genetics & Speciation

Calculate allele and genotype frequencies

1,705 words8 min readdifficulty · medium1 backlinks

1. The core vocabulary

WHAT are we counting? Two different things:

  • Genotype frequency counts individuals (there are NN of them).
  • Allele frequency counts allele copies (there are 2N2N of them in a diploid, because each individual holds 2 copies).

2. Deriving the formulas from scratch

Setup. Let a population of NN diploid individuals have:

  • nAAn_{AA} individuals of genotype AAAA
  • nAan_{Aa} individuals of genotype AaAa
  • naan_{aa} individuals of genotype aaaa

with nAA+nAa+naa=Nn_{AA} + n_{Aa} + n_{aa} = N.

Genotype frequencies (easy — just divide by NN)

f(AA)=nAAN,f(Aa)=nAaN,f(aa)=naaNf(AA)=\frac{n_{AA}}{N},\quad f(Aa)=\frac{n_{Aa}}{N},\quad f(aa)=\frac{n_{aa}}{N}

Why this step? Genotypes label individuals, so the total pool is the number of individuals NN. These three must sum to 1 because every individual has exactly one genotype.

Allele frequencies (count the copies)

Total allele copies =2N= 2N (each of NN people carries 2).

How many AA copies are there?

  • Each AAAA person contributes 2 AA's → 2nAA2n_{AA}
  • Each AaAa person contributes 1 AAnAan_{Aa}
  • Each aaaa person contributes 0 AA's → 00

p=f(A)=2nAA+nAa2Np = f(A) = \frac{2n_{AA} + n_{Aa}}{2N}

Why the 2's? Because we're counting copies, not people. An AAAA homozygote donates two AA tokens to the bag.

Split the fraction to reveal a beautiful shortcut:

p=2nAA2N+nAa2N=nAAN+12nAaNp = \frac{2n_{AA}}{2N}+\frac{n_{Aa}}{2N}=\frac{n_{AA}}{N}+\frac12\cdot\frac{n_{Aa}}{N}

Because there are only two alleles, every copy is either AA or aa, so:

p+q=1\boxed{p + q = 1}

Why? p+q=f(AA)+f(Aa)+f(aa)=1p+q = f(AA)+f(Aa)+f(aa) = 1 (the three genotype frequencies sum to 1). This is not an assumption — it falls out of the counting.


3. Worked examples

Figure — Calculate allele and genotype frequencies

4. Recall checkpoints

Recall Cover the answers — can you rebuild the formulas?
  • Why do we divide allele counts by 2N2N instead of NN? → Because diploids carry 2 copies each; we count copies, not people.
  • Why the factor 12\tfrac12 on heterozygotes? → They carry only one copy of the allele in question.
  • What must p+qp+q equal and why? → 1, because every copy is one of the two alleles.
  • Given f(aa)=0.16f(aa)=0.16 and f(Aa)=0.48f(Aa)=0.48, find qq. → q=0.16+0.24=0.40q=0.16+0.24=0.40.
Recall Feynman: explain to a 12-year-old

Imagine a jar full of socks, and every kid grabs exactly two socks. Red socks are allele AA, blue socks are allele aa. A kid with two reds is "AAAA", two blues is "aaaa", one of each is "AaAa". To find out how "red" the whole class is, you don't count kids — you count socks. Add up every red sock and divide by all the socks. The mixed kids only own one red sock each, so they only count "half" toward redness. That "half" is the whole trick!


5. Flashcards

What is an allele frequency?
The proportion of all allele copies in the gene pool that are a particular allele (e.g. pp for AA).
What is a genotype frequency?
The proportion of individuals in the population having a particular genotype.
In a diploid population of N individuals, how many allele copies exist at one locus?
2N2N, because each individual carries 2 copies.
Formula for p in terms of allele counts
p=2nAA+nAa2Np = \dfrac{2n_{AA} + n_{Aa}}{2N}.
Shortcut for p from genotype frequencies
p=f(AA)+12f(Aa)p = f(AA) + \tfrac12 f(Aa) ("homozygote plus half the heterozygotes").
Why does the heterozygote get a factor of 1/2?
It carries only one copy of the allele of interest, not two.
What does p + q equal and why?
1, because every allele copy is one of the two alleles; genotype frequencies sum to 1.
If 640 AA, 320 Aa, 40 aa, what is p (freq of A)?
p = 0.64 + 0.5(0.32) = 0.80.
For an X-linked gene, how do males contribute to copy counts?
Only 1 copy each (hemizygous), so total copies = 2(females) + 1(males), not 2N.
Given f(aa)=0.09 and f(Aa)=0.42, find q.
q = 0.09 + 0.21 = 0.30.

6. Connections

  • Hardy-Weinberg Equilibrium — uses pp and qq to predict genotype frequencies p2,2pq,q2p^2, 2pq, q^2.
  • Genetic Drift — random change in these allele frequencies in small populations.
  • Natural Selection & Fitness — differential survival shifts pp and qq over generations.
  • Gene Pool — the total collection of alleles we are sampling from.
  • Speciation — accumulated frequency changes between isolated populations.
  • Mendelian Genetics — Punnett Squares — the individual-level logic behind heterozygotes carrying one copy.

Concept Map

shuffled into

counted over N individuals

copies counted over 2N

f AA + half f Aa

f aa + half f Aa

two alleles only

two alleles only

carries one copy

foundation for

falls out of counting

Gene pool: bag of alleles

Genotypes AA Aa aa

Genotype frequency

Allele: version of gene

Allele frequency p and q

p = freq of A

q = freq of a

p + q = 1

Heterozygote Aa

Half rule explains the 1/2

Hardy-Weinberg selection drift

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, population genetics ka sabse pehla step hai yeh samajhna ki ek population basically ek bag of alleles hai — jise gene pool kehte hain. Har allele gene ka ek version hai (jaise AA ya aa). Ab do cheezein alag hain: genotype frequency matlab kitne individuals ka particular pair hai (AAAA, AaAa, aaaa), aur allele frequency matlab total allele copies mein se kitni copies ek particular allele ki hain. Diploid organism mein har banda 2 copies rakhta hai, isliye total copies 2N2N hoti hain, sirf NN nahi.

Formula ratne ki zaroorat nahi — bas ginti karo. AA ki total copies nikaalne ke liye: har AAAA banda 2 AA deta hai, har AaAa banda sirf 1 AA deta hai, aur aaaa banda 0. Toh p=2nAA+nAa2Np = \frac{2n_{AA} + n_{Aa}}{2N}. Ise tod ke likho toh shortcut milta hai: p=f(AA)+12f(Aa)p = f(AA) + \tfrac12 f(Aa) — yaani "homo full, hetero half". Heterozygote ko aadha count isliye karte hain kyunki uske paas us allele ki sirf ek hi copy hai.

Sabse common galti: log p=f(AA)+f(Aa)p = f(AA)+f(Aa) likh dete hain — yeh galat hai kyunki AaAa waale ko poora count kar diya, jabki uske paas ek hi AA hai. Hamesha yaad rakho: hetero ko half do. Aur ek dhyaan ki baat — 2N2N wala rule sirf diploid, autosomal gene ke liye hai. X-linked gene mein males ke paas ek hi copy hoti hai, toh copies alag se ginni padti hain.

Yeh skill kyun important hai? Kyunki iske upar hi Hardy-Weinberg, selection, genetic drift aur aakhir mein speciation sab khada hai. Pehle allele frequency nikalna aata hai, tabhi tum bata paoge ki population evolve ho rahi hai ya nahi.

Test yourself — Population Genetics & Speciation

Connections