Docsity

Multinomial Experiments and Contingency Tables - Lecture Slides | MATH 0013, Study notes of Statistics

Toggle sidebar
bg1
1
Sierra College – Math 13
Spring 2009 – Class 29/32
Today: Sections 11-1/11-2
Assignment: 11-2 {1, 3, 5, 9, 13, 15}
Next: Sections 11-3; 10-1/10-2
Instructor: John Burke
Web Page: http://math.sierracollege.edu/Staff/JohnBur ke/
Telephone: 916 337-0425
Office hours: (V-307) MW 2:35-5:00; M 2:45-3:45 (official)
2
Chapter 11
Multinomial Experiments and
Contingency Tables
11-1 Overview
11-2 Multinomial Experiments: Goodness-of-fit
11-3 Contingency Tables:Independence and Homogeneity
3
Multinomial Experiments and
Contingency Tables
A mouthful, but they mean,
Multinomial Experiments: Determining whether observed
values are consistent with expectatio ns.
To “prove” or “validate” a model or hypothesis about
expectations.
To show fraud or inconsistencies to known
expectations.
Contingency Tables: Determine the independence or
dependence of data.
pf3
pf4
pf5
pf8

Partial preview of the text

Download Multinomial Experiments and Contingency Tables - Lecture Slides | MATH 0013 and more Study notes Statistics in PDF only on Docsity!

Sierra College – Math 13

Spring 2009 – Class 29/

Today: Sections 11-1/11-

Assignment: 11-2 {1, 3, 5, 9, 13, 15}

Next: Sections 11-3; 10-1/10-

Instructor: John Burke

E-mail: [email protected]

Web Page: http://math.sierracollege.edu/Staff/JohnBurke/

Telephone: 916 337-

Office hours: (V-307) MW 2:35-5:00; M 2:45-3:45 (official)

Chapter 11

Multinomial Experiments and

Contingency Tables

11-1 Overview

11-2 Multinomial Experiments: Goodness-of-fit

11-3 Contingency Tables:Independence and Homogeneity

Multinomial Experiments and

Contingency Tables

A mouthful, but they mean,

Multinomial Experiments: Determining whether observed

values are consistent with expectations.

To “prove” or “validate” a model or hypothesis about

expectations.

To show fraud or inconsistencies to known

expectations.

Contingency Tables: Determine the independence or

dependence of data.

11 - Chapter Problem – Benford’s Law

Benford’s Law: a variety of different, though common, data

sets (stock market values, population sizes, amounts on tax

returns, lengths of rivers, and check amounts) include

numbers with leading (first) digits that follow the distribution

below.

Leading Digit Frequency

11 - Chapter Problem – Benford’s Law

There appear to be major differences between the

frequencies expected from Benford’s Law and the observed

check amounts.

Are those discrepancies significant?

Is there enough evidence to justify the conclusion that fraud

has been committed?

Is the evidence beyond reasonable doubt?

Actual for 784 checks 0 15 0 76 479 183 8 23 0

Expected w/ 784 checks 235.984 137.984 98.00076.048 61.936 52.528 45.472 39.98436.

Frequency (Benford’s Law) 30.1% 17.6% 12.5% 9.7% 7.9% 6.7% 5.8% 5.1% 4.6%

Leading Digit 1 2 3 4 5 6 7 8 9

11-1 Overview

Recall: Categorical (or qualitative, or attribute) data is data

that can be separated into different categories (or cells).

Example: take a bag of M&Ms and separate into color

categories.

The goal of this chapter is to develop methods to test claims

about categorical data consisting of frequency counts.

The methods we use utilize the

(Chi-square) Distribution

10

Chi-Square ( x

2

) Distribution

Degrees of Area to the Right of the Critical Value freedom

Multinomial Experiment - Conditions

The number of trials is fixed.

