one-way anova anova = analysis of variance this is a technique used to analyze the results of an...

64

Upload: lambert-barber

Post on 04-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups
Page 2: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

One-Way ANOVA

• ANOVA = Analysis of Variance

• This is a technique used to analyze the results of an experiment when you have more than two groups

Page 3: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Example• You measure the number of days 7

psychology majors, 7 sociology majors, and 7 biology majors are absent from class

• You wonder if the average number of days each of these three groups was absent is significantly different from one another

Page 4: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Results

Sociology Psychology Biology4 1 13 2 12 0 23 2 03 4 24 3 02 2 1

X = 3.00 X = 2.00 X = 1.00

Page 5: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Hypothesis

• Alternative hypothesis (H1)

• H1: The three population means are not all equal

Page 6: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Hypothesis

• Null hypothesis (H0)

psych = socio = bio

Page 7: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Between and Within Group Variability

• Two types of variability

• Between– the differences between the mean scores of the

three groups– The more different these means are, the more

variability!

Page 8: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Results

Sociology Psychology Biology4 1 13 2 12 0 23 2 03 4 24 3 02 2 1

X = 3.00 X = 2.00 X = 1.00

Page 9: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Between Variability

Sociology Psychology Biology4 1 13 2 12 0 23 2 03 4 24 3 02 2 1

X = 3.00 X = 2.00 X = 1.00

S2 = .66

Page 10: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Between Group Variability

• What causes this variability to increase?

• 1) Effect of the variable (college major)

• 2) Sampling error

Page 11: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Between and Within Group Variability

• Two types of variability

• Within– the variability of the scores within each group

Page 12: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Results

Sociology Psychology Biology4 1 13 2 12 0 23 2 03 4 24 3 02 2 1

X = 3.00 X = 2.00 X = 1.00

Page 13: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Within Variability

Sociology Psychology Biology4 1 13 2 12 0 23 2 03 4 24 3 02 2 1

X = 3.00 X = 2.00 X = 1.00

S2 =.57 S2 =1.43 S2 =.57

Page 14: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Within Group Variability

• What causes this variability to increase?

• 1) Sampling error

Page 15: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Between and Within Group Variability

Between-group variability

Within-group variability

Page 16: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Between and Within Group Variability

sampling error + effect of variable

sampling error

Page 17: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Between and Within Group Variability

sampling error + effect of variable

sampling error

Thus, if null hypothesis was true this would result in a value of 1.00

Page 18: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Between and Within Group Variability

sampling error + effect of variable

sampling error

Thus, if null hypothesis was not true this value would be greater than 1.00

Page 19: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups
Page 20: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculating this Variance Ratio

Page 21: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculating this Variance Ratio

Page 22: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculating this Variance Ratio

Page 23: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Degrees of Freedom

• dfbetween

• dfwithin

• dftotal

• dftotal = dfbetween + dfwithin

Page 24: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Degrees of Freedom

• dfbetween = k - 1 (k = number of groups)

• dfwithin = N - k (N = total number of observations)

• dftotal = N - 1

• dftotal = dfbetween + dfwithin

Page 25: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Degrees of Freedom

• dfbetween = k - 1 3 - 1 = 2

• dfwithin = N - k 21 - 3 = 18

• dftotal = N - 1 21 - 1 = 20

• 20 = 2 + 18

Page 26: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Sum of Squares

• SSBetween

• SSWithin

• SStotal

• SStotal = SSBetween + SSWithin

Page 27: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Sum of Squares

• SStotal

Page 28: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Sum of Squares

• SSWithin

Page 29: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Sum of Squares

• SSBetween

Page 30: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Sum of Squares

• Ingredients:

XX2

Tj2

• N

• n

Page 31: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

To Calculate the SSSocio Psych Bio

4 1 1

3 2 1

2 0 2

3 2 0

3 4 2

4 3 0

2 2 1

Page 32: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

XSocio Psych Bio

4 1 1

3 2 1

2 0 2

3 2 0

3 4 2

4 3 0

2 2 1

Xs = 21 Xp = 14 XB = 7

Page 33: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

XSocio Psych Bio

4 1 1

3 2 1

2 0 2

3 2 0

3 4 2

4 3 0

2 2 1

Xs = 21 Xp = 14 XB = 7

X = 42

Page 34: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

X2

Socio X2 Psych X2 Bio X2

4 16 1 1 1 1

3 9 2 4 1 1

2 4 0 0 2 4

3 9 2 4 0 0

3 9 4 16 2 4

4 16 3 9 0 0

2 4 2 4 1 1

X2s = 67 X2

P = 38 X2B = 11

Xs = 21 Xp = 14 XB = 7

X = 42

Page 35: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

X2

Socio X2 Psych X2 Bio X2

4 16 1 1 1 1

3 9 2 4 1 1

2 4 0 0 2 4

3 9 2 4 0 0

3 9 4 16 2 4

4 16 3 9 0 0

