Non-Parametric Statistics Part I: Chi-Square

Slides:



Advertisements
Similar presentations
What is Chi-Square? Used to examine differences in the distributions of nominal data A mathematical comparison between expected frequencies and observed.
Advertisements

Chapter 11 Other Chi-Squared Tests
CHI-SQUARE(X2) DISTRIBUTION
15- 1 Chapter Fifteen McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
© 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.
Basic Statistics The Chi Square Test of Independence.
Hypothesis Testing IV Chi Square.
INTRODUCTION TO NON-PARAMETRIC ANALYSES CHI SQUARE ANALYSIS.
Chapter 13: The Chi-Square Test
1 Chi-Squared Distributions Inference for Categorical Data and Multiple Groups.
CHI-SQUARE GOODNESS OF FIT TEST u A nonparametric statistic u Nonparametric: u does not test a hypothesis about a population value (parameter) u requires.
Crosstabs and Chi Squares Computer Applications in Psychology.
Presentation 12 Chi-Square test.
Chapter 13 Chi-Square Tests. The chi-square test for Goodness of Fit allows us to determine whether a specified population distribution seems valid. The.
The Chi-square Statistic. Goodness of fit 0 This test is used to decide whether there is any difference between the observed (experimental) value and.
Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.
Copyright © 2013 Pearson Education, Inc. All rights reserved Chapter 10 Inferring Population Means.
Week 10 Chapter 10 - Hypothesis Testing III : The Analysis of Variance
Copyright © 2012 by Nelson Education Limited. Chapter 10 Hypothesis Testing IV: Chi Square 10-1.
1 Chi-Square Heibatollah Baghi, and Mastee Badii.
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 of these.
Other Chi-Square Tests
Non-Parametric Statistics Part I: Chi-Square .
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
Inference for Distributions of Categorical Variables (C26 BVD)
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Reasoning in Psychology Using Statistics Psychology
11.2 Tests Using Contingency Tables When data can be tabulated in table form in terms of frequencies, several types of hypotheses can be tested by using.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
Chapter 15 The Chi-Square Statistic: Tests for Goodness of Fit and Independence PowerPoint Lecture Slides Essentials of Statistics for the Behavioral.
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 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
COURSE: JUST 3900 INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE Chapter 17: Chi Square Peer Tutor Slides Instructor: Mr. Ethan W. Cooper, Lead Tutor © 2013.
Chapter 22 Inferences From Nominal Data: the Χ 2 Statistic.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Chi Square Test Dr. Asif Rehman.
Comparing Counts Chi Square Tests Independence.
Basic Statistics The Chi Square Test of Independence.
The Chi-square Statistic
Other Chi-Square Tests
Chi-Square hypothesis testing
Chapter 9: Non-parametric Tests
Presentation 12 Chi-Square test.
Chi-square test or c2 test
INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE
Chapter Fifteen McGraw-Hill/Irwin
Hypothesis Testing Review
Chapter 12 Tests with Qualitative Data
Community &family medicine
Qualitative data – tests of association
Hypothesis Testing Using the Chi Square (χ2) Distribution
PPA 501 – Analytical Methods in Administration
Prepared by: Francis Joseph Campeña
Different Scales, Different Measures of Association
Chi Square Two-way Tables
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Part IV Significantly Different Using Inferential Statistics
Reasoning in Psychology Using Statistics
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables: Independence and Homogeneity
Analyzing the Association Between Categorical Variables
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
Chapter 18: The Chi-Square Statistic
Quadrat sampling & the Chi-squared test
Quadrat sampling & the Chi-squared test
Presentation transcript:

Non-Parametric Statistics Part I: Chi-Square

x2 Operates on FREQUENCY Data Suppose we have a plot of land on which we hope to harvest wood. Maple is more valuable than Oak and Oak more valuable than pine. We take a sample of the trees (the whole plot is too big) and we ask whether there are significantly unequal amounts of each type (a=.05). Pine Maple Oak # of trees 145 301 289 We cannot get a mean from these data but there are clear differences between the amounts in each category. This is categorical or nominal data experessed as frequencies. So we use the x2  

