Binomial Distribution Test

Copying binom

binom is a program that allows you to conduct from 2 to 30 binomial experiments to see how many successes you have after a given number of trials. It is used in the datagen package to illustrate the chi-square test.

binom has three parameters:

Example of how to run the program.

      binom 10000 17 0.6

In this example, the program makes 17 trials for success, 10 thousand times, and then prints 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 binomial 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 2, Binomial Distribution

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.