This preview shows pages 1–9. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: STA 100 Lecture 22 Paul Baines Department of Statistics University of California, Davis February 28th, 2011 Admin for the Day I Homework 6 posted, due Wednesday at 5pm! I Project Proposals due Today! (email or paper, either is fine) I Three possible project datasets are posted References for Friday: Rosner, Ch 10.110.6 (7th Ed.) References for Wednesday: Rosner, Ch 11 (7th Ed.) Example Example: From the midterm, there were two sloth populations (living in two separate regions). Previously, I just told you that the second population had a probability p = 0 . 06 of injury. In reality, we dont know this. Let p 1 be the probability of injury in region 1, and p 2 be the probability of injury in region 2. We want to ask: is p 1 = p 2 ? i.e., do the two regions pose the same risks to the resident sloths? Example So, if we let X i be the number of injured sloths in region i then: I X 1 Bin ( n 1 , p 1 ), I X 2 Bin ( n 2 , p 2 ). (Note: the regions may different numbers of sloths so n 1 doesnt need to be the same as n 2 ). We want to test: I H : p 1 = p 2 , vs., I H 1 : p 1 6 = p 2 . TwoSample Binomial Testing Recall that for Binomial and Poisson onesample testing we had two methods: (i) approximate (using the t distribution), and, (ii) exact (using a fancier method that R did for us). The same is true for twosample testing for Binomial and Poisson. Last time we looked at approximate methods (which you can understand and implement yourself), Today we look at an exact method (the details of which you wont need to know). First, we recap the approximate methods. . . TwoSample Binomial Test 1. If p is the same for both populations, we compute the combined estimate for p , using both groups: p = x 1 + x 2 n 1 + n 2 2. We use the test statistic: z = p 1 p 2 r p (1 p ) 1 n 1 + 1 n 2 3. Under H : p 1 = p 2 , the test statistic is (approx.) N (0 , 1). 4. We compute the p value (one or twosided) as usual: P ( Z >  z  ) (twosided), or, P ( Z < z ) (onesided lessthan), or, P ( Z > z ) (onesided greaterthan). 5. Decide whether to accept or reject H (is p value less than ?) 6. Interpret your decision for the specific problem. Continuity Corrections Remember that this test requires an approximation. It turns out that we can obtain a better approximation with a very minor modification known as a continuity correction . (again: we have an exact test so this is not usually necessary but you often see it in academic papers, so it is worth knowing. See Rosner Ch 10.2 for more details if interested). Binomial Test w/ Continuity Correction 1. If p is the same for both populations, we compute the combined estimate for p , using both groups: p = x 1 + x 2 n 1 + n 2 2. We use the test statistic: z = ( p 1 p 2 ) sign ( p 1 p 2 ) 1 2 n 1 + 1 2 n 2 r p (1 p ) 1 n 1 + 1 n 2 where: sign ( p 1 p 2 ) = 1 if p 1 p 2 > 1 if p 1 p 2 < 3. Under H , the test statistic is (approx.), the test statistic is (approx....
View
Full
Document
This note was uploaded on 03/09/2011 for the course STAT 100 taught by Professor drake during the Spring '10 term at UC Davis.
 Spring '10
 DRAKE
 Statistics

Click to edit the document details