Monday, Dec. 2 Chi-square Goodness of Fit Chi-square Test of Independence: Two Variables.

Slides:



Advertisements
Similar presentations
CHI-SQUARE(X2) DISTRIBUTION
Advertisements

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)
AP Biology.  Segregation of the alleles into gametes is like a coin toss (heads or tails = equal probability)  Rule of Multiplication  Probability.
Goodness Of Fit. For example, suppose there are four entrances to a building. You want to know if the four entrances are equally used. You observe 400.
Chi-Square Test A fundamental problem is genetics is determining whether the experimentally determined data fits the results expected from theory (i.e.
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
Basic Statistics The Chi Square Test of Independence.
Hypothesis Testing IV Chi Square.
Statistical Inference for Frequency Data Chapter 16.
Chi Square Analyses: Comparing Frequency Distributions.
Please turn in your signed syllabus. We will be going to get textbooks shortly after class starts. Homework: Reading Guide – Chapter 2: The Chemical Context.
Chi-Square Test of Independence u Purpose: Test whether two nominal variables are related u Design: Individuals categorized in two ways.
PSY 340 Statistics for the Social Sciences Chi-Squared Test of Independence Statistics for the Social Sciences Psychology 340 Spring 2010.
CHI-SQUARE TEST OF INDEPENDENCE
1 The Chi squared table provides critical value for various right hand tail probabilities ‘A’. The form of the probabilities that appear in the Chi-Squared.
Chi Square Test Dealing with categorical dependant variable.
Ch 15 - Chi-square Nonparametric Methods: Chi-Square Applications
Crosstabs and Chi Squares Computer Applications in Psychology.
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
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.
Distributions of Nominal Variables 12/02. Nominal Data Some measurements are just types or categories – Favorite color, college major, political affiliation,
The Chi-Square Test Used when both outcome and exposure variables are binary (dichotomous) or even multichotomous Allows the researcher to calculate a.
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.
1 of 27 PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2013, Michael Kalsher Michael J. Kalsher Department of Cognitive Science Adv. Experimental.
Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.
11.4 Hardy-Wineberg Equilibrium. Equation - used to predict genotype frequencies in a population Predicted genotype frequencies are compared with Actual.
Chi-Squared Test.
Imagine a a bag that contained 90 white marbles and 10 black marbles. If you drew 10 marbles, how many would you expect to come up white, and how many.
For testing significance of patterns in qualitative data Test statistic is based on counts that represent the number of items that fall in each category.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Chapter 16 – Categorical Data Analysis Math 22 Introductory Statistics.
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-Square Test A fundamental problem in genetics is determining whether the experimentally determined data fits the results expected from theory. How.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
CHI SQUARE TESTS.
The Practice of Statistics Third Edition Chapter (13.1) 14.1: Chi-square Test for Goodness of Fit Copyright © 2008 by W. H. Freeman & Company Daniel S.
HYPOTHESIS TESTING BETWEEN TWO OR MORE CATEGORICAL VARIABLES The Chi-Square Distribution and Test for Independence.
Chi-Square Test James A. Pershing, Ph.D. Indiana University.
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.
1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION.
July, 2000Guang Jin Statistics in Applied Science and Technology Chapter 12. The Chi-Square Test.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
Lecture 11. The chi-square test for goodness of fit.
Science Practice 2: The student can use mathematics appropriately. Science Practice 5: The student can perform data analysis and evaluation of evidence.
Chapter Fifteen Chi-Square and Other Nonparametric Procedures.
Bullied as a child? Are you tall or short? 6’ 4” 5’ 10” 4’ 2’ 4”
Wednesday, December 5 Chi-square Test of Independence: Two Variables. Summing up!
Chapter 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
Wednesday, December 7 Chi-square Goodness of Fit Chi-square Test of Independence: Two Variables. Summing up!
1 Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture #1 Chi-square Contingency Table Test.
Did Mendel fake is data? Do a quick internet search and can you find opinions that support or reject this point of view. Does it matter? Should it matter?
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.
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 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.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
Basic Statistics The Chi Square Test of Independence.
Hypothesis Testing Review
Qualitative data – tests of association
Chi-square Goodness of Fit
The Chi-Square Distribution and Test for Independence
Is a persons’ size related to if they were bullied
Goodness of Fit Test - Chi-Squared Distribution
Overview and Chi-Square
Lecture 38 Section 14.5 Mon, Dec 4, 2006
Analyzing the Association Between Categorical Variables
Chi-Square Test A fundamental problem in Science is determining whether the experiment data fits the results expected. How can you tell if an observed.
Math 10, Spring 2019 Introductory Statistics
CHI SQUARE (χ2) Dangerous Curves Ahead!.
Presentation transcript:

Monday, Dec. 2 Chi-square Goodness of Fit Chi-square Test of Independence: Two Variables.

gg yy yg yyyggggy 25%25% 25% 25%

Pea Color freq Observed freq Expected Yellow Green TOTAL

Pea Color freq Observed freq Expected Yellow Green TOTAL 22 =  (f o - f e ) 2 fefe i=1 k Chi Square Goodness of Fit d.f. = k - 1, where k = number of categories of in the variable.

“… the general level of agreement between Mendel’s expectations and his reported results shows that it is closer than would be expected in the best of several thousand repetitions. The data have evidently been sophisticated systematically, and after examining various possibilities, I have no doubt that Mendel was deceived by a gardening assistant, who knew only too well what his principal expected from each trial made…” -- R. A. Fisher

Pea Color freq Observed freq Expected Yellow Green TOTAL 22 =  (f o - f e ) 2 fefe i=1 k Chi Square Goodness of Fit d.f. = k - 1, where k = number of categories of in the variable.

Peas to Kids: Another Example Goodness of Fit At my children’s school science fair last year, where participation was voluntary but strongly encouraged, I counted about 60 boys and 40 girls who had submitted entries. Since I expect a ratio of 50:50 if there were no gender preference for submission, is this observation deviant, beyond chance level?

BoysGirls Expected:5050 Observed:6040

BoysGirls Expected:5050 Observed:6040 22 =  (f o - f e ) 2 fefe i=1 k

BoysGirls Expected:5050 Observed:6040 22 =  (f o - f e ) 2 fefe i=1 k For each of k categories, square the difference between the observed and the expected frequency, divide by the expected frequency, and sum over all k categories.

BoysGirls Expected:5050 Observed:6040 22 =  (f o - f e ) 2 fefe i=1 k For each of k categories, square the difference between the observed and the expected frequency, divide by the expected frequency, and sum over all k categories. (60-50) 2 (40-50) = 4.00=

BoysGirls Expected:5050 Observed:6040 22 =  (f o - f e ) 2 fefe i=1 k For each of k categories, square the difference between the observed and the expected frequency, divide by the expected frequency, and sum over all k categories. (60-50) 2 (40-50) = 4.00= This value, chi-square, will be distributed with known probability values, where the degrees of freedom is a function of the number of categories (not n). In this one-variable case, d.f. = k - 1.

BoysGirls Expected:5050 Observed:6040 22 =  (f o - f e ) 2 fefe i=1 k For each of k categories, square the difference between the observed and the expected frequency, divide by the expected frequency, and sum over all k categories. (60-50) 2 (40-50) = 4.00= This value, chi-square, will be distributed with known probability values, where the degrees of freedom is a function of the number of categories (not n). In this one-variable case, d.f. = k - 1. Critical value of chi-square at  =.05, d.f.=1 is 3.84, so reject H 0.

Chi-square Test of Independence Are two nominal level variables related or independent from each other? Is race related to SES, or are they independent?

Lo Hi SES WhiteBlack

Row n x Column n Total n The expected frequency of any given cell is Lo Hi SES WhiteBlack

22 = (f o - f e ) 2 fefe  r=1 r  c=1 c At d.f. = (r - 1)(c - 1)

Row n x Column n Total n The expected frequency of any given cell is (15x28)/47(15x19)/47 (32x28)/47(32x19)/47

Row n x Column n Total n The expected frequency of any given cell is (15x28)/47(15x19)/47 (32x28)/47(32x19)/

22 = (f o - f e ) 2 fefe  r=1 r  c=1 c Please calculate:

Important assumptions: Independent observations. Observations are mutually exclusive. Expected frequencies should be reasonably large: d.f. 1, at least 5 d.f. 2, >2 d.f. >3, if all expected frequencies but one are greater than or equal to 5 and if the one that is not is at least equal to 1.