Poisson Distribution Test

Based on Margin of Error

Copying poierr

poierr is similar to the poisson program. The sample size is based on:

poierr is a program that allows you to have 100 poisson chances of success per batch or lapse of time. It is used in the datagen package to illustrate the chi-square test.

poierr has three parameters:

The program makes 100 attempts to succeed in each trial. The probability of success is the mean divided by 100. The probability of failure is one minus the probability of success. n equals 100.

Example of how to run the program.

      poierr 95.0 0.009 2.0

In this example, the program calculates the sample size based on a confidence level of 95 percent that the program will have an error rate of 9 in one thousand. The program tries to achieve a mean of 2.0, and then print the probability distribution, the standard deviation, and the chi-square test.

The Chi-square number should fit within the Range 95 percent of the time.


References

The calculation of probabilities for the poisson distribution is based on the following book:

Lincoln L. Chao
Statistics for Management
2nd Edition
Palo Alto: The Scientific Press, 1984
Chapter 7, Discrete Probability Distributions
Section 4, Poisson Distribution
Chapter 9, Statistical Estimation
Section 4, Determination of Sample Size

Lincoln L. Chao published his book while at California State University, Long Beach.

The chi-square test is similar to:

Chapter 12, Chi-square Tests
Section 3, Testing for Goodness of Fit
Formula 12-3
Example 12-4

In Table 12-3, each category in the chi-square test has a different expected frequency. This corresponds to the different expected frequencies for the number of successes.