In: Statistics and Probability
7. Go into Stat Key and select randomization tests for a difference in means. Towards the top left of the new screen where it shows what data set you have, click the drop down menu to select mosquitos (beer vs. water). This gives sample data from an experiment where people were asked to either drink beer or water to see how many mosquitos approached the people. Use Stat Key to generate a minimum of 1000 samples – be sure a general bell-curve is visible. Either sketch the dotplot below, including the x (horizonal) scale, or show a screen shot. If the alternative hypothesis was that the mean number of mosquitos for beer drinkers is greater than for water drinkers, use Stat Key to estimate the p-value. Copy the p-value down next to your sketch/screenshot.
p value = 0.025
Test statistic = 2.849
As in the question it says that the mean number of mosquitos for beer drinkers is greater than for water drinkers , this means the alternate hypothesis is one sided , that is , HA : µ > µ0
which is Right tailed , and so the p value is indicated in the above image.