chapter 16: chi-square statistic and tests statistics for the behavioral sciences

43
Chapter 16: CHI-SQUARE statistic and tests Statistics for the Behavioral Sciences Speaking of Statistics (10) (APsy) 1

Upload: dewey

Post on 20-Jan-2016

37 views

Category:

Documents


1 download

DESCRIPTION

Speaking of Statistics (10) (APsy). Chapter 16: CHI-SQUARE statistic and tests Statistics for the Behavioral Sciences. 17.1 Parametric and Non-Parametric Statistical Tests 17.2 The Chi-Square Test for Goodness of Fit 17.3 The Chi-Square Test for Independence. THE CHI-SQUARE STATISTIC. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

Chapter 16: CHI-SQUARE statistic and tests

Statistics for the Behavioral Sciences

Speaking of Statistics (10)(APsy)

1

Page 2: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

2

17.1 Parametric and Non-Parametric Statistical Tests

17.2 The Chi-Square Test for Goodness of Fit17.3 The Chi-Square Test for Independence

Page 3: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

3

Unlike earlier tests that require numerical scores (X values), the chi-square tests use frequencies and proportions from a sample to test hypotheses about the corresponding population.

THE CHI-SQUARE STATISTIC

Page 4: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

Chi-Square as a Statistical Test• Chi-square test: an inferential statistics

technique designed to test for significant relationships between two variables organized in a bivariate table.

• Chi-square requires no assumptions about the shape of the population distribution from which a sample is drawn.

• It can be applied to nominally or ordinally measured variables.

4

Page 5: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

5

All the statistical tests we have examined thus far are designed to test hypotheses about specific population parameters. They typically make assumptions about the shape of the population distribution and about other population parameters. For analysis of variance, the population distributions are assumed to be normal and homogeneity of variance is required. Because these tests all concern parameters and require assumptions about parameters, they are called parametric tests.A characteristic of parametric tests is that they require a numerical score for each individual in the sample. The scores then are added, squared, averaged, and otherwise manipulated using basic arithmetic. In terms of measurement scales,parametric tests require data from an interval or a ratio scale.

Parametric tests

Page 6: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

6

Often researchers are confronted with experimental situations that do not conform to the requirements of parametric tests.There are several hypothesis-testing techniques that provide alternatives to parametric tests. These alternatives are called non-parametric tests.Non-parametric tests usually do not state hypotheses in terms of a specific parameter and that they make few (if any) assumptions about the population distribution. For the latter reason, non-parametric tests sometimes are called distribution-free tests.

Non-parametric tests

Page 7: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

7

All of the parametric tests that we have examined so far require numerical scores, e.g. IQ score, height, weight, … etc.

For non-parametric tests, on the other hand, the subjects are usually just classified into categories such as Democrat and Republican, or High, Medium, and Low IQ. These classifications involve measurement on nominal or ordinal scales, and they do not produce numerical values that can be used to calculate means and variances.The data for many non-parametric tests are simply frequencies; for example, the number of Democrats and the number of Republicans in a sample of n=100 registered voters.

Differences between parametric and non-parametric tests

Page 8: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

8

There are situations where a researcher has questions about the proportions or relative frequencies for a distribution.

1. How does the number of women lawyers compare with the number of men in the profession?

2. Of the three leading brands of soft drinks, which one is preferred by most Chinese? Which brands are second and third, and how big are the differences in popularity among the three?

3. To what extent are different ethnic groups represented in the population of UIC?

Page 9: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

9

The chi-square test for goodness of fit uses sample data to test hypotheses about the shape or proportions of a population distribution. The test determines how well the obtained sample proportions fit the population proportions specified by the null hypothesis.

Chi-square test

Page 10: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

10

For example, a hypothesis might state that 90% of all lawyers are men and only 10% are women. The simplest way of presenting this hypothesis is to put the hypothesized proportions in the series of boxes representing the scale of measurement:

Page 11: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

11

Generally H0 will fall into one of the following categories:1.No Preference. The null hypothesis often states that there is no preference among the different categories.For example, a hypothesis stating that there is no preference among the three leading brands of soft drinks would specify a population distribution as follows:

Page 12: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

12

2. No Difference from a Comparison Population. The null hypothesis can state that the frequency distribution for one population is not different from the distribution that is known to exist for another population.For example, suppose it is known that 60% of Americans favor the president’s foreign policy and 40% are in opposition. A researcher might wonder if this same pattern of attitudes exists among Europeans. The null hypothesis would state that there is no difference between the two populations and would specify that the Europeans are distributed as follows:

