Lesson 14 - 1 Test for Goodness of Fit One-Way Tables.

Slides:



Advertisements
Similar presentations
Lesson 14 - R Chapter 14 Review:
Advertisements

CHAPTER 23: Two Categorical Variables: The Chi-Square Test
Chi Square Procedures Chapter 11.
Chapter 10 Chi-Square Tests and the F- Distribution 1 Larson/Farber 4th ed.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Goodness-of-Fit Test.
Chapter 11 Chi-Square Procedures 11.1 Chi-Square Goodness of Fit.
Ch 15 - Chi-square Nonparametric Methods: Chi-Square Applications
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 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
1 Chapter 20 Two Categorical Variables: The Chi-Square Test.
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.
Testing Distributions Section Starter Elite distance runners are thinner than the rest of us. Skinfold thickness, which indirectly measures.
Goodness-of-Fit Tests and Categorical Data Analysis
AP STATISTICS LESSON 13 – 1 (DAY 1) CHI-SQUARE PROCEDURES TEST FOR GOODNESS OF FIT.
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.
Section 10.1 Goodness of Fit. Section 10.1 Objectives Use the chi-square distribution to test whether a frequency distribution fits a claimed distribution.
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 Inference for Tables: Chi-Square Procedures 11.1 Target Goal:I can compute expected counts, conditional distributions, and contributions to.
Chapter 10 Chi-Square Tests and the F-Distribution
GOODNESS OF FIT Larson/Farber 4th ed 1 Section 10.1.
Chapter 11 Chi- Square Test for Homogeneity Target Goal: I can use a chi-square test to compare 3 or more proportions. I can use a chi-square test for.
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.
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
Lesson Inference for Two-Way Tables. Knowledge Objectives Explain what is mean by a two-way table. Define the chi-square (χ 2 ) statistic. Identify.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
Statistics 300: Elementary Statistics Section 11-2.
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:
The Practice of Statistics Third Edition Chapter 14: Inference for Distributions of Categorical Variables: Chi-Square Procedures Copyright © 2008 by W.
Chapter 11 Chi-Square Procedures 11.1 Chi-Square Goodness of Fit.
+ Section 11.1 Chi-Square Goodness-of-Fit Tests. + Introduction In the previous chapter, we discussed inference procedures for comparing the proportion.
Lesson Test to See if Samples Come From Same Population.
Chapter 14 Inference for Distribution of Categorical Variables: Chi-Squared Procedures.
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 &
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Section 10.1 Goodness of Fit © 2012 Pearson Education, Inc. All rights reserved. 1 of 91.
Chi-square test or c2 test
Inference about Two Means - Independent Samples
5.1 INTRODUCTORY CHI-SQUARE TEST
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Lecture Slides Elementary Statistics Twelfth Edition
Test for Goodness of Fit
Hypothesis Testing Review
Chapter 12 Tests with Qualitative Data
Chapter 10 Chi-Square Tests and the F-Distribution
Testing Goodness of Fit
Section 10-1 – Goodness of Fit
Chapter 11 Goodness-of-Fit and Contingency Tables
Elementary Statistics: Picturing The World
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Chi Square Two-way Tables
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Lesson Comparing Two Means.
Goodness of Fit Test - Chi-Squared Distribution
Chapter 11: Inference for Distributions of Categorical Data
Chapter 10 Analyzing the Association Between Categorical Variables
Hypothesis tests for the difference between two proportions
Inference on Categorical Data
Test to See if Samples Come From Same Population
Lesson 11 - R Chapter 11 Review:
Analyzing the Association Between Categorical Variables
Chapter 13: Inference for Distributions of Categorical Data
How do you know if the variation in data is the result of random chance or environmental factors? O is the observed value E is the expected value.
Section 11-1 Review and Preview
Inference for Two Way Tables
Chapter 14.1 Goodness of Fit Test.
Testing Claims about a Population Standard Deviation
Presentation transcript:

Lesson Test for Goodness of Fit One-Way Tables

Knowledge Objectives Describe the situation for which the chi-square test for goodness of fit is appropriate Define the χ 2 statistic, and identify the number of degrees of freedom it is based on, for the χ 2 goodness of fit test List the conditions that need to be satisfied in order to conduct a test χ 2 for goodness of fit Identify three main properties of the chi-square density curve

Construction Objectives Conduct a χ 2 test for goodness of fit. Use technology to conduct a χ 2 test for goodness of fit. If a χ 2 statistic turns out to be significant, discuss how to determine which observations contribute the most to the total value.

