# 帮做R语言编程|帮做C/C++编程|代做SPSS|代写R语言编程

STAT464 Homework #2
due Monday, 9/9
1. (adapted from Higgins, Ex1.1 ) The data are given in the file 鈥渆xam scores.txt鈥? Suppose
the exam was given in the semester after the course content was revised, and the previous
median exam score was 75.5. We would like to know whether or not the median score has
increased. Answer the question by applying the sign test. The data can be read into R with
the command
scores = scan(鈥檈xam scores.dat鈥?skip=1)
2. Consider again the exam score data above.
(a) Perform the usual t-test of H0 : 碌 = 75.5 versus Ha : 碌 > 75.5. Report the test statistic
and p-value, and state your conclusion in terms of the problem.
(b) Comment on any similarities and differences between this test and the Sign test from
Problem 1.
3. (adapted from Higgins, Ex1.3 ) The data, given in the file 鈥渞ainfall.txt鈥? are yearly rainfall
totals in Scranton, Pa., for the years 1951鈥?984.
(a) Find order statistics X(a) and X(b)
such that (X(a)
, X(b)
) is an approximate 95% confi-
dence interval for the population median 胃.5. Use the binomial distribution. Report the
numeric values of your interval here as well.
(b) Use the normal distribution (with 1/2-unit continuity correction) to find the approximate
confidence level of your interval in part (a) above.
(c) Find an approximate 95% confidence interval for the 75th percentile (the third quartile).
You may use either the binomial or the normal distribution (with 1/2-unit correction).
(d) The confidence interval procedure assumes that the observations are independent and
identically distributed. Do you think this is a reasonable assumption for the rainfall
data? If not, what could cause this assumption to be invalid?

• QQ：99515681
• 邮箱：99515681@qq.com
• 工作时间：8:00-23:00
• 微信：codinghelp