]>
The experiment is to select a random sample of size from a specified distribution, and then to construct an approximate confidence interval for the mean The distribution can be chosen with a list box; the options are
In each case, the appropriate parameters and the sample size and confidence level can be varied with scroll bars. The probability density function and mean of the selected distribution are shown in blue in the first graph.
The type of interval--two sided, upper bound, or lower bound can be selected with a list box. The interval can be constructed assuming either that the distribution standard deviation is known or unknown. In the first case the pivot variable has the standard normal distribution; in the second case the pivot variable has the student distribution with degrees of freedom. The probability density function of the pivot variable and the critical values are shown in blue in the second graph.
Random variables and denote the left and right endpoints of the confidence interval and indicates the event that the confidence interval contains the distribution mean. The theoretical probability density function of is shown in blue in the third graph.
On each update, the sample density function and the confidence interval are shown in red in the first graph, and the value of the pivot variable is shown in red in the second graph. Note that the confidence interval contains the mean in the first graph if and only if the pivot variable falls between the critical values in the second graph. The third graph shows the proportion of successes and failures in red. The record table records , , the pivot variable ( or ) and on each update. The sample table gives the current sample values, and the distribution table gives the probability density function and empirical density function of .