# Question: Cockroaches tend to rest in groups and prefer dark areas

Cockroaches tend to rest in groups and prefer dark areas. In a study published in Science Magazine in November 2007, cockroaches were introduced to a brightly lit, enclosed area with two different available shelters, one darker than the other. Each time a group of cockroaches was put into the brightly lit area will be called a trial. When groups of 16 real cock roaches were put in a brightly lit area, in 22 out of 30 trials, all the cockroaches went under the same shelter. In the other 8 trials, some of the cockroaches went under one shelter and some under the other one.

Another group consisted of a mixture of real cockroaches and robot cockroaches (4 robots and 12 real cockroaches). The robots did not look like cockroaches but had the odor of male cockroaches, and they were programmed to prefer groups (and brighter shelters). There were 30 trials. In 28 of the trials, all the cockroaches and robots rested under the same shelter, and in 2 of the trials they split up.

Is the inclusion of robots associated with whether they all went under the same shelter? To answer the following questions, assume the cockroaches are a random sample of all cockroaches.

a. Use a chi-square test for homogeneity with a significance level of 0.05 to see whether the presence of robots is associated with whether roaches went into one shelter or two.

b. Repeat the question using Fisher's Exact Test. (If your software will not perform the test for you, search for Fisher's Exact Test on the Internet to do the calculations.) Conduct a two-sided hypothesis test so that the test is consistent with the test in part a.

c. Compare the p-values and conclusions from part a and part b. Which statistical test do you think is the better procedure in this case? Why?

Another group consisted of a mixture of real cockroaches and robot cockroaches (4 robots and 12 real cockroaches). The robots did not look like cockroaches but had the odor of male cockroaches, and they were programmed to prefer groups (and brighter shelters). There were 30 trials. In 28 of the trials, all the cockroaches and robots rested under the same shelter, and in 2 of the trials they split up.

Is the inclusion of robots associated with whether they all went under the same shelter? To answer the following questions, assume the cockroaches are a random sample of all cockroaches.

a. Use a chi-square test for homogeneity with a significance level of 0.05 to see whether the presence of robots is associated with whether roaches went into one shelter or two.

b. Repeat the question using Fisher's Exact Test. (If your software will not perform the test for you, search for Fisher's Exact Test on the Internet to do the calculations.) Conduct a two-sided hypothesis test so that the test is consistent with the test in part a.

c. Compare the p-values and conclusions from part a and part b. Which statistical test do you think is the better procedure in this case? Why?

**View Solution:**## Answer to relevant Questions

Refer to the description in Exercise 10.71. There were 22 trials with only cockroaches (no robots) that went under one shelter. In 16 of these 22 trials, the group chose the darker shelter, and in 6 of the 22 the group chose ...Assume you have four groups to compare through hypothesis tests and confidence intervals, and you want the overall level of significance to be 0.05. a. How many possible comparisons are there? b. What is the ...Refer to the StatCrunch output from National Health and Nutrition Examination Survey (NHANES) data, which shows the association between marital status and cholesterol. Assume the population distributions are close enough to ...The figure shows side-by-side boxplots of the number of hours per week that UCLA students spent listening to music. Minitab output for ANOVA is also shown. Check whether the conditions for ANOVA hold. If not, state which ...In a study done on a random sample of employees at a company, the employees wrote down how many hours they slept and their health status. StatCrunch output for an ANOVA is shown. Test the hypothesis that health status and ...Post your question