#P02 · Probability, Statistics & AI · Lv.2View in 3D Mind-Map

Conditional Probability & Chain Rule

Andrey Kolmogorov & Pierre-Simon Laplace · 1933 CE

P(A∣B)=P(A∩B)P(B),P(A∩B)=P(B)P(A∣B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}, \quad P(A \cap B) = P(B)P(A \mid B)
P(x1,…,xT)=∏t=1TP(xt∣x1,…,xt−1)P(x_1, \dots, x_T) = \prod_{t=1}^T P(x_t \mid x_1, \dots, x_{t-1})

Defines the probability of event A given that event B has occurred, shrinking the sample space to B and enabling autoregressive probability chains.

🧮 Live Formula Calculator & Plotter
Prob P(A)
Prob P(B)
Joint Prob P(A∩B)
P(A∣B)=0.250.50=50.0%P(A\mid B) = \frac{0.25}{0.50} = 50.0\%
조건부확률 P(A | B)
50.00%
역조건부 P(B | A)
62.50%
독립성 판정 P(A)P(B)
0.200 (종속)
P(A)40.0P(B)50.0P(A∩B)25.0P(A|B)50.0

Prerequisite Path (4 STEP)

Full Path Analyzer

Click steps in order to follow the 3D neon path from basics to target.

Geometric & Intuitive Insight

비 오는 날(B) 우산을 들고 있을 확률 P(A|B)은 전체 날 중 '비도 오고 우산도 든 날(A∩B)'의 비율을 '비 오는 날(B)'의 비율로 나눈 값입니다.

Step-by-Step Derivation

  1. Step 1.전체 표본공간 S에서 사건 B가 발생했으므로 새로운 표본공간은 B로 제한됩니다.
  2. Step 2.B 안에서 A가 일어나는 영역은 교집합 A∩B입니다.
  3. Step 3.따라서 P(A|B) = n(A∩B)/n(B) = P(A∩B)/P(B) (단, P(B) > 0)

AI & Coding Real-World Use

Core equation of autoregressive LLMs (like GPT), predicting the next token via P(w_t | w_1...w_{t-1}).

#LLM Next-Token#Autoregressive AI#Markov Chains#Probabilistic Graphical Models
const pAgivenB = (pAB, pB) => pB > 0 ? pAB / pB : 0;

Probability, Statistics & AI — Related Formulas in This Cluster