Page 13: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

13

The data for a chi-square test are remarkably simple to obtain. You just select a sample of n individuals and count how many are in each category. The resulting values are called observed frequencies. For example, the following data represent observed frequencies for a sample of n=40 subjects. Each person was given a personality questionnaire and classified into one of three personality categories: A, B, or C.

=

Page 14: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

14

The observed frequency, , is the number of individuals from the sample who are classified in a particular category. Each individual is counted in one and only one category.The general goal of the chi-square test for goodness of fit is to compare the data (the observed frequencies) with the null hypothesis. The problem is to determine how well the data fit the distribution specified in H0—hence the name goodness of fit.

of

Page 15: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

15

The first step in the chi-square test is to determine how the sample distribution would look if the sample was in perfect agreement with the proportions stated in the null hypothesis. Suppose, for example, the null hypothesis states that the population is distributed in three categories with the following proportions:

25% of 40 5 0.25(40)=10 individuals in category A50% of 40 5 0.50(40)=20 individuals in category B25% of 40 5 0.25(40)=10 individuals in category C

Expected frequency

Page 16: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

16

The expected frequency, , for each category is the frequency value that is predicted from the null hypothesis and the sample size (n). The expected frequencies define an ideal, hypothetical sample distribution that would be obtained if the sample proportions were in perfect agreement with the proportions specified in the null hypothesis.

ef

Page 17: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

Calculating the Chi-Square statistic

C

i ie

ioe

f

ff

1 ,

