De Blasi 2015 - Species Sampling and Unseen Species Prediction

Summary

Given a sample with distinct species, Gibbs-type priors give the exact law of the number of new species in further draws, estimators of rare-species variety and of discovery probabilities. For PY they are explicit; the frequentist Good-Toulmin estimator becomes unstable once , the Bayesian PY estimator does not.

Main Content

Data summaries. distinct species, frequencies , or frequency counts with = number of species seen exactly times; , , . Targets: overall species variety ; rare species variety (Eq. 28); local discovery probabilities (Eq. 29), the labels with frequency in the enlarged sample (: new species).

Frequentist benchmarks. Turing: (Eq. 30), so and coverage . Good-Toulmin: , with (Eq. 31); alternating sums give inadmissible values for roughly.

Law of new species under Gibbs-type priors (Eq. 32)

with the non-central generalised factorial coefficient . So is sufficient for predicting the number of new species.

Pitman-Yor estimators (Eqs. 34-35, 39, 42-43)

PY: ; squared-loss estimator of overall variety

Bayesian Turing analogue () and new-species discovery probability at step

General Gibbs-type: and (Eq. 39).

Asymptotics (Eq. 36). Conditionally on , a.s. as , with ( beta, with density , the positive -stable density). Setting recovers the -diversity. Credible intervals via simulation of . Rare species (Sec. 4.2). (new species with frequency plus old species updated to frequency ); explicit sufficient statistic for old species (Eq. 37), for new (Eq. 38). PY: ; . For discovery of species with frequency in the enlarged sample: Eq. 40 and, for PY, Eq. 43.

Application (Table 2, Fig. 5). Naegleria gruberi ESTs from two cDNA libraries (Susko and Roger 2004). Frequency counts , and distinct genes :

Library
Aerobic3465719129542454
Anaerobic4917230913531201
Library
Aerobic100011111473959
Anaerobic013000000631969

Empirical-Bayes ; compare (Good-Toulmin) with (PY) for . The Good-Toulmin estimator is erratic for large relative to ; both agree for small ; the anaerobic library shows clearly higher gene diversity. One can choose the additional sample size as the largest value with discovery probability above a cost-based threshold. Footnote: estimators (40) and (43) correct a minor inaccuracy in the earlier discovery-probability estimators of the authors’ reference [19].

Examples

Recomputing the aerobic library (runnable)

, , , . Turing gives ; PY gives . As grows the Good-Toulmin estimator oscillates and diverges while PY decays smoothly:

GT PY GT PY
00.3610.42000
5000.3110.370167196
9590.3660.340305359
15000.314535
20000.296688
import numpy as np
from scipy.special import gammaln
M = {1:346,2:57,3:19,4:12,5:9,6:5,7:4,8:2,9:4,10:5,11:4,12:1,16:1,17:1,18:1,27:1,55:1}
n = sum(i*c for i, c in M.items()); k = sum(M.values())     # 959, 473
sig, th = 0.66, 155.5
lr = lambda x, m: gammaln(x + m) - gammaln(x)
U_py = lambda m: (th + k*sig)/(th + n) * np.exp(lr(th + n + sig, m) - lr(th + n + 1, m))
K_py = lambda m: (k + th/sig) * (np.exp(lr(th + n + sig, m) - lr(th + n, m)) - 1)
U_gt = lambda m: sum((-m/n)**(i-1) * i * c for i, c in M.items()) / n
K_gt = lambda m: sum((-1)**(i-1) * (m/n)**i * c for i, c in M.items())
for m in (0, 500, 959, 1500, 2000):
    print(m, round(U_gt(m), 3), round(U_py(m), 3), round(K_gt(m), 1), round(K_py(m), 1))

Relevance to marketing measurement

Replace species by SKUs, creative variants, keywords or customers. answers “how many new distinct items will appear in the next transactions”, “what fraction of the next transactions will be a first-seen item”. The exchangeability and the discrete-support assumptions are strong; check with held-out time splits.

Connections

Teh 2010 - Blackwell-MacQueen Urn and Chinese Restaurant Process, De Blasi 2015 - EPPF and Predictive Structure. Related vault area on unseen counts: Pareto-NBD Model.

See Also

De Blasi 2015 - Gibbs-Type Priors - Overview