13.1 Test for Goodness of Fit.  Perform and analyze a chi-squared test for goodness of fit.

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

1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Goodness-of-Fit Tests.
CHAPTER 23: Two Categorical Variables: The Chi-Square Test
12.1 Inference for A Population Proportion.  Calculate and analyze a one proportion z-test in order to generalize about an unknown population proportion.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Homogeneity.
Warm-up 1) The first 115 Kentucky Derby winners by color of horse were as follows: roan 1; gray, 4; chestnut, 36; bay, 53; dark bay, 17; and black, 4.
Statistics Are Fun! Analysis of Variance
CJ 526 Statistical Analysis in Criminal Justice
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.
Chi-square Goodness of Fit Test
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.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Test of Independence.
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.
Testing Distributions Section Starter Elite distance runners are thinner than the rest of us. Skinfold thickness, which indirectly measures.
AP STATISTICS LESSON 13 – 1 (DAY 1) CHI-SQUARE PROCEDURES TEST FOR GOODNESS OF FIT.
Warm-up Ch.11 Inference for Linear Regression (Day 1) 1. The following is from a particular region’s mortality table. What is the probability that a 20-year-old.
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.
CJ 526 Statistical Analysis in Criminal Justice
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.
Chi-Square as a Statistical Test Chi-square test: an inferential statistics technique designed to test for significant relationships between two variables.
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.
Chi-square test Chi-square test or  2 test Notes: Page 217, and your own notebook paper 1.Goodness of Fit 2.Independence 3.Homogeneity.
3 Unique Chi-Square 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.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
13.1 Test for Goodness of Fit.  Perform and analyze a chi-squared test for goodness of fit.
Testing Hypothesis That Data Fit a Given Probability Distribution Problem: We have a sample of size n. Determine if the data fits a probability distribution.
Section 8-5 Testing a Claim about a Mean: σ Not Known.
BPS - 5th Ed. Chapter 221 Two Categorical Variables: The Chi-Square Test.
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.
Chi-Square Test James A. Pershing, Ph.D. Indiana University.
Comparing Counts.  A test of whether the distribution of counts in one categorical variable matches the distribution predicted by a model is called a.
Chapter 13 Inference for Counts: Chi-Square Tests © 2011 Pearson Education, Inc. 1 Business Statistics: A First Course.
13.2 Inference for Two Way Tables.  Analyze Two Way Tables Using Chi-Squared Test for Homogeneity and Independence.
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.1 Inference for the Mean of a Population.  Perform a one sample t-test for the mean of a population  Perform a matched pairs t-test.
12.1 Inference for A Population Proportion.  Calculate and analyze a one proportion z-test in order to generalize about an unknown population proportion.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
Chapter 14 Chi-Square Tests.  Hypothesis testing procedures for nominal variables (whose values are categories)  Focus on the number of people in different.
The table below gives the pretest and posttest scores on the MLA listening test in Spanish for 20 high school Spanish teachers who attended an intensive.
Lecture 11. The chi-square test for goodness of fit.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Inference for Tables Catapult Discovery Question: –How does a cat land (feet, side, nose/face)? –Write your predictions in percent. Collect data for.
Chi squared. A biologist randomly selects 20 fruit flies. All of them are placed in a tube with vinegar on one side and mustard on the other side. Do.
By.  Are the proportions of colors of each M&M stated by the M&M company true proportions?
Section 6.4 Inferences for Variances. Chi-square probability densities.
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.
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.
BPS - 5th Ed. Chapter 221 Two Categorical Variables: The Chi-Square Test.
+ Section 11.1 Chi-Square Goodness-of-Fit Tests. + Introduction In the previous chapter, we discussed inference procedures for comparing the proportion.
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 &
13.2 Inference for Two Way Tables.  Analyze Two Way Tables Using Chi-Squared Test for Homogeneity and Independence.
Inference for Tables Chi-Square Tests Chi-Square Test Basics Formula for test statistic: Conditions: Data is from a random sample/event. All individual.
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.
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.
CHI SQUARE DISTRIBUTION. The Chi-Square (  2 ) Distribution The chi-square distribution is the probability distribution of the sum of several independent,
Chi-square test or c2 test
Chapter 12 Tests with Qualitative Data
Sun. Mon. Tues. Wed. Thurs. Fri. Sat.
Chapter 10 Analyzing the Association Between Categorical Variables
Lesson 11 - R Chapter 11 Review:
Analyzing the Association Between Categorical Variables
Inference for Tables Chi-Square Tests Ch. 11.
13.1 Test for Goodness of Fit
Presentation transcript:

13.1 Test for Goodness of Fit

 Perform and analyze a chi-squared test for goodness of fit.

 Chi-Squared ( ) test for goodness of fit- a single test that can be applied to see if the observed sample distribution is different from the hypothesized population distribution.  H₀:The distribution of the sample data is the SAME as the population  Ha:The distribution of the sample data is DIFFERENT than the population

Chi-Squared test statistic:

 1-Random Sample  2-All expected counts are greater than 1  3-No more than 20% of expected counts are less than 5 **You need to list out your expected counts as part of your assumptions**  Degrees of freedom = n-1 where, n= # of categories

 1- L₁: input your observed L₂: input your expected  2- stat-test-x²GOF test This will give you your x² and p-value.

 If it’s a multiple choice and they just give you the x² value and ask for the p-value, use: 2nd vars: x²cdf(x²,1000,df)=p-value Try this example: x²=6.7 with df=5 2nd vars: x²cdf(6.7,1000,5)= Your p-value is !

 Area under the curve= 1  Skewed to the right (since we are squaring, we can’t have a negative value)  As the degrees of freedom increase, the closer to a normal distribution your curve becomes

 Ex 1: The “graying of America” is the recent belief that with better medicine and healthier lifestyles, people are living longer, and consequently a larger percentage of the population is of retirement age. Is this perception accurate? (Is there evidence that the distribution of ages changed drastically in 1996 from 1980?)  US Population by age group, 1980 Age Group Population(in thousandths) Percent , , , older25, Total 226,

 We select an SRS of 500. We first calculate our expected counts AgeObserved Count 1980 pop %Expected Counts (.4139) (.2768) (.1964) (.1128)56.4

 H₀: the distribution of the ages in 1996 is the SAME as it was in 1980  Ha: the distribution of the ages in 1996 is DIFFERENT than it was in 1980  Assumptions: -random sample -all expected counts are ≥ 1 -no more than 20% of expected counts are < 5 (See chart of expected counts)  Chi-squared test (goodness of fit) w/ α=0.05  P(x²>8.214)= df=4-1=3  Since p<α, it is statistically significant, therefore we reject H₀. There is enough evidence to say the distribution of ages in 1996 is different than it was in 1980

 Ex 2: A wheel at a carnival game is divided into 5 equal parts. You suspect the wheel is unbalanced. The results of 100 spins are listed below. Perform a goodness of fit test. Is there evidence the wheel is not balanced?  H₀:The wheel is balanced  Ha: The wheel is unbalanced OutcomesFree SpinYou LoseTeddy Bear Baseball Card Airplane Frequency

 Assumptions: -random sample -all expected counts are ≥ 1 -no more than 20% of expected counts are < 5 Chi-Squared Test (goodness of fit) w/ α=0.05 P(x²>6.8)=0.146 df=4 Since p∡α, it is not statistically significant, therefore we do not reject H₀. There is not enough evidence to say the wheel is unbalanced. Expected counts Free SpinYou LoseTeddy Bear Baseball Card Airplane Frequency20