Presentation is loading. Please wait.

Presentation is loading. Please wait.

Example You give 100 random students a questionnaire designed to measure attitudes toward living in dormitories Scores range from 1 to 7 –(1 = unfavorable;

Similar presentations


Presentation on theme: "Example You give 100 random students a questionnaire designed to measure attitudes toward living in dormitories Scores range from 1 to 7 –(1 = unfavorable;"— Presentation transcript:

1

2 Example 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

3 Hypothesis Alternative hypothesis –H 1 :  sample = 4 –In other words, the population mean will be different than 4

4 Hypothesis Alternative hypothesis –H 1 :  sample = 4 Null hypothesis –H 0 :  sample = 4 –In other words, the population mean will not be different than 4

5 Results N = 100 X = 4.51 s = 1.94 Notice, your sample mean is consistent with H 1, but you must determine if this difference is simply due to chance

6 Results N = 100 X = 4.51 s = 1.94 To determine if this difference is due to chance you must calculate an observed t value

7 Observed t-value t obs = (X -  ) / S x

8 Observed t-value t obs = (X -  ) / S x This will test if the null hypothesis H 0 :  sample = 4 is true The bigger the t obs the more likely that H 1 :  sample = 4 is true

9 Observed t-value t obs = (X -  ) / S x S x = S / N

10 Observed t-value t obs = (X -  ) /.194.194 = 1.94/ 100

11 Observed t-value t obs = (4.51 – 4.0) /.194

12 Observed t-value 2.63 = (4.51 – 4.0) /.194

13 t distribution

14 t obs = 2.63

15 t distribution t obs = 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.

16 t critical To find out how big the t obs must be to be significantly different than 0 you find a t crit value. Calculate df = N - 1 Page 747 –First Column are df –Look at an alpha of.05 with two-tails

17 t distribution t obs = 2.63

18 t distribution t obs = 2.63 t crit = 1.98 t crit = -1.98

19 t distribution t obs = 2.63 t crit = 1.98 t crit = -1.98

20 t distribution t obs = 2.63 t crit = 1.98 t crit = -1.98 If t obs fall in critical area reject the null hypothesis Reject H 0 :  sample = 4

21 t distribution t obs = 2.63 t crit = 1.98 t crit = -1.98 If t obs does not fall in critical area do not reject the null hypothesis Do not reject H 0 :  sample = 4

22 Decision Since t obs falls in the critical region we reject H o and accept H 1 It is statistically significant, students tend to think favorably about living in the dorms. p <.05

23 Example 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

24 The Steps Try to always follow these steps!

25 Step 1: Write out Hypotheses Alternative hypothesis –H 1 :  sample = 100 Null hypothesis –H 0 :  sample = 100

26 Step 2: Calculate the Critical t N = 54 df = 53  =.05 t crit = 2.0

27 Step 3: Draw Critical Region t crit = 2.00t crit = -2.00

28 Step 4: Calculate t observed t obs = (X -  ) / S x

29 Step 4: Calculate t observed t obs = (X -  ) / S x S x = S / N

30 Step 4: Calculate t observed t obs = (X -  ) / S x 2.5 = 18.4 / 54

31 Step 4: Calculate t observed t obs = (X -  ) / S x 12 = (130 - 100) / 2.5 2.5 = 18.4 / 54

32 Step 5: See if t obs falls in the critical region t crit = 2.00t crit = -2.00

33 Step 5: See if t obs falls in the critical region t crit = 2.00t crit = -2.00 t obs = 12

34 Step 6: Decision If t obs falls in the critical region: –Reject H 0, and accept H 1 If t obs does not fall in the critical region: –Fail to reject H 0

35 Step 7: Put answer into words We reject H 0 and accept H 1. The average IQ of students at Villanova is statistically different (  =.05) than the average IQ of the population.

36 Practice 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)?

37 Scores

38 Step 1: Write out Hypotheses Alternative hypothesis –H 1 :  sample = 56.1 Null hypothesis –H 0 :  sample = 56.1

39 Step 2: Calculate the Critical t N = 5 df =4  =.10 t crit = 2.132

40 Step 3: Draw Critical Region t crit = 2.132t crit = -2.132

41 Step 4: Calculate t observed t obs = (X -  ) / S x -.48 = (55.2 - 56.1) / 1.88 1.88 = 4.21/ 5

42 Step 5: See if t obs falls in the critical region t crit = 2.132t crit = -2.132 t obs = -.48

43 Step 6: Decision If t obs falls in the critical region: –Reject H 0, and accept H 1 If t obs does not fall in the critical region: –Fail to reject H 0

44 Step 7: Put answer into words We fail to reject H 0 The average paranoia of your friends is not statistically different (  =.10) than the average paranoia of the population.

45 SPSS

46

