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.

Slides:



Advertisements
Similar presentations
Chi-Square Test Section Categorical Variables Based on observations Univariate – single categorical variable  Example: Sample 100 people & ask.
Advertisements

Chapter 11 Other Chi-Squared Tests
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)
SECTION 1 CHAPTER 1. DATA What is Statistics? The science of collecting, organizing, and interpreting numerical facts, which we call data Data (def.)
The Chi-Square Test for Association
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Goodness-of-Fit Tests.
The Analysis of Categorical Data and Goodness of Fit Tests
Statistical Inference for Frequency Data Chapter 16.
Chapter 13: The Chi-Square Test
Datasets with counts 150 people were surveyed about their softdrink preferences. They were asked, “Do you prefer coke, pepsi, or sprite?”. 50 people said.
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)
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.
CHI-SQUARE TEST OF INDEPENDENCE
CHI-SQUARE GOODNESS OF FIT TEST u A nonparametric statistic u Nonparametric: u does not test a hypothesis about a population value (parameter) u requires.
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 Tests and the F-Distribution
Goodness of Fit Test for Proportions of Multinomial Population Chi-square distribution Hypotheses test/Goodness of fit test.
Chi-Square and Analysis of Variance (ANOVA)
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.
Chi-Square Distributions
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Test of Independence.
Chapter 26: Comparing Counts AP Statistics. Comparing Counts In this chapter, we will be performing hypothesis tests on categorical data In previous chapters,
Copyright © 2013 Pearson Education, Inc. All rights reserved Chapter 10 Inferring Population Means.
 2 test for independence Used with categorical, bivariate data from ONE sample Used to see if the two categorical variables are associated (dependent)
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 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.
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Other Chi-Square Tests
Chi-square test or c2 test
1 Chi-Square Heibatollah Baghi, and Mastee Badii.
Chi-square test Chi-square test or  2 test Notes: Page Goodness of Fit 2.Independence 3.Homogeneity.
Chapter 26 Chi-Square Testing
Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.
Chi-square test. Data Statistics Continuous measurement: Interval Mean Categorical measurement: NominalFrequency, count, proportion One-way chi-square.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Chi-Square Distributions. Recap Analyze data and test hypothesis Type of test depends on: Data available Question we need to answer What do we use to.
Chapter 14: Chi-Square Procedures – Test for Goodness of Fit.
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.
Chapter 13 CHI-SQUARE AND NONPARAMETRIC PROCEDURES.
Other Chi-Square Tests
Chi-Square Test James A. Pershing, Ph.D. Indiana University.
Test of Goodness of Fit Lecture 43 Section 14.1 – 14.3 Fri, Apr 8, 2005.
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Chapter Outline Goodness of Fit test Test of Independence.
Dan Piett STAT West Virginia University Lecture 12.
AGENDA:. AP STAT Ch. 14.: X 2 Tests Goodness of Fit Homogeniety Independence EQ: What are expected values and how are they used to calculate Chi-Square?
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.
Goodness-of-FitSlide #1 Goodness-of-Fit Test Examples – –Test whether responses are “random” (e.g., preference) –Test Mendelian genetics (e.g., 3:1 and.
Chapter 14 Chi-Square Tests.  Hypothesis testing procedures for nominal variables (whose values are categories)  Focus on the number of people in different.
Chapter 12 The Analysis of Categorical Data and Goodness of Fit Tests.
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
DICE!  You are going to make your own and then we are going to test them (later) to see if they are fair!
Chapter 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
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.
Calculator steps: The calculator steps for this section can be found on YouTube or by clicking: HereHere Bluman, Chapter 111.
The Chi-Square Distribution  Chi-square tests for ….. goodness of fit, and independence 1.
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.
Test of Goodness of Fit Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007.
Comparing Counts Chi Square Tests Independence.
Other Chi-Square Tests
Chi-Square hypothesis testing
Chi-Square Test Section 12.1.
Chi-square test or c2 test
Chapter 3 Graphical and Tabular Displays of Data.
Different Scales, Different Measures of Association
Lecture 18 Section 8.3 Objectives: Chi-squared distributions
Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007
Presentation transcript:

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 gathered on gender, political party, college major, etc.

Categorical Variables Based on observations Univariate – single categorical variable  Example: Sample 100 people & ask if they agree or disagree with a question. Bivariate – uses two categorical variables  Example: Sample 100 people & ask if they are male/female and what political party they support.

One-Way Frequency Table - Univariate Democrat Independent RepublicanDemocratRepublicanIndependent Republican DemocratRepublicanIndependent Freq.462 Data Horizontal One-Way Table Freq. Democrat4 Republican6 Independent2 Vertical One- Way Table

Goodness of Fit Test Used to measure the extent to which the observed counts differ from the expected counts. K = # categories of a categorical variable df = k – 1 Test Statistic:

How Does a Hypothesis Test for Chi-Square Work?

Assumptions

Hypotheses H o : State each proportion’s hypothesized value. H A : At least 1 of the proportions differ from the hypothesized value.

It uses the Chi-Square Chart Positively Skewed Uses d.f. On calculator!

Is there a preference in type of car? Freq.Expected SUV27 Truck25 Sedan29 Sports19 P 1 =proportion who prefer a SUV P 2 =proportion who prefer a truck p 3 =proportion who prefer a sedan P 4 =proportion who prefer a sports car Assumptions: Random Samples & all cell counts are at least 5. Use a Chi-Square goodness of fit Test df = 3

A researcher believes that the number of homicides crimes in CA by season is uniformly distributed. To test this claim, you randomly select 1200 homicides from a recent year and record the season when each happened. SeasonFreq Spring312 Summer298 Fall297 Winter293

Results from a previous survey asking people who go to movies at least once a month are shown in the table below. To determine whether this distribution is still the same, you randomly select 1000 people who go to movies at least once a month and record the age of each. Are the distributions the same? AgeSurveyFreq % % % % %207

What’s your favorite flavor of ice-cream?

Observed A40%45 B30%52 C20%39 D5%8 F 6

Homework Worksheet