

|
|
|
Hypothesis Testing
2
Lecture Goals You should be able to: - Understand the relationship between sampling error and hypothesis testing when n > 1 - Understand decision errors - Understand the relationship between errors and alpha Chapter 12 pgs. 267-282 Definitions hypothesistesting = a tool for justifying generalizations about population based on sample data Usually sample size > 1
A researcher wants to know whether the mean IQ score of PSU students is different from the mean IQ score of all Americans. The IQ scores of all Americans are normally distributed with a m = 100 and s = 16. The researcher randomly selects a sample
of 10 PSU students and finds that their mean IQ score is 111.
Same Idea As Before Q = How likely is it that the scores (means) are from the same pop. of scores? A = Depends on sampling error & criterion that an unlikely event has occurred = should be representative of the population (x should = m ) Some random samples are more representative of the pop. than others
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Median = 50 Mean = 50 Now...we select a random sample of 5 scores from this population of scores. random sample 1: 38 40 50 67 88 Mean = 56.6 Median = 50
random sample 2: 0 1 2 3 4 Mean = 2 Median = 2
Sampling Error = how far a random sample is from being a representative sample
If you flip 4 fair coins there are 16 possible outcomes 50% chance of H & 50% chance of T Expect = 2 H and 2 T Sampling Error = excess heads
HHHH 2 HHHT 1 HHTH 1 HTHH 1 THHH 1 Sampling Errors HHTT 0 HTHT 0 (graph) THHT 0 HTTH 0 THTH 0 TTHH 0 TTTH -1 TTHT -1 THTT -1 HTTT -1 TTTT -2 Person
Score
m = 1 + 2
+ 3 = 6 = 2
XAB = 1 + 2 = 3 = 1.5 2 2 Sampling error and random samples - with replacement
Sample X m Sampling Error AA 1 2 - 1 AB 1.5 2 -.5 AC 2 2 0 BA 1.5 2 -.5 BB 2 2 0 BC 2.5 2 +.5 CA 2 2 0 CB 2.5 2 +.5 CC
3 2
+1
Sample means are normally distributed (graph)
(graph)
Sampling Errors are normally distributed
errors (and expected if x = m ) - large sampling errors = unlikely events
Z score and Sampling Error
(formulas) State alternative hypothesis Set level of significance * Calculate the z-score * Find percentile Decision about the null hypothesis Draw a conclusion The IQ scores of all Americans are normally distributed with a m = 100 and s = 16. The researcher randomly selects a sample of 10 PSU students and finds that their mean IQ score is 111. a = .05 Step 1: State the Null Hypothesis
Ho : mpsu
= 100 (or mpsu
= m Amer)
Step 2: State the Alternative Hypothesis a = .05
z = 2.17
Step 5: Find Percentile: p = .0150 If p > a /2 fail to reject Ho
IQ score of PSU students is different than the mean IQ score of all Americans
A researcher wants to know whether the mean IQ score of PSU students is different from the mean IQ score of all Americans. The IQ scores of all Americans are normally distributed with a m = 100 and s = 16. The researcher randomly selects a sample of 10 PSU students and finds that their mean IQ score is 120. z = 3.95 Step 5: Find Percentile:
p = .0026 If p < a
/2 reject Ho
State alternative hypothesis Set level of significance Determine critical z-score & region Calculate the z-score Compare to make decision about Ho Draw a conclusion a = .05 Step 1: State the Null Hypothesis
a = .05
Step 4: Determine critical z-score & region Because negative tail
Z = -1.645
z = -1.88
Step 6: Decision About Ho Step 6: Decision About Hoz = -1.88 = in critical region If |Zcalc| ³ |Zcrit| then Reject Ho
The data show that the mean score of SC seniors is below the national average JUDGEMENT ERRORS Ho Actually
Reject
Type I
no error
(don't reject) error From Before: Q = Are the results likely if Ho is correct? A = No Why did we get these results?
1) an unlikely event occurred
Odds of # 1 = .0001, # 2 more probable A = No Odds of # 1 = .0001, # 2 more probable Odds of # 1 > 0....an unlikely event MIGHT
have occurred and Ho is correct
Why Type II Errors Population = 100 people.....90 show improvement with a drug, 10 don't a and Errors Q - How large does a z score have to be to be considered unlikely? Answer = a
a = criterion for rejecting Ho Stricter the crit. = less likely reject
any Ho
Type I error = we reject an Ho
that is true
Type II error = we do NOT reject an Ho
that is false
Claim we found an effect (Cure for cancer) We really didn't Harmful applications (use drug as ONLY treatment) Impede scientific progress (stop looking)
Type II = believe Ho that is false Dismiss a real effect (Cure for cancer) We don't use it Miss opportunity to use it Waste time and $ looking elsewhere Avoiding Errors Extension Skepticism Determination Chapter 12: Problems 20-22, 24 |