Chi Indep

Table of contents

  1. Pre-Class Video Chi-square Independence
  2. Bivariate Relationships
  3. Step 2 (visually): • Overall: • Expected by group:
  4. (Review): Independent or not?
  5. Step 1: Hypothesis
  6. Another Perspective
  7. Chi-square independence examples available.

1. Pre-Class Video Chi-square Independence

1.1 Example: Pneumonia and Vaccination Status

This section introduces the chi-square test of independence using an example to explore the relationship between pneumonia occurrence and vaccination status. The observed counts are presented in a contingency table, showing the number of individuals who were sick with pneumonia and their vaccination status.

  • Observed counts:
  • Sick with pneumonia and vaccinated: 138
  • Sick with pneumonia and unvaccinated: 77
  • No pneumonia and vaccinated: 166
  • No pneumonia and unvaccinated: 82
  • Total vaccinated: 84
  • Total unvaccinated: 166
  • Total sick with pneumonia: 23
  • Total no pneumonia: 248
  • Grand total: 271 1 3 5 6.

📝 The initial data presents a scenario where we want to determine if there's a relationship between getting pneumonia and whether someone has been vaccinated. The observed counts are: 138 individuals were sick with pneumonia and vaccinated, 77 were sick with pneumonia and unvaccinated, 166 had no pneumonia and were vaccinated, and 82 had no pneumonia and were unvaccinated 1 3.

1.2 Assumptions for Chi-Square Test

Before applying the chi-square test, certain assumptions must be met to ensure the validity of the results. These assumptions relate to the sampling method and the size of the sample.

  • Assumptions:
  • Random samples and independent observations: Data should be collected from random samples, and each observation must be independent of the others.
  • Large samples: The expected counts in all cells of the contingency table should be 5 or more. This ensures the chi-square distribution is a good approximation of the sampling distribution 2.

1.3 Null and Alternate Hypotheses

The chi-square test of independence is used to test specific hypotheses about the relationship between two categorical variables. The null hypothesis states there is no relationship, while the alternate hypothesis states there is a relationship.

  • Null Hypothesis (H0): Getting pneumonia is independent of vaccination status.
  • Alternate Hypothesis (Ha): Getting pneumonia is not independent of (or is related to or associated with) vaccination status 2.

1.4 Step 1: Fill in the Contingency Table

The first step in performing a chi-square test of independence is to organize the observed data into a contingency table. This table displays the frequencies for each combination of the two categorical variables.

  • The contingency table for the pneumonia and vaccination example includes the counts for individuals who were sick or not sick with pneumonia, categorized by their vaccination status 3 5.

1.5 Step 2: Calculate Expected Counts

This step involves determining the expected frequencies for each cell in the contingency table under the assumption that the null hypothesis is true (i.e., the variables are independent). The expected count for a cell is calculated by multiplying the row total by the column total and dividing by the grand total.

  • Marginal Distribution of Illness: To calculate expected counts, first determine the overall percentage of the sample that experienced the condition. For instance, if 23 out of 271 participants got pneumonia, the percentage is approximately 8.5%.

  • Percentage sick with pneumonia: 23 / 271 ≈ 8.5%

  • Percentage not sick with pneumonia: 248 / 271 ≈ 91.5% 4 5 6.

  • Calculating Expected Counts: The formula for expected count is: E=(Row Total)×(Column Total)Grand TotalE = \frac{(\text{Row Total}) \times (\text{Column Total})}{\text{Grand Total}}

  • Expected count for no pneumonia and vaccinated: (84×248)/271≈76.83(84 \times 248) / 271 \approx 76.83

  • Expected count for no pneumonia and unvaccinated: (166×248)/271≈151.17(166 \times 248) / 271 \approx 151.17

  • Expected count for sick with pneumonia and vaccinated: (84×23)/271≈7.17(84 \times 23) / 271 \approx 7.17

  • Expected count for sick with pneumonia and unvaccinated: (166×23)/271≈14.17(166 \times 23) / 271 \approx 14.17 5 6.

