31
1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

Embed Size (px)

Citation preview

Page 1: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

1

Chi-square & T-test

Comm 420.8Fall 2007

Nan Yu

Page 2: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

2

Warming up

Please download practice 1, practice 1 answer, ChisquareData, Ttestdata

Use ChisquareData to complete the questions of practice 1.

Page 3: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

3

Effect Sizes

Statistical Significance vs. Strength of Effect

• Strength of Effect: 0 to 10 = Least Effect1 = Maximum Effect

Page 4: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

4

Strength of Association for Chi-Squares:

Cramér’s V

Page 5: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

5

Effect size for Chi-square

Page 6: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

6

Influence of Sample Size on

Statistical Significance (p-value) versus

Strength of Association (Cramer’s V)

Sample size will not affect the strength of association, only significance level.

Page 7: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

7

Vote

Yes No

Yes

No

10 201515O

rgan

izat

ion

s

Chi-Square Value = 1.72Degrees of Freedom = 1Significant? No, p = .19Cramér’s V =.17

Chi-Square Value = 17.14Degrees of Freedom = 1Significant? Yes, p < .001Cramér’s V =.17

Yes

No 100 200

150150Org

aniz

atio

ns

Vote

Yes No

Note: The number in each cell is mean.

Page 8: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

8

Run Chi-square to test the following question

People from different race will have a different opinion on the selection of countries that represent a great danger to the U.S.. (race, q36).

Chi-Square:_17.46_ DF _5_ p _<.01_

Cramer’s V: _.44_

Page 9: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

9

The Chi-square test showed that people from different race have a different opinion on the selection of countries that represent a great danger to the U.S., 2 (6, N=45) = 17.46, p<.01, Cramer’s V=.44.

Page 10: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

10

T-test: Testing Differences in Means

Page 11: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

11

I. The Issue of Variability

Variability withinwithin Groups Variability betweenbetween Groups

mean 1 mean 2

Page 12: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

12

Different Groups: Large Between-Group Variability Small Within-Group Variability

Similar Groups: Small Between-Group Variability Large Within-Group Variability

Page 13: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

13

Which one represents similar groups?

Page 14: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

14

Independent Sample t-test

Independent Sample t-test is used to test differences between only 2 groups.

Ex. Female test scores will differ from male test scores.

Page 15: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

15

T-test assumptions

IV is nominal and has two categoriesDV is interval/ratioDV is normally distributed.T-test will robust with larger samplesCases represent a random sample

(representative).Cases are independent of one another.

Page 16: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

16

Example: Males likes TV sports more than females

Put the interval orratio-level variablehere. (DV)

Put the variablerepresenting thegroups here. (IV)

Click “Define Groups"

IV? DV?

Page 17: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

17

Define your groups by the values.

In this case, it is “0” for males and “1” for females.

Page 18: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

18

Compare the means.

T-test statistic

Degrees of freedom p-value

Page 19: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

19

T-test statistic

Degrees of freedom p-value

Are these two groups similar or different (within-group) ?If p >.05, means they are similar, use the top rowIf p<.05, means they are different, use the bottom row.

Page 20: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

20

Report: Males (M=3.04, SD=1.89) do like TV sports more than females (M=1.97, SD=.88), t(34)=2.66, p<.05.

T-test statistic

Degrees of freedom p-value

Page 21: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

21

- Paired Sample t-test is used to test differences between 2 scores.

- Variables must be interval or ratio-level and measured on the same metric.

Ex. Aggression scores will be higher after viewing a violent film than before viewing a violent film.

Variables: Before Film Stimulus After

- Here, IV has only one level, but there are two DVs: before aggression, after aggression

Paired Sample t-test

Page 22: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

22

Paired Sample t-test

Place your “before” and “after” variables here.

Page 23: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

23

T-test statistic

Degree of freedom P-value

Report: Aggression scores after viewing the film (M=3.95, SD=.96) were significantly higher than were scores prior to viewing the film (M=2.55, SD=1.11), t(57)=6.89, p<.001.

Page 24: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

24

Directional and non-directional hypotheses

Females and males have different levels of liking toward dramas.

Females likes to watch dramas more males.

Liking toward dramas will be different as a result of gender.

Which one is a directional hypothesis?

Page 25: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

25

One-tailed or two-tailed test

Non-directional hypothesis: one-tailed test

Directional hypothesis: two-tailed test

Page 26: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

26

Probability Distribution

95% of chances thatwe found the two means are different.

5% of chances thatdidn’t found the difference.

Females and males have different levels of liking toward sitcom.

Mean of females is not equal to mean of males

Page 27: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

27

Two-tailed tests—split the alpha

Females likes to watch sitcom more males.

Mean of females > Mean of males

2.5% of chances thatdidn’t found means offemales is higher thanthat of males.

2.5% of chances thatdidn’t found means offemales is lower thanthat of males.

Page 28: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

28

In-class practice 1 (Ttestdata.sav)

H1:Males likes to watch TV reality crime more than females.

(gender, tvrcrime)

Please use t-test to test the H1 and answer the following questions:

Males: Mean _____ SD _____Females: Mean______ SD ______t(__)=____, p______

Can we reject the null here?

Page 29: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

29

Answers to practice 1

Males: Mean _2.58_ SD _1.17_Females: Mean _3.32_ SD _1.49_t(_55_)=_2.11_, p_<.05_

Can we reject the null here?No. We proposed males > females, but we

found males < females

Page 30: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

30

In-class practice 2

H2:Happiness scores will be higher after viewing a sad film than

before viewing a sad film.

Please use t-test to test the H2 and answer the following questions:

Before: Mean _____ SD _____

After: Mean______ SD ______

t(__)=____, p______

Can we reject the null here?

Page 31: 1 Chi-square & T-test Comm 420.8 Fall 2007 Nan Yu

31

Answers to practice 2

Before: Mean _2.53_ SD _1.13_

After: Mean _4.02_ SD _.83_

t(_57_)=_-7.70_, p_<.001_

Can we reject the null here?

Yes