Are My Results Unexpected?
導入済み
7:48
カテゴリーデータのための推論:カイ二乗
公平なサイコロを六十回振ります。各面は十回ずつ出るはずです。しかし、そうはなりません—ここ八回、あそこ十三回。ギャップは常に存在します。もう一度振って…
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| English | 意味 |
|---|---|
| counts/kaʊnts/ | カウント |
| observed counts/ɒbˈzɜːvd kaʊnts/ | 観測頻度 |
| expected counts/ekˈspektɪd kaʊnts/ | 期待頻度 |
| chi-square/kaɪ skweə/ | カイ二乗 |
| categorical data/ˌkætɪˈɡɒrɪkl ˈdeɪtə/ | |
| categories | |
| chi-square test | |
| degrees of freedom/dɪˈɡriːz ɒv ˈfriːdəm/ | The number of independent values free to vary after relevant constraints have been imposed. |
| Goodness-of-fit/ˈɡʊdnəs ɒv fɪt/ | |
| categorical variable/ˌkætɪˈɡɒrɪkl ˈveərɪəbl/ | A variable that places individuals in groups. |
| distribution/ˌdɪstrɪˈbjuːʃn/ | The pattern of values or outcomes and their frequencies or probabilities. |
| Two-way table/tuː weɪ ˈteɪbl/ | |
| sample/ˈsæmpl/ | A subset of a population selected for observation, measurement or analysis. |
| homogeneity/independence | |
| null hypothesis/nʌl haɪˈpɒθəsɪs/ | The default claim about a population parameter that a statistical test assesses against an alternative. |
| percentages | |
| null model | |
| observations |
カウントが驚くべきとき
- 一部の質問は、観察されたカウントが私たちが期待するもの differed かどうかを問う。
- 「キャンディ袋の色は広告のミックスと一致しているか?」
- 私たちは主張下での期待カウントに対して観察カウントを比較する。
- 観察値と期待値の間の大きな乖離は、何か異常なことが起きているシグナルである。
カイ二乗ファミリー
- ツールはカイ二乗の検定ファミリーであり、$\chi^2$と表記される。
- カテゴリカルデータ向けに作られている — 測定値ではなく、カテゴリ内のカウント。
- すべてのカイ二乗検定は、観測値と期待値を比較する。
- 総ギャップが大きいほど → 大きな $\chi^2$ → 主張への反証となる証拠が強くなる。

観測値と期待値の比較:大きな乖離がχ²を大きくする

カイ二乗の問題はどれか?
- 適合度検定: 1つのカテゴリ変数が主張された分布に一致するか?
- 二重表問題: 2つのカテゴリ変数が関連しているか(グループ間で、または1つのグループ内で)。
- 変数1つ・サンプル1つ → 適合度検定;変数2つの表 → 均質性検定/独立性検定。
- 検定タイプを特定することが最初の判断となる。
観測値と期待値
- すべてのχ²検定は1つの比較に基づいている:観測値 vs. 期待値。
- 期待値=帰無仮説が予測する各カテゴリの値。
- 観測値=データが実際に示す値。
- この検定は、観測値が期待値から全体的にどれだけずれているかを測定する。
カイ二乗検定は「割合」や「百分率」ではなく「個数」を使う。 問題に百分率が与えられている場合は、 anything を計算する前に実際の個数に戻す必要がある。論理全体は 観測値 vs. 期待値 であり、期待値は帰無モデルから導かれ、大きな総乖離が $\chi^2$ を大きくする要因となる。
袋には $4$ のキャンディ色が同数あると声称されている;$100$ 個のキャンディを数えた。
- 期待値(均等混合):各色が$25$個。
- 観測値:$30, 20, 28, 22$ — 近いが完全ではない。
- χ²検定は、これらの乖離が驚くべきものなのか、単なる偶然なのかを判断する。
カイ二乗検定は、分類データにおける観測頻度が期待頻度と異なるかどうかを問う。適合度検定は1つの変数が声称された分布に適合するかを検査し、2次元表検定は2つの変数が関連しているかを検査する。すべての $\chi^2$ 検定は観測頻度対期待頻度を比較する。
期待値20から書き出す
- モデルが正しい場合、あるカテゴリーに20個の観測値が含まれる expected です。
- 本研究では28观察到。授業の期待値25は別のモデルです。
Under the null model a category has expected count 20; the observed count is 28. What count does the model predict?
Expected counts are what the null model predicts.
Under the null model a category has expected count 20; the observed count is 28. What count does the model predict?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
The model, not the observation, sets 20. Other options — 28 (the observed count); 25 (the other model).
A categorical count breakdown
Chi-square tests compare observed slices to expected slices.
Chi-square tests are designed for which kind of data?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Chi-square compares counts in categories.
A goodness-of-fit test involves how many categorical variables?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
GOF checks one variable against a claimed distribution.
Chi-square tests should be run on percentages, not counts.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Convert percentages back to counts first — chi-square uses counts.
A bag of 100 candies claims 4 equally likely colors. What is the expected count per color?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
100 ÷ 4 = 25 expected per color.
Every chi-square test compares observed counts to ___ counts (one word).
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Observed vs. expected is the heart of chi-square.
何が問題でしたか?この内容はサイトの運営チームだけが確認します。