Answer:
The 90% confidence interval for the difference between the proportions of Democrats and Republicans who approve of the mayor's performance is (-0.1078, 0.1702).
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.
For a proportion p in a sample of size n, the sampling distribution of the sample proportion will be approximately normal with mean
and standard deviation
![s = \sqrt{(p(1-p))/(n)}](https://img.qammunity.org/2022/formulas/mathematics/college/21siyq2l0d9z8pcii2ysmig6q1uk55fvwj.png)
Subtraction of normal variables:
When two normal variables are subtracted, the mean is the subtraction of the means while the standard deviation is the square root of the sum of the variances.
In a random sample of 42 Democrats from one city, 10 approved of the mayor's performance.
This means that:
![p_D = (10)/(42) = 0.2381, s_D = \sqrt{(0.2381*(1-0.2381))/(42)} = 0.0657](https://img.qammunity.org/2022/formulas/mathematics/college/3p9lodke4tr1rjgkvgvrebawequxp02bt6.png)
In a random sample of 58 Republicans from the city, 12 approved of the mayor's performance.
This means that:
![p_R = (12)/(58) = 0.2069, s_R = \sqrt{(0.2069*(1-0.2069))/(58)} = 0.0532](https://img.qammunity.org/2022/formulas/mathematics/college/jfsutviwozsbwckhm1tivt1jo70aiuexyv.png)
Distribution of the difference:
![p = p_D - p_R = 0.2381 - 0.2069 = 0.0312](https://img.qammunity.org/2022/formulas/mathematics/college/xv6m8evhe4sve05g96kn3hb5imto5a2i8v.png)
![s = √(0.0657^2+0.0532^2) = 0.0845](https://img.qammunity.org/2022/formulas/mathematics/college/tz4olosj2rsn09sntmbf5adsu71agj9s2o.png)
Confidence interval:
We have that to find our
level, that is the subtraction of 1 by the confidence interval divided by 2. So:
![\alpha = (1 - 0.9)/(2) = 0.05](https://img.qammunity.org/2022/formulas/mathematics/college/6f1tjkp3rjc0m3m8s8vk053td5tlym692v.png)
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 = 1.645.
Now, find the margin of error M as such
![M = zs](https://img.qammunity.org/2022/formulas/mathematics/college/zbam3pmtohm0eetflp29b586a24pvjqpcu.png)
![M = 1.645*0.0845 = 0.139](https://img.qammunity.org/2022/formulas/mathematics/college/aqr0p1wyu1h6j88fm7i6izd3c6vebyj7e1.png)
The lower end of the interval is the sample mean subtracted by M. So it is 0.0312 - 0.139 = -0.1078
The upper end of the interval is the sample mean added to M. So it is 0.0312 + 0.139 = 0.1702
The 90% confidence interval for the difference between the proportions of Democrats and Republicans who approve of the mayor's performance is (-0.1078, 0.1702).