friedman nonparametric test

27
Kirthiga Sekar (08AA19) Nivetha Grace (08AA28) Rasika K.R (08AA32) Swappna Dhevi.S (08AA41) Umamaheswaran .M (08AA43) FRIEDMAN TEST

Upload: kirthika-sekar

Post on 12-Nov-2014

6.775 views

Category:

Documents


60 download

DESCRIPTION

the presentation slides gives you an outline of the statistical non parametric test - Friedman test. it also contains an example worked out in SPSS

TRANSCRIPT

Page 1: Friedman nonparametric test

CHCH

APTER 1APTER 1

Kirthiga Sekar (08AA19)Nivetha Grace (08AA28)Rasika K.R (08AA32)Swappna Dhevi.S (08AA41)Umamaheswaran .M (08AA43)

FRIEDMAN TEST

Page 2: Friedman nonparametric test

Analysis of dataAnalysis of data

Inferential statistics Descriptive statistics

Parametric Non Parametric

Phenomena of interestDraw

inference

Page 3: Friedman nonparametric test

NON PARAMETRIC ROADMAPNON PARAMETRIC ROADMAP

Page 4: Friedman nonparametric test

Definition

►It is a non-parametric test (distribution-free) used to compare observations repeated on the same subjects.

►This is also called a non-parametric randomized block analysis of variance.

Page 5: Friedman nonparametric test

Friedman's Test

►Developed by US economist Milton Developed by US economist Milton FriedmanFriedman

►Similar to parametric repeated Similar to parametric repeated measures, ANOVAmeasures, ANOVA

►Used to detect differences in Used to detect differences in treatments across multiple test treatments across multiple test attemptsattempts

Page 6: Friedman nonparametric test

Friedman's Test►Popular K-related sample test►Similar to the Wilcoxon test, except

that you can use it with three or more conditions.

►Each subject does all of the experimental conditions

►With more than two related samples on ordinal data

Page 7: Friedman nonparametric test

WHEN TO PERFORMWHEN TO PERFORM

►Subjects within a row must be Subjects within a row must be independentindependent

►A dependent variable that is not A dependent variable that is not interval and normally distributed (but interval and normally distributed (but at least ordinal)at least ordinal)

Page 8: Friedman nonparametric test

ASSUMPTIONASSUMPTION

► Unlike the parametric repeated measures ANOVA or Unlike the parametric repeated measures ANOVA or paired t-test, this non-parametric makes no paired t-test, this non-parametric makes no assumptions about the distribution of the data (e.g., assumptions about the distribution of the data (e.g., normality).normality).

► All observations are mutually independentAll observations are mutually independent

► The rows are mutually independent. That is, the The rows are mutually independent. That is, the results in one block (row) do not affect the results results in one block (row) do not affect the results within other blocks.within other blocks.

► The data can be meaningfully ranked.The data can be meaningfully ranked.

Page 9: Friedman nonparametric test

How the Friedman test works

►The test compares three or more paired groups.

► The test first ranks the values in each matched set (each row) from low to high.

► Each row is ranked separately. ►It then sums the ranks in each group

(column). If the sums are very different, the P value

will be small.

Page 10: Friedman nonparametric test

HypothesisHypothesis

►Ho = All the related variables have the Ho = All the related variables have the same meansame mean

►HA = All the related variable do not HA = All the related variable do not have the same meanhave the same mean

Page 11: Friedman nonparametric test

CONDITIONS FOR CONDITIONS FOR STATISTICAL PACKAGESSTATISTICAL PACKAGES

►The data need to be in a long formatThe data need to be in a long format►SPSS handles this needSPSS handles this need►Other statistical packages require the Other statistical packages require the

data to be reshaped before one can data to be reshaped before one can conduct this testconduct this test

Page 12: Friedman nonparametric test

Example - 1Example - 1

►Reaction times for eight subjects were Reaction times for eight subjects were measured under placebo condition, a measured under placebo condition, a drug X and a drug Y condition. It was drug X and a drug Y condition. It was hypothesized that reaction times hypothesized that reaction times would differ significantly across drug would differ significantly across drug conditions.conditions.

Page 13: Friedman nonparametric test
Page 14: Friedman nonparametric test

To conduct a Friedman testTo conduct a Friedman test

1.1. Select the Select the Analyse Analyse menumenu2.2. Click on Click on Nonparametric testsNonparametric tests and and

then on then on K Related SamplesK Related Samples to open to open the the Tests for Several Related Tests for Several Related SamplesSamples box box

3.3. Select the variables you require and Select the variables you require and then move the variables into the then move the variables into the Test Test Variable ListVariable List: box: box

4.4. Ensure the Ensure the FriedmanFriedman check box has check box has been selected.been selected.

Page 15: Friedman nonparametric test
Page 16: Friedman nonparametric test
Page 17: Friedman nonparametric test

5. Click on 5. Click on OKOK

Page 18: Friedman nonparametric test

► XX2 2 = 12.25 , p = = 12.25 , p = 0.002 0.002

► Significant Significant differences do exist differences do exist in reaction time in reaction time across drug across drug conditions.conditions.

► Drug Y appears to Drug Y appears to slow reaction slow reaction considerably.considerably.

Page 19: Friedman nonparametric test

EXAMPLE- 2EXAMPLE- 2

►To determine if there is a difference in To determine if there is a difference in the reading, writing and math scoresthe reading, writing and math scores

►Null hypothesis: The distribution of the Null hypothesis: The distribution of the ranks of each type of score (i.e., ranks of each type of score (i.e., reading, writing and math) are the reading, writing and math) are the samesame

Page 20: Friedman nonparametric test
Page 21: Friedman nonparametric test
Page 22: Friedman nonparametric test

INTERPRETATIONINTERPRETATION

►Friedman's chi-square value - 0.645 Friedman's chi-square value - 0.645 ►p-value - 0.724 p-value - 0.724 ►Not statistically significantNot statistically significant►Hence, there is no evidence that the Hence, there is no evidence that the

distributions of the three types of distributions of the three types of scores are different.scores are different.

Page 23: Friedman nonparametric test

APPLICATIONS►Rank data separately for each block

(matching level)►Find sum of ranks for each of the

comparison groups►Use statistic – to know order of

importance

Page 24: Friedman nonparametric test

ADVANTAGES

►Since the Friedman test ranks the values in each row, it is not affected by sources of variability that equally affect all values in a row (since that factor won't change the ranks within the row).

►The test controls experimental variability between subjects, thus increasing the power of the test.

Page 25: Friedman nonparametric test

DISADVANTAGES

►Since this test does not make a Since this test does not make a distribution assumption, it is not as distribution assumption, it is not as powerful as the ANOVA.powerful as the ANOVA.

Page 26: Friedman nonparametric test

Try it outTry it out

Effects on worker mood of different types of music:

► Five workers. Each is tested three times, once under each of the following conditions: condition 1: silence. condition 2: "easy-listening” music. condition 3: marching-band music.

► DV: mood rating ("0" = unhappy, "100" = euphoric).

► Ratings - so use a nonparametric test.

Page 27: Friedman nonparametric test