Vocabulary Goodness-of-fit test – an inferential procedure used to determine whether a categorical frequency distribution follows a claimed distribution. Expected counts – probability of an outcome times the sample size for k mutually exclusive outcomes One-way table – a table of k mutually exclusive observed values Cells – one item in the one-way table

Chi-Square Distributions

Chi-Square Distribution Total area under a chi-square curve is equal to 1 It is not symmetric, it is skewed right The shape of the chi-square distribution depends on the degrees of freedom (just like t-distribution) As the number of degrees of freedom increases, the chi-square distribution becomes more nearly symmetric The values of χ² are nonnegative; that is, values of χ² are always greater than or equal to zero (0); they increase to a peak and then asymptotically approach 0 Table D in the back of the book gives critical values

Chi-Square Test for Goodness of Fit

Conditions Goodness-of-fit test: Independent SRSs All expected counts are greater than or equal to 1 (all E i ≥ 1) No more than 20% of expected counts are less than 5 Remember it is the expected counts, not the observed that are critical conditions

Critical Region Reject null hypothesis, if P-value < α χ 2 0 > χ 2 α, k-1 P-Value is the area highlighted χ2αχ2α P-value = P(χ 2 0 ) Goodness-of-Fit Test where O i is observed count for ith category and E i is the expected count for the ith category ( O i – E i ) 2 Test Statistic: χ 2 0 = E i Σ (Right-Tailed)

Things to Avoid

Example 1 Are you more likely to have a motor vehicle collision when using a cell phone? A study of 699 drivers who were using a cell-phone when they were involved in a collision examined this question. These drivers made 26,798 cell phone calls during a 14 month study period. Each of the 699 collisions was classified in various ways. Are accidents equally likely to occur on any day of the week? SunMonTueWedThuFriSat

Example 1 – Graphical Analysis Are accidents equally likely to occur on any day of the week? SunMonTueWedThuFriSat

Example 1 – Chi-Square Analysis Are accidents equally likely to occur on any day of the week? Hypotheses: Conditions: H 0 : Motor vehicle accidents involving cell phones are equally likely to occur everyday of the week H a : Motor vehicle accidents involving cell phones will vary everyday of the week (not all the same) Expected counts (everyday) = 699/7 = )All expected counts > 0 2)All expected counts > 5

Example 1 – Chi-Square Analysis Are accidents equally likely to occur on any day of the week? Calculations: Interpretation: ItemSunMonTueWedThuFriSat Observed Expected99.86 χ² (Obs – Exp)² χ² = ∑ Exp χ² = ∑ ( ) = Since our χ² value is much greater than the critical value (208 > 24.1), we would reject H0 and conclude that the accidents are not equally likely each day of the week. χ² (n-1,p-value) = χ² (6, ) = 24.1

Example 2 YellowOrangeRedGreenBrownBlueTotals Sample Sample Peanut Plain K = 6 classes (different colors) CS(5,.1)CS(5,.05)CS(5,.025)CS(5,.01)

Example 2 (sample 1) H 0 : H 1 : Test Statistic Critical Value: Conclusion: YellowOrangeRedGreenBrownBlueTotals Observed Expected Chi-value ( O i – E i ) 2 Test Statistic: χ 2 0 = E i Σ The big bag came from Peanut M&Ms The big bag did not come from Peanut M&Ms All critical values are bigger than 9! FTR H 0, not sufficient evidence to conclude bag is not peanut M&M’s

Example 2 (sample 2) H 0 : H 1 : Test Statistic Critical Value: Conclusion: YellowOrangeRedGreenBrownBlueTotals Observed Expected Chi-value ( O i – E i ) 2 Test Statistic: χ 2 0 = E i Σ The snack bag came from Peanut M&Ms The snack bag did not come from Peanut M&Ms All critical values are less than 13, except for α = 0.01 ! Rej H 0, sufficient evidence to conclude bag is not peanut M&M’s

TI & Chi-Square (One-Way) Enter Observed values in L1 Enter Expected values in L2 Enter L3 by L3 = (L1 – L2)^2/L2 Use sum function under the LIST menu to find the sum of L3. This is the value of the χ² test statistic Largest values in L3 are the observations that are the largest contributors to the total value

Summary and Homework Summary –Goodness-of-fit tests apply to situations where there are a series of independent trials, and each trial has 3 or more possible outcomes –The test statistic to be used combines all of the outcomes and all of the expected counts –The test statistic has approximately a chi-square distribution –Calculator is a tool for one-way tables not a crutch! Homework –pg – 14.6, 14.8