Multiple Comparisons October 18, 2019 October 18, 2019 1 / 17 - - PowerPoint PPT Presentation

multiple comparisons
SMART_READER_LITE
LIVE PREVIEW

Multiple Comparisons October 18, 2019 October 18, 2019 1 / 17 - - PowerPoint PPT Presentation

Multiple Comparisons October 18, 2019 October 18, 2019 1 / 17 After the ANOVA For an ANOVA, H 0 : 1 = 2 = = k H A : i = j for at least one pair ( i, j ) If we reject H 0 , we know that at least one mean differs...


slide-1
SLIDE 1

Multiple Comparisons

October 18, 2019

October 18, 2019 1 / 17

slide-2
SLIDE 2

After the ANOVA

For an ANOVA, H0 : µ1 = µ2 = · · · = µk HA : µi = µj for at least one pair (i, j) If we reject H0, we know that at least one mean differs... but we don’t know where those differences lie.

Section 7.5 October 18, 2019 2 / 17

slide-3
SLIDE 3

Multiple Comparisons

Consider an ANOVA with three groups. If we reject H0, there are three comparisons to make: group 1 and group 2 group 1 and group 3 group 2 and group 3

Section 7.5 October 18, 2019 3 / 17

slide-4
SLIDE 4

Multiple Comparisons

Most of this builds on techniques you already know! We compare groups using a two-sample t-test. But we need to modify the significance level. We also use a pooled standard deviation estimate.

Section 7.5 October 18, 2019 4 / 17

slide-5
SLIDE 5

Example

A university offers 3 lectures for an introductory psychology course. A single professor offers 8am, 10am, and 3pm lectures. We want to know if the average midterm scores differ between these lectures. We already wrote down hypotheses for this ANOVA.

Section 7.5 October 18, 2019 5 / 17

slide-6
SLIDE 6

Example

Are the ANOVA conditions satisfied?

Class i A B C ni 58 55 51 ¯ xi 75.1 72.0 78.9 si 13.8 13.9 13.1

Section 7.5 October 18, 2019 6 / 17

slide-7
SLIDE 7

Example

Here is part of the ANOVA for this data (R output): Df Sum Sq Mean Sq F value Pr(>F) lecture 645.06 0.0330 Residuals 185.16 Let’s fill in the rest. What can we conclude?

Section 7.5 October 18, 2019 7 / 17

slide-8
SLIDE 8

Example

So at least one pair of means differ... but which? We need to correct for Type I error before running our t-tests.

Section 7.5 October 18, 2019 8 / 17

slide-9
SLIDE 9

Pooled Standard Error

Pooled standard error may be calculated as follows: spooled =

  • (n1 − 1)s2

1 + (n2 − 1)s2 2 + · · · + (nk − 1)s2 k

n − k where n = n1 + n2 + · · · + nk is the total number of observations.

Section 7.5 October 18, 2019 9 / 17

slide-10
SLIDE 10

Pooled Standard Error

If each group’s sample size is equal, spooled =

  • s2

1 + s2 2 + · · · + s2 k

k The degrees of freedom for these t-tests will be n − k.

Section 7.5 October 18, 2019 10 / 17

slide-11
SLIDE 11

Example

Class i A B C ni 58 55 51 ¯ xi 75.1 72.0 78.9 si 13.8 13.9 13.1 Let’s calculate the pooled standard error for our exams.

Section 7.5 October 18, 2019 11 / 17

slide-12
SLIDE 12

Example

R also provides the pooled standard deviation estimate with the ANOVA output. Df Sum Sq Mean Sq F value Pr(>F) lecture 2 1290.11 645.06 3.48 0.0330 Residuals 161 29810.12 185.16 spooled = 13.61 on d f = 161

Section 7.5 October 18, 2019 12 / 17

slide-13
SLIDE 13

Significance Level Adjustments

The final adjustment is to modify the significance level. When we do many pairwise comparisons, we increase our chances

  • f Type I error.

This correction will adjust our probability of Type I error. Adjusted significance levels will help ensure that the Type I error is no greater than α.

Section 7.5 October 18, 2019 13 / 17

slide-14
SLIDE 14

The Bonferroni Correction

Testing many pairs of groups is called multiple comparisons. The Bonferroni correction sets a new significance level α∗: α∗ = α/K where K is the number of comparisons.

Section 7.5 October 18, 2019 14 / 17

slide-15
SLIDE 15

Example

Complete the pairwise comparisons for the three lectures.

Section 7.5 October 18, 2019 15 / 17

slide-16
SLIDE 16

Post ANOVA: Other Situations

If we fail to reject H0 in an ANOVA No pairwise comparisons are necessary. (None will be significant.) If we reject H0 in an ANOVA Sometimes our pairwise comparisons won’t show any significance. This does not invalidate the ANOVA results!

Section 7.5 October 18, 2019 16 / 17

slide-17
SLIDE 17

Multiple Comparisons

The Bonferroni correction is one method of many! Others include Tukey’s Honest Significant Difference Scheffe’s Method and others. We will not learn these in detail.

Section 7.5 October 18, 2019 17 / 17