← Virtual labs

PIM-30125 minCore skill

Consignment inspection sampling

Plan an inspection of a consignment with a hidden pest. Pick the units, see the chance of detection, then inspect and find out what a clean result really tells you.

Loading the lab…

About this model

Inspection looks at a sample of units and decides about the whole consignment. The design prevalence is the lowest infested share you want to be able to detect and the confidence is how sure you want to be of finding it. For a large consignment the number of units is n = ln(1 − C) ÷ ln(1 − p): 59 units for 95% confidence of detecting 5%, 299 units for 1%, 598 for 0.5%. A small consignment is sampled without replacement (a hypergeometric calculation) and needs fewer units; this lab uses that exact calculation, with D = p × N rounded up, as in the lesson table. If inspection spots only a fraction e of infested units, the effective prevalence is e × p and the sample must grow (373 units instead of 299 for e = 0.8).

A clean sample does not prove a clean consignment. After n clean units, an infested share of about 3 ÷ n (at 95% confidence) cannot be ruled out. The lab shows this residual risk, the chance that the same plan would have found the pest, and what happens over 1,000 repeats. Sampling must be random or representative: taking units only from the boxes nearest the door can miss a clustered infestation completely. Random sampling of units does not depend on how the pest is arranged, but taking units from only some boxes does.

Modelling choices the lessons do not give: boxes hold 100 units (as in the 6,000-plant lot of lesson 3.2); a clustered pest sits in at least 10% of the boxes, evenly spread among them; the door is at box 1. The scoring is a teaching rubric. Probabilities are exact for the consignment shown; the single inspection is one random draw.

Calibrated against: PIM-301 lesson 2.3 (sample-size formula, the table of 298, 290, 258, 189, 147 and 54 units, the 373-unit detection example and the clean-sample worked example; all reproduced in the unit tests); PIM-301 lesson 3.2 (291 plants from a lot of 60 boxes); ISPM 31: Methodologies for sampling of consignments (FAO, IPPC).

This is a teaching model. It shows how the variables behave and what to expect; your own instruments, reagents and material will differ, so always follow your lab's validated procedure.

Related lessons: Sampling consignments (PIM-301 lesson 2.3),Arrival inspection (PIM-301 module 3)