An f4-statistic is a test on four populations: at each SNP, multiply the allele-frequency difference between one pair by the difference between the other, then average across the genome. If the four fit a simple tree with no gene flow between the pairs, the answer is zero in expectation, so a consistently non-zero f4 means the tree is wrong somewhere.
Introduction1 min
Strip away the software and the acronyms, and the modern ancient-DNA toolkit (qpAdm, qpWave, admixture graphs, half the tests in any Reich-lab supplement) runs on one small family of numbers: f-statistics, introduced formally in Patterson et al. 2012. They measure shared genetic drift between populations, and their genius is that simple combinations of allele frequencies behave like testable geometry. This is the family explained from the ground up, with no software required.
Drift, and why sharing it is evidence
1 min
When a population lives on its own, allele frequencies wander: that is genetic drift. Two populations descending from a common ancestor share the wandering that happened before they split, and not what happened after. Measure how much drift two groups share, against how much each took alone, and you are reading the shape of their family tree from frequencies. f-statistics are exactly that measurement, made rigorous.
f2(A, B) is the squared allele-frequency difference between two populations, averaged over many SNPs: the total drift separating them, and the raw material for everything else (ADMIXTOOLS 2 precomputes exactly this).
f3(Target; A, B) comes in two uses. As an admixture test, a significantly negative f3 says the target’s frequencies sit between A’s and B’s too consistently to be anything but a mixture of sources related to both, which makes it one of the very few one-number proofs of admixture in the toolkit. As outgroup-f3 (with a distant outgroup as the target), it ranks which candidates share the most drift with a population of interest: the standard “who is closest” screen.
A history of admixture does not always give a negative f3. Heavy drift in the target after the mixture, from founder events for example, can mask the signal (Patterson et al. 2012). Read a positive f3 as no signal from this test, and leave the question of admixture open.
f4: the four-population test
1 min
This is the workhorse. Take four populations arranged as two pairs, f4(A, B; C, D), and multiply, SNP by SNP, the frequency difference within one pair by the difference within the other, then average. If the tree ((A,B),(C,D)) is true and no gene flow crosses between the pairs, the two differences are uncorrelated and f4 is zero in expectation. A consistently non-zero f4 means the tree is wrong somewhere: either the topology is different, or genes flowed across it.
The sign says where. A positive f4(A, B; C, D) indicates A shares extra drift with C (or B with D); negative, the reverse pairing. One worked example, the most famous in the field: f4(French, Yoruba; Neanderthal, Chimp) is reliably positive, because French carry more Neanderthal-shared drift than Yoruba do. That is the archaic-introgression signal, in one line of arithmetic. (D-statistics, of ABBA-BABA fame, are the same test under a normalisation; for reading purposes, D and f4 are one idea.)
Significance comes from a block jackknife:
- Cut the genome into blocks
The blocks are long enough that linkage disequilibrium does not tie neighbouring SNPs together.
- Recompute, leaving out each block
The statistic is recomputed with each block left out in turn, and the spread of those values gives a standard error.
- Divide the estimate by its standard error
That is the Z-score. The papers’ “|Z| > 3” convention marks f4s more than three errors from zero, the same reading discipline qpAdm weights inherit.
From single tests to models: the qpAdm identity
1 min
Single f4s test trees; the step that turns them into ancestry proportions is one identity (Haak et al. 2015): if a target descends from sources in proportions α₁ to αₙ, then every f4-statistic of the target against outgroup contrasts equals the α-weighted sum of its sources’ f4s against the same contrasts. Compute a stack of such statistics against a well-chosen right set, and the proportions become the least-squares solution of a linear system, with SEs from the jackknife and a rank test asking whether n sources are even sufficient. That is qpAdm, whole: f4-statistics arranged into a model that can fail.
Its one-number relative is the f4-ratio, which divides one f4 by another to estimate a two-way mixing proportion. If X is a mixture of a lineage related to B and a lineage related to C, with A a relative of B and O an outgroup, the B-related share is α = f4(A, O; X, C) / f4(A, O; B, C). It rests on a phylogeny you assume and does not test (Patterson et al. 2012), and how it works and when it beats qpAdm has its own post.
Reading the family this way explains the toolkit’s division of labour. Descriptive tools such as PCA, ADMIXTURE and coordinate fits summarise resemblance and always answer. f-statistics test, and their tests can refuse.
Reading f-statistics in the wild
1 min
When you meet one of these in a paper, this is what it computes and what a value says:
| Statistic | Computed as | What a value says |
|---|---|---|
| f2(A, B) | (A − B)², averaged over SNPs | The total drift separating two populations |
| f3(Target; A, B) | (Target − A) × (Target − B), averaged over SNPs | Significantly negative: the target is a mixture of sources related to both A and B. As outgroup-f3: which candidates share the most drift with a population of interest |
| f4(A, B; C, D) | (A − B) × (C − D), averaged over SNPs | Consistently non-zero: the tree ((A,B),(C,D)) is wrong somewhere, and the sign says which pairing shares extra drift |
| D(A, B; C, D) | The same product, normalised | The same test, on a scale from −1 to 1 |
How far to trust any of these values depends on the Z-score and the data:
- A |Z| below 3 means “no detected signal”, not “zero admixture”. Power depends on SNP counts and sample sizes, and thin data forgive everything.
- The statistics are only as clean as the data. Ancient-DNA damage, reference bias and batch effects generate small spurious f4s, which is why the careful papers run damage-restricted replications and why merge hygiene is half the craft.
Direction, timing and source identity need models (qpAdm) or graphs, which is why single-statistic headlines overreach.
If you want to feel the arithmetic, run it. ADMIXTOOLS 2 computes every one of these statistics in R (the tutorial sets it up), and the Ancestry Workbench merges your own genome into the AADR panel and includes the merged EIGENSTRAT bundle to run them on: the same family of numbers this post just built from frequencies, pointed at real genomes.
Terms used here are defined in the glossary.
References
1 min
- Patterson, N. et al. (2012). Ancient admixture in human history. Genetics, 192(3), 1065-1093.
- Reich, D., Thangaraj, K., Patterson, N., Price, A. L. & Singh, L. (2009). Reconstructing Indian population history. Nature, 461, 489-494. (The f3/f4 framework’s first major application.)
- Green, R. E. et al. (2010). A draft sequence of the Neandertal genome. Science, 328, 710-722. (The ABBA-BABA / D-statistic introduction.)
- Haak, W. et al. (2015). Massive migration from the steppe. Nature, 522, 207-211.
- Maier, R. et al. (2023). On the limits of fitting complex models of population history to f-statistics. eLife, 12, e85492.



