確率変数と確率分布
予測と観測の証跡を記録した後にのみ補助を利用できます。
前提条件
Day 25(確率の基礎)を完了すること。行き詰まった場合は記載の回復リンク(Day 21)を使う。
学習目標
離散確率変数を結果から数への関数として定義し、確率分布表を検証し、トークン上のカテゴリ分布につなげる。
手順
確率変数 $X$ は標本空間の各結果を数へ写す関数で、その分布は $\sum_x P(X=x)=1$ を満たす $P(X=x)$ の一覧。公平なサイコロなら $X$ は $\{1,\dots,6\}$ 上の一様分布。必須作業:サイコロの $E[X]$ を計算し、値 $\{0,1,2,3\}$ 上のトークン型分布 $p=[0.5,0.25,0.125,0.125]$ を検証する。
演習と予測記録
(a) 公平なサイコロの $E[X]$ を求め、非整数の期待値が結果と矛盾しない理由を説明せよ。(b) $\{0,1,2,3\}$ 上の $p=[0.5,0.25,0.125,0.125]$ で $\sum p = 1$ を確かめ $P(X\ge 2)$ を求めよ。(c) $p$ を 4 つのトークン型上のカテゴリ分布と見ると、最もありそうなトークンはどれか?
$E[X] = (1+2+3+4+5+6)/6$。$P(X\ge 2) = P(X=2)+P(X=3)$。期待値は確率で重み付けした長期平均であって、必ず出る結果ではない。
(a) $E[X] = 21/6 = 3.5$:期待値は長期平均でありサイコロの目ではない。(b) $0.5+0.25+0.125+0.125=1$、$P(X\ge 2)=0.125+0.125=0.25$。(c) $p=0.5$ のトークン 0 が最もありそう。カテゴリ分布とはまさに離散型上の確率表で、言語モデルの出力層が作る形そのものである。
正規化 $\sum p = 1$ を検証し、$P(X\ge2)=0.25$ を計算し、期待値が単一の結果とは別の平均であると説明できること。
公式ソースリソースと権利証跡
Introductory Statistics 2e
該当セクション・タイムスタンプ: Chapter 4: Discrete Random Variables (probability distribution functions)
検証バージョンと日付: 2e web edition (Verified: 2026-10-30)
Open textbook treatment of discrete random variables and distribution tables.
High-school algebra; Day 25 probability foundations
All required definitions, tables, and worked answers are reproduced locally in this lesson.
比較対象候補リソースと選定評価 (3)
Rigorous but paced for a full graduate semester; exceeds the depth needed for Days 25-27 training-objective foundations.
Accessible video-first coverage; noncommercial/share-alike terms and video pacing make it a supplementary rather than primary link.
Strong intuition-building course; the printed textbook is paywalled, so it complements rather than replaces the openly licensed OpenStax text.
CS229 Review of Probability Theory
該当セクション・タイムスタンプ: Section 2.4-2.5: Random variables, distributions, expectation
検証バージョンと日付: 2020 public course notes (Verified: 2026-10-30)
ML-oriented definition of random variables bridging to categorical token distributions.
Multivariate calculus notation exposure
Self-contained definitions and derivations in activity instructions and offline guide.
比較対象候補リソースと選定評価 (2)
Co-selected: provides the gentler beginner narrative; CS229 provides the ML-oriented notation bridge.
Strong full-course treatment with noncommercial/share-alike terms; heavier than the compact CS229 reference for this three-day block.