Mean Estimate Experiment

Description

The experiment is to select a random sample of size \(n\) from a specified distribution, and then to construct an approximate confidence interval for the mean \(\mu\). 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 scrollbars. The probability density function of the selected distribution are shown 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 \(\sigma\) is known or unknown. In the first case the pivot variable is \[Z = \frac{M - \mu}{\sigma / \sqrt{n}}\] where \(M\) is the sample mean. This variable has the standard normal distribution, assuming that the sampling distribution really is normal. In the second case the pivot variable is \[T = \frac{M - \mu}{S / \sqrt{n}}\] where \(S\) is the sample standard deviation. This variable has the student \(t\) distribution with \(n - 1\) degrees of freedom, again assuming that the sampling distribution really is normal. The probability density function of the pivot variable and the critical values are shown in the second graph.

Random variables \(L\) and \(R\) denote the left and right endpoints of the confidence interval and \(I\) indicates the event that the confidence interval contains the distribution mean.

On each run, the sample density function and the confidence interval are shown in the first graph, and the value of the pivot variable is shown 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.