]>
The experiment is to select a random sample of size from a distribution, and then to perform a hypothesis test about the median of the distribution 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 null hypothesized value of the median can be selected with a scroll bar; the true quantile level of is also given. The probability density function of the distribution and the median are shown in blue in the first graph; is shown in green.
The test statistic is the number of sample values greater than . Under the null hypothesis, has the binomial distribution with parameters and . The probability density function of this distribution and the critical values 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 value of the test statistics 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 probability density of is shown in red in the distribution graph and recorded in the distribution table.