The effectiveness of vertebrate adaptive immunity depends crucially on the establishment and maintenance of extreme diversity in the antigen receptor repertoire. Spectratype analysis is a method used in clinical and basic immunological settings in which antigen receptor length diversity is assessed as a surrogate for functional diversity. The purpose of this paper is to describe the systematic derivation and application of statistical methods for the analysis of spectratype data.