What if. . . You were asked to determine if psychology and sociology majors have significantly different class attendance (i.e., the number of days a person.

Slides:



Advertisements
Similar presentations
Two Factor ANOVA.
Advertisements

ANOVA Analysis of Variance: Why do these Sample Means differ as much as they do (Variance)? Standard Error of the Mean (“variance” of means) depends upon.
Intro to Statistics for the Behavioral Sciences PSYC 1900
Intro to Statistics for the Behavioral Sciences PSYC 1900
Lecture 9: One Way ANOVA Between Subjects
Business 205. Review Survey Designs Survey Ethics.
Intro to Statistics for the Behavioral Sciences PSYC 1900
Factorial Designs More than one Independent Variable: Each IV is referred to as a Factor All Levels of Each IV represented in the Other IV.
Intro to Statistics for the Behavioral Sciences PSYC 1900 Lecture 14: Factorial ANOVA.
Lecture 13: Factorial ANOVA 1 Laura McAvinue School of Psychology Trinity College Dublin.
PRED 354 TEACH. PROBILITY & STATIS. FOR PRIMARY MATH Lesson 13 Two-factor Analysis of Variance (Independent Measures)
Psy B07 Chapter 1Slide 1 ANALYSIS OF VARIANCE. Psy B07 Chapter 1Slide 2 t-test refresher  In chapter 7 we talked about analyses that could be conducted.
ANOVA Chapter 12.
Psychology 301 Chapters & Differences Between Two Means Introduction to Analysis of Variance Multiple Comparisons.
Jeopardy Opening Robert Lee | UOIT Game Board $ 200 $ 200 $ 200 $ 200 $ 200 $ 400 $ 400 $ 400 $ 400 $ 400 $ 10 0 $ 10 0 $ 10 0 $ 10 0 $ 10 0 $ 300 $
Chapter 10: Analyzing Experimental Data Inferential statistics are used to determine whether the independent variable had an effect on the dependent variance.
Remember You were asked to determine the effects of both college major (psychology, sociology, and biology) and gender (male and female) on class attendance.
Intermediate Applied Statistics STAT 460 Lecture 17, 11/10/2004 Instructor: Aleksandra (Seša) Slavković TA: Wang Yu
Remember 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.
Factorial BG ANOVA Psy 420 Ainsworth. Topics in Factorial Designs Factorial? Crossing and Nesting Assumptions Analysis Traditional and Regression Approaches.
Two-way ANOVA The Two-Way ANOVA Model and Inference for Two-Way ANOVA PBS Chapters 15.1 and 15.2 © 2009 W.H. Freeman and Company.
Six Easy Steps for an ANOVA 1) State the hypothesis 2) Find the F-critical value 3) Calculate the F-value 4) Decision 5) Create the summary table 6) Put.
Practice These are sample data from Diener et. al (1999). Participants were asked their marital status and how often they engaged in religious behavior.
Chapter 11 Analysis of Variance
One-Way Between-Subjects Design and Analysis of Variance
Review t-tests Single-sample t-test (df = N – 1)
SPSS Homework SPSS Homework 12.1 Practice Data from exercise ) Use linear contrasts to compare 5 days vs 20 and 35 days 2) Imagine you.
SEMINAR ON ONE WAY ANOVA
Why is this important? Requirement Understand research articles
Factorial Experiments
Practice Participants were asked about their current romantic relationship (dating, married, or cohabitating) and the number of children they have (none,
An Introduction to Two-Way ANOVA
Factorial ANOVA 11/10.
ANOVA 11/3.
Analysis of Variance.
Repeated Measures ANOVA
Factorial Design Part II
Chapter 10: Analysis of Variance: Comparing More Than Two Means
Statistics for the Social Sciences
Chapter 11 – Analysis of Variance
ANalysis Of VAriance (ANOVA)
Two Way ANOVAs Factorial Designs.
PSY 307 – Statistics for the Behavioral Sciences
More Complicated Experimental Designs
Chapter 14 Repeated Measures
What if. . . You were asked to determine if psychology and sociology majors have significantly different class attendance (i.e., the number of days a person.
ANOVA II (Part 2) Class 18.
Two-Factor Studies with Equal Replication
Chapter 11 Analysis of Variance
Introduction to ANOVA.
More Complicated Experimental Designs
Two-Factor Studies with Equal Replication
Review Compare one sample to another value One sample t-test
Main Effects and Interaction Effects
Statistics for the Social Sciences
More Complicated Experimental Designs
What if. . . You were asked to determine if psychology and sociology majors have significantly different class attendance (i.e., the number of days.
Analysis of Variance ANOVA.
Practice Does drinking milkshakes affect (alpha = .05) your weight?
Chapter 14: Two-Factor Analysis of Variance (Independent Measures)
Remember 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.
One-Way ANOVA ANOVA = Analysis of Variance
Chapter 12 A Priori and Post Hoc Comparisons Multiple t-tests Linear Contrasts Orthogonal Contrasts Trend Analysis Bonferroni t Fisher Least Significance.
Six Easy Steps for an ANOVA
Practice As part of a program to reducing smoking, a national organization ran an advertising campaign to convince people to quit or reduce their smoking.
Marketing Research and Consumer Behavior Insights
What if. . . You were asked to determine if psychology and sociology majors have significantly different class attendance (i.e., the number of days a person.
Practice Did the type of signal effect response time?
ANalysis Of VAriance Lecture 1 Sections: 12.1 – 12.2
One way Analysis of Variance (ANOVA)
Presentation transcript:

What if. . . You were asked to determine if psychology and sociology majors have significantly different class attendance (i.e., the number of days a person misses class) You would simply do a two-sample t-test two-tailed Easy!

But, what if. . . You were asked to determine if psychology, sociology, and biology majors have significantly different class attendance You would do a one-way ANOVA

But, what if. . . You were asked to determine the effects of both college major (psychology, sociology, and biology) and gender (male and female) on class attendance You now have 2 IVs and 1 DV You could do two separate analyses Problem: “Throw away” information that could explain some of the “error” Problem: Will not be able to determine if there is an interaction

Factorial Analysis of Variance Factor = IV Factorial design is when every level of every factor is paired with every level of every other factor Psychology Sociology Biology Male X Female

Factorial Analysis of Variance Currently Different people in each cell Equal n in each cell Psychology Sociology Biology Male X Female

Factorial Analysis of Variance 2 X 3 Factorial “2” is because one IV has 2 levels (male and female) “3” because one IV has 3 levels (psychology, biology, sociology) Psychology Sociology Biology Male X Female

Factorial Analysis of Variance 2 X 3 4 X 5 2 X 2 X 7

Notation One factor is A and the other is B Psychology Sociology Biology Male Female

Notation One factor is A and the other is B B B1 B2 B3 A1 A2 A

Notation One factor is A and the other is B Any combination of A and B is called a cell B B1 B2 B3 A1 A2 A

Notation One factor is A and the other is B Any combination of A and B is called a cell The number of subjects in each cell = n B B1 B2 B3 A1 A2 A

Sociology Psychology Biology Female 2.00 1.00 3.00 .00 Males 4.00 n = 3 N = 18

Sociology Psychology Biology Female 2.00 1.00 3.00 .00 Males 4.00 n = 3 N = 18

Sociology Psychology Biology Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 Males 4.00 Mean2j 3.67 0.33

Sociology Psychology Biology Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 Main effect of gender

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 Main effect of major

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 Interaction between gender and major

Sum of Squares SS Total Computed the same way as before The total deviation in the observed scores Computed the same way as before

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 SStotal = (2-2.06)2+ (3-2.06)2+ . . . . (1-2.06)2 = 30.94 *What makes this value get larger?

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 SStotal = (2-2.06)2+ (3-2.06)2+ . . . . (1-2.06)2 = 30.94 *What makes this value get larger? *The variability of the scores!

Sum of Squares SS A Represents the SS deviations of the treatment means around the grand mean Its multiplied by nb to give an estimate of the population variance (Central limit theorem) Same formula as SSbetween in the one-way

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 SSA = (3*3) ((1.78-2.06)2+ (2.33-2.06)2)=1.36 *Note: it is multiplied by nb because that is the number of scores each mean is based on

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 SSA = (3*3) ((1.78-2.06)2+ (2.33-2.06)2)=1.36 *What makes these means differ? *Error and the effect of A

Sum of Squares SS B Represents the SS deviations of the treatment means around the grand mean Its multiplied by na to give an estimate of the population variance (Central limit theorem) Same formula as SSbetween in the one-way

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 SSB = (3*2) ((3.17-2.06)2+ (2.00-2.06)2+ (1.00-2.06)2)= 14.16 *Note: it is multiplied by na because that is the number of scores each mean is based on

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 SSB = (3*2) ((3.17-2.06)2+ (2.00-2.06)2+ (1.00-2.06)2)= 14.16 *What makes these means differ? *Error and the effect of B

Sum of Squares SS Cells Represents the SS deviations of the cell means around the grand mean Its multiplied by n to give an estimate of the population variance (Central limit theorem)

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 SSCells = (3) ((2.67-2.06)2+ (1.00-2.06)2+. . . + (0.33-2.06)2)= 24.35

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 SSCells = (3) ((2.67-2.06)2+ (1.00-2.06)2+. . . + (0.33-2.06)2)= 24.35 What makes the cell means differ?

Sum of Squares SS Cells What makes the cell means differ? 1) error 2) the effect of A (gender) 3) the effect of B (major) 4) an interaction between A and B

