A statistic was designed to compare the observed genotypic diversity of a sample with the expected genotypic diversity calculated from sample gene frequencies, using the assumptions of Hardy-Weinberg equilibria and linkage equilibria. The relationship of expected genotypic diversity to the sample size was investigated.