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.

Slides:



Advertisements
Similar presentations
Inferential Statistics
Advertisements

Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
1 1 Slide © 2009 Econ-2030-Applied Statistics-Dr. Tadesse. Chapter 11: Comparisons Involving Proportions and a Test of Independence n Inferences About.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Goodness-of-Fit Test.
9-1 Hypothesis Testing Statistical Hypotheses Statistical hypothesis testing and confidence interval estimation of parameters are the fundamental.
Chapter 11 Chi-Square Procedures 11.1 Chi-Square Goodness of Fit.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 14 Goodness-of-Fit Tests and Categorical Data Analysis.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
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 9 Hypothesis Testing.
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
Chi-square Goodness of Fit Test
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 8 Tests of Hypotheses Based on a Single Sample.
Goodness of Fit Test for Proportions of Multinomial Population Chi-square distribution Hypotheses test/Goodness of fit test.
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
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
Fundamentals of Hypothesis Testing: One-Sample Tests
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson Introduction to Hypothesis Testing.
Chapter 9 Hypothesis Testing: Single Population
+ Chapter 9 Summary. + Section 9.1 Significance Tests: The Basics After this section, you should be able to… STATE correct hypotheses for a significance.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on Categorical Data 12.
13.1 Goodness of Fit Test AP Statistics. Chi-Square Distributions The chi-square distributions are a family of distributions that take on only positive.
9-1 Hypothesis Testing Statistical Hypotheses Definition Statistical hypothesis testing and confidence interval estimation of parameters are.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. 1.. Section 11-2 Goodness of Fit.
Copyright © 2009 Cengage Learning 15.1 Chapter 16 Chi-Squared Tests.
Chapter 26 Chi-Square Testing
Chapter 11 Inference for Tables: Chi-Square Procedures 11.1 Target Goal:I can compute expected counts, conditional distributions, and contributions to.
Chapter 11: Inference for Distributions of Categorical Data Section 11.1 Chi-Square Goodness-of-Fit Tests.
1 In this case, each element of a population is assigned to one and only one of several classes or categories. Chapter 11 – Test of Independence - Hypothesis.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
United Stats Of AMERICA. Unit 7 chapters Jordo, Rob III, Kins and Toph.
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.
Hypothesis Testing State the hypotheses. Formulate an analysis plan. Analyze sample data. Interpret the results.
FPP 28 Chi-square test. More types of inference for nominal variables Nominal data is categorical with more than two categories Compare observed frequencies.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
1 9 Tests of Hypotheses for a Single Sample. © John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger. 9-1.
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.
1 1 Slide © 2009 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Chapter Outline Goodness of Fit test Test of Independence.
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.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
Lecture 11. The chi-square test for goodness of fit.
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
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.
Chapter 11 Chi-Square Procedures 11.1 Chi-Square Goodness of Fit.
1 Section 8.5 Testing a claim about a mean (σ unknown) Objective For a population with mean µ (with σ unknown), use a sample to test a claim about the.
Hypothesis Tests u Structure of hypothesis tests 1. choose the appropriate test »based on: data characteristics, study objectives »parametric or nonparametric.
11.1 Chi-Square Tests for Goodness of Fit Objectives SWBAT: STATE appropriate hypotheses and COMPUTE expected counts for a chi- square test for goodness.
CHAPTER 11: INFERENCE FOR DISTRIBUTIONS OF CATEGORICAL DATA 11.1 CHI-SQUARE TESTS FOR GOODNESS OF FIT OUTCOME: I WILL STATE APPROPRIATE HYPOTHESES AND.
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.
The Chi-Square Distribution  Chi-square tests for ….. goodness of fit, and independence 1.
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 DISTRIBUTION. The Chi-Square (  2 ) Distribution The chi-square distribution is the probability distribution of the sum of several independent,
Section 10.1 Goodness of Fit © 2012 Pearson Education, Inc. All rights reserved. 1 of 91.
Test of Goodness of Fit Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007.
Chapter 11 – Test of Independence - Hypothesis Test for Proportions of a Multinomial Population In this case, each element of a population is assigned.
Lecture Slides Elementary Statistics Twelfth Edition
Chapter 12 Tests with Qualitative Data
Chapter 11 Goodness-of-Fit and Contingency Tables
Lecture 18 Section 8.3 Objectives: Chi-squared distributions
Inference on Categorical Data
Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007
Presentation transcript:

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 expected values are not close and the model is a poor fit to the data.

When to Use the Chi-Square Goodness of Fit Test The chi-square goodness of fit test is appropriate when the following conditions are met: The sampling method is simple random sampling.simple random sampling The population is at least 10 times as large as the sample. The variable under study is categorical.categorical The expected value of the number of sample observations in each level of the variable is at least 5.level This approach consists of four steps: (1) state the hypotheses, (2) formulate an analysis plan, (3) analyze sample data, and (4) interpret results.state the hypotheses,formulate an analysis plan, analyze sample datainterpret results.

