STAT 400 Lecture AL1 Spring 2015 Dalpiaz Answers for 9 1 Pearson s 2 Test for Goodness of Fit Based on Large n A random sample of size n is classified into k categories or cells k Yi n Let Y 1 Y 2 Y k denote the respective cell frequencies i 1 Denote the cell probabilities by p 1 p 2 p k k p i 0 1 H 0 p 1 p 10 p 2 p 20 p k p k 0 i 1 1 2 k Total Observed frequency O Y1 Y2 Yk n Probability under H 0 p 10 p 20 pk0 1 Expected frequency E under H 0 n p 10 n p 20 n pk 0 n Test Statistic Q k 1 2 k Y np i0 i n p i0 i 1 k O E 2 i i i 1 Ei O E 2 cells Rejection Region 2 Reject H 0 if Q k 1 d f k 1 number of cells 1 Pearson s 2 test is an approximate test that is valid only for large samples As a rule of thumb n should be large enough so that expected frequency of each cell is at least 5 E 1 Alex buys a package of Sour Jelly Beans On the package it says that 50 of all jelly beans are lemon 30 are cherry and 20 are lime When Alex opens the package he finds 15 lemon 9 cherry and 12 lime jelly beans Is there enough evidence to conclude that the true proportions are different from the ones listed on the package Use 0 05 a State H 0 and H 1 H 0 p 1 0 50 p 2 0 30 p 3 0 20 b H 1 not H 0 Find the expected frequencies under H 0 n 15 9 12 36 E 1 n p 10 36 0 50 18 E 2 n p 20 36 0 30 10 8 E 3 n p 30 36 0 20 7 2 c d Calculate the values of the Q test statistic 1 2 3 Total O E 15 9 12 36 18 10 8 7 2 36 O E 2 15 18 2 9 10 8 2 12 7 2 2 E 18 0 5 10 8 0 3 7 2 3 2 2 Find the critical value 3 1 2 degrees of freedom e 02 05 2 5 991 State your decision Accept H 0 or Reject H 0 at 0 05 2 Q 2 4 0 5 991 Do Not Reject H 0 4 0 2 The financial manager in charge of accounts receivable department is concerned about the current economic slowdown because customers sometimes wait longer to pay their bills She wishes to check on this year s performance of the department by comparing the current outstanding accounts with records from the past few years Historical records show the following percentages in the respective classifications Age of Accounts Receivable Percent of Total Receivables Less than 30 days Between 30 and 60 days Between 60 and 90 days Over 90 days 50 25 15 10 To avoid the time required for a complete audit of the accounts receivable the financial manager chooses a random sample of 60 accounts and finds 24 18 15 and 3 accounts respectively in the above categories H 0 p 1 0 50 p 2 0 25 p 3 0 15 p 4 0 10 Perform the appropriate test at the 0 05 level of significance O 24 E 3 60 0 10 6 60 0 25 15 60 0 15 9 24 30 2 18 15 2 15 9 2 3 6 2 30 15 9 6 1 2 0 6 4 0 1 5 E cells 15 60 0 50 30 O E 2 Q 18 O E 2 E 1 2 0 6 4 0 1 5 7 3 20 05 7 815 k 1 4 1 3 d f 2 Rejection Region Reject H 0 if Q 2 7 3 Q 7 815 20 10 6 25 Do Not Reject H 0 at 0 05 Reject H 0 at 0 10 P value 0 062926 3 The developers of a math proficiency exam to be used at Anytown State University believe that 60 of all incoming freshmen will be able to pass the exam In a random sample of 200 incoming freshmen 105 pass the exam Does this contradict the claim of the developers a Use 0 05 to perform a goodness of fit test H 0 p 1 0 60 p 2 0 40 H 1 H 0 is not true vs E 1 n p 10 200 0 60 120 Q1 b 105 120 2 95 80 2 120 80 E 2 n p 20 200 0 40 80 1 875 2 8125 4 6875 2 1 1 degree of freedom 02 05 1 3 841 2 Q 1 4 6875 3 841 Reject H 0 Use 0 05 to perform a large sample test H 0 p 0 60 vs 105 0 525 p H 1 p 0 60 Z 200 0 525 0 60 0 60 0 40 200 2 165 z 0 025 1 960 Z 2 165 1 960 z 2 c Reject H 0 Compare the test statistics Q 1 part a and Z part b Compare the critical values 02 05 part a and z 0 025 part b Q 1 part a Z part b 2 02 05 part a z 0 025 part b 2
View Full Document