Test version (beta). This calculator is under development and is published for evaluation. Results may contain errors and the method may change without notice. Use them for orientation only and check anything important with your own engineering judgment.
Testing and quality Beta
Sampling & Risk
How likely is a random sample to catch a defect in a lot of PV modules, inverters or other equipment? Check a sample, size one, or see what zero findings mean.
Results
Your lot at a glance
Show the figures
Rule of thumb
How to read this
The calculation assumes a random sample of different units from one lot and one defect criterion at a time. It is a probability calculator, not an acceptance-sampling plan: it does not accept or reject a lot and does not replace the inspection plan of your contract.
Need a defensible sampling or inspection campaign?
We plan the sample with you, run the inspection on site and document the result so it holds up in front of a supplier or a lender.
Take the results with you
A PDF with your inputs, the results, the chart, the figures and the method, written in your browser. It opens in a new tab, where you can read it and save it.
Calculated in your browser. Nothing you enter is sent or stored.
Method
How the model works
Picture the lot as N units, D of them defective. You draw n units at random, without replacement, and inspect them. The number of defective units that lands in the sample follows the hypergeometric distribution, exact for a finite lot, so the chance of catching none is the number of ways to pick n units among the good ones divided by the number of ways to pick n among all. Everything else follows: the chance of catching at least one is the complement; the smallest sample is the first n whose chance reaches your target; the upper bound after zero findings is the largest D whose chance of zero findings is still at least 1 − C. If the inspection catches each defective unit with a chance s below 100 %, the chance of zero findings is the same calculation weighted by (1 − s) for each defective unit in the sample, still exact.
Pnone = C(N − D, n)C(N, n)
P≥1 = 1 − Pnone
- N
- units in the lot
- D
- defective units assumed in the lot (the scenario)
- n
- different units inspected, drawn at random without replacement
- C(a, b)
- ways to choose b units out of a
- 01
One unit, one count
The unit you inspect is the unit you count. A module with three cracked cells is one defective module, and a visual check plus an EL image of the same module are two tests on one sampled unit, not two units.
- 02
A scenario, not a measurement
The defect level you enter is a supposition to test. The calculator does not estimate the defect rate of the lot, and the result is not evidence that the lot has that level. A share becomes a whole number of units, shown with its real share.
- 03
Catching is not accepting
The chance of catching at least one defective unit is not the chance that the lot is defective, and it is not an accept or reject decision. Those belong to the inspection plan of your contract.
Assumptions and limits
- The sample is random: every set of n different units is equally likely. Picking only accessible rows, suspicious strings or the containers at hand breaks that, and no statistic fixes it afterwards.
- One lot and one defect criterion at a time. Different defects usually need different sensitivities; where prevalence differs by manufacturer, container, location or date, treat them as separate lots.
- A sensitivity below 100 % models missed defects only, the same for every defective unit and independent between units. False alarms, clustered defects and correlated errors are not modelled.
- The upper bound after zero findings is a one-sided frequentist bound: lots above it would have produced zero findings less than 1 − C of the time. It is not the probability that the true count is below the bound.
- Percentages are shown to two decimals; below 0.01 % they are shown as such, and 100 % only when the model gives exactly 1. The report carries the exact values. Lots up to one million units.
Indicative estimate
Indicative estimate from an exact statistical model and the data entered. The defect scenario is a supposition, not a measurement; the result is a conditional probability or a confidence bound under the stated assumptions, not a verdict on the lot. It does not replace a site inspection, the inspection plan of your contract or the judgment of a qualified engineer.
Need a defensible sampling or inspection campaign?
Tell us about your lot and your contract and we will help you plan the sample, run the inspection and document the result.