Definitioncore
Nucleotide diversity
Also called Tajima's pi, mean pairwise difference.
The average number of differences per site between two sequences drawn from a sample, an estimator of theta under neutrality.
Nucleotide diversity is the average number of differences between two sequences drawn at random from a sample, per site of the aligned region or per locus. Nei and Li defined it in 1979, and it is the most common measure of genetic variation in DNA data. Under the neutral infinite sites model, the per-locus value is an unbiased estimator of (Tajima 1983). It weights each segregating site by how evenly its two alleles split the sample, so it gives a different view of the same data than Watterson's estimator, and Tajima's D compares the two.
Definition
Take aligned sequences of sites each. Let be the number of sites at which sequences and carry different bases. The mean pairwise difference of the sample is
and the nucleotide diversity per site is . Both are called in the literature; a value below 1, such as , is per site, and a value such as is per locus. This page writes for the per-locus value.
Nei and Li stated the population version with haplotype frequencies. If haplotype has frequency and haplotypes and differ at a fraction of the sites, then , the expected fraction of differing sites between two copies drawn with replacement. The sample version with the sample frequencies is multiplied by , to count pairs of two distinct copies. That gives the formula above, divided by .
As a sum over sites. A site where of the sequences carry one allele and the other separates exactly pairs. So
where is the site frequency spectrum. This takes time from the counts, against for the sum over pairs, and it does not need to know which allele is ancestral, because is the same for and .
Expectation (Tajima 1983). Under the neutral infinite sites model with constant size, .
Proof. Each is the number of mutations on the path between and in the Kingman coalescent tree. The two lineages coalesce at rate 1, so the path has two branches of mean length in units of generations, and mutations fall at rate per branch. So , and the mean of the terms has the same expectation.
The same result follows from the spectrum: .
Variance (Tajima 1983). Without recombination,
For this is , the variance of the geometric law of the number of differences between two sequences. As it tends to , not to 0: all pairs share one genealogy, and more sequences do not remove the randomness of the deep branches. For the variance is at , at and at . Watterson's estimator has the variance , which is , and at the same sample sizes and does tend to 0, slowly. So has the larger variance, and it is the less efficient estimator of under the neutral model. Recombination lowers both variances, because sites then have partly independent trees.
Examples and non-examples
A sample of five. The matrix of the infinite sites model page,
| copy | s1 | s2 | s3 | s4 | s5 | s6 |
|---|---|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 0 | 0 | 1 |
| 2 | 1 | 0 | 0 | 0 | 0 | 0 |
| 3 | 0 | 1 | 0 | 1 | 0 | 0 |
| 4 | 0 | 0 | 1 | 1 | 0 | 0 |
| 5 | 0 | 0 | 1 | 1 | 1 | 0 |
has these pairwise differences:
| pair | 1,2 | 1,3 | 1,4 | 1,5 | 2,3 | 2,4 | 2,5 | 3,4 | 3,5 | 4,5 |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 4 | 4 | 5 | 3 | 3 | 4 | 2 | 3 | 1 |
The sum is 30, so . By sites, the counts give , again a sum of 30. If the six sites lie in a region of aligned bases, the nucleotide diversity per site is . Watterson's estimate from the same data is .
Scale. In humans, nucleotide diversity per site is about : two copies of a genome differ at about one site in a thousand.
Non-examples.
- The number of segregating sites is not . A singleton adds to and only to ; a site with a 50:50 split adds to and about to .
- The fraction of sites that differ between two sequences of two species is a divergence, not a diversity. Under a substitution model it needs a correction for multiple hits, such as Jukes-Cantor, before it estimates a distance. Within a species the per-site values are small, and the correction is usually skipped.
- Gene diversity (expected heterozygosity) counts whether two copies differ at all at a locus, not at how many sites. It belongs to the infinite alleles model.
Related definitions
- Watterson's estimator , another unbiased estimator of ; see Watterson's estimator.
- Tajima's D is divided by an estimate of its standard deviation; see Tajima's D. A deficit of intermediate-frequency sites makes small next to and negative.
- Between-population diversity : the mean number of differences per site between one sequence from population and one from population . With the within-population values it gives measures of differentiation such as the fixation index.
- Per-site values with missing data. When some sequences have no base at some sites, a common definition sums, over the sites, the fraction of differing pairs among the pairs with data at that site, and divides by the number of sites with data. Tools differ in which sites they count in the denominator (all sites of the region, or only the sites with data), and the two choices give different values.
References
- Masatoshi Nei and Wen-Hsiung Li, Mathematical model for studying genetic variation in terms of restriction endonucleases, Proceedings of the National Academy of Sciences USA 76(10), 1979, pp. 5269-5273 (the definition of nucleotide diversity as the mean number of differences per site between two sequences)
- Fumio Tajima, Evolutionary relationship of DNA sequences in finite populations, Genetics 105(2), 1983, pp. 437-460 (the mean and the variance of the average number of pairwise differences in a sample)
- John Wakeley, Coalescent Theory, An Introduction, Roberts and Company, 2009, Chapter 4 (pairwise differences and estimators of theta)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag SPH0ZW Edit this page History Report an error Markdown