CHI SQUARE TESTS.

Slides:



Advertisements
Similar presentations
Chapter 18: The Chi-Square Statistic
Advertisements

COURSE: JUST 3900 INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE Instructor: Dr. John J. Kerbs, Associate Professor Joint Ph.D. in Social Work and Sociology.
Quantitative Methods Part 3 Chi - Squared Statistic.
Chi square.  Non-parametric test that’s useful when your sample violates the assumptions about normality required by other tests ◦ All other tests we’ve.
Chi Square Tests Chapter 17.
© 2011 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license.
Chi Square Tests Chapter 17. Nonparametric Statistics A special class of hypothesis tests Used when assumptions for parametric tests are not met –Review:
Statistical Inference for Frequency Data Chapter 16.
INTRODUCTION TO NON-PARAMETRIC ANALYSES CHI SQUARE ANALYSIS.
Chapter 13: The Chi-Square Test
Chapter 11 Contingency Table Analysis. Nonparametric Systems Another method of examining the relationship between independent (X) and dependant (Y) variables.
Chapter Seventeen HYPOTHESIS TESTING
PY 427 Statistics 1Fall 2006 Kin Ching Kong, Ph.D Lecture 12 Chicago School of Professional Psychology.
Chi Square Test Dealing with categorical dependant variable.
Ch 15 - Chi-square Nonparametric Methods: Chi-Square Applications
Business 205. Review Correlation MS5 Preview Chi-Square.
UNDERSTANDING RESEARCH RESULTS: STATISTICAL INFERENCE © 2012 The McGraw-Hill Companies, Inc.
CHI-SQUARE statistic and tests
PSY 307 – Statistics for the Behavioral Sciences Chapter 19 – Chi-Square Test for Qualitative Data Chapter 21 – Deciding Which Test to Use.
Data Analysis Statistics. Levels of Measurement Nominal – Categorical; no implied rankings among the categories. Also includes written observations and.
Chapter 14 Inferential Data Analysis
COURSE: JUST 3900 Tegrity Presentation Developed By: Ethan Cooper Final Exam Review.
Hypothesis Testing IV (Chi Square)
AM Recitation 2/10/11.
Statistics for the Behavioral Sciences (5 th ed.) Gravetter & Wallnau Chapter 17 The Chi-Square Statistic: Tests for Goodness of Fit and Independence University.
Statistics for the Behavioral Sciences
Copyright © 2012 Wolters Kluwer Health | Lippincott Williams & Wilkins Chapter 17 Inferential Statistics.
Copyright © 2008 Wolters Kluwer Health | Lippincott Williams & Wilkins Chapter 22 Using Inferential Statistics to Test Hypotheses.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Copyright © 2012 by Nelson Education Limited. Chapter 10 Hypothesis Testing IV: Chi Square 10-1.
Quantitative Methods Partly based on materials by Sherry O’Sullivan Part 3 Chi - Squared Statistic.
Chapter 20 For Explaining Psychological Statistics, 4th ed. by B. Cohen 1 These tests can be used when all of the data from a study has been measured on.
Chapter 16 The Chi-Square Statistic
Chapter 11 Hypothesis Testing IV (Chi Square). Chapter Outline  Introduction  Bivariate Tables  The Logic of Chi Square  The Computation of Chi Square.
The Logic of Statistical Significance & Making Statistical Decisions
Education 793 Class Notes Presentation 10 Chi-Square Tests and One-Way ANOVA.
Research Seminars in IT in Education (MIT6003) Quantitative Educational Research Design 2 Dr Jacky Pow.
Nonparametric Tests: Chi Square   Lesson 16. Parametric vs. Nonparametric Tests n Parametric hypothesis test about population parameter (  or  2.
Educational Research Chapter 13 Inferential Statistics Gay, Mills, and Airasian 10 th Edition.
HYPOTHESIS TESTING BETWEEN TWO OR MORE CATEGORICAL VARIABLES The Chi-Square Distribution and Test for Independence.
Chapter 13 CHI-SQUARE AND NONPARAMETRIC PROCEDURES.
© aSup-2007 CHI SQUARE   1 The CHI SQUARE Statistic Tests for Goodness of Fit and Independence.
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Inferential Statistics. The Logic of Inferential Statistics Makes inferences about a population from a sample Makes inferences about a population from.
Chapter 13 Inference for Counts: Chi-Square Tests © 2011 Pearson Education, Inc. 1 Business Statistics: A First Course.
Chapter Outline Goodness of Fit test Test of Independence.
N318b Winter 2002 Nursing Statistics Specific statistical tests Chi-square (  2 ) Lecture 7.
Non-parametric Tests e.g., Chi-Square. When to use various statistics n Parametric n Interval or ratio data n Name parametric tests we covered Tuesday.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
Chapter 15 The Chi-Square Statistic: Tests for Goodness of Fit and Independence PowerPoint Lecture Slides Essentials of Statistics for the Behavioral.
Biostatistics Nonparametric Statistics Class 8 March 14, 2000.
Chi Square & Correlation
Chapter Fifteen Chi-Square and Other Nonparametric Procedures.
Chapter 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial.
Chi Square Tests Chapter 17. Assumptions for Parametrics >Normal distributions >DV is at least scale >Random selection Sometimes other stuff: homogeneity,
Chapter 11: Categorical Data n Chi-square goodness of fit test allows us to examine a single distribution of a categorical variable in a population. n.
Chi Square 11.1 Chi Square. All the tests we’ve learned so far assume that our data is normally distributed z-test t-test We test hypotheses about parameters.
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. Part Four ANALYSIS AND PRESENTATION OF DATA.
Part Four ANALYSIS AND PRESENTATION OF DATA
INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE
Community &family medicine
Qualitative data – tests of association
UNDERSTANDING RESEARCH RESULTS: STATISTICAL INFERENCE
Parametric versus Nonparametric (Chi-square)
Chapter 18: The Chi-Square Statistic
Chapter Outline Goodness of Fit test Test of Independence.
CLASS 6 CLASS 7 Tutorial 2 (EXCEL version)
Hypothesis Testing - Chi Square
Presentation transcript:

CHI SQUARE TESTS

Parametric and Nonparametric Tests This lesson introduces two non-parametric hypothesis tests using the chi-square statistic: the chi-square test for goodness of fit and the chi-square test for independence.

Parametric and Nonparametric Tests (cont.) The term "non-parametric" refers to the fact that the chi‑square tests do not require assumptions about population parameters nor do they test hypotheses about population parameters. Previous examples of hypothesis tests, such as the t tests and analysis of variance, are parametric tests and they do include assumptions about parameters and hypotheses about parameters.

Parametric and Nonparametric Tests (cont.) The most obvious difference between the chi‑square tests and the other hypothesis tests we have considered (t and ANOVA) is the nature of the data. For chi‑square, the data are frequencies rather than numerical scores.

Nonparametric Statistics A special class of hypothesis tests Used when assumptions for parametric tests are not met Review: What are the assumptions for parametric tests?

Assumptions for Parametric Tests Dependent variable is a scale variable  interval or ratio If the dependent variable is ordinal or nominal, it is a non-parametric test Participants are randomly selected If there is no randomization, it is a non-parametric test The underlying population distribution is normal If the shape is not normal, it is a non-parametric test

When to Use Nonparametric Tests When the dependent variable is nominal What are ordinal, nominal, interval, and ratio scales of measurement? Used when either the dependent or independent variable is ordinal Used when the sample size is small Used when underlying population is not normal

Limitations of Nonparametric Tests Cannot easily use confidence intervals or effect sizes Have less statistical power than parametric tests Nominal and ordinal data provide less information More likely to commit type II error Review: What is type I error? Type II error?

The Chi-Square Test for Goodness-of-Fit The chi-square test for goodness-of-fit uses frequency data from a sample to test hypotheses about the shape or proportions of a population. Each individual in the sample is classified into one category on the scale of measurement. The data, called observed frequencies, simply count how many individuals from the sample are in each category.

The Chi-Square Test for Goodness-of-Fit (cont.) The null hypothesis specifies the proportion of the population that should be in each category. The proportions from the null hypothesis are used to compute expected frequencies that describe how the sample would appear if it were in perfect agreement with the null hypothesis.

Chi-Square test for goodness of fit- An Example -Is the frequency of balls with different colors equal in our bag? Observed Frequencies 50 30 10 Expected Frequencies 25%

Chi-Square test for goodness of fit Observed Frequencies Total 120 50 30 10 Expected Frequencies  120 = 25% Expected Frequencies H0 30

Chi-Square test for goodness of fit Observed Frequencies 50 30 10 Expected Frequencies 30 Difference Normalize

Chi-Square test for goodness of fit Critical value = 7.81 26.6 2(3,n=120) = 26.66, p< 0.001

Chi-Square test for Goodness of fit Chi-Square test for goodness of fit is like one sample t-test You can test your sample against any possible expected values H0 25% 10% 70% H0

The Chi-Square Test for Independence The second chi-square test, the chi-square test for independence, can be used and interpreted in two different ways: 1. Testing hypotheses about the relationship between two variables in a population, or 2. Testing hypotheses about differences between proportions for two or more populations.

The Chi-Square Test for Independence (cont.) Although the two versions of the test for independence appear to be different, they are equivalent and they are interchangeable. The first version of the test emphasizes the relationship between chi-square and a correlation, because both procedures examine the relationship between two variables.

The Chi-Square Test for Independence (cont.) The second version of the test emphasizes the relationship between chi-square and an independent-measures t test (or ANOVA) because both tests use data from two (or more) samples to test hypotheses about the difference between two (or more) populations.

The Chi-Square Test for Independence (cont.) The first version of the chi-square test for independence views the data as one sample in which each individual is classified on two different variables. The data are usually presented in a matrix with the categories for one variable defining the rows and the categories of the second variable defining the columns.

The Chi-Square Test for Independence (cont.) The data, called observed frequencies, simply show how many individuals from the sample are in each cell of the matrix. The null hypothesis for this test states that there is no relationship between the two variables; that is, the two variables are independent.

The Chi-Square Test for Independence (cont.) The second version of the test for independence views the data as two (or more) separate samples representing the different populations being compared. The same variable is measured for each sample by classifying individual subjects into categories of the variable. The data are presented in a matrix with the different samples defining the rows and the categories of the variable defining the columns..

The Chi-Square Test for Independence (cont.) The data, again called observed frequencies, show how many individuals are in each cell of the matrix. The null hypothesis for this test states that the proportions (the distribution across categories) are the same for all of the populations

The Chi-Square Test for Independence (cont.) Both chi-square tests use the same statistic. The calculation of the chi-square statistic requires two steps: 1. The null hypothesis is used to construct an idealized sample distribution of expected frequencies that describes how the sample would look if the data were in perfect agreement with the null hypothesis.

The Chi-Square Test for Independence (cont.) For the goodness of fit test, the expected frequency for each category is obtained by expected frequency = fe = p x n (p is the proportion from the null hypothesis and n is the size of the sample) For the test for independence, the expected frequency for each cell in the matrix is obtained by (row total)x(column total) expected frequency = fe = ───────────────── n

The Chi-Square Test for Independence (cont.) 2. A chi-square statistic is computed to measure the amount of discrepancy between the ideal sample (expected frequencies from H0) and the actual sample data (the observed frequencies = fo). A large discrepancy results in a large value for chi-square and indicates that the data do not fit the null hypothesis and the hypothesis should be rejected.

Chi-Square test for independence- An Example When we have tow or more sets of categorical data (IV,DV both categorical) FO None Obama McCain Male 10 50 35 15 60 40 95 Female 115 25 110 75 210

Chi-Square test for independence- An Example Also called contingency table analysis H0: There is no relation between gender and voting preference (like correlation) OR H0: There is no difference between the voting preference of males and females (like t-test) The logic is the same as the goodness of fit test: Comparing observed freq and Expected freq if the two variables were independent

Chi-Square test for independence- An Example None Obama McCain Male 10 50 35 15 60 40 95 Female 115 25 110 75 210 FE None Obama McCain Male Female 12% 52% 36% 100%

  Chi-Square test for independence 12% 52% 36% 11.4 49.4 34.2 13.8 In case of independence: FE None Obama McCain  Male 12% 52% 36% 95  Female 115 12% 52% 36% 100% Finaly: None Obama McCain FE Male 11.4 49.4 34.2 13.8 59.8 41.4 Female

Chi-Square test for independence Another way: Male Female None Obama McCain 95 25 210 FE 95 x 25 210

Chi-Square test for independence Now we can calculate the chi square value : FO 10 50 35 15 60 40 FE 11.4 49.4 34.2 13.8 59.8 41.4

Chi-Square test for independence- An Example 2(2, n=210) = 0.35, p= 0.83 There is no significant effect of gender on vote preference Or We cannot reject the null hypothesis that gender and vote preference are independent