binomial.testing

binomial.testing - CI n 1 p 1 10 n 1 ( 1 p 1 ) 10 n 2 p 2...

This preview shows pages 1–2. Sign up to view the full content.

ONE SAMPLE TESTS OF A BINOMIAL PROPORTION Yes Test or CI ? n p 15 n ( 1 – p ) 15 CI Yes No p +/- z* p (1 – p ) n If n> 10: pc = x + 2 n + 4 pc +/- z* pc (1 – pc) n + 4 Test np 0 > 10 n (1 – p 0 ) > 10 Yes HYP. TEST STAT. Z = p - p 0 C No p o (1 – p 0 ) n Get Binomial probabilities for X ~ Bin ( n, p 0 ) - Denote X obs = observed # su±±esses for H a : p > p o , for H a : p < p o , for H a : p ≠ p o for H a : p ≠ p o then p-value then p-value and p > p o , then and p < p o , then = P r ( X ≥ X obs ) = P r ( X ≤ X obs ) p-value p-value = 2 P r ( X ≥ X obs ) = 2 P r ( X ≤ X obs ) Note: Sample size guidelines ±ome from MM&C Se±tion 8.1 and ±lass notes Part 13.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
TWO SAMPLE TESTS OF THE DIFFERENCE IN BINOMIAL PROPORTIONS ( SAMPLES MUST BE INDEPENDENT OF EACH OTHER) Test or CI? Test
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CI n 1 p 1 10 n 1 ( 1 p 1 ) 10 n 2 p 2 10 n 2 ( 1 p 2 ) 10 Yes No ( p 1 p 2 ) +/- z* p 1 ( 1 p 1 ) + p 2 (1 p 2 ) n 1 n 2 n 1 p 1 5 Yes HYP. TEST STATISTIC pc 1 = x 1 + 1 pc 2 = x 2 + 1 n 1 + 2 n 2 + 2 Yes D n 1 ( 1 p 1 ) 5 n 2 p 2 5 n 2 ( 1 p 2 ) 5 No Fishers Exat Test (overed in Lab 10 only) Use PROC FREQ in SAS Z = ( p 1 - p 2 ) 0 p ( 1 - p ) ( 1/ n 1 + 1/ n 2 ) With p = x 1 + x 2 n 1 + n 2 (pc 1 pc 2 ) +/- z* pc 1 (1 pc 1 ) + pc 2 (1 pc 2 ) n 1 + 2 n 2 + 2 If n 1 5 and n 2 5 Note: Sample size guidelines ome from MM&amp;C Setion 8.2 and lass notes Part 14....
View Full Document

This note was uploaded on 11/21/2011 for the course PUBH 6450 taught by Professor Andymugglin during the Fall '10 term at Minnesota.

Page1 / 2

binomial.testing - CI n 1 p 1 10 n 1 ( 1 p 1 ) 10 n 2 p 2...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online