독립·베이즈 정리·기저율Independence, Bayes’ rule and base rates
같은 교집합에서 사전·관찰·사후·오즈·반복 증거를 차근차근 읽기Read priors, evidence, posteriors, odds and repeated information from the same joint mass
실습 6종 · 풀이 포함 연습문제 55개6 labs · 55 exercises with solutions
기초Foundations
1. 잘 잡는 신호라도 신호가 난 뒤의 비율은 다르다1. A strong detection rate differs from the probability after a signal
가정 품질관리 모형에서 불량 비율은 1%, 불량일 때 경고가 날 비율은 90%, 정상품인데 경고가 날 비율은 5%라고 합시다. 경고가 난 물건의 불량 확률도 90%일까요? 아닙니다. 원래 정상품이 훨씬 많아서 그중 5%도 상당한 경고 질량을 만듭니다.
가정 크기 10000개의 모형 기대횟수는 불량 경고 90, 정상 경고 495입니다. 경고 안의 불량 비율은 90/(90+495)=2/13≈15.38%입니다. 이 숫자는 실제 공장 관찰값이 아니라 명시한 법칙의 계산입니다. 실제 펭귄 자료에서는 같은 분모 논리를 원기록으로 확인합니다.
In a hypothetical quality-control model, 1% of objects are defective. A warning appears for 90% of defective objects and 5% of nondefective objects. Does a warning imply 90% probability of a defect? No: the much larger nondefective group also contributes many warnings.
For an assumed model group of 10000, expected counts are ninety defective warnings and 495 nondefective warnings. The retained defect probability is 90/(90+495)=2/13, about 15.38%. These are model expectations, not observed factory counts. Actual penguin records will illustrate the same denominator logic.
기초Foundations
2. 독립은 결합 질량을 주변 질량의 곱으로 분해한다2. Independence factorizes joint mass into marginal masses
앞 장에서 독립을 P(H∩E)=P(H)P(E)로 정의했습니다. H는 관심 상태, E는 관찰 조건이라는 기호로 다시 읽어 봅시다. P(E)>0일 때 독립이면 P(H|E)=P(H)입니다. 관찰 E가 H의 확률을 바꾸지 않는 구조입니다.
H⊥E⟺P(H∩E)=P(H)P(E),[H⊥E,P(E)>0]⟹P(H∣E)=P(H)
상태와 관찰이 의존해야 관찰이 유용할 수 있습니다. 그렇다고 의존이 언제나 인과를 뜻하지는 않습니다. 여기서는 같은 법칙 안의 사건 관계를 다루며, 어떤 행동으로 H를 바꾸는 정책 효과는 별도 문제입니다.
확률 0이나 1인 사건도 곱의 정의로 독립을 판단합니다. 조건부 비율 식은 분모가 양수일 때만 사용합니다. 경계에서 정의를 바꾸어 맞추지 않고 두 표현의 적용 범위를 구별합니다.
Use H for a state of interest and E for an observed event. Independence means P(H∩E)=P(H) P(E). If E has positive probability, independence implies that observing E does not change H’s probability.
H⊥E⟺P(H∩E)=P(H)P(E),[H⊥E,P(E)>0]⟹P(H∣E)=P(H)
An observation can be informative because state and observation are dependent. Dependence alone does not establish causation. Changing a state by intervention requires another identification argument.
The product definition includes probability-zero and probability-one events. Conditional-ratio expressions require positive denominators. Keep their domains distinct at boundaries.
기초Foundations
3. 주변합을 보존하는 독립 기준표를 만든다3. Build an independence reference table with the same marginals
h=P(H), e=P(E)가 주어지면 독립일 때 네 칸은 he,h(1−e),(1−h)e,(1−h)(1−e)입니다. 행·열 합은 h와 e를 그대로 유지합니다. 실제 표가 이 기준표와 같아야 독립입니다.
pind=(he,h(1−e),(1−h)e,(1−h)(1−e))
국가의 주변확률 h=9/16, e=1/2를 유지하면 독립 기준표는 (9/32,9/32,7/32,7/32)입니다. 실제 표는 (1/2,1/16,0,7/16)이라 다릅니다. 기준표는 실제 관찰을 다시 만든 것이 아니라 같은 주변합의 비교 법칙입니다.
관찰수가 N이라면 기준확률에 N을 곱한 값은 독립 기준의 기대횟수입니다. 반드시 정수일 필요가 없고 실제 관찰 칸을 그 값으로 덮어쓰지 않습니다. 이후 카이제곱 장에서 추론을 더하지만 여기서는 대수 비교만 합니다.
Given h=P(H) and e=P(E), independence requires cells he, h(1−e),(1−h) e,(1−h)(1−e). These preserve the row and column marginals.
pind=(he,h(1−e),(1−h)e,(1−h)(1−e))
For country marginals h=9/16, e=1/2, the reference is (9/32,9/32,7/32,7/32), unlike actual cells (1/2,1/16,0,7/16). The reference is a comparison law rather than new observations.
Multiplying reference probabilities by N gives expected counts under independence, which need not be integers. Do not replace actual cells with these expectations. Inferential chi-square analysis comes later.
기초Foundations
4. 독립 실습: 실제 표와 비교 법칙을 나란히 놓는다4. Independence lab: compare the joint table with its reference law
네 원질량을 넣고 정규화한 표, 주변확률, 독립 기준표, 차이 P(H∩E)−P(H)P(E)를 봅니다. 기본 국가 (8,1,0,7)에서 차이는 7/32입니다. (1,1,1,1)로 바꾸면 차이가 0입니다.
입력은 가정 질량이며 실제 국가 기록을 수정하는 창이 아닙니다. 모든 질량에 같은 양수 배율을 곱하면 정규화 표와 독립 판정이 같습니다. 전체 0은 확률 법칙이 아니어서 비교 판정도 미정의입니다.
한 칸의 차이만 확인해도 되는 이유는 네 칸의 주변합이 고정되면 다른 세 칸이 그 칸과 주변합으로 정해지기 때문입니다. 이 등식 비교는 정의한 유한 법칙의 정확 검사이지 모집단 독립 검정의 p값이 아닙니다.
Enter four masses and compare normalized cells, marginals, the independence reference and P(H∩E)−P(H) P(E). Default country cells (8,1,0,7) give gap 7/32; four equal masses give zero.
Inputs are hypothetical masses rather than edits to country records. A common positive rescaling preserves the law. Zero total has no normalized probability law and no independence verdict.
With fixed marginals, one shared cell determines the remaining cells, so the intersection identity suffices. This exact finite-law check is not a population-test p-value.
기초Foundations
5. 독립이면 여사건 쌍도 독립이다5. Independence extends to complementary events
H와 E가 독립이면 H∩Eᶜ의 확률은 P(H)−P(H∩E)=h−he=h(1−e)입니다. 즉 H와 Eᶜ도 독립입니다. 같은 계산으로 Hᶜ와 E, Hᶜ와 Eᶜ도 독립입니다.
P(H∩Ec)=P(H)−P(H∩E)=h(1−e)
이는 독립 기준표 네 칸의 곱 구조와 같은 내용입니다. 하지만 서로 배반인 양의 사건을 독립이라고 부르지는 않습니다. 한쪽이 일어났을 때 다른 쪽의 확률이 0이 되므로 원래의 양의 확률과 다릅니다.
어떤 사건 H가 자기 자신과 독립일 조건은 h=h², 즉 h=0 또는1입니다. “자기와 독립은 절대로 불가능”이라는 일상적 직관을 수학 정의로 교정하는 작은 반례입니다.
If H and E are independent, P(H∩Eᶜ)=h−he=h(1−e). Thus H and Eᶜ are independent. Taking further complements proves the other two complementary pairs as well.
P(H∩Ec)=P(H)−P(H∩E)=h(1−e)
This is the same four-cell factorization. Disjoint positive-probability events are not independent, because learning one occurred forces the other probability to zero.
An event is independent of itself exactly when h=h², or h is zero or one. Mathematical definitions can differ from everyday intuitions about the word independent.
기초Foundations
6. 두 번 고르는 실험과 한 기록의 두 속성을 구별한다6. Two ticket draws differ from two attributes of one record
한 국가 기록에서 GDP와 기대수명을 보는 사건쌍은 같은 기록의 두 속성입니다. 반면 국가 이름표를 두 번 뽑고 각각 기대수명 조건을 확인하는 것은 두 선택 결과의 사건쌍입니다. 독립 여부가 같은 질문이 아닙니다.
16개 이름표 중 조건 B를 만족하는 것이 8개라면, 독립 균등 복원 추출에서 두 번 모두 B는 (8/16)²=1/4입니다. 균등 비복원 추출에서는 (8/16)(7/15)=7/30입니다. 두 번째 주변확률은 여전히1/2지만 첫 B가 주어지면7/15입니다.
복원 방식의 독립은 선택 장치를 독립적으로 정의한 결과입니다. 실제 국가들의 경제 변화가 서로 독립이라는 뜻이 아닙니다. 표본 추출의 독립과 연구대상 변수의 관계를 나누어 말하세요.
GDPpc and life-expectancy events on one country record concern two attributes. Drawing two country tickets and checking life expectancy concerns two selection outcomes. These are different independence questions.
With eight qualifying tickets among sixteen, independent uniform replacement gives two-event probability 1/4. Uniform sampling without replacement gives (8/16)(7/15)=7/30. The second marginal remains 1/2, while its conditional probability after a qualifying first ticket is 7/15.
Independent selection does not assert that economic changes across actual countries are independent. Separate the selection mechanism from relationships among substantive variables.
기초Foundations
7. Bayes 정리는 같은 교집합을 두 방향으로 읽는다7. Bayes’ rule reads the same intersection in two directions
P(H)>0와 P(E)>0이면 교집합을 P(E|H)P(H)로도, P(H|E)P(E)로도 쓸 수 있습니다. 둘을 같게 놓고 P(E)로 나누면 역조건의 식을 얻습니다.
P(H∣E)=P(E)P(E∣H)P(H),P(H)>0,P(E)>0
증명의 핵심은 H∩E=E∩H라는 집합 대칭입니다. 조건부확률 자체가 대칭이라는 뜻은 아닙니다. 분자 교집합은 같아도 나누는 P(E)와 P(H)가 다르므로 두 조건부확률은 보통 다릅니다.
P(H)=0인 경계에서는 P(E|H)가 원래 비율로 정의되지 않습니다. 그때는 사전에 선택한 생성 커널과 결합질량으로 표현해야 합니다. 23절에서 경계까지 안전하게 읽는 방법을 따로 다룹니다.
When P(H)>0 and P(E)>0, write the intersection as both P(E|H) P(H) and P(H|E) P(E). Equating them and dividing by P(E) gives Bayes’ rule.
P(H∣E)=P(E)P(E∣H)P(H),P(H)>0,P(E)>0
The proof uses the symmetric intersection H∩E=E∩H, not symmetric conditional probabilities. Different denominators generally make the reversed conditionals unequal.
At P(H)=0, the ratio P(E|H) is undefined. A preselected generating kernel and its joint masses provide a separate boundary representation, discussed in Section 23.
기초Foundations
8. 분모는 두 상태에서 나온 관찰 질량의 합이다8. The denominator combines evidence mass from both states
H와 Hᶜ로 전체를 나누고 p=P(H),a=P(E|H),b=P(E|Hᶜ)라 합시다. 0<p<1이면 두 조건률이 비율로 정의됩니다. 전체 관찰 확률은 e=pa+(1−p)b입니다.
P(H∣E)=pa+(1−p)bpa,e=pa+(1−p)b>0
분자 pa는 H이면서 E인 질량, 분모의 두 번째 항은 H가 아닌데도 E인 질량입니다. 이 항을 빼먹으면 관찰 E가 언제나 H를 완벽히 가리키는 것처럼 과장합니다.
a+b를 분모로 쓰는 것은 일반적으로 틀립니다. a와 b는 서로 다른 집단 안의 비율이어서 그 집단의 원질량 p와1−p를 곱해야 합니다. p=1/2인 특수 경우에만 두 1/2가 약분되어 a/(a+b)로 단순화됩니다.
Partition by H and not-H. Let p=P(H), a=P(E|H), b=P(E|Hᶜ), with 0< p< 1 so both ratios exist. Total evidence probability is e=pa+(1−p) b.
P(H∣E)=pa+(1−p)bpa,e=pa+(1−p)b>0
The numerator is joint H-and-E mass. The second denominator term is evidence arising without H. Omitting it exaggerates how uniquely E identifies H.
Using a+b as the denominator ignores group masses. Only at equal prior weights does cancellation give the special expression a/(a+b).
기초Foundations
9. 사전·조건률·전체 관찰·사후의 역할을 구별한다9. Separate prior, conditional event rates, evidence and posterior
사전 p는 E를 반영하기 전의 H질량, 사후는 E조건 안에서 다시 계산한 H질량입니다. 이 장의 실제 기록에서는 사전이 원기록 집단 비중일 수 있고, 가정 재가중에서는 사용자가 선택한 시나리오 비중입니다.
조건률 a,b는 각각의 상태 아래에서 같은 관찰 E가 얼마나 가능한지 나타냅니다. 고정 E를 두고 상태를 비교하는 우도라는 말로 읽을 수 있지만 a+b=1이어야 하는 것은 아닙니다. 같은 조건 아래의 E와 Eᶜ 확률은 합이1이고, 서로 다른 조건의 E확률끼리는 그런 규칙이 없습니다.
이 장의 사후는 명시한 사건모형의 조건부확률입니다. 매개변수 θ의 연속 사전분포·우도·사후분포를 추정하는 Bayesian 추론 전체는 STAT18에서 다룹니다. 오늘의 항등식이 현실 모형의 타당성을 자동 보장하는 것은 아닙니다.
The prior is H’s mass before incorporating E; the posterior is its mass after conditioning on E. In actual records the prior can be a recorded mixture share; in reweighting it can be an explicitly selected scenario.
The rates a, b compare the same event E under different states. As likelihoods for fixed E they need not sum to one. Complementary observations within one fixed condition sum to one; rates under different conditions do not.
This chapter computes event-model posteriors. Continuous parameter priors, likelihoods and Bayesian estimation are developed in STAT18. An identity within a model does not validate that model empirically.
기초Foundations
10. Bayes 실습: 교집합을 만든 뒤 관찰 분모로 나눈다10. Bayes lab: construct joint mass before dividing by evidence
사전 p와 두 조건률 a,b를 바꾸어 네 칸을 먼저 읽습니다. 기본값 p=0.01, a=0.9, b=0.05의 네 칸은 (0.009,0.001,0.0495,0.9405)입니다. 관찰 E의 질량은0.0585, 그중 H의 질량은0.009입니다.
사후 0.009/0.0585=2/13을 a=0.9와 비교하세요. E가 없는 조건의 사후는0.001/(0.001+0.9405)=2/1883입니다. E와 Eᶜ는 서로 다른 관찰이므로 각 분모를 따로 씁니다.
a=b인 양수 값을 넣으면 사후가 사전과 같아집니다. 둘 다0이면 E가 불가능해 그 조건의 사후는 미정의입니다. a=b라서 언제나 정보가 없다고만 말하기 전에 관찰 조건이 양수인지 확인합니다.
Change p, a, b and read the four joint cells first. Defaults 0.01,0.9,0.05 give (0.009,0.001,0.0495,0.9405). Evidence mass is 0.0585 and shared H-and-E mass is 0.009.
Compare posterior 2/13 with a=0.9. Without E, the posterior is 0.001/(0.001+0.9405)=2/1883. The two observations require different denominators.
Equal positive a, b leave the prior unchanged. If both are zero, E is impossible and its posterior is undefined. Check positive evidence before describing an observation as uninformative.
기초Foundations
11. 기저율은 관찰 전 집단의 크기 차이를 나타낸다11. A base rate describes the mixture before the observation
앞의 가정 모형에서 불량은1%, 정상은99%입니다. 불량 쪽 경고율90%가 정상 쪽5%보다 높아도, 정상 집단이99배 커서 정상 경고 질량이 더 큽니다. 기저율을 무시하면 이 집단 크기를 잊습니다.
p=0.5로 바꾸고 a=0.9, b=0.05를 유지하면 사후는0.45/(0.45+0.025)=18/19≈94.74%가 됩니다. 같은 두 조건률에서도 원비중이 다르면 사후는 크게 달라집니다.
어떤 관찰을 얻고 나서 그 관찰에 맞추어 사전만 고르는 것은 가정과 관찰의 역할을 흐릴 수 있습니다. 실제 적용에서는 원집단·이전 정보·선택 과정에 맞는 기저율 근거를 제시하고, 불확실하면 여러 시나리오를 함께 계산합니다.
The model starts with 1% defects and 99% nondefects. Although warnings are much more common within defects, the nondefective group is 99 times larger. Ignoring the base rate discards this mixture information.
Changing only p to 0.5 gives posterior 0.45/(0.45+0.025)=18/19, about 94.74%. The same conditional event rates can yield very different posteriors under different mixtures.
Choosing a prior merely to fit an already seen observation blurs its role. For applications, justify the reference group and selection process, and report sensitivity when the base rate is uncertain.
기초Foundations
12. 기대횟수는 모형 질량을 가정 크기 N배 한 값이다12. Expected counts scale model masses by an assumed size N
가정 크기 N의 집단에서 네 칸의 모형 기대횟수는 Npa,Np(1−a),N(1−p)b,N(1−p)(1−b)입니다. 기본 N=10000이면 (90,10,495,9405)입니다. 실제로 그 횟수를 세었다는 문장이 아닙니다.
N=1000이면 정상 경고 기대횟수가49.5입니다. 실제 관찰 횟수는 정수이지만 기대횟수는 정수일 필요가 없습니다. 열 번 같은 조건의 집단을 생각할 때 평균적으로 어떤 크기를 예상하는지 나타내는 수입니다.
경고 중 불량의 모형확률은 N을 약분하면 동일하게2/13입니다. 이 값은 기대횟수들의 비로 표현한 모형 조건부확률이지, 무작위 관찰비율의 기대값이 일반적으로 기대횟수의 비와 같다는 정리가 아닙니다. 실제 표가 비어 있으면 관찰비율은 별도 미정의입니다.
For an assumed group size N, model expected counts are Npa, Np(1−a), N(1−p) b, N(1−p)(1−b). Defaults with N=10000 give (90,10,495,9405). No actual counts have been observed in this exercise.
At N=1000, the nondefective-warning expectation is 49.5. Observed counts are integers, but expectations need not be. They summarize the model’s average count under repeated comparable groups.
N cancels from the ratio, leaving model conditional probability 2/13. This does not assert a general identity between the expectation of a random observed ratio and a ratio of expected counts. An observed empty denominator remains a separate issue.
기초Foundations
13. 기저율 실습: 수가 많아 보이는 것과 확률을 구별한다13. Base-rate lab: distinguish count scale from conditional probability
사전·두 조건률·가정 크기 N을 바꾸며 기대횟수 표를 봅니다. N만1000에서10000으로 바꾸면 모든 칸이10배가 되지만 사후는 같습니다. p를 바꾸면 두 집단 질량 비율이 바뀌어 사후도 달라집니다.
이 창의 경고 횟수를 실제 불량 확정 수나 관찰된 공장 실적이라고 부르지 않습니다. 소수 기대횟수를 정수로 반올림한 뒤 그 수로 다시 확률을 계산하면 원모형과 달라질 수 있습니다. 계산은 원질량으로 유지하고 소수는 표시에서만 반올림합니다.
관찰 E의 질량이0이면 네 칸의 E기대횟수도0입니다. N을 크게 만든다고 불가능한 조건의 사후가 정의되는 것은 아닙니다. 양의 모형조건과 큰 가정 집단은 서로 다른 요건입니다.
Change the prior, two event rates and assumed N. Increasing N from 1000 to 10000 scales all expectations by ten without changing the posterior. Changing p changes the mixture and generally the posterior.
These are not observed factory counts or confirmed defect totals. Rounding fractional expected counts before recomputing ratios can alter the model. Calculate from original masses and round only displays.
If E has zero mass, its expected count is zero for every N. Increasing group size cannot make conditioning on an impossible event well-defined.
기초Foundations
14. 잘 잡는 비율·잘 거르는 비율·관찰 뒤의 비율은 다르다14. Detection, rejection and predictive proportions have different conditions
H를 불량, E를 경고라고 부르면 a=P(E|H)는 불량 중 경고 비율이고, 1−b=P(Eᶜ|Hᶜ)는 정상 중 비경고 비율입니다. 사후 P(H|E)는 경고 중 불량 비율로 분모가 바뀝니다. 이 세 숫자를 모두 정확도라고 부르면 질문을 놓칩니다.
전체 맞춘 비율을 계산한다면 pa+(1−p)(1−b)입니다. 기본 모형에서는0.009+0.9405=0.9495입니다. 94.95%라는 전체 맞춤률이 경고 중94.95%가 불량이라는 뜻은 아닙니다. 기저율이 낮을 때 모든 물건을 정상이라고만 부르는 규칙도 전체맞춤률이 높을 수 있습니다.
분류 규칙을 실제로 평가하려면 별도 검증자료·대표성·기준 라벨·오류 비용을 검토해야 합니다. 이 장의 가정률은 수학 예시이며 실제 기기의 품질보증 지표가 아닙니다.
With H=defect and E=warning, a is the warning rate among defects, while 1−b is the nonwarning rate among nondefects. P(H|E) instead uses all warnings as its denominator. Calling them all accuracy hides distinct questions.
An overall correct-classification rate would be pa+(1−p)(1−b), equal to 0.9495 in the default model. It does not imply 94.95% defect probability among warnings. Under a rare-state mixture even an always-normal rule can have high overall accuracy.
Actual evaluation needs validation records, reference labels, coverage and error costs. The chosen rates here illustrate probability algebra, not a real device guarantee.
기초Foundations
15. 관찰이 없다는 정보도 별도 조건이다15. Absence of the observation is a separate condition
E가 없다는 조건에서는 a를1−a,b를1−b로 바꾸어 같은 계산을 합니다. 조건 분모는 P(Eᶜ)=p(1−a)+(1−p)(1−b)입니다. P(H|E)의 여사건1−P(H|E)는 P(Hᶜ|E)이지 P(H|Eᶜ)가 아닙니다.
P(H∣Ec)=p(1−a)+(1−p)(1−b)p(1−a)when the denominator is positive
기본 모형에서 경고가 없을 때 불량 확률은2/1883≈0.1062%입니다. 관찰 E의 사후2/13과 서로 다른 정보를 반영합니다. 둘을 더하면1이어야 한다는 규칙은 없습니다.
경고가 없다는 데이터가 기록되지 않은 경우와 실제로 비경고였다는 경우도 다릅니다. 관찰 누락을 자동으로 Eᶜ라고 해석하지 않습니다. 실제 자료에서는 결측 상태를 먼저 구분합니다.
For not-E, replace a, b by 1−a, 1−b and use the complementary evidence denominator. One minus P(H|E) is P(Hᶜ|E), not P(H|Eᶜ).
P(H∣Ec)=p(1−a)+(1−p)(1−b)p(1−a)when the denominator is positive
The default nonwarning posterior is 2/1883, about 0.1062%. It conditions on different information from the warning posterior 2/13; the two need not sum to one.
A missing warning record differs from an observed nonwarning. Do not automatically interpret unrecorded information as the complementary event.
선택 심화Optional extension
16. 같은 조건률에서 사전이 커지면 사후는 어떻게 변하나16. How does the posterior change with the prior?
a,b가 모두 양수라고 하고 B(p)=pa/[pa+(1−p)b]를 봅니다. p가 커지면 관심 집단의 질량이 커지므로 사후도 증가합니다. 이를 단순 주장으로 두지 않고 미분으로 확인할 수 있습니다.
B′(p)=[b+(a−b)p]2ab>0(a>0,b>0,0<p<1)
분모가 양수인 범위에서 몫의 미분을 쓰면 분자는 a[b+(a−b)p]−pa(a−b)=ab가 됩니다. 기초 읽기에서는 p=0.01과0.5의 네 칸을 직접 비교하고, 미분은 수리기초 9장과 연결하는 선택 심화로 읽으세요.
b=0이나 a=0에서는 이 엄격 증가 결론을 그대로 쓰지 않습니다. 예컨대 a>0, b=0이면 p>0에서 사후는 항상1이고 p=0에서는 E조건이 미정의입니다. 경계의 정의 상태를 먼저 확인합니다.
For positive a, b, write B(p)=pa/[pa+(1−p) b]. The posterior increases with the prior. Differentiation verifies the relationship rather than relying only on a graph.
B′(p)=[b+(a−b)p]2ab>0(a>0,b>0,0<p<1)
The quotient-rule numerator simplifies to ab. Beginners can instead compare joint tables at p=0.01 and 0.5; the derivative is an optional connection to Mathematical Foundations 9.
The strict statement does not extend unchanged to zero event rates. If a> 0, b=0, the posterior is one for every positive p, but undefined at p=0 because E has zero mass.
기초Foundations
17. 지지하는 증거와 절반을 넘는 사후는 다르다17. Evidence favoring H need not make H more likely than not
e>0에서 사후와 사전의 차이를 계산하면 p(1−p)(a−b)/e입니다. 0<p<1일 때 a>b이면 사후가 사전보다 크고, a<b이면 작습니다. 두 조건률이 같으면 양의 관찰 아래에서 사전이 유지됩니다.
B(p)−p=pa+(1−p)bp(1−p)(a−b)
기본 모형은1%에서15.38%로 증가했으므로 H를 지지하는 관찰입니다. 그러나 여전히50%보다 작습니다. 사후가 증가했다는 상대 변화와 H가 절반 이상이라는 수준 판단을 구별하세요.
이 지지 방향은 명시한 모형 안의 비교입니다. 조건률을 잘못 추정하거나 집단 이동으로 바뀌었으면 같은 입력 계산이 현실 답을 보장하지 않습니다. 모형 민감도는 계산의 정확성과 별도로 남습니다.
Subtracting the prior gives p(1−p)(a−b)/e. For an interior prior and positive evidence, a> b increases H’s probability and a< b decreases it.
B(p)−p=pa+(1−p)bp(1−p)(a−b)
The default observation raises H from 1% to 15.38%, so it favors H while leaving H less likely than not. Direction of change and crossing 50% are different statements.
This evidence direction is model-relative. Incorrect or transported conditional rates can invalidate an empirical interpretation even when the arithmetic is exact.
선택 심화Optional extension
18. 사후가 목표를 넘기 위한 사전 문턱을 유도한다18. Derive the prior needed to exceed a posterior target
a,b>0, 목표 q∈(0,1)에서 B(p)>q를 풉시다. 양의 분모를 곱하고 p항을 모으면 p[(1−q)a+qb]>qb입니다. 따라서 사전 문턱을 직접 계산할 수 있습니다.
B(p)>q⟺p>(1−q)a+qbqb(a,b>0,0<q<1)
q=1/2이면 문턱은 b/(a+b)입니다. a=0.9, b=0.05에서는1/19≈5.263%입니다. 정확히 p=1/19이면 사후는1/2이고, 넘으려면 엄격히 큰 p가 필요합니다. 반올림한 문턱 숫자와 정확 부등식을 섞지 않습니다.
이 문턱은 확률 목표를 푼 대수식입니다. 실제 조치의 적절한 기준이 반드시50%라는 뜻은 아닙니다. 오류 비용·대안 행동을 포함한 결정 문제는 다른 장에서 다룹니다.
For positive a, b and target q∈(0,1), multiply B(p)> q by the positive denominator and collect p terms. This yields an exact prior threshold.
B(p)>q⟺p>(1−q)a+qbqb(a,b>0,0<q<1)
At q=1/2 the threshold is b/(a+b). Defaults give 1/19, about 5.263%. Equality gives posterior 1/2; exceeding it requires a strictly larger prior. Keep exact boundaries separate from rounded displays.
This is an algebraic probability target, not a universal action rule. Decisions also depend on costs and alternatives, developed elsewhere.
기초Foundations
19. 오즈는 확률을 여사건 확률과 비교한 비이다19. Odds compare a probability with its complement
확률 p=1/4는 네 질량 중 하나가 H라는 뜻입니다. 오즈는 H 대 H아님이1대3이라는 비교, 즉 p/(1−p)=1/3입니다. 확률25%와 오즈1/3은 같은 수치가 아닙니다.
O(H)=1−pp(0≤p<1),p=1+OO(0≤O<∞)
p=0.8이면 오즈는4이고4대1로 읽습니다. 유한 오즈 O=4를 다시 확률로 바꾸면4/5입니다. 오즈가1보다 클 수 있어도 확률이1보다 커진 것은 아닙니다.
p=1이면 분모가0이어서 유한 비율이 아니며 확장 의미로 무한 오즈라고 표시합니다. p=0이면 오즈는0입니다. 이후의 곱셈에서0과무한이 만나면 일반 유한 산술처럼 계산하지 않습니다.
Probability 1/4 compares H with total mass. Odds compare H with not-H, giving 1: 3 or 1/3. These represent the same law but are different numerical quantities.
O(H)=1−pp(0≤p<1),p=1+OO(0≤O<∞)
Probability 0.8 gives odds four, read four to one; converting back gives 4/5. Odds can exceed one without probabilities doing so.
Probability one has an infinite rather than finite odds ratio. Probability zero has odds zero. Products involving zero and infinity require separate boundary handling.
기초Foundations
20. 오즈 갱신에서는 공통 관찰 분모가 약분된다20. The common evidence denominator cancels in odds updating
0<p<1, a>0, b>0이면 두 사후확률이 모두 양수입니다. P(H|E)와 P(Hᶜ|E)의 비에서 공통 분모 e를 약분하면 pa/[(1−p)b]가 됩니다.
O(H∣E)=P(Hc∣E)P(H∣E)=(1−p)bpa=ba1−pp
a/b를 이 관찰의 우도비라고 부릅니다. 기본 모형은 사전오즈1/99, 우도비18, 사후오즈18/99=2/11입니다. 확률로 되돌리면 (2/11)/(1+2/11)=2/13입니다.
우도비는 같은 관찰을 두 상태에서 얼마나 잘 설명하는지의 비교입니다. 사후 자체가 아니며 사전오즈를 함께 써야 합니다. 이 식의 단순 유한곱은 양의 조건을 붙여 읽고 경계는22~23절에서 다룹니다.
With an interior prior and positive a, b, both posterior state probabilities are positive. Their ratio cancels the common evidence denominator.
O(H∣E)=P(Hc∣E)P(H∣E)=(1−p)bpa=ba1−pp
The likelihood ratio a/b is eighteen in the default model. Prior odds 1/99 become posterior odds 2/11, which convert to probability 2/13.
A likelihood ratio compares the same observation under two states. It is not itself a posterior. Use the stated positive conditions for this finite-product formula and inspect boundary cases separately.
기초Foundations
21. 우도비 1·큰 값·작은 값의 의미를 조건과 함께 읽는다21. Interpret likelihood ratios with their conditions
a,b>0이면 우도비가1보다 큰 관찰은 H의 오즈를 늘리고, 1보다 작으면 줄이며, 1이면 그대로 둡니다. 우도비100도 사전오즈가1/100000이면 사후오즈가1/1000이므로 사후확률은1/1001에 불과합니다.
“드문 관찰이다”와 “H를 지지한다”는 다릅니다. a=0.001, b=0.01이면 관찰은 두 상태 모두에서 드물지만 우도비1/10으로 H에 불리합니다. 반대로 a=0.8, b=0.4는 흔한 관찰이어도 H를 지지합니다.
같은 a,b를 사전과 무관하게 비교할 수 있다는 대수적 사실과 실제 다른 집단에서도 a,b가 유지된다는 경험 가정은 다릅니다. 집단 이동·선택·측정 방식이 조건률을 바꿀 수 있습니다.
For positive a, b, a likelihood ratio above one raises odds, below one lowers them and one preserves them. Even a ratio of 100 leaves posterior probability 1/1001 when prior odds are 1/100000.
Rarity alone does not favor H. Rates 0.001 and 0.01 give likelihood ratio 1/10, evidence against H. Rates 0.8 and 0.4 describe a common event that nevertheless favors H.
Algebraically comparing fixed rates independently of a prior does not prove those rates remain stable across real groups, selections or measurement methods.
기초Foundations
22. 오즈 실습: 유한 비율과 경계를 구별한다22. Odds lab: distinguish finite ratios from boundary cases
사전오즈·우도비·사후오즈와 직접 계산한 사후확률을 나란히 봅니다. 먼저 기본값에서1/99×18=2/11을 확인하고, a=b>0을 넣어 오즈가 유지되는지 확인하세요.
b=0, a>0, p>0이면 E는 H쪽에서만 생겨 사후가1입니다. 사후오즈는 무한으로 표시합니다. a=0, b>0, p<1이면 사후는0입니다. 무한이라는 표시는 매우 큰 유한 숫자나 관찰 확정 횟수가 아닙니다.
p=0, b=0, a>0에서는 사전오즈0과우도비무한이 만납니다. 둘을 곱해 임의로0이나1을 만들지 않고, E질량 pa+(1−p)b=0을 먼저 확인합니다. 이 경우 사후와사후오즈 모두 미정의입니다.
Compare prior odds, likelihood ratio, posterior odds and the directly computed posterior probability. Verify 1/99×18=2/11, then try equal positive event rates.
When b=0, a> 0, p> 0, evidence arises only under H and the posterior is one, with infinite odds. When a=0, b> 0, p< 1, the posterior is zero. Infinity is not a large observed count.
If p=0, b=0, a> 0, prior odds zero meet an infinite likelihood ratio. Do not invent a value for their product. Direct evidence mass is zero, so both posterior probability and posterior odds are undefined.
기초Foundations
23. 경계에서는 먼저 두 결합 질량을 확인한다23. At boundaries, inspect the two joint masses first
안전한 순서는 j₁=pa,j₀=(1−p)b를 만들고 e=j₁+j₀를 확인하는 것입니다. e>0이면 사후는 j₁/e이고, e=0이면 미정의입니다. 이 순서는 오즈의0×무한 같은 표현을 요구하지 않습니다.
j1=pa,j0=(1−p)b,e=j1+j0;e>0⟹P(H∣E)=j1/e
p=1, a=0이면 H아님 질량도0이므로 b가 어떤 값이든 E는 영질량입니다. a=0, b=0에서도 모든 p에 관찰 E가 영질량입니다. 반면 p=0, b>0이면 사후는0으로 정의됩니다. 사전0과사후미정의를 같은 상태로 처리하지 않습니다.
p=0이나1에서 a,b의 영질량 가지 입력은 선택한 커널값입니다. 양의 가지에서만 원법칙의 조건부 비율과 같다고 해석합니다. 한 번 사전확률0으로 둔 상태는 양의 관찰질량 아래에서 Bayes 갱신만으로 양수로 살아나지 않는다는 모형의 한계도 보입니다.
First construct j₁=pa and j₀=(1−p) b, then check e=j₁+j₀. Positive e gives posterior j₁/e; zero e gives an undefined conditional. No extended product 0×infinity is needed.
j1=pa,j0=(1−p)b,e=j1+j0;e>0⟹P(H∣E)=j1/e
If p=1, a=0, evidence is null regardless of b. If a=b=0, evidence is null for every prior. In contrast, p=0, b> 0 gives a defined posterior zero. A zero posterior and an undefined posterior are different.
At prior zero or one, inputs on null branches are chosen kernel values. Only positive branches have the corresponding ratio interpretation. A zero-prior state cannot gain positive posterior mass through a positive-evidence update within the same model.
선택 심화Optional extension
24. 로그오즈는 곱셈을 덧셈으로 바꾸는 선택 심화다24. Log odds turn multiplication into addition
우도비18의 로그는 약2.890372, 사전오즈1/99의 로그는 약−4.595120이므로 사후로그오즈는 약−1.704748입니다. 로그오즈가 음수인 것은 확률이 음수라는 뜻이 아니라 사후오즈가1보다 작다는 뜻입니다.
확률0과1의 로그오즈는 유한 실수로 정의되지 않습니다. 극한으로 음의 무한·양의 무한을 말할 수 있지만 그 값을 일반 덧셈 코드에 넣어 불가능한 관찰을 숨기지 않습니다. 로지스틱 회귀에서 이 좌표가 왜 유용한지는 이후에 이어집니다.
For interior priors and posteriors with positive a, b, odds are positive and finite. Taking natural logs changes multiplicative updating into addition.
log1−P(H∣E)P(H∣E)=log1−pp+logba
The default prior log odds are about −4.595120 and the log likelihood ratio about 2.890372, giving posterior log odds about −1.704748. A negative log odds value does not mean negative probability.
Zero and one do not have finite real log odds. Extended limits must not hide an impossible conditioning event. Logistic regression later develops the usefulness of these coordinates.
기초Foundations
25. 새 증거를 반영할 때는 이미 아는 조건을 유지한다25. Sequential updating must retain earlier information
E₁을 본 뒤 사후 p₁=P(H|E₁)를 새 사전으로 사용할 수 있습니다. 그러나 두 번째 조건률은 P(E₂|H∩E₁),P(E₂|Hᶜ∩E₁)입니다. 원래의 P(E₂|H),P(E₂|Hᶜ)를 무조건 그대로 쓰는 것은 추가 가정입니다.
The displayed ratio form requires positive conditioning branches and positive combined evidence. Null branches use direct joint masses. Sequential updating itself does not require conditional independence; simple reuse of original rates does.
Two articles copied from one source may not supply two independent pieces of information. The following sections quantify that difference.
기초Foundations
26. 반복 계산에는 각 상태 아래의 상호 조건부독립을 가정한다26. Repeated-rate multiplication assumes conditional independence under each state
관찰들 E₁,…,Eₖ가 H아래와 Hᶜ아래에서 각각 상호 조건부독립이고, 각 상태의 관찰률이 모든 회차에서 a,b로 같다고 가정합시다. 그러면 두 상태의 결합 관찰률은 aᵏ,bᵏ입니다.
P(E1∩⋯∩Ek∣H)=ak,P(E1∩⋯∩Ek∣Hc)=bk
이는 둘씩 독립만으로 충분하다는 말이 아닙니다. 셋 이상의 결합 관찰에 곱을 적용하려면 해당 결합의 분해를 보장하는 상호 조건부독립이 필요합니다. 상태에 따른 시간 변화나 공통 측정오차가 있으면 단순 거듭제곱이 실패할 수 있습니다.
전체에서 E₁,E₂가 독립일 필요도 없습니다. 관심 상태라는 공통 원인이 비슷한 관찰을 만들면 상태를 모르는 전체에서는 의존할 수 있습니다. 29절에서 작은 표로 계산합니다.
Assume E₁,…, Eₖ are mutually conditionally independent under H and under not-H, with unchanged event rates a, b across repetitions. The state-specific joint rates then become aᵏ and bᵏ.
P(E1∩⋯∩Ek∣H)=ak,P(E1∩⋯∩Ek∣Hc)=bk
Pairwise independence alone does not justify products for arbitrary larger intersections. Time-varying rates or shared measurement errors can also invalidate the power model.
The observations need not be independent marginally. A common unknown state can create dependence in the mixture, as Section 29 demonstrates.
기초Foundations
27. 거듭제곱 갱신은 가정된 모형에서만 맞다27. Power updating is valid within its repeated-evidence model
앞 절의 가정 아래 k회 모두 같은 관찰 E가 나오면 H쪽 질량은 paᵏ,H아님쪽은(1−p)bᵏ입니다. 합이 양수일 때 사후는 그 둘을 정규화한 값입니다.
P(H∣E1,…,Ek)=pak+(1−p)bkpakunder the stated conditional-independence model
기본값에서1회는2/13,2회는0.0081/(0.0081+0.002475)=36/47≈76.60%입니다. 두 번째 관찰이 새로운 조건부독립 정보일 때의 계산입니다. 같은 경고를 두 번 화면에 표시한 것과는 다릅니다.
0회는 아무 관찰을 조건으로 걸지 않은 초기 상태이며 사후=사전으로 별도 정의합니다. a=0이나b=0에서도 이 초기 상태를 설명하기 위해0⁰의 값을 억지로 계산할 필요가 없습니다. 실습은0회부터 순서대로 이 의미를 보존합니다.
Under the stated model, k repeated event outcomes give H mass paᵏ and not-H mass (1−p) bᵏ. Normalize them only when their sum is positive.
P(H∣E1,…,Ek)=pak+(1−p)bkpakunder the stated conditional-independence model
Defaults give 2/13 after one observation and 36/47, about 76.60%, after two. The second result assumes genuinely new conditionally independent evidence, not a duplicate display.
At zero observations, no conditioning is performed and the state is the prior. Define this initial case directly, including zero event rates, without requiring an arithmetic convention for 0⁰.
기초Foundations
28. 같은 증거를 복사하면 사후를 다시 올리지 않는다28. Copies of the same evidence do not justify another update
E₂=E₁인 완전 복사라면 E₁∩E₂=E₁입니다. 따라서 두 번 읽은 뒤 사후는 한 번 읽은 뒤와 같습니다. 기본 모형에서는2/13을 유지하며36/47로 올리지 않습니다.
E2=E1⟹P(H∣E1∩E2)=P(H∣E1)(P(E1)>0)
복사 여부를 모르면 양 끝 모형 사이의 실제 답도 자동으로 정해지지 않습니다. 부분 의존·오류 공통성·상태별 결합률에 관한 정보가 필요합니다. 단순히 정보원이 다른 이름을 가진다는 사실만으로 조건부독립이 보장되지 않습니다.
자료 분석에서도 같은 관측을 여러 행으로 복제하거나 같은 보고서를 여러 출처로 인용하면 정보량이 늘어난 것처럼 보일 수 있습니다. 새 데이터인지 같은 증거의 중복인지 계보를 확인하세요.
If E₂ is exactly the same event as E₁, their intersection equals E₁. Reading the copy again leaves posterior 2/13, rather than the independent-evidence value 36/47.
E2=E1⟹P(H∣E1∩E2)=P(H∣E1)(P(E1)>0)
Unknown dependence does not automatically identify an answer between these examples. State-specific joint rates are needed. Different source names alone do not establish conditional independence.
Duplicating data rows or citing copies of one report can create an appearance of extra information. Trace whether an observation is genuinely new evidence.
기초Foundations
29. 조건부독립인 관찰도 전체에서는 의존할 수 있다29. Conditionally independent observations can be dependent in the mixture
p=1/2, a=0.9, b=0.1이고 두 관찰이 각 상태 아래에서 독립이라고 합시다. 각 관찰의 주변확률은1/2이지만 둘 다 나올 확률은(1/2)(0.9²)+(1/2)(0.1²)=0.41입니다. 주변곱0.25와 달라 전체에서는 독립이 아닙니다.
P(E1∩E2)−P(E1)P(E2)=p(1−p)(a−b)2≥0
이 식은 두 관찰의 상태별률이 같은 위 가정 모형에서 유도됩니다. 첫 관찰이 관심 상태의 가능성을 높이면 두 번째 관찰도 더 가능해 보입니다. 두 관찰이 상태라는 공통 정보를 공유하기 때문입니다.
따라서 반복 우도곱에 필요한 것은 전체 무조건독립이 아니라 각 가설 아래의 조건부독립입니다. 거꾸로 전체에서 독립이라는 사실만으로 각 상태 아래의 독립을 보장할 수도 없습니다. 앞 장의 두 동전·같은면 조건 반례를 다시 연결하세요.
Let p=1/2, a=0.9, b=0.1 and assume independence within each state. Each observation has marginal probability 1/2, but their intersection is 0.41 rather than 0.25. They are dependent in the mixture.
P(E1∩E2)−P(E1)P(E2)=p(1−p)(a−b)2≥0
This identity uses the stated equal-rate two-observation model. The first observation updates the common state, making the second more predictable.
Repeated likelihood products require state-conditional independence, not unconditional independence. Conversely, unconditional independence need not survive conditioning on a state or group.
기초Foundations
30. 반복 실습: 모형을 바꾸면 증가 곡선도 바뀐다30. Repeated-evidence lab: different assumptions give different curves
0~20회까지 모두 E가 관찰되었다고 놓고 두 모형을 비교합니다. 조건부독립 모형은 매회 새 관찰의 상태별률 a,b를 곱합니다. 같은 증거 복사 모형은1회 이후 추가 질량 갱신을 하지 않습니다.
기본값에서0회0.01,1회2/13,2회조건부독립36/47을 확인하세요. 복사모형은1회부터2/13로 유지됩니다. 곡선이 위로 올라간다는 그림만으로 새로운 데이터의 독립성이 입증되지는 않습니다. 어떤 가정을 곱했는지를 먼저 설명하세요.
전체 관찰 경로의 질량이 정확0이 되면 그 이후의 사후는 미정의입니다. 아주 작은 양의 경로를 화면이0으로 표시하는 경우와 구별합니다. 반대로 a=b>0이면 몇 번 관찰해도 사전이 유지됩니다.
Compare zero to twenty repeated E outcomes. The conditional-independence model multiplies state-specific event rates for genuinely new observations. The copy model performs no additional update after the first report.
Defaults give prior 0.01, one-observation posterior 2/13 and two-observation independent posterior 36/47. Copies stay at 2/13. An increasing curve does not establish the independence assumption used to draw it.
An exactly zero joint evidence path makes its conditional posterior undefined. Distinguish that from underflow of a tiny positive path. Equal positive rates leave the prior unchanged after every repetition.
선택 심화Optional extension
31. 여러 상태에서도 같은 질량 정규화를 쓴다31. More than two states use the same mass normalization
서로 겹치지 않고 전체를 덮는 H₁,…,Hₘ와 사전 pⱼ를 정합시다. 각 pⱼ가 양수일 때 관찰률 aⱼ=P(E|Hⱼ)를 구하고, 결합질량 pⱼaⱼ를 만듭니다. 전체 관찰질량 e=Σpⱼaⱼ가 양수면 나누어 사후를 얻습니다.
P(Hj∣E)=∑ℓ=1mpℓaℓpjaj,j∑pj=1,j∑pjaj>0
가정 세 상태의 사전 (1/2,1/3,1/6), 관찰률 (1/5,1/2,4/5)이면 결합질량은 (1/10,1/6,2/15),합은2/5입니다. 사후는 (1/4,5/12,1/3)이고 합이1입니다.
사전0인 상태에서는 해당 조건률을 원법칙의 비율로 알아낼 수 없습니다. 선택 커널로 모형을 완성해도 결합질량은0입니다. 연속 매개변수의 일반화에서는 합 대신 적분과 별도 적분가능성 조건이 필요하며 STAT18에서 이어 갑니다.
Let disjoint H₁,…, Hₘ cover the space. For positive priors pⱼ, form state-specific evidence rates aⱼ and joint masses pⱼaⱼ. Divide by their positive total to obtain posterior masses.
P(Hj∣E)=∑ℓ=1mpℓaℓpjaj,j∑pj=1,j∑pjaj>0
Hypothetical priors (1/2,1/3,1/6) and event rates (1/5,1/2,4/5) give joint masses (1/10,1/6,2/15), totaling 2/5. Posteriors are (1/4,5/12,1/3), summing to one.
A zero-prior state has no conditional-ratio identification from the original law; any chosen kernel still receives zero joint mass. Continuous-parameter extensions replace sums with integrals under additional conditions.
선택 심화Optional extension
32. 점의 확률 0에서는 밀도와 조건비율을 구별한다32. At null point events, distinguish density formulas from event ratios
연속 관찰 X의 정확한 값 x는 P(X=x)=0일 수 있습니다. 그래서 P(H∩{X=x})/P(X=x)를 그대로 계산하면0/0입니다. 그 자리에 밀도값을 확률처럼 넣는 것은 이 장의 사건 비율 정의 자체는 아닙니다.
두 상태의 관찰밀도 f₁(x),f₀(x)를 가진 적절한 결합모형을 구성하면 p f₁(x)/[p f₁(x)+(1−p)f₀(x)]라는 조건부 버전을 사용할 수 있습니다. 양의 분모와 가측성 등 모형 조건 아래에서 거의 모든 x에 관한 해석이며, 영집합에서 버전 선택의 문제가 남습니다.
다음 장은 질량함수·밀도·CDF의 차이를 먼저 다룹니다. 이 절은 대학원 연결의 예고이므로 처음 읽을 때는 네 칸의 양의 사건 조건을 충분히 연습하면 됩니다. 유한사건 공식과 연속밀도 버전을 근거 없이 섞지 않는 것이 목표입니다.
An exact continuous observation x can satisfy P(X=x)=0. The direct event ratio conditioned on {X=x} is then 0/0. Substituting densities is not merely ordinary division of those point probabilities.
A suitable joint model with state-conditional densities f₁, f₀ permits a version p f₁(x)/[p f₁(x)+(1−p) f₀(x)] under positive-denominator and measurability conditions. Its almost-everywhere interpretation leaves version choices on null sets.
The next chapter first separates mass functions, densities and CDFs. Beginners can postpone this graduate bridge while mastering positive-probability finite conditioning.
기초Foundations
33. 거꾸로 조건을 읽는 것과 원인을 입증하는 것은 다르다33. Reversing a condition does not establish a cause
Bayes 정리는 같은 결합법칙에서 관찰 조건을 거꾸로 읽습니다. 물리적 시간이나 인과 방향을 거꾸로 바꾸는 정리가 아닙니다. 긴 날개가 관찰되었을 때 Gentoo비율을 계산해도 날개를 늘리는 조치가 종을 바꾼다는 뜻은 아닙니다.
H라는 기호를 가설이라 부르는 것도 그 내용이 검증되었다는 뜻은 아닙니다. 모형이 실제 집단의 상태·관찰률을 적절히 표현하는지 별도 검토해야 합니다. 선택된 표에서 나온 사후를 다른 시기·지역·제도로 옮기면 새로운 가정이 들어갑니다.
확률이 높은 상태를 선택하는 분류와 특정 행동의 기대손실을 최소화하는 결정도 다릅니다. 이번 장은 조건부 질량을 정확히 계산하는 데 집중하고, 행동의 비용이나 정책 처방은 뒤의 결정 이론과 인과 장에 연결합니다.
Bayes’ rule reverses a conditional reading within one joint law. It does not reverse physical time or prove a causal mechanism. A Gentoo posterior after observing a long flipper does not mean lengthening a flipper changes species.
Calling H a hypothesis does not validate its model. Transport to another location, period or selection process introduces new assumptions about states and event rates.
Choosing the most probable state also differs from minimizing expected action loss. Decisions and causal recommendations require additional structure developed later.
기초Foundations
34. 실제 조건률을 고정한 재가중은 명시적 가정이다34. Reweighting while retaining actual event rates is an explicit assumption
실제 펭귄에서 a=109/123, b=5/219를 계산할 수 있습니다. 그 값을 유지하고 Gentoo사전 비중 p만 바꾸는 것은 새 선택모형입니다. 원기록의 집단 비중을 고정한 기술과 구별해 가정 재가중이라고 표시합니다.
실제 다른 섬에서 Gentoo가1%라는 사실만 안다고 a,b도 원기록과 같다고 보장할 수는 없습니다. 연령·성별·시기·측정 방식·그 밖의 종 혼합이 조건률을 바꿀 수 있습니다. 이 장에서는 고정 조건률 아래의 수학 민감도만 계산합니다.
교재의 재가중 곡선은 이론적 시나리오를 실감 나게 살피기 위한 것입니다. 새로운 측정자료나 검증된 외부 분류 성능을 만들어 낸 것으로 표현하지 않습니다. 실제 원자료·원비중은 별도로 보존합니다.
Actual penguin rates are a=109/123 and b=5/219. Holding them fixed while changing the Gentoo mixture p defines an assumed reweighting scenario, distinct from the original-record description.
Knowing another island’s mixture alone does not prove the same conditional rates apply. Age, sex, timing, measurement and other-species composition can change them. The curve here explores mathematical sensitivity under fixed rates.
Reweighting creates neither new measurements nor validated external classification performance. Preserve the original data and original mixture separately.
기초Foundations
35. 하나의 사전이 불확실하면 범위를 보고한다35. Report a range when the prior is uncertain
a,b>0일 때 사후는 p에 대해 증가하므로 p∈[pL,pU]라는 가정 범위는 [B(pL),B(pU)]라는 사후 범위를 줍니다. 이것은 선택한 입력 민감도 범위이며 표본추론의 신뢰구간과는 다릅니다.
가정 품질 모형 a=0.9, b=0.05에서 p가1%~5%라면 사후는2/13~18/37, 약15.38%~48.65%입니다. 기저율 근거가 약할 때 한 숫자만 단정하는 것보다 어떤 입력이 결론을 바꾸는지 보여 줄 수 있습니다.
a,b에도 불확실성이 있으면 그것도 따로 살펴야 합니다. 모든 불확실성을 사전 하나의 슬라이더로 해결했다고 말하지 않습니다. Bayesian 매개변수 사후를 도입하려면 분포·우도·자료의 생성 가정을 추가해야 합니다.
For positive a, b, monotonicity maps an assumed prior interval [pL, pU] into [B(pL), B(pU)]. This is an input-sensitivity range, not a sampling confidence interval.
With a=0.9, b=0.05 and priors 1% to 5%, posteriors range from 2/13 to 18/37, about 15.38% to 48.65%. The interval reveals how an uncertain mixture affects the conclusion.
Uncertainty in a, b needs separate treatment. One prior slider does not resolve every source of uncertainty. Parameter-posterior inference requires further distributions and data-generation assumptions.
기초Foundations
36. 국가 사례: 원표의 의존과 두 추출의 독립을 분리한다36. Country case: separate attribute dependence from draw independence
2024년 지정16국의 A=GDPpc≥30000, B=기대수명≥80 원표는 (8,1,0,7)입니다. 독립 기준표는 (9/32,9/32,7/32,7/32)이며 실제 교집합과의 차이는7/32입니다. 이 원속성 법칙은 독립이 아닙니다.
이제 같은16개 이름표를 두 번 고릅니다. 독립 복원 방식은256개 순서쌍을 균등하게 두고, 비복원은240개 서로 다른 순서쌍을 균등하게 둡니다. 둘 다 B인 쌍은 복원64개, 비복원56개이므로 확률1/4와7/30입니다.
비복원에서 첫B를 알면 남은15개 중 B가7개라 조건부확률7/15입니다. 실제 속성 원표와 추출 절차의 원표를 따로 저장하면 “국가가 독립”이라는 모호한 문장을 피할 수 있습니다. 어느 사건쌍·어느 선택법칙의 독립인지 적습니다.
The selected-country attribute table is (8,1,0,7). Its independence reference is (9/32,9/32,7/32,7/32), and the actual intersection gap is 7/32. These attributes are not independent in that law.
Now draw two tickets. Independent replacement has 256 uniform ordered pairs; no replacement has 240 distinct ordered pairs. Qualifying pairs number 64 and 56, giving probabilities 1/4 and 7/30.
After a qualifying first draw without replacement, seven of fifteen tickets qualify. Storing the attribute and draw experiments separately avoids the ambiguous statement that “countries are independent.”
기초Foundations
37. 개체기록 사례: 실제 비중으로 Bayes를 검산한다37. Individual-record case: verify Bayes with the actual mixture
가용342개 기록 중 Gentoo123개, 그 안의 긴 날개109개입니다. 다른 종219개 중 긴 날개5개입니다. 따라서 p=123/342=41/114, a=109/123, b=5/219입니다.
실제 네 칸 표에서 직접 얻은109/114와 Bayes 계산이 정확히 같습니다. 공식이 새 정보를 창조한 것이 아니라 같은 교집합 질량을 다른 조건 분모로 다시 읽은 것입니다.
원자료344행 중 날개 결측2개를0으로 넣지 않으며 sex조건도 추가하지 않습니다. 이 장의 이름표는 측정기록 식별자이지 모든 행이 서로 독립인 무작위 개체라는 인증이 아닙니다.
Among 342 available records, 123 are Gentoo and 109 of those have long flippers. The other 219 records include five long flippers. Thus p=41/114, a=109/123, b=5/219.
Bayes reproduces the direct table value 109/114 exactly. It reorganizes the same joint masses rather than creating new empirical information.
Do not zero-fill the two missing flippers among 344 records or add an unused sex condition. Record identifiers do not certify independent random individuals.
기초Foundations
38. Gentoo 비중을 1%로 가정하면 사후도 달라진다38. Assuming a 1% Gentoo mixture changes the posterior
실제 조건률 a=109/123, b=5/219를 그대로 두고 p=1/100을 가정하면 관찰 T의 확률은7063/224475≈0.031465입니다. 그 안의 Gentoo사후는7957/28252≈28.16%입니다.
원기록의 사후109/114≈95.61%와 크게 다르지만 원측정값을 바꾼 것이 아닙니다. 집단을 선택하는 질량과 그 법칙의 해석을 바꾼 시나리오입니다. 원비중41/114를 다시 넣으면 원표의 결과가 복원됩니다.
p=1/2 시나리오는7957/8162≈97.49%입니다. 이 재가중 프로필들은 선택한 법칙의 계산이며, 새로운 섬의 실측 결과나 외부검증을 대신하지 않습니다.
Holding actual rates 109/123 and 5/219 fixed but assuming prior 1/100 gives evidence probability 7063/224475, about 0.031465, and posterior 7957/28252, about 28.16%.
This differs from the original 95.61% without changing any measurement. It changes the mixture-selection law. Restoring prior 41/114 recovers the original result.
A prior 1/2 scenario gives 7957/8162, about 97.49%. These profiles are assumed reweighting calculations, not new field measurements or external validation.
기초Foundations
39. 기업 사례: 연도·품목 균등과 합산 매출 법칙을 비교한다39. Company case: compare uniform category-years with pooled sales weights
FY2023/FY2024와 다섯 품목의10개 기록에서 S=Services,Y=FY2024를 봅니다.10개 이름표를 균등하게 고르면 P(S)=1/5, P(Y)=1/2, P(S∩Y)=1/10이라 두 사건은 독립입니다. 이는 이름표를 곱공간에서 균등하게 선택한 법칙의 성질입니다.
각 기록의 공시 매출을 가중치로 쓰면 전체는774320백만USD,Services는181369, FY2024는391035, Services이면서FY2024는96169입니다. P(S|Y)=96169/391035와 P(Y|S)=96169/181369를 구분합니다.
차이가 양수이므로 이 합산 매출 법칙은 독립이 아닙니다. 실제 고객이 어느 연도를 살았을 확률이라는 뜻은 아니며 두 해 매출의 선택 질량을 합친 실험입니다. FY2023의53주와FY2024의52주 차이도 그대로 기록합니다.
Across two fiscal years and five categories, let S=Services and Y=FY2024. Uniform selection among ten records gives P(S)=1/5, P(Y)=1/2 and intersection 1/10, so these events are independent under that product-ticket law.
Using reported sales as weights gives pooled total 774320 million USD, Services 181369, FY2024 total 391035 and shared mass 96169. Distinguish P(S|Y)=96169/391035 from P(Y|S)=96169/181369.
The positive gap shows dependence in the pooled-sales law. This is not a customer’s probability of belonging to a year. Retain the 53-week versus 52-week reporting difference as part of the experiment’s scope.
기초Foundations
40. 실제 자료 실습: 세 질문의 법칙을 먼저 읽는다40. Actual-data lab: read each experiment’s law first
국가에서는 기대수명 조건을 만족하는 이름표의 두 추출을 비교합니다. 개체기록에서는 실제 조건률을 유지하고 원비중 또는 가정 비중으로 Bayes를 계산합니다. 기업에서는10개 연도·품목 이름표의 균등과 합산 매출 가중을 비교합니다.
국가의 한 기록 GDP/수명 표와 두 기록 추출 표를 혼동하지 마세요. 개체기록에서 원비중이 아닌 값을 넣었다면 가정 재가중으로 읽으세요. 기업의 매출 질량은 원공시값이며 고객수·거래수를 새로 측정한 것이 아닙니다.
양의 조건 분모를 직접 찾아 역조건을 계산하고, 독립 기준표와 실제표의 차이를 분수로 확인합니다. 원자료·가정·가중치·대상의 범위를 함께 설명하면 세 화면이 하나의 공식만 반복하는 것이 아니라 다른 질문이라는 점이 드러납니다.
The country example compares two ticket draws. The individual-record example preserves actual within-group rates while choosing original or assumed mixture weights. The company example compares uniform and pooled-sales selection among ten category-year records.
Do not confuse the country attribute table with the two-draw table. Label a changed penguin prior as assumed reweighting. Company sales masses are reported values rather than newly observed customer counts.
Locate each positive denominator, reverse the condition and compare exact joint mass with an independence reference. State data, assumptions, weights and target scope for every screen.
기초Foundations
41. 자주 생기는 여섯 오류를 표의 어느 칸인지 찾아 고친다41. Locate six common errors in the joint table
첫째 a를 사후라고 부르는 오류는 분모를 E 전체로 바꾸어 고칩니다. 둘째 기저율을 빼는 오류는 두 상태의 원질량을 곱해 고칩니다. 셋째 우도비를 확률로 부르는 오류는 사전오즈를 곱하고 확률로 변환합니다.
넷째 같은 증거를 중복해서 곱하는 오류는 결합사건이 정말 새로운지 확인해 고칩니다. 다섯째 영확률 관찰을 사후 0으로 채우는 오류는 먼저 관찰질량을 확인합니다. 여섯째 가정 재가중을 새 실측으로 쓰는 오류는 원기록과 선택 법칙의 변화를 구분합니다.
문장을 고칠 때는 숫자 하나만 바꾸지 말고 어떤 사건·법칙·분모를 사용했는지 함께 바꾸세요. 그래야 다른 사람이 같은 계산을 다시 수행하고 가정을 평가할 수 있습니다.
First, replace a mislabeled event rate with the proper posterior denominator. Second, restore missing prior masses. Third, convert a likelihood ratio through prior odds rather than treating it as a probability.
Fourth, check whether repeated evidence is genuinely new. Fifth, inspect zero evidence before assigning a posterior. Sixth, separate assumed reweighting from new measurements.
Repair event definitions, law labels and denominators as well as numbers. A reproducible probability statement lets another reader evaluate the assumptions.
기초Foundations
42. 재현 순서: 원표→정확 질량→조건 검사→표시 반올림42. Reproduce from source cells to exact mass, checks and rounded display
실제 자료는 원기록을 읽고 포함 규칙·연도·단위를 확인한 뒤 네 칸을 만듭니다. 조건부확률은 같은 원표에서 계산하고, 원비중을 바꿀 때만 명시적 시나리오를 만듭니다. 사례 파일의 결과 숫자를 다시 입력해 맞았다고 주장하지 않고 원자료에서 재계산합니다.
계산은 정수·정확분수로 유지하고, 관찰분모가 0이면 미정의 상태를 남깁니다. 원십진 양수 10⁻⁴⁰⁰을 일반 숫자로 먼저 변환해 0으로 잃지 않습니다. 최종 표시에서 소수로 반올림하더라도 상태 판단은 원질량으로 합니다.
반복 증거에는 선택한 의존모형을 저장하고, 기대횟수에는 가정 크기 N을 붙입니다. 원자료 검산·계산 작성자의 자체검사·다른 구현의 독립검사·브라우저 표시 검사는 서로 다른 증거로 기록합니다. 어느 하나가 모든 오류를 막는다는 인증은 아닙니다.
Read retained source records, inclusion rules, years and units before forming actual cells. Derive rates from the same table and label any changed mixture as a scenario. Recomputing from source data differs from re-entering case-file answers.
Preserve exact masses and leave zero evidence undefined. Do not first convert tiny positive decimal 10⁻⁴⁰⁰ to a floating-point zero. Round displays after definition checks.
Save the dependence model for repeated evidence and assumed N for expected counts. Source audits, author self-checks, independent implementations and browser tests provide different kinds of evidence rather than one universal certification.
기초Foundations
43. 국가·개체기록·기업의 상세 케이스 스터디43. Detailed country, individual-record and company case studies
국가 사례 · 같은 주변확률과 독립은 다른 말이다
이전 장과 같은 2024년 실제 16개 국가를 균등하게 하나 뽑습니다. A는 GDP/명이 30,000 이상(2015 USD/명), B는 출생 시 기대수명이 80년 이상인 사건입니다. 두 임계값은 학습용 선택이며 공식 국가 등급이나 정책 평가가 아닙니다. 국가 집계 지표를 개인의 소득·수명이나 인과효과로 바꾸지 않습니다.
실제 사건 표와 독립이라면 필요한 질량
칸
실제 국가 수
균등 추첨 질량
같은 주변확률의 독립 참조
A∩B
8
8/16
9/32
A∩Bᶜ
1
1/16
9/32
Aᶜ∩B
0
0/16
7/32
Aᶜ∩Bᶜ
7
7/16
7/32
P(A∩B)=21=169⋅21=329,P(B∣A)=98=P(B)=21
선택한 실험에서 A와 B는 독립이 아닙니다. 독립 참조 열은 같은 주변확률을 곱해 만든 비교용 모형이며 실제 새 국가를 관측해 채운 표가 아닙니다. 이 자료에서 B가 A에 포함된다고 해서 독립인 것도 아니고, 국가 사이에 어떤 기계적인 영향 경로를 증명한 것도 아닙니다.
1. 서로 배반과 독립은 서로 다른 조건
먼저 생각한 뒤 풀이 보기: A와 Aᶜ는 겹치지 않으니 독립인가요?
아닙니다. 두 확률이 모두 양수이면 P(A∩Aᶜ)=0인데 P(A)P(Aᶜ)>0이라 독립 조건에 맞지 않습니다. 배반은 함께 일어날 수 없다는 집합 관계, 독립은 결합확률이 주변확률의 곱인지에 대한 확률 관계입니다. 한 사건의 확률이 0인 퇴화 경우는 따로 구별합니다.
2. 같은 이름표로 두 번 뽑는 실험을 바꾸기
이번에는 첫 번째와 두 번째에 B가 뽑히는 사건을 각각 B₁,B₂라고 부릅니다. 원자료가 시간에 따라 바뀌는 것이 아니라, 고정된 16개 이름표를 두 번 선택하는 교재상 절차입니다. 복원 추첨은 매번 16개를 같은 확률로 독립 재추첨한다고 명시합니다. 무복원 추첨은 처음 이름표를 뺀 15개 중 균등하게 고릅니다.
첫 선택이 B이면 남은 B는 7개, 아니면 8개입니다. 두 가능성을 각각 1/2로 가중하여 더하면 위 전확률 식처럼 1/2가 됩니다. 두 위치의 주변확률이 같아도 B₁을 알게 된 뒤의 B₂ 확률은 달라지므로 독립은 아닙니다. CSV 계산은 가능한 순서쌍 16×15=240개를 직접 세어 검산했습니다.
먼저 생각한 뒤 풀이 보기: 관측한 두 지표가 연관되면 어느 쪽이 원인인지 알 수 있나요?
독립이 아니라는 기술적 결론은 인과 방향을 정하지 않습니다. 어떤 자료 단위·선택 법칙에서 어떤 두 사건을 비교했는지와, 현실의 개입 효과를 밝히는 질문은 분리합니다.
실제 Palmer 자료 중 날개 길이가 있는 342행에서 균등하게 하나를 뽑습니다. 원본 344행과 날개 결측 2개는 CSV에 보존하며 결측에 0이나 짧은 날개라는 표식을 넣지 않습니다. G는 기록된 종이 Gentoo, T는 날개 길이가 210 mm 이상인 사건입니다. 210 mm는 학습용 임계값입니다.
실제 유효 기록의 원래 혼합 구성
기록된 종
T: 긴 날개
Tᶜ: 그 외
합계
Gentoo
109
14
123
다른 두 종
5
214
219
합계
114
228
342
1. 먼저 두 방향의 조건부확률을 구별하기
a=P(T∣G)=123109,b=P(T∣Gc)=2195,p=P(G)=342123
a는 Gentoo 안에서 긴 날개인 비율, b는 다른 두 종 안에서 긴 날개인 비율입니다. 우리가 새로 묻는 것은 긴 날개라는 조건을 받았을 때 Gentoo인 비율입니다. 이미 계산한 a를 그대로 답으로 쓰면 분모의 집단이 바뀐 사실을 놓칩니다.
먼저 생각한 뒤 풀이 보기: 분모에 Gentoo에서 오는 긴 날개만 넣으면 왜 안 되나요?
T에는 Gentoo의 긴 날개 109개뿐 아니라 다른 종의 긴 날개 5개도 들어갑니다. 분모를 ap만 두면 답을 항상 1로 만들어 다른 경로를 지워 버립니다. 전확률 분모는 두 종 집단에서 T로 오는 질량을 모두 더한 값입니다.
2. 실제 비율과 가정한 기저율 실험을 나란히 놓기
이제 별도 가정 사례를 만듭니다. a,b는 위 고정 자료에서 계산한 비율로 유지하고 Gentoo의 선택 비중 p만 바꿔 봅니다. 이는 원자료의 종을 바꾸거나 새 펭귄을 관찰한 것이 아니라, 두 집단 안에서는 각각 균등하게 고르고 집단 선택 비중만 지정하는 재가중 선택 실험입니다. 원래 p=123/342에서만 원래 342행 균등 추첨을 재현합니다.
원래 혼합에서 109/114였던 답과 다릅니다. 긴 날개 규칙의 두 집단 내 비율 a,b만으로 조건을 뒤집은 답을 정할 수 없으며, 집단 구성 p도 함께 필요합니다.
먼저 생각한 뒤 풀이 보기: 위 곡선이 다른 섬의 새로운 펭귄을 정확히 판별한다는 보장인가요?
아닙니다. 다른 자료에서도 a,b가 유지된다는 근거를 이 계산에서 얻지 않았습니다. 생물 집단·측정 과정·선택·결측이 달라지면 두 비율도 바뀔 수 있습니다. 곡선은 명시한 고정 비율과 재가중 가정 아래의 수학적 결과이고, 표본 밖 정확도나 원인에 대한 인증이 아닙니다.
먼저 생각한 뒤 풀이 보기: “사전·사후”라는 말을 쓰면 모수에 대한 베이지안 추론을 한 건가요?
여기서는 유한 기록에 지정한 선택 실험의 사건 G와 T 사이 조건부확률을 계산했습니다. 모수의 사전분포를 두고 관측의 표집 모형을 통해 갱신하는 추론은 이후 장의 별도 설정입니다. Bayes 등식은 양쪽에 쓰이지만 어떤 것이 무작위이고 무엇을 안다고 가정하는지부터 구별합니다.
Apple 다섯 공시 품목과 FY2023·FY2024를 조합한 10개 실제 품목–연도 칸을 봅니다. 한 기업의 반복된 품목이며 서로 독립인 기업 10개를 관측한 것이 아닙니다. 순매출 단위는 백만 명목 USD이고 두 회계연도는 각각 53주·52주입니다. S는 서비스 품목이 선택됨, Y는 FY2024가 선택됨입니다.
실제 공시 순매출 · 선택 대상은 품목–연도 칸
품목
FY2023 (53주)
FY2024 (52주)
iPhone
200,583
201,183
Mac
29,357
29,984
iPad
28,300
26,694
웨어러블·홈·액세서리
39,845
37,005
서비스
85,200
96,169
합계
383,285
391,035
1. 실험 U: 품목과 연도를 독립 균등 선택
다섯 품목 중 하나와 두 연도 중 하나를 각각 독립적으로 균등 선택한다고 절차를 정합니다. 그러면 10개 칸이 각각 1/10입니다. 독립성은 이 가정한 추첨 절차의 성질이며 기업 경영의 현실을 입증한 말이 아닙니다.
PU(S)=51,PU(Y)=21,PU(S∩Y)=101=PU(S)PU(Y)
2. 실험 W: 같은 10개 칸을 실제 순매출 비중으로 선택
이번에는 각 칸의 공시 순매출을 두 연도 총합 774,320으로 나눈 가중치로 칸 하나를 선택합니다. 통화 단위는 분자·분모에서 상쇄됩니다. 이것도 집계 표 위에 지정한 선택 법칙이며 실제 고객이나 거래의 무작위 표본을 관측한 것이 아닙니다.
Country case · Equal marginals do not establish independence
Select one of the same sixteen actual 2024 countries uniformly. A means GDP/person at least 30000 constant 2015 USD/person; B means life expectancy at birth at least 80 years. These are chosen teaching thresholds, not official classifications or policy scores. National aggregates do not become individual income/lifespan observations or causal effects.
Actual event cells and a same-marginal independence reference
Cell
Actual country count
Uniform-selection mass
Independence reference
A∩B
8
8/16
9/32
A∩Bᶜ
1
1/16
9/32
Aᶜ∩B
0
0/16
7/32
Aᶜ∩Bᶜ
7
7/16
7/32
P(A∩B)=21=169⋅21=329,P(B∣A)=98=P(B)=21
A and B are not independent in this selection experiment. The reference multiplies the same marginals to construct a comparison law; it does not add newly observed countries. B being contained in A here neither establishes independence nor proves a mechanism of influence between indicators.
1. Mutual exclusivity differs from independence
Think first, then reveal: Are A and its complement independent because they do not overlap?
No, when both have positive probability. Their intersection has probability zero, while P(A)P(Aᶜ)>0. Mutual exclusivity is a set relation; independence is a factorization of probabilities. Degenerate cases involving probability-zero events must be distinguished.
2. Change how the same fixed tickets are selected twice
Let B₁ and B₂ mean selecting B on the first and second draws. This is a classroom procedure on fixed country tickets, not a time evolution of the actual indicators. With replacement, explicitly assume a fresh independent uniform draw from all sixteen each time. Without replacement, remove the first ticket and draw uniformly from fifteen.
Think first, then reveal: Why is the second marginal still 1/2 without replacement?
If the first draw is B, seven B tickets remain; otherwise eight remain. Weight both possibilities by 1/2 and add, obtaining 1/2 by total probability. Equal marginals at two positions do not imply independence because knowing B₁ changes the conditional chance of B₂. CSV calculations also enumerate all 16×15=240 ordered distinct-ticket pairs.
Think first, then reveal: Does non-independence tell us which indicator causes the other?
No. A descriptive failure of independence does not identify causal direction. Specify the observation unit and selection law, then distinguish that calculation from a question about real interventions.
Individual-organism case · The same flipper rule depends on the species mix
Uniformly select one of 342 actual Palmer records with available flipper length. Keep all 344 source records and two missing values in the CSV; do not label missing flippers zero or short. G denotes recorded Gentoo species; T denotes flipper length at least 210 mm. This is a chosen teaching threshold.
Actual original mixture of valid records
Recorded species
T: long flipper
Tᶜ: otherwise
Total
Gentoo
109
14
123
Other two species
5
214
219
Total
114
228
342
1. Distinguish the direction of conditioning first
a=P(T∣G)=123109,b=P(T∣Gc)=2195,p=P(G)=342123
a is the long-flipper fraction inside Gentoo; b is the fraction inside other species. The new question asks the Gentoo fraction after learning T. Reusing a as that answer ignores the changed conditioning population.
Think first, then reveal: Why must the denominator include long flippers from other species?
T includes five other-species records as well as 109 Gentoo records. A denominator containing only ap would force an answer of one by deleting another path to T. Total probability adds mass arriving from both disjoint species groups.
2. Separate the actual mixture from assumed reweighting
Construct a separate classroom scenario. Hold a and b at their fixed-data values while changing the Gentoo selection weight p. This changes neither recorded species nor observations. It defines a reweighted experiment: choose a species group with the stated weight, then choose uniformly within that group. Only p=123/342 reproduces uniform selection among the original 342 records.
Exact Bayes calculations under explicit mixture scenarios · fixed a,b
Gentoo weight p
Total T mass ap+b(1−p)
P(G|T)
Status
1/100
0.031464528
0.281643777
Assumed reweighting
1/10
0.109165831
0.811773108
Assumed reweighting
41/114
0.333333333
0.956140351
Original empirical mix
1/2
0.454504956
0.974883607
Assumed reweighting
9/10
0.799844081
0.997145562
Assumed reweighting
Think first, then reveal: Calculate P(G|T) when p=1/10.
It differs from 109/114 under the original mixture. The two within-group rates do not determine the inverse conditional without the group weight p.
Think first, then reveal: Does this curve validate accurate species prediction on another island?
No. The calculation supplies no evidence that a and b remain stable elsewhere. Biological composition, measurements, selection and missingness may change those rates. The curve is a mathematical consequence of fixed rates and a specified reweighting law, not certified out-of-sample accuracy or causality.
Think first, then reveal: Does “prior/posterior” automatically mean Bayesian parameter inference?
Here we calculate event probabilities for an explicitly assigned selection experiment on finite records. A prior distribution over a parameter, updated through a sampling model, is a different setup studied later. Bayes’ identity supports both, but first identify what is random and what is assumed known.
Company case · Independence belongs to a probability law, not a file name
Consider ten actual category–year cells formed from Apple’s five categories and FY2023/FY2024. These are repeated categories of one company, not ten independent firms. Net sales use million nominal USD and the years span 53 and 52 weeks. S denotes selecting Services; Y denotes selecting FY2024.
Actual disclosed net sales · outcomes are category–year cells
Category
FY2023 (53 weeks)
FY2024 (52 weeks)
iPhone
200,583
201,183
Mac
29,357
29,984
iPad
28,300
26,694
Wearables, Home and Accessories
39,845
37,005
Services
85,200
96,169
Total
383,285
391,035
1. Experiment U: independently choose category and year uniformly
Specify independent uniform selection of one of five categories and one of two years. Each of the ten cells then has probability 1/10. Independence follows from this defined ticket procedure; it does not certify a real business mechanism.
PU(S)=51,PU(Y)=21,PU(S∩Y)=101=PU(S)PU(Y)
2. Experiment W: weight the same cells by actual disclosed sales
Instead, choose one cell with weight equal to its net sales divided by the combined total of 774320. Matching currency units cancel. This again assigns a probability law to an aggregate table; it does not observe randomly sampled customers or transactions.
Knowing the year changes the Services probability under W, so S and Y are not independent there. U and W define different probability laws over the same ten actual disclosed values.
Think first, then reveal: Under W, what is the probability of FY2024 given Services?
P(S|Y) divides by total FY2024 sales; P(Y|S) divides by Services sales across both years. Sharing numerator 96169 does not make them the same question.
Think first, then reveal: Is independence under U but not W a contradiction in the actual data?
No. The probability of selecting each cell has changed. Specify events, outcome space and selection law when claiming independence. This calculation does not infer real sales independence or customer behavior.
Think first, then reveal: Is 0.530239457 the probability of future Services growth?
No. It is the rounded probability of selecting the FY2024 cell given Services under the W selection experiment. It reweights two historical disclosed aggregates, not future growth, a share price or investment success.
44. 영상·학자·참고자료를 증명과 실제 표에 연결한다44. Connect videos, thinkers and reading to proofs and actual tables
본문에 연결한 공식 영상은 페이지 안에서 시청하고, 중간에 멈추어 같은 교집합을 두 조건 분모로 읽는 이유를 설명해 보세요. 관찰 뒤 확률을 두 상태 질량으로 먼저 계산한 뒤 영상의 식과 대조합니다.
Bayes와 Laplace의 역사적 소개는 역확률의 발전을 이해하는 연결입니다. 오늘의 정리는 명시한 확률 법칙에서 증명하는 항등식이며, 특정 학자의 이름이 현실모형의 타당성을 대신하지 않습니다.
MIT 18.05 Reading 3의 독립·Bayes 절과 Reading 12b의 오즈 정의·오즈 갱신·조건부독립 반복을 읽습니다. 의료·재판 사례의 오래된 가정 수치를 실제 판단 근거로 옮기지 않고 수학적 구조만 비교합니다. 일반 순차 갱신은 이전 관찰조건을 유지하면 되며, 원조건률을 단순 재사용하는 곱에 추가 조건부독립이 필요하다는 차이를 유지하세요.
Watch the linked official video within the page and pause to explain why the same intersection uses different conditional denominators. Calculate the two joint state masses before matching the displayed formula.
Historical introductions to Bayes and Laplace connect to inverse probability. The modern result is an identity proved within a stated law; a historical name does not validate an empirical model.
Read MIT18.05 Reading 3 on independence and Bayes, and Reading 12 b on odds, updating and conditional independence. Compare mathematical structure rather than treating older illustrative medical or legal numbers as present empirical guidance. General sequential updating retains previous conditions; simple reuse of original rates requires additional conditional independence.
자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.
결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.
영상·학자·함께 읽기Videos, thinkers and guided reading
본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.
Bayes로 조건의 방향 뒤집기Invert conditioning with Bayes
CrashCourse · Statistics 14
본문의 공식 영상을 보며 조건의 방향과 기저율을 구별합니다. 긴 날개가 주어졌을 때 Gentoo일 확률을 구하려면 원래 어떤 세 비율이 필요한지 적어 보세요.Watch the official video in this chapter, focusing on conditioning direction and base rates. List the three rates needed to calculate Gentoo given a long flipper.
교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.
보고 읽은 뒤 답하기Respond after watching/readingP(T|G)만 알면 P(G|T)를 알 수 있나요?Does P(T|G) alone determine P(G|T)?
생각을 점검하는 해설Check your reasoning
일반적으로는 아닙니다. 여기서는 P(G)와 P(T|Gᶜ)도 있어야 전확률 분모를 만들 수 있습니다.Generally no. Here P(G) and P(T|Gᶜ) are also needed to construct the total-probability denominator.
토머스 베이즈 · 결과에서 미지의 확률을 묻기Thomas Bayes: asking about probabilities from outcomes
University of St Andrews · MacTutor
대학 소개의 역확률 문제를 읽고 사건의 조건을 바꾸는 등식과 모수를 학습하는 추론 설정을 구별합니다. 이름이 같은 정리라도 질문의 대상부터 확인합니다.Read the university account of inverse probability. Distinguish an identity reversing event conditioning from an inferential model learning an unknown parameter.
보고 읽은 뒤 답하기Respond after watching/reading고정 펭귄 표의 109/114 계산에 모수의 사전분포가 반드시 필요한가요?Must a parameter prior be supplied to calculate 109/114 from the fixed penguin table?
생각을 점검하는 해설Check your reasoning
이 유한 선택 실험은 실제 기록의 가중치를 이미 지정했으므로 모수 사전분포 없이 조건부확률을 정확히 계산합니다. 모수 추론은 별도 모형입니다.The finite experiment already specifies record weights, so the event conditional is exact without a parameter prior. Parameter inference is a different model.
전확률·독립·Bayes를 한 표로 재현하기Reproduce total probability, independence and Bayes from a table
MIT OCW 18.05 · Reading 3, §§4,6,7
§4 전확률, §6 독립의 곱 정의, §7 Bayes 등식의 증명을 읽고 실제 국가·펭귄 표에 대입합니다. 교차표의 각 경로를 먼저 적고 더하거나 나눕니다.Read §4 total probability, §6 the product definition of independence and §7 Bayes’ proof. Apply them to actual country/penguin tables by identifying each path first.
보고 읽은 뒤 답하기Respond after watching/readingBayes 정리에는 두 사건의 독립이 필요한가요?Does Bayes’ rule require independent events?
생각을 점검하는 해설Check your reasoning
아닙니다. 필요한 양의 조건 확률과 정의한 법칙 아래 결합확률을 두 방향으로 쓴 등식입니다. 독립이면 정보가 확률을 바꾸지 않는 특수 경우가 됩니다.No. With the required positive conditioning probabilities, it expresses the same joint mass in two directions. Independence is the special case where conditioning does not change the probability.
독립과 배반을 구별하는 엄밀한 기준A precise test separating independence from disjointness
UC Berkeley · Philip B. Stark, SticiGui
Independence의 곱 정의와 확률 0 사건에 대한 주의를 읽습니다. 빈도 표가 아니라 지정한 확률 법칙까지 함께 적어 독립 여부를 판단합니다.Read the Independence section’s product definition and zero-probability qualification. Identify the assigned law as well as event counts before testing independence.
보고 읽은 뒤 답하기Respond after watching/reading양의 확률인 서로 배반 사건은 독립일 수 있나요?Can disjoint events with positive probabilities be independent?
생각을 점검하는 해설Check your reasoning
두 확률의 곱은 양수인데 교집합 확률은 0이므로 불가능합니다. 적어도 하나의 확률이 0인 경우는 따로 봅니다.No: the product is positive while their intersection has probability zero. Cases where at least one event has probability zero are different.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 독립 기준 네 칸Independence reference cells
P(H)=0.6, P(E)=0.5를 유지하는 독립 네 칸을 (HE,H만, E만, 둘 다 아님) 순서로 구하세요.
For P(H)=0.6, P(E)=0.5, find independent cells in order (both, H only, E only, neither).
풀이와 확인할 이유Solution and explanation
(0.3,0.3,0.2,0.2)입니다. 행합은 0.6, 열합은 0.5이고 교집합은 두 주변확률의 곱입니다. 같은 주변합을 가진 실제 표가 반드시 이 값인 것은 아닙니다.
The cells are (0.3,0.3,0.2,0.2), preserving both marginals. A given actual table with these marginals need not equal this reference.
2. 국가 기준표의 차이Country reference gap
원질량 (8,1,0,7)의 독립 기준표와 교집합 차이를 구하세요.
For masses (8,1,0,7), compute the independence reference and intersection gap.
풀이와 확인할 이유Solution and explanation
전체16에서 주변은9/16과1/2입니다. 기준표는(9/32,9/32,7/32,7/32),실제 교집합은1/2입니다. 차이는16/32−9/32=7/32이므로 이 법칙은 독립이 아닙니다.
Marginals are 9/16 and 1/2. Reference cells are (9/32,9/32,7/32,7/32), while the actual intersection is 1/2. The gap is 7/32, so independence fails in this law.
3. 빈 질량의 독립 판정An empty mass table
네 원질량이 모두0일 때 독립이라고 판정할 수 있나요?
Can an all-zero four-cell input be declared independent?
풀이와 확인할 이유Solution and explanation
정규화할 전체 질량이 없어 확률 법칙이 아닙니다. 따라서 그 입력표의 독립 판정도 미정의입니다. 이미 유효한 확률공간 안의 영확률 사건이 독립이라는 명제와는 다른 상황입니다.
No probability law can be normalized from zero total, so the table verdict is undefined. This differs from independence of a null event within an already valid probability space.
4. 자기 자신과 독립Independence from itself
사건 H가 자기 자신과 독립인 확률값을 모두 구하세요.
Find all probabilities for which H is independent of itself.
풀이와 확인할 이유Solution and explanation
H∩H=H이므로 p=p²입니다. p(p−1)=0에서0또는1입니다. 양의 중간 확률에서는 자기 사건이 발생했다는 정보가 원확률을 유지하지 않습니다.
The identity p=p² gives p=0 or 1. No interior probability satisfies the product definition.
5. 여사건 독립 증명Complementary independence
H와 E가 독립일 때 H와 Eᶜ도 독립임을 유도하세요.
Prove that H and Eᶜ are independent if H and E are independent.
풀이와 확인할 이유Solution and explanation
P(H∩Eᶜ)=P(H)−P(H∩E)=h−he=h(1−e)입니다. 이는 P(H)P(Eᶜ)와 같습니다. 양의 조건부 분모 없이 곱 정의만으로 경계까지 증명됩니다.
P(H∩Eᶜ)=h−he=h(1−e)=P(H) P(Eᶜ). The product proof also covers boundary probabilities without conditional division.
6. 두 추출 방식Two draw mechanisms
16개 이름표 중 B가8개입니다. 독립 균등 복원·균등 비복원에서 두 번 모두 B확률과 둘째 조건부확률을 비교하세요.
Among sixteen tickets, eight satisfy B. Compare two-B and second-given-first probabilities under independent uniform replacement and uniform no replacement.
풀이와 확인할 이유Solution and explanation
복원은1/4와1/2입니다. 비복원은(8/16)(7/15)=7/30과7/15입니다. 비복원의 둘째 주변은1/2로 같아도 조건부확률은 다릅니다.
Replacement gives 1/4 and 1/2. No replacement gives 7/30 and 7/15. The latter second marginal is still 1/2, but its conditional differs.
7. Bayes 직접 유도Derive Bayes directly
P(H)>0, P(E)>0에서 교집합을 두 방향으로 써 Bayes를 유도하세요.
For positive P(H), P(E), derive Bayes using two expressions for the intersection.
풀이와 확인할 이유Solution and explanation
P(H∩E)=P(E|H)P(H)=P(H|E)P(E)입니다. 양의 P(E)로 나누면 P(H|E)=P(E|H)P(H)/P(E)입니다. 조건부확률 대칭이 아니라 교집합 대칭을 사용했습니다.
Equate P(E|H) P(H) and P(H|E) P(E), then divide by positive P(E). The symmetry belongs to the intersection, not to the conditional probabilities.
8. 기본 모형 네 칸Default model table
p=0.01, a=0.9, b=0.05에서 네 칸·관찰확률·사후를 구하세요.
For p=0.01, a=0.9, b=0.05, compute four cells, evidence probability and posterior.
풀이와 확인할 이유Solution and explanation
네 칸은(0.009,0.001,0.0495,0.9405)입니다. 관찰확률은0.0585, 사후는0.009/0.0585=2/13입니다. 서로 다른 집단의 조건률을 그냥 더하지 않습니다.
The cells are (0.009,0.001,0.0495,0.9405). Evidence has mass 0.0585 and posterior is 2/13. Conditional rates from different groups are weighted before addition.
9. 90%를 사후로 쓴 오류A mislabeled 90%
기본 p=0.01, a=0.9, b=0.05에서 경고 뒤 불량확률을90%라 한 답을 고치세요.
Under p=0.01, a=0.9, b=0.05, repair the claim that a warning means 90% defect probability.
풀이와 확인할 이유Solution and explanation
90%는 불량 중 경고율입니다. 경고 전체에는 정상 경고 0.0495도 있으므로 사후는0.009/(0.009+0.0495)=2/13≈15.38%입니다. 조건 방향과 분모를 함께 수정합니다.
90% conditions on defects. Among warnings the posterior is 0.009/(0.009+0.0495)=2/13, about 15.38%. Reverse the condition and recompute its denominator.
10. 같은 조건률·다른 비중Same rates, different mixture
a=0.9, b=0.05를 유지하고 p=0.5로 바꾼 사후를 구하세요.
Hold a=0.9, b=0.05 fixed and set p=0.5. Find the posterior.
풀이와 확인할 이유Solution and explanation
결합질량은0.45와0.025이고 사후는0.45/0.475=18/19입니다. 조건률을 바꾸지 않아도 사전 집단 크기가 바뀌면 사후가 달라집니다.
The evidence masses are 0.45 and 0.025, giving posterior 18/19. Changing mixture weights changes the posterior even with unchanged rates.
11. 가정 기대횟수Model expected counts
p=0.01, a=0.9, b=0.05, N=1000의 네 칸 기대횟수를 구하고49.5의 의미를 쓰세요.
For p=0.01, a=0.9, b=0.05 and assumed N=1000, find expected cells and interpret 49.5.
풀이와 확인할 이유Solution and explanation
(9,1,49.5,940.5)입니다. 49.5는 정상 경고의 모형 기대횟수이며 실제로 반 개를 관찰했다는 뜻이 아닙니다. 정수 관찰횟수와 기대값을 구별합니다.
They are (9,1,49.5,940.5). The fractional value is a model expectation of nondefective warnings, not an observed half object.
12. N의 배율Changing only group size
같은 p,a,b에서 N만1000에서10000으로 바꾸면 기대횟수와 사후는 어떻게 되나요?
With fixed p, a, b, what changes when assumed N rises from 1000 to 10000?
풀이와 확인할 이유Solution and explanation
네 기대횟수는10배가 됩니다. 사후 계산의 분자·분모에서 N이 약분되므로 확률은 같습니다. 크기 변화가 집단 비중 변화인 것은 아닙니다.
Every expected cell scales by ten. N cancels from the posterior ratio, so the conditional probability stays unchanged.
For p=0.01, a=0.9, b=0.05, find P(H|Eᶜ) and compare with 1−P(H|E).
풀이와 확인할 이유Solution and explanation
비경고 H질량0.001, 비경고 H아님질량0.9405입니다. 사후2/1883이며1−2/13=11/13과 다릅니다. 후자는 같은 경고 조건 아래 H아님 확률입니다.
The nonwarning masses are 0.001 and 0.9405, giving 2/1883. This differs from 11/13, which is not-H probability given a warning.
14. 전체 맞춤률Overall accuracy versus posterior
기본 p=0.01, a=0.9, b=0.05에서 전체 맞춘 비율과 경고 뒤 불량비율을 비교하세요.
For p=0.01, a=0.9, b=0.05, compare overall correct classification with defect probability given a warning.
풀이와 확인할 이유Solution and explanation
전체 맞춤률은pa+(1−p)(1−b)=0.9495입니다. 경고 뒤 불량은2/13입니다. 분모가 전체인 정확도와 경고만인 조건부 비율을 같은 지표로 부르지 않습니다.
The overall rate is 0.9495; the warning posterior is 2/13. They use different denominators and measure different properties.
15. 정보 없는 양의 관찰An uninformative positive event
0<p<1, a=b=c>0이면 사후가 사전과 같은 이유를 보이세요.
For 0< p< 1 and a=b=c> 0, show the posterior equals the prior.
풀이와 확인할 이유Solution and explanation
분모pc+(1−p)c=c이고 분자pc를 나누면p입니다. 양의 c가 있어 관찰조건이 유효합니다. c=0에서는 동일 계산으로 약분하지 않고 영관찰 미정의로 처리합니다.
Total evidence is c and joint H evidence pc, so their ratio is p. Positivity matters: at c=0 the evidence condition is undefined.
16. 두 조건률0Both event rates zero
a=b=0에서 사전p가 어떤 값이든 E의 사후가 왜 미정의인가요?
Why is the E posterior undefined for every p when a=b=0?
풀이와 확인할 이유Solution and explanation
두 결합질량 pa와(1−p)b가 모두0입니다. 관찰분모0이라0/0입니다. 사후0이나사전p로 채우는 것은 관찰 E에 대한 비율 정의가 아닙니다.
Both joint evidence masses vanish. The denominator is zero, giving 0/0 rather than a posterior of zero or p.
17. 사전0·양의 관찰Zero prior, positive evidence
p=0, a=0.9, b=0.05에서 E사후가 정의되는지와 a의 지위를 쓰세요.
For p=0, a=0.9, b=0.05, is the E posterior defined, and what is the status of a?
풀이와 확인할 이유Solution and explanation
E질량은0.05>0이라 사후는0입니다. H가 원래 영질량이므로 a는 그 가지의 선택 커널이지 결합법칙의 P(E|H)비율은 아닙니다. 정의된 사후 0과 미정의를 구별합니다.
Evidence mass 0.05 is positive, so posterior zero is defined. The H-branch input a is a chosen kernel on a null branch rather than an identified conditional ratio.
18. 0곱하기무한 경계Zero times infinity
p=0, a=0.9, b=0에서 오즈 곱과 직접 결합질량을 비교하세요.
For p=0, a=0.9, b=0, compare the odds product with the direct joint-mass calculation.
풀이와 확인할 이유Solution and explanation
사전오즈0, 우도비무한이지만 그 곱에 값을 부여하지 않습니다. 두 E질량은0과0이라 관찰조건 자체가 미정의입니다. 사후확률·사후오즈 모두 미정의로 남깁니다.
Prior odds are zero and the likelihood ratio infinite, but their product is not assigned a value. Both joint evidence masses are zero, so posterior probability and odds are undefined.
H쪽 관찰0, H아님 쪽은 원질량0이라 관찰 0입니다. 전체 관찰0으로 사후는 미정의입니다. H아님 커널 b가 양수라도 그 가지의 원질량을 만들지 못합니다.
No. Both joint evidence masses are zero. A positive kernel on a zero-prior complementary branch does not create mass.
20. 선택 심화: 사전 미분Optional: prior derivative
a,b>0에서 B(p)=pa/[b+(a−b)p]의 미분을 유도하세요.
For positive a, b, differentiate B(p)=pa/[b+(a−b) p].
풀이와 확인할 이유Solution and explanation
몫의 분자는 a[b+(a−b)p]−pa(a−b)=ab입니다. 따라서 B′=ab/[b+(a−b)p]²>0입니다. 이 엄격 증가 결론은 0<p<1과 양의 a,b에서 적용됩니다.
The quotient-rule numerator simplifies to ab, giving B′=ab/[b+(a−b) p]²> 0 for interior priors. Zero-rate boundaries need separate treatment.
21. 지지와50%Support versus exceeding 50%
기본 모형의 사전 1%, 사후 2/13에서 관찰이 H를 지지하는지와 H가 더 가능한지를 구별하세요.
With prior 1% and posterior 2/13, does evidence favor H, and is H more likely than not?
풀이와 확인할 이유Solution and explanation
2/13>0.01이라 H의 확률을 높이므로 모형 안에서 지지합니다. 그러나 2/13<1/2라 H아님이 더 가능합니다. 증가 방향과 확률 수준을 구별합니다.
It favors H because the posterior exceeds the prior. H remains less likely than not because 2/13< 1/2. Direction and level differ.
22. 사후 절반 문턱The half-posterior threshold
a=0.9, b=0.05에서 사후가1/2를 넘는 정확한 사전 조건을 구하세요.
For a=0.9, b=0.05, find the exact prior condition for posterior greater than 1/2.
풀이와 확인할 이유Solution and explanation
p>b/(a+b)=0.05/0.95=1/19입니다. 정확히 1/19이면 사후는 1/2입니다. 엄격한 경계에서는 반올림한 5.263% 대신 정확 분수를 사용합니다.
The condition is p> 1/19. Equality gives posterior 1/2. Use the exact fraction rather than a rounded percentage at the strict boundary.
23. 사후90% 문턱A 90% posterior target
a=0.9, b=0.05에서 사후가0.9를 넘을 정확한 p조건을 구하세요.
For a=0.9, b=0.05, find the exact p condition for posterior above 0.9.
풀이와 확인할 이유Solution and explanation
q=0.9를 문턱식에 넣으면 qb/[(1−q)a+qb]=0.045/0.135=1/3입니다. p>1/3이어야 하며, p=1/3에서는 사후가 0.9입니다.
The threshold is 0.045/0.135=1/3. Strictly exceeding 1/3 gives posterior above 0.9; equality gives exactly 0.9.
24. 사전 민감도 범위A prior-sensitivity range
a=0.9, b=0.05, p∈[0.01,0.05]의 사후 범위를 구하고 신뢰구간인지 답하세요.
For a=0.9, b=0.05 and p∈[0.01,0.05], find the posterior range. Is it a confidence interval?
풀이와 확인할 이유Solution and explanation
엄격 증가를 이용하면 끝값 2/13과 18/37 사이입니다. 약 15.38%~48.65%입니다. 선택한 입력 범위의 민감도이며 반복표집으로 만든 신뢰구간은 아닙니다.
Monotonicity gives [2/13,18/37], about 15.38%–48.65%. It is an input-sensitivity range, not a sampling confidence interval.
25. 확률에서 오즈Probability to odds
확률1/4,1/2,4/5의 오즈를 각각 구하세요.
Convert probabilities 1/4,1/2 and 4/5 to odds.
풀이와 확인할 이유Solution and explanation
p/(1−p)를 쓰면 1/3,1,4입니다. 각각 1대3,1대1,4대1로 읽습니다. 오즈 4를 확률 400%로 읽지 않습니다.
The odds are 1/3, one and four. They are read 1: 3,1: 1 and 4: 1; odds four do not mean 400% probability.
26. 오즈에서 확률Odds to probability
유한 오즈2/11,4,1/1000을 확률로 바꾸세요.
Convert finite odds 2/11, four and 1/1000 to probabilities.
풀이와 확인할 이유Solution and explanation
O/(1+O)를 쓰면 2/13,4/5,1/1001입니다. 오즈가 작을 때 확률과 가까워도 일반적으로 같은 숫자는 아닙니다.
Use O/(1+O) to get 2/13,4/5 and 1/1001. Small odds approximate probabilities but are not identical in general.
27. 큰 우도비의 작은 사후Large likelihood ratio, small posterior
사전오즈1/100000, 우도비100일 때 사후오즈·사후확률을 구하세요.
For prior odds 1/100000 and likelihood ratio 100, find posterior odds and probability.
풀이와 확인할 이유Solution and explanation
사후오즈는 1/1000, 사후확률은 1/1001≈0.0999%입니다. 우도비 100은 증거의 배율이며 사후가 100%라는 뜻은 아닙니다. 매우 작은 사전이 함께 작용합니다.
Posterior odds are 1/1000 and probability 1/1001, about 0.0999%. A likelihood ratio is an evidence multiplier, not a posterior percentage.
28. 기본 오즈 갱신Default odds update
p=0.01, a=0.9, b=0.05를 오즈 방식으로 풀어 사후2/13을 확인하세요.
Use odds for p=0.01, a=0.9, b=0.05 and recover posterior 2/13.
풀이와 확인할 이유Solution and explanation
사전오즈는 1/99, 우도비는 18입니다. 곱 18/99=2/11을 확률로 바꾸면 2/13입니다. 직접 결합질량을 정규화한 것과 같은 법칙입니다.
Prior odds 1/99 multiplied by 18 give 2/11. Converting back gives 2/13, matching direct joint-mass normalization.
29. 드물지만 불리한 관찰Rare but unfavorable evidence
a=0.001, b=0.01인 관찰은 H를 지지하나요? 0<p<1에서 방향을 쓰세요.
For a=0.001, b=0.01 and 0< p< 1, does the event favor H?
풀이와 확인할 이유Solution and explanation
우도비가 1/10<1이라 사후오즈가 줄어듭니다. 관찰이 양쪽에서 드물다는 사실만으로 H를 지지하지는 않습니다. 같은 관찰의 상대 가능성을 비교해야 합니다.
The likelihood ratio is 1/10, so posterior odds decrease. Rarity under both states alone does not determine the evidence direction.
30. 완벽히 구별하는 양의 관찰Perfectly discriminating positive evidence
0<p<1, a>0, b=0에서 E사후·사후오즈를 구하세요.
For 0< p< 1, a> 0, b=0, find the E posterior and odds.
풀이와 확인할 이유Solution and explanation
E의 양의 질량은 H에서만 나와 사후가 1입니다. 사후오즈는 양수/0의 확장 표시인 무한입니다. 다만 p=0으로 바꾸면 E도 영질량이라 이 결론 대신 미정의가 됩니다.
Positive evidence arises only from H, so the posterior is one and odds infinite. At p=0 the evidence becomes null instead, and that conclusion is replaced by undefined conditioning.
31. 아주 작은 사전A tiny prior
정확한 p=10⁻⁴⁰⁰,a=0.9, b=0.05에서 사후가 정확히 0인지와 정의 상태를 답하세요.
For exact p=10⁻⁴⁰⁰, a=0.9, b=0.05, is the posterior exactly zero, and is it defined?
풀이와 확인할 이유Solution and explanation
분자 pa는 양수이고 분모는 양수이므로 사후도 양수로 정의됩니다. 수치 표시가 0으로 내려가도 정확한 0이 된 것은 아닙니다. 원십진 문자열을 보존해 결합질량을 계산해야 이 차이를 잃지 않습니다.
Both numerator and denominator are positive, so the posterior is positive and defined. Display underflow is not exact zero. Preserve the original decimal before computing joint masses.
32. 선택 심화: 로그오즈Optional: log odds
사전오즈1/99와 우도비18의 로그오즈 갱신을 쓰고 음수 결과를 해석하세요.
Write the log-odds update for prior odds 1/99 and likelihood ratio 18, and interpret its negative result.
풀이와 확인할 이유Solution and explanation
log(1/99)+log18=log(2/11)≈−1.704748입니다. 사후오즈가1보다 작다는 뜻이며 확률이 음수라는 뜻은 아닙니다. 사후확률은2/13으로 양수입니다.
The sum is log(2/11), about −1.704748. Negative log odds mean odds below one, not negative probability. The posterior is positive 2/13.
33. 일반 순차 갱신의 조건률Rates in a sequential update
E₁을 본 뒤 E₂를 반영할 때 P(E₂|H)만 다시 쓰면 언제 틀릴 수 있나요? 필요한 조건률을 적으세요.
After observing E₁, which rates are needed to incorporate E₂, and when may the original rates be reused?
풀이와 확인할 이유Solution and explanation
새 조건률은 P(E₂|H∩E₁)와 P(E₂|Hᶜ∩E₁)입니다. 이전 관찰의 정보를 이미 포함해야 합니다. 각 상태 아래에서 E₁과 E₂가 조건부독립일 때 원조건률을 재사용할 수 있으며, 순차 갱신 자체에는 그 독립이 필수인 것은 아닙니다.
Use P(E₂|H∩E₁) and P(E₂|Hᶜ∩E₁), with valid positive branches. State-conditional independence permits reuse of rates ignoring E₁. General sequential updating need not assume that independence.
34. 반복 곱의 가정Assumptions for repeated powers
k회 관찰률을 aᵏ,bᵏ로 쓸 때의 독립·동일률 조건과 둘씩 독립의 한계를 쓰세요.
What assumptions justify aᵏ, bᵏ for k repeated event outcomes? Is pairwise independence enough?
풀이와 확인할 이유Solution and explanation
모든 관찰이 H와 Hᶜ 각각 아래에서 상호 조건부독립이고, 회차마다 같은 관찰률 a,b를 가져야 합니다. 셋 이상에서 둘씩 독립만으로 전체 교집합의 곱은 보장되지 않습니다. 상태별 공통 오류나 시간 변화도 확인해야 합니다.
Require mutual conditional independence under each state and unchanged state-specific rates across repetitions. Pairwise independence does not generally factor larger intersections. Shared errors or time variation can also break the model.
35. 두 새 관찰Two new observations
p=0.01, a=0.9, b=0.05에서 두 관찰이 각 상태 아래 독립이라고 가정한 사후를 구하세요.
For p=0.01, a=0.9, b=0.05, assume two observations are independent within each state and compute the posterior.
풀이와 확인할 이유Solution and explanation
H의 두 관찰 질량은0.01×0.9²=0.0081입니다. H아님 질량은0.99×0.05²=0.002475입니다. 합0.010575로 나누면36/47≈76.60%입니다. 이 결과는 상태별 조건부독립 가정을 사용합니다.
The joint masses are 0.0081 and 0.002475, totaling 0.010575. Their normalized H share is 36/47, about 76.60%, under the stated conditional-independence assumption.
36. 같은 관찰 복사A copied report
기본 p=0.01, a=0.9, b=0.05에서 E₂가 E₁의 완전 복사라면 두 번 읽은 사후는 얼마인가요?
Under p=0.01, a=0.9, b=0.05, if E₂ is an exact copy of E₁, what is the posterior after both reports?
풀이와 확인할 이유Solution and explanation
E₁∩E₂=E₁이므로 한 번의 사후2/13을 유지합니다. 조건부독립인 새 관찰의36/47로 바꾸지 않습니다. 정보원의 이름이나 표시 횟수보다 증거의 계보가 중요합니다.
The intersection is just E₁, so the posterior stays 2/13. It is not the new-independent-evidence value 36/47. Trace the evidence rather than counting displays.
37. 0회 초기 상태Zero-observation initialization
반복 관찰 실습에서0회는 왜 사전 그대로이며 a=0이어도 0⁰ 계산이 필요 없나요?
Why is the zero-observation state the prior, even when a=0, without requiring an arithmetic value for 0⁰?
풀이와 확인할 이유Solution and explanation
아직 어떤 관찰도 조건으로 걸지 않았으므로 원법칙의 H확률 p입니다. 이 초기 상태를 별도로 정의하면 됩니다. 1회부터 실제 경로질량을 계산하고, 영질량 경로면 조건부 사후를 미정의로 표시합니다.
No evidence has been conditioned on, so H retains probability p. Define this initial state directly. Starting at one observation, check actual path masses and leave null-path posteriors undefined.
38. 영관찰과 반복 횟수Zero event rates and repetition
a=b=0인 모형에서0회와1회 이상 모두 E였다는 조건의 사후를 구별하세요.
For a=b=0, distinguish zero observations from one or more E outcomes.
풀이와 확인할 이유Solution and explanation
0회는 사전입니다. 1회부터 E의 경로질량이0이므로 그 관찰조건의 사후는 미정의입니다. 더 많이 복사하거나 가정 반복 횟수를 늘려도 영확률 조건의 분모가 양수로 바뀌지 않습니다.
Zero observations retain the prior. Every positive repetition count gives null evidence and an undefined posterior. More copies or repetitions do not create positive mass.
39. 혼합에서의 의존Dependence in a mixture
p=1/2, a=0.9, b=0.1이고 두 관찰이 각 상태 아래 독립입니다. 주변과 결합을 비교하세요.
Let p=1/2, a=0.9, b=0.1, with two independent observations within each state. Compare their marginal product and joint probability.
풀이와 확인할 이유Solution and explanation
각 관찰의 주변은0.5입니다. 두 관찰 결합은0.5×0.81+0.5×0.01=0.41로 주변곱0.25와 다릅니다. 조건부독립이 전체 독립을 의미하지 않는 반례입니다.
Each marginal is 0.5. The joint is 0.41 rather than 0.25. State-conditional independence does not imply marginal independence.
40. 둘씩 독립의 주의Pairwise is insufficient
공정 독립 두 동전에서 A=첫앞면, B=둘째앞면, C=같은면은 둘씩 독립입니다. 세 관찰의 곱을 보장하나요?
For two independent fair tosses, A=first heads, B=second heads, C=equal faces are pairwise independent. Does that justify the triple product?
풀이와 확인할 이유Solution and explanation
보장하지 않습니다. 모든 주변은1/2, 각 쌍 교집합은1/4이지만 세 교집합은 HH의1/4로1/8과 다릅니다. 반복 증거 모형에는 필요한 전체 결합분해를 확인해야 합니다.
No. The triple intersection is HH with probability 1/4, rather than 1/8. Repeated-evidence models need the relevant full joint factorization.
41. 세 상태 BayesThree-state Bayes
사전(1/2,1/3,1/6),관찰률(1/5,1/2,4/5)의 관찰확률과 사후를 구하세요.
For priors(1/2,1/3,1/6) and event rates(1/5,1/2,4/5), find evidence probability and posterior masses.
풀이와 확인할 이유Solution and explanation
결합질량은(1/10,1/6,2/15)이고 합은2/5입니다. 각각 나누면(1/4,5/12,1/3)입니다. 사전은 합1이지만 세 관찰률끼리 합1이어야 할 필요는 없습니다.
Joint masses are (1/10,1/6,2/15), total 2/5. Dividing gives (1/4,5/12,1/3). Rates under different states need not sum to one.
42. 선택 심화: 연속 점조건Optional: conditioning on a continuous point
연속 X에서 P(X=x)=0일 때 상태별 밀도 f₁(x),f₀(x)를 넣는 식이 원사건비율0/0의 단순 계산인가요?
When P(X=x)=0, is a density-based posterior a direct calculation of the event ratio 0/0?
풀이와 확인할 이유Solution and explanation
아닙니다. 적절한 결합밀도모형에서 정의하는 조건부 버전이며 양의 밀도분모·가측성 등의 조건을 갖습니다. 점사건 확률을 직접 나눈 값이 아니고 영집합 버전의 문제도 남습니다. 다음 장에서 밀도와 확률의 차이를 먼저 배웁니다.
No. It is a conditional version derived from a suitable joint-density model with appropriate measurability and positive-denominator conditions. Null-set version choices remain. Density and event probability are distinct.
43. 역조건과 인과Reversed conditioning versus causality
날개≥210mm 조건에서 Gentoo확률을 계산하면 날개를 늘리는 조치가 종을 바꾼다는 인과결론이 되나요?
Does a Gentoo posterior given flipper≥210 mm imply that lengthening flippers changes species?
풀이와 확인할 이유Solution and explanation
아닙니다. 같은 기록의 결합질량을 관찰조건으로 다시 읽은 것입니다. 행동·개입의 결과에는 별도 생성모형과 식별 근거가 필요합니다. 조건의 방향을 뒤집는 항등식이 물리적 인과 방향을 뒤집지 않습니다.
No. The calculation conditions on a recorded attribute. Intervention effects need a separate causal model and identification. Reversing a conditional reading does not reverse physical causation.
44. 실제 속성과 추출 질문Attributes versus draws
2024년16국 GDP/수명 표가 의존인데 두 국가의 독립 복원 추출이 가능하다는 것은 모순인가요?
Is it contradictory for the sixteen-country GDP/life table to be dependent while two uniform replacement draws are independent?
풀이와 확인할 이유Solution and explanation
모순이 아닙니다. 첫째는 한 기록의 두 속성 관계, 둘째는 정의한 두 선택 결과의 관계입니다. 서로 다른 표본공간·사건·법칙이므로 독립 질문도 다릅니다.
No. One concerns two attributes of a record; the other concerns two selection outcomes. They use different events and experiments.
45. 240개 비복원 쌍Enumerate 240 distinct pairs
16개 중 B8개를 두 번 비복원 균등 선택합니다. 전체 순서쌍과 둘 다 B인 쌍 수를 직접 세세요.
Draw twice uniformly without replacement from sixteen tickets, eight satisfying B. Count all ordered pairs and qualifying pairs.
풀이와 확인할 이유Solution and explanation
전체16×15=240쌍, 둘 다 B는8×7=56쌍입니다. 확률56/240=7/30이며 복원의64/256=1/4와 다릅니다. 분모에 순서쌍 규칙을 같이 기록합니다.
There are 240 total pairs and 56 qualifying pairs, giving 7/30. Replacement instead gives 64/256=1/4. State the ordered-pair rule with the denominator.
For p=123/342, a=109/123, b=5/219, find evidence probability and the Gentoo posterior.
풀이와 확인할 이유Solution and explanation
두 관찰질량은109/342와5/342로 합1/3입니다. H질량을 이 분모로 나누면109/114입니다. 직접 기록표에서 얻은 역조건과 같으며 새로운 측정값을 만들어 낸 것이 아닙니다.
The evidence masses are 109/342 and 5/342, totaling 1/3. The posterior is 109/114, matching the direct table rather than adding new measurements.
47. 1% 재가중A 1% reweighting scenario
실제 조건률109/123,5/219를 유지하고 p=1/100으로 가정한 사후7957/28252의 해석을 쓰세요.
Interpret posterior 7957/28252 when actual rates 109/123,5/219 are retained but prior 1/100 is assumed.
풀이와 확인할 이유Solution and explanation
약28.16%로 원기록 사후95.61%와 다릅니다. 원기록을 수정한 것이 아니라 집단 비중을 바꾼 가정 선택법칙입니다. 새 지역에서 같은 조건률이 유지된다는 외부검증이 된 것은 아닙니다.
It is about 28.16%, unlike the original 95.61%. This is an assumed mixture change, not changed measurements or validated transport to another location.
48. 원비중 복원Restore the original mixture
실제 조건률109/123,5/219의 재가중 실습에서 p를41/114로 되돌리면 원표가 왜 복원되나요?
Why does prior 41/114 restore the original table when rates are 109/123 and 5/219?
풀이와 확인할 이유Solution and explanation
41/114=123/342이므로 pa=109/342, p(1−a)=14/342입니다. 다른 집단의 두 칸도5/342와214/342로 복원됩니다. 원측정값과 원비중을 보존한 재현입니다.
It equals 123/342, giving first-state cells 109/342 and 14/342. Complementary cells become 5/342 and 214/342, exactly restoring the retained table.
49. 기업10이름표 균등Ten uniform company tickets
두 FY와5품목의10이름표를 균등 선택합니다. S=Services,Y=FY24의 네 칸과 독립 여부를 구하세요.
Uniformly select among two fiscal years and five categories. For S=Services, Y=FY24, find four cells and independence.
풀이와 확인할 이유Solution and explanation
네 칸은(1,1,4,4)/10입니다. 주변1/5와1/2의 곱1/10이 교집합과 같아 독립입니다. 두 해 실제 매출이 같아서가 아니라 곱공간 이름표를 균등하게 선택했기 때문입니다.
Cells are (1,1,4,4)/10. Marginals 1/5 and 1/2 multiply to the intersection 1/10. This follows from the ticket law, not equal actual sales.
With pooled sales 774320, Services 181369, FY24 total 391035 and shared 96169 million USD, find P(S|Y), P(Y|S).
풀이와 확인할 이유Solution and explanation
각각96169/391035≈0.245935와96169/181369≈0.530239입니다. 공통 분자는 같지만 관찰조건의 질량이 다릅니다. 고객·거래별 확률로 해석하지 않습니다.
They are 96169/391035, about 0.245935, and 96169/181369, about 0.530239. Different conditioning masses explain the difference. Neither measures customer-level behavior.
51. 합산 매출의 의존Dependence in pooled sales
기업 매출가중의 교집합과 주변곱 차이가708790633/119914292480입니다. 독립·기간·인과 해석을 쓰세요.
The company pooled-sales intersection gap is 708790633/119914292480. Interpret independence, periods and causality.
풀이와 확인할 이유Solution and explanation
정확히 양수이므로 정의한 합산 매출 법칙은 독립이 아닙니다. FY23 53주와FY24 52주를 합한 명목 매출 질량의 비교이며 동일주수 성장판정은 아닙니다. 인과효과나 고객 행동을 식별한 결과도 아닙니다.
The positive exact gap rejects independence in this specified finite law. It pools nominal sales over 53-week and 52-week years. It does not identify equal-week growth, customer behavior or a causal effect.
52. 조건률 이동의 가정Transporting conditional rates
다른 지역의 Gentoo비중이1%라는 사실만으로 원자료 조건률109/123,5/219를 그대로 써도 된다고 보장되나요?
Does knowing another region’s Gentoo share is 1% guarantee that rates 109/123 and 5/219 remain valid there?
풀이와 확인할 이유Solution and explanation
보장되지 않습니다. 집단 안의 연령·성별·다른 종 혼합·측정·시기가 달라 조건률이 바뀔 수 있습니다. 그대로 쓰는 계산은 명시적 이동 가정 아래의 시나리오이며 별도 검증이 필요합니다.
No. Within-group composition, measurement or timing can change the rates. Reusing them defines an explicit transport assumption rather than a validated fact.
p=1/2, a=0.8, b=0.2를 각 관찰의 상태별률로 압니다. 두 관찰의 의존정보가 없을 때 사후가 하나로 정해지나요?
For p=1/2, a=0.8, b=0.2, do the state-specific single-event rates alone determine the posterior after two events?
풀이와 확인할 이유Solution and explanation
아닙니다. 완전 복사라면 사후0.8입니다. 각 상태 아래 독립이라면0.64/(0.64+0.04)=16/17입니다. 같은 일회 조건률에서도 결합관찰률이 달라 두 관찰의 사후가 달라집니다.
No. Copies give 0.8, while state-conditional independence gives 16/17. The same single-event rates can accompany different joint event rates.
54. 기대횟수 선반올림 오류Premature expected-count rounding
기본 모형 p=0.01, a=0.9, b=0.05, N=10에서 경고 기대횟수0.09와0.495를 각각 정수0으로 반올림한 뒤 사후를 구하려 합니다. 고치세요.
For p=0.01, a=0.9, b=0.05, N=10, someone rounds warning expectations 0.09 and 0.495 to zero before computing the posterior. Repair it.
풀이와 확인할 이유Solution and explanation
모형 사후는 원질량의 비0.09/(0.09+0.495)=2/13입니다. 선반올림하면 가짜0/0을 만들며 실제로 빈 표를 관찰한 것도 아닙니다. 기대횟수는 소수 그대로 보존하고 표시만 반올림합니다.
Use the unrounded ratio 0.09/(0.09+0.495)=2/13. Premature rounding creates a spurious 0/0 and does not represent an observed empty table. Preserve model expectations in calculations.
55. 종합 Bayes 감사Integrated Bayes audit
보고서가 조건률을 사후로, 우도비를 확률로, 증거 복사를 새 관찰로, 영관찰을 사후 0으로, 재가중을 실측으로 씁니다. 수정 원칙을 쓰세요.
A report confuses rates with posteriors, likelihood ratios with probabilities, copies with new observations, null evidence with posterior zero, and reweighting with measurements. State repairs.
풀이와 확인할 이유Solution and explanation
두 상태의 결합질량을 만든 뒤 관찰질량으로 나눕니다. 우도비에는 사전오즈를 곱하고 확률로 되돌립니다. 새 증거의 조건부의존을 검토하고 복사는 한 번만 반영합니다. 영관찰은 미정의로 남기며 원자료와 가정 시나리오를 나누어 기록합니다.
Construct both joint masses and divide by positive evidence. Update prior odds before converting to probabilities. Check dependence and count copies only once. Leave null evidence undefined and distinguish actual records from assumed scenarios.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.