Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Solutions to Homework 6 - Introductory Applied Statistics/Life Sciences | STAT 371, Assignments of Statistics

Material Type: Assignment; Class: Introductory Applied Statistics for the Life Sciences; Subject: STATISTICS; University: University of Wisconsin - Madison; Term: Spring 2006;

Typology: Assignments

Pre 2010

Uploaded on 09/02/2009

koofers-user-q9e
koofers-user-q9e 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Stat 371-003, Solutions to Homework #6
1. 7.31 (pg 245)
The estimated standard error of the difference between the sample means is
r(8.73)2
5+(7.19)2
55.06
(a) Our test statistic is t= y1¯y2)/ˆ
SEy1¯y2)(31.72 29.22)/5.06 0.494.
For a test at significance level α= 0.10, we need the 95th percentile of a tdistribution
with 7.7 degrees of freedom. From the table at the back of the book, we get 1.86. In R,
we get qt(0.95, 7.7) 1.87.
Since 0.494 <1.87, we fail to reject the null hypothesis.
Note that we could calculate the P-value in R as 2*(1-pt(0.494, 7.7)) 0.64.
(Using the table, we would just see that the P-value is >0.4.)
(b) The result should not be surprising. Such data could reasonably ascribed to chance
variation. If the underlying averages were the same, we would get data like this most
of the time.
2. 7.36 (pg 246)
(a) True (we reject H0), since the P-value = 0.07 < α = 0.10.
(b) True (we fail to reject H0), since the P-value = 0.07 > α = 0.05.
(c) False! The P-value is the chance of getting data this extreme (or more so), if µ1=µ2.
First, it doesn’t concern a statement about ¯y1and ¯y2. Second, it concerns the chance of
data given µ1=µ2, not the other way around.
3. 7.44 (pg 255)
Yes, we would reject H0. The 95% confidence interval is the set of plausible values for
µ1µ2, and so is the set of values, δ, for which a test of H0:µ1µ2=δwould not
be rejected. Since 0 is not in the confidence interval, we would reject the hypothesis that
µ1=µ2.
4. 7.51 (pg 264–265)
Our estimate of the standard error of ¯y1¯y2is
r(0.621)2
8+(0.652)2
80.318
Our test statistic is t= y1¯y2)/ˆ
SEy1¯y2)(6.169 5.291)/0.318 2.758.
1
pf2

Partial preview of the text

Download Solutions to Homework 6 - Introductory Applied Statistics/Life Sciences | STAT 371 and more Assignments Statistics in PDF only on Docsity!

Stat 371-003, Solutions to Homework #

  1. 7.31 (pg 245) The estimated standard error of the difference between the sample means is √ (8.73)^2 5

(7.19)^2

(a) Our test statistic is t = (¯y 1 − y¯ 2 )/ SEˆ(¯y 1 − ¯y 2 ) ≈ (31. 72 − 29 .22)/ 5. 06 ≈ 0.494. For a test at significance level α = 0. 10 , we need the 95th percentile of a t distribution with 7.7 degrees of freedom. From the table at the back of the book, we get 1.86. In R, we get qt(0.95, 7.7) ≈ 1.87. Since 0.494 < 1.87, we fail to reject the null hypothesis. Note that we could calculate the P-value in R as 2*(1-pt(0.494, 7.7)) ≈ 0.64. (Using the table, we would just see that the P-value is > 0.4.) (b) The result should not be surprising. Such data could reasonably ascribed to chance variation. If the underlying averages were the same, we would get data like this most of the time.

  1. 7.36 (pg 246)

(a) True (we reject H 0 ), since the P-value = 0.07 < α = 0. 10. (b) True (we fail to reject H 0 ), since the P-value = 0.07 > α = 0. 05. (c) False! The P-value is the chance of getting data this extreme (or more so), if μ 1 = μ 2. First, it doesn’t concern a statement about ¯y 1 and y¯ 2. Second, it concerns the chance of data given μ 1 = μ 2 , not the other way around.

  1. 7.44 (pg 255) Yes, we would reject H 0. The 95% confidence interval is the set of plausible values for μ 1 − μ 2 , and so is the set of values, δ, for which a test of H 0 : μ 1 − μ 2 = δ would not be rejected. Since 0 is not in the confidence interval, we would reject the hypothesis that μ 1 = μ 2.
  2. 7.51 (pg 264–265) Our estimate of the standard error of y¯ 1 − y¯ 2 is √ (0.621)^2 8

(0.652)^2

Our test statistic is t = (¯y 1 − ¯y 2 )/ SEˆ(¯y 1 − y¯ 2 ) ≈ (6. 169 − 5 .291)/ 0. 318 ≈ 2.758.

(a) For the two-sided test at α = 0. 05 , we need the 97.5 percentile of a t distribution with 14 degrees of freedom. From the table, we find this is 2.145. (In R, we would use qt(0.975, 14).) Since 2.76 > 2.145, we would reject H 0. From the table, we see that our P-value is between 0.02 and 0.01. In R, we could calculate the p-value via 2*( 1-pt(2.758, 14) ) ≈ 1.5%. (b) For the one-sided test at α = 0. 05 , we need the 95th percentile of a t distribution with 14 degrees of freedom. From the table, we find this is 1.761. (In R, we would use qt(0.95, 14).) Since 2.76 > 1.761, we again reject H 0. The p-value is half of what was calculated in part (a). From the table, we see that our P-value is between 0.01 and 0.005. In R, we could calculate the p-value via 1-pt(2.758, 14) ≈ 0.8%. (c) The two-sided test (against the “nondirectional alternative”) is more appropriate, since we couldn’t anticipate the direction of the possible effect in advance. In appears that the choice of direction was made after looking at the data.

  1. 9.4 (pg 356–357)

We first load the data: dat <- read.csv("http://www.biostat.wisc.edu/%7Ekbroman/teaching/stat371/data_9-4.csv") We pull out the responses under treatment and control and assign them to x and y, respec- tively. x <- dat$treated y <- dat$control

(a) To get a 95% confidence interval for the true mean difference, we use t.test() with the differences, x - y. t.text(x - y) The 95% confidence interval is (–0.50, 0.74). (b) To get the incorrect 95% confidence interval for the true mean difference, ignoring the paired nature of the data, we type: t.text(x, y) This gives a 95% confidence interval of (–0.83, 1.06). Note that this interval is wider than that calculated in part (a).