47 One-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

48 Remember 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)?

49 Hypotheses Alternative hypothesis –H 1 :  sample = 56.1 Null hypothesis –H 0 :  sample = 56.1

50 What 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)?

51 Hypotheses Alternative hypothesis –H 1 :  sample < 56.1 Null hypothesis –H 0 :  sample = or > 56.1

52 Step 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 t crit = -1.533 –If H 1 is < then t crit = negative –If H 1 is > then t crit = positive

53 Step 3: Draw Critical Region t crit = -1.533

54 Step 4: Calculate t observed t obs = (X -  ) / S x

55 Step 4: Calculate t observed t obs = (X -  ) / S x -.48 = (55.2 - 56.1) / 1.88 1.88 = 4.21/ 5

56 Step 5: See if t obs falls in the critical region t crit = -1.533

57 Step 5: See if t obs falls in the critical region t crit = -1.533 t obs = -.48

58 Step 6: Decision If t obs falls in the critical region: –Reject H 0, and accept H 1 If t obs does not fall in the critical region: –Fail to reject H 0

59 Step 7: Put answer into words We fail to reject H 0 The average paranoia of your friends is not statistically less then (  =.10) the average paranoia of the population.

60 Practice 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

61 Step 1: Write out Hypotheses Alternative hypothesis –H 1 :  sample > 100 Null hypothesis –H 0 :  sample < or = 100

62 Step 2: Calculate the Critical t N = 150 df = 149  =.05 t crit = 1.645

63 Step 3: Draw Critical Region t crit = 1.645

64 Step 4: Calculate t observed t obs = (X -  ) / S x 2.54 = (103 - 100) / 1.18 1.18=14.4 / 150

65 Step 5: See if t obs falls in the critical region t crit = 1.645 t obs = 2.54

66 Step 6: Decision If t obs falls in the critical region: –Reject H 0, and accept H 1 If t obs does not fall in the critical region: –Fail to reject H 0

67 Step 7: Put answer into words We reject H 0 and accept H 1. The average IQ of the people who took your “Smart Pill” is statistically greater (  =.05) than the average IQ of the population.

68

69 So 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

70 Basic logic of research

71 Start with two equivalent groups of subjects

72 Treat them alike except for one thing

73 See if both groups are different at the end

74 Notice 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

75 Example 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

76 Hypothesis Two-tailed Alternative hypothesis –H 1 :  pill =  nopill –In other words, the means of the two groups will be significantly different Null hypothesis –H 0 :  pill =  nopill –In other words, the means of the two groups will not be significantly different

77 Hypothesis One-tailed Alternative hypothesis –H 1 :  pill >  nopill –In other words, the pill group will score higher than the no pill group Null hypothesis –H 0 :  pill < or =  nopill –In other words, the pill group will be lower or equal to the no pill group

78 For current example, lets just see if there is a difference Alternative hypothesis –H 1 :  pill =  nopill –In other words, the means of the two groups will be significantly different Null hypothesis –H 0 :  pill =  nopill –In other words, the means of the two groups will not be significantly different

79 Results Pill Group 5 3 4 3 No Pill Group 1 2 4 3

80 Remember before... Step 2: Calculate the Critical t df = N -1

81 Now Step 2: Calculate the Critical t df = N 1 + N 2 - 2 df = 4 + 4 - 2 = 6  =.05 t critical = 2.447

82 Step 3: Draw Critical Region t crit = 2.447t crit = -2.447

83 Remember before... Step 4: Calculate t observed t obs = (X -  ) / S x

84 Now Step 4: Calculate t observed t obs = (X 1 - X 2 ) / Sx 1 - x 2

85 Now Step 4: Calculate t observed t obs = (X 1 - X 2 ) / Sx 1 - x 2

86 Now Step 4: Calculate t observed t obs = (X 1 - X 2 ) / Sx 1 - x 2 X 1 = 3.75 X 2 = 2.50

87 Now Step 4: Calculate t observed t obs = (X 1 - X 2 ) / Sx 1 - x 2

88 Standard Error of a Difference Sx 1 - x 2 When the N of both samples are equal If N 1 = N 2 : Sx 1 - x 2 = S x1 2 + S x2 2

89 Results Pill Group 5 3 4 3 No Pill Group 1 2 4 3

90 Standard Deviation S =

91 Standard Deviation Pill Group 5 3 4 3 No Pill Group 1 2 4 3  X 1 = 15  X 1 2 = 59  X 2 = 10  X 2 2 = 30

92 Standard Deviation Pill Group 5 3 4 3 No Pill Group 1 2 4 3 S =.96S = 1.29  X 1 = 15  X 1 2 = 59  X 2 = 10  X 2 2 = 30

