Setting Up a Goodness-of-Fit Test (Extension)
도입됨
7:48
범주형 데이터에 대한 추론: 카이제곱
공정한 주사위를 60번 굴립니다. 모든 면이 각각 10번씩 나와야 합니다. 하지만 절대 그렇지 않습니다—여기는 8번, 저기는 13번. 간격은 항상 존재합니다. 그래서 또…를 굴립니다.
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| English | 의미 |
|---|---|
| goodness-of-fit/ˈɡʊdnəs ɒv fɪt/ | A test of whether one categorical variable fits a claimed distribution. |
| hypotheses | |
| variable/ˈveərɪəbl/ | A characteristic recorded for each individual, such as height or eye colour. |
| distribution/ˌdɪstrɪˈbjuːʃn/ | The pattern of values or outcomes and their frequencies or probabilities. |
| proportions | |
| expected count/ekˈspektɪd kaʊnt/ | 기대 계수 |
| category/ˈkætɪɡəri/ | A group in a categorical variable. |
| null model | |
| chi-square statistic/kaɪ skweə stəˈtɪstɪk/ | |
| observed counts/ɒbˈzɜːvd kaʊnts/ | |
| Random/ˈrændəm/ | |
| random sample/ˈrændəm ˈsæmpl/ | A sample chosen by a chance process. |
| randomized process | |
| sampling without replacement | |
| chi-square approximation | |
| simulation method | |
| Degrees of freedom/dɪˈɡriːz ɒv ˈfriːdəm/ | |
| probabilities | |
| parameters/pəˈræmɪtəz/ | Values that specify a model or function, or named inputs that a subroutine receives. |
| chi-square curve | |
| p-value/piː ˈvæljuː/ | The probability, assuming the null model, of a test statistic at least as extreme as the observed one in the direction or directions tested. |
| sample size/ˈsæmpl saɪz/ | |
| independent observations |
적합도 검정의 가설
- 적합도 검정은 하나의 변수가 주장된 분포와 일치하는지 확인합니다.
- 영가 $H_0$: 주장된 분포가 맞음 (예: 명시된 모든 비율).
- 대안가 $H_a$: 분포가 주장된 것과 아님 (최소 한 가지 비율이 다름).
- $H_a$은 방향성이 아닌 단순 "무언가가 틀림"을 나타내는 문장입니다.

기대 빈도
- 한 범주의 기대 빈도 = $n \times$(주장된 비율).
- $100$개의 캔디를 각 $25\%$개씩: 색상별 기대 $= 100 \times 0.25 = 25$개.
- 기대 빈도는 정수가 아닐 수 있습니다. 정확한 값을 유지하십시오.
- 영가 모델이 평균적으로 예측하는 값입니다.
조건 확인
- 무작위: 데이터가 무작위 샘플이나 무작위화 프로세스에서 유래함.
- 10%: 무반환 표본 추출 시 $n \le 0.10N$일 것.
- 큰 빈도: 모든 기대 빈도 $\ge 5$(카이제곱 버전).
- 모든 기대 빈도가 $5$을 넘어야 하며, 그렇지 않으면 $\chi^2$ 모델이 신뢰할 수 없습니다.
자유도
- 적합도 검정에 $df = (\text{number of categories}) - 1$.
- 네 가지 캔디 색상 → $df = 4 - 1 = 3$.
- $df$은 p-value를 위해 사용할 카이제곱 곡선의 형태를 결정합니다.
- 샘플 크기가 아니라 범주의 수에 의존합니다.
카이제곱의 큰 빈도 조건은 '모든 기대 빈도 $\ge 5$'이지 관측값이 아닙니다. 기대 빈도를 모두 확인하십시오 — 작은 기대 빈도가 하나라도 있으면 검정이 무효화됩니다. 그리고 여기서 $df = \text{categories} - 1$(흔한 실수는 $n-1$을 사용하는 것인데, 이는 $t$용이며 카이제곱 적합도 검정용이 아님).
주사위가 공정한지 $60$번 굴려 검증합니다. $H_0$: 각 면이 나올 확률은 $1/6$입니다.
- 기대 빈도 면당: $60 \times \tfrac{1}{6} = 10$ (전체 $\ge 5$ ✓).
- $df$: $6 - 1 = 5$ (6개의 면).
- $H_a$: 주사위는 공평하지 않음 — 최소 한 면의 확률이 다름.
적합도 검정에는 영가 $H_0$(주장된 분포가 성립됨)과 대안가 $H_a$(성립되지 않음)이 있습니다. 기대 빈도 $= n \times$(주장된 비율); 무작위, 10%, 그리고 **모든 기대 빈도 $\ge 5$**을 확인하십시오. 자유도는 $(\text{categories}) - 1$입니다.
기대 빈도 20에 기반하여 작성하기
- 적합도 검정 모델은 네 가지 동일한 확률을 가진 범주로 구성됩니다.
- 관측치는 총 80개입니다. 이 강의의 기대 빈도 10과 5은 다른 표본 크기를 의미합니다.
A null goodness-of-fit model specifies four equally likely categories for 80 independent observations. Find each expected count and check the expected-count condition.
Equal categories share the sample size.
A null goodness-of-fit model specifies four equally likely categories for 80 independent observations. Find each expected count and check the expected-count condition.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
80 divided by 4 is 20. Other options — 10 (the other sample); 5 (the minimum condition).
The claimed distribution
Expected counts come from the null distribution's proportions.
A fair die is rolled 60 times. What is the expected count for each face (60 × 1/6)?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
60 × 1/6 = 10.
For a goodness-of-fit test with 6 categories, what are the degrees of freedom?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
df = categories − 1 = 6 − 1 = 5.
The large counts condition for a chi-square test requires...
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
All EXPECTED counts must be at least 5.
Expected counts must always be whole numbers.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Keep them exact — they need not be integers.
The alternative hypothesis for a goodness-of-fit test says...
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Ha is a non-directional 'the distribution isn't as claimed'.
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.