Title: Is this quarter fair?
1(No Transcript)
2Example
- You give 100 random students a questionnaire
designed to measure attitudes toward living in
dormitories - Scores range from 1 to 7
- (1 unfavorable 4 neutral 7 favorable)
- You wonder if the mean score of the population is
different then 4
3Hypothesis
- Alternative hypothesis
- H1 ?sample 4
- In other words, the population mean will be
different than 4
4Hypothesis
- Alternative hypothesis
- H1 ?sample 4
- Null hypothesis
- H0 ?sample 4
- In other words, the population mean will not be
different than 4
5Results
- N 100
- X 4.51
- s 1.94
- Notice, your sample mean is consistent with H1,
but you must determine if this difference is
simply due to chance
6Results
- N 100
- X 4.51
- s 1.94
- To determine if this difference is due to chance
you must calculate an observed t value
7Observed t-value
8Observed t-value
- This will test if the null hypothesis H0 ?
sample 4 is true - The bigger the tobs the more likely that H1 ?
sample 4 is true
9Observed t-value
Sx S / N
10Observed t-value
.194 1.94/ 100
11Observed t-value
12Observed t-value
13t distribution
14t distribution
tobs 2.63
15t distribution
tobs 2.63
Next, must determine if this t value happened due
to chance or if represent a real difference in
means. Usually, we want to be 95 certain.
16t critical
- To find out how big the tobs must be to be
significantly different than 0 you find a tcrit
value. - Calculate df N - 1
- Page 747
- First Column are df
- Look at an alpha of .05 with two-tails
17t distribution
tobs 2.63
18t distribution
tcrit -1.98
tcrit 1.98
tobs 2.63
19t distribution
tcrit -1.98
tcrit 1.98
tobs 2.63
20t distribution
tcrit -1.98
tcrit 1.98
tobs 2.63
If tobs fall in critical area reject the null
hypothesis Reject H0 ? sample 4
21t distribution
tcrit -1.98
tcrit 1.98
tobs 2.63
If tobs does not fall in critical area do not
reject the null hypothesis Do not reject H0 ?
sample 4
22Decision
- Since tobs falls in the critical region we reject
Ho and accept H1 - It is statistically significant, students tend to
think favorably about living in the dorms. - p lt .05
23Example
- You wonder if the average IQ score of students at
Villanova significantly different (at alpha
.05)than the average IQ of the population (which
is 100). You sample the students in this room. - N 54
- X 130
- s 18.4
24The Steps
- Try to always follow these steps!
25Step 1 Write out Hypotheses
- Alternative hypothesis
- H1 ?sample 100
- Null hypothesis
- H0 ?sample 100
26Step 2 Calculate the Critical t
- N 54
- df 53
- ? .05
- tcrit 2.0
27Step 3 Draw Critical Region
tcrit 2.00
tcrit -2.00
28Step 4 Calculate t observed
29Step 4 Calculate t observed
Sx S / N
30Step 4 Calculate t observed
2.5 18.4 / 54
31Step 4 Calculate t observed
- tobs (X - ?) / Sx
- 12 (130 - 100) / 2.5
2.5 18.4 / 54
32Step 5 See if tobs falls in the critical region
tcrit 2.00
tcrit -2.00
33Step 5 See if tobs falls in the critical region
tcrit 2.00
tcrit -2.00
tobs 12
34Step 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
35Step 7 Put answer into words
- We reject H0 and accept H1.
- The average IQ of students at Villanova is
statistically different (? .05) than the
average IQ of the population.
36Practice
- You recently finished giving 5 of your friends
the MMPI paranoia measure. Is your friends
average average paranoia score significantly (?
.10) different than the average paranoia of the
population (? 56.1)?
37Scores
38Step 1 Write out Hypotheses
- Alternative hypothesis
- H1 ?sample 56.1
- Null hypothesis
- H0 ?sample 56.1
39Step 2 Calculate the Critical t
- N 5
- df 4
- ? .10
- tcrit 2.132
40Step 3 Draw Critical Region
tcrit 2.132
tcrit -2.132
41Step 4 Calculate t observed
- tobs (X - ?) / Sx
- -.48 (55.2 - 56.1) / 1.88
1.88 4.21/ 5
42Step 5 See if tobs falls in the critical region
tcrit 2.132
tcrit -2.132
tobs -.48
43Step 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
44Step 7 Put answer into words
- We fail to reject H0
- The average paranoia of your friends is not
statistically different (? .10) than the
average paranoia of the population.
45SPSS
46(No Transcript)
47One-tailed test
- In the examples given so far we have only
examined if a sample mean is different than some
value - What if we want to see if the sample mean is
higher or lower than some value - This is called a one-tailed test
48Remember
- You recently finished giving 5 of your friends
the MMPI paranoia measure. Is your friends
average paranoia score significantly (? .10)
different than the average paranoia of the
population (? 56.1)?
49Hypotheses
- Alternative hypothesis
- H1 ?sample 56.1
- Null hypothesis
- H0 ?sample 56.1
50What if. . .
- You recently finished giving 5 of your friends
the MMPI paranoia measure. Is your friends
average paranoia score significantly (? .10)
lower than the average paranoia of the population
(? 56.1)?
51Hypotheses
- Alternative hypothesis
- H1 ?sample lt 56.1
- Null hypothesis
- H0 ?sample or gt 56.1
52Step 2 Calculate the Critical t
- N 5
- df 4
- ? .10
- Since this is a one-tail test use the
one-tailed column - Note one-tail directional test
- tcrit -1.533
- If H1 is lt then tcrit negative
- If H1 is gt then tcrit positive
53Step 3 Draw Critical Region
tcrit -1.533
54Step 4 Calculate t observed
55Step 4 Calculate t observed
- tobs (X - ?) / Sx
- -.48 (55.2 - 56.1) / 1.88
1.88 4.21/ 5
56Step 5 See if tobs falls in the critical region
tcrit -1.533
57Step 5 See if tobs falls in the critical region
tcrit -1.533
tobs -.48
58Step 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
59Step 7 Put answer into words
- We fail to reject H0
- The average paranoia of your friends is not
statistically less then (? .10) the average
paranoia of the population.
60Practice
- You just created a Smart Pill and you gave it
to 150 subjects. Below are the results you
found. Did your Smart Pill significantly (?
.05) increase the average IQ scores over the
average IQ of the population (? 100)? - X 103
- s 14.4
61Step 1 Write out Hypotheses
- Alternative hypothesis
- H1 ?sample gt 100
- Null hypothesis
- H0 ?sample lt or 100
62Step 2 Calculate the Critical t
- N 150
- df 149
- ? .05
- tcrit 1.645
63Step 3 Draw Critical Region
tcrit 1.645
64Step 4 Calculate t observed
- tobs (X - ?) / Sx
- 2.54 (103 - 100) / 1.18
1.1814.4 / 150
65Step 5 See if tobs falls in the critical region
tcrit 1.645
tobs 2.54
66Step 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
67Step 7 Put answer into words
- We reject H0 and accept H1.
- The average IQ of the people who took your Smart
Pill is statistically greater (? .05) than the
average IQ of the population.
68(No Transcript)
69So far. . .
- We have been doing hypothesis testing with a
single sample - We find the mean of a sample and determine if it
is statistically different than the mean of a
population
70Basic logic of research
71Start with two equivalent groups of subjects
72Treat them alike except for one thing
73See if both groups are different at the end
74Notice
- This means that we need to see if two samples are
statistically different from each other - We can use the same logic we learned earlier with
single sample hypothesis testing
75Example
- You just invented a magic math pill that will
increase test scores. - You give the pill to 4 subjects and another 4
subjects get no pill - You then examine their final exam grades
76HypothesisTwo-tailed
- Alternative hypothesis
- H1 ?pill ?nopill
- In other words, the means of the two groups will
be significantly different - Null hypothesis
- H0 ?pill ?nopill
- In other words, the means of the two groups will
not be significantly different
77HypothesisOne-tailed
- Alternative hypothesis
- H1 ?pill gt ?nopill
- In other words, the pill group will score higher
than the no pill group - Null hypothesis
- H0 ?pill lt or ?nopill
- In other words, the pill group will be lower or
equal to the no pill group
78For current example, lets just see if there is a
difference
- Alternative hypothesis
- H1 ?pill ?nopill
- In other words, the means of the two groups will
be significantly different - Null hypothesis
- H0 ?pill ?nopill
- In other words, the means of the two groups will
not be significantly different
79Results
80Remember before. . . Step 2 Calculate the
Critical t
81NowStep 2 Calculate the Critical t
- df N1 N2 - 2
- df 4 4 - 2 6
- ? .05
- t critical 2.447
82Step 3 Draw Critical Region
tcrit 2.447
tcrit -2.447
83Remember before. . .Step 4 Calculate t observed
84NowStep 4 Calculate t observed
-
- tobs (X1 - X2) / Sx1 - x2
85NowStep 4 Calculate t observed
-
- tobs (X1 - X2) / Sx1 - x2
86NowStep 4 Calculate t observed
-
- tobs (X1 - X2) / Sx1 - x2
- X1 3.75
- X2 2.50
87NowStep 4 Calculate t observed
-
- tobs (X1 - X2) / Sx1 - x2
88Standard Error of a Difference
- Sx1 - x2
- When the N of both samples are equal
- If N1 N2
- Sx1 - x2 Sx12 Sx22
89Results
90Standard Deviation
S
-1
91Standard Deviation
??X2 10 ??X22 30
??X1 15 ??X12 59
92Standard Deviation
??X2 10 ??X22 30
??X1 15 ??X12 59
S .96
S 1.29
93Standard Deviation
??X2 10 ??X22 30
??X1 15 ??X12 59
S .96
S 1.29
Sx .48
Sx . 645
94Standard Error of a Difference
- Sx1 - x2
- When the N of both samples are equal
- If N1 N2
- Sx1 - x2 Sx12 Sx22
95Standard Error of a Difference
- Sx1 - x2
- When the N of both samples are equal
- If N1 N2
- Sx1 - x2 (.48)2 (.645)2
96Standard Error of a Difference
- Sx1 - x2
- When the N of both samples are equal
- If N1 N2
- Sx1 - x2 (.48)2 (.645)2
.80
97Standard Error of a Difference Raw Score Formula
- When the N of both samples are equal
- If N1 N2
- Sx1 - x2
98??X1 15 ??X12 59 N1 4
??X2 10 ??X22 30 N2 4
99??X1 15 ??X12 59 N1 4
??X2 10 ??X22 30 N2 4
10
15
100??X1 15 ??X12 59 N1 4
??X2 10 ??X22 30 N2 4
10
15
59
30
101??X1 15 ??X12 59 N1 4
??X2 10 ??X22 30 N2 4
10
15
59
30
4
4
4 (4 - 1)
102??X1 15 ??X12 59 N1 4
??X2 10 ??X22 30 N2 4
10
15
59
30
56.25
25
4
4
12
103??X1 15 ??X12 59 N1 4
??X2 10 ??X22 30 N2 4
10
15
.80
59
30
56.25
25
7.75
4
4
12
104NowStep 4 Calculate t observed
-
- tobs (X1 - X2) / Sx1 - x2
Sx1 - x2 .80 X1 3.75 X2 2.50
105NowStep 4 Calculate t observed
Sx1 - x2 .80 X1 3.75 X2 2.50
106NowStep 4 Calculate t observed
Sx1 - x2 .80 X1 3.75 X2 2.50
107Step 5 See if tobs falls in the critical region
tcrit 2.447
tcrit -2.447
108Step 5 See if tobs falls in the critical region
tcrit 2.447
tcrit -2.447
tobs 1.56
109Step 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
110Step 7 Put answer into words
- We fail to reject H0.
- The final exam grades of the pill group were
not statistically different (? .05) than the
final exam grades of the no pill group.
111SPSS
112Practice
- You wonder if psychology majors have higher IQs
than sociology majors (? .05) - You give an IQ test to 4 psychology majors and 4
sociology majors
113Results
- Psychology
- 110
- 150
- 140
- 135
114Step 1 Hypotheses
- Alternative hypothesis
- H1 ?psychology gt ?sociology
- Null hypothesis
- H0 ?psychology or lt ?sociology
115Step 2 Calculate the Critical t
- df N1 N2 - 2
- df 4 4 - 2 6
- ? .05
- One-tailed
- t critical 1.943
116Step 3 Draw Critical Region
tcrit 1.943
117NowStep 4 Calculate t observed
-
- tobs (X1 - X2) / Sx1 - x2
118??X1 535 ??X12 72425 N1 4 X1 133.75
??X2 363 ??X22 33129 N2 4 X2 90.75
363
535
72425
33129
4
4
4 (4 - 1)
119Step 4 Calculate t observed
-
- 4.58 (133.75 - 90.75) / 9.38
Sx1 - x2 9.38 X1 133.75 X2 90.75
120Step 5 See if tobs falls in the critical region
tcrit 1.943
tobs 4.58
121Step 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
122Step 7 Put answer into words
- We Reject H0, and accept H1
- Psychology majors have significantly (? .05)
higher IQs than sociology majors.
123Practice
124SPSS Problem 2