This applet uses simulation to estimate the power of a hypothesis test, of the form
vs.
.
How to use the applet
- Specify the true value of the population mean, population standard deviation, number of samples, and value of the mean under the null hypothesis in the left pane of the applet. Note, these cells act like a spreadsheet application; to change an entry, click on it, delete the current value, type a new one, and then press enter.
- Click the Regenerate button. The applet generates 10,000 samples of the specified size from a normal distribution with the specified true mean and standard deviation. For each sample, the applet computes the sample mean, sample standard deviation, standard error, test statistic, and whether the null hypothesis is rejected. At the bottom, the applet presents the estimated power.
The applet