Goodness of Fit Test - Chi-Squared Distribution - PowerPoint PPT Presentation

About This Presentation
Title:

Goodness of Fit Test - Chi-Squared Distribution

Description:

Lesson 12 - 1 Goodness of Fit Test - Chi-Squared Distribution Vocabulary Goodness-of-fit test an inferential procedure used to determine whether a frequency ... – PowerPoint PPT presentation

Number of Views:230
Avg rating:3.0/5.0
Slides: 13
Provided by: pendragon9
Category:

less

Transcript and Presenter's Notes

Title: Goodness of Fit Test - Chi-Squared Distribution


1
Lesson 12 - 1
  • Goodness of Fit Test - Chi-Squared Distribution

2
Vocabulary
  • Goodness-of-fit test an inferential procedure
    used to determine whether a frequency
    distribution follows a claimed distribution.
  • Expected counts probability of an outcome times
    the number of trials for k mutually exclusive
    outcomes

3
Terms
  • Observed values, Oi values seen in the data
    (sample)
  • Expected values, Ei values predicted from the
    tested distribution
  • Ei µi npi for i 1, 2, , k
  • subset i is the ith category (or grouping) of
    data

4
Requirements
  • Goodness-of-fit test
  • All expected counts are greater than or equal to
    1 (all Ei 1)
  • No more than 20 of expected counts are less than
    5

5
Chi-Square Distribution
  • It is not symmetric
  • 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)

6
Goodness-of-Fit Test
P-Value is thearea highlighted
P-value P(?2 0)
?2a
Critical Region
where Oi is observed count for ith category
and Ei is the expected countfor the ith category
Reject null hypothesis, if
P-value lt a
?20 gt ?2a, k-1
(Right-Tailed)
7
Example
Yellow Orange Orange Red Green Brown Blue Totals
Sample 1 66 88 88 38 59 53 96 400
Sample 2 10 9 9 4 16 9 7 55

Peanut 0.15 0.23 0.23 0.12 0.15 0.12 0.23 1
Plain 0.14 0.2 0.2 0.13 0.16 0.13 0.24 1
K 6 classes (different colors) K 6 classes (different colors) K 6 classes (different colors) K 6 classes (different colors) K 6 classes (different colors) K 6 classes (different colors) K 6 classes (different colors)
CS(5,.1) CS(5,.05) CS(5,.05) CS(5,.025) CS(5,.01)
9.236 11.071 11.071 12.833 15.086
8
Example (sample 1)
  • H0H1
  • Test Statistic
  • Critical Value
  • Conclusion

The big bag came from Peanut MMs
The big bag did not come from Peanut MMs
Yellow Orange Red Green Brown Blue Totals
Observed 66 88 38 59 53 96 400
Expected 60 92 48 60 48 92 400
Chi-value 0.6 0.174 2.632 0.017 0.521 0.174 4.118
All critical values are bigger than 9!
FTR H0, not sufficient evidence to conclude bag
is not peanut MMs
9
Example (sample 2)
  • H0H1
  • Test Statistic
  • Critical Value
  • Conclusion

The snack bag came from Peanut MMs
The snack bag did not come from Peanut MMs
Yellow Orange Red Green Brown Blue Totals
Observed 10 9 4 16 9 7 55
Expected 8.25 12.65 6.6 8.25 6.6 12.65 400
Chi-value 0.371 1.053 1.024 7.280 0.873 2.524 13.125
All critical values are less than 13, except
fora 0.01!
Rej H0, sufficient evidence to conclude bag is
not peanut MMs
10
TI Chi-Square
  • Enter Observed values in L1
  • Enter Expected values in L2
  • Enter L4 by L4 (L1 L2)2/L2
  • Use sum function under the LIST menu to find the
    sum of L4. This is the value of the ?² test
    statistic

11
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
  • Homework
  • pg 638 - 641 1-3, 5, 9, 12, 18

12
Even Homework Answers
  • 2 since our test statistic involves a square
    (we get only positive values out), then only
    right tailed tests are appropriate
  • 12 done in class as example 1
  • 18a) FTR H0 not enough evidence to conclude die
    is loaded b) the lower the a level, the less
    chance calling someone a cheat when they really
    are not cheating
Write a Comment
User Comments (0)
About PowerShow.com