Consider the following hypotheses:

H

H

- If the null hypothesis (H
_{0}) is true, then the statistic X has an approximately N(μ_{0}, σ^{2}) distribution (this is the "null distribution"). - If the alternative hypothesis (H
_{1}) is true, then X has an approximately N(μ_{1}, σ^{2}) distribution (this is the "alternative distribution").

The applet displays the null distribution by default. The user can choose to display the alternative distribution as well and can change the values of μ_{0}, μ_{1}, and σ using the sliders.

By selecting the appropriate check boxes, the user can see the area under the null or alternative distribution corresponding to

- Type I Error: A type I error occurs when a true null hypothesis is reject. P(Type I error) = α
- Type II Error: A type II error occurs when a false null hypothesis is not rejected (i.e. H
_{1}is true). P(Type II error) = β - Power (1-β): The probability of correctly rejecting the null hypothesis (rejecting H
_{0}when H_{1}is true).

Applet instructions

- Drag the dots indicating the distributions of the means (μ0 and μ1) to change them.
- Use the slider to adjust the variance of the distributions (both have the same variance).
- Drag the triangle labeled 'R' to adjust the rejection region for the test.
- Use the checkboxes to
- Show the alternative distribution.
- Indicate the area under the null distribution corresponding to the probability of a Type I Error.
- Indicate the area under the alternative distribution corresponding to the probability of a Type II Error.
- Indicate the area under the alternative distribution corresponding to the power.