Answer:
The 96% confidence interval for the size of the difference in average tips between the two groups is (1.47%, 4.09%).
Explanation:
Before building the confidence interval, we need to understand the central limit theorem and subtraction of normal variables.
Central Limit Theorem
The Central Limit Theorem estabilishes that, for a normally distributed random variable X, with mean
and standard deviation
, the sampling distribution of the sample means with size n can be approximated to a normal distribution with mean
and standard deviation
.
For a skewed variable, the Central Limit Theorem can also be applied, as long as n is at least 30.
Subtraction of normal variables:
When we subtract normal variables, the mean is the subtraction of the means while the standard deciation is the square root of the sum of the variances.
Of the 32 parties who received the chocolate, the average tip (as a percentage of the bill) was 17.84%, with a standard deviation of 3.06%.
This means that:
Of the 32 parties who did not receive the chocolate, the average tip (as a percentage of the bill) was 15.06%, with a standard deviation of 1.89%.
This means that:
Difference in average tips
The distribution has mean:
Standard deviation:
96% confidence interval
We have that to find our
level, that is the subtraction of 1 by the confidence interval divided by 2. So:
Now, we have to find z in the Ztable as such z has a pvalue of
.
That is z with a pvalue of
, so Z = 2.054.
Now, find the margin of error M as such
The lower end of the interval is the sample mean subtracted by M. So it is 2.78% - 1.31% = 1.47%
The upper end of the interval is the sample mean added to M. So it is 2.78% + 1.31% = 4.09%
The 96% confidence interval for the size of the difference in average tips between the two groups is (1.47%, 4.09%).