Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures...

45
Chapter 8 Analysis of Variance: Part 2 Oneway Repeated Measures ANOVA

Transcript of Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures...

Page 1: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Analysis of Variance: Part 2

Oneway Repeated Measures ANOVA

Page 2: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Threats to Internal ValidityHistoryMaturationTesting InstrumentationStatistical RegressionExperimental MortalitySelection-maturation interaction

Page 3: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Instrumentation In which changes in the calibration of a

measuring instrument or changes in the observers or scorers used may produce changes in the obtained measurements.

Page 4: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Statistical RegressionOperating where groups have been selected

on the basis of their extreme scores.

Page 5: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Experimental Mortalityor differential loss of respondents from the

comparison groups.

Page 6: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Partitioning the Variance: Repeated Measures

Total Variance

Page 7: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Partitioning the Variance: Repeated Measures

Total Variance

BetweenSubjects

WithinSubjects

Page 8: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Partitioning the Variance: Repeated Measures

Total Variance

BetweenSubjects

WithinSubjects

Treatment

Error

Page 9: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Between Subjects VarianceThe variance in the data that can be

attributed to differences among the subjects.

Irrelevant to the Hypothesis.

Page 10: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Within Subjects VarianceVariance between subject’s own scores on

each repeated assessment.– Treatment effects– Error variance

Variances among treatment means for each condition.

Page 11: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

F-Ratio

Treatment VarianceError VarianceF=

Page 12: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

AssumptionsTreatments are not IndependentDependent Variable is measured on at least

an ordinal scaleDependent Variable is normally distributed

Page 13: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

When to use Repeated Measures ANOVA

Same Subjects are in each treatment.There are 2 means or more to compare. (Can use for 2 groups: t is easier)

Page 14: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to set up the ANOVA Summary Table

Source

Page 15: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to set up the ANOVA Summary Table

Source

Total

Page 16: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to set up the ANOVA Summary Table

Source

Total

BetweenWithinTreatmentError

Page 17: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to set up the ANOVA Summary Table

Source

Total

Between SSSWithin Treat. SSIVError SSE

Sums ofSquares

SST

Page 18: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to set up the ANOVA Summary Table

Source

Total

Between SSSWithin Treat. SSIVError SSE

Sums ofSquares

SST

df

dfS

dfIVdfE

dfT

Page 19: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to set up the ANOVA Summary Table

Source

Total

Between SSS dfS Within Treat SSIV dfIV MSIVError SSE dfE MSE

Sums ofSquares

SST

df

dfT

MeanSquares

Page 20: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to set up the ANOVA Summary Table

Source

Total

Between SSS dfS MSS Within Treat SSIV dfIV MSIVError SSE dfE MSE

Sums ofSquares

SST

df

dfT

MeanSquares F

F

Page 21: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Calculating the F StatisticCalculate Sums of SquaresCalculate dfCalculate Mean SquaresCalculate F

Page 22: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Sums of Squares Between

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST

( )X

kTN

p∑

∑ −

22

Page 23: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Sums of Squares Between

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST

Sum of scoresfor each subject

( )X

kTN

p∑

∑ −

22

Page 24: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Sums of Squares Between

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST

T=Total=Sum of all scores.

( )X

kTN

p∑

∑ −

22

Page 25: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Sums of Squares Between

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST

k=number treatments

( )X

kTN

p∑

∑ −

22

Page 26: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Sums of Squares Between

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST

N= Total number of scores

( )X

kTN

p∑

∑ −

22

Page 27: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Sums of Squares Total

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST X TN

22

∑∑ −

Page 28: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Sums of Squares Total

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST X TN

22

∑∑ −

Sum of all scoressquared first

Page 29: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Sums of Squares Within

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST

X

nTN

j∑

2

2

Total for treatment j

Page 30: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Sums of Squares Within

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST

X

nTN

j∑

2

2

Number of subjects

Page 31: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Sums of Squares Within

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST

SST-SSIV-SSE

Page 32: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Degrees of Freedom

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST

df

dfT

n-1

Page 33: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Degrees of Freedom

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST

df

dfT

n is the number of subjects

n-1

Page 34: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Degrees of Freedom

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST

df

dfT

k-1

n-1

Page 35: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Degrees of Freedom

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST

df

dfT

k-1

n-1

(n-1)(k-1)

Page 36: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Degrees of Freedom

Source

Total

Between SSS Within Treat. SSIVError SSE

Sums ofSquares

SST

df

k-1

n-1

(n-1)(k-1)

N-1

Page 37: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate the Mean Squares

Source

Total

Between SSS dfS Within Treat SSIV dfIV MSIVError SSE dfE MSE

Sums ofSquares

SST

df

dfT

MeanSquares

Page 38: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

How to Calculate F

Source

Total

Between SSS dfS MSS Within Treat SSIV dfIV MSIVError SSE dfE MSE

Sums ofSquares

SST

df

dfT

MeanSquares F

F=

Page 39: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Determining the Critical FAlpha = .05Find Column for df TreatmentFind Row for df ErrorCompare Critical F to Obtained F

Page 40: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Statistical Decision Making If Critical F > Obtained F

– failed to reject null hypothesis If Critical F < Obtained F

– reject the null hypothesis

Page 41: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Interpreting the ResultsGraph MeansUse a multiple Comparison test

– to determine which means are– significantly different

Page 42: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Multiple ComparisonsHonestly Significant Difference TestHSD

HSD q MSna

error=

Page 43: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Multiple ComparisonsHonestly Significant Difference TestHSD

HSD q MSna

error=

StudentizedRange Statistic(from Table)

Page 44: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Multiple ComparisonsHonestly Significant Difference TestHSD

HSD q MSna

error=

Mean Square Error(from ANOVA)

Page 45: Analysis of Variance: Part 2 - psych.westminster.edu · Chapter 8. When to use Repeated Measures ANOVA Same Subjects are in each treatment. There are 2 means or more to compare. (Can

Chapter 8

Multiple ComparisonsHonestly Significant Difference TestHSD

HSD q MSna

error=

Number ofSubjects