id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
id
title
category
status
canonical_id
aliases
duplicate_of
source_trust_level
confidence_score
verification_status
tags
raw_sources
last_reinforced
github_commit
tech_stack
wiki-2026-0508-bayes-theorem
Bayes' Theorem
10_Wiki/Topics
verified
self
Bayes Rule
Bayes Law
Conditional Probability Inversion
none
A
0.98
applied
probability
statistics
inference
mathematics
decision-theory
2026-05-10
pending
language
framework
Python
SciPy / NumPy
Bayes' Theorem
매 한 줄
"매 P(A|B) = P(B|A) × P(A) / P(B) — conditional probability 의 inversion 의 통한 evidence-based belief revision 의 mathematical foundation" . Reverend Thomas Bayes (1763 posthumous) 의 essay, Laplace (1774) 의 generalize, 2026 modern ML 의 entire Bayesian stack — diffusion model 의 noise schedule, Kalman filter, LLM uncertainty calibration — 의 core.
매 핵심
매 공식 the form
Standard : P(A|B) = P(B|A) × P(A) / P(B)
Odds form : O(A|B) = O(A) × LR where LR = P(B|A)/P(B|¬A)
Discrete partition : P(H_i|E) = P(E|H_i)P(H_i) / Σⱼ P(E|H_j)P(H_j)
Continuous : p(θ|D) = p(D|θ)p(θ) / ∫p(D|θ)p(θ)dθ
매 terminology
Prior P(A): pre-evidence belief
Likelihood P(B|A): evidence-given-hypothesis
Posterior P(A|B): post-evidence belief
Evidence / Marginal P(B): normalizing constant
매 응용
Medical testing — base-rate-aware diagnosis (mammography paradox).
Spam filtering — Naive Bayes classifier.
Search & rescue — posterior heatmap update from sensor sweep.
LLM 의 token sampling — temperature-scaled posterior over vocabulary.
💻 패턴
Medical test (base rate problem)
Naive Bayes spam (log-space)
Bayesian A/B (closed-form Beta-Binomial)
Odds-form rapid update
Kalman filter (Bayesian, Gaussian)
매 결정 기준
상황
Approach
Conjugate prior 의 fit
closed-form posterior
Discrete + small
exact enumeration
Continuous + nonconjugate
MCMC (NUTS / HMC)
Streaming sensor data
Kalman / particle filter
Class imbalance + features
Naive Bayes baseline
기본값 : probabilistic classification 의 default — Naive Bayes (log-space) + Laplace smoothing.
🔗 Graph
🤖 LLM 활용
언제 : probabilistic reasoning 의 explanation, base-rate-aware decision, evidence weighting.
언제 X : deterministic logic 의 sufficient 인 경우 — overhead 의 X.
❌ 안티패턴
Base-rate neglect : P(B|A) 의 confuse with P(A|B) — prosecutor's fallacy.
Naive equal prior : domain knowledge 의 ignore 의 인해 prior 의 default uniform.
Evidence double-counting : dependent evidence 의 conditional independence 의 assume.
Improper normalization : continuous case 의 evidence integral 의 omit.
🧪 검증 / 중복
Verified (Jaynes Probability Theory: The Logic of Science , Pearl Causality 2nd).
신뢰도 A.
🕓 Changelog
날짜
변경
2026-05-08
Phase 1
2026-05-10
Manual cleanup — full Bayes' theorem with medical, NB, A/B, Kalman patterns