psych 100a - lecture 17-18

36
Essentials of Statistics for the Behavioral Sciences, 2 nd Edition Susan A. Nolan Thomas E. Heinzen Nonparametric Tests Chapter 15 Revised by Jeffrey B. Henriques, Ph.D. University of Wisconsin-Madison

Upload: snackattacks

Post on 17-Jan-2016

25 views

Category:

Documents


0 download

DESCRIPTION

Statistics is evil

TRANSCRIPT

Page 1: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Nonparametric Tests

Chapter 15

Revised by Jeffrey B. Henriques, Ph.D.

University of Wisconsin-Madison

Page 2: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Nonparametric Statistics

• A special class of hypothesis tests

• Used when assumptions for parametric

tests are not met

• Like?!

Page 3: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Page 4: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

When to Use Nonparametric Tests

• When the dependent variable is

nominal

• Examples?

• When the dependent variable is ordinal

• Examples?

Page 5: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

When to Use Nonparametric Tests

• When the sample size is small

• Why?

• When underlying population is not

normal

Page 6: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Limitations of Nonparametric Tests

• Cannot easily use confidence intervals

or effect sizes

• Have less statistical power than

parametric tests

• More likely to commit type II error

• Meaning?

Page 7: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Chi-Square Test for Goodness of Fit

• When we have one nominal variable

• The six steps of hypothesis testing1. Identify the populations, distribution, and

assumptions

2. State the null and research hypotheses

3. Determine the characteristics of the

comparison distribution

4. Determine the critical value, or cutoff

5. Calculate the test statistic

6. Make a decision

Page 8: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Formulae

c 2 =(O- E)2

E

é

ëê

ù

ûúå

1 rowrow kdf

1 columncolumn kdf

))((2 columnrowXdfdfdf

Page 9: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Page 10: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Step 4: Determine the Critical Value

Page 11: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Step 5: Calculate the Test Statistic

c 2 =(O-E)2

E

é

ëê

ù

ûúå = (20.571+ 20.571= 41.142

Page 12: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Step 6: Make a Decision

41.14

Page 13: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

VEGAS BABY!!!

Rolling dice at the Mirage

Lots of Snake Eyes coming up

Are the dice fixed?

Test with goodness of fit

Does our distribution FIT the expected

distribution

Page 14: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. HeinzenVEGAS BABY!!!

Expected distribution for 120 rolls if fair:

Each die(dice) has 1/6 chance

1/6 X 120 = 20 of each type

Expected Distribution =

[20,20,20,20,20,20]

Page 17: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Page 18: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Page 19: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Chi-Square Test for Independence

• The six steps of hypothesis testing1. Identify the populations, distribution, and

assumptions

2. State the null and research hypotheses

3. Determine the characteristics of the

comparison distribution

4. Determine the critical value, or cutoff

5. Calculate the test statistic

6. Make a decision

Page 20: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Page 21: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Page 22: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

c 2 =(O- E)2

E

é

ëê

ù

ûúå = (2.218+0.837+ 2.197+0.829 = 6.081

Page 23: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Step 6: Make a Decision

Page 24: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Cramer’s V (phi)

• The effect size for chi-square test for

independence

))(( /

2

columnrowdfN

X

Page 25: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Page 26: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Graphing Chi-Square Percentages

Page 27: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

An Alternative Graph

Page 28: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Page 29: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Relative Risk

• We can quantify the size of an effect

with chi square through relative risk,

also called relative likelihood

• By making a ratio of two conditional

proportions, we can say, for example,

that one group is three times as likely

to show some outcome or, conversely,

that the other group is one-third as

likely to show that outcome

Page 30: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

HUH?!?!?

Page 31: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Page 32: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Other Nonparametric Tests

Page 33: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Spearman Rank-Order Correlation

Coefficient

• Quantifies the association between two

ordinal variables

• Calculating Spearman’s correlation

rs=1-

6( D2 )åN (N 2 -1)

Page 34: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

A little example

• Is there a relationship between

• Level of “national competitiveness”

• Level of “national pride”

?

Page 35: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

Page 36: Psych 100A - Lecture 17-18

Essentials of Statistics for the Behavioral Sciences, 2nd EditionSusan A. Nolan Thomas E. Heinzen

rs=1-

6( D2 )åN (N 2 -1)

=1-6(98.5)

10(102 -1)=1-

591

10(99)=1-

591

990=1-0.597 = 0.403