Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Effective Population Size from Generation Records

If we observe each generation, how can we measure the strength of drift? Use the same simulated cultures as the first notebook. The records contain complete population frequencies in generations 0–19. They have no additional genotype-sampling error, mutation, migration, or selection.

For parental frequency pp, define

cV=Var⁡(pt+1−pt∣pt=p)p(1−p),Ne(V)=12cV.c_V=\frac{\operatorname{Var}(p_{t+1}-p_t\mid p_t=p)}{p(1-p)}, \qquad N_e^{(V)}=\frac{1}{2c_V}.

Repeated cultures starting at the same pp let us estimate this conditional variance. One culture’s change alone does not provide it.

Read the Generation Records

The code above regenerates the first notebook’s records with the same seed, so this notebook also runs independently. Rows are known generations and columns are independent cultures. Inspect the first six cultures.

Loading...

Estimate the Copying Rate within a Frequency Class

Every culture starts at p0=0.5p_0=0.5. Use the first recorded transition across cultures to estimate sp2=Var⁡^(p1−p0∣p0=0.5)s_p^2=\widehat{\operatorname{Var}}(p_1-p_0\mid p_0=0.5). Then N^e(V)=p0(1−p0)/(2sp2)\widehat N_e^{(V)}=p_0(1-p_0)/(2s_p^2). Later transitions have different parental frequencies and must be grouped by their starting frequency before applying this same calculation.

Loading...
Plot with title “Changes across recorded cultures”

Compare with the Generating Size

The estimate used only the two recorded frequencies. Now reveal the known simulation size. Finite replication makes the estimated variance noisy. Buri’s experiment in the lecture uses the same variance-matching principle; these simulated records do not reproduce his observed estimates.

Loading...

Sources: Pritchard, Sec. 2.1; Gorroochurn, Sec. 8.8; Buri (1956), Table 11 and Fig. 3. This calculation requires time-indexed frequencies. Lecture 9 estimates population parameters from sampled genetic data without these generation records.