The chi-squared test,, of independence (contingency tables) www.ibmaths.com.

Slides:



Advertisements
Similar presentations
1 2 Test for Independence 2 Test for Independence.
Advertisements

Overview of Lecture Parametric vs Non-Parametric Statistical Tests.
CHI-SQUARE(X2) DISTRIBUTION
 2 Test of Independence. Hypothesis Tests Categorical Data.
Chi Squared Tests. Introduction Two statistical techniques are presented. Both are used to analyze nominal data. –A goodness-of-fit test for a multinomial.
Chi Square Example A researcher wants to determine if there is a relationship between gender and the type of training received. The gender question is.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Homogeneity.
Chapter 16 Chi Squared Tests.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 14 Goodness-of-Fit Tests and Categorical Data Analysis.
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
11-3 Contingency Tables In this section we consider contingency tables (or two-way frequency tables), which include frequency counts for categorical data.
Chi-Square Tests and the F-Distribution
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics, A First Course 4 th Edition.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
Chapter 11: Applications of Chi-Square. Count or Frequency Data Many problems for which the data is categorized and the results shown by way of counts.
EGR 252 S09 Ch.10 Part 3 Slide 1 Statistical Hypothesis Testing - Part 3  A statistical hypothesis is an assertion concerning one or more populations.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Business Statistics: A First Course, 5e © 2009 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics: A First Course Fifth Edition.
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Chapter Outline Goodness of Fit test Test of Independence.
ContentFurther guidance  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample,
1 Chi-square Test Dr. T. T. Kachwala. Using the Chi-Square Test 2 The following are the two Applications: 1. Chi square as a test of Independence 2.Chi.
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
Chi Squared Statistical test used to see if the results of an experiment support a theory or to check that categorical data is independent of each other.
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 Test for Goodness of Fit Determining if our sample fits the way it should be.
Statistics 300: Elementary Statistics Section 11-3.
Chi-Två Test Kapitel 6. Introduction Two statistical techniques are presented, to analyze nominal data. –A goodness-of-fit test for the multinomial experiment.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Comparing Observed Distributions A test comparing the distribution of counts for two or more groups on the same categorical variable is called a chi-square.
Comparing Counts Chi Square Tests Independence.
CHI-SQUARE(X2) DISTRIBUTION
Inference concerning two population variances
Test of independence: Contingency Table
Copyright © 2008 by Hawkes Learning Systems/Quant Systems, Inc.
Chi-Square hypothesis testing
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chapter 11 Chi-Square Tests.
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
The Chi-Squared Test Learning outcomes
Testing a Claim About a Mean:  Not Known
Chapter 12 Tests with Qualitative Data
Chi-squared Distribution
Community &family medicine
Part Three. Data Analysis
Chapter 11 Goodness-of-Fit and Contingency Tables
Consider this table: The Χ2 Test of Independence
Econ 3790: Business and Economics Statistics
Reasoning in Psychology Using Statistics
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables: Independence and Homogeneity
Chapter 11 Chi-Square Tests.
Chi – square Dr. Anshul Singh Thapa.
The 2 (chi-squared) test for independence
CHI SQUARE TEST OF INDEPENDENCE
Analyzing the Association Between Categorical Variables
Hypothesis Tests for a Standard Deviation
Goodness of Fit.
11E The Chi-Square Test of Independence
Inference for Two Way Tables
Chi Squared! Determine whether the difference between an observed and expected frequency distribution is statistically significant Complete your work sheet.
Chapter Outline Goodness of Fit test Test of Independence.
Chapter 11 Chi-Square Tests.
Testing a Claim About a Standard Deviation or Variance
Quadrat sampling & the Chi-squared test
Quadrat sampling & the Chi-squared test
MATH 2311 Section 8.6.
MATH 2311 Section 8.5.
Presentation transcript:

The chi-squared test,, of independence (contingency tables)

The chi-squared test can be used to test for: independence or goodness of fit. This slideshow is for the independence of data. That is you will be given two (or more) sets of data and we will test to see if the data is independent.

The procedure to test for the independence: 1. State a hypotheses based on the fit of the data 2. Make a table of the observed and expected values. You will most likely be given the observed values. 3. Calculate the chi-squared test statistic, this is 4. Look up the chi-squared critical value from your chi-squared tables in the information booklet. 5. Compare your test statistic with your critical value and make a conclusion. If the test statistic lies in the critical region then reject H 0 in favour of H 1. Otherwise do not reject H 0 in favour of H 1. At first glance this is similar to the goodness of fit test, but the test statistic is worked out differently.

Degrees of freedom, v. When undertaking a chi-squared test you will have a table of observed and expected values. The degrees of freedom will be defined as: v=(number of rows-1)(number of columns-1) The chi-squared distribution. The distribution will alter depending on the value of v. The general curve is shown opposite.

Example of Chi-squared independence test The headmaster of a large IB school is concerned that the maths results are dependent on the maths teacher. There are 3 SL teachers and the results for each class have been shown below. These are the observed values. Test at the 5% level of significance to see if the grades are independent of the teacher Total Mr. P Ms. Q Mrs. R Total Make your hypotheses: H 0 : the grade at maths SL is independent of the teacher. H 1 : the grade at maths SL is not independent of the teacher. Make a table of expected values. To do this take each row total x column total and divide by the grand total. This is shown opposite. This value is the expected value for this cell. Find the expected number of grade 2s that Mr. P gets. Complete a table of expected values.

Total Mr. P Ms. Q Mrs. R Total continued.... Observed Expected Total Mr. P Ms. Q Mrs. R Total Calculate the chi squared test statistic: Find the critical value from your tables. v=(7-1)(3-1)=12 Critical value = Make your conclusion: Do not reject the null hypothesis. At the 5% level of significance there is no evidence to suggest that the choice of teacher influences the grade achieved. the p value