Answer:
The best test to see if more mosquitoes are attracted to people after drinking beer is the z-test for the difference in proportion of two populations
Step-by-step explanation:
The study tested if drinking bear increases the attractiveness to mosquitoes
The number of people the taking part in the study, n = 30 people
The total number of mosquitoes in the study = 50 mosquitoes
The proportion of mosquitoes flying to each volunteer is measured before and one hour after consuming bear
The mean number of mosquito flying towards a volunteer can be found by summing the other proportions that fly towards the 30 volunteers and dividing by n₁ = 30, before and n₂ = 30 after the respondents had bear to obtain [tex]\hat{p}_{1}[/tex] and [tex]\hat{p}_{2}[/tex]
Given that the variances are equal and the sum of the sample for the two tests, n₁ + n₂ = 60 > 30, it is, best to use the the z-test for the difference in proportion as follows;
[tex]Z=\dfrac{\hat{p}_1-\hat{p}_2}{\sqrt{\hat{p} \cdot (1-\hat{p}) \cdot \left (\dfrac{1}{n_{1}}+\dfrac{1}{n_{2}} \right )}}[/tex]
Where the pooled mean, [tex]\hat p[/tex], is given as follows;
[tex]\hat p = \dfrac{n_1 \cdot \hat p_1 + n_2 \cdot \hat p_2}{n_1 + n_2}[/tex]