Expected Counts in Two-Way Tables
導入済み
7:48
カテゴリーデータのための推論:カイ二乗
公平なサイコロを六十回振ります。各面は十回ずつ出るはずです。しかし、そうはなりません—ここ八回、あそこ十三回。ギャップは常に存在します。もう一度振って…
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| English | 意味 |
|---|---|
| Expected counts/ekˈspektɪd kaʊnts/ | |
| two-way table/tuː weɪ ˈteɪbl/ | |
| cell/sel/ | セル |
| null/nʌl/ | |
| variables/ˈveərɪəblz/ | A characteristic recorded for each individual, such as height or eye colour. |
| grand total | |
| row total | |
| column total | |
| observed counts/ɒbˈzɜːvd kaʊnts/ | |
| Degrees of freedom/dɪˈɡriːz ɒv ˈfriːdəm/ | |
| margins | |
| sample size/ˈsæmpl saɪz/ | |
| null model |
表における期待値
- 2次元表の場合、各セルには「相関なし」の帰無仮説のもとで独自の期待度数がある。
- 計算式:
-
$$\text{expected} = \frac{(\text{row total})(\text{column total})}{\text{grand total}}$$
- 各セルについて個別に計算する。
なぜこの公式なのか?
- 帰無仮説の下では、2つの変数は 無相関 であり、各行で列の割合(スプリット)は同じである。
- よって、あるセルの期待値 = (その行の合計)$\times$ (その列の全体比率)。
- その列の比率は $\dfrac{\text{column total}}{\text{grand total}}$ である。
- 展開すると、行$\times$列$\div$/総計の公式が得られる。

期待頻度 = 行合計 × 列合計 ÷ 総計

各セルを確認する
- 「大きな数」の条件は、すべてのセルの期待値 $\ge 5$ に適用される。
- 観測値ではなく、また一部のセルだけでなく、すべてのセルである。
- 期待値が小さいセルが1つあっても、検定全体が無効になりうる。
- 期待値の表全体を計算し、確認する。
自由度
- 2次元表の場合、$df = (\text{rows} - 1)(\text{columns} - 1)$。
- $2 \times 3$ 表 → $df = (2-1)(3-1) = 2$。
- 辺の合計が固定された後の「自由」なセル数を数える。
- 標本サイズではなく、表の形状に依存する。
Expected counts in a two-way table
Compute the count you would expect in a cell if the two variables were independent.
二重分類表の$df$ は $(\text{rows}-1)(\text{columns}-1)$ であり、積である——(cell $-1$ の和ではない)。 $2\times2$ 表には $df=1$ があり、$3$ はない。また、期待度数の式では各cellについて 行合計 $\times$ × 列合計 $\div$ ÷ 全体合計 を用いる。分子になるのが何の合計か混同するのが一般的なミスである。すべての期待度数 $\ge 5$ をチェックすること。
$2\times2$ 表: 行の合計 $60, 40$; 列の合計 $50, 50$; 総計 $100$。
- 左上のセルの 期待値: $\dfrac{60 \times 50}{100} = 30$。
- 残りの4つのセルでも同様: $30, 30, 20, 20$ — すべて $\ge 5$ ✓。
- $df$: $(2-1)(2-1) = 1$.
2次元表において、各セルの期待度数 $= \frac{(\text{row total})(\text{column total})}{\text{grand total}}$ (「相関なし」の帰無仮説から導かれる)。すべての期待度数が $\ge 5$ であることを確認せよ。自由度は $(\text{rows} - 1)(\text{columns} - 1)$。
期待頻度 12 から計算する
- 行合計が 40、列合計が 30、表の合計が 100 です。
- このImplementedの期待頻度は 30 を含みます。このセルは行全体ではありません。
Under the null of independence, a cell has row total 40, column total 30 and grand total 100. What is its expected count?
Expected count is row total times column total divided by the table total.
Under the null of independence, a cell has row total 40, column total 30 and grand total 100. What is its expected count?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
1200 divided by 100 is 12.
Row total 60, column total 50, grand total 100. Find the expected count (row·col/grand).
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
60 × 50 / 100 = 30.
For a 2×3 two-way table, what are the degrees of freedom (r−1)(c−1)?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
(2−1)(3−1) = 1×2 = 2.
For a 2×2 two-way table, what are the degrees of freedom?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
(2−1)(2−1) = 1.
The large counts condition for a two-way table requires...
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
All expected cells must be at least 5.
The degrees of freedom for a two-way table are the number of cells minus 1.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
It's (rows−1)(columns−1), a product.
何が問題でしたか?この内容はサイトの運営チームだけが確認します。