Description and Use
The experiment consists of rolling n dice, each governed by the same probability distribution. You can specify the die distribution by clicking on the die probability button; this button bring up the die probability dialog box. You can define your own distribution by typing probabilities into the text fields of the dialog box, or you can click on one of the buttons in the dialog box to specify one of the following special distributions:
The following random variables are recorded on each update:
Any one of these variables can be selected with a list box. The density and moments of the selected variable are shown in blue in the distribution graph and are recorded in the distribution table. When the simulation runs, the empirical density and moments are shown in red in the distribution graph and are recorded in the distribution table. The parameter n can be varied with a scroll bar.
This experiment uses the die as a metaphor for a random variable taking a finite set of values, and involves a number of standard transformations. Thus, the experiment illustrates the central limit theorem, the law of large numbers, the distribution of the sample mean, and the distribution of the extreme order statistics.
Copyright © 2001-2003 Kyle Siegrist, Dawn Duehring
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.
The Dice Experiment
Figure 1 shows a screen shot of the Dice Experiment, a typical applet in the library.
Figure 1. A typical view of the Dice Experiment
The Dice Experiment applet is a virtual random experiment that rolls dice, collects data, and displays the data in tables and a graph. Specifically, the basic experiment is to roll n dice and record the values of the following random variables:
The simulation is controlled by the buttons and selection boxes in the main toolbar (Figure 2) at the top.
Figure 2. The main toolbar
The table on the left records the values of the five random variables on each update. The table on the right gives the probability mass function, mean, and standard deviation of a selected random variable in the distribution column, and the relative frequency function, empirical mean, and empirical standard deviation in the data column. The graph on the right gives exactly the same information as the table on the right, but in graphical form rather than numerical form. Information about the theoretical distribution is displayed in blue, and information about the empirical data is displayed in red. The choice of the random variable to display in the table and graph is made with the drop-down box in the second toolbar (Figure 3).
Figure 3. Selection of random variable
The number of dice can be varied from 1 to 30 with the scroll bar. Clicking on the die icon brings up a dialog box (Figure 4) for specifying the probabilities that govern each die:
Figure 4. The die probabilities dialog box
The buttons along the top of this dialog box specify six "pre-packaged" die distributions. The first gives uniform probabilities (corresponding to a fair die), and the others give various non-uniform distributions for a crooked die. Additionally, the student can specify the probabilities directly in the text boxes.
Information about each component in the applet is given in a tool tip that appears when the student rests the cursor on the component. Basic information about the applet is also given in a help box that pops up when the student clicks on the information button in the main toolbar.
In the next section I will cover the nuts and bolts of how you could include this applet in your own Web-based course materials. Then I will return to the more interesting discussion of pedagogical issues.