Chi-squared tests
도입됨
8:10
고등 확률 및 통계
Dublin, nineteen-oh-eight. Inside the Guinness brewery, a young chemist named William Gosset faces a very practical problem. He can test only a few batches of…
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| English | 의미 |
|---|---|
| chi-squared/kaɪ skweəd/ | 카제곱 |
| observed/ɒbˈzɜːvd/ | 관측값 |
| expected/ekˈspektɪd/ | 기대 |
| degrees of freedom/dɪˈɡriːz ɒv ˈfriːdəm/ | 자유도 |
| critical value/ˈkrɪtɪkl ˈvæljuː/ | 임계값 |
| goodness of fit/ˈɡʊdnəs ɒv fɪt/ | 적합도 |
| contingency table/kənˈtɪndʒənsi ˈteɪbl/ | 연표 |
| independence/ˌɪndɪˈpendəns/ | 독립성 |
데이터가 이론에 부합하는가?
- 주사위를 던졌을 때 각 면이 동등하게 나올 것을 기대하거나, 눈 색과 머리카락 색이 독립적임을 예상합니다. 데이터가 실제로 이 예상과 일치합니까?
- $\chi^2$(카이제곱) 검정은 관측 빈도가 모델이 예측하는 것과 얼마나 다른지를 측정하고, 그 격차가 우연으로 설명하기엔 너무 큰지 여부를 판단합니다.
Chi-squared test route
Follow observed and expected counts to a test decision.
검정 통계량
- 각 관측 빈도 $O$를 모델로부터의 기대 빈도 $E$와 비교합니다:
- 작은 $\chi^2$은 데이터가 잘 맞음을 의미하고, 큰 값은 맞지 않음을 의미합니다.
The chi-squared test statistic is:
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
χ² sums (observed − expected)² ÷ expected over all categories.
기각 영역
- $\chi^2$를 우측 자유도에 대한 표의 임계값과 비교합니다.
- $\chi^2$가 임계값을 초과(상단 꼬리)하면, 모형을 기각합니다.

큰 χ² 값이 음영 꼬리에 위치함 — 우연일 수 없을 정도로 크므로 모형을 기각함.

A large chi-squared value (beyond the critical value) leads you to reject the model.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
A large χ² means a discrepancy at least this large would be unlikely under the null hypothesis.
A 3 × 4 contingency table is tested for independence. How many degrees of freedom?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
ν = (3 − 1)(4 − 1) = 6.
A Poisson model is fitted to 6 classes (after pooling), with λ estimated from the data. What is ν?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
ν = 6 − 1 − 1 = 4: one for the total, one for the estimated λ.
worked example (해설 예시)
- 관측 빈도 $20, 30, 25, 25$, 각기 $25$로 기대됨.
- $\chi^2 = \dfrac{(20-25)^2 + (30-25)^2 + 0 + 0}{25} = \dfrac{25 + 25}{25} = 2$.
- 임계값과 비교했을 때, $2$인 $\chi^2$는 작음 — 데이터가 잘 맞음.

Observed counts 20, 30, 25, 25, each expected 25. What is χ² = Σ(O−E)²/E?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
((−5)² + 5² + 0 + 0)/25 = 50/25 = 2.
Observed counts are 10, 20 and 30, and each expected count is 20. What is chi-square, and why are expected counts below 5 pooled?
Chi-square adds squared differences divided by the expected counts. The approximation needs those expected counts not to be tiny.
두 가지 용도
- 적합도 검정: 데이터가 제안된 분포(균일, 이항, 포아송 등)를 따르는가?
- 독립성 검정: 배열표에서 두 분류가 독립인가? (기대 $= \dfrac{\text{row total} \times \text{column total}}{\text{grand total}}$.)
작은 기대 빈도를 합치세요. 기대 빈도가 5 미만이면, 먼저 범주를 통합해야 합니다. 기대 빈도가 너무 작으면 $\chi^2$ 근사가 신뢰할 수 없습니다.
Match each chi-squared use to what it tests.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
Goodness of fit checks a distribution; the independence test uses a contingency table.
Before testing, pool any class whose expected frequency is below ______.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
The χ² approximation needs expected counts of at least 5; combine smaller ones.
In a contingency table with grand total 200, a row total is 80 and a column total is 45. Find the expected frequency for that cell.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
80 × 45 ÷ 200 = 18.
이해했습니다
- $\chi^2 = \displaystyle\sum\frac{(O-E)^2}{E}$ — 관측 빈도와 기대 빈도의 차이
- 큰 $\chi^2$(임계값 초과, 상단 꼬리)는 모형을 기각함
- 용도: 적합도 검정 및 독립성 검정; 기대 빈도 5 미만은 합침
Write from a chi-square value of 10
- 관찰 빈도는 10, 20 및 30입니다. 기대 빈도는 각각 20입니다.
- χ²를 구하십시오. 테스트 전에 기대 빈도가 5 이하인 경우 합쳐야 합니다.

Without looking back: a test of independence on a 2 × 2 table gives χ² = 2.9. State the hypotheses, ν, the 5% critical value and the conclusion.
Never say H₀ is proved true.
이 카드는 새로 추가되어 번역이 준비될 때까지 영어로 표시됩니다.
You've got it
- $\chi^2 = \displaystyle\sum\frac{(O-E)^2}{E}$ — observed vs expected counts
- a large $\chi^2$ (beyond the critical value, upper tail) rejects the model
- $\nu$ = classes − 1 − estimated parameters; contingency table $(r-1)(c-1)$
- uses: goodness of fit 拟合优度 and independence; pool expected counts below 5; conclude in context
Observed counts are 10, 20 and 30, and each expected count is 20. What is chi-square?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Each outer cell contributes 5, and 5 plus 5 is 10.
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.