This applet performs a randomization test.
How to use the applet
- Choose a sample size,
, from
the drop down box. Choose a sample size between 2 and 15.
- Click the button that reads "Draw new samples." Samples of
size
are drawn for
treatments A and B. The samples are drawn from exponential distributions with means
and
.
To reveal
and
,
click the button at the bottom-right that reads "Reveal true
treatment means."
- Choose the number of permutations to generate by selecting
or
,
and click "Generate New Permutations & Plot."
permutations of
the data
are generated. To view the
permutations, click the button that reads "View Permutations."
- In the histogram, the differences between the means,
,
of the
permutations of A and B are plotted. Values are shaded for which the
difference is larger than the difference between the original treatment
means, that is, when
.
- The p-value,
,
is computed below the histogram.
- To start the applet over with new treatment means, click the
button that reads "Draw new samples with new treatment means."
The applet