1.13k likes | 1.14k Views
Practice. I think it is colder in Philadelphia than in Anaheim ( = .10) . To test this, I got temperatures from these two places on the Internet. Philadelphia 52 53 54 61 55. Anaheim 77 75 67. Results. Hypotheses. Alternative hypothesis H 1 : Philadelphia < Anaheim
E N D
Practice • I think it is colder in Philadelphia than in Anaheim ( = .10). • To test this, I got temperatures from these two places on the Internet.
Philadelphia 52 53 54 61 55 Anaheim 77 75 67 Results
Hypotheses • Alternative hypothesis • H1: Philadelphia < Anaheim • Null hypothesis • H0: Philadelphia = or > Anaheim
Step 2: Calculate the Critical t • df = N1 + N2 - 2 • df = 5 + 3 - 2 = 6 • = .10 • One-tailed • t critical = - 1.44
Step 3: Draw Critical Region tcrit = -1.44
NowStep 4: Calculate t observed tobs = (X1 - X2) / Sx1 - x2
X1= 275 X12= 15175 N1 = 5 X1 = 55 X2= 219 X22= 16043 N2 = 3 X2 = 73 219 275 16043 15175 3 5 5 3 5 + 3 - 2
X1= 275 X12= 15175 N1 = 5 X1 = 55 X2= 219 X22= 16043 N2 = 3 X2 = 73 219 275 16043 15987 15175 15125 3 5 .2 + .33 5 3 6 = 3.05
Step 4: Calculate t observed -5.90 = (55 - 73) / 3.05 Sx1 - x2 = 3.05 X1 = 55 X2 = 73
Step 5: See if tobs falls in the critical region tcrit = -1.44 tobs = -5.90
Step 6: Decision • If tobs falls in the critical region: • Reject H0, and accept H1 • If tobs does not fall in the critical region: • Fail to reject H0
Step 7: Put answer into words • We Reject H0, and accept H1 • Philadelphia is significantly ( = .10) colder than Anaheim.
So far. . . . • We have been doing independent samples designs • The observations in one group were not linked to the observations in the other group
Philadelphia 52 53 54 61 55 Anaheim 77 75 67 Example
Matched Samples Design • This can happen with: • Natural pairs • Matched pairs • Repeated measures
Natural Pairs The pairing of two subjects occurs naturally (e.g., twins)
Matched Pairs When people are matched on some variable (e.g., age)
Repeated Measures The same participant is in both conditions
Matched Samples Design • In this type of design you label one level of the variable X and the other Y • There is a logical reason for paring the X value and the Y value
Matched Samples Design • The logic and testing of this type of design is VERY similar to what you have already done!
Example • You just invented a “magic math pill” that will increase test scores. • On the day of the first test you give the pill to 4 subjects. When these same subjects take the second test they do not get a pill • Did the pill increase their test scores?
HypothesisOne-tailed • Alternative hypothesis • H1: pill > nopill • In other words, when the subjects got the pill they had higher math scores than when they did not get the pill • Null hypothesis • H0: pill < or = nopill • In other words, when the subjects got the pill their math scores were lower or equal to the scores they got when they did not take the pill
Test 1 w/ Pill (X) Mel 3 Alice 5 Vera 4 Flo 3 Test 2 w/o Pill (Y) 1 3 2 2 Results
Step 2: Calculate the Critical t • N = Number of pairs • df = N - 1 • 4 - 1 = 3 • = .05 • t critical = 2.353
Step 3: Draw Critical Region tcrit = 2.353
Step 4: Calculate t observed tobs = (X - Y) / SD
Step 4: Calculate t observed tobs = (X - Y) / SD
Step 4: Calculate t observed tobs = (X - Y) / SD X = 3.75 Y = 2.00
Step 4: Calculate t observed tobs = (X - Y) / SD Standard error of a difference
Step 4: Calculate t observed tobs = (X - Y) / SD SD = SD / N N = number of pairs
Test 1 w/ Pill (X) Mel 3 Alice 5 Vera 4 Flo 3 Test 2 w/o Pill (Y) 1 3 2 2 S =
Difference (D) 2 2 2 1 Test 1 w/ Pill (X) Mel 3 Alice 5 Vera 4 Flo 3 Test 2 w/o Pill (Y) 1 3 2 2 S =
Difference (D) 2 2 2 1 Test 1 w/ Pill (X) Mel 3 Alice 5 Vera 4 Flo 3 Test 2 w/o Pill (Y) 1 3 2 2 D = 7 D2 =13 N = 4 S =
Difference (D) 2 2 2 1 Test 1 w/ Pill (X) Mel 3 Alice 5 Vera 4 Flo 3 Test 2 w/o Pill (Y) 1 3 2 2 D = 7 D2 =13 N = 4 7 S =
Difference (D) 2 2 2 1 Test 1 w/ Pill (X) Mel 3 Alice 5 Vera 4 Flo 3 Test 2 w/o Pill (Y) 1 3 2 2 D = 7 D2 =13 N = 4 7 S = 13
Difference (D) 2 2 2 1 Test 1 w/ Pill (X) Mel 3 Alice 5 Vera 4 Flo 3 Test 2 w/o Pill (Y) 1 3 2 2 D = 7 D2 =13 N = 4 7 S = 13 4 4 - 1
Difference (D) 2 2 2 1 Test 1 w/ Pill (X) Mel 3 Alice 5 Vera 4 Flo 3 Test 2 w/o Pill (Y) 1 3 2 2 D = 7 D2 =13 N = 4 7 S = 13 12.25 4 3
Difference (D) 2 2 2 1 Test 1 w/ Pill (X) Mel 3 Alice 5 Vera 4 Flo 3 Test 2 w/o Pill (Y) 1 3 2 2 D = 7 D2 =13 N = 4 7 .5 = .75 4 3
Step 4: Calculate t observed tobs = (X - Y) / SD SD = SD / N N = number of pairs
Step 4: Calculate t observed tobs = (X - Y) / SD .25=.5 / 4 N = number of pairs
Step 4: Calculate t observed 7.0 = (3.75 - 2.00) / .25
Step 5: See if tobs falls in the critical region tcrit = 2.353
Step 5: See if tobs falls in the critical region tcrit = 2.353 tobs = 7.0
Step 6: Decision • If tobs falls in the critical region: • Reject H0, and accept H1 • If tobs does not fall in the critical region: • Fail to reject H0
Step 7: Put answer into words • Reject H0, and accept H1 • When the subjects took the “magic pill” they received statistically ( = .05) higher math scores than when they did not get the pill
New Step • Should add a new page • Determine if • One-sample t-test • Two-sample t-test • If it is a matched samples design • If it is a independent samples with equal N • If it is a independent samples with unequal N