How this calculation works
Smooth observed frequency classes with Simple Good Turing regression, allocate unseen mass and normalize probabilities for the observed types.
N=Σr n_r; P₀=n₁/N; Z_r=2n_r/(t−q); r*= (r+1)S(r+1)/S(r), with Gale–Sampson empirical-to-smoothed switching.A worked example
The default table has N=97 observations and n₁=20 singleton types, giving unseen probability mass P₀=20/97≈0.206185567. The remaining 77/97 is redistributed across observed types.
Good to know
Positive integer frequency/count-of-types rows with at least five occupied classes and total observations at most 1000000. Gale–Sampson log-linear smoothing and switching convention; reject inadequate regression. Unseen mass is not a count of unseen species or their individual probabilities.
Reference: Gale and Sampson: Simple Good Turing estimation (opens in a new tab) ↗
Separate an observed type from its frequency class
A frequency-of-frequencies table compresses repeated observations. The row r=3, n_r=6 means that six different types each appeared three times. It contributes eighteen observations and six observed types. It does not describe six observations whose value happened to be three, a distinction that changes both the sample size and the smoothing problem.
Simple Good Turing estimates probabilities for the next observation. Types in the same observed-frequency class receive the same probability under this calculation. It reserves some total probability for types not yet observed, then redistributes the remaining probability among observed classes. The unseen allocation is a total mass, not a list of hypothetical new types.
Compare this with the Chao1 species richness and sample coverage calculator from abundance counts. Assign smoothed probabilities to observed frequency classes and reserve unseen mass; Chao1 estimates a richness count and its Good-coverage output alone does not provide this probability smoothing.
Build the compressed input table
Enter one positive integer frequency and one positive integer type count per row. Combine duplicate frequencies before entering them, and do not add an r=0 row: the number of unseen types is unknown. The sample size is the sum of frequency times type count, while the number of observed types is the sum of the type counts.
At least five occupied frequency classes are required here to avoid presenting a fragile two-point regression as a substantive smoothing result. The supported total observation count is one million. Wide gaps between occupied frequencies are allowed, but they affect the spacing correction used before regression. A zero-frequency placeholder is not a substitute for an absent class.
Why the spacing correction matters
A raw plot of n_r against r can be sparse because many frequencies do not occur. The smoothing method first divides each count by a width derived from neighboring occupied frequencies. That produces Z_r values representing the local density of the frequency spectrum. The first and last occupied classes use the method’s boundary conventions rather than borrowing missing observations.
A line fitted to log Z_r against log r supplies a power-law smooth S(r). This is a modeling step for the frequency spectrum. A computable slope is not proof that the spectrum follows a power law, and the calculator does not turn the fit into a universal confidence guarantee. A regression that cannot support the required adjustment is rejected.
Switch from empirical to smoothed adjustments
When an adjacent class exists, the ordinary Good Turing adjusted count uses the ratio of its type count to the current class count. Sparse classes can make that ratio unstable, and a missing next class would force an unhelpful zero. Simple Good Turing compares the empirical adjustment with the regression-based adjustment using the specified sampling-error threshold.
Once the switching rule selects smoothing, subsequent frequency classes also use the smoothed curve. This one-way switch avoids treating each class as an unrelated model-selection contest. The adjusted counts are then normalized jointly. Reading an unnormalized adjusted count as a final probability would ignore both the sample size and the probability reserved for unseen types.
Check the default unseen mass
The default rows contain twenty singleton types, ten doubletons, six tripletons, four types seen four times, three types seen five times and one type seen eight times. Their observation contributions are twenty, twenty, eighteen, sixteen, fifteen and eight. The total is ninety-seven, not the sum of the six frequency labels.
The singleton estimate therefore assigns 20/97, about 0.206185567, to all unseen types together. Observed types collectively receive 77/97. Their individual probabilities depend on the fitted adjustments and normalization, so the unseen-mass calculation alone is not the complete answer. The output’s class table shows that additional allocation rather than stopping at sample coverage.
Interpret class and per-type probabilities
A class containing n_r types has a class probability equal to n_r times its per-type probability. Summing only the per-type column once per occupied row would undercount the observed probability whenever a class contains multiple types. Check the class-total column when verifying that observed mass plus unseen mass adds to one.
A frequent type may receive an adjusted probability different from its raw relative frequency. That is the purpose of smoothing, not a rounding error. The method trades a direct empirical frequency interpretation for an estimate designed to account for unseen outcomes. It does not identify which unseen outcome will occur or how its mass should be split among names.
Keep the predictive scope narrow
The estimator assumes the entered frequency spectrum is informative about another observation from the same sampling process. A changing vocabulary, altered species-detection procedure or merged samples from different populations can violate that use. Increasing the number of digits in the output cannot compensate for a mismatch between past sampling and the intended future prediction.
Use a richness estimator for a question about how many types remain unobserved, and a species-coverage calculation for that narrower summary. This page adds the observed-class smoothing and switching calculation. A large unseen mass is a warning about incomplete observed support, but it is neither a count of missing types nor a recommendation to sample a particular number more.
A few questions, answered
Is unseen mass the number of missing species?
No. It is the estimated probability that the next observation belongs to any as-yet-unseen type.
What does a frequency row mean?
The first value is an occurrence count; the second is how many distinct types had exactly that count.
Why can I omit missing frequency classes?
The spacing-corrected regression is designed to work with occupied classes and their gaps.
Why is the probability table normalized again?
The observed types must collectively receive exactly one minus the reserved unseen mass.