Download presentation

Presentation is loading. Please wait.

Published byDevonte Troutt Modified over 2 years ago

1
AP STATS SECTION 13.1 Test for Goodness of Fit (aka χ 2 )

2
What is Chi- Squared? Definition: 1) A single test that can be applied to see if the observed sample distribution is different from the hypothesized population distribution. 2) A test to compare several proportions at the same time.

3
What is Chi – Squared? Shape: Degree of freedom = number of categories – 1 Only positive values (no such thing as a negative proportion). Skewed to the right. As the number of categories increases, the shape becomes less skewed. (see pg. 708) Area under the curve is still 1

4
Goodness of Fit Test Lets look at how things are different with this test… Hypothesis: Ho: observed percents = expected percents Ha: observed percents expected percents **These must be written in context! Test Stat: Where O = observed counts and E = expected counts

5
Goodness of Fit Test Assumptions: All expected counts are at least 5. Independent (if needed) SRS P – Value: Option #1: Table E (pg. 842) look for χ 2 in the row Option #2: Calculator Value (sort of) Conclusions: Stay the same.

6
Goodness of Fit Test Lets go through an example (pg. 703) with PHANTOMS. P = Parameter of interest is χ 2. H = Ho: the 1996 age group distribution = the 1980 age group distribution Ha: the 1996 age group distribution the 1980 age group distribution A =We will come back to this in a minute…

7
Goodness of Fit Test We need to organize our data to continue: Now we need to figure out what the expected values are. Look at 0 – 24 years first. If the years are equal: 500(41.39) = CategoryObservedExpected(O-E) 2 /E years – 44 yrs – 64 yrs

8
Goodness of Fit Test Here are all of the expected counts and calculations: So now we can go back to the assumptions: SRS – says so in the problem on pg. 703 Independence not needed here. All expected counts are at least 5. CategoryObservedExpected(O-E) 2 /E years yrs yrs

9
Goodness of Fit Test N = χ 2 goodness of fit test T = now we calculate the value of χ 2 from the last column of the table. So our χ 2 value is: 8.21 CategoriesObservedExpected(O-E) 2 /E 0-24 years yrs yrs

10
Goodness of Fit Test O = to find the p-value, go to Table E df = 3 and χ 2 = 8.21 From Table E, or p-value is between.025 and.05 M = if we still assume α=.10, we would reject the Ho. S= There is evidence that the age distribution for 1996 is not the same as the age distribution for 1980.

11
Calculator Issues Not really a function for goodness of fit test. Here is what you can do… First, plug in the observed count to list 1, and expected to list 2. In list 3, define it as (L1-L2) 2 /L2 Now go to List- Math - #5 (sum) and sum up list 3 to get χ 2. Now go to Distr - #7 (χ 2 cdf) and hit enter. In the home screen, you have to plug in the following three items: (χ 2,big number, df), for the big number is good. The number you get is the more accurate p-value. So now you see why I think that Table E is faster…

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google