22 )(

fe = expected frequencies, obtained from the

null hypothesis

fo = observed frequenciesC = the number of categories.

17

Page 18: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

18

It should be clear from the chi-square formula that the value of chi-square is measuring the discrepancy between the observed frequencies (data) and the expected frequencies (H0). When there are large differences between the observed and expected frequencies, the value of chi-square will be large, and we will conclude that the data do not fit the hypothesis.

A small chi-square value indicates that we fail to reject H0.To decide whether a particular chi-square value is “large” or “small,” we must refer to a chi-square distribution.

Page 19: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

19

Chi-square distributions are positively skewed. The critical region is placed in the extreme tail, which reflects large chi-square values.

Page 20: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

20

The shape of the chi-square distribution for different values of DEGREES OF FREEDOM, df.

Page 21: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

21

DEGREES OF freedom for the chi-square test literally measure the number of free choices that exist when you are determining the null hypothesis or the expected frequencies. For example, when you are classifying individuals into three categories, you have exactly two free choices in stating the null hypothesis.

n=40

df = C - 1

Page 22: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

22

A portion of the table of critical values for the chi-square distribution.

Page 23: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

Hypothesis Testing with Chi-SquareChi-square follows five steps:

1. Making assumptions (random sampling)

2. State the research and null hypotheses and select an alpha

3. Compute the expected distribution

4. Compute the chi-square statistic

5. Make a decision and interpreting the results

23

Page 24: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

The Assumptions• The chi-square test requires no assumptions

about the shape of the population distribution from which the sample was drawn.

• However, like all inferential techniques it assumes random sampling.

• It can be applied to variables measured at a nominal and/or an ordinal level of measurement.

24

Page 25: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

25

A researcher is interested in the factors that are involved in course selection. A sample of 50 students is asked, “Which of the following factors is most important to you when selecting a course?” Students must choose one and only one of the following alternatives:1. Interest in the course topic2. Ease of passing the course3. Instructor for the course4. Time of day the course is offeredThe frequency distribution of responses for this sample (the set of observed frequencies) is as follows:

Example:

Page 26: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

26

Step 1H0 : The population of students shows no preference in selecting any one of the four factors over the others.

H1 : In the population of students, one or more of these factors play a greater role in course selection (the factor is named more frequently by students).The level of significance is set at a standard value, alpha=0.05.

Page 27: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

27

Step 2: The value for degrees of freedom is determined

df=C-1=4-1=3The critical region is sketched.

Page 28: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

28

Step 3:The calculation of chi-square is actually a two-stage process.

Page 29: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

29

Step 4:The obtained chi-square value is in the critical region. Therefore, H0 is rejected. The researcher may conclude that there are significant differences among the four factors, with some selected more often and others less often than would be expected by chance.

Page 30: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

30

Example:A researcher for an insurance company would like to know if high-performance, overpowered automobiles are more likely to be involved in accidents than other types of cars. For a sample of 50 insurance claims, the investigator classifies the automobiles as high-performance, subcompact, mid-size, or full-size. The observed frequencies are as follows:

Assume that only 10% of the cars in the population are the high-performance variety. However, subcompacts, midsize cars, and full-size cars make up 40%, 30%, and 20%, respectively. Can the researcher conclude that the observed pattern of accidents does not fit the predicted expected-frequencies? Test with alpha=0 .05.

Page 31: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

31

a. H0 : In the population, no particular type of car shows a disproportionate number of accidents.

H1 : In the population, a disproportionate number of the accidents occur with certain types of cars.b. df=3; the critical X2 value is 7.81.c. The expected-frequencies for high-performance, subcompact, midsize, and full-size cars are 5, 20, 15, and 10, respectively. The obtained chi-square is 51.17.d. Reject H0 .

Answer:

Page 32: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

32

THE CHI-SQUARE TEST FOR INDEPENDENCEThe chi-square statistic may also be used to test whether or not there is a relationshipbetween two variables.In this situation, each individual in the sample is measured or classified on two separate variables.Usually the data from this classification are presented in the form of a matrix, where the rows correspond to the categories of one variable and the columns correspond to the categories of the second variable.

Page 33: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

33

Example:A sample of n=200 students who have been classified by personality and color preference. Each student is given a personality test, and each student is asked to select a preferred color from among the four choices. Notice that the classification is based on the measurements for each student; the researcher does not assign students to categories. Also, the data consist of frequencies, not scores, from a sample.

Page 34: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

34

Version 1 The data are viewed as a single sample with eachindividual measured on two variables.H0 : For the general population of students, there is no relationship between color preference and personality.The data consist of two measurements (X and Y) for each individual, and the goal is to evaluate the relationship between the two variables.

Version 2 The data are viewed as two (or more) separatesamples representing two (or more) separate populations.H0 : In the general population of students, the distribution of color preferences has the same shape (same proportions) for both categories of personality.The data consist of two (or more) separate samples that are being used to test for differences between two (or more) populations.

Page 35: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

35

These two versions are equivalent. The first version of H0 states that color preference is not related to personality.If this hypothesis is correct, then the distribution of color preferences should not depend on personality. In other words, the distribution of color preferences should be the same for introverts and extroverts, which is the second version of H0.

Page 36: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

36

Two variables are independent when there is no consistent, predictable relationship between them. In this case, the frequency distribution for one variable is not related to (or dependent on) the categories of the second variable. As a result, when two variables are independent, the frequency distribution for one variable will have the same shape for all categories of the second variable.

Page 37: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

37

You can use either version of the null hypothesis to find the expected frequencies, but the logic of the process is much easier when you use H0 stated in terms of equal proportions.

H0 : The frequency distribution of color preference has the same shape (same proportions) for both categories of personality.

Page 38: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

38

100 out of 200 = 50% prefer red20 out of 200 = 10% prefer yellow40 out of 200 = 20% prefer green40 out of 200 = 20% prefer blue

Page 39: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

39

DEGREES OF FREEDOMThe degrees of freedom for the chi-square test of independence are given by the formuladf = (R - 1)(C - 1)where R is the number of rows and C is the number of columns.

Degrees of freedom and expected frequencies. (Once three values have been selected, all the remaining expected frequencies are determined by the row totals and the column totals. This example has only three free choices, so df = 3.)

Page 40: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

40

Example:

A researcher suspects that color blindness is inherited by a sex-linked gene. This possibility is examined by looking for a relationship between gender andcolor vision. A sample of 1000 people is tested for color blindness, and then they are classified according to their sex and color vision status (normal, red-greenblind, other color blindness). Is color blindness related to gender? The data are as follows:

Page 41: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

41

Page 42: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

42

Ans:

Page 43: Chapter  16:  CHI-SQUARE  statistic and tests Statistics for the Behavioral Sciences

43

ASSUMPTIONS AND RESTRICTIONS FOR CHI-SQUARE TESTS1.Independence of ObservationsA chi-square test would be inappropriate if a person could produce responses that can be classified in more than one category or contribute more than one frequency count to a single category.2. Size of Expected FrequenciesA chi-square test should not be performed when the expected frequency of any cell is less than 5. The chi-square statistic can be distorted when fe is very small.