Carrying Out a Two-Way Chi-Square Test
導入済み
7:48
カテゴリーデータのための推論:カイ二乗
公平なサイコロを六十回振ります。各面は十回ずつ出るはずです。しかし、そうはなりません—ここ八回、あそこ十三回。ギャップは常に存在します。もう一度振って…
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| English | 意味 |
|---|---|
| independent random samples | |
| chi-square test for a two-way table | |
| variable/ˈveərɪəbl/ | A characteristic recorded for each individual, such as height or eye colour. |
| test for homogeneity/test fɔː ˈhɒməʊdʒneɪti/ | A chi-square test of whether several populations share one distribution. |
| distribution/ˌdɪstrɪˈbjuːʃn/ | The pattern of values or outcomes and their frequencies or probabilities. |
| population/ˌpɒpjʊˈleɪʃn/ | The entire set of individuals, items or outcomes about which a statistical study seeks information. |
| test for independence/test fɔː ˌɪndɪˈpendəns/ | A chi-square test of whether two variables are associated in one population. |
| association/əˌsəʊsɪˈeɪʃn/ | A relationship between two variables. |
| expected counts/ekˈspektɪd kaʊnts/ | |
| hypotheses | |
| Large counts | |
| cells/selz/ | |
| p-value/piː ˈvæljuː/ | |
| categories | |
| right-tail area |
統計量の計算
- カイ二乗統計量 は、表の すべてのセル に対する同じ和である:
-
$$\chi^2 = \sum \frac{(\text{observed} - \text{expected})^2}{\text{expected}}$$
- 各セルの観測値と8.4での期待値を用いる。
- すべてのセル項を1つの $\chi^2$ に加算する。

p値を求める
- $df = (\text{rows}-1)(\text{columns}-1)$ のカイ二乗分布を用いる。
- p値 は、あなたの $\chi^2$ を超える 右側の領域 である。
- 大きな $\chi^2$ → 小さなp値 → $H_0$ に対する強い証拠。
- 標本サイズではなく、表の形状から正しい $df$ を得る。

χ²分布:p値は検定統計量より右側の裾確率です
A school surveys one random sample of 300 students and records each student's year group and favourite sport. Which test fits?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
One sample with two categorical variables per student → independence. Separate samples from each year group would be homogeneity.
このカードは修正されたため、翻訳が更新されるまで英語で表示されます。
Worked test: State and Plan
State. $H_0$: the distribution of main news source is the same for adults under 40 and adults aged 40 or older in this city. $H_a$: the distributions differ. $\alpha=0.05$.
Plan. Chi-square test for homogeneity.
- Random: independent random samples from each age group.
- 10%: Assume each age group in the city has at least 1,000 adults, so 100 is no more than 10% of each group.
- Large counts 大频数条件: expected count $=\dfrac{\text{row total}\times\text{column total}}{\text{table total}}$. Each row total is 100, so the expected counts are $\frac{100\times60}{200}=30$, $\frac{100\times115}{200}=57.5$, $\frac{100\times25}{200}=12.5$ in each row; all at least 5.
In a two-way table with total 400, a row total is 160 and a column total is 90. Find the expected count for that cell.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
(row total × column total) ÷ table total = 160 × 90 ÷ 400 = 36.
文脈の中で結論を出す
- 同質性の場合: 「グループ間で分布が異なると言える説得力のある証拠がある」(棄却した場合)。
- 独立性の場合: 「2つの変数間に相関があると説得力のある証拠がある」(棄却した場合)。
- 変数/グループ名と、実際の文脈を明記する。
- 棄却できないことは、グループが同一である/変数が独立であることを証明しない。
With χ² = 6.0 at df = 1, the p-value ≈ 0.014. At α = 0.05, the decision is...
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
0.014 ≤ 0.05 → reject H0.
The p-value for a two-way chi-square test is a right-tail area.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Chi-square is always right-tailed.
For a 3×4 two-way table, find the degrees of freedom (r−1)(c−1).
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
(3−1)(4−1) = 2×3 = 6.
結論の wording を検定内容に合わせる。一様性検定で棄却 → グループの分布が異なる;独立性検定で棄却 → 変数は関連している。一様性設計に対して「変数が関連している」と言うべきではなく、また独立性設計に対して「グループが異なる」と言うべきではない — 数式は共有されているが、主張は異なる。
In the news-source test, which statement best describes the difference between the age groups?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
The TV cells give the largest terms (3.33 each). Observational data show a difference, not a cause.
$2\times2$ 独立性検定は、$\chi^2 = 6.0$、$df = 1$、$\alpha = 0.05$ を与える。
- p値:右 tail 面積であり、$df=1 \approx 0.014$ における $6.0$ よりも大きい領域。
- 判断:$0.014 \le 0.05$ → $H_0$ を棄却。
- 結論: 2つの変数が関連している(文脈において)ことを示す説得力のある証拠。
Rejecting H0 in a test of INDEPENDENCE means...
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Independence: reject → the variables are associated.
Rejecting H0 in a test of HOMOGENEITY means...
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Homogeneity: reject → the group distributions differ.
A chi-square test for independence of "owns a pet" and "exercises daily" in a random sample of adults gives p = 0.31 (α = 0.05). Write the conclusion.
A large p-value means weak evidence, not proof of independence.
全セルについて $\chi^2 = \sum \frac{(\text{observed}-\text{expected})^2}{\text{expected}}$ を計算し、$df = (\text{rows}-1)(\text{columns}-1)$ における右側p値を求め、$\alpha$ と比較する。結論はデザインに合わせて記述する:分布が異なる(同質性)または変数が関連している(独立)、と文脈に含めること。
自由度 4 から計算する
- χ²検定では 3 行 × 3 列の表を使用します。
- この授業の統計量 6 は計算されたカイ二乗値であり、この表の自由度ではない。
このカードは新しいため、翻訳ができるまで英語で表示されます。
- The design decides the test, not the table. The same table could come from one sample (independence) or several samples (homogeneity).
- df uses rows and columns of categories 类别, not the totals row or column: a $2\times3$ table has $df=2$.
- Expected counts are usually not whole numbers (57.5 is fine). Never round them to make the check pass.
このカードは新しいため、翻訳ができるまで英語で表示されます。
A two-way chi-square test compares observed and expected counts in every cell: $\chi^2=\sum\frac{(\text{O}-\text{E})^2}{\text{E}}$, with $\text{E}=\frac{\text{row total}\times\text{column total}}{\text{table total}}$ and $df=(r-1)(c-1)$; the p-value is the right-tail area 右尾面积. Several samples → homogeneity (distributions differ?); one sample, two variables → independence (association?). Conclude in context and use the largest terms to say where the difference lies.
何が問題でしたか?この内容はサイトの運営チームだけが確認します。