]>
The experiment is to select a random sample of size from a selected distribution and then test a hypothesis about the standard deviation at a specified significance level. The distribution can be selected from a list box; the options are the normal, gamma, and uniform distributions. In each case, the appropriate parameters and the sample size can be varied with scroll bars.
The significance level can be selected with a scroll bar. The type of test: two-sided, left-sided, or right-sided. can be selected from a list box. The boundary point between the null and alternative hypotheses can be varied with a scroll bar. The probability density function of the distribution, as well as and , and are shown graphically.
The test can be constructed under the assumption that the distribution mean is known or unknown. In the first case, the test statistic has the chi-square distribution with degrees of freedom; in the second case the test statistics has the chi-square distribution with degrees of freedom. The probability density function and the critical values of the test statistic are shown in the second graph in blue.
On each update, the sample density function is shown in red in the first graph and the sample values are recorded in the sample table. The sample standard deviation is shown in red in the first graph and the value of the test statistic is shown in red in the second graph. Random variable indicates the event that the null hypothesis is rejected. On each update, , , and are recorded in the data table. Note that the null hypothesis is rejected () if and only if the test statistic falls outside of the critical values. Finally, the empirical density function of is shown in red in the last graph and recorded in the last table.