Chi-square test. Data Statistics Continuous measurement: Interval Mean Categorical measurement: NominalFrequency, count, proportion One-way chi-square.

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

Quantitative Methods Part 3 Chi - Squared Statistic.
Chi square.  Non-parametric test that’s useful when your sample violates the assumptions about normality required by other tests ◦ All other tests we’ve.
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. Most of the previous techniques presented so far have been for NUMERICAL data. So, what do we do if the data is CATEGORICAL? Ex: Information.
Chi-Squared Hypothesis Testing Using One-Way and Two-Way Frequency Tables of Categorical Variables.
Statistical Inference for Frequency Data Chapter 16.
Chi-Squared tests (  2 ):. Use with nominal (categorical) data – when all you have is the frequency with which certain events have occurred. score per.
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
CJ 526 Statistical Analysis in Criminal Justice
Chi Square Test Dealing with categorical dependant variable.
Cross-Tabulations.
1 Nominal Data Greg C Elvers. 2 Parametric Statistics The inferential statistics that we have discussed, such as t and ANOVA, are parametric statistics.
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.
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.
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
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.
Chi-square Test of Independence Steps in Testing Chi-square Test of Independence Hypotheses.
Other Chi-Square Tests
Chi-square (χ 2 ) Fenster Chi-Square Chi-Square χ 2 Chi-Square χ 2 Tests of Statistical Significance for Nominal Level Data (Note: can also be used for.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Chi-Square X 2. Parking lot exercise Graph the distribution of car values for each parking lot Fill in the frequency and percentage tables.
Other Chi-Square Tests
Review of the Basic Logic of NHST Significance tests are used to accept or reject the null hypothesis. This is done by studying the sampling distribution.
© 2014 by Pearson Higher Education, Inc Upper Saddle River, New Jersey All Rights Reserved HLTH 300 Biostatistics for Public Health Practice, Raul.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
CHI SQUARE TESTS.
HYPOTHESIS TESTING BETWEEN TWO OR MORE CATEGORICAL VARIABLES The Chi-Square Distribution and Test for Independence.
Chi-Square Test ( 2 ) Chi-Square Test (  2 ) Used when dependent variable is counts within categories Used when DV has two or more mutually exclusive.
© 2000 Prentice-Hall, Inc. Statistics The Chi-Square Test & The Analysis of Contingency Tables Chapter 13.
Other Chi-Square Tests
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.
Comparing Counts.  A test of whether the distribution of counts in one categorical variable matches the distribution predicted by a model is called a.
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Two groups of diabetic patients were randomly selected. One group included 50 females and the second group 50 males. All 100 subjects administered the.
Nonparametric Tests of Significance Statistics for Political Science Levin and Fox Chapter Nine Part One.
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.
Remember Playing perfect black jack – the probability of winning a hand is.498 What is the probability that you will win 8 of the next 10 games of blackjack?
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.
Seven Steps for Doing  2 1) State the hypothesis 2) Create data table 3) Find  2 critical 4) Calculate the expected frequencies 5) Calculate  2 6)
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.
Chi-Square X 2. Review: the “null” hypothesis Inferential statistics are used to test hypotheses Whenever we use inferential statistics the “null hypothesis”
MATH 4030 – 11A ANALYSIS OF R X C TABLES (GOODNESS-OF-FIT TEST) 1.
DICE!  You are going to make your own and then we are going to test them (later) to see if they are fair!
Chi-Square X 2. Review: the “null” hypothesis Inferential statistics are used to test hypotheses Whenever we use inferential statistics the “null hypothesis”
1 Math 4030 – 10b Inferences Concerning Proportions.
381 Goodness of Fit Tests QSCI 381 – Lecture 40 (Larson and Farber, Sect 10.1)
Chapter Fifteen Chi-Square and Other Nonparametric Procedures.
Lesson 12 - R Chapter 12 Review. Objectives Summarize the chapter Define the vocabulary used Complete all objectives Successfully answer any of the review.
Bullied as a child? Are you tall or short? 6’ 4” 5’ 10” 4’ 2’ 4”
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.
1. State the null and alternative hypotheses. 2. Select a random sample and record observed frequency f i for the i th category ( k categories) Compute.
Jump to first page Inferring Sample Findings to the Population and Testing for Differences.
Statistics 300: Elementary Statistics Section 11-3.
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.
 Confidence Intervals  Around a proportion  Significance Tests  Not Every Difference Counts  Difference in Proportions  Difference in Means.
The Chi-Square Distribution  Chi-square tests for ….. goodness of fit, and independence 1.
Ch 26 – Comparing Counts Day 1 - The Chi-Square Distribution
Qualitative data – tests of association
The Chi-Square Distribution and Test for Independence
Is a persons’ size related to if they were bullied
Chapter Outline Goodness of Fit test Test of Independence.
Hypothesis Testing for Proportions
Presentation transcript:

Chi-square test

Data Statistics Continuous measurement: Interval Mean Categorical measurement: NominalFrequency, count, proportion One-way chi-square test counts the number of subjects falling into different categories of a variable and determines whether the distribution or pattern of the counts in different categories differs from that expected by the null hypothesis Two way chi-square test counts the number of subjects falling into different categories of two variables and determines whether the distribution or pattern of the counts in different categories of one variable is related to (your hypothesis) or independent from (null hypothesis) that of the other variable.

Examples Hypothesis: The marketing campaign of Pepsi has increased its market share Expected frequency distribution Observed frequency distribution Historical market shares CokePepsiOther 50%30%20% Current market shares CokePepsiOther 40%50%10%

Hong Kong has more high-IQ people than the normal distribution % 16% 50% 20% 10% Expected IQ distributionHK IQ distribution

df 6 df 10 df 20 df 22 df = number of categories minus one

Movie ActionHorrorDramaComedyTotal Observed Expected df = J – 1 = 4 – 1 = 3   0.05  2 = 9.25  2 (3,.05) = 7.81 Reject Null

E  5, df  2 E  10, df = 1 Yates’s correction, 1.Subtract.5 from the observed frequency if the observed frequency is greater than the expected frequency; that is, if O>E, subtract.5 from O. 2. Add.5 to the observed frequency if the observed frequency is less than the expected frequency; that is, if O<E, add.5 to O.

Movie Choices SexActionHorrorDramaComedyTotal Male Female Total (73) (43) (224) (133) (218) (129) (48) (29)  2 observed = = Reject Null  2 =  2 (3,.01) = df = (r – 1)(c – 1) = (4-1)(2-1) = 3  <.01

Answers to Homework 4: Economy has changed undergraduate major choices Past five years record: ScienceSocial ScienceMedicineArts 30%20%40%10% You took a random sample 110 second year students and their majors are distributed: ScienceSocial ScienceMedicineArtsTotal Observed Expected df = k – 1 = 4 – 1 = 3

 2 =  2 (3,.01) = Reject Null

Answer to h4: There is a relationship between gender and major choices ScienceSocial ScienceMedicineArtsTotal Female Male ScienceSocial ScienceMedicineArtsTotal 5 /625 / 2415 /1815 /1260 Female 5/ 415 / 1615 /12 5 / 8 40 Male df = (r – 1)(c – 1) = (4 – 1)(2 – 1) = 3

 2 = 3.65  2 (3,.01) = Do not reject Null.