section6_handout_stat104_josh

section6_handout_stat104_josh - Stat 104 Section 6 Josh...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Stat 104 Section 6 Josh Zagorsky < zagorsky@fas.harvard.edu > Confidence Intervals 1. Recap: Truth Guess Confidence Interval X X z / 2 s n p p p z / 2 r p (1- p ) n r r z / 2 r 1- r 2 n- 2 2. Comparing proportions in two different large samples ( n > 30), find the CI for the difference p 1- p 2 : ( p 1- p 2 ) z / 2 r p 1 (1- p 1 ) n 1 + p 2 (1- p 2 ) n 2 3. Comparing means in two different large samples ( n > 30), find the CI for the difference 1- 2 : ( X- Y ) z / 2 s s 2 X n 1 + s 2 Y n 2 4. For small samples ( n < 30), use a t-statistic instead, but let Stata determine the degrees of freedom, since its kind of complicated. Stata Commands 1. Proportions prtesti n1 y1 n2 y2, count prtesti variable, by(control variable) 2. Means One dataset with control variable: ttest age, by(gender) unequal Different datasets: ttest cambridge==somerville, unpaired unequal If you only know sizes, means, and std devs for two samples:...
View Full Document

This note was uploaded on 03/27/2012 for the course STATS 104 taught by Professor Michaelparzen during the Fall '11 term at Harvard.

Page1 / 2

section6_handout_stat104_josh - Stat 104 Section 6 Josh...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online