Testing for Admixture with f3-Statistics in AdmixPy
f3-statistics are used to test if populations are admixed or to measure shared genetic drift between two populations relative to an outgroup. This post explains the theory behind admixture f3-statistics and shows how to run admixture f3 tests with AdmixPy. If you want to skip the theoretical part, you can jump to Running admixture f3-statistics in AdmixPy. What is an f3-statistic? For three populations, the statistic is written as: f3(A;B,C)=Ei[(pA,i−pB,i)(pA,i−pC,i)] f_3(A;B,C)=\mathbb{E}_i\left[(p_{A,i}-p_{B,i})(p_{A,i}-p_{C,i})\right] f3(A;B,C)=Ei[(pA,i−pB,i)(pA,i−pC,i)]Here, AAA is in the target position. Populations BBB and CCC are the reference populations. The value pA,ip_{A,i}pA,i is the allele frequency in population AAA at SNP iii. The expectation is an average across SNPs. ...