Compute a 95% confidence interval for the population mean, based on the numbers 1, 2, 3, 4, 5, 6, 20. Change the number 20 to 7 and recalculate the confidence interval. Using these results, describe the effect of an outlier (i.e., extreme value) on confidence interval.
1
Expert's answer
2021-12-08T11:05:59-0500
1.
mean=xˉ=n1i∑xi=71(1+2+3+4+5
+6+20)=741≈5.857143
s2=n−11i∑(xi−xˉ)2=7−11((1−741)2+
+(2−741)2+(3−741)2+(4−741)2
+(5−741)2+(6−741)2+(20−741)2
=29412292=421756
s=s2=421756≈6.466028
The critical value for α=0.05 and df=n−1=6 degrees of freedom is tc=z1−α/2;n−1=2.446899
The corresponding confidence interval is computed as shown below:
CI=(xˉ−tc×ns,xˉ+tc×ns)
=(5.857143−2.446899×76.466028,
5.857143+2.446899×76.466028)
=(−0.1229,11.8372)
Therefore, based on the data provided, the 95% confidence interval for the population mean is −0.1229<μ<11.8372, which indicates that we are 95% confident that the true population mean μ is contained by the interval (−0.1229,11.8372).
2.
mean=xˉ=n1i∑xi=71(1+2+3+4+5
+6+7)=728=4
s2=n−11i∑(xi−xˉ)2=7−11((1−4)2+
+(2−4)2+(3−4)2+(4−4)2
+(5−4)2+(6−4)2+(7−4)2
=628=314
s=s2=314≈2.160247
The critical value for α=0.05 and df=n−1=6 degrees of freedom is tc=z1−α/2;n−1=2.446899
The corresponding confidence interval is computed as shown below:
CI=(xˉ−tc×ns,xˉ+tc×ns)
=(4−2.446899×72.160247,
4+2.446899×72.160247)
=(2.0021,5.9979)
Therefore, based on the data provided, the 95% confidence interval for the population mean is 2.0021<μ<5.9979, which indicates that we are 95% confident that the true population mean μ is contained by the interval (2.0021,5.9979).
3.
The confidence interval is wider in the first case because of the outlier 20.
Comments