5 Dice Poker Test

Copying dicepkr

dicepkr is a program that allows you to roll 5 dice and play poker thousands of times to see if the game passes the chi-square test. The poker hands in this test consist of five numbers from 1 to 6.

dicepkr has one parameter:

Example of how to run the program.

      dicepkr 10000

In this example, the program rolls 5 dice 10 thousand times. The program prints the probability distribution, the observed frequency, and the chi-square.

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


Knuth's Poker Test

If you are interested in 5 card poker with replacement, see Knuth's poker test poker.


52 Card Poker Test

If you are interested in 52 card poker without replacement, see 52 Card Poker.


References

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.


John Scarne
Scarne's New Complete Guide to Gambling
Fully revised, expanded, updated edition
New York: Simon & Schuster, 1961, 1974, 1986
A Fireside book, 871 p.
ISBN: 0-671-21734-8 hardback
ISBN: 0-671-63063-6 paperback
Chapter 11, Correct Odds in Dice Games Using Two, Three, Four, or Five Dice