x2 : Homogeneity = (145 + 301 + 289)/3 = 245 245 245 245 What are the null and alternative hypotheses? H0: The groups do not have different frequencies. H1: The groups do have different frequencies. Find the critical value: x2 table (k-1 df = 3-1= 2) = 5.99 Calculate the obtained statistic: Pine Maple Oak # of trees observed 145 301 289 # of trees expected = (145 + 301 + 289)/3 = 245 245 245 245         = 61.52 Make a decision: Our obtained value is larger than our critical value. Reject the null; the groups do have different frequencies.

x2 : Homogeneity Example Is political affiliation distributed equally in our class? (use alpha=.01) What are the null and alternative hypotheses? H0: The groups do not have different frequencies. H1: The groups have different frequencies. Find the critical value: x2 table (k-1 df = 3-1= 2) = 9.21 Calculate the obtained statistic: Democrat Republican Other # of people observed 10 15 5 = (10 + 15 + 5)/3 = 10 10 10 10 # of people expected         = 5 Make a decision: Our obtained value is smaller than our critical value. Retain the null; the groups do not have different frequencies.

x2 : Goodness of Fit Pine proportion = 255/473 = 0.54 Maple proportion = 115/473 = 0.24 Oak proportion = 103/473 = 0.22 Pine expected = 0.54(735) = 396.9 Maple expected = 0.24(735) = 176.4 Oak expected = 0.22(735) = 161.7 Five years ago the tree-lot was also sampled. Has the composition of the lot changed since then (use alpha=.05)? We need a different expected value based on the previous sample. Pine Maple Oak # trees 2014 145 301 289 Total # 735 473 Pine Maple Oak # trees 2009 255 115 103 Notice we’re trying to compare the frequencies from two time points, but the total # of trees categorized in 2014 is different from the 2009 total! Pine Maple Oak # trees expected 396.9 176.4 161.7

x2 : Goodness of Fit Example What are the null and alternative hypotheses? H0: The composition of the lot has not changed. H1: The composition of the lot has changed. Find the critical value: x2 table (k-1 df = 3-1= 2) = 5.99 Calculate the obtained statistic: Pine Maple Oak # trees 2014 145 301 289 Pine Maple Oak # trees expected 396.9 176.4 161.7         = 348.10 Make a decision: Our obtained value is larger than our critical value. Reject the null; the composition of the lot has changed.

x2 : Independence Pine Maple Oak Mirkwood 123 234 345 Old Forest 233 232 333 H0: Tree type and Forest are independent. H1: Tree type and Forest are not independent.

x2 : Independence Example (assume alpha=.05) What are the null and alternative hypotheses? H0: Tree type and forest are independent. H1: Tree type and forest and not independent. Find the critical value: df for this test is (r-1)(c-1) We have 2 rows and 3 columns, so (2-1)(3-1) = 2 x2 table (df = 2) = 5.99 Calculate the obtained statistic:

How to calculate expected values: x2 : Independence How to calculate expected values: Pine Maple Oak Mirkwood 123 234 345 Old Forest 233 232 333 R 702 798 356 466 678 C Grand Total: 1500 Expected value = (R x C)/ grand total Expected Mirkwood-Pine = (702 x 356)/1500 = 166.61 Expected Old Forest-Pine = (798 x 356)/1500 = 189.39

S x2 : Independence Observed Values Expected Values Pine Maple Oak Mirkwood 123 234 345 Old Forest 233 232 333 Pine Maple Oak Mirkwood 166.8 218.1 317.3 Old Forest 189.4 247.9 360.7 ( O - E)2 x2 = E S = 28.18

x2 : Independence Example (assume alpha=.05) What are the null and alternative hypotheses? H0: Tree type and forest are independent. H1: Tree type and forest and not independent. Find the critical value: df for this test is (r-1)(c-1) We have 2 rows and 3 columns, so (2-1)(3-1) = 2 x2 table (df = 2) = 5.99 Calculate the obtained statistic: 28.18 Make a decision: Our obtained value is larger than our critical value. Reject the null; tree type and forest are not independent.