The formula to calculate a confidence interval for a population mean is as follows:
CI=xˉ±z⋅ns,
CI=xˉ±z⋅ns,
where:
- xˉ− sample mean
- z- the chosen z-value, for a 99% confidence interval z = 2.576
- s− sample standard deviation
- n =20: sample size.
The sample mean:
xˉ=(8+22.7+14.5+9+9+3.5+8++11+7.5+18+20+7.5+9+10.5++15+19+9+8.5+14+20)/20=12.19.
The sample variance:
sx2=n−1∑(xi−μ)2,
s2=((8−12.19)2+(22.7−12.19)2+(14.5−12.19)2+...+...(14−12.19)2+(20−12.19)2)/19=28.54.
The sample standard deviation:
s=28.54=5.34.
So,
CI=12.19±2.576⋅205.34==12.19±3.08=(9.11,15.27).
Comments