Book cover for Elementary Statistics

Elementary Statistics

Mario F. Triola

ISBN #9780321500243

11th Edition

1,705 Questions

Group icon
24,151 Students Helped

Homework Questions

Right arrow
Summary

Learning Objectives

Key Concepts

Example Problems

Explanations

Common Mistakes

Summary

This section covers three important chi-square based tests used in categorical data analysis. The Goodness-of-Fit test evaluates how well observed frequencies match expected distributions, contingency tables are critical for examining the relationship between two categorical variables, and McNemar's Test is specialized for analyzing paired nominal data. Understanding when and how to use these tests, calculating the appropriate statistics, and correctly interpreting results are key skills for analyzing categorical data in various research contexts.

Learning Objectives

1

Explain the purpose and application of the Goodness-of-Fit test, Contingency Tables, and McNemar's Test for Matched Pairs.

2

Describe how the chi-square statistic is used to compare observed and expected frequencies in categorical data.

3

Interpret contingency tables to analyze relationships between two categorical variables.

4

Apply McNemar's Test appropriately for analyzing paired nominal data and determine statistical significance.

Key Concepts

CONCEPT

DEFINITION

Goodness-of-Fit Test

A statistical test used to determine whether an observed frequency distribution differs from a theoretical distribution.

Contingency Table

A matrix used to display the frequency distribution of two or more categorical variables, helping in checking for associations between them.

McNemar's Test

A non-parametric statistical test used on paired nominal data to determine whether the row and column marginal frequencies are equal. It is particularly useful for pre-test/post-test studies.

Chi-Square Statistic

A value computed from the sum of squared differences between observed and expected frequencies normalized by the expected frequency, used to measure the discrepancy between observed and theoretical distributions.

Example Problems

Example 1

Goodness-of-Fit A New York Time/CBS News Poll typically involves the selection of random digits to be used for telephone numbers. The New York Times states that "within each (telephone) exchange, random digits were added to form a complete telephone number, thus permitting access to listed and unlisted numbers." When such digits are randomly generated, what is the distribution of those digits? Given such randomly generated digits, what is a test for "goodness-of-fit'?

Example 2

Interpreting Values of $x^{2}$ When generating random digits as in Exercise $1,$ we can test the generated digits for goodness-of-fit with the distribution in which all of the digits are equally likely. What does an exceptionally large value of the $x^{2}$ test statistic suggest about the goodness-of-fit? What does an exceptionally small value of the $x^{2}$ test statistic (such as 0.002) suggest about the goodness-of-fit?

Example 3

Observed/Expected Frequencies A wedding caterer randomly selects clients from the past few years and records the months in which the wedding receptions were held. The results are listed below (based on data from The Amazing Almanac). Assume that you want to test the claim that weddings occur in different months with the same frequency. Briefly describe what O and E represent, then find the values of $O$ and $E$ $$\begin{array}{l|cccccccccccc}\text { Month } & \text { Jan. } & \text { Fcb. } & \text { March } & \text { April } & \text { May } & \text { June } & \text { July } & \text { Aug. Sept. Oct. } & \text { Nov. } & \text { Dec. } \\\hline \text { Number } & 5 & 8 & 7 & 9 & 13 & 17 & 11 & 10 & 10 & 12 & 8 & 10\end{array}$$

Example 4

P-Value When using the data from Exercise 3 to conduct a hypothesis test of the claim that weddings occur in the 12 months with equal frequency, we obtain the $P$ -value of 0.477 . What does that $R$ value tell us about the sample data? What conclusion should be made?

Example 5

Conduct the hypothesis test and provide the test statistic, critical value and/or $P$ -value, and state the conclusion. Testing a Slot Machine The author purchased a slot machine (Bally Model 809 ), and tested it by playing it 1197 times. There are 10 different categorical of outcome, including no win, win jackpot, win with three bells, and so on. When testing the claim that the observed outcomes agree with the expected frequencies, the author obtained a test statistic of $x^{2}=8.185 .$ Use a 0.05 significance level to test the claim that the actual outcomes agree with the expected frequencies. Does the slot machine appear to be functioning as expected?

Scroll left
Scroll right

Step-by-Step Explanations

QUESTION

How do you perform a chi-square Goodness-of-Fit test?

STEP-BY-STEP ANSWER:

Step 1: Define the null hypothesis representing the expected distribution.
Step 2: Collect the observed frequencies for each category.
Step 3: Calculate the expected frequencies based on the theoretical distribution (or equal probability if no prior expectation is provided).
Step 4: Compute the chi-square statistic using the formula: χ² = Σ((Observed - Expected)² / Expected).
Step 5: Determine the degrees of freedom, usually number of categories minus one.
Step 6: Compare the calculated chi-square value to the critical value from the chi-square distribution table to accept or reject the null hypothesis.
Final Answer: The test concludes whether the observed frequencies differ significantly from the expected ones based on the critical chi-square value.

Goodness-of-Fit Test

QUESTION

How do you analyze the relationship between two categorical variables using a contingency table?

STEP-BY-STEP ANSWER:

Step 1: Organize the data into a matrix where rows represent one variable and columns represent the other.
Step 2: Calculate the marginal totals for both rows and columns.
Step 3: Compute the expected frequencies for each cell of the table under the assumption of independence using the formula: (Row Total * Column Total) / Grand Total.
Step 4: Use the chi-square test statistic formula: χ² = Σ((Observed - Expected)² / Expected) for all cells.
Step 5: Determine the degrees of freedom as (Number of Rows - 1) * (Number of Columns - 1).
Step 6: Compare the computed chi-square statistic with the critical value to decide if there is an association between the variables.
Final Answer: A significant chi-square statistic indicates that there is an association between the two categorical variables.

Contingency Tables

QUESTION

How do you apply McNemar's Test for analyzing matched pairs in a study?

STEP-BY-STEP ANSWER:

Step 1: Organize paired data into a 2x2 contingency table with counts of concordant and discordant pairs.
Step 2: Identify the discordant pairs: those that changed from one category to the other.
Step 3: Apply the McNemar's test formula, which often uses only the discordant counts (e.g., using the formula: χ² = (|b - c| - 1)² / (b + c), where b and c are the discordant cell counts).
Step 4: Determine the p-value by comparing the computed statistic to the chi-square distribution with 1 degree of freedom.
Step 5: Interpret the results: a significant result suggests that the proportions of the paired nominal responses are different.
Final Answer: McNemar's Test evaluates changes in responses for paired samples, confirming whether a statistically significant change has occurred.

McNemar's Test

Scroll left
Scroll right

Common Mistakes

  • Assuming all chi-square tests can be applied without checking the minimum expected frequency requirements.
  • Confusing the degrees of freedom between different tests, such as using the wrong calculation for contingency tables.
  • Overlooking the importance of paired data in McNemar's Test and applying it to unpaired data.
  • Failing to properly define the null hypothesis before conducting the Goodness-of-Fit test.
  • Interpreting non-significant results as evidence of no difference without considering sample size limitations.