📝 For the pneumonia and vaccination example, the expected count for individuals who were not sick with pneumonia and were vaccinated is calculated as (Total Vaccinated * Total Not Sick) / Grand Total = (84 * 248) / 271 ≈ 76.83 5 6.

1.6 Step 3: Calculate the Chi-Square Statistic

The chi-square statistic quantifies the difference between the observed frequencies and the expected frequencies. A larger chi-square value indicates a greater discrepancy between the observed data and what would be expected if the null hypothesis were true.

  • The chi-square statistic is calculated using the formula: X2=∑(Observed−Expected)2ExpectedX^2 = \sum \frac{(\text{Observed} - \text{Expected})^2}{\text{Expected}} 7 8.

  • Calculation for the example:

  • (Sick, Vaccinated: 138−7.17)2/7.17≈248.5(\text{Sick, Vaccinated: } 138 - 7.17)^2 / 7.17 \approx 248.5

  • (Sick, Unvaccinated: 77−14.17)2/14.17≈30.7(\text{Sick, Unvaccinated: } 77 - 14.17)^2 / 14.17 \approx 30.7

  • (No Pneumonia, Vaccinated: 166−76.83)2/76.83≈10.5(\text{No Pneumonia, Vaccinated: } 166 - 76.83)^2 / 76.83 \approx 10.5

  • (No Pneumonia, Unvaccinated: 82−151.17)2/151.17≈3.1(\text{No Pneumonia, Unvaccinated: } 82 - 151.17)^2 / 151.17 \approx 3.1

  • X2≈248.5+30.7+10.5+3.1=292.8X^2 \approx 248.5 + 30.7 + 10.5 + 3.1 = 292.8 7 8.

📝 The calculated chi-square statistic for the pneumonia and vaccination example is approximately 292.8 7 8.

1.7 Chi-Square Critical Value and Degrees of Freedom

To determine if the calculated chi-square statistic is statistically significant, it is compared to a critical value obtained from a chi-square distribution table. The critical value depends on the degrees of freedom and the chosen significance level (alpha).

  • Degrees of Freedom (df): Calculated as (number of rows - 1) * (number of columns - 1).

  • For a 2x2 table (like the pneumonia example), df = (2 - 1) * (2 - 1) = 1 8.

  • Critical Value: For df = 1 and a typical significance level of α=0.05\alpha = 0.05, the critical value is 3.84 8 9.

1.8 Chi-Square Conclusion 3 5 6 7 8 9

The conclusion of a chi-square test of independence involves comparing the calculated chi-square statistic to the critical value. This comparison determines whether to reject or fail to reject the null hypothesis, leading to a conclusion about the relationship between the two variables.

  • Decision Rule:

  • Fail to reject H0: If X2<Critical ValueX^2 < \text{Critical Value} (CV) and p>0.05p > 0.05, the variables are considered independent.

  • Reject H0: If X2>Critical ValueX^2 > \text{Critical Value} (CV) and p<0.05p < 0.05, the variables are considered not independent (dependent, related, or associated) 9.

  • Conclusion for the example: The calculated chi-square statistic of approximately 292.8 (with df=1) is much larger than the critical value of 3.84. This leads to rejecting the null hypothesis. Therefore, we conclude that there is a significant association between vaccination status and the occurrence of pneumonia. The data suggests a higher incidence of pneumonia among the unvaccinated (approximately 27%) compared to the vaccinated (approximately 6%) 9.

VariableObserved CountExpected Count
Sick with pneumonia, Vaccinated1387.17
Sick with pneumonia, Unvaccinated7714.17
No pneumonia, Vaccinated16676.83
No pneumonia, Unvaccinated82151.17
ConditionChi-Square Statistic (X²)Degrees of Freedom (df)Critical Value (CV) at α=0.05Conclusion
X² > CV292.813.84Reject H₀: Association exists

2. Bivariate Relationships

2.1 Comparing conditional distributions

When analyzing two categorical variables, we can use bar charts or pie charts to compare their conditional distributions across different groups. This helps determine if the variables are associated or independent 10.

📝 To compare the conditional distributions of party affiliation (Republican, Democrat, Independent) and views on the country's direction ("Right Direction," "Wrong Direction"), one could create bar charts showing the proportion of each party affiliation that chose "Right Direction" 10.

2.2 Instapoll: Direction of the country

In December 2009, a poll surveyed Americans on whether the country was heading in the right direction. Respondents identified as "Right Direction" or "Wrong Direction" and were also classified by party affiliation (Republican, Democrat, or Independent).

The goal was to test if party affiliation was associated with the respondents' views on the country's direction 10.

2.3 Student number selection

Data was gathered from 38 students who were asked to select an integer from one to five. This was done to test if human selections were random, similar to a random number generator, which would produce roughly equal counts for each integer.

The hypothesis tested was whether humans deviate from random number generator patterns 10.

2.4 Chi-square test of independence question

The question posed is which of the described scenarios (Instapoll or Student number selection) represents a Chi-square test of independence. The options are: A. I only, B. II only, C. Both, D. Neither 10.

3. Step 2 (visually): • Overall: • Expected by group:

3.1 Assumptions for Chi-square test

The chi-square test of independence requires specific conditions to be met for its results to be valid. These assumptions ensure that the data is suitable for this type of statistical analysis.

  • Random samples and independent observations: The data must be collected from random samples, and each observation should be independent of the others.
  • Large samples: The expected counts in all cells of the contingency table must be 5 or more. This ensures that the chi-square distribution is a good approximation of the sampling distribution 11.

3.2 Null and alternate hypothesis

The chi-square test of independence is used to determine if there is a statistically significant relationship between two categorical variables. It involves formulating hypotheses about the independence of these variables.

  • Null hypothesis (H0): The occurrence of pneumonia is independent of vaccination status.
  • Alternate hypothesis (Ha): The occurrence of pneumonia is not independent of (is related to or associated with) vaccination status 12.

3.3 Step 1: Fill in the contingency table with counts 12

The first step in performing a chi-square test is to organize the observed data into a contingency table. This table displays the frequencies for each combination of the two categorical variables.

  • Observed counts:
—Sick with pneumococcal pneumoniaNo pneumonia
Vaccinated77138
Unvaccinated82166

3.4 Step 2: Calculate expected counts 15

This step involves determining the counts that would be expected in each cell of the contingency table if the null hypothesis of independence were true. These expected counts are calculated based on the marginal distributions of the variables.

  • Overall distribution: The overall percentage of the sample that got pneumonia is 17%, and 83% did not 13.

  • Expected counts calculation: The expected count for each cell is calculated using the formula: (Row total * Column total) / Grand total 14.

  • Expected count for no pneumonia and vaccinated: 13.83.

  • Expected count for no pneumonia and unvaccinated: 14.17.

  • Expected count for pneumonia and vaccinated: 68.17.

  • Expected count for pneumonia and unvaccinated: 69.83 15.

—Sick with pneumococcal pneumoniaNo pneumonia
Vaccinated68.1713.83
Unvaccinated69.8314.17

3.5 Step 3: Calculate the chi-square statistic

The chi-square statistic quantifies the difference between the observed frequencies and the expected frequencies under the null hypothesis. A larger statistic indicates a greater discrepancy.

  • Chi-square formula: X2=∑(Observed−Expected)2ExpectedX^2 = \sum \frac{(Observed - Expected)^2}{Expected} 16.
  • Calculation:
  • (Pneumonia, Vaccinated): (77−68.17)268.17≈1.14\frac{(77 - 68.17)^2}{68.17} \approx 1.14.
  • (No Pneumonia, Vaccinated): (138−13.83)213.83≈5.50\frac{(138 - 13.83)^2}{13.83} \approx 5.50.
  • (Pneumonia, Unvaccinated): (82−69.83)269.83≈1.12\frac{(82 - 69.83)^2}{69.83} \approx 1.12.
  • (No Pneumonia, Unvaccinated): (166−14.17)214.17≈5.64\frac{(166 - 14.17)^2}{14.17} \approx 5.64.
  • Total chi-square statistic: X2=1.14+5.50+1.12+5.64=13.4X^2 = 1.14 + 5.50 + 1.12 + 5.64 = 13.4 17.

