Goodness of Fit Tests The goal of goodness of fit tests is to test if the data comes from a certain distribution. There are various situations to which.

Slides:



Advertisements
Similar presentations
What is Chi-Square? Used to examine differences in the distributions of nominal data A mathematical comparison between expected frequencies and observed.
Advertisements

Chapter 18: The Chi-Square Statistic
1 Chi-Square Test -- X 2 Test of Goodness of Fit.
Lecture (11,12) Parameter Estimation of PDF and Fitting a Distribution Function.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 14 Goodness-of-Fit Tests and Categorical Data Analysis.
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.
1 © Lecture note 3 Hypothesis Testing MAKE HYPOTHESIS ©
Chapter 26: Comparing Counts AP Statistics. Comparing Counts In this chapter, we will be performing hypothesis tests on categorical data In previous chapters,
Week 131 Paired t- test - Example OISE sponsored summer institute to improve the skills of high school teachers of foreign languages. One such institute.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Slide 26-1 Copyright © 2004 Pearson Education, Inc.
Fitting probability models to frequency data. Review - proportions Data: discrete nominal variable with two states (“success” and “failure”) You can do.
Copyright © 2010 Pearson Education, Inc. Slide
Comparing Counts.  A test of whether the distribution of counts in one categorical variable matches the distribution predicted by a model is called a.
Inen 460 Lecture 2. Estimation (ch. 6,7) and Hypothesis Testing (ch.8) Two Important Aspects of Statistical Inference Point Estimation – Estimate an unknown.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
Statistics 300: Elementary Statistics Section 11-2.
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
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.
Lec. 19 – Hypothesis Testing: The Null and Types of Error.
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.
Class Seven Turn In: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 For Class Eight: Chapter 20: 18, 20, 24 Chapter 22: 34, 36 Read Chapters 23 &
Chi-Två Test Kapitel 6. Introduction Two statistical techniques are presented, to analyze nominal data. –A goodness-of-fit test for the multinomial experiment.
AP Statistics Chapter 13 Section 1. 2 kinds of Chi – Squared tests 1.Chi-square goodness of fit – extends inference on proportions to more than 2 proportions.
The Chi-Square Distribution  Chi-square tests for ….. goodness of fit, and independence 1.
Goodness-of-Fit A test of whether the distribution of counts in one categorical variable matches the distribution predicted by a model is called a goodness-of-fit.
Test of Goodness of Fit Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007.
FREQUENCY DISTRIBUTION
Comparing Counts Chi Square Tests Independence.
Ch 26 – Comparing Counts Day 1 - The Chi-Square Distribution
Keller: Stats for Mgmt & Econ, 7th Ed Chi-Squared Tests
Statistical Analysis Professor Lynne Stokes
Chapter 4. Inference about Process Quality
Test for Goodness of Fit
Chapter 12 Tests with Qualitative Data
Active Learning Lecture Slides
John Loucks St. Edward’s University . SLIDES . BY.
Chapter 25 Comparing Counts.
Goodness-of-Fit Tests
Goodness of Fit Tests The goal of χ2 goodness of fit tests is to test is the data comes from a certain distribution. There are various situations to which.
Chapter 11 Goodness-of-Fit and Contingency Tables
Statistics for Business and Economics (13e)
Chi-Square Goodness of Fit
Elementary Statistics: Picturing The World
Goodness-of-Fit Tests
CONCEPTS OF ESTIMATION
Chi Square Two-way Tables
Lecture 18 Section 8.3 Objectives: Chi-squared distributions
Econ 3790: Business and Economics Statistics
Chapter 11: Inference for Distributions of Categorical Data
Goodness-of-Fit Tests Applications
Lecture 36 Section 14.1 – 14.3 Mon, Nov 27, 2006
15.1 Goodness-of-Fit Tests
Inference on Categorical Data
Contingency tables and goodness of fit
Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007
Lesson 11 - R Chapter 11 Review:
Analyzing the Association Between Categorical Variables
CHAPTER 11 CHI-SQUARE TESTS
Chapter 26 Comparing Counts.
Inference for Tables Chi-Square Tests Ch. 11.
Chapter 26 Comparing Counts Copyright © 2009 Pearson Education, Inc.
13.1 Test for Goodness of Fit
Chapter 26 Comparing Counts.
Chapter Outline Goodness of Fit test Test of Independence.
Hypothesis Testing - Chi Square
15 Chi-Square Tests Chi-Square Test for Independence
Lecture 43 Section 14.1 – 14.3 Mon, Nov 28, 2005
Professor Ke-Sheng Cheng
Presentation transcript:

Goodness of Fit Tests The goal of goodness of fit tests is to test if the data comes from a certain distribution. There are various situations to which these tests apply. The first situation we will explore is when we observe count data in k different categories in which case we will use the χ2 test. The aim is to test the null hypothesis that the probabilities of the k categories are p1, p2,…,pk. We distinguish between two cases. STA286 week 11

Chi-Squared Test - Case 1 The null hypothesis completely specifies the probabilities of each of the k categories. For each category we calculate the expected count Ei = npi. The test statistic and its distribution are… STA286 week 11

Example The statistic department at U of T offers introductory courses for students from other disciplines. The department believes that 40% of the students are math major, 30% are computer science, 20% biology and 10% chemistry. A random sample of 120 students revealed 52, 38, 21, and 9 from the four majors above. Does this data support the department claim? STA286 week 11

Chi-Squared Test - Case 2 The null hypothesis does not fully specify the probabilities. In this case the probabilities of the different categories may be functions of other parameters. First use the sample data to estimate r unknown parameters. Then use the estimated parameters to estimate the k probabilities. For each category, calculate the estimated expected count. The test statistic is… STA286 week 11

Example A farmer believes that the number of eggs a chicken will give per day has a Poisson(λ) distribution. He observed the following data…. STA286 week 11

Remark In many cases we will observe data that are not categorized and we would want to test if the data comes from a certain distribution. If the distribution we are testing is discrete the values of the variable will be the actual categories. However, if the variable takes infinite possible values, the grouping should be done so that the expected frequency in each category is at least 5. If the distribution we are testing is continuous we need to group the measurement of the random variable of interest into k intervals. Very often the choice of cells is done arbitrarily. χ2 tests has low power when they are applied to continuous data, in which case we can use other tests. STA286 week 11

Kolmogorov-Smirnov Goodness-of-Fit Test K-S test is also called the Kolmogorov-Smirnov D test. The K-S goodness-of-fit test tests whether or not a given distribution is not significantly different from one hypothesized. It is a more powerful alternative to chi-square goodness-of-fit tests. The test statistic in the K-S test is based on the largest absolute difference between the cumulative observed proportion and the cumulative proportion expected on the basis of the hypothesized distribution. STA286 week 11

Example STA286 week 11