Carrying Out a Two-Way Chi-Square Test
도입됨
7:48
범주형 데이터에 대한 추론: 카이제곱
공정한 주사위를 60번 굴립니다. 모든 면이 각각 10번씩 나와야 합니다. 하지만 절대 그렇지 않습니다—여기는 8번, 저기는 13번. 간격은 항상 존재합니다. 그래서 또…를 굴립니다.
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| English | 의미 |
|---|---|
| independent random samples | |
| chi-square test for a two-way table | |
| variable/ˈveərɪəbl/ | A characteristic recorded for each individual, such as height or eye colour. |
| test for homogeneity/test fɔː ˈhɒməʊdʒneɪti/ | A chi-square test of whether several populations share one distribution. |
| distribution/ˌdɪstrɪˈbjuːʃn/ | The pattern of values or outcomes and their frequencies or probabilities. |
| population/ˌpɒpjʊˈleɪʃn/ | The entire set of individuals, items or outcomes about which a statistical study seeks information. |
| test for independence/test fɔː ˌɪndɪˈpendəns/ | A chi-square test of whether two variables are associated in one population. |
| association/əˌsəʊsɪˈeɪʃn/ | A relationship between two variables. |
| expected counts/ekˈspektɪd kaʊnts/ | |
| hypotheses | |
| Large counts | |
| cells/selz/ | |
| p-value/piː ˈvæljuː/ | |
| categories | |
| right-tail area |
통계량 계산
- 카이제곱 통계량은 표의 모든 셀에 대한 동일한 합산식임:
-
$$\chi^2 = \sum \frac{(\text{observed} - \text{expected})^2}{\text{expected}}$$
- 8.4절의 각 셀의 관측 빈도와 기대 빈도를 사용함.
- 모든 셀 항을 하나의 $\chi^2$에 더함.

p-value 찾기
- $df = (\text{rows}-1)(\text{columns}-1)$ 카이제곱 분포를 사용함.
- p-value는 관측된 $\chi^2$ 이상의 우단 면적임.
- 큰 $\chi^2$ → 작은 p-value → **$H_0$**에 대한 강력한 반증 evidence.
- 표본 크기 대신 표의 형태에서 올바른 $df$을 얻음.

카이제곱 분포: p-value는 검정 통계치 이후의 우측 꼬리입니다
A school surveys one random sample of 300 students and records each student's year group and favourite sport. Which test fits?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
One sample with two categorical variables per student → independence. Separate samples from each year group would be homogeneity.
이 카드는 내용이 수정되어 번역이 업데이트될 때까지 영어로 표시됩니다.
Worked test: State and Plan
State. $H_0$: the distribution of main news source is the same for adults under 40 and adults aged 40 or older in this city. $H_a$: the distributions differ. $\alpha=0.05$.
Plan. Chi-square test for homogeneity.
- Random: independent random samples from each age group.
- 10%: Assume each age group in the city has at least 1,000 adults, so 100 is no more than 10% of each group.
- Large counts 大频数条件: expected count $=\dfrac{\text{row total}\times\text{column total}}{\text{table total}}$. Each row total is 100, so the expected counts are $\frac{100\times60}{200}=30$, $\frac{100\times115}{200}=57.5$, $\frac{100\times25}{200}=12.5$ in each row; all at least 5.
In a two-way table with total 400, a row total is 160 and a column total is 90. Find the expected count for that cell.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
(row total × column total) ÷ table total = 160 × 90 ÷ 400 = 36.
맥락에서 결론 내리기
- 동질성의 경우: "집단 간 분포가 다르다는 설득력 있는 증거" (기각 시).
- 독립성의 경우: "두 변수가 연관됨에 대한 설득력 있는 증거" (기각 시).
- 변수/집단을 명시하고 실제 맥락을 기술함.
- 기각하지 못함은 그룹이 동일하거나 변수가 독립임을 증명하지 않습니다.
With χ² = 6.0 at df = 1, the p-value ≈ 0.014. At α = 0.05, the decision is...
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
0.014 ≤ 0.05 → reject H0.
The p-value for a two-way chi-square test is a right-tail area.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Chi-square is always right-tailed.
For a 3×4 two-way table, find the degrees of freedom (r−1)(c−1).
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
(3−1)(4−1) = 2×3 = 6.
결론을 검정 방식에 맞게 서술하십시오. 동질성 검정에서 기각할 경우 → 그룹의 분포가 다릅니다; 독립성 검정에서 기각할 경우 → 변수는 연관되어 있습니다. 동질성 설계에서는 "변수가 관련되었다"고 말하지 말고, 독립성 설계에서는 "그룹이 다르다"고 말하지 마십시오. 수식은 공유되지만 주장은 다릅니다.
In the news-source test, which statement best describes the difference between the age groups?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
The TV cells give the largest terms (3.33 each). Observational data show a difference, not a cause.
$2\times2$ 독립성 검정은 $\chi^2 = 6.0$, $df = 1$, $\alpha = 0.05$를 제공합니다.
- p-value: $6.0$에서 $df=1 \approx 0.014$까지의 우측 꼬리 면적이다.
- 결정: $0.014 \le 0.05$ → $H_0$를 기각합니다.
- 결론: 두 변수가 연관되어 있다는 설득력 있는 증거가 있음(문맥 내).
Rejecting H0 in a test of INDEPENDENCE means...
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Independence: reject → the variables are associated.
Rejecting H0 in a test of HOMOGENEITY means...
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Homogeneity: reject → the group distributions differ.
A chi-square test for independence of "owns a pet" and "exercises daily" in a random sample of adults gives p = 0.31 (α = 0.05). Write the conclusion.
A large p-value means weak evidence, not proof of independence.
모든 셀에 대해 $\chi^2 = \sum \frac{(\text{observed}-\text{expected})^2}{\text{expected}}$를 계산하고, $df = (\text{rows}-1)(\text{columns}-1)$에서의 우측 꼬리 p-value를 찾아 $\alpha$와 비교하십시오. 결론을 설계에 맞게 서술하십시오: 분포가 다름(동질성) 또는 변수 연관됨(독립성), 문맥 내.
자유도 4에서 구하기
- 카이제곱 검정은 3 × 3 표를 사용합니다.
- 해당 교재의 통계량 6은 이 표의 자유도가 아닌 계산된 카이제곱 값입니다.
이 카드는 새로 추가되어 번역이 준비될 때까지 영어로 표시됩니다.
- The design decides the test, not the table. The same table could come from one sample (independence) or several samples (homogeneity).
- df uses rows and columns of categories 类别, not the totals row or column: a $2\times3$ table has $df=2$.
- Expected counts are usually not whole numbers (57.5 is fine). Never round them to make the check pass.
이 카드는 새로 추가되어 번역이 준비될 때까지 영어로 표시됩니다.
A two-way chi-square test compares observed and expected counts in every cell: $\chi^2=\sum\frac{(\text{O}-\text{E})^2}{\text{E}}$, with $\text{E}=\frac{\text{row total}\times\text{column total}}{\text{table total}}$ and $df=(r-1)(c-1)$; the p-value is the right-tail area 右尾面积. Several samples → homogeneity (distributions differ?); one sample, two variables → independence (association?). Conclude in context and use the largest terms to say where the difference lies.
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.