Question

In: Statistics and Probability

Using StatCrunch, construct a labeled contingency table (with row, column, and total %s), as well as...

Using StatCrunch, construct a labeled contingency table (with row, column, and total %s), as well as the contribution to the chi-square statistic, for the following set of data for 300 people:

                                                Group A          Group B          Group C          Total

            Had flu shot                     20                   30                    38                   88

            Didn’t have flu shot         80                   70                    62                 212

            Total                               100                 100                  100               300

        Is the value of the chi-square statistically significant?

Solutions

Expert Solution

For each of the 9 cells, the expected frequency is computed here as:

E_i = (Rowi Total) ( Columni Total) / 300 ,
Also the chi square test statistic for each cell is computed as:

This is computed for each of the 9 cells as:

The values in the circular bracket are expected frequencies and in square bracket are the chi square contributions.

The chi square test statistic thus is computed here as:

Df = (num of rows - 1)(num of columns - 1) = 2

Therefore the p-value here is computed as:

Note that the value is clearly greater than 0.01, but less than 0.05. Therefore it is significant at 5% level of significance but not at 1% level of significance.


Related Solutions

Use a x2 test to test the claim that in the given contingency table, the row variable and the column variable are independent.
Use a x2 test to test the claim that in the given contingency table, the row variable and the column variable are independent. 1) Use the sample data below to test whether car color affects the likelihood of being in an 1) accident. Use a significance level of 0.01 
Create a 15 row and 4 column table with each column of the data so that...
Create a 15 row and 4 column table with each column of the data so that it goes 1A 1B 1C 1D across using this code as a base void PrintSeatingChart(seat seats[15][4], int numRows, int numColumns) {    int i;    int j;    for (i = 0; i < numRows; i++) {        cout << i + 1 << " ";        for (j = 0; j < numColumns; j++) {            cout << seats[i][j].seatLetter...
Consider the following contingency table that is based on a sample survey. Column 1 Column 2...
Consider the following contingency table that is based on a sample survey. Column 1 Column 2 Column 3 Row 1 136 90 83 Row 2 96 54 88 Row 3 125 75 110 a. Write the null and alternative hypotheses for a test of independence for this table. H 0 : Rows and columns are ; H 1 : Row and columns are . b. Calculate the expected frequencies for all cells assuming that the null hypothesis is true. Round...
Consider the following contingency table that is based on a sample survey. column 1 column 2...
Consider the following contingency table that is based on a sample survey. column 1 column 2 column 3 row 1 137 86 77 row 2 93 51 86 row 3 126 76 112 a. Write the null and alternative hypotheses for a test of independence for this table. H0: Rows and columns are: Independent or dependent H1: Rows and columns are: Independent or dependent b. Calculate the expected frequencies for all cells assuming that the null hypothesis is true. Round...
Consider the following contingency table that is based on a sample survey. column 1 column 2...
Consider the following contingency table that is based on a sample survey. column 1 column 2 column 3 row 1 137 86 77 row 2 93 51 86 row 3 126 76 112 a. Write the null and alternative hypotheses for a test of independence for this table. H0: Rows and columns are: Independent or dependent H1: Rows and columns are: Independent or dependent b. Calculate the expected frequencies for all cells assuming that the null hypothesis is true. Round...
Consider the following contingency table that is based on a sample survey. Column 1 Column 2...
Consider the following contingency table that is based on a sample survey. Column 1 Column 2 Column 3 Row 1 139 85 84 Row 2 92 49 90 Row 3 121 80 113 a. Write the null and alternative hypotheses for a test of independence for this table. H0: Rows and columns are dependent/independent ; H1: Row and columns are independent/dependent . b. Calculate the expected frequencies for all cells assuming that the null hypothesis is true. Round your answers...
The following table contains observed frequencies for a sample of 200. Column Variable Row Variable A...
The following table contains observed frequencies for a sample of 200. Column Variable Row Variable A B C P 40 48 45 Q 10 22 35 Test for independence of the row and column variables using a=.05. Compute the value of the test statistic (to 2 decimals). The -value is - Select your answer -less than .005between .005 and .01between .01 and .025between .025 and .05between .05 and .10greater than .10 What is your conclusion? - Select your answer -Cannot...
The following table contains observed frequencies for a sample of 200. Row Variable Column Variable A...
The following table contains observed frequencies for a sample of 200. Row Variable Column Variable A B C P 16 40 46 Q 34 30 34 Test for independence of the row and column variables using α = 0.05. State the null and alternative hypotheses. H0: Variable P is not independent of variable Q. Ha: Variable P is independent of variable Q. H0: Variable P is independent of variable Q.Ha: Variable P is not independent of variable Q.     H0: The...
The following table contains observed frequencies for a sample of 200.   Column Variable Row Variable A...
The following table contains observed frequencies for a sample of 200.   Column Variable Row Variable A B C P 20 45 50 Q 30 26 29 Test for independence of the row and column variables using  α = .05.   Compute the value of the  Χ 2 test statistic (to 2 decimals).
The following table contains observed frequencies for a sample of 200. Column Variable Row Variable A...
The following table contains observed frequencies for a sample of 200. Column Variable Row Variable A B C P 20 44 50 Q 30 26 30 Test for independence of the row and column variables using a= .05 Compute the value of the  test statistic (to 2 decimals).
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT