Test of Independence Lecture 43 Section 14.5 Mon, Apr 23, 2007.

Slides:



Advertisements
Similar presentations
Chi-square test Chi-square test or  2 test. Chi-square test countsUsed to test the counts of categorical data ThreeThree types –Goodness of fit (univariate)
Advertisements

15- 1 Chapter Fifteen McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
Chi-Squared Hypothesis Testing Using One-Way and Two-Way Frequency Tables of Categorical Variables.
Chapter 11 Inference for Distributions of Categorical Data
Inference for Categorical Data Chi-SquareCh.11. Facts about Chi-Square ► Takes only positive values and the graph is skewed to the right ► Test Statistic.
CJ 526 Statistical Analysis in Criminal Justice
Chi-Square Test A fundamental problem in genetics is determining whether the experimentally determined data fits the results expected from theory (i.e.
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 Test Used when both outcome and exposure variables are binary (dichotomous) or even multichotomous Allows the researcher to calculate a.
Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.
Chapter 13: Inference for Tables – Chi-Square Procedures
11.4 Hardy-Wineberg Equilibrium. Equation - used to predict genotype frequencies in a population Predicted genotype frequencies are compared with Actual.
Chi-Squared Test.
Inferential Statistics: SPSS
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
CJ 526 Statistical Analysis in Criminal Justice
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Two Variable Statistics
Copyright © 2010, 2007, 2004 Pearson Education, Inc. 1.. Section 11-2 Goodness of Fit.
Chi-square test or c2 test
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
Chapter 26 Chi-Square Testing
Other Chi-Square Tests
Chi-Square Test.
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)
Data Analysis for Two-Way Tables. The Basics Two-way table of counts Organizes data about 2 categorical variables Row variables run across the table Column.
Chapter 14: Chi-Square Procedures – Test for Goodness of Fit.
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.
Test of Homogeneity Lecture 45 Section 14.4 Wed, Apr 19, 2006.
Chi square analysis Just when you thought statistics was over!!
Warm up On slide.
Test of Goodness of Fit Lecture 43 Section 14.1 – 14.3 Fri, Apr 8, 2005.
Chapter Outline Goodness of Fit test Test of Independence.
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.
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.
Paired Samples Lecture 39 Section 11.3 Tue, Nov 15, 2005.
Test of Homogeneity Lecture 45 Section 14.4 Tue, Apr 12, 2005.
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
Bullied as a child? Are you tall or short? 6’ 4” 5’ 10” 4’ 2’ 4”
Chi-square test Chi-square test or  2 test. Chi-square test countsUsed to test the counts of categorical data ThreeThree types –Goodness of fit (univariate)
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 Goodness of Fit Test. In general, the chi-square test statistic is of the form If the computed test statistic is large, then the observed and.
Statistics 300: Elementary Statistics Section 11-3.
Chi-Squared Test of Homogeneity Are different populations the same across some characteristic?
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.
Copyright © Cengage Learning. All rights reserved. 14 Goodness-of-Fit Tests and Categorical Data Analysis.
Chapter 12 Lesson 12.2b Comparing Two Populations or Treatments 12.2: Test for Homogeneity and Independence in a Two-way Table.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
Independent Samples: Comparing Means Lecture 39 Section 11.4 Fri, Apr 1, 2005.
Test of Goodness of Fit Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007.
Patterns of inheritance
Analysis of count data 1.
Contingency Tables: Independence and Homogeneity
Lecture 36 Section 14.1 – 14.3 Mon, Nov 27, 2006
Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007
Lecture 42 Section 14.4 Wed, Apr 17, 2007
Lecture 37 Section 14.4 Wed, Nov 29, 2006
Lecture 38 Section 14.5 Mon, Dec 4, 2006
Lecture 43 Sections 14.4 – 14.5 Mon, Nov 26, 2007
Chapter 26 Comparing Counts.
Lecture 42 Section 14.3 Mon, Nov 19, 2007
Lecture 46 Section 14.5 Wed, Apr 13, 2005
Lecture 43 Section 14.1 – 14.3 Mon, Nov 28, 2005
Presentation transcript:

Test of Independence Lecture 43 Section 14.5 Mon, Apr 23, 2007

Independence Only one sample is taken. For each subject in the sample, two observations are made (i.e., two variables are measured). We wish to determine whether there is a relationship between the two variables. The two variables are independent if there is no relationship between them.

Mendel’s Experiments In Mendel’s experiments, Mendel observed  75% yellow seeds, 25% green seeds.  75% smooth seeds, 25% wrinkled seeds. Because color and texture were independent, he also observed  9/16 yellow and smooth  3/16 yellow and wrinkled  3/16 green and smooth  1/16 green and wrinkled

Mendel’s Experiments SmoothWrinkled Yellow93 Green31 That is, he observed the same ratios within categories that he observed for the totals.

Mendel’s Experiments SmoothWrinkled Yellow93 Green31 3 : 1 Ratio That is, he observed the same ratios within categories that he observed for the totals.

Mendel’s Experiments That is, he observed the same ratios within categories that he observed for the totals. SmoothWrinkled Yellow93 Green31 3 : 1 Ratio

Mendel’s Experiments That is, he observed the same ratios within categories that he observed for the totals. SmoothWrinkled Yellow93 Green31 3 : 1 Ratio

Mendel’s Experiments That is, he observed the same ratios within categories that he observed for the totals. SmoothWrinkled Yellow93 Green31 3 : 1 Ratio

Mendel’s Experiments Had the traits not been independent, he might have observed something different. SmoothWrinkled Yellow102 Green22

Example Suppose a university researcher suspects that a student’s SAT-M score is related to his performance in Statistics. At the end of the semester, he compares each student’s grade to his SAT-M score for all Statistics classes at that university. He wants to know whether the student’s with the higher SAT-M scores got the higher grades.

Example Does there appear to be a difference between the rows? Or are the rows independent? ABCDF – – Grade SAT-M

The Test of Independence The null hypothesis is that the variables are independent. The alternative hypothesis is that the variables are not independent. H 0 : The variables are independent. H 1 : The variables are not independent. Let  = 0.05.

The Test Statistic The test statistic is the chi-square statistic, computed as The question now is, how do we compute the expected counts?

Expected Counts Since the rows should all exhibit the same proportions, the method is the same as before.

Expected Counts ABCDF (8.64) 8 (17.28) 16 (20.16) 20 (14.40) 21 (11.52) 500 – (12.96) 28 (25.92) 32 (30.24) 22 (21.60) 13 (17.28) 600 – (8.64) 23 (17.28) 22 (20.16) 10 (14.40) 9 (11.52) (5.76) 13 (11.52) 14 (13.44) 8 (9.60) 5 (7.68)

The Test Statistic The value of  2 is

Degrees of Freedom The degrees of freedom are the same as before df = (no. of rows – 1)  (no. of cols – 1). In our example, df = (4 – 1)  (5 – 1) = 12.

The p-value To find the p-value, calculate  2 cdf( , E99, 12) = The results are significant at the 5% level.

TI-83 – Test of Independence The test for independence on the TI-83 is identical to the test for homogeneity.

Example Admissions figures for the School of Arts and Sciences. Acceptance Status Accepted Not Accepted Race Female50150 Male

Example Admissions figures for the Business School. Acceptance Status Accepted Not Accepted Race Female Male150200

Example Admissions figures for the two schools combined. Acceptance Status Accepted Not Accepted Race Female Male

Practice This is called Simpson’s paradox. It occurs whenever the aggregate population shows a different relationship than the subpopulations.