H 0 : The data are consistent with a specified distribution. H a : The data are not consistent with a specified distribution. State the Hypotheses Every hypothesis test requires the analyst to state a null hypothesis and an alternative hypothesis. The hypotheses are stated in such a way that they are mutually exclusive. That is, if one is true, the other must be false; and vice versa.null hypothesisalternative hypothesis For a chi-square goodness of fit test, the hypotheses take the following form. Typically, the null hypothesis specifies the proportion of observations at each level of the categorical variable. The alternative hypothesis is that at least one of the specified proportions is not true.

Formulate an Analysis Plan The analysis plan describes how to use sample data to accept or reject the null hypothesis. The plan should specify the following elements. Significance level. Often, researchers choose significance levels equal to 0.01 (99% confident), 0.05 (95% confident), or 0.10 (90% confident. significance levels Test method. Use the chi-square goodness of fit test to determine whether observed sample frequencies differ significantly from expected frequencies specified in the null hypothesis. The chi-square goodness of fit test is described in the next section, and demonstrated in the sample problem at the end of this lesson.chi-square goodness of fit test

Analyze Sample Data Using sample data, find the degrees of freedom, expected frequency counts, test statistic, and the P-value associated with the test statistic. Degrees of freedom. The degrees of freedom (DF) is equal to the number of categories (k) of the categorical variable minus 1: DF = k - 1.degrees of freedom *BE CAREFUL! The degrees of freedom for a chi-squared goodness of fit test is not the same as the degrees of freedom for a t-test. Expected frequency counts. The expected frequency counts at each level of the categorical variable are equal to the sample size times the hypothesized proportion from the null hypothesis E i = np i where E i is the expected frequency count for the ith level of the categorical variable, n is the total sample size, and p i is the hypothesized proportion of observations in level i.

Test statistic. The test statistic is a chi-square random variable (Χ 2 ) defined by the following equation. Χ 2 = Σ [ (O i - E i ) 2 / E i ] where O i is the observed frequency count for the ith level of the categorical variable, and E i is the expected frequency count for the ith level of the categorical variable. P-value. The P-value is the probability of observing a sample statistic as extreme as the test statistic. To calculate the p- value, we can use the X2 CDF function of our calculator: P-Value = X 2 CDF (X 2, A very large number, degrees of freedom)

Interpret Results If the sample findings are unlikely, given the null hypothesis, the researcher rejects the null hypothesis. 1)Typically, this involves comparing the P-value to the significance level, and rejecting the null hypothesis when the P-value is less than the significance level.significance level 2)Alternatively, if the chi-squared test statistic is larger than the critical value, then we can reject the null hypothesis.

Problem Acme Toy Company prints baseball cards. The company claims that 30% of the cards are rookies, 60% veterans, and 10% are All-Stars. The cards are sold in packages of 100. Suppose a randomly-selected package of cards has 50 rookies, 45 veterans, and 5 All-Stars. Is this consistent with Acme's claim? Use a 0.05 level of significance.

Solution The solution to this problem takes four steps: (1) state the hypotheses, (2) formulate an analysis plan, (3) analyze sample data, and (4) interpret results. We work through those steps below: 1.State the hypotheses. The first step is to state the null hypothesis and an alternative hypothesis. Null hypothesis(H 0 ): The proportion of rookies, veterans, and All-Stars is 30%, 60% and 10%, respectively. Alternative hypothesis(H a ): At least one of the proportions in the null hypothesis is false.

2. Formulate an analysis plan. For this analysis, the significance level is Using sample data, we will conduct a chi-square goodness of fit test of the null hypothesis.chi-square goodness of fit test 3. Analyze sample data. Applying the chi-square goodness of fit test to sample data, we compute the degrees of freedom, the expected frequency counts, and the chi-square test statistic. Based on the chi-square statistic and the degrees of freedom, we determine the P-value.degrees of freedomP-value DF = k = 2 (E i ) = n * p i (E 1 ) = 100 * 0.30 = 30 (E 2 ) = 100 * 0.60 = 60 (E 3 ) = 100 * 0.10 = 10 Χ 2 = Σ [ (O i - E i ) 2 / E i ] Χ 2 = [ ( ) 2 / 30 ] + [ ( ) 2 / 60 ] + [ (5 - 10) 2 / 10 ] Χ 2 = (400 / 30) + (225 / 60) + (25 / 10) = = where DF is the degrees of freedom, k is the number of levels of the categorical variable, n is the number of observations in the sample, E i is the expected frequency count for level i, O i is the observed frequency count for level i, and Χ 2 is the chi-square test statistic. The P-value is the probability that a chi-square statistic having 2 degrees of freedom is more extreme than

4. Interpret results. Since the P-value (0.0001) is less than the significance level (0.05), we cannot accept the null hypothesis. (Alternatively, the chi-squared test statistic exceeds the critical value of 5.99 according to the right-tail area of the chi-squared distribution) NoteNote: If you use this approach on an exam, you may also want to mention why this approach is appropriate. The approach is appropriate because the sampling method was simple random sampling, the population was more than 10 times larger than the sample, the variable under study was categorical, and each level of the categorical variable had an expected frequency count of at least 5.

A new casino game involves rolling 3 dice. The winnings are directly proportional to the total number of sixes rolled. Suppose a gambler plays the game 100 times, with the following observed counts: Number of Sixes Number of Rolls The casino becomes suspicious of the gambler and wishes to determine whether the dice are fair. What do they conclude?