SOCR EduMaterials Activities BetaCoinExperiment

Revision as of 23:58, 12 May 2007 by PriscillaChui (talk | contribs) (Goal)
Jump to: navigation, search

Beta Coin Experiment


The Beta Coin Experiment is a random experiment that involves tossing a coin, where the probability of heads is p, n times. The probability of heads is modeled with a prior beta distribution, having parameters a and b. On each update, the number of heads Y is recorded in the data table to the left as well as the Bayesian estimate of p given by the equation, U = (a + Y) / (a + b + n). The second table gives the true distBias and mean square error of U, and the updated cumulative empirical distBias and mean square error of the experiment. The graph on the right displays the prior density and the true probability of heads are shown in blue and the posterior beta density is shown in red. Parameters n, p, a, and b can be varied with the scroll bars above.


To provide an accessible simulation when determining the effects of manipulating the probability of two quantitative variables (e.g. heads/tails, success/failure, hot/cold, etc.) from a population and to obtain knowledge of the Bayesian estimate numerically and graphically.


Go to the SOCR Experiment [[1]] and select the Beta Coin Experiment from the drop-down list of experiments on the top left. The image below shows the initial view of this experiment:

SOCR Activities BetaCoinExperiment Chui 050407 Fig1.jpg

When pressing the play button, one trial will be executed and recorded in the distribution table below. The fast forward button symbolizes the nth number of trials to be executed each time. The stop button ceases any activity and is helpful when the experimenter chooses “continuous,” indicating an infinite number of events. The fourth button will reset the entire experiment, deleting all previous information and data collected. The “update” scroll indicates nth number of trials (1, 10, 100, or 1000) performed when selecting the fast forward button and the “stop” scroll indicates the maximum number of trials in the experiment.

When increasing parameter a, the left side of the prior beta density and probability of heads (shown in blue) will decrease and increasing parameter b also decreases the prior beta density and probability of heads, but on the right side. When shifting probability p, the posterior beta density moves with p as the center of the red graph is positioned at p. Increasing the value of n will cause the posterior beta graph to become more normal. The image below displays an experiment after many trials under the conditions of having a large p value and large b value:

SOCR Activities BetaCoinExperiment Chui 050407 Fig2.jpg

The image below is of an experiment with a small n value and large a value:

SOCR Activities BetaCoinExperiment Chui 050407 Fig3.jpg


The Beta Coin Experiment demonstrates the behaviors of subjective probability, personal probability, frequency probability and logical probability. It may be used to test different hypotheses and collect new information when conducting an experiment.

Translate this page:

Uk flag.gif

De flag.gif

Es flag.gif

Fr flag.gif

It flag.gif

Pt flag.gif

Jp flag.gif

Bg flag.gif

الامارات العربية المتحدة
Ae flag.gif

Fi flag.gif

इस भाषा में
In flag.gif

No flag.png

Kr flag.gif

Cn flag.gif

Cn flag.gif

Ru flag.gif

Nl flag.gif

Gr flag.gif

Hr flag.gif

Česká republika
Cz flag.gif

Dk flag.gif

Pl flag.png

Ro flag.png

Se flag.gif