← Tools

Many Loci, Clear Groups

Two groups can differ only slightly at every single variable and still be told apart almost perfectly once many variables are combined. Slide the per-locus difference and the number of loci to see why a per-variable variance share and a multivariate classifier answer different questions.

Lewontin (1972) measured, one genetic locus at a time, how much of the variation in allele frequencies lay within human populations versus between them, and averaged the result: about 85% within. He concluded that classifying people into such groups has “virtually no genetic or taxonomic significance”. Edwards (2003), in “Human genetic diversity: Lewontin’s fallacy”, pointed out that the inference does not follow: a per-locus summary cannot see the correlation across loci, and that correlation is where classifying information lives. This page is about that statistical point, using two abstract populations, A and B.

The argument in four steps

Every locus has two alleles. Every individual carries two copies of each locus, one from each parent.

1

One locus is a weak clue

An allele has frequency 0.6 in A and 0.4 in B. Given one person’s two copies, the best guess is right 60% of the time, barely better than a coin.

2

Count across 1,000 such loci

Out of 2,000 copies, an A member carries about 1,200 of the A-leaning alleles and a B member about 800. The person-to-person spread is only about ±22 (like a Galton board), so the two bell curves sit 18 standard deviations apart: near 100%.

3

Direction must be known

If allele 1 leans towards A at half the loci and towards B at the other half, a raw count of allele 1 is ~1,000 for everyone and tells you nothing. Counting the A-leaning allele at each locus restores 1,200 vs 800. That signed count is the likelihood-ratio classifier.

4

The 96% never moves

At each 0.6/0.4 locus, 96% of the variance is within groups (0.24 of 0.25). Average that over 1 locus or a million: still 96%. The per-locus share and the classifier accuracy measure different things.

Try it

Frequency difference d0.39

A-leaning allele: 0.695 in A, 0.305 in B (0.5 ± d/2) at every locus.

84.8%
Within-group share, every locus (1 − d²)
69.5%
Accuracy from one locus (= p)
8
Loci for 95% accuracy
27
Loci for 99.9%

The simulation draws 300 individuals per group across 10,000 independent loci (seed 1) and checks every analytic curve.

Per-locus variance share stays flat; accuracy climbs

0%25%50%75%100%1101001,00010,000number of loci L (log scale)
Within-group share, averaged over lociLikelihood-ratio accuracy (exact)Normal approximationωFilled dots / rings: simulation

ω (Witherspoon et al. 2007) is the probability that two people from different groups are more alike, counting allele differences over all L loci, than two people from the same group. It is exact up to 1,000 loci and a normal approximation beyond. It falls towards 0 more slowly than accuracy rises, and much more slowly when d is small.

Each simulated individual’s score with L = 10 loci

1 locus10,000 loci
threshold← looks like Blooks like A →-14.80.014.8ln P(genotype | A) − ln P(genotype | B), summed over loci

A and B: 300 individuals each. Classified correctly: 97.8% simulated, 96.4% in theory.

The numbers (d = 0.39)

Loci LWithin shareWithin (sim)Accuracy exactNormal approxAccuracy (sim)ωω (sim)
184.79%80.48%69.50%72.54%72.1%38.68%35.9%
1084.79%83.59%96.36%97.09%97.8%16.00%12.5%
10084.79%84.94%>99.99%>99.99%100.0%0.08%0.0%
1,00084.79%84.68%>99.99%>99.99%100.0%<0.01%0.0%
10,00084.79%84.70%>99.99%>99.99%100.0%<0.01%0.0%

Exact accuracy uses the binomial count of A-leaning copies (ties count half); the normal approximation treats the summed log-likelihood ratio as Gaussian with mean 2L·c·d and variance 2L·c²(1 − d²), where c = ln(p/q). The simulated within share is slightly below 1 − d² because sampling noise adds a little between-group variance.

The same structure elsewhere

  • Stylometry. Mosteller and Wallace (1964) attributed the disputed Federalist papers using rates of common words such as “upon” and “whilst”. Most single word rates overlap heavily between the two candidate authors; about thirty combined in a likelihood analysis were decisive.
  • Pixels. In black-and-white portrait photos, each pixel on its own would barely predict the subject’s sex, and nearly all its variance is within each sex. The joint pattern across thousands of pixels classifies well.
  • Dog breeds. Parker et al. (2004) assigned 99% of individual dogs to the right breed from 96 genetic markers, none of which identifies a breed on its own.

What this does and does not show

  • Two questions, two numbers. The within-group share measures how big the differences are; accuracy measures whether small differences are consistently patterned. With d = 0.02 (99.96% within) and d = 0.8 (36% within), enough loci classify both groups perfectly, but ω shows the two worlds are very different.
  • A fallacy is not its opposite. Showing an inference is invalid leaves its conclusion unproven, not false.
  • Classification says nothing about meaning. Accuracy says nothing about the social meaning of any categories, nor which traits differ, by how much, or why.
  • Two clean groups are an assumption. This model has exactly two populations and independent loci. Real variation is often continuous over geography, and crisp clusters partly reflect sampling far-apart places.

Lewontin, R. C. (1972). The apportionment of human diversity. Evolutionary Biology 6, 381–398. Edwards, A. W. F. (2003). Human genetic diversity: Lewontin’s fallacy. BioEssays 25, 798–801. Witherspoon, D. J. et al. (2007). Genetic similarities within and between human populations. Genetics 176, 351–359.