Question

profileAAZZDD
PS2.docx

Problem Set 2

Due March 14 at 11:59 p.m. to Canvas

No screen shots of code. Please copy and paste your code into this document. Screen shots of graphics are OK. For all questions, you must show your work in terms of equations or code. If you do not show your work, you will not get ANY credit for the problem, even if you write down the correct answer.

1. (10 points) A professor gives a statistics concept assessment to the 10 students in her class at the beginning and end of the semester. Did the students improve?

Begin

35

36

37

39

41

44

45

45

47

60

End

30

45

32

31

40

57

64

80

85

90

2. (15 points) A research team wants to determine which of two analgesic drugs provides longer lasting relief to arthritis patients. Twelve subjects are given each drug in random order on successive days. The data in the file “analgesic.txt”, available on Canvas, contain the number of hours of pain relief that each subject reported for both drugs. Is there any evidence that one drug provides longer lasting relief than the other?

a. Perform the sign test for these data.

b. Perform the Wilcoxon Signed Rank test.

c. Which test should be used for these data? Explain.

3. (10 points) Use a permutation test on the diet comparison data (page 120 of INSR) to determine whether the two diets have the same effect on growth rate. Your answer should include the null distribution and all other typical steps for a hypothesis test. Don't forget your code!

4. (15 points) Lecture 12 Practice exercise (page 130 of INSR). Also include the null distribution and don’t forget your code!