The Hypergeometric DistributionThe hypergeometric distribution arises when a random selection (without repetition) is made among objects of two distinct types. Typical examples:
- Choose a team of 8 from a group of 10 boys and 7 girls
- Choose a committee of five from the legislature consisting of 52 Democrats and 48 Republicans
f(x) = C(R,x)*C(N-R, k-x) / C(N,k) for x=max(0,k+R-N)..min(R,k)
where C(n,k) is the binomial coeffiecient.
To Play:Choose numbers by clicking on the cells. These numbers will be indicated by magenta backgrounds. Hit the "play" button and the computer will choose the winning numbers (indicated by red backgrounds). The random variable X is the number of matches between your choices, indicated by gold backgrounds.
Source CodeThis applet uses the Danby package in additon to the following java files:
Other Java Programs for Probability and StatisticsOther applets related to probability and statistics.
This applet was written by Charles Stanton