Two Categorical Variables
導入済み
7:48
二変量データの探索
ある小学校から三十人の子供。各子供について二つの数値:靴のサイズと読力テストの得点。子供ごとに一点プロットする。パターンを把握するのは難しい…
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| English | 意味 |
|---|---|
| categories | |
| variables/ˈveərɪəblz/ | A characteristic recorded for each individual, such as height or eye colour. |
| categorical/ˌkætɪˈɡɒrɪkl/ | 分類 |
| two-way table/tuː weɪ ˈteɪbl/ | 二重分類表 |
| contingency table/kənˈtɪndʒənsi ˈteɪbl/ | 列联表 |
| cell/sel/ | セル |
| count/kaʊnt/ | The number of observations in a category. |
| individuals/ˌɪndɪˈvɪdʒuːəlz/ | |
| margins | |
| row and column totals | |
| marginal frequencies | |
| joint frequency/dʒɔɪnt ˈfriːkwənsi/ | |
| grand total | |
| relative frequencies/ˈrelətɪv ˈfriːkwənsiz/ | Counts divided by the total number of trials, giving proportions. |
| proportions | |
| Marginal relative frequency | A total ÷ grand total. |
| conditional relative frequency/kənˈdɪʃənl ˈrelətɪv ˈfriːkwənsi/ | 条件相対頻度 |
| denominator/dɪˈnɒmɪneɪtə/ | The lower part of a fraction, indicating the divisor or the number of equal parts in a whole. |
| side-by-side bar chart | |
| segmented bar chart/seɡˈmentɪd bɑː tʃɑːt/ | 分割棒グラフ |
| conditional distributions/kənˈdɪʃənl ˌdɪstrɪˈbjuːʃnz/ |
2つのカテゴリーを同時に扱う
- 両方の変数が**カテゴリー(質的)**であることがあります — 例えば性別と好きな教科などです。
- これらを二項表(列联表也称为 contingency table)に整理します。
- 行は一方の変数のカテゴリー、列はもう一方の変数のカテゴリーを表します。
- 各セルには、その行と列の組み合わせに属する個体の数が含まれます。
周辺と結合
- 周辺(行合計と列合計)は周辺頻度を与えます — 他方の変数を無視して、一方の変数だけの情報です。
- 単一の内側細胞はJoint frequency(連立頻度) を示し、両方のカテゴリーを同時に表す。
- 総計で割ると相対頻度(割合)が得られます。
- 周辺相対頻度 = 合計 ÷ 総計;結合相対頻度 = セル ÷ 総計。

セグメント棒グラフは各グループの条件付き分布を比較する
条件付き相対頻度
- 条件付き相対頻度は、1つのグループに注意を限定し、その中で割合を求めるものです。
- 「女子の中で、科学を選んだ比率はいくつか?」 — そのセルを女子の行合計で割ります。
- 重要なのは分母です:行合計(または列合計)であり、総計ではありません。
- 条件付き相対頻度は、グループの規模が異なっていても、公平に比較するための方法です。
棒グラフで示す
- 並べ棒グラフは、各グループの棒を隣りに配置して比較できるようにします。
- セグメント付き棒グラフは、各グループ内の割合を積み上げて1本の完全な棒として表します。
- セグメント付き棒は、条件付き分布の比較に最適です——各棒の合計は $100\%$ です。
- どの棒でもセグメントの配置が同じであれば、変数は 関連性がない(独立している) と見なされます。

3つの「頻度」は 分母 の違いだけで区別されます。連立 = セル ÷ 全体合計。 辺 = 行または列の合計 ÷ 全体合計。 条件付き = セル ÷ その 行(または列)の合計。これらを混同することは、2次元表でよくある誤りであり、計算する前に必ず「何の集団に対する分数か?」と問いかける必要があります。
$100$ 人の生徒: $60$ 人の女子のうち $36$ 人が理科を選択、 $40$ 人の男子のうち $16$ 人が理科を選択。
- 連立(女子 かつ 理科): $36/100 = 36\%$ 。
- 辺(理科全体の人数): $(36+16)/100 = 52\%$ 。
- 条件付き(女子である 場合の 理科選択): $36/60 = 60\%$ —— 分母は女子の総数である点にご注意ください。
2次元(割当)表 は2つの カテゴリー変数 をクロス集計します。連立および辺の相対頻度は 全体合計 で割り、条件付き相対頻度 はセルをその 行または列の合計 で割ります。関係性を 横並び または セグメント付き棒グラフ で表示します。
条件付き相対頻度0.4から記述する
- In one row of a two-way table, 12 of 30 students said yes.
- Implemented条件付き相対頻度0.6は別の行である。
In one row of a two-way table, 12 of 30 students said yes. What is the conditional relative frequency of yes in this row?
A conditional relative frequency divides by the given group.
In a two-way table, a row contains 30 students, of whom 12 said yes. What is the conditional relative frequency of yes?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
12 divided by 30 is 0.4.
A categorical breakdown
Each slice is one category's share of the whole.
A table that cross-classifies two categorical variables is a ___ table (use the hyphenated term).
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
A two-way (contingency) table.
Of 60 girls, 36 chose science. What is the conditional relative frequency of science given girl (as a decimal)?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
36 ÷ 60 = 0.60 — divide by the girls' row total.
A joint relative frequency divides a single cell by the ___.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Joint = cell ÷ grand total; conditional uses a row/column total.
In a segmented bar chart comparing groups, each bar sums to 100%.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Segmented bars show conditional distributions, each totaling 100%.
Match each frequency to its denominator.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Only conditional uses a group (row/column) total as the denominator.
何が問題でしたか?この内容はサイトの運営チームだけが確認します。