Sum of Squares Have a measure of how much cells differ SScells Have a measure of how much this difference is due to A SSA Have a measure of how much this difference is due to B SSB What is left in SScells must be due to error and the interaction between A and B

Sum of Squares SSAB = SScells - SSA – SSB 8.83 = 24.35 - 14.16 - 1.36

Sum of Squares SSWithin SSWithin = SSTotal – (SSA + SSB + SSAB) The total deviation in the scores not caused by 1) the main effect of A 2) the main effect of B 3) the interaction of A and B SSWithin = SSTotal – (SSA + SSB + SSAB) 6.59 = 30.94 – (14.16 +1.36 + 8.83)

Sum of Squares SSWithin

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 SSWithin = ((2-2.67)2+(3-2.67)2+(3-2.67)2) + . .. + ((1-.33)2 + (0-.33)2 + (0-2..33)2 = 6.667

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 SSWithin = ((2-2.67)2+(3-2.67)2+(3-2.67)2) + . .. + ((1-.33)2 + (0-.33)2 + (0-2..33)2 = 6.667 *What makes these values differ from the cell means? *Error

Compute df Source df SS A 1.36 B 14.16 AB 8.83 Within 6.59 Total 30.94

Source df SS A 1.36 B 14.16 AB 8.83 Within 6.59 Total 17 30.94 dftotal = N - 1

Source df SS A 1 1.36 B 2 14.16 AB 8.83 Within 6.59 Total 17 30.94 dftotal = N – 1 dfA = a – 1 dfB = b - 1

Source df SS A 1 1.36 B 2 14.16 AB 8.83 Within 6.59 Total 17 30.94 dftotal = N – 1 dfA = a – 1 dfB = b – 1 dfAB = dfa * dfb

Source df SS A 1 1.36 B 2 14.16 AB 8.83 Within 12 6.59 Total 17 30.94 dftotal = N – 1 dfA = a – 1 dfB = b – 1 dfAB = dfa * dfb dfwithin= ab(n – 1)

Compute MS Source df SS A 1 1.36 B 2 14.16 AB 8.83 Within 12 6.59 Total 17 30.94

Compute MS Source df SS MS A 1 1.36 B 2 14.16 7.08 AB 8.83 4.42 Within 12 6.59 .55 Total 17 30.94

Compute F Source df SS MS A 1 1.36 B 2 14.16 7.08 AB 8.83 4.42 Within 12 6.59 .55 Total 17 30.94

Test each F value for significance Source df SS MS F A 1 1.36 2.47 B 2 14.16 7.08 12.87 AB 8.83 4.42 8.03 Within 12 6.59 .55 Total 17 30.94 F critical values (may be different for each F test) Use df for that factor and the df within.

Test each F value for significance Source df SS MS F A 1 1.36 2.47 B 2 14.16 7.08 12.87 AB 8.83 4.42 8.03 Within 12 6.59 .55 Total 17 30.94 F critical A (1, 12) = 4.75 F critical B (2, 12) = 3.89 F critical AB (2, 12) = 3.89

Test each F value for significance Source df SS MS F A 1 1.36 2.47 B 2 14.16 7.08 12.87* AB 8.83 4.42 8.03* Within 12 6.59 .55 Total 17 30.94 F critical A (1, 12) = 4.75 F critical B (2, 12) = 3.89 F critical AB (2, 12) = 3.89

Interpreting the Results Source df SS MS F A 1 1.36 2.47 B 2 14.16 7.08 12.87* AB 8.83 4.42 8.03* Within 12 6.59 .55 Total 17 30.94 F critical A (1, 12) = 4.75 F critical B (2, 12) = 3.89 F critical AB (2, 12) = 3.89

Interpreting the Results Source df SS MS F A 1 1.36 2.47 B 2 14.16 7.08 12.87* AB 8.83 4.42 8.03* Within 12 6.59 .55 Total 17 30.94 F critical A (1, 12) = 4.75 F critical B (2, 12) = 3.89 F critical AB (2, 12) = 3.89

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06

Interpreting the Results Source df SS MS F A 1 1.36 2.47 B 2 14.16 7.08 12.87* AB 8.83 4.42 8.03* Within 12 6.59 .55 Total 17 30.94 F critical A (1, 12) = 4.75 F critical B (2, 12) = 3.89 F critical AB (2, 12) = 3.89

Sociology Psychology Biology Mean Female 2.00 1.00 3.00 .00 Mean1j 2.67 1.67 1.78 Males 4.00 Mean2j Mean.j 3.67 3.17 0.33 2.33 2.06 Want to plot out the cell means

Sociology Psychology Biology

Practice These are sample data from Diener et. al (1999). Participants were asked their marital status and how often they engaged in religious behavior. They also indicated how happy they were on a scale of 1 to 10. Examine the data

Frequency of religious behavior Never Occasionally Often Married 6 3 7 2 8 4 5 9 Unmarried 1

Interpreting the Results Source df SS MS F Married 18.00 Relig 31.00 AB 3.00 Within Total 88.00

Interpreting the Results Source df SS MS F Married 1 18.00 6.00* Relig 2 31.00 15.50 5.17* AB 3.00 1.50 .50 Within 12 36.00 Total 17 88.00 F critical A (1, 12) = 4.75 F critical B (2, 12) = 3.89 F critical AB (2, 12) = 3.89