Concept - Unseen Species and Latent Class Links

Summary

Estimating the number of unseen species (PyMC E30) is the same “count the zero cell” problem as capture-recapture, with species as individuals and sample frequencies as capture counts. Latent-class models for noisy raters (E69) are the same mixture-of-product-Bernoullis family as latent-class MSE, but with the all-zero pattern observed, which changes identification.

Overview

This note bridges the two examples that touch the cluster only partly: E30 (Pólya urns, Chinese restaurant process, Pitman-Yor, unseen species in Moby-Dick and Barro Colorado Island trees; handled mainly in the Bayesian nonparametrics cluster) and E69 (latent class models for pathologists and anaesthetists; handled in the raters cluster). Both are listed at https://redam94.github.io/pymc-challenges/examples.html.

Main Content

Unseen species as capture-recapture

Let be the number of species observed exactly times in a sample of items, , and the (unknown) richness. The unseen species are the cell, whose count must be extrapolated from exactly as is extrapolated from capture frequencies.

Classical unseen-species estimators

  • Good-Turing: probability mass of unseen species (Good 1953).
  • Chao1 lower bound (Chao 1984): , the lower bound of Concept - Closed-Population Capture-Recapture and Otis Models.
  • Pitman-Yor / Gibbs-type priors (Pitman and Yor 1997) give the exchangeable-partition probability of a new species, yielding predictive richness curves without fixing .

Chao1 worked example

Tree census with species, , : . Interpretation: at least 45 unseen species are implied by the abundance of singletons relative to doubletons; the figure is a lower bound under heterogeneous detectability, as non-identifiability of forbids a tighter point estimate without parametric assumptions (Concept - Closed-Population Capture-Recapture and Otis Models).

Latent class for raters versus MSE

AspectRaters / diagnostic tests (E69)Latent-class MSE (E109)
Unitsitems rated by ratersindividuals on lists
Dataall patterns observedall but observed
Latent classtrue state (e.g. positive/negative)heterogeneity classes (no direct meaning)
Targetclass prevalence, rater error ratestotal via
Identification conditionally independent raters give a locally identified 2-class model (parameters holds for ); label switching remainsnon-identified when (Aleshin-Guendel 2020 - Latent Class Identifiability Theorem and LCMCR)
Fix for label switchingYouden / better-than-chance orderingordering of class probabilities

The “parameter versus degrees-of-freedom counting” in E69 is the necessary condition in the rater setting (the missing cell is observed, so the table has free dimensions), versus conditional dimensions for MSE (Aleshin-Guendel 2020 - Mth Model and Identifiability Definition). Counting is necessary, not sufficient.

Counting for three raters, two classes

Parameters: one class weight plus error rates ; table dimension . Saturated but identified up to label switching (Goodman 1974 conditions); a fourth rater gives overidentification and enables testing conditional independence. In MSE with lists the missing cell removes one dimension: would need , false, so even this small latent-class MSE model is non-identifiable.

Examples

Python check of the counting argument

for K in (3, 4, 5, 6, 8, 10):
    rater_max = max(J for J in range(1, 200) if J*(K+1)-1 <= 2**K - 1)
    mse_count = max(J for J in range(1, 200) if J*(K+1)-1 <= 2**K - 2)
    mse_thm = K // 2
    print(K, rater_max, mse_count, mse_thm)    # counting bound vs Theorem 2 bound

The gap between mse_count and mse_thm shows how much stricter Theorem 2 is than parameter counting.

Connections

See Also