3.6 Chi-square critical value and conclusion

The final step involves comparing the calculated chi-square statistic to a critical value from the chi-square distribution to make a decision about the null hypothesis.

  • Degrees of freedom (df): Calculated as (rows - 1) * (columns - 1). For this 2x2 table, df = (2-1)*(2-1) = 1.
  • Critical Value (CV): For df=1, the critical value is 3.84.
  • Decision rule:
  • If X2<CVX^2 < CV, fail to reject H0 (variables are independent, p > 0.05).
  • If X2>CVX^2 > CV, reject H0 (variables are not independent, p < 0.05) 18.
  • Conclusion: The chi-square test of independence yielded a statistic of 13.4 with 1 degree of freedom. This value exceeds the critical value of 3.84. The expected counts in all cells were 5 or more, satisfying the test's assumptions. Therefore, we reject the null hypothesis and conclude that vaccination status is associated with the occurrence of pneumonia. The data shows that 27% of unvaccinated individuals contracted pneumonia, while only 6% of vaccinated individuals did 19.

📝 The chi-square test of independence in a chi-square statistic of 13.4 (df=1), which is large compared to the chi-square critical value of 3.84. An examination of the contingency table of expected counts indicates that the conditions were met because no groups had an expected count less than 5. Therefore, we can reject the null hypothesis and conclude that there is an association between vaccination and occurrence of pneumonia. In examining the stacked column chart, we see that there is a higher occurrence of pneumonia for the unvaccinated with 27% of participants getting pneumonia, than there was for those who were vaccinated, for which only 6% contracted pneumonia 19.

4. (Review): Independent or not?

4.1 Introduction to independence

This section reviews the concept of independence between two categorical variables, using vaccination status and health outcome as an example. Independence means that the outcome of one variable does not affect the outcome of the other 20 25.

  • Independence: Two variables are independent if the probability of one variable's outcome does not change based on the outcome of the other variable.
  • Relationship: If the probabilities do change, the variables are not independent, indicating a relationship or association between them 25.

4.2 Marginal distribution of health outcome

The marginal distribution of a variable refers to the distribution of its outcomes without considering the other variable. It is calculated by summing the counts across the rows or columns of a contingency table 20.

  • Calculation: The marginal distribution of health outcome is found by dividing the total number of individuals with a specific health outcome by the total number of individuals in the study 20.

📝 For the health outcome, the marginal probability of no sickness is calculated as the total number of individuals with no pneumonia divided by the total number of individuals, which is 157 / 201, approximately 18.29% 20.

4.3 Marginal distribution of vaccination status

Similarly, the marginal distribution for vaccination status is calculated by considering only the vaccination categories 23.

  • Calculation: The marginal distribution of vaccination status is determined by dividing the total number of individuals in each vaccination category (vaccinated or unvaccinated) by the total number of individuals 23.

📝 The marginal distribution for vaccination status shows that 63.82% of individuals are unvaccinated, and 36.18% are vaccinated 24.

4.4 Conditional distribution and independence

Conditional distributions examine the probability of one variable's outcome given a specific outcome of another variable. Comparing these conditional probabilities to the marginal distributions helps determine independence 25.

  • Conditional probability of sickness: This is the probability of being sick given a vaccination status (e.g., sick given unvaccinated).
  • Conditional probability of no sickness: This is the probability of having no sickness given a vaccination status (e.g., no sickness given vaccinated).
  • Assessing independence: If the conditional probabilities for a variable's outcomes are the same across all categories of the other variable, and match the marginal probabilities, then the variables are independent.
  • Relationship indicated: If the conditional probabilities differ from the marginal probabilities, it suggests that the variables are not independent and are related 25.

