Randomization Test Simulation

This applet performs a randomization test.

How to use the applet

  1. Choose a sample size, eqn, from the drop down box. Choose a sample size between 2 and 15.
  2. Click the button that reads "Draw new samples." Samples of size eqn are drawn for treatments A and B. The samples are drawn from exponential distributions with means eqn and eqn. To reveal eqn and eqn, click the button at the bottom-right that reads "Reveal true treatment means."
  3. Choose the number of permutations to generate by selecting eqn or eqn, and click "Generate New Permutations & Plot."
  4. eqnpermutations of the data eqn are generated. To view the permutations, click the button that reads "View Permutations."
  5. In the histogram, the differences between the means, eqn, 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 eqn.
  6. The p-value, eqn, is computed below the histogram.
  7. To start the applet over with new treatment means, click the button that reads "Draw new samples with new treatment means."

The applet

No Java Plug-in support for applet, see http://java.sun.com/products/plugin/