Goodness of Fit for Random Subsets

This Demonstration performs a goodness-of-fit test on a set of random samples of a given sample size from a finite population. The count for each subset is indicated by a point; the expected value is indicated by the horizontal line. Tooltips on each show the values. The "trial" slider controls a seed for the random number generator, and gives a new set of samples for each value. The -value () is the probability that another set of truly random samples would be as far or farther away from the expected value (as measured by ).


This Demonstration shows that the random sample function in Mathematica seems to choose each possible sample with (at least approximately) equal likelihood. The -value ranges over the interval [0,1]. This Demonstration does not show that the -values have a uniform distribution, but a user could keep track of the -values and plot his or her own distribution.
comments
 
Powered by Wolfram Mathematica
Give us your feedback
Give us your feedback

Source page:




 often  occasionally  never

Note: Please do not include anything you consider confidential or proprietary. Your message and contact information may be shared with the author of any specific Demonstration for which you give feedback, but will not otherwise be published or distributed.
Privacy Policy »

Note: To run this Demonstration you need the free
Mathematica Player
or Mathematica 7+
Download or upgrade to Mathematica Player 7
I already have Mathematica Player or Mathematica 7+