- Introduced by
- John Burdon Sanderson Haldane
- Year
- 1945
- Type
- Sequential sampling method
- Family
- Nonparametric
What does it do?
Inverse sampling is a sequential design in which units are drawn until a predetermined number r of occurrences of the target event or item has been observed, so the total sample size n is random.
The method is attributed to J. B. S. Haldane's 1945 paper on estimating frequencies. It is most useful when the target is rare, because the sampling effort continues until the events of interest accumulate rather than being spread over a fixed number of units that may contain few of them.
The intuition behind the method
In fixed-size sampling, the number of units is set in advance and the number of successes is random. Inverse sampling reverses this: the number of successes r is fixed, and the number of units n needed to reach it is random. Once r occurrences have been seen, the data are used to estimate the underlying proportion p. When the target is rare, the procedure spends its effort on finding the items of interest rather than on units that contribute little information about them. The cost is that n varies from one survey to another, so planning and variance calculations must use the sequential design rather than fixed-n formulas.
History
The method is attributed to J. B. S. Haldane, whose 1945 paper "On a method of estimating frequencies" is the earliest source cited for it. The estimator p̂ = (r − 1)/(n − 1) for the with-replacement design is the standard unbiased form associated with this method. Variants for finite populations sampled without replacement use the inverse hypergeometric model.
When to use it
Choose inverse sampling when the target event or item is rare (small p), each detection is costly, and the study can be run until a pre-set number of detections is reached. Typical settings are batch inspection for defects and case finding in low-prevalence populations. Do not use it for common events, where the design gains little over fixed-size sampling. It is also a poor fit when the survey must end at a fixed calendar date or budget, because the estimator relies on stopping at the r-th occurrence. Fix the sampling scheme (with or without replacement) before data collection.
Limitations and considerations
- Because n is random, budgets and staffing must be planned around expected values of n, which fixed-n formulas do not provide.
- Each unit must be classified clearly as target or non-target on observation; ambiguous classifications make the count of r unreliable.
- The unbiasedness result depends on the sampling scheme. With and without replacement the estimator and its variance differ, so the scheme must be declared and matched to the formulas used.
- Variance expressions are more involved than for fixed-size sampling, and the derivation must respect the sequential stopping rule.
- When p is not small, fixed-size sampling is usually more economical, since the random-n design gains little.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- When p is small, the procedure concentrates effort on detecting the target rather than on units that give no information about it.
- The stopping rule (stop at the r-th occurrence) is simple to apply in the field.
- Under the with-replacement design, the estimator p̂ = (r − 1)/(n − 1) given in the FAQ is the usual unbiased point estimator for this method.
- The design does not require p to be known in advance, because n adjusts to the observed rate.
Applications
- Genetic screening: continuing blood tests until a fixed number of disease carriers are identified.
- Defect detection in manufacturing: sampling items until r defects are found, to estimate the defect rate.
- Rare disease surveillance: monitoring a population until a target number of cases is observed.
- Acceptance sampling: continuing inspection of a shipment until enough non-conforming items are found to reject the lot.
How it works
How it works
Draw units one at a time until exactly r occurrences of the target event or item have been observed. The sampling scheme (with or without replacement) must be declared before fieldwork, because it determines which estimator and variance formulas apply.
Record the total number of units n drawn when the r-th occurrence is observed; n is a random variable, not a planned quantity.
Stop sampling at the r-th occurrence. Continuing past this point, or changing r during the survey, departs from the design on which the estimator is based.
Estimate p with the estimator that matches the declared sampling scheme. For the with-replacement design, p̂ = (r − 1)/(n − 1), where n is the total number of draws, is an unbiased estimator of p. Attach uncertainty measures only from variance formulas derived for the sequential design, because fixed-n formulas do not apply when n is random.
Common pitfalls
- Applying fixed-n variance formulas or confidence intervals to a design whose sample size is random.
- Stopping before the r-th occurrence, or changing r during the survey, which alters the distribution of the estimator and can introduce bias.
- Applying the method to a common event, where its efficiency advantage largely disappears.
- Mixing the with-replacement and without-replacement estimators, which rest on different distributional models.
Frequently asked questions
Why is inverse sampling more efficient for rare events?
With a rare event, fixed-size sampling often records mostly non-events and may yield very few occurrences. Inverse sampling stops once r occurrences have been found, so the number of target items is fixed in advance and the effort is spent on finding them. The total number of units drawn is random, and its expected size depends on p and r.
How do I choose r?
The value of r sets the number of detections and therefore the precision of the estimate; a larger r generally means a larger expected n. Under the with-replacement model, n follows a negative binomial distribution with expected value E[n] = r/p, so planned budgets should use this expected value and be checked against plausible values of p, since a rarer target requires more draws. Choose r from the precision you need and the cost of sampling.
What estimator should I use for p?
For the with-replacement design, p̂ = (r − 1)/(n − 1), where n is the total number of draws, is the standard unbiased estimator of p under this design. Without replacement the estimator and its variance differ, so confirm the correct form for your scheme before use. Variance calculations must account for the random n, and fixed-n confidence intervals should not be used.
Does inverse sampling work with replacement?
Yes, but the two schemes differ. With replacement, the number of draws needed to reach r occurrences follows a negative binomial distribution. Without replacement, the finite population leads to a different model, based on the inverse hypergeometric distribution. Declare which scheme applies before analysis.
Can I use inverse sampling if I do not know p in advance?
Yes. The stopping rule does not require p to be known in advance: if the target is rarer than expected, more units are drawn before r occurrences are reached. The sample cost then rises, so check the expected budget against plausible values of p.
Related methods
Sources
Haldane, J. B. S. (1945). On a method of estimating frequencies. Biometrika, 33(3), 222–224.
Open DOI referenceSerfling, R. J. (1968). Contributions to central limit theory for dependent variables. Annals of Mathematical Statistics, 39(4), 1158–1175.
Open DOI referenceLahiri, D. B. (1951). On the question of bias of some estimators and a suggestion for unbiased estimation. Journal of the Indian Statistical Association, 1(1), 25–42.
Open publication reference