The trials are independent. All outcomes of each trial must be classified into exactly one of several different categories. The probabilities for the different categories remain

 - 0. _ - 0. - 0. - 0. - 0. - 0. - 1. - 1. - 2. - 2. - 3. - 3. - 4. - 4. - 5. - 5. - 6. - 6. - 7. - 8. - 8. - 9. - 9. 
    • Table A- - 0. _ - 0. - 0. - 0. - 0. - 1. - 1. - 2. - 2. - 3. - 3. - 4. - 4. - 5. - 5. - 6. - 7. - 7. - 8. - 8. - 9. - 10. - 10. - 11. - 12. - 12. - 13. - 14. - 14. - 22. - 29. - 37. - 45. - 53. - 61. - 70. - 0. - 0. - 0. - 0. - 0. - 1. - 1. - 2. - 2. - 3. - 3. - 4. - 5. - 5. - 6. - 6. - 7. - 8. - 8. - 9. - 10. - 10. - 11. - 12. - 13. - 13. - 14. - 15. - 16. - 16. - 24. - 32. - 40. - 48. - 57. - 65. - 74. - 0. - 0. - 0. - 0. - 1. - 1. - 2. - 2. - 3. - 3. - 4. - 5. - 5. - 6. - 7. - 7. - 8. - 9. - 10. - 10. - 11. - 12. - 13. - 13. - 14. - 15. - 16. - 16. - 17. - 18. - 26. - 34. - 43. - 51. - 60. - 69. - 77. - 0. - 0. - 0. - 1. - 1. - 2. - 2. - 3. - 4. - 4. - 5. - 6. - 7. - 7. - 8. - 9. - 10. - 10. - 11. - 12. - 13. - 14. - 14. - 15. - 16. - 17. - 18. - 18. - 19. - 20. - 29. - 37. - 46. - 55. - 64. - 73. - 82. - 2. - 4. - 6. - 7. - 9. - 10. - 12. - 13. - 14. - 15. - 17. - 18. - 19. - 21. - 22. - 23. - 24. - 25. - 27. - 28. - 29. - 30. - 32. - 33. - 34. - 35. - 36. - 37. - 39. - 40. - 51. - 63. - 74. - 85. - 96. - 107. - 118. - 3. - 5. - 7. - 9. - 11. - 12. - 14. - 15. - 16. - 18. - 19. - 21. - 22. - 23. - 24. - 26. - 27. - 28. - 30. - 31. - 32. - 33. - 35. - 36. - 37. - 38. - 40. - 41. - 42. - 43. - 55. - 67. - 79. - 90. - 101. - 113. - 124. - 5. - 7. - 9. - 11. - 12. - 14. - 16. - 17. - 19. - 20. - 21. - 23. - 24. - 26. - 27. - 28. - 30. - 31. - 32. - 34. - 35. - 36. - 38. - 39. - 40. - 41. - 43. - 44. - 45. - 46. - 59. - 71. - 83. - 95. - 106. - 118. - 129. - 6. - 9. - 11. - 13. - 15. - 16. - 18. - 20. - 21. - 23. - 24. - 26. - 27. - 29. - 30. - 32. - 33. - 34. - 36. - 37. - 38. - 40. - 41. - 42. - 44. - 45. - 46. - 48. - 49. - 50. - 63. - 76. - 88. - 100. - 112. - 124. - 135. - 7. - 10. - 12. - 14. - 16. - 18. - 20. - 21. - 23. - 25. - 26. - 28. - 29. - 31. - 32. - 34. - 35. - 37. - 38. - 39. - 41. - 42. - 44. - 45. - 46. - 48. - 49. - 50. - 52. - 53. - 66. - 79. - 91. - 104. - 116. - 128. - 140.
    • 0.995 0.99 0.975 0.95 0.90 0.10 0.05 0.025 0.01 0. - Critical Values: Table A-
        1.  - 0. - X - = 2. L - X 2 R = 19. (df = 9) - 0. - 0. 

Chi-Square “Goodness of Fit” Test

Used to compare observed frequency distributions (sample

data) to distributions we expect to observe according to

some theory or study (hypothesized values).

We are testing to see if the idea was a “good fit” or not. That

is, we want to determine if the expected values reasonably

match the observed values.

H

: The idea used to generate the expected values is valid

(Fail to Reject H

Î Good-Fit).

H

: The idea used to generate the expected values is not

valid (Reject H

Î Bad-Fit).

Chi-Square “Goodness of Fit” Test

Assumptions

The data have been randomly selected.

The sample data consist of frequency counts for each of the

different categories.

For each category, the expected frequency is at least 5.

Test statistic:

Critical Values:

Critical values are found in Table A-4 by using k-1 degrees

of freedom, where k = number of categories.

Goodness-of-Fit hypothesis tests are always right-tailed.

( O E )

E

Expected Frequencies

If all expected frequencies are equal:

the sum of all observed frequencies divided by the

number of categories

n

E =

k

A close agreement between observed and expected values

will lead to a small value of X

and a large p -value.

A large disagreement between observed and expected

values will lead to a large value of X

and a small p -value.

A significantly large value of X

will cause a rejection of the

null hypothesis which specifies no difference between the

observed and the expected.

Relationships Among Components in

Goodness-of-Fit Hypothesis Test

Relationships Among

Components in

Goodness-of-Fit

Hypothesis Test

Compare the observed (O)

values to the corresponding

expected (E) values.

Large X

Small X value means small p-value

value means large p-value

Fail to reject H

Reject H 0

Good fit with

assumed distribution

Not a good fit with

assumed distribution

O s and E s

are far apart

O s and E s

are close

Example: Mars, Inc. claims its M&M candies are distributed with the

color percentages of 30% brown, 20% yellow, 20% red, 10% orange, 10%

green, and 10% blue. At the 0.05 significance level, test the claim that the color

distribution is as claimed by Mars, Inc.

1. Put the observed frequencies into L

and the expected

proportions into L

2. Highlight L 2 , type L 3 *sum(L 1 and press ENTER for the

expected frequencies (E) in L

3. Highlight L

, type (L

-L

/L

and press ENTER.

4. Press 2

nd

MODE to QUIT and return to the Home Screen.

nd

VARS 7 for “χ

cdf(”, then type SUM(L

), E99, df and

hit ENTER to get the P-Value. [Note: SUM(L

) is the χ

test statistic.]

TI-83 Plus χ

Goodness-of-Fit Test

Method 1

TI-83 Plus χ

Goodness-of-Fit Test

Method 2

1. Press 2

nd

x

to get the MATRIX menu. Select EDIT, and

press ENTER. Enter the dimension (2 x # of categories)

and proceed to enter the observed frequencies in the top

row. For the bottom row, enter the expected frequencies

multiplied by a really large number, such as 10

2. Press STAT, select TESTS, and then select the χ

-Test.

3. Scroll down to Calculate and press ENTER to get the test

statistic, P-value, and number of degrees of freedom.

Detecting Fraud - Example

Total 784 X^2 =

(O – E)^2

E

Expected O – E (O – E)^2

Frequency

Expected

Probability

Observed

Frequency

Category

H

: The idea used to generate the expected values is valid.

H 1 : The idea used to generate the expected values is not valid.