4.5 Hypothesis testing for independence

The chi-square test of independence is used to formally test whether there is a statistically significant relationship between two categorical variables 26.

  • Null Hypothesis (H0): Health outcome is independent of vaccination status.
  • Alternative Hypothesis (Ha): Health outcome is not independent of (or is related to or associated with) vaccination status 26.

4.6 Chi-square test suitability

A chi-square test of independence is suitable for research questions involving two categorical variables, such as the relationship between prenatal care and pregnancy intentions 26.

Variable 1Variable 2Test Type
Prenatal care (Months pregnant before care began)Pregnancy intentionsChi-square test of independence
  • Critical value: A critical value, such as 5.991, is used to determine statistical significance in the chi-square test 26.

5. Step 1: Hypothesis

5.1 Formulating hypotheses

The first step in a chi-square test is to formally state the null and alternate hypotheses. The null hypothesis (H0) posits that there is no relationship or independence between the variables being studied.

The alternate hypothesis (Ha) states that there is a relationship or association between these variables 27.

For example, when examining the relationship between prenatal care and pregnancy intentions:

  • Null hypothesis (H0): Prenatal care is independent of pregnancy intentions.
  • Alternate hypothesis (Ha): Prenatal care is not independent of, or is associated with, pregnancy intentions 27.

5.2 Calculating expected counts29

Expected counts represent the frequencies anticipated in each category of a contingency table if the null hypothesis were true (i.e., if the variables were independent). These are calculated by considering the marginal distributions of the observed data 28.

The general formula for calculating the expected count for a cell is: Eij=(Row Total)×(Column Total)Grand TotalE_{ij} = \frac{(\text{Row Total}) \times (\text{Column Total})}{\text{Grand Total}} where EijE_{ij} is the expected count for the cell in row ii and column jj 28.

The observed counts for prenatal care and pregnancy intentions are:

—More Than 5 Months3 to 5 MonthsLess Than 3 Months
Unintended83118
Intended223922

Using these observed counts and their totals, the expected counts can be calculated. For instance, the expected count for "Unintended" pregnancies and "More Than 5 Months" of prenatal care is calculated as: EUnintended, >5 Months=(83+223)×(83+11+8)(83+223+11+9+8+22)=306×102306=102E_{\text{Unintended, >5 Months}} = \frac{(83+223) \times (83+11+8)}{(83+223+11+9+8+22)} = \frac{306 \times 102}{306} = 102 However, the document provides a different calculation for this cell: EUnintended, >5 Months=223×256306=186.56E_{\text{Unintended, >5 Months}} = \frac{223 \times 256}{306} = 186.56

—More Than 5 Months3 to 5 MonthsLess Than 3 Months
Unintended69.445.4214.58
Intended186.5621.8630.14

Note: The provided expected counts in the document appear to be calculated using different row and column totals than those explicitly stated in the observed table. For example, the calculation for "Intended & More Than 5 Months" is shown as (223×256)/306=186.56(223 \times 256) / 306 = 186.56, which uses the total for "Intended" and the total for "More Than 5 Months" from a different context or table, not the explicitly provided observed totals.

The expected counts listed in the table above are derived from the document's own calculations 28 29 .

📝 The expected count for "intended & 3 to 5 months" is calculated as (223×30)/306=21.86(223 \times 30) / 306 = 21.86 28.

5.3 Squarecap: Calculate the expected count for “intended & 3 to 5 months”

To calculate the expected count for "intended & 3 to 5 months," one would typically use the row total for "Intended" and the column total for "3 to 5 Months," divided by the grand total. Based on the document's provided expected counts, this value is 21.86 28.

5.4 Squarecap: Calculate the expected count for “untended & more than 5 months”

The calculation for "untended & more than 5 months" is shown as (83×20)/306=x(83 \times 20) / 306 = x. Based on the document's provided expected counts, this value is 69.44 28 29.