93 Standard Deviation Pill Group 5 3 4 3 No Pill Group 1 2 4 3 S =.96S = 1.29 S x =.48S x =. 645  X 1 = 15  X 1 2 = 59  X 2 = 10  X 2 2 = 30

94 Standard Error of a Difference Sx 1 - x 2 When the N of both samples are equal If N 1 = N 2 : Sx 1 - x 2 = S x1 2 + S x2 2

95 Standard Error of a Difference Sx 1 - x 2 When the N of both samples are equal If N 1 = N 2 : Sx 1 - x 2 = (.48) 2 + (.645) 2

96 Standard Error of a Difference Sx 1 - x 2 When the N of both samples are equal If N 1 = N 2 : Sx 1 - x 2 = (.48) 2 + (.645) 2 =.80

97 Standard Error of a Difference Raw Score Formula When the N of both samples are equal If N 1 = N 2 : Sx 1 - x 2 =

98  X 1 = 15  X 1 2 = 59 N 1 = 4  X 2 = 10  X 2 2 = 30 N 2 = 4

99 Sx 1 - x 2 =  X 1 = 15  X 1 2 = 59 N 1 = 4  X 2 = 10  X 2 2 = 30 N 2 = 4 15 10

100 Sx 1 - x 2 =  X 1 = 15  X 1 2 = 59 N 1 = 4  X 2 = 10  X 2 2 = 30 N 2 = 4 15 10 5930

101 Sx 1 - x 2 =  X 1 = 15  X 1 2 = 59 N 1 = 4  X 2 = 10  X 2 2 = 30 N 2 = 4 15 10 5930 44 4 (4 - 1)

102 Sx 1 - x 2 =  X 1 = 15  X 1 2 = 59 N 1 = 4  X 2 = 10  X 2 2 = 30 N 2 = 4 15 10 5930 44 12 56.2525

103  X 1 = 15  X 1 2 = 59 N 1 = 4  X 2 = 10  X 2 2 = 30 N 2 = 4 15 10 5930 44 12 56.2525 7.75.80 =

104 Now Step 4: Calculate t observed t obs = (X 1 - X 2 ) / Sx 1 - x 2 Sx 1 - x 2 =.80 X 1 = 3.75 X 2 = 2.50

105 Now Step 4: Calculate t observed t obs = (3.75 - 2.50) /.80 Sx 1 - x 2 =.80 X 1 = 3.75 X 2 = 2.50

106 Now Step 4: Calculate t observed 1.56 = (3.75 - 2.50) /.80 Sx 1 - x 2 =.80 X 1 = 3.75 X 2 = 2.50

107 Step 5: See if t obs falls in the critical region t crit = 2.447t crit = -2.447

108 Step 5: See if t obs falls in the critical region t crit = 2.447t crit = -2.447 t obs = 1.56

109 Step 6: Decision If t obs falls in the critical region: –Reject H 0, and accept H 1 If t obs does not fall in the critical region: –Fail to reject H 0

110 Step 7: Put answer into words We fail to reject H 0. The final exam grades of the “pill group” were not statistically different (  =.05) than the final exam grades of the “no pill” group.

111 SPSS

112 Practice 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

113 Results Psychology 110 150 140 135 Sociology 90 95 80 98

114 Step 1: Hypotheses Alternative hypothesis –H 1 :  psychology >  sociology Null hypothesis –H 0 :  psychology = or <  sociology

115 Step 2: Calculate the Critical t df = N 1 + N 2 - 2 df = 4 + 4 - 2 = 6  =.05 One-tailed t critical = 1.943

116 Step 3: Draw Critical Region t crit = 1.943

117 Now Step 4: Calculate t observed t obs = (X 1 - X 2 ) / Sx 1 - x 2

118 9.38 =  X 1 = 535  X 1 2 = 72425 N 1 = 4 X 1 = 133.75  X 2 = 363  X 2 2 = 33129 N 2 = 4 X 2 = 90.75 535 363 7242533129 44 4 (4 - 1)

119 Step 4: Calculate t observed 4.58 = (133.75 - 90.75) / 9.38 Sx 1 - x 2 = 9.38 X 1 = 133.75 X 2 = 90.75

120 Step 5: See if t obs falls in the critical region t crit = 1.943 t obs = 4.58

121 Step 6: Decision If t obs falls in the critical region: –Reject H 0, and accept H 1 If t obs does not fall in the critical region: –Fail to reject H 0

122 Step 7: Put answer into words We Reject H 0, and accept H 1 Psychology majors have significantly (  =.05) higher IQs than sociology majors.

123 Practice

124 SPSS Problem #2 7.37 7.11


Download ppt "Example You give 100 random students a questionnaire designed to measure attitudes toward living in dormitories Scores range from 1 to 7 –(1 = unfavorable;"

Similar presentations


Ads by Google