Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter Outline Goodness of Fit test Test of Independence.

Similar presentations


Presentation on theme: "Chapter Outline Goodness of Fit test Test of Independence."— Presentation transcript:

1 Chapter 11 Comparisons Involving Proportions and A Test of Independence

2 Chapter Outline Goodness of Fit test Test of Independence

3 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.

4 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.

5 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.

6 Goodness of Fit Test Procedure 5. Rejection rule: p-value approach:
Reject H0 if p-value <  Reject H0 if Critical value approach: where  is the significance level and there are k - 1 degrees of freedom

7 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:

8 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.

9 Reject H0 if p-value < .05 or c2 > 5.99.
Goodness of Fit Test Example: Market Share Rejection rule Reject H0 if p-value < .05 or c2 > 5.99. With  = .05 and k - 1 = = 2 degrees of freedom Do Not Reject H0 Reject H0 2 5.99

10 eA=.3(200)=60; eB=.5(200)=100; eC=.2(200)=40
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 = = 7.34

11 Goodness of Fit Test Example: Market Share p-Value Approach
Area in Upper Tail c2 Value (df = 2) 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 <  = We can reject the null hypothesis.

12 Goodness of Fit Test Example: Market Share Critical Value Approach
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.

13 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).

14 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:

15 Test of Independence Procedure Compute the test statistic
Determine the rejection rule Reject H0 if p -value < a or where a is the significance level and, with n rows and m columns, there are (n - 1)(m - 1) degrees of freedom.

16 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. Field of Study Medicine Business Engineering Total Male 80 60 160 300 Female 40 20 100 120 200 400

17 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

18 Test of Independence Example: Field of Study Expected Frequencies
Medicine Business Engineering Total Male 300*120/400=90 300*80/400 =60 300*200/400=150 300 Female 100*120/400=30 100*80/400 =20 100*200/400=50 100 120 80 200 400

19 Reject H0 if p-value < =.05
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 = = 7.11

20 Test of Independence Example: Field of Study p-Value Approach
Area in Upper Tail c2 Value (df = 2) 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 <  = We can reject the null hypothesis.

21 Test of Independence Example: Field of Study Critical Value Approach
We reject, at the .05 level of significance, the null hypothesis that the selected field of study is independent of gender.


Download ppt "Chapter Outline Goodness of Fit test Test of Independence."

Similar presentations


Ads by Google