Chi-square Test of Independence Presentation 10.2.

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
 2 test for independence Used with categorical, bivariate data from ONE sample Used to see if the two categorical variables are associated (dependent)
AP Statistics Tuesday, 15 April 2014 OBJECTIVE TSW (1) identify the conditions to use a chi-square test; (2) examine the chi-square test for independence;
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
Ch. 28 Chi-square test Used when the data are frequencies (counts) or proportions for 2 or more groups. Example 1.
Ch 15 - Chi-square Nonparametric Methods: Chi-Square Applications
11-2 Goodness-of-Fit In this section, we consider sample data consisting of observed frequency counts arranged in a single row or column (called a one-way.
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
Chi-square Goodness of Fit Test
Presentation 12 Chi-Square test.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
1 Psych 5500/6500 Chi-Square (Part Two) Test for Association Fall, 2008.
 Involves testing a hypothesis.  There is no single parameter to estimate.  Considers all categories to give an overall idea of whether the observed.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
Chi-square test Chi-square test or  2 test Notes: Page Goodness of Fit 2.Independence 3.Homogeneity.
Warm-up Researchers want to cross two yellow- green tobacco plants with genetic makeup (Gg). See the Punnett square below. When the researchers perform.
Chapter 26 Chi-Square Testing
FPP 28 Chi-square test. More types of inference for nominal variables Nominal data is categorical with more than two categories Compare observed frequencies.
+ Chi Square Test Homogeneity or Independence( Association)
Chapter 11 Chi- Square Test for Homogeneity Target Goal: I can use a chi-square test to compare 3 or more proportions. I can use a chi-square test for.
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 © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
ContentFurther guidance  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample,
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.
+ Section 11.1 Chi-Square Goodness-of-Fit Tests. + Introduction In the previous chapter, we discussed inference procedures for comparing the proportion.
Chi Square Test for Goodness of Fit Determining if our sample fits the way it should be.
Chapter 14 Inference for Distribution of Categorical Variables: Chi-Squared Procedures.
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.
Class Seven Turn In: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 For Class Eight: Chapter 20: 18, 20, 24 Chapter 22: 34, 36 Read Chapters 23 &
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8… Where we are going… Significance Tests!! –Ch 9 Tests about a population proportion –Ch 9Tests.
 Check the Random, Large Sample Size and Independent conditions before performing a chi-square test  Use a chi-square test for homogeneity to determine.
Check your understanding: p. 684
Chi-Square hypothesis testing
CHAPTER 11 Inference for Distributions of Categorical Data
Chi-square test or c2 test
Warm-up Researchers want to cross two yellow-green tobacco plants with genetic makeup (Gg). See the Punnett square below. When the researchers perform.
Vocabulary Statistical Inference – provides methods for drawing conclusions about a population parameter from sample data Expected Values– row total *
Testing a Claim About a Mean:  Not Known
Chapter 12 Tests with Qualitative Data
Active Learning Lecture Slides
Chi-squared Distribution
1) A bicycle safety organization claims that fatal bicycle accidents are uniformly distributed throughout the week. The table shows the day of the week.
Chapter 11 Goodness-of-Fit and Contingency Tables
Sun. Mon. Tues. Wed. Thurs. Fri. Sat.
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Chi Square Two-way Tables
Day 67 Agenda: Submit THQ #6 Answers.
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Chapter 11: Inference for Distributions of Categorical Data
Statistical Inference about Regression
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables: Independence and Homogeneity
Overview and Chi-Square
Inference for Relationships
Chi-square test or c2 test
Inference on Categorical Data
Lecture 42 Section 14.4 Wed, Apr 17, 2007
Lecture 37 Section 14.4 Wed, Nov 29, 2006
Lesson 11 - R Chapter 11 Review:
Analyzing the Association Between Categorical Variables
Chi2 (A.K.A X2).
Lecture 43 Sections 14.4 – 14.5 Mon, Nov 26, 2007
Hypothesis Tests for a Standard Deviation
Inference for Two Way Tables
SENIORS: Final transcript request must be made by Friday.
Chi Square Test of Homogeneity
Lecture 46 Section 14.5 Wed, Apr 13, 2005
Presentation transcript:

Chi-square Test of Independence Presentation 10.2

Another Significance Test for Proportions But this time we want to test multiple variables. With this test we can determine if two variables are independent of not. This is sometimes called inference for two- way tables.

Chi-square Test of Independence Formulas Null Hypothesis (assumes independent) Alternate Hypothesis (not independent) Test Statistic (that symbol is called Chi-squared) The null and alternate hypotheses are always the same with a Test of Independence. O is the observed count for each cell in the table and E is the expected count for each cell in the table. Instead of a normal or t distribution, we now have a chi- squared distribution

The TitanicTitanic Look at the data of the passengers, their ticket, and whether or not they survived. Type of TicketRescuedDied First Class Second Class Third Class528178

Conditions for the Test of Independence None of the observed counts should be less than 1 No more than 20% of the counts should be less than 5 –Same as for the Goodness of Fit test These are simple checks to make sure that the sample size is sufficient.

The TitanicTitanic Check the conditions –Since all counts are much greater than 5, we are ok to conduct the test Write Hypotheses (these are always the same!) –Null: H o : Observed = Expected That is, what we observed should be the same as what we expected given the variables are independent –Alternate: H a : Observed Expected That is, the observed data is just too different from what is expected to be attributed to random chance.

The Titanic CalculationsTitanic Find the expected values (assume independence) Type of Ticket Rescu ed DiedTotals First Class Secon d Class Third Class Totals Type of TicketRescuedDiedTotals First Class326*849/1317= *468/1317= Second Class285*849/1317= *468/1317= Third Class706*849/1317= *468/1317= Totals Observed Expected To find an expected count, 849 out of 1317 total passengers were rescued (64.46%), so 849/1317 or 64.46% of the 326 first class passengers should have been rescued. This logic follows for each cell in the table.

The Titanic CalculationsTitanic Then, do the sum of just like with the Goodness of Fit Test Our degrees of freedom are: Finally, use chi- square cdf: X 2 cdf(99.69,99999,2)

The Titanic CalculationsTitanic Using the calculator First go to the Matrix menu (2 nd x -1 ) Go to edit and press enter Enter the number of row x column –Your matrix should fit the look of your table Enter in the data –Make the calculator match the table Then go to your stats tests and choose chi-test

The Titanic CalculationsTitanic Using the calculator Since you entered the data into matrix [A], you can just go right to: –Calculate –Draw Leave the expected alone as the calculator will calculate those for you (see next slide)

The Titanic CalculationsTitanic Using the calculator Lets go check out the expected table –Go back to matrix –Edit [B] to see the values How cool is that!

The Titanic CalculationsTitanic Conclusions –The p-value represents the chance of the data occurring given the variables are independent. –For the Titanic, this was a % chance –REJECT THE NULL! –There is a ton of evidence to suggest that there is an association between survival rate and the type of ticket.

Chi-square Goodness of Fit Test This concludes this presentation.