nonparametric statistics: anova

18
Nonparametric Statistics: ANOVA STAT E-150 Statistical Methods

Upload: knut

Post on 24-Feb-2016

68 views

Category:

Documents


0 download

DESCRIPTION

STAT E-150 Statistical Methods. Nonparametric Statistics: ANOVA. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Nonparametric Statistics:  ANOVA

Nonparametric Statistics: ANOVA

STAT E-150Statistical Methods

Page 2: Nonparametric Statistics:  ANOVA

2

The nonparametric analog to ANOVA is the Kruskal-Wallis Test, which tests the hypothesis that all samples were drawn from populations with the same shape. As with other nonparametric tests, there is no requirement that the residuals are normally distributed.

Page 3: Nonparametric Statistics:  ANOVA

3

Like the Mann-Whitney Test, the Kruskal-Wallis test ranks all of the observed values. If there are differences between the groups, then the values for each group will be clustered within the ranked data. If there are no differences between the groups, the values will be intermixed within the ranked data. The null hypothesis says that there are no differences among the groups, and so the data values will not be clustered within the ordered data.

Page 4: Nonparametric Statistics:  ANOVA

4

Start by ranking all scores without regard to their groups, and then find the ranks for each group. The sums are denoted by Ri. If the null hypothesis is true, we would expect all values of Ri to be about equal, assuming that the sample sizes are all equal. A measure of the degree to which the Ri differ from each other is

Where k = the number of groupsNi = the number of observations in the ith groupRi = the sum of the ranks in the ith groupN = the total sample size

12HN(N 1)

∑2

i

i

Rn

3(N 1)

Page 5: Nonparametric Statistics:  ANOVA

5

Suppose that we would like to investigate whether the number of simple arithmetic problems solved correctly in one hour is different for subjects given a depressant drug, a stimulant drug, or a placebo.

Here is the data:

Depressant   Stimulant   Placeboscore rank   score rank   score rank

55 9   73 15   61 11 0 1.5   85 18   54 8 1 3   51 7   80 16 0 1.5   36 12   47 550 6   85 18      60 10   85 18      44 4   66 13            69 14      

Ri 35     115     40

Page 6: Nonparametric Statistics:  ANOVA

6

Note that in the Depressant group, three of the subjects were able to do very little, whereas in the Stimulant group, three of the subjects answered all questions correctly.

Depressant   Stimulant   Placeboscore rank   score rank   score rank

55 9   73 15   61 11 0 1.5   85 18   54 8 1 3   51 7   80 16 0 1.5   36 12   47 550 6   85 18      60 10   85 18      44 4   66 13            69 14      

Ri 35     115     40

Page 7: Nonparametric Statistics:  ANOVA

7

The histograms, with Normal curves superimposed, indicate that the data is nonnormal:

Page 8: Nonparametric Statistics:  ANOVA

8

We will use SPSS to find the results:

The mean ranks of the three groups appear different, but we will use a statistical test to see if this is correct.

Page 9: Nonparametric Statistics:  ANOVA

9

We will use SPSS to find the results:

H0: μd = μs = μp

Ha: The means are not all equal

The Kruskal-Wallis statistic is 2 = 10.407 with p = .005 and 3 - 1 = 2 df.

Since p is small, the null hypothesis is rejected. The data indicates that there is a significant difference between the groups.  

Page 10: Nonparametric Statistics:  ANOVA

10

We will use SPSS to find the results:

 In context, the data indicates that the number of simple arithmetic problems solved correctly in one hour is different for subjects given a depressant drug, a stimulant drug, or a placebo.

Page 11: Nonparametric Statistics:  ANOVA

11

Using SPSS Note that the groups are in one column and the data is in another:

Page 12: Nonparametric Statistics:  ANOVA

12

To create the histograms: Click on > Graphs > Chart Builder and choose Histogram.

Drag the response variable to the horizontal axis and click on the Groups/Point ID tab.

Page 13: Nonparametric Statistics:  ANOVA

13

Choose Columns panel variable.

Page 14: Nonparametric Statistics:  ANOVA

14

Then drag the grouping variable to the Panel box.

Page 15: Nonparametric Statistics:  ANOVA

15

To add the Normal curves, click on Element Properties, then select Display Normal curve and Apply. Then click on OK.

Page 16: Nonparametric Statistics:  ANOVA

16

For the Kruskal-Wallis test: Click on > Analyze > Nonparametric Tests > Legacy Dialogs > K Independent SamplesChoose the Test Variables and the Grouping variable.Select Kruskal-Wallis H as the Test Type

Page 17: Nonparametric Statistics:  ANOVA

17

Click on Define Range… and enter the minimum and maximum values for the grouping variable.

Click on Continue and then on OK.

Page 18: Nonparametric Statistics:  ANOVA

18

Here are the results: