SLIDE 42 Marc Mehlman
Chapter #12 R Assignment 1 Compute the p-value for a two sided sign–test for the null hypothesis
that the population median for ’x’ is 6.5. The alternative hypothesis is that the median is not 6.5.
x = c(7.8, 6.6, 6.5, 7.4, 7.3, 7., 6.4, 7.1, 6.7, 7.6, 6.8) 2 In order to investigate whether adults report verbally presented
material more accurately from the right than from their left ear, a dichotic listening task was carried out.
LEar=c(15,29,10,31,27,24,26,29,30,32,20,5) REar=c(32,30,8,32,20,32,27,30,32,32,30,32)
Use the Wilcoxon Signed–Rank Test for Matched Pairs to find the p–value of H0 : the left and right ear data have the same median, versus HA : not H0.
3 Consider the following sets of data on the latent heat of the fusion of
ice (cal/gm). Enter the following three lines into R:
AA=c(79.98, 80.04, 80.02, 80.04, 80.03, 80.03, 80.04, 79.97, 80.05, 80.03, 80.02, 80.00, 80.02) BB=c(80.02, 79.94, 79.98, 79.97, 79.97, 80.03, 79.95, 79.97)
Using the Wilcoxon Rank–Sum Test, test to see if the populations AA and BB were sampled from have equal medians. Give the p–value of the test.
Marc Mehlman (University of New Haven) Nonparametric Methods 42 / 44