Object Library > Applets > Spinner Experiment
The experiment consists spinning a spinner and recording the outcome (the sectors are numbered . The number of sectors in the spinner can be varied with the scrollbar and the probability of each sector (which is proportional to the area of the sector) can be set with the probability dialog. The probability density function and moments of the random variable (the spinner score) are shown in blue in the distribution graph and recorded numerically in the distribution table. When the experiment runs, the empirical density and moments are shown in red in the distribution graph and recorded in the distribution table. In single step mode, the spinner pointer actually spins, and a sound is played whose tone depends on the outcome.
This applet illustrates the following topics and concepts. Click on the links to learn more about the mathematical theory.
Click on the link below to download the Java archive file:
To add the applet to your web page, insert the following in the html file, at the point where you want the applet to appear:
<applet code="edu.uah.math.experiments.SpinnerExperiment.class"
archive="SpinnerExperiment.jar" width="600" height="450"></applet>
The jar file and the html file must be in the same folder.
This width and height dimensions are simply suggestions and can be varied. Generally, components such as graphs and tables expand and contract proportionally, while components such as buttons, scrollbars, dice, and coins are fixed in size.
Copyright © 2001-2003 Dawn Duehring, Kyle Siegrist
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.
If you are interested in the Java source code or the Java documentation and object model for this applet, please visit SpinnerExperiment in the Object section of the Library.