Login Register

Access the GIFSQ Portal

Select your user type to log in or register a new account.

Student Portal

Access your food safety courses and exams.

Instructor Portal

Manage courses, view student submissions, and grade quizzes.

Company Portal

Manage corporate setup, view employee logs, and access QA services.

SOP: Fitting the Poisson Distribution to Rot Counts and Testing Goodness of Fit

GIFSQ ID: SOP-0905

Purpose

To fit observed counts (for example, rot counts or insect fragments per sample) to the Poisson distribution and to test the goodness of fit with the chi-square test, so the laboratory can judge whether the samples were drawn at random.

Scope

This method applies when the sample size of a lot is very large and the chance of an event occurring is very small, so the binomial distribution tends towards the Poisson distribution. It applies to count data such as rot counts per gram. It does not replace the count method itself; the counts come first and this fitting step follows.

Principle

When the sample size of a lot is very large and the chance of an event occurring is very small: for example, rot counts or insect fragments in spite of good manufacturing practice: the binomial distribution tends towards the Poisson distribution. Fitting the observed counts to the Poisson distribution and testing the goodness of fit with the chi-square test shows whether the samples were drawn at random.

Materials

  • The observed counts per sample (e.g. rot counts per gram) for N samples
  • The source’s cumulative Poisson probability table for finding expected frequencies

Procedure

Count the number of samples showing 0, 1, 2, … occurrences of the event and record the observed frequencies

↓

Compute the mean count per sample m using the expression below

↓

Compute the probability of each count x from the Poisson expression below and multiply by the number of samples N to obtain the expected frequency for each count

↓

Compare the observed and expected frequencies; where the expected frequency of a class is less than 5, combine neighbouring classes

↓

Compute the chi-square value from the observed and expected frequencies using the expression below

↓

Refer the chi-square value to the chi-square table with the appropriate degrees of freedom and judge whether the observed data follow the Poisson distribution

Calculation

Mean count:

m = Σfx / N

Poisson probability:

P(x) = e⁻ᵐ × mˣ / x!

Mean and standard deviation of the Poisson distribution:

μ = m

σ = √m

Chi-square goodness of fit:

χ² = Σ[(O − E)² / E]

Where,

  • m = mean count per sample
  • f = number of samples showing a given count
  • x = observed count
  • N = number of samples
  • e = 2.71828
  • O = observed frequency
  • E = expected frequency

Worked example

Rot counts per gram in 50 samples of a product gave a mean of:

m = (sum of f × x)/50 = 1.02

The expected frequencies computed from P(x) = e⁻¹·⁰² × 1.02ˣ/x! tally closely with the observed frequencies, suggesting that the samples were drawn at random, so the mean rot count of 1.02 can be accepted with confidence.

To test the hypothesis, the chi-square test is applied. Two constants: the frequency and the mean: have been fitted, giving 1 degree of freedom:

χ² = 0.345

The chi-square value of 0.345 is not significant; the actual significance level lies between p = 0.70 and p = 0.50, which confirms that the observed data reasonably follow a Poisson distribution.

Note: the source’s Table 33-6 carrying the class-by-class expected frequencies is illegible in the available copy; the mean (1.02), the chi-square value (0.345) and the conclusion are carried as printed.

Precautions

  • When the values of m are small, the distribution slants towards one side or the other of the mean; established tables must then be used.
  • When the values of m are large, the Poisson distribution approaches the normal distribution, and in most cases the results lie within twice the standard deviation from the mean.
  • Expected frequencies should not be less than 5; combine classes where necessary before applying the chi-square test.

Safety

This is a calculation method with no reagents and no laboratory hazard beyond normal office and laboratory practice. Keep the count records with the sample records so the fitted result traces back to the lot.

Quality Control

Check the mean count m and the class frequencies before the chi-square test: where the expected frequency of a class is less than 5, combine neighbouring classes first. Record the degrees of freedom used: two constants, the frequency and the mean, were fitted in the worked example, giving 1 degree of freedom. If the chi-square value falls near a decision boundary, re-check the arithmetic before reporting.

Records

Record the observed frequencies per count class, the mean count m, the expected frequencies, the chi-square value, the degrees of freedom, the significance level and the conclusion, with the analyst name and date.

References

Ranganna, S., Handbook of Analysis and Quality Control for Fruit and Vegetable Products, 2nd edition.