Statistical Fridays J C Horrow, MD, MS STAT Clinical Professor, Anesthesiology Drexel University College of Medicine
Previous Session Review Tests involve a NULL hypothesis (H 0 ) an ALTERNATIVE hypothesis (H A ) Try to disprove H 0 There are 4 steps in hypothesis testing –Identify the test statistic –State the null and alternative hypotheses –Identify the rejection region –State your conclusion
Session Outline Student’s t test. Frequency Data. Chi-square contingency tables.
Student’s t Test Normal distribution applies if 2 known When 2 unknown, can estimate by s 2 Bad news: (xbar- )/(s/ n) not ~ N(0,1) Good news: (xbar- )/(s/ n) ~ t(n-1) –(n-1) is called the “degrees of freedom
Do the patients in the C-section cohort have initial systolic BPs that are too low, i.e., less than 85 mmHg? STEP #1: Identify the T.S. T.S. = x-bar SBP-init Performing Student’s t Test
Student’s t Distribution -3s -2s -s 0 s 2s 3s t=2.39 R.R.
Do the patients in the C-section cohort have initial systolic BPs that are too low, i.e., less than 85 mmHg? STEP #2: State the hypotheses: H 0 : 85H A : < 85 Note: this is a “one-sided” test Worked Example
Do the patients in the C-section cohort have initial systolic BPs that are too low, i.e., less than 85 mmHg? STEP #3: Identify the rejection region R.R. = (x-bar SBP-init – 85)/(s/ n) < t.05;n-1 Worked Example R.R. = (80.25 – 85)/(5.877/ 25) < -2.06
Do the patients in the C-section cohort have initial systolic BPs that are too low, i.e., less than 85 mmHg? STEP #4: State your conclusion R.R < outside R.R. We reject H 0. Data are consistent with initial systolic BPs that are too low. Worked Example
Frequency Data Not continuous, but “counting” Example (could be continuous) –Instead of age in yearss –# patients with age > 75 years Example (can’t be continuous) –Number of pregnant patients
Frequency Data Can be expressed as a proportion –Example: 12 of 25 patients female Are distributed “binomially”: b(n,p) Approximated by Normal distribution Can derive (Obs-Exp) 2 /Exp ~ 2 1
Chi-square Contingency Tables MaleFemaleTOTAL StrokeABA+B No stroke CDC+D TOTALA+CB+DA+B+C +D
Chi-square Contingency Tables MaleFemaleTOTAL Stroke6612 No stroke TOTAL
H 0 : No effect of sex on stroke Expected MaleFemaleTOTAL Stroke12*60/ 100=7.2 12*40/ 100= No stroke88*60/ 100= *40/ 100= TOTAL
H 0 : No effect of sex on stroke (O-E) 2 /E MaleFemaleTOTAL Stroke No stroke TOTAL
Chi-square Contingency Table Calculated T.S. = Rejection Region = 2.05;1 > 3.84 Cannot reject H 0 (p=0.451)
Session Outline Student’s t test. Frequency Data. Chi-square contingency tables.
Session Homework Drug X induces cancer remission in 35 of 50 Asians and in 115 of 250 Caucasians. Does race affect the action of drug X? Use p<.05 for significance. Set-up using 4 steps of hypothesis testing.