Setting Up a Goodness-of-Fit Test (Extension)
導入済み
7:48
カテゴリーデータのための推論:カイ二乗
公平なサイコロを六十回振ります。各面は十回ずつ出るはずです。しかし、そうはなりません—ここ八回、あそこ十三回。ギャップは常に存在します。もう一度振って…
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| 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 |
適合度検定の仮説
- 適合度検定は、1つの変数を主張された分布と比較する。
- 帰無 $H_0$: 声称された分布は正しい(例:声明されたすべての比率通り)。
- 代替 $H_a$: 分布は声称されたとおりではない(少なくとも1つの比率が異なる)。
- $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$。
- 4色キャンディ → $df = 4 - 1 = 3$。
- $df$はp値に使用するχ²曲線を選択する。
- サンプルサイズではなく、カテゴリの数に依存する。
カイ二乗のための大標本条件は「観測値」ではなく「すべての期待値が $\ge 5$」 です。期待値を確認し、すべて確認してください — 1つでも小さい期待値があれば検定は無効になります。ここで $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$: サイコロは公平ではない — 少なくとも1つの目の出現確率が異なる。
適合度検定では、$H_0$: 主張される分布が成り立つ、対して $H_a$: 成り立たない、という仮説を持つ。期待度数 $= n \times$(主張される比率)について、ランダム性、10%以上、およびすべての期待度数 $\ge 5$ を確認する。自由度は $(\text{categories}) - 1$。
期待値20から書き出す
- 適合度検定モデルには、等確率な4つのカテゴリーがあります。
- 観測値が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'.
何が問題でしたか?この内容はサイトの運営チームだけが確認します。