Professional Documents
Culture Documents
SPHU3160 Chapter 11 Inferences About A Mean - Notes
SPHU3160 Chapter 11 Inferences About A Mean - Notes
∑ ( x−x )2
S^ E x=
s
√ n , where s is the sample standard deviation
s=
√ n−1
x −μ
t=
s
2
x ~N( μ,σ ) ⇒ √ n ~ Student t distribution with n-1 degrees of freedom (df)
Student’s t distributions
1
SPHU 3160 – BIOSTATISTICS IN PUBLIC HEALTH
t table (Table C)
• Use Table C to look up t values and probabilities
• Entries t values
• Rows df
• Columns probabilities
Left tail: Pr(T9 < -1.383) = 0.10 ; Right tail: Pr(T9 > 1.383) = 0.10
One-Sample t Test
A. Hypotheses.
H0: µ = µ0 vs. Ha: µ ≠ µ0 (two-sided)
[ Ha: µ < µ0 (left-sided) or Ha: µ > µ0 (right-sided)]
B. Test statistic.
x̄−μ0
t stat= with df =n−1
s/ √ n
P-value. Convert tstat to P-value [table C or software].
2
SPHU 3160 – BIOSTATISTICS IN PUBLIC HEALTH
Example: (Do SIDS babies have lower than average birth weights?)
• We know from prior research that the mean birth weight of the non-SIDs babies in this
population is 3300 grams
• We study n = 10 SIDS babies, determine their birth weights, and x=2890.5 and s =
720.
• Do these data provide significant evidence that SIDs babies have different birth weights
than the rest of the population?
Pr( t > 1.833| df = 9) < Pr( t > 1.799| df = 9) < Pr( t > 1.383| df = 9)
3
SPHU 3160 – BIOSTATISTICS IN PUBLIC HEALTH
4
SPHU 3160 – BIOSTATISTICS IN PUBLIC HEALTH
s
x̄±t α⋅
n−1,1−
2√n
CI Example 1: A 95% confidence interval for μ for the birth weight of SIDS babies
α
1−α=. 95 , α=.05 , 1− =. 975 t =2. 262
n=10 , x̄=2890.5 , s=720 .0 , 2 , 9, . 975
s
x̄±t 9, . 975⋅
√n
720
2890 .5±2. 262⋅
√10
2890 .5± 515 . 1
{107, 119, 99, 114, 120, 104, 88, 114, 124, 116, 101, 121, 152, 100, 125, 114, 95, 117}.
95% CI for μ
s
x̄±t 17 ,. 975⋅
√n
14 .242
112.778±2. 110⋅
√ 18
112 .778 ± 7.083
5
SPHU 3160 – BIOSTATISTICS IN PUBLIC HEALTH
Paired Samples: Each point in one sample is matched to a unique point in the other sample
Pairs be achieved via sequential samples within individuals (e.g., pre-test/post-test), cross-over
trials, and match procedures
Also called “matched-pairs” and “dependent samples”
Paired t Test
Similar to one-sample t test
d = X2 - X1 or d = X1 - X2
o Order of subtraction does not materially effect results, but does change sign of
differences.
μ0 is usually set to 0, representing “no mean difference”, i.e., H0: μ = 0
d
t stat= with df =n−1
Test statistic:
sd / √ n
Subject X 1: X2:
CORNFLK OATBRAN d = X2 - X1
1 4.61 3.84 -0.77
2 6.42 5.57 -0.85
3 5.40 5.85 0.45
4 4.54 4.80 0.26
5 3.98 3.68 -0.30
6 3.82 2.96 -0.86
7 5.01 4.41 -0.60
8 4.34 3.72 -0.62
9 3.80 3.49 -0.31
10 4.56 3.84 -0.72
11 5.35 5.26 -0.09
12 3.89 3.73 -0.16
6
SPHU 3160 – BIOSTATISTICS IN PUBLIC HEALTH
Test statistic.
d −.3808 −. 3808
t stat= = = =−3 . 04
s d . 4335 .12514
√n √ 12 , df = n-1=11
Pr( t > 3.106| df = 11) < Pr( t > 3.04| df = 11) < Pr( t > 2.718| df = 11)
sd
d±t 11, . 975⋅
√n
.4335
−.3808±2 .201⋅
√ 12
−.3808±( 2 .201 ) ( .12514 )
−.3808±. 27543
(−.65623, -.10537)