2 4 2 4 1 1

X2s = 67 X2

P = 38 X2B = 11

Xs = 21 Xp = 14 XB = 7

X = 42

X2 = 116

Page 36: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

T2 = (X)2 for each groupSocio X2 Psych X2 Bio X2

4 16 1 1 1 1

3 9 2 4 1 1

2 4 0 0 2 4

3 9 2 4 0 0

3 9 4 16 2 4

4 16 3 9 0 0

2 4 2 4 1 1

X2s = 67 X2

P = 38 X2B = 11

Xs = 21 Xp = 14 XB = 7

T2s = 441 T2

P = 196 T2B = 49

X = 42

X2 = 116

Page 37: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Tj2

Socio X2 Psych X2 Bio X2

4 16 1 1 1 1

3 9 2 4 1 1

2 4 0 0 2 4

3 9 2 4 0 0

3 9 4 16 2 4

4 16 3 9 0 0

2 4 2 4 1 1

X2s = 67 X2

P = 38 X2B = 11

Xs = 21 Xp = 14 XB = 7

T2s = 441 T2

P = 196 T2B = 49

X = 42

X2 = 116

Tj2

= 686

Page 38: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

NSocio X2 Psych X2 Bio X2

4 16 1 1 1 1

3 9 2 4 1 1

2 4 0 0 2 4

3 9 2 4 0 0

3 9 4 16 2 4

4 16 3 9 0 0

2 4 2 4 1 1

X2s = 67 X2

P = 38 X2B = 11

Xs = 21 Xp = 14 XB = 7

T2s = 441 T2

P = 196 T2B = 49

X = 42

X2 = 116

Tj2

= 686

N = 21

Page 39: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

nSocio X2 Psych X2 Bio X2

4 16 1 1 1 1

3 9 2 4 1 1

2 4 0 0 2 4

3 9 2 4 0 0

3 9 4 16 2 4

4 16 3 9 0 0

2 4 2 4 1 1

X2s = 67 X2

P = 38 X2B = 11

Xs = 21 Xp = 14 XB = 7

T2s = 441 T2

P = 196 T2B = 49

X = 42

X2 = 116

Tj2

= 686

N = 21

n = 7

Page 40: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

IngredientsX = 42

X2 = 116

Tj2

= 686

N = 21

n = 7

Page 41: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculate SSX = 42

X2 = 116

Tj2

= 686

N = 21

n = 7• SStotal

Page 42: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculate SSX = 42

X2 = 116

Tj2

= 686

N = 21

n = 7• SStotal

11642

2132

Page 43: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculate SS

• SSWithin

X = 42

X2 = 116

Tj2

= 686

N = 21

n = 7

Page 44: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculate SS

• SSWithin

X = 42

X2 = 116

Tj2

= 686

N = 21

n = 7

116686

718

Page 45: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculate SS

• SSBetween

X = 42

X2 = 116

Tj2

= 686

N = 21

n = 7

Page 46: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculate SS

• SSBetween

X = 42

X2 = 116

Tj2

= 686

N = 21

n = 7

686

7

42

21

14

Page 47: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Sum of Squares

• SSBetween

• SSWithin

• SStotal

• SStotal = SSBetween + SSWithin

Page 48: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Sum of Squares

• SSBetween = 14

• SSWithin = 18

• SStotal = 32

• 32 = 14 + 18

Page 49: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculating the F value

Page 50: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculating the F value

Page 51: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculating the F value

14

27

Page 52: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculating the F value

7

Page 53: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculating the F value

7

18

181

Page 54: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Calculating the F value

7

17

Page 55: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

How to write it out

Source SS df MS F

Between 14 2 7 7

Within 18 18 1

Total 32 20

Page 56: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Significance

• Is an F value of 7.0 significant at the .05 level?

• To find out you need to know both df

Page 57: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Degrees of Freedom

• Dfbetween = k - 1 (k = number of groups)

• dfwithin = N - k (N = total number of observations)

Page 58: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Degrees of Freedom

• Dfbetween = k - 1 3 - 1 = 2

• dfwithin = N - k 21 - 3 = 18

• Page 390 Table F

• Dfbetween are in the numerator

• Dfwithin are in the denominator

• Write this in the table

Page 59: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Critical F Value

• F(2,18) = 3.55

• The nice thing about the F distribution is that everything is a one-tailed test

Page 60: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Decision

• Thus, if F value > than F critical– Reject H0, and accept H1

• If F value < or = to F critical– Fail to reject H0

Page 61: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

Current Example

• F value = 7.00

• F critical = 3.55

• Thus, reject H0, and accept H1

Page 62: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

• Alternative hypothesis (H1)

H1: The three population means are not all equal– In other words, psychology, sociology, and

biology majors do not have equal class attendence

– Notice: It does not say where this difference is at!!

Page 63: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups

How to write it out

Source SS df MS F

Between 14 2 7 7*

Within 18 18 1

Total 32 20

Page 64: One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups