210 likes | 218 Views
This chapter discusses the Goodness of Fit test and the Test of Independence, which are used to compare proportions and determine if two variables are related. It covers the procedures, hypotheses, rejection rules, and examples with calculations.
E N D
Chapter 11Comparisons Involving Proportions and A Test of Independence
Chapter Outline • Goodness of Fit test • Test of Independence
Goodness of Fit Test • Hypothesis test for proportions of a multinomial population • It compares the observed and expected frequencies in each category to test either that all categories contain the same proportion of values or that each category contains a user-specified proportion of values.
Goodness of Fit Test • Procedure • Set up the null and alternative hypotheses; • Select a random sample and record the observed frequency, fi, for each of the k categories; • Assuming H0 is true, compute the expected frequency, ei, in each category by multiplying the category probability by the sample size.
Goodness of Fit Test • Procedure 4. Compute the value of the test statistic: where: fi = observed frequency for category i ei = expected frequency for category i k = number of categories Note: The test statistic has a chi-square distribution with k – 1 degrees of freedom provided that the expected frequencies are 5 or more for all categories.
Reject H0 if Goodness of Fit Test • Procedure 5. Rejection rule: Reject H0 if p-value < p-value approach: Critical value approach: where is the significance level and there are k - 1 degrees of freedom
Goodness of Fit Test • Example: Market Share In the Scott Market Research example in the textbook, after company C introduced a new product to the market, a survey was conducted on 200 customers to study if there is any change in the market shares. Out of the 200 customers, 48 prefer company A’s product, 98 prefer company B’s, and 54 prefer company’s C’s. Before the introduction of the new product by company C, the market shares of the three companies were:
Goodness of Fit Test • Example: Market Share • Hypotheses H0: pA = .3; pB = .5; pC = .2 Ha: The population proportions are not pA = .3; pB = .5; pC = .2 where: pA = the population market share of company A; pB = the population market share of company B; pC = the population market share of company C.
Goodness of Fit Test • Example: Market Share • Rejection rule Reject H0 if p-value < .05 or c2> 5.99. With = .05 and k - 1 = 3 - 1 = 2 degrees of freedom Do Not Reject H0 Reject H0 2 5.99
Goodness of Fit Test • Example: Market Share • Expected Frequencies • Observed Frequencies • Test Statistic eA=.3(200)=60; eB=.5(200)=100; eC=.2(200)=40 fA = 48; fB = 98; fC = 54 = 2.4+0.04+4.9 = 7.34
Goodness of Fit Test • Example: Market Share • p-Value Approach Area in Upper Tail .10 .05 .025 .01 .005 c2 Value (df = 2) 4.6 5.99 7.38 9.21 10.60 Because c2 = 7.34 is between 5.99 and 7.38, the area in the upper tail of the distribution is between .05 and .025. The p-value < = .05. We can reject the null hypothesis.
Goodness of Fit Test • Example: Market Share • CriticalValue Approach c2 = 7.34 > 5.99 We reject, at the .05 level of significance, the assumption that the market shares of companies A, B, and C remain the same after Company C introduced a new product.
Test of Independence: Contingency Tables • Hypothesis test for independence between two variables. • Similar to a Goodness of Fit test, it computes c2 test statistic based on the observed frequencies and expected frequencies (assuming the null hypothesis is true, i.e. the two variables are independent from each other).
Test of Independence • Procedure • Set up the null and alternative hypotheses; • Select a random sample and record the observed frequency, fij, for each cell of the contingency table; • Assuming H0 is true, compute the expected frequency, eij, for each cell as follows:
Reject H0 if p -value<aor . Test of Independence • Procedure • Compute the test statistic • Determine the rejection rule where a is the significance level and, with n rows and m columns, there are (n - 1)(m - 1) degrees of freedom.
Test of Independence • Example: Field of Study The following table shows the results of recent study regarding gender of individuals and their selected field of study.
Test of Independence • Example: Field of Study • Hypothesis H0: Field of study is independent of gender Ha: Field of study is not independent of gender
Test of Independence • Example: Field of Study • Expected Frequencies
Test of Independence • Example: Field of Study • Rejection Rule Reject H0 if p-value <=.05 or 2> 5.99 [d.f. = (2-1)(3-1)=2]. • Test Statistic = 1.11 + 0 + . . . + 2 = 7.11
Test of Independence • Example: Field of Study • p-Value Approach Area in Upper Tail .10 .05 .025 .01 .005 c2 Value (df = 2) 4.6 5.99 7.38 9.21 10.60 Because c2 = 7.11 is between 5.99 and 7.38, the area in the upper tail of the distribution is between .05 and .025. The p-value < = .05. We can reject the null hypothesis.
Test of Independence • Example: Field of Study • CriticalValue Approach c2 = 7.11 > 5.99 We reject, at the .05 level of significance, the null hypothesis that the selected field of study is independent of gender.