Professional Documents
Culture Documents
Lecture Outline
1 2
3 4
1
7/22/2012
7 8
2
7/22/2012
20
• Here are the data (self-reported “typical”
number of hours slept per night)
• The National Sleep Foundation recommends that adults get about
15
from n = 47 surveys:
Frequency
8 hours of sleep per night, on average.
10
7, 6, 7, 6, 6.5, 6.5, 6, 6, 8, 7, 7, 6.5, 7, 8, 7,
• We want to know if summer school students meet this 7.5, 6, 7, 5, 9, 7, 7, 7, 7.5, 8, 6, 8, 7, 5, 9, 7,
7, 9, 6, 7, 8, 6, 7, 7, 6, 9, 6, 5.5, 10, 8, 7, 7
recommendation or not
5
• We'll assume this class represents a random sample from the
0
4 6 8 10
target population . summarize sleep sleep
What can we can we say about the average number of hours in the
`population’ of all summer school students (assuming this is a good random
sample) ?
Let’s calculate the 95% confidence interval for the mean number of hours
slept in the population of all summer school students.
11 12
3
7/22/2012
x 0 7.021 8
t 6.28
s s s 1.068
x tdf* , x tdf* n 47
n n
p value P(tdf 47 6.28) .0005
1.068 1.068
7.021 2.021 , 7.021 2.021
47 47 Since our p-value < 0.05, we can reject the null hypothesis. It looks like
summer school students truly get less than the recommended amount of sleep
6.706, 7.336 (assuming this is a good random sample).
13 14
15 16
4
7/22/2012
200
Maternal Smoking and Infant Health Coding:
150
bwt
smoke = 0, nonsmoking
• Surgeon General’s warning on cigarette packages:
100
smoke = 1, smoking
smoke = 9, refused or unknown
`Smoking by pregnant women may result in fetal injury,
50
premature birth, and low birth weight.’ 0 1 9
• We will use data that is a subset of Child Health and . by smoke, sort : summarize bwt
-------------------------------------------------------
Development Studies (CHDS) that examined association -> smoke = 0
between smoking status of pregnant women and birthweight. Variable | Obs Mean Std.Dev. Min Max
-----------+-------------------------------------------
– Study conducted between 1960 and 1967 by Kaiser bwt | 742 123.05 17.399 55 176
Foundation Health Plan, Oakland -------------------------------------------------------
-> smoke = 1
– Data here on smoking status, birthweight (in ounces) of Variable | Obs Mean Std.Dev. Min Max
infant for random sample of 1236 babies in the study: baby -----------+-------------------------------------------
bwt | 484 114.11 18.099 58 163
boys born during one year of the study, survived at least 28 -------------------------------------------------------
days, and were single births -> smoke = 9
Variable | Obs Mean Std.Dev. Min Max
• Results on next slide… -----------+-------------------------------------------
bwt | 10 126.7 21.813 90 158
17 18
5
7/22/2012
( x1 x2 ) ( 1 2 ) (114.11 123.05) 0
t 8.65
1 1 1 1
sp 17.68
n1 n2 484 742
Assuming
p value P(| t || 8.65 |) 2 * P(t 8.65) 2 * (0.0005) 0.001 equal
variances
Since our p-value < 0.05, we can reject the null hypothesis. It looks like
smoking is associated with birthweight; in fact, it is associated with lower
birthweights.
What confounding factors could be present in this observational study?
23 24
6
7/22/2012
7
7/22/2012
Midterm Results
(distance students not included yet)
In decent shape:
75 – 89 (28%)
Should boost slightly:
20
60 – 74 (18%)
Need to buckle down:
0 – 59 (5%)
0
0 20 40 60 80 100
midterm
As stated in the syllabus, this is worth 25% of final grade (HW = 35%, Final = 40%)
31