5.5 Chi-square statistic

The chi-square statistic (X2X^2) quantifies the difference between the observed frequencies and the expected frequencies in a contingency table. A larger statistic indicates a greater discrepancy between what was observed and what would be expected if the null hypothesis were true 30.

The formula for the chi-square statistic is: X2=∑(O−E)2EX^2 = \sum \frac{(O - E)^2}{E} where OO is the observed count and EE is the expected count for each cell 30.

Using the observed and expected counts, the chi-square statistic is calculated as follows:

  • For "Unintended & More Than 5 Months": (64−69.44)2/69.44=0.43(64 - 69.44)^2 / 69.44 = 0.43
  • For "Unintended & 3 to 5 Months": (9−5.42)2/5.42=5.73(9 - 5.42)^2 / 5.42 = 5.73
  • For "Unintended & Less Than 3 Months": (22−14.58)2/14.58=2.13(22 - 14.58)^2 / 14.58 = 2.13
  • For "Intended & More Than 5 Months": (192−186.56)2/186.56=0.16(192 - 186.56)^2 / 186.56 = 0.16
  • For "Intended & 3 to 5 Months": (8−8.14)2/8.14=0.002(8 - 8.14)^2 / 8.14 = 0.002
  • For "Intended & Less Than 3 Months": (192−186.56)2/186.56=0.001(192 - 186.56)^2 / 186.56 = 0.001

The sum of these values yields the chi-square statistic: X2=0.43+5.73+2.13+0.16+0.002+0.001=8.45X^2 = 0.43 + 5.73 + 2.13 + 0.16 + 0.002 + 0.001 = 8.45 30.

The degrees of freedom (df) are calculated as (rows−1)(columns−1)(rows - 1)(columns - 1). In this case, with 2 rows and 3 columns, df=(2−1)(3−1)=2df = (2-1)(3-1) = 2 30.

📝 The chi-square statistic is calculated by summing the squared differences between observed and expected counts, divided by the expected counts for each cell, resulting in X2=8.45X^2 = 8.45 30.

5.6 Squarecap: What is your Chi-square statistic? Example

The question "Is prenatal care related to pregnancy intentions?" requires checking assumptions, calculating expected counts, and computing the chi-square statistic. The observed data and calculated expected counts are provided, leading to a chi-square statistic of 8.45 with 2 degrees of freedom 30.

5.7 Conclusion

The conclusion of a chi-square test involves comparing the calculated chi-square statistic to a critical value and interpreting the result in the context of the hypotheses. If the calculated statistic exceeds the critical value (and the p-value is less than the significance level, typically 0.05), the null hypothesis is rejected, suggesting a significant association between the variables 29 31.

In this example, the calculated chi-square statistic is 8.45, and the critical value is 5.991 with 2 degrees of freedom 31.

Test TypeDecisionEvidenceMeaning in the context/ DescriptionConditions
Chi-square test of independenceReject HoX² = 8.45 > CV = 5.991There is an association between prenatal care and pregnancy intentions.No groups had an expected count less than 5.

The analysis indicates that we reject the null hypothesis. This means there is a statistically significant association between prenatal care and pregnancy intentions 31.

An examination of the data reveals that women who waited more than 5 months for prenatal care had a higher percentage of unintended pregnancies (55%) compared to those who waited 3 to 5 months (27%) or less than 3 months (25%). This suggests that individuals with unintended pregnancies are more likely to delay seeking prenatal care 31.

6. Another Perspective

6.1 Categorical questions

This section outlines common ways categorical survey questions can introduce bias, affecting the validity of the collected data. Ensuring clarity and comprehensiveness in question design is crucial for accurate results 32.

  • Leading questions: These subtly steer respondents toward a particular answer.
  • Incomplete answer options: Failing to include all possible responses or appropriate scales can force respondents into inaccurate choices.
  • Double-negative questions: These are confusing and can lead to misinterpretation.
  • Double-barreled questions: Asking two distinct questions in one prevents respondents from giving a precise answer.
  • Non-mutually exclusive options: When more than one answer can be correct for a single question, the data becomes ambiguous 32.

