# One-Sample t-Test and Confidence Interval with Dot Chart in Small Samples

One-Sample t-Test and Confidence Interval with Dot Chart in Small Samples

The dot chart represents a random sample of size from a normal distribution, shown in blue, with mean +δ and standard deviation . This is the true distribution. This Demonstration focuses on the null hypothesis, : . For hypothesis testing, it is assumed that the sample is from a normal population with unknown mean and unknown variance. The hypothetical distribution, , is shown in green. When , the null distribution and true distribution are the same, but otherwise they are different.

n=9

μ

0

σ

H

0

μ=

μ

0

N(,σ)

μ

0

δ=0

The gray curve shows the sampling distribution. The two-sided confidence interval based on the random sample is shown below with . The confidence interval is colored red, to indicate that the hypothesized mean is not included in the interval; otherwise the color is blue. So when , this confidence interval will be blue about of the time and for larger this happens less frequently.

(1-α)

%

α=0.05

μ

0

δ=0

100(1-α)%

|δ|

The observed two-sided -value is shown at the top.

p

By using the "random seed" slider, we can see that the -values are random and depend on the random sample. The location and width of the confidence interval as well as the sampling distribution also vary and depend on the random sample. Both of these widths tend to decrease as the sample size increases but there is considerable variation due to random sampling. Similarly, when is increased or decreased the width of the confidence interval tends to increase or decrease.

p

α

The sample mean is represented by the thin magenta line extending from the midpoint of the confidence interval to the center value of the sampling density.

The width of the confidence tends to increase if is decreased, although due to the small samples there is a large variation simply due to random sampling. This is noticeable by changing the random seed.

α

The confidence interval also tends to increase if the sample size is decreased as does the width of the sampling distribution. Due to the small samples, there are large variations in the width of the confidence interval and sampling distribution.

n