Title: Last Time:
1Last Time
- Hypothesis Testing
- After Sampling and Estimation,
- yet another way to look at essentially the same
information
2Four scenarios when making a decision based on a
sample
Great!
Type II Error
Great!
Type I Error
3Example
4100
5Example
?
?
2.5
-1.96
1.96
6Example
Alternatively, we could compute 95 Confidence
Interval for ?
100
100.5
100.892
100.108
7Example
How to compute (two-sided) p-value
2.5
-2.5
8Three equivalent methodsof hypothesis
testing(?significance level)
9Today
- Type II Error and Power
- Estimation Hypothesis Testing
- without the assumption that
- we know the population variance
- (or the population standard deviation)
10Hypothesis Testing as a Decision Problem
Great!
Type II Error
Power 1 P(Type II error) Our ability to
reject the null hypothesis when it is indeed
false
Great!
Type I Error
Depends on sample size and how much the null and
alternative hypotheses differ
11Type II Error
- Suppose we use the critical value method with a
fixed significance level.
12Type II Error
13Type II Error
14Example Type II Error Power
Rejection Region for Null Hypothesis
15Example Type II Error Power
16Example Type II Error Power
17Another Example Type II Error Power
Rejection Region for Null Hypothesis
18Another Example Type II Error Power
19Another Example Type II Error Power
20Another Example Type II Error Power
Small Sample Size!
21Getting rid of one simplifying assumption
22CONFIDENCE INTERVAL FOR ?X WHEN ?X KNOWN 100(1 -
?) confidence interval
P( Confidence Interval encloses ?X ) 1 - ?
Note ? P(Confidence Interval
misses ?X )
Note the relationship between ? probability
of missing ?X n sample size
half-width of the
confidence interval margin of
error Fix any two and the third is determined!
23CONFIDENCE INTERVAL 100(1 - ?) confidence
interval for a population parameter
Point estimate
Std. dev. of point estimate
critical value
P( C. I. encloses true population parameter )
1 - ? Note ? P(Confidence Interval misses true
population parameter ) Proportion of times such
a CI misses the population parameter
Parameters confidence level 1- ? critical
value. std. dev. of point estimate
24WHAT IF ?X IS NOT KNOWN ?
Use the point estimate for ?X Find
sample variance S2 and use S as your best guess
for ?X.
?
25(No Transcript)
26(No Transcript)
27The student t distribution
- Looks like a Normal Distribution
- Depends on the sample size
- For sample size n the t-distribution
- has n-1 degrees of freedom
- t(n-1) ? N(0,1) as n approaches infinity
- Discovered by W.S.Gosset (Guinness)
http//www-stat.stanford.edu/naras/jsm/TDensity/T
Density.html
28IF ?X IS NOT KNOWN
P( Confidence Interval encloses ?X ) 1 - ?
Use the point estimate for ?X Find
sample variance S2 and use S as your best guess
for ?X. This affects the critical value
Have to use t-score t?/2, n-1
(see Table on last page of book)
n-1 of degrees of freedom (df) Note
t-score approaches z-score as n gets large
29IF ?X IS NOT KNOWN
Point estimate
Std. dev. of point estimate
critical value
30When the population variance is unknown
When the population variance is known
31Decision Tree for Confidence Intervals
n large? (CLT?)
X normal?
Population Variance known?
z-score
Yes
z-score
Yes
No
Yes
No
Cant do it
Yes
t-score
No
No
t-score
Yes
No
Cant do it
32ExampleConfidence Intervals Hypothesis
Testing when the Population Variance is unknown
- Suppose the birth weight of normal children has
normal distribution with mean 115.2 oz. - Suppose we collect a random sample of 20 babies
from mothers who smoke. - Suppose that
- the sample mean weight is 114 oz
- the sample standard deviation is 4.3.
- Is this significant evidence that babies of
smokers differ in weight from normal ones?
33Lets compute a 95 CI
Sample does not provide significant evidence of
a difference in birth weight. (Two-sided test)
34ExampleConfidence Intervals Hypothesis
Testing when the Population Variance is unknown
- Suppose the birth weight of normal children has
normal distribution with mean 115.2 oz. - Suppose we collect a random sample of 20 babies
from mothers who smoke. - Suppose that
- the sample mean weight is 114 oz
- the sample standard deviation is 4.3.
- Is this significant evidence that babies of
smokers are lighter than normal ones?
35Now we need a 1-sidedHypothesis Test
Whats the p-value of that standardized
statistic??
36Now we need a 1-sided Hypothesis Test
Whats the p-value of that standardized
statistic??
37Now we need a 1-sided Hypothesis Test
Whats the p-value of that standardized
statistic??
.080
.262
38Now we need a 1-sided Hypothesis Test
Whats the p-value of that standardized
statistic??
.080
.262