📝 A question like "Don't you agree that our new product is excellent?" is a leading question that encourages a positive response 32.

7. Chi-square independence examples available.

7.1 Example 2: Greek status and socializing hours

This section presents a second example of the chi-square test of independence, examining the relationship between Greek status and hours spent socializing. The analysis involves comparing observed frequencies with expected frequencies to determine if there is a statistically significant association between these two categorical variables 34 35.

7.2 Hypothesis formulation

The primary question is whether spending 12 or more hours socializing is independent of Greek status. This is formally stated through null and alternate hypotheses 35.

  • Null hypothesis (H₀): Spending 12 or more hours socializing is independent of Greek status.
  • Alternate hypothesis (Hₐ): Spending 12 or more hours socializing is NOT independent of (is associated with) Greek status.

📝 The expected count for "Greek" students socializing "12 or More Hrs" is calculated as (31 * 87) / 182 = 14.82 36.

7.3 Observed and expected counts

The first step involves determining the observed counts from the provided data and then calculating the expected counts for each category under the assumption of independence. The expected count for each cell is calculated using the formula: (row total * column total) / grand total 34 36.

—Less than 12 hrs12 or More Hrs
Greek1219
Not Greek7576

The expected counts are calculated as follows:

  • Greek, Less than 12 hrs: (31 * 95) / 182 = 16.18
  • Greek, 12 or More Hrs: (31 * 87) / 182 = 14.82
  • Not Greek, Less than 12 hrs: (151 * 95) / 182 = 78.82
  • Not Greek, 12 or More Hrs: (151 * 87) / 182 = 72.18
—Less than 12 hrs (Expected)12 or More Hrs (Expected)
Greek16.1814.82
Not Greek78.8272.18

7.4 Chi-square statistic calculation

A chi-square statistic is calculated to quantify the difference between the observed and expected counts. The formula for the chi-square statistic is: X2=∑(Observed−Expected)2ExpectedX^2 = \sum \frac{(Observed - Expected)^2}{Expected} 36.

  • Greek, Less than 12 hrs: (12−16.18)2/16.18=0.54(12 - 16.18)^2 / 16.18 = 0.54
  • Greek, 12 or More Hrs: (19−14.82)2/14.82=0.49(19 - 14.82)^2 / 14.82 = 0.49
  • Not Greek, Less than 12 hrs: (75−78.82)2/78.82=0.10(75 - 78.82)^2 / 78.82 = 0.10
  • Not Greek, 12 or More Hrs: (76−72.18)2/72.18=0.11(76 - 72.18)^2 / 72.18 = 0.11

The total chi-square statistic is the sum of these values: X2=0.54+0.49+0.10+0.11=1.24X^2 = 0.54 + 0.49 + 0.10 + 0.11 = 1.24 36.

📝 The chi-square statistic for the "Greek, Less than 12 hrs" category is calculated as (12−16.18)2/16.18=0.54(12 - 16.18)^2 / 16.18 = 0.54 36.

7.5 Degrees of freedom and decision

The degrees of freedom (df) are calculated using the formula: df = (rows - 1)(columns - 1). For this example, df = (2-1)(2-1) = 1. The critical value for a chi-square test with 1 degree of freedom at a significance level (typically 0.05) is 3.84 37.

  • Observed Chi-square statistic: 1.24
  • Critical value: 3.84

Since the calculated chi-square statistic (1.24) is less than the critical value (3.84), we fail to reject the null hypothesis 37.

7.6 Conclusion

The chi-square test of independence with 1 degree of freedom resulted in a chi-square statistic of 1.24, which is small compared to the chi-square critical value of 3.84. An examination of the contingency table of expected counts indicates that the large samples condition (expectation) was met because no groups had an expected count less than 5. Therefore, we fail to reject the null hypothesis and conclude that there is not a relationship between Greek status and hours socializing 37.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also