We can define confidence interval as a measure of the degree of uncertainty or certainty in a sampling method.
To calculate confidence interval, we use sample data that is, the sample mean and the sample size.
We get the values of z for the given confidence levels from statistical tables.
In this case we are specifically looking at 95 % level of confidence.
Formula to calculate 95 confidence interval.
We know our confidence level is 95% and the corresponding z value is 1.96.
Suppose we take a random sample size of 50 dogs, we are asked to determine that the mean age is 7 years, with a 95% confidence level and a standard deviation of 4.
Therefore, with 95 % confidence interval, the average age of the dogs is between 7.5657 years and 6.4343 years.