STAT-04 · STATISTICS

사건·확률 공리·조건부 확률Events, probability axioms and conditional probability

이름표와 질량에서 네 칸 표·나무·독립·실제 조건부 비율까지From tickets and mass to joint tables, trees, independence and actual conditional ratios

실습 6종 · 풀이 포함 연습문제 55개6 labs · 55 exercises with solutions

기초Foundations

1. 같은 109개 기록도 분모에 따라 다른 질문에 답한다1. The same 109 records answer different questions with different denominators

날개 길이를 확인할 수 있는 실제 펭귄 측정기록 342개 중 Gentoo는 123개입니다. 날개가 210mm 이상인 기록은 114개이고, 두 조건에 모두 해당하는 기록은 109개입니다. “Gentoo 중 긴 날개”는 109/123, “긴 날개 중 Gentoo”는 109/114입니다. 분자가 같아도 분모가 가리키는 집합이 다릅니다.

이 장은 공식을 먼저 외우는 대신, 이름표를 고르고 조건에 맞는 이름표만 남기는 과정으로 시작합니다. 여기서 210mm는 수업에서 선택한 문턱이며 공식 종 판별 기준이 아닙니다. 고정된 실제 기록에 정의한 선택 실험과 모든 야생 펭귄에 대한 예측은 구별합니다.

Among 342 actual penguin measurement records with available flipper lengths, 123 are Gentoo records, 114 have flippers at least 210 mm long, and 109 satisfy both conditions. “Long flippers among Gentoo” gives 109/123; “Gentoo among long flippers” gives 109/114. The numerator is unchanged, but the denominator identifies a different retained set.

Start by choosing labeled tickets and retaining those satisfying a condition. The 210 mm threshold is a teaching choice, not an official species classifier. A selection experiment on fixed records does not automatically predict every wild penguin.

기초Foundations

2. 무엇을 어떻게 고르는지 먼저 한 문장으로 쓴다2. State what is selected and how it is selected

상자에 a,b,c,d라는 이름표를 하나씩 넣고 하나를 균등하게 고르는 가정 실험을 생각합시다. 선택 대상은 이름표 하나, 가능한 결과는 네 개, 선택 법칙은 각각 1/4입니다. 상자의 색깔이나 이름표의 가격은 이 법칙에 들어 있지 않습니다.

“학생이 합격할 확률”만으로는 부족합니다. 어떤 학생 집단에서 어떤 방식으로 한 명을 고르는지, 합격이 어느 시점의 어떤 시험인지 정해야 합니다. 관찰된 학생 수를 분모로 쓰는 실험과 미래 학생을 예측하는 모형은 서로 다른 질문입니다.

실제 기업 자료에서도 “5개 품목 이름표를 균등하게 하나 선택”과 “품목 매출 비중에 따라 하나 선택”은 둘 다 정의할 수 있습니다. 같은 원자료를 사용해도 선택 법칙이 다르면 확률이 달라집니다. 법칙을 바꾸는 것이 원매출을 수정하는 것은 아닙니다.

Imagine one ticket for each label a, b, c, d and select a ticket uniformly. The selected unit is one ticket, there are four possible outcomes, and each receives probability 1/4. Prices or colors do not enter this stated law.

“A student passes” needs a defined student set, selection mechanism, examination and reporting date. A finite-record selection experiment differs from a model for future students.

For company data, uniform selection among five categories and selection weighted by category sales are both well-defined experiments. Changing the selection law changes probabilities without changing any actual sales figure.

기초Foundations

3. 결과 하나와 결과를 모은 집합을 구별한다3. Distinguish an outcome from a set of outcomes

한 번 선택해서 나온 a는 결과이고, 가능한 결과를 모두 모은 Ω={a,b,c,d}는 표본공간입니다. “a 또는 b가 나온다”는 {a,b}라는 결과 집합입니다. 같은 이름의 동전 두 개를 던지는 경우에도 첫 번째·두 번째 순서를 기록하면 HT와 TH는 다른 결과입니다.

Ω={a,b,c,d},ω=a∈Ω,A={a,b}⊆Ω\Omega=\{a,b,c,d\},\qquad \omega=a\in\Omega,\qquad A=\{a,b\}\subseteq\Omega

주사위 두 개의 순서쌍은 36개지만 합은 2부터 12까지 11가지입니다. 36개 순서쌍이 균등하다는 가정에서 합 2는 한 쌍, 합 7은 여섯 쌍에 해당합니다. 결과를 합이라는 값으로 요약했다고 11가지 합이 균등해지는 것은 아닙니다.

자료의 고유 row_id는 기록을 구별하는 이름표로 쓸 수 있습니다. 그것을 개체를 평생 추적한 식별번호라고 해석하려면 별도 자료 설명이 필요합니다. 앞 장의 관측단위 구별이 확률의 표본공간에도 그대로 적용됩니다.

The selected label a is an outcome. The set Ω={a, b, c, d} contains all possible outcomes. The event “a or b is selected” is the subset {a, b}. When order is recorded, HT and TH from two tosses are different outcomes.

Ω={a,b,c,d},ω=a∈Ω,A={a,b}⊆Ω\Omega=\{a,b,c,d\},\qquad \omega=a\in\Omega,\qquad A=\{a,b\}\subseteq\Omega

Two labeled dice have 36 ordered pairs, but their sum has only 11 possible values. Under uniform pairs, sum two has one supporting pair and sum seven has six. Summarizing outcomes does not make the resulting values uniform.

A row identifier can label a retained record. Treating it as a lifelong individual identifier requires additional documentation. Observation-unit distinctions continue to matter when defining an outcome space.

기초Foundations

4. 사건은 결과에 대해 예·아니요를 정하는 조건이다4. An event is a yes-or-no condition on outcomes

사건 A는 표본공간 안의 부분집합입니다. 선택 결과가 A에 들어 있으면 A가 발생했다고 말합니다. A={a,b}일 때 a와 b에서는 예, c와 d에서는 아니요입니다. 사건은 뉴스에서 말하는 특별한 사고만 뜻하지 않습니다.

아무 결과도 담지 않은 공집합 ∅는 불가능 사건이고, 모든 결과를 담은 Ω는 확실 사건입니다. A가 실제로 발생했는지와 P(A)가 얼마인지는 다릅니다. 한 번의 선택에서는 예·아니요 중 하나가 나오지만 사전에 부여한 확률은 0과 1 사이의 수입니다.

유한 실습에서는 모든 부분집합을 사건으로 허용합니다. 더 큰 공간에서는 사건들의 모음 𝓕를 정하고 여사건과 가산 합집합에 닫혀 있어야 합니다. 이 구조를 σ-대수라고 부르며, 수리기초 24장에서 자세히 연결했습니다. 첫 읽기에서는 이름표 집합에 집중해도 됩니다.

An event A is a subset of the outcome space. It occurs when the selected outcome belongs to that subset. For A={a, b}, the answer is yes at a and b and no at c and d.

The empty set ∅ is the impossible event; Ω is the certain event. Whether an event occurs in one selection differs from its assigned probability. A realized indicator is zero or one, while its probability can lie between them.

The finite labs allow every subset. In larger spaces, an event family 𝓕 must be closed under complements and countable unions; this is a sigma-algebra. Mathematical Foundations 24 supplies that bridge. Beginners can first work with ticket subsets.

기초Foundations

5. 그리고·또는·아니다를 집합으로 번역한다5. Translate “and,” “or” and “not” into sets

A={a,b}, B={b,c}로 놓읍시다. “그리고”인 교집합 A∩B에는 b만 남고, “또는”인 합집합 A∪B에는 a,b,c가 들어갑니다. 여기서 또는은 둘 다 해당하는 b도 포함합니다. 일상어의 “둘 중 딱 하나”와 다릅니다.

A∩B={b},A∪B={a,b,c},Ac={c,d},A∖B={a}A\cap B=\{b\},\quad A\cup B=\{a,b,c\},\quad A^c=\{c,d\},\quad A\setminus B=\{a\}

여사건 Aᶜ는 항상 정해 둔 Ω를 기준으로 만듭니다. 표본공간을 바꾸면서 여사건은 같은 것처럼 쓰면 오류가 납니다. “A지만 B는 아님”은 A∩Bᶜ이며, “정확히 하나”는 (A∖B)∪(B∖A)입니다.

드모르간 법칙 (A∪B)ᶜ=Aᶜ∩Bᶜ는 어느 쪽에도 속하지 않는 결과를 양쪽 방식으로 표현합니다. 결과 하나씩 예·아니요를 확인하면 식을 암기하지 않고도 검산할 수 있습니다.

Let A={a, b} and B={b, c}. “And” gives intersection {b}; inclusive “or” gives union {a, b, c}. The union includes the shared outcome b. “Exactly one” excludes that overlap.

A∩B={b},A∪B={a,b,c},Ac={c,d},A∖B={a}A\cap B=\{b\},\quad A\cup B=\{a,b,c\},\quad A^c=\{c,d\},\quad A\setminus B=\{a\}

Complements always refer to the stated Ω. “A but not B” is A∩Bᶜ, and exactly one is (A∖B)∪(B∖A). Changing Ω can change a complement.

De Morgan’s identity (A∪B)ᶜ=Aᶜ∩Bᶜ describes outcomes in neither event. Check membership outcome by outcome to understand the identity rather than memorizing its appearance.

기초Foundations

6. 사건 실습: 소속과 확률을 따로 읽는다6. Event lab: read membership separately from probability

네 이름표를 A와 B에 포함하거나 제외하고, 이름표별 정수 가중치를 바꿉니다. 첫 단계에서는 모두 1로 놓고 집합 연산을 확인하세요. 다음에는 d의 가중치만 7로 바꾸어 같은 소속 집합의 확률이 어떻게 달라지는지 보세요.

가중치는 음수가 아닌 정수이고 기본값은 네 개 모두 1입니다. 실습에서 허용하는 상한은 계산창의 범위이며, 확률 이론이 가중치에 이 상한을 요구하는 것은 아닙니다. 가중치가 0인 이름표도 집합에는 남아 있습니다.

A={a,b}, B={b,c}, 가중치 (1,1,1,7)이면 전체 질량 10, P(A)=2/10, P(B)=2/10, P(A∩B)=1/10, P(A∪B)=3/10입니다. 모두 0으로 만들면 유한 영측도는 되지만 전체를 1로 정규화할 수 없어 확률과 조건부 비율은 미정의로 표시합니다.

Include or exclude each of four labels from A and B, then change their integer weights. Begin with all weights one to check set operations. Next give only d weight seven and compare probabilities without changing membership.

Weights are nonnegative integers, initially all one. Input limits belong to this lab, not to probability theory. A zero-weight outcome still belongs to the outcome set.

For A={a, b}, B={b, c} and weights (1,1,1,7), total mass is ten, P(A)=P(B)=2/10, intersection probability is 1/10 and union probability is 3/10. All-zero weights define a zero measure but cannot be normalized into a probability law; ratios remain undefined.

기초Foundations

7. 경우의 수를 나누려면 결과가 같은 확률이어야 한다7. Counting ratios require equally probable outcomes

유한한 N개 결과가 각각 1/N이면 사건 A의 확률은 해당 결과 수를 N으로 나눈 값입니다. 이 식의 핵심은 단순히 결과를 셀 수 있다는 사실이 아니라 같은 확률이라는 가정입니다.

P(A)=∣A∣∣Ω∣if all outcomes are equiprobable and 0<∣Ω∣<∞P(A)=\frac{|A|}{|\Omega|}\quad\text{if all outcomes are equiprobable and }0<|\Omega|<\infty

공정한 두 주사위의 순서쌍은 36개가 균등하므로 합 7의 확률은 6/36=1/6입니다. 합이 2~12라는 이유로 1/11이라고 하면, 요약된 합들을 근거 없이 균등하게 만든 셈입니다. 두 주사위가 공정해도 서로의 결과가 의존하도록 묶였다면 36쌍 균등은 별도 확인이 필요합니다.

실제 342개 가용 기록의 균등 선택은 각 기록에 1/342를 부여한 수업 실험입니다. 원래 자연 상태에서 모든 개체가 그 확률로 포획되었다는 주장이 아닙니다. 자료를 고르는 법칙과 자료가 만들어진 법칙을 구별합니다.

If N finite outcomes each receive probability 1/N, an event probability equals its outcome count divided by N. Equal probabilities, not merely countability, justify this ratio.

P(A)=∣A∣∣Ω∣if all outcomes are equiprobable and 0<∣Ω∣<∞P(A)=\frac{|A|}{|\Omega|}\quad\text{if all outcomes are equiprobable and }0<|\Omega|<\infty

Uniform ordered pairs from two dice give six favorable pairs for sum seven, hence 1/6 rather than 1/11. Even fair marginal dice do not guarantee uniform pairs if their outcomes are dependent.

Uniform selection among 342 retained records assigns 1/342 to each ticket. It does not claim that the original field collection captured every natural penguin with that probability. Selection from records and generation of records are different mechanisms.

기초Foundations

8. 가중치는 확률이 되기 전의 질량일 수 있다8. Weights can be masses before normalization

가중치 (1,2,3,4)는 합이 10이므로 그 자체가 네 확률은 아닙니다. 각 가중치를 10으로 나누면 (0.1,0.2,0.3,0.4)가 됩니다. 가중치가 큰 이름표를 더 자주 고르도록 정의한 법칙입니다.

wi≥0,W=∑iwi>0,pi=wiW,P(A)=∑ωi∈AwiWw_i\ge0,\quad W=\sum_iw_i>0,\qquad p_i=\frac{w_i}{W},\qquad P(A)=\frac{\sum_{\omega_i\in A}w_i}{W}

모든 가중치에 같은 양수 c를 곱해도 분자와 분모에서 약분되어 확률이 같습니다. 그러나 이름표 하나의 가중치만 바꾸면 일반적으로 확률이 달라집니다. 단위가 있는 매출을 가중치로 쓴다면 분자와 분모의 같은 통화 단위가 약분되어 확률은 무차원입니다.

음수는 선택 질량으로 허용하지 않습니다. 합이 1이라는 조건만 맞는 (−0.1,0.3,0.4,0.4)도 확률 법칙이 아닙니다. 정규화는 비음수·양의 전체 질량이 확인된 경우에만 확률을 새로 정의하는 연산입니다.

Weights (1,2,3,4) total ten and are not themselves four probabilities. Dividing by ten defines probabilities (0.1,0.2,0.3,0.4), assigning more selection mass to larger weights.

wi≥0,W=∑iwi>0,pi=wiW,P(A)=∑ωi∈AwiWw_i\ge0,\quad W=\sum_iw_i>0,\qquad p_i=\frac{w_i}{W},\qquad P(A)=\frac{\sum_{\omega_i\in A}w_i}{W}

Multiplying all weights by the same positive constant cancels in the ratio. Changing just one weight generally changes the law. Currency units cancel when both numerator and denominator use the same sales unit.

Negative selection mass is invalid. The vector (−0.1,0.3,0.4,0.4) sums to one but is not a probability law. Normalization defines a law only after checking nonnegative weights and positive total mass.

기초Foundations

9. 세 공리는 모든 허용 확률 계산의 공통 규칙이다9. Three axioms constrain every valid probability calculation

확률공간 (Ω,𝓕,P)는 결과 집합, 허용 사건들의 모음, 각 사건의 확률을 함께 정한 것입니다. 비음성 P(A)≥0, 전체 P(Ω)=1, 서로 겹치지 않는 가산개의 사건에 대한 가법성이 기본 공리입니다.

P(A)≥0,P(Ω)=1,P ⁣(⋃n=1∞An)=∑n=1∞P(An)(Ai∩Aj=∅, i≠j)P(A)\ge0,\quad P(\Omega)=1,\qquad P\!\left(\bigcup_{n=1}^{\infty}A_n\right)=\sum_{n=1}^{\infty}P(A_n)\quad(A_i\cap A_j=\varnothing,\ i\ne j)

가산은 A₁,A₂,…처럼 자연수로 순서를 붙여 나열할 수 있다는 뜻입니다. 유한 개를 더하는 법칙도 포함하지만, 무한 개에서 단순히 유한 법칙만 반복한 것과는 추가 내용이 있습니다. 34~35절에서 왜 필요한지 봅니다.

유한 표본공간의 모든 부분집합을 허용하면 각 원자의 비음수 질량 합이 1인 것으로 세 공리를 보장할 수 있습니다. 이 경우 사건 확률은 포함 원자의 질량을 더하면 됩니다. 공리가 현실에서 어떤 수치를 선택해야 하는지까지 정해 주는 것은 아닙니다.

A probability space (Ω,𝓕, P) specifies outcomes, allowed events and their probabilities. The axioms require nonnegativity, total mass one and countable additivity for pairwise disjoint events.

P(A)≥0,P(Ω)=1,P ⁣(⋃n=1∞An)=∑n=1∞P(An)(Ai∩Aj=∅, i≠j)P(A)\ge0,\quad P(\Omega)=1,\qquad P\!\left(\bigcup_{n=1}^{\infty}A_n\right)=\sum_{n=1}^{\infty}P(A_n)\quad(A_i\cap A_j=\varnothing,\ i\ne j)

Countable means listable as A₁, A₂,… . This includes finite sums but adds a genuine requirement for infinitely many events. Sections 34–35 explain its role.

On a finite space allowing every subset, nonnegative atomic masses summing to one determine a valid probability law by summation. These rules constrain calculations; they do not choose the empirical probabilities for a real-world question.

기초Foundations

10. 공리 실습: 잘못된 입력을 자동으로 정답처럼 만들지 않는다10. Axiom lab: invalid inputs are not silently repaired

이 창에서는 일부러 음수나 합이 1이 아닌 네 수를 넣을 수 있습니다. 먼저 원입력 검사를 보세요. (0.25,0.25,0.25,0.25)는 유효한 확률, (1,1,1,1)은 유효한 질량이지만 확률 합계는 4, (−0.1,0.3,0.4,0.4)는 합계가 1이어도 비음성 위반입니다.

정규화 모드를 선택하면 비음수·양의 전체 질량일 때만 새 확률을 표시합니다. (1,1,1,1)을 각각 1/4로 만드는 것은 법칙을 새로 정의한 것이며 원래 네 수가 이미 확률이었다는 판정은 아닙니다. 음수 입력이나 전체 0은 정규화할 수 없습니다.

0.1+0.2+0.3+0.4는 입력 십진수를 정확한 분수로 읽으면 정확히 1입니다. 화면의 유한 소수 표시는 별도의 근삿값입니다. 공리 위반 여부를 아주 작은 표시 오차만 보고 판단하지 않도록 정확 분수를 함께 읽습니다.

This lab deliberately accepts negative entries and totals other than one. Inspect the original-input checks first. Four quarters form a probability law; (1,1,1,1) is valid mass totaling four; (−0.1,0.3,0.4,0.4) violates nonnegativity despite totaling one.

Normalization is available only for nonnegative weights with positive total. Turning four ones into four quarters defines a new law rather than certifying the original entries as probabilities. Negative entries and zero total cannot be normalized.

The original decimal strings 0.1,0.2,0.3,0.4 sum exactly to one as rational numbers. Rounded screen values are separate approximations. Use exact fractions when deciding whether an axiom holds.

기초Foundations

11. 공집합·여사건·단조성은 공리에서 따라온다11. Empty events, complements and monotonicity follow from the axioms

Ω와 ∅는 서로 겹치지 않고 합집합이 Ω입니다. 따라서 1=1+P(∅), 즉 P(∅)=0입니다. Ω=A∪Aᶜ도 서로 겹치지 않으므로 P(Aᶜ)=1−P(A)입니다. 여사건의 비음성에서 P(A)≤1도 따라옵니다.

P(∅)=0,P(Ac)=1−P(A),A⊆B⟹P(A)≤P(B)P(\varnothing)=0,\qquad P(A^c)=1-P(A),\qquad A\subseteq B\Longrightarrow P(A)\le P(B)

A⊆B이면 B=A∪(B∖A)를 서로 겹치지 않게 나눌 수 있습니다. P(B)=P(A)+P(B∖A)이고 두 번째 항이 비음수이므로 단조성이 성립합니다. 결과를 더 포함하는 사건의 확률이 더 작아질 수 없다는 뜻입니다.

거꾸로 P(A)≤P(B)라는 숫자 관계만으로 A⊆B라고 결론낼 수는 없습니다. 균등 네 이름표에서 {a}와 {b,c}는 확률이 1/4≤1/2여도 포함 관계는 아닙니다. 집합 명제와 확률 명제는 같은 정보가 아닙니다.

Disjoint Ω and ∅ have union Ω, giving 1=1+P(∅), hence P(∅)=0. Splitting Ω into A and Aᶜ gives the complement rule. Its nonnegative complement also shows P(A)≤1.

P(∅)=0,P(Ac)=1−P(A),A⊆B⟹P(A)≤P(B)P(\varnothing)=0,\qquad P(A^c)=1-P(A),\qquad A\subseteq B\Longrightarrow P(A)\le P(B)

If A⊆B, split B into disjoint A and B∖A. Their nonnegative probabilities prove monotonicity: including additional outcomes cannot reduce event probability.

The converse fails. Under four uniform tickets, {a} has probability 1/4 and {b, c} has probability 1/2, yet the first set is not a subset of the second. Numerical probability order does not determine set inclusion.

기초Foundations

12. 합집합에서는 겹친 부분을 한 번 뺀다12. Subtract the overlap once when adding a union

A와 B의 확률을 그냥 더하면 두 사건에 속한 결과를 두 번 셉니다. 합집합에서는 각 결과를 한 번만 세어야 하므로 교집합 확률을 한 번 뺍니다. 서로 겹치지 않을 때만 교집합 항이 0입니다.

P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B)

균등 네 이름표 A={a,b}, B={b,c}에서 1/2+1/2−1/4=3/4입니다. 직접 합집합 {a,b,c}를 세어도 3/4입니다. 이를 증명하려면 A∪B를 A∖B, A∩B, B∖A라는 서로 겹치지 않는 세 조각으로 나누면 됩니다.

실제 펭귄 기록에서 Gentoo 또는 210mm 이상은 (123+114−109)/342=128/342입니다. 둘 다인 109를 빼는 것은 그 기록을 합집합에서 제외하는 것이 아닙니다. 두 번 센 것을 한 번으로 고치는 과정입니다.

Adding P(A) and P(B) counts their shared outcomes twice. A union counts each outcome once, so subtract the intersection once. Disjointness makes the intersection term zero.

P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B)

For uniform A={a, b}, B={b, c}, the result is 1/2+1/2−1/4=3/4. Split the union into disjoint A∖B, A∩B and B∖A to prove the formula.

For the actual penguins, Gentoo or a flipper of at least 210 mm gives (123+114−109)/342=128/342. Subtracting 109 removes a duplicate count; it does not remove those penguins from the union.

기초Foundations

13. 정확히 하나·적어도 하나·둘 다 아님은 다르다13. Exactly one, at least one and neither are different events

“적어도 하나”는 합집합, “둘 다”는 교집합, “둘 다 아님”은 합집합의 여사건입니다. “정확히 하나”는 두 사건의 대칭차 A△B이며, 교집합을 합집합에서 뺀 것입니다.

P(A△B)=P(A)+P(B)−2P(A∩B),P((A∪B)c)=1−P(A∪B)P(A\triangle B)=P(A)+P(B)-2P(A\cap B),\qquad P((A\cup B)^c)=1-P(A\cup B)

펭귄 기록의 정확히 하나는 Gentoo이지만 짧은 14개와 Gentoo가 아니지만 긴 5개, 합계 19/342입니다. 적어도 하나는 128/342, 둘 다 아님은 214/342입니다. 세 값은 같은 또는이라는 단어로 바꾸어 쓸 수 없습니다.

여사건으로 풀면 쉬운 문제도 있습니다. 두 번 선택한 결과 중 적어도 한 번 성공할 확률은 1−P(둘 다 실패)입니다. 이 단계의 여사건 항등식에는 독립이 필요 없고, P(둘 다 실패)를 실패 확률의 제곱으로 바꾸는 단계에 독립이 필요합니다.

At least one is a union, both is an intersection, and neither is the complement of the union. Exactly one is the symmetric difference, excluding the shared part.

P(A△B)=P(A)+P(B)−2P(A∩B),P((A∪B)c)=1−P(A∪B)P(A\triangle B)=P(A)+P(B)-2P(A\cap B),\qquad P((A\cup B)^c)=1-P(A\cup B)

The actual penguin count for exactly one is 14 Gentoo with shorter flippers plus five non-Gentoo with long flippers, or 19/342. At least one gives 128/342, and neither gives 214/342.

“At least one success in two selections” equals one minus the probability of two failures, regardless of independence. Independence is needed only for a later replacement of the joint failure probability by a product.

기초Foundations

14. 주변 확률만으로 교집합을 하나로 정할 수 없다14. Marginal probabilities do not uniquely determine the intersection

P(A)=0.6, P(B)=0.5만 안다고 합집합이나 교집합이 하나로 정해지지는 않습니다. 교집합은 두 사건보다 클 수 없으므로 최대 0.5, 합집합이 1을 넘지 않아야 하므로 최소 0.1입니다.

max⁡{0,P(A)+P(B)−1}≤P(A∩B)≤min⁡{P(A),P(B)}\max\{0,P(A)+P(B)-1\}\le P(A\cap B)\le\min\{P(A),P(B)\}

교집합을 t라고 놓으면 네 칸의 확률은 t,0.6−t,0.5−t,t−0.1입니다. 네 칸이 모두 비음수인 t∈[0.1,0.5]가 전부 가능한 법칙입니다. 독립을 추가하면 t=0.3이지만, 주변 확률만으로 이 값을 강제할 수는 없습니다.

더 많은 사건에서는 합집합 확률이 각 확률의 합 이하라는 합집합 상계가 유용합니다. 겹침을 무시한 합은 보통 정확값이 아니라 상계입니다. 합이 1보다 크면 확률이 1을 넘었다는 뜻이 아니라 상계가 느슨한 것입니다.

Knowing P(A)=0.6 and P(B)=0.5 does not fix their intersection. It cannot exceed either marginal, and the union cannot exceed one. Thus it ranges from 0.1 to 0.5.

max⁡{0,P(A)+P(B)−1}≤P(A∩B)≤min⁡{P(A),P(B)}\max\{0,P(A)+P(B)-1\}\le P(A\cap B)\le\min\{P(A),P(B)\}

Writing the intersection as t gives four cells t, 0.6−t, 0.5−t, t−0.1. Every t in [0.1,0.5] gives a valid nonnegative table. Independence selects t=0.3 only after an additional assumption.

A union of several events has probability no larger than the sum of their probabilities. Ignoring overlaps generally yields an upper bound, not an exact answer. A bound above one is merely loose.

기초Foundations

15. 조건부확률은 남겨 둔 질량을 새 분모로 삼는다15. Conditional probability uses the retained mass as its denominator

조건 B가 주어지면 B에 속하지 않는 이름표는 잠시 제외합니다. B 안에서 A에도 속하는 질량이 얼마나 되는지 묻는 것이 P(A|B)입니다. 세로선 오른쪽의 조건을 먼저 읽으면 분모를 놓치지 않습니다.

P(A∣B)=P(A∩B)P(B),P(B)>0P(A\mid B)=\frac{P(A\cap B)}{P(B)},\qquad P(B)>0

균등 네 이름표 A={a,b}, B={b,c}에서는 조건 B가 b,c만 남깁니다. 남은 둘 중 A에도 들어가는 것은 b 하나이므로 1/2입니다. 전체에서 b 하나를 고를 확률 1/4와 다른 질문입니다.

식을 새로 유도해 봅시다. B 안의 전체 질량 P(B)를 1로 만들려면 모든 남은 질량을 P(B)로 나누어야 합니다. A∩B의 질량에도 같은 배율을 적용하면 위 식이 됩니다. 분모가 양수인지 확인하는 것은 계산의 부록이 아니라 정의의 일부입니다.

Given B, temporarily discard outcomes outside B. P(A|B) asks how much of the retained mass also lies in A. Read the condition to the right of the bar first.

P(A∣B)=P(A∩B)P(B),P(B)>0P(A\mid B)=\frac{P(A\cap B)}{P(B)},\qquad P(B)>0

With uniform A={a, b}, B={b, c}, conditioning retains b and c; only b belongs to A. The answer is 1/2, different from the unconditional probability 1/4 of choosing b.

To turn retained total P(B) into one, divide every retained mass by P(B). Applying this rescaling to the shared mass gives the definition. Positive conditioning probability is part of that definition.

기초Foundations

16. 조건을 걸어도 남은 이름표가 균등해지는 것은 아니다16. Conditioning does not automatically make retained tickets uniform

가중치 (1,2,3,4), A={a,b}, B={b,c}로 바꿉시다. B에 남는 질량은 b의 2와 c의 3을 합한 5이고, A∩B의 질량은 b의 2입니다. 따라서 P(A|B)=2/5입니다. 이름표가 두 개 남았다고 1/2를 쓰면 안 됩니다.

P(A∣B)=∑ωi∈A∩Bwi∑ωi∈Bwi(∑ωi∈Bwi>0)P(A\mid B)=\frac{\sum_{\omega_i\in A\cap B}w_i}{\sum_{\omega_i\in B}w_i}\qquad\left(\sum_{\omega_i\in B}w_i>0\right)

원래 전체 질량 W가 식에서 약분되기 때문에, 같은 양수 배율로 모든 가중치를 바꾸어도 조건부확률은 같습니다. 그러나 조건 사건 안의 상대 가중치를 바꾸면 값이 달라집니다.

학교 전체에서 학생 한 명을 균등하게 뽑은 뒤 특정 반에 속한다는 조건을 주면 그 반 학생끼리는 균등합니다. 반을 먼저 균등하게 고르고 반 안에서 학생을 균등하게 고르는 두 단계 방식은 반 크기가 다를 때 원래 학생 균등 방식과 다릅니다. 무엇이 균등한지 계속 적어 두세요.

For weights (1,2,3,4), A={a, b}, B={b, c}, retained mass is two plus three. Shared mass is two, so P(A|B)=2/5 rather than 1/2. Two remaining labels need not receive equal probability.

P(A∣B)=∑ωi∈A∩Bwi∑ωi∈Bwi(∑ωi∈Bwi>0)P(A\mid B)=\frac{\sum_{\omega_i\in A\cap B}w_i}{\sum_{\omega_i\in B}w_i}\qquad\left(\sum_{\omega_i\in B}w_i>0\right)

The original total mass cancels. A common positive rescaling of all weights therefore leaves conditional probabilities unchanged, while changing relative weights within B generally changes them.

Uniform selection of a student followed by conditioning on classroom membership leaves uniform students within that classroom. Selecting a classroom uniformly first is a different experiment when classrooms differ in size. Always identify what receives equal probability.

기초Foundations

17. 조건 실습: 세로선의 양쪽을 바꾸어 본다17. Conditional lab: reverse the two sides of the bar

사건 A,B와 가중치를 바꾸며 P(A|B), P(B|A), P(A∩B)를 비교합니다. 균등 가중치에서 A={a}, B={a,b,c}로 놓으면 교집합 확률은 1/4, P(A|B)=1/3, P(B|A)=1입니다.

세 숫자가 다른 이유를 원으로 외우기보다 남은 이름표로 설명하세요. B를 먼저 알면 세 개 중 하나, A를 먼저 알면 남은 a가 이미 B에 들어 있으므로 하나 중 하나입니다. 사건의 포함 방향이 역조건을 같은 값으로 만들지는 않습니다.

조건 사건을 공집합으로 만들거나, 그 안에 있는 이름표의 가중치를 모두 0으로 만들어 보세요. 비율은 —(미정의)로 표시합니다. A와 B가 동시에 공집합인 경우에도 0/0을 0이나 1로 채우지 않습니다.

Change A, B and the weights while comparing P(A|B), P(B|A) and P(A∩B). With uniform weights, A={a}, B={a, b, c}, these values are 1/3, one and 1/4 respectively.

Explain the differences using retained tickets. Given B there are three candidates, one in A. Given A, the sole retained ticket already belongs to B. Reversing the condition changes the denominator.

Make the condition empty or give all its outcomes zero weight. The ratio is marked — (undefined). Even when both events are empty, 0/0 is neither zero nor one.

기초Foundations

18. 확률 0인 조건에는 이 비율 정의를 쓰지 않는다18. The ratio definition does not apply to zero-probability conditions

P(B)=0이면 단조성으로 P(A∩B)=0입니다. 조건부확률 식은 0/0이 되어 A별 비율을 정하지 못합니다. “아무것도 남지 않았으니 A가 아닐 확률 1”처럼 임의로 결론내리면 확률 법칙과 충돌할 수 있습니다.

예를 들어 B=∅에서 모든 A에 조건부 값 0을 주면 Ω에도 0을 주게 되어 전체 확률 1을 만족하지 못합니다. 모든 A에 1을 주면 ∅에도 1을 주어 실패합니다. 이 장에서는 그런 비율을 미정의로 남깁니다.

대학원 연결에서는 확률변수에 대한 조건부분포나 정규 조건부확률을 별도로 구성하고, 영확률 입력에서의 버전을 추가 구조로 선택할 수 있습니다. 이는 0/0을 산술로 해결한 것이 아닙니다. 나무 실습의 0가지에 미리 입력하는 규칙도 이와 구별해 27절에서 다룹니다.

If P(B)=0, monotonicity also gives P(A∩B)=0. The ratio becomes 0/0 and determines no conditional law. An arbitrary declaration that nothing retained means a probability of zero does not fix the problem.

Assigning zero to every event given an empty condition would give Ω probability zero. Assigning one to every event would give ∅ probability one. Neither is a probability law.

Advanced treatments construct conditional distributions with additional structure and choose versions on null inputs. This is not arithmetic division by zero. Section 27 separately explains preselected rules on zero-mass tree branches.

기초Foundations

19. 양의 조건 안에서는 다시 확률 법칙이 된다19. A positive-probability condition creates another probability law

P(B)>0을 고정하고 Q(A)=P(A∩B)/P(B)로 정의합시다. Q는 비음수이고, Q(Ω)=P(B)/P(B)=1입니다. 서로 겹치지 않는 Aₙ에 대해서 Aₙ∩B도 서로 겹치지 않으므로 가산 가법성도 이어집니다.

Q ⁣(⋃nAn)=P(⋃n(An∩B))P(B)=∑nP(An∩B)P(B)=∑nQ(An)Q\!\left(\bigcup_nA_n\right)=\frac{P(\bigcup_n(A_n\cap B))}{P(B)}=\sum_n\frac{P(A_n\cap B)}{P(B)}=\sum_nQ(A_n)

따라서 공집합·여사건·합집합 공식도 같은 조건 B 아래에서 다시 사용할 수 있습니다. P(Aᶜ|B)=1−P(A|B)입니다. 조건을 고정한 상태에서는 전체 역할을 B가 하며, 원공간 Ω에서도 질량이 B에 집중된 확률 법칙으로 생각할 수 있습니다.

같은 식 안에서 조건을 B에서 C로 몰래 바꾸면 이 논리가 깨집니다. P(A|B)+P(Aᶜ|C)=1은 일반적으로 성립하지 않습니다. 확률을 더하기 전에 같은 실험·법칙·조건인지 확인하세요.

Fix P(B)>0 and define Q(A)=P(A∩B)/P(B). Nonnegativity is inherited, Q(Ω)=1, and disjoint Aₙ give disjoint Aₙ∩B. Countable additivity follows by division by the fixed positive denominator.

Q ⁣(⋃nAn)=P(⋃n(An∩B))P(B)=∑nP(An∩B)P(B)=∑nQ(An)Q\!\left(\bigcup_nA_n\right)=\frac{P(\bigcup_n(A_n\cap B))}{P(B)}=\sum_n\frac{P(A_n\cap B)}{P(B)}=\sum_nQ(A_n)

Complement and union rules therefore work again within the same condition: P(Aᶜ|B)=1−P(A|B). One may view Q on the original space with all mass concentrated on B.

Do not silently change conditions while adding probabilities. P(A|B)+P(Aᶜ|C)=1 generally fails. Check a common experiment, law and condition before combining values.

기초Foundations

20. 여사건을 취하는 위치도 의미를 바꾼다20. Complementing the event and complementing the condition differ

P(Aᶜ|B)는 B 안에서 A가 아닌 비율입니다. P(A|Bᶜ)는 B가 아닌 부분에서 A인 비율입니다. 1−P(A|B)는 첫 번째와 같지만 두 번째와는 보통 다릅니다.

균등 네 이름표에서 A={a,b}, B={a,b,c}이면 P(A|B)=2/3, P(Aᶜ|B)=1/3입니다. Bᶜ={d}이므로 P(A|Bᶜ)=0입니다. 1/3과 0을 같은 여사건 값으로 취급할 수 없습니다.

P(Ac∣B)=1−P(A∣B)(P(B)>0),P(A∣Bc)=P(A∩Bc)P(Bc)(P(Bc)>0)P(A^c\mid B)=1-P(A\mid B)\quad(P(B)>0),\qquad P(A\mid B^c)=\frac{P(A\cap B^c)}{P(B^c)}\quad(P(B^c)>0)

조건 사건의 확률이 1이면 그 여사건의 확률은 0입니다. 이 경우 P(A|B)는 정의되어도 P(A|Bᶜ)는 이 장의 비율로 정의되지 않습니다. 같은 화면의 두 칸에 서로 다른 정의 상태가 생길 수 있습니다.

P(Aᶜ|B) measures not-A within B. P(A|Bᶜ) measures A within not-B. The first equals 1−P(A|B); the second generally does not.

For uniform A={a, b}, B={a, b, c}, P(A|B)=2/3 and P(Aᶜ|B)=1/3. Since Bᶜ={d}, P(A|Bᶜ)=0. Complementing different sides of the bar changes the question.

P(Ac∣B)=1−P(A∣B)(P(B)>0),P(A∣Bc)=P(A∩Bc)P(Bc)(P(Bc)>0)P(A^c\mid B)=1-P(A\mid B)\quad(P(B)>0),\qquad P(A\mid B^c)=\frac{P(A\cap B^c)}{P(B^c)}\quad(P(B^c)>0)

If P(B)=1, the complementary condition has probability zero. One displayed ratio may be defined while its counterpart is undefined.

기초Foundations

21. 결합확률과 조건부확률의 분모를 함께 적는다21. Write the denominators for joint and conditional probabilities

실제 펭귄 기록의 교집합 G∩T는 109개입니다. 전체 가용 342개 이름표 중 뽑으면 109/342가 결합확률입니다. Gentoo라는 조건은 분모를 123으로, 긴 날개라는 조건은 분모를 114로 바꿉니다.

P(G∩T)=109342,P(T∣G)=109123,P(G∣T)=109114P(G\cap T)=\frac{109}{342},\qquad P(T\mid G)=\frac{109}{123},\qquad P(G\mid T)=\frac{109}{114}

확률 자체는 무차원이지만 분모에 담긴 대상은 꼭 설명해야 합니다. “31.87%가 두 조건에 해당”과 “긴 날개 중 95.61%가 Gentoo”는 동시에 맞으며 모순이 아닙니다. 어느 모집합을 100%로 놓았는지가 다릅니다.

조건부확률이 큰데 결합확률이 작은 상황도 흔합니다. 드문 집단 B 안에서 A가 대부분이어도 B 자체의 확률이 작으면 P(A∩B)는 작습니다. 확률이 크다는 말에 언제나 무엇 중에서인지를 붙이세요.

The actual intersection G∩T contains 109 records. Selecting from all 342 available tickets gives joint probability 109/342. Conditioning on Gentoo changes the denominator to 123; conditioning on long flippers changes it to 114.

P(G∩T)=109342,P(T∣G)=109123,P(G∣T)=109114P(G\cap T)=\frac{109}{342},\qquad P(T\mid G)=\frac{109}{123},\qquad P(G\mid T)=\frac{109}{114}

Probabilities are dimensionless, but the denominator’s population must still be explained. About 31.87% satisfy both conditions, while about 95.61% of long-flipper records are Gentoo. These use different reference sets.

A large conditional probability can coexist with a small joint probability when the conditioning group is rare. Always add “among which outcomes?” to a probability statement.

기초Foundations

22. 곱셈 규칙은 조건부확률의 정의를 정리한 식이다22. The multiplication rule rearranges the conditional definition

P(A)>0이면 P(B|A)=P(A∩B)/P(A)입니다. 양변에 P(A)를 곱하면 결합확률을 얻습니다. 독립을 가정하지 않은 일반적인 식입니다.

P(A∩B)=P(A)P(B∣A)(P(A)>0),P(A∩B)=P(B)P(A∣B)(P(B)>0)P(A\cap B)=P(A)P(B\mid A)\quad(P(A)>0),\qquad P(A\cap B)=P(B)P(A\mid B)\quad(P(B)>0)

펭귄에서는 (123/342)×(109/123)=109/342입니다. “먼저 Gentoo에 속하는 질량으로 간 뒤 그 안에서 긴 날개 비율을 적용한다”는 질량 분해입니다. 실제로 선택을 두 번 했다는 뜻이나 종이 날개 길이를 인과적으로 만들었다는 뜻이 아닙니다.

세 사건에서는 먼저 P(A)>0, 다음 P(A∩B)>0을 확인하면 P(A∩B∩C)=P(A)P(B|A)P(C|A∩B)로 쓸 수 있습니다. 필요한 중간 조건이 0이면 그 비율을 그대로 쓰지 말고 교집합 질량이 0임을 따로 처리합니다.

For P(A)>0, multiply the conditional definition by P(A). This gives a joint probability without assuming independence.

P(A∩B)=P(A)P(B∣A)(P(A)>0),P(A∩B)=P(B)P(A∣B)(P(B)>0)P(A\cap B)=P(A)P(B\mid A)\quad(P(A)>0),\qquad P(A\cap B)=P(B)P(A\mid B)\quad(P(B)>0)

The penguin calculation is (123/342)×(109/123)=109/342. It decomposes mass into Gentoo and the retained long-flipper share. It does not assert two physical draws or a causal intervention.

With three events, positive P(A) and P(A∩B) permit P(A∩B∩C)=P(A) P(B|A) P(C|A∩B). A zero intermediate condition requires separate zero-mass handling rather than an undefined ratio.

기초Foundations

23. 네 칸 표 실습: 모든 분모를 같은 원표에서 만든다23. Four-cell lab: derive every denominator from one joint table

네 칸 순서를 “A와 B”, “A만”, “B만”, “둘 다 아님”으로 고정합니다. 각각 n₁₁,n₁₀,n₀₁,n₀₀이라 쓰면 전체는 네 칸의 합, A는 첫 두 칸, B는 첫째와 셋째 칸입니다.

N=n11+n10+n01+n00,P(B∣A)=n11n11+n10,P(A∣B)=n11n11+n01N=n_{11}+n_{10}+n_{01}+n_{00},\quad P(B\mid A)=\frac{n_{11}}{n_{11}+n_{10}},\quad P(A\mid B)=\frac{n_{11}}{n_{11}+n_{01}}

기본 국가 표 (8,1,0,7)는 전체 16, A 9, B 8을 줍니다. 네 칸을 바꾸며 주변 합과 조건부 분모가 어떻게 함께 바뀌는지 보세요. 이 표는 임의의 가정 정수 표이며, 실제 자료를 수정한 것으로 표시하지 않습니다.

분모가 0인 조건은 미정의입니다. 전체가 0이면 비율 전체가 미정의지만, A만 0인 경우에도 전체 확률은 정의될 수 있습니다. 빈 표와 특정 빈 행을 구별하세요. 칸 상한 100000은 실습 입력 범위입니다.

Fix the cell order as both, A only, B only, neither. Write them n₁₁, n₁₀, n₀₁, n₀₀. Total count uses all four; A uses the first two; B uses the first and third.

N=n11+n10+n01+n00,P(B∣A)=n11n11+n10,P(A∣B)=n11n11+n01N=n_{11}+n_{10}+n_{01}+n_{00},\quad P(B\mid A)=\frac{n_{11}}{n_{11}+n_{10}},\quad P(A\mid B)=\frac{n_{11}}{n_{11}+n_{01}}

The initial country table (8,1,0,7) has total 16, A count nine and B count eight. Changes are hypothetical table experiments, not changes to retained actual records.

A zero conditioning denominator is undefined. A zero total makes every probability undefined, while a zero row can leave the unconditional law valid. Distinguish an empty table from a particular empty row. The cell cap of 100000 is an interface limit.

기초Foundations

24. 나무는 경로마다 곱하고 서로 다른 경로를 더한다24. A probability tree multiplies along paths and adds disjoint paths

먼저 A인지 아닌지 나누고, 각 가지 안에서 B인지 아닌지 나눕니다. P(A)=p, A가지의 B 비율 u, A가 아닌 가지의 B 비율 v를 정하면 네 잎의 질량은 pu,p(1−u),(1−p)v,(1−p)(1−v)입니다.

(p11,p10,p01,p00)=(pu, p(1−u), (1−p)v, (1−p)(1−v))(p_{11},p_{10},p_{01},p_{00})=(pu,\ p(1-u),\ (1-p)v,\ (1-p)(1-v))

p,u,v가 모두 [0,1] 안에 있으면 네 값은 비음수이고 합이 p+(1−p)=1입니다. 조건 확률의 나무와 네 칸 표는 같은 결합 법칙을 다른 방식으로 그린 것입니다. 두 번째 가지 비율을 첫 단계 확률과 그냥 더하지 않습니다.

p=0.4, u=0.8, v=0.2이면 네 값은 (0.32,0.08,0.12,0.48)입니다. B는 서로 겹치지 않는 두 경로의 합이므로 0.32+0.12=0.44입니다. 반대로 B조건 안에서 A를 물으면 0.32/0.44=8/11입니다.

First split A from not-A, then B from not-B within each branch. Choose p=P(A), branch share u for B within A and branch share v within not-A. The four leaf masses are pu, p(1−u),(1−p) v,(1−p)(1−v).

(p11,p10,p01,p00)=(pu, p(1−u), (1−p)v, (1−p)(1−v))(p_{11},p_{10},p_{01},p_{00})=(pu,\ p(1-u),\ (1-p)v,\ (1-p)(1-v))

For p, u, v in [0,1], leaf masses are nonnegative and sum to one. A tree and a four-cell table represent the same joint law. Do not add a conditional branch share directly to a first-stage probability.

With p=0.4, u=0.8, v=0.2, the leaves are (0.32,0.08,0.12,0.48). Disjoint B paths sum to 0.44. Reversing the condition gives P(A|B)=0.32/0.44=8/11.

기초Foundations

25. 나무 실습: 입력 비율과 결합 질량을 연결한다25. Tree lab: connect branch inputs to joint masses

첫 단계 p와 두 가지의 비율 u,v를 움직입니다. 먼저 기본값 0.4,0.8,0.2에서 각 잎과 표 합계를 손으로 검산하세요. 다음에는 p만 바꾸어 같은 u,v가 같은 전체 P(B)를 보장하는지 확인하세요.

화면의 네 잎은 확률이며 경로의 두 숫자를 곱한 값입니다. A/B조건 비율은 그 잎을 다시 행·열 합으로 나눈 값입니다. 입력에는 원십진 문자열을 사용하므로 0과 아주 작은 양수를 구별할 수 있습니다.

p=0 또는 p=1에서 질량 없는 가지가 생깁니다. 그 가지에 남아 있는 입력 u나 v는 미리 선택한 생성 규칙이지 결합법칙에서 나누어 얻은 조건부 비율은 아닙니다. 실제 비율은 미정의로 표시하고 입력 규칙과 따로 읽습니다.

Change p and the two branch shares u, v. Verify the default 0.4,0.8,0.2 by hand, then change p alone. Fixed branch shares need not preserve the overall P(B).

Each leaf is a product along a path. Conditional ratios divide a leaf by a relevant row or column total. Original decimal strings preserve the distinction between zero and a tiny positive value.

At p=0 or one, a branch has no mass. Its retained input u or v is a preselected generation rule, not a ratio determined by the joint law. The actual conditional ratio remains undefined.

기초Foundations

26. 전체 확률은 분할한 조각의 질량을 다시 더한다26. Total probability adds the masses of a partition

B를 A안의 부분과 A밖의 부분으로 나누면 둘은 서로 겹치지 않습니다. 그러므로 P(B)=P(B∩A)+P(B∩Aᶜ)입니다. 0<P(A)<1이면 각각 곱셈 규칙으로 바꿀 수 있습니다.

P(B)=P(B∣A)P(A)+P(B∣Ac)P(Ac)(0<P(A)<1)P(B)=P(B\mid A)P(A)+P(B\mid A^c)P(A^c)\qquad(0<P(A)<1)

일반적으로 Ω를 서로 겹치지 않는 Eⱼ로 분할하면 P(B)=ΣⱼP(B∩Eⱼ)입니다. P(Eⱼ)>0인 항은 조건부곱으로 쓸 수 있습니다. 확률 0인 조각은 교집합 질량도 0이므로 비율 없이 0항으로 처리합니다.

두 집단 비율을 그냥 평균내면 집단 질량을 무시하게 됩니다. 80%와 20%를 평균한 50%와 기본 나무의 전체 44%가 다른 이유는 집단 가중치가 40%와 60%이기 때문입니다. 전체 확률은 가중평균이라는 점을 읽으세요.

Split B into disjoint parts inside and outside A. Their masses add. When 0< P(A)< 1, apply the multiplication rule to both parts.

P(B)=P(B∣A)P(A)+P(B∣Ac)P(Ac)(0<P(A)<1)P(B)=P(B\mid A)P(A)+P(B\mid A^c)P(A^c)\qquad(0<P(A)<1)

For a finite or countable partition Eⱼ, P(B)=ΣⱼP(B∩Eⱼ). Positive-mass pieces can use conditional products. A zero-mass piece contributes zero joint mass without requiring a conditional ratio.

Simply averaging branch percentages ignores group masses. The unweighted mean of 80% and 20% is 50%, but the default tree gives 44% because group weights are 40% and 60%. Total probability is a weighted average.

기초Foundations

27. 확률 0인 가지의 입력은 선택한 커널값이다27. A zero-mass branch input is a chosen kernel value

p=0, u=0.8, v=0.2를 넣으면 네 잎은 (0,0,0.2,0.8)입니다. u를 0.1이나 0.9로 바꾸어도 잎은 바뀌지 않습니다. 질량 0에 곱한 값은 언제나 0이라 결합법칙이 그 가지 규칙을 식별하지 못합니다.

따라서 “입력 u=0.8이므로 P(B|A)=0.8이 관찰되었다”라고 쓰면 안 됩니다. 실습은 미리 선택한 커널값 u와 실제 비율 P(A∩B)/P(A)=0/0의 미정의를 함께 보여 줍니다. 양의 가지에서는 입력 커널과 비율이 일치합니다.

p=0⟹(pu,p(1−u),(1−p)v,(1−p)(1−v))=(0,0,v,1−v)for every u∈[0,1]p=0\Longrightarrow(pu,p(1-u),(1-p)v,(1-p)(1-v))=(0,0,v,1-v)\quad\text{for every }u\in[0,1]

이는 수리기초 24장의 영질량 조건 블록에서 조건부기대의 버전을 임의로 정해도 전체 적분이 바뀌지 않는다는 내용과 연결됩니다. 특정 버전을 선택하는 일과 결합질량으로 그 값을 알아내는 일은 다릅니다.

For p=0, u=0.8, v=0.2, leaves are (0,0,0.2,0.8). Changing u does not change the joint law. Multiplication by zero prevents the joint masses from identifying that branch rule.

Do not report the entered u as an observed conditional ratio. The lab separates a chosen kernel value from the undefined ratio 0/0. On positive-mass branches, the entered rule and the ratio agree.

p=0⟹(pu,p(1−u),(1−p)v,(1−p)(1−v))=(0,0,v,1−v)for every u∈[0,1]p=0\Longrightarrow(pu,p(1-u),(1-p)v,(1-p)(1-v))=(0,0,v,1-v)\quad\text{for every }u\in[0,1]

This connects to versions of conditional expectations on null blocks in Mathematical Foundations 24. Choosing a version differs from identifying it from joint mass.

기초Foundations

28. 독립은 정보를 주어도 확률이 바뀌지 않는 구조다28. Independence describes a joint law that does not update the marginal

사건 A와 B의 독립은 P(A∩B)=P(A)P(B)로 정의합니다. 이 정의는 확률 0인 사건에도 그대로 적용됩니다. P(B)>0일 때만 이를 P(A|B)=P(A)로 바꿀 수 있습니다.

A⊥B⟺P(A∩B)=P(A)P(B),[A⊥B, P(B)>0]⟹P(A∣B)=P(A)A\perp B\quad\Longleftrightarrow\quad P(A\cap B)=P(A)P(B),\qquad [A\perp B,\ P(B)>0]\Longrightarrow P(A\mid B)=P(A)

균등 네 이름표 A={a,b}, B={b,c}에서는 교집합 1/4와 주변 곱 (1/2)(1/2)가 같아 독립입니다. 같은 두 집합에 가중치 (1,1,1,7)을 주면 교집합 1/10, 주변 곱 1/25여서 독립이 아닙니다. 독립은 집합 모양만이 아니라 확률 법칙에도 달려 있습니다.

실습의 독립 판정은 고정된 정확 네 칸 법칙의 등식 검사입니다. 실제 기록 표에서 같거나 다르다는 사실을 모든 미래 개체의 독립성 검정으로 곧바로 바꾸지는 않습니다. 통계적 검정과 모집단 가정은 뒤에서 다룹니다.

Define independence by P(A∩B)=P(A) P(B), which remains meaningful for zero-probability events. Rewriting it as P(A|B)=P(A) requires P(B)>0.

A⊥B⟺P(A∩B)=P(A)P(B),[A⊥B, P(B)>0]⟹P(A∣B)=P(A)A\perp B\quad\Longleftrightarrow\quad P(A\cap B)=P(A)P(B),\qquad [A\perp B,\ P(B)>0]\Longrightarrow P(A\mid B)=P(A)

Under uniform four-ticket weights, A={a, b} and B={b, c} are independent: both the intersection and marginal product equal 1/4. With weights (1,1,1,7), these become 1/10 and 1/25. Independence depends on the probability law as well as the subsets.

The lab checks equality in the stated exact finite law. This is not automatically a population independence test for future observations. Statistical testing requires additional modeling.

기초Foundations

29. 서로 배반과 독립은 반대 의미처럼 보일 수도 있다29. Disjointness and independence answer different questions

배반은 A∩B=∅라는 집합 관계입니다. 둘이 동시에 일어날 수 없다는 뜻입니다. 두 사건의 확률이 모두 양수라면 교집합 0과 주변 곱 양수가 다르므로 독립일 수 없습니다.

A∩B=∅, P(A)>0, P(B)>0⟹P(A∩B)=0<P(A)P(B)A\cap B=\varnothing,\ P(A)>0,\ P(B)>0\Longrightarrow P(A\cap B)=0<P(A)P(B)

공정한 주사위에서 A={1},B={2}는 배반입니다. A가 나왔다는 정보는 B의 가능성을 1/6에서 0으로 바꾸므로 독립이 아닙니다. 독립을 “서로 관련 없어 보인다”는 일상어로만 기억하면 이 차이를 놓칩니다.

확률 0인 사건은 모든 사건과 독립입니다. P(A)=0이면 교집합도 0이라 정의가 성립합니다. 그러나 다른 사건과 집합적으로 반드시 배반인 것은 아닙니다. 36절의 연속공간 예에서는 확률 0인 비어 있지 않은 사건이 있습니다.

Disjointness is the set relation A∩B=∅: the events cannot occur together. If both have positive probability, their zero intersection differs from their positive marginal product, so they are not independent.

A∩B=∅, P(A)>0, P(B)>0⟹P(A∩B)=0<P(A)P(B)A\cap B=\varnothing,\ P(A)>0,\ P(B)>0\Longrightarrow P(A\cap B)=0<P(A)P(B)

On a fair die, {1} and {2} are disjoint. Learning that the first event occurred changes the second probability from 1/6 to zero. Everyday “unrelated” language is unreliable here.

A probability-zero event is independent of every event by the product definition, but it need not be set-theoretically disjoint from them. Section 36 supplies a nonempty null event.

선택 심화Optional extension

30. 둘씩 독립이라고 셋이 함께 독립인 것은 아니다30. Pairwise independence does not imply mutual independence

두 공정한 독립 동전의 네 결과 HH,HT,TH,TT를 균등하게 놓습니다. A는 첫 동전 앞면, B는 둘째 동전 앞면, C는 두 동전이 같은 면입니다. 각 사건의 확률은 1/2이고 둘씩 교집합은 모두 HH 하나, 확률 1/4입니다.

P(A∩B)=P(A∩C)=P(B∩C)=14,P(A∩B∩C)=14≠18P(A\cap B)=P(A\cap C)=P(B\cap C)=\frac14,\qquad P(A\cap B\cap C)=\frac14\ne\frac18

따라서 셋은 둘씩 독립이지만 상호 독립은 아닙니다. 상호 독립은 둘만 아니라 세 개, 더 일반적으로 모든 유한 부분모음의 교집합이 해당 주변 확률들의 곱과 같아야 합니다.

이 예는 소프트웨어가 상관행렬이나 사건쌍만 검사했다고 전체 독립을 인증할 수 없다는 경고이기도 합니다. 첫 읽기에서는 HH 한 결과가 셋의 교집합을 모두 담당한다는 점을 직접 확인하면 충분합니다.

Use four uniform outcomes HH, HT, TH, TT from two fair independent tosses. Let A be first-heads, B second-heads and C equal faces. All three marginals equal 1/2; every pair intersects only at HH, with probability 1/4.

P(A∩B)=P(A∩C)=P(B∩C)=14,P(A∩B∩C)=14≠18P(A\cap B)=P(A\cap C)=P(B\cap C)=\frac14,\qquad P(A\cap B\cap C)=\frac14\ne\frac18

The events are pairwise independent but not mutually independent. Mutual independence also requires the product rule for every finite subcollection, including the triple.

Checking pairwise relations or a correlation matrix therefore cannot certify full independence. Beginners can verify this example directly by listing its four outcomes.

선택 심화Optional extension

31. 조건을 추가하면 독립이 사라질 수 있다31. Conditioning can create dependence

앞 절의 A,B는 독립이지만 C가 주어지면 HH와 TT만 남습니다. 그 안에서 P(A|C)=P(B|C)=1/2이고 P(A∩B|C)=1/2입니다. 주변 곱 1/4와 달라 조건 C 아래에서는 독립이 아닙니다.

P(A∩B∣C)=12≠14=P(A∣C)P(B∣C)P(A\cap B\mid C)=\frac12\ne\frac14=P(A\mid C)P(B\mid C)

조건부독립은 양의 조건 C 아래에서 위 두 값이 같은지로 정의할 수 있습니다. “원래 독립”과 “특정 조건 안에서 독립”은 별개의 명제입니다. 모든 변수를 통제하면 언제나 더 정확한 인과 답을 얻는다는 규칙도 없습니다.

실제 자료에서 특정 집단만 선택하거나 결측이 없는 기록만 남기는 작업도 조건을 추가하는 것입니다. 그 선택이 관계를 바꿀 수 있음을 기록하세요. 이 동전 예는 순수한 확률 구조의 반례이며 국가·기업 자료의 인과 경로를 입증한 사례는 아닙니다.

A and B above are independent, but given C only HH and TT remain. Both conditional marginals equal 1/2, while their conditional intersection is 1/2 rather than the product 1/4.

P(A∩B∣C)=12≠14=P(A∣C)P(B∣C)P(A\cap B\mid C)=\frac12\ne\frac14=P(A\mid C)P(B\mid C)

Conditional independence under a positive-probability C compares these conditional quantities. Marginal and conditional independence are different claims. Adding controls does not universally improve causal identification.

Restricting records to a group or to complete observations also adds conditions and can change relationships. This coin counterexample demonstrates probability structure; it does not establish a causal pathway in the actual country or company data.

기초Foundations

32. 복원 여부가 두 번째 선택의 조건부확률을 바꾼다32. Replacement changes the second selection’s conditional law

빨간 공 2개와 파란 공 1개에 서로 다른 이름표를 붙이고 균등하게 하나씩 두 번 고릅니다. 뽑은 공을 되넣고 매번 독립적으로 섞으면 두 번 모두 빨강일 확률은 (2/3)(2/3)=4/9입니다.

되넣지 않으면 첫 빨강 뒤 남은 두 개 중 빨강은 하나입니다. 두 번 모두 빨강은 (2/3)(1/2)=1/3입니다. 곱셈 규칙은 양쪽에 모두 맞지만 두 번째 조건부 비율이 다릅니다.

P(R1∩R2)=P(R1)P(R2∣R1),P(R2∣R1)={2/3independent replacement1/2without replacementP(R_1\cap R_2)=P(R_1)P(R_2\mid R_1),\qquad P(R_2\mid R_1)=\begin{cases}2/3&\text{independent replacement}\\1/2&\text{without replacement}\end{cases}

복원 추출이라고 해서 기계적으로 독립이 보장되는 것은 아닙니다. 여기서는 두 번의 선택을 독립적으로 균등하게 정의했습니다. 되넣어도 선택 장치가 이전 결과에 따라 달라지면 독립 가정은 별도입니다. 추출 절차를 먼저 적는 이유입니다.

Give distinct labels to two red balls and one blue ball. For two uniform selections with replacement and independent randomization, two reds have probability (2/3)(2/3)=4/9.

Without replacement, a first red leaves one red among two balls. The joint probability becomes (2/3)(1/2)=1/3. The multiplication rule holds in both experiments; the conditional factor changes.

P(R1∩R2)=P(R1)P(R2∣R1),P(R2∣R1)={2/3independent replacement1/2without replacementP(R_1\cap R_2)=P(R_1)P(R_2\mid R_1),\qquad P(R_2\mid R_1)=\begin{cases}2/3&\text{independent replacement}\\1/2&\text{without replacement}\end{cases}

Physical replacement alone does not logically guarantee independence. The experiment explicitly specifies independent uniform randomization. A mechanism reacting to previous outcomes would require another law.

기초Foundations

33. 기록의 비율·확률 법칙·미래 예측을 나누어 말한다33. Separate recorded proportions, probability laws and future predictions

고정 342개 이름표를 균등하게 뽑는 실험에서는 긴 날개의 확률이 정확히 114/342입니다. 이것은 정의한 유한 법칙의 값입니다. 그 수를 자연의 모든 펭귄이 긴 날개일 확률로 옮기려면 표집·개체·시기·지역·결측에 관한 가정이 추가됩니다.

같은 법칙으로 독립 반복 선택한 빈도가 확률 근처로 모인다는 큰수의 법칙은 뒤 과목에서 다룹니다. 유한 번의 관찰에서 비율이 반드시 확률과 같아진다는 말은 아닙니다. 결과가 몇 번 한쪽으로 몰렸다는 이유만으로 다음 결과가 반대일 확률이 커지는 것도 아닙니다.

예컨대 독립 공정 동전이 다섯 번 앞면이었다면 다음 뒷면 확률은 여전히 1/2입니다. 이는 독립 공정 모형 안의 결론입니다. 실제 동전 장치가 공정한지 자료로 의심하는 질문은 모형 검토이며 다른 단계입니다.

In uniform selection from 342 fixed tickets, long-flipper probability is exactly 114/342. Transporting it to all natural penguins requires additional sampling, timing, location and missingness assumptions.

A later law of large numbers addresses frequencies from repeated independent selections under a fixed law. It does not force finite frequencies to equal probabilities. A recent run also does not automatically make the opposite result more likely next.

Under an independent fair-coin model, five heads leave next-tail probability at 1/2. Questioning whether an actual device follows that model is a separate model-checking task.

선택 심화Optional extension

34. 증가·감소 사건의 극한은 가산 공리와 연결된다34. Limits of increasing and decreasing events use countable additivity

A₁⊆A₂⊆…처럼 사건이 커지면 새로 들어온 조각 D₁=A₁,Dₙ=Aₙ∖Aₙ₋₁은 서로 겹치지 않습니다. Aₙ의 확률은 첫 n개 조각의 합, 합집합의 확률은 무한 합이므로 확률의 극한과 합집합이 연결됩니다.

An↑A=⋃nAn⟹P(An)↑P(A),Bn↓B=⋂nBn⟹P(Bn)↓P(B)A_n\uparrow A=\bigcup_nA_n\Longrightarrow P(A_n)\uparrow P(A),\qquad B_n\downarrow B=\bigcap_nB_n\Longrightarrow P(B_n)\downarrow P(B)

감소 사건은 여사건 Aₙ=Bₙᶜ를 증가 사건으로 바꾸면 증명됩니다. 확률은 전체 질량이 1로 유한하기 때문에 이 단계가 안전합니다. 일반 측도에서 감소 연속성을 쓰려면 첫 사건의 측도가 유한하다는 조건이 필요할 수 있습니다.

균등 [0,1] 모형에서 Bₙ=[0,1/n]은 {0}으로 감소하며 P(Bₙ)=1/n→0입니다. 따라서 한 점의 확률은 0입니다. 유한 이름표 그림에서 성립하는 계산을 무한 공간으로 옮길 때 왜 가산 공리를 명시하는지 보여 주는 연결입니다.

For increasing events A₁⊆A₂⊆…, define disjoint new pieces D₁=A₁ and Dₙ=Aₙ∖Aₙ₋₁. Finite partial sums give P(Aₙ), while countable additivity gives the probability of their union.

An↑A=⋃nAn⟹P(An)↑P(A),Bn↓B=⋂nBn⟹P(Bn)↓P(B)A_n\uparrow A=\bigcup_nA_n\Longrightarrow P(A_n)\uparrow P(A),\qquad B_n\downarrow B=\bigcap_nB_n\Longrightarrow P(B_n)\downarrow P(B)

Take complements to prove the decreasing statement. Probability has finite total mass one; a general measure needs an appropriate finiteness condition for continuity from above.

In a uniform [0,1] model, Bₙ=[0,1/n] decreases to {0}, while its probability 1/n tends to zero. This links singleton probabilities to countable axioms rather than just finite ticket arithmetic.

선택 심화Optional extension

35. 무한히 많은 정수에 같은 양의 확률을 줄 수는 없다35. Countably infinite integers cannot all have the same probability

양의 정수 1,2,…에 모두 같은 확률 c를 주려 합시다. c>0이면 충분히 많은 앞부분 합이 1을 넘고, c=0이면 가산 가법성으로 전체 합이 0입니다. 따라서 양의 정수 전체에서 균등하게 하나 고른다는 확률 법칙은 이 조건으로 만들 수 없습니다.

pn=2−n (n≥1),∑n=1Npn=1−2−N,∑n=1∞pn=1p_n=2^{-n}\ (n\ge1),\qquad \sum_{n=1}^{N}p_n=1-2^{-N},\qquad \sum_{n=1}^{\infty}p_n=1

균등은 불가능해도 유효한 비균등 법칙은 있습니다. pₙ=2⁻ⁿ이면 앞부분 합은 등비급수로 1−2⁻ᴺ이고 전체 합은 1입니다. 사건 “3 이상”의 확률은 1−1/2−1/4=1/4입니다.

이 모형의 n은 실제 관찰한 무한 자료가 아니라 가능한 결과의 목록입니다. 컴퓨터가 첫 20개만 표시하면 남은 꼬리 질량 2⁻²⁰을 함께 설명해야 합니다. 표시된 수를 다시 1로 만들면 원법칙이 아니라 20 이하라는 조건을 건 새 법칙이 됩니다.

Suppose every positive integer receives the same probability c. If c> 0, a sufficiently long finite partial sum exceeds one. If c=0, countable additivity makes the total zero. No such uniform probability law exists on all positive integers.

pn=2−n (n≥1),∑n=1Npn=1−2−N,∑n=1∞pn=1p_n=2^{-n}\ (n\ge1),\qquad \sum_{n=1}^{N}p_n=1-2^{-N},\qquad \sum_{n=1}^{\infty}p_n=1

A valid nonuniform law assigns pₙ=2⁻ⁿ. Geometric partial sums approach one, and P(n≥3)=1/4.

This is a possible-outcome model, not an actually observed infinite dataset. A display of only the first twenty values omits tail mass 2⁻²⁰. Renormalizing that display defines a conditional law given n≤20.

선택 심화Optional extension

36. 확률 0과 집합이 비어 있음은 일반적으로 다르다36. Probability zero and an empty event are different concepts

균등 [0,1] 모형은 구간의 확률을 길이로 줍니다. 한 점 {1/2}은 길이가 0이지만 비어 있지 않습니다. 연속공간에서는 실제로 선택된 특정 값 하나도 각각 확률 0인 한 점일 수 있습니다.

모든 한 점이 0이라고 전체가 0인 것은 아닙니다. [0,1]의 점들은 비가산개이며, 확률 공리는 임의의 비가산 합집합에 질량을 단순 합하라고 하지 않습니다. 반면 유리수처럼 가산개인 점들의 합집합은 확률 0입니다.

P({x})=0(x∈[0,1]),P(Q∩[0,1])=0,P([0,1])=1P(\{x\})=0\quad(x\in[0,1]),\qquad P(\mathbb Q\cap[0,1])=0,\qquad P([0,1])=1

유한 표본공간에서도 어떤 이름표에 가중치 0을 주면 비어 있지 않은 영확률 사건이 생깁니다. 모든 원자 확률이 양수인 유한 법칙에서만 확률 0과 공집합이 일치합니다. 영확률 조건을 비율로 나눌 수 없는 이유와 집합적으로 불가능한지의 질문을 나누세요.

Uniform probability on [0,1] assigns interval length as mass. A singleton such as {1/2} is nonempty but has probability zero. Each particular realized value can be a null singleton in a continuous model.

The whole interval is not a countable collection of points. Countable additivity does not authorize a sum over an arbitrary uncountable union. By contrast, the rational points form a countable null set.

P({x})=0(x∈[0,1]),P(Q∩[0,1])=0,P([0,1])=1P(\{x\})=0\quad(x\in[0,1]),\qquad P(\mathbb Q\cap[0,1])=0,\qquad P([0,1])=1

A finite space with zero-weight labels also has nonempty null events. Null and empty coincide only when every atom in a finite space has positive probability. Keep this distinction separate from the undefined ratio for a null condition.

선택 심화Optional extension

37. 정확한 0·아주 작은 양수·화면의 0을 구별한다37. Distinguish exact zero, tiny positive mass and displayed zero

원입력 p=10⁻⁴⁰⁰은 정확히 양수입니다. 보통 binary64 숫자 표시로는 0으로 내려갈 수 있지만 수학적으로 P(A)=0인 상황은 아닙니다. 이 장의 나무 실습 계산은 입력 십진 문자열을 정수 분수로 보존해 조건 분모가 정확히 0인지 판정합니다.

u=0.8, v=0.2라면 p가 이 작은 양수여도 P(B|A)=4/5입니다. 반대로 p가 정확히 0이면 같은 칸은 미정의입니다. 화면 표시가 0으로 내려간 상태와 원분자의 정확한 0 여부를 구별합니다.

원소수의 정확성은 측정의 무한 정확성을 뜻하지 않습니다. 실제 보고서의 반올림 GDP나 길이값을 분수로 읽는 것은 기록된 수치의 재현입니다. 생물학적 측정오차까지 없애는 작업은 아닙니다. 매우 드문 조건은 작은 원질량 변화에 비율이 민감할 수도 있어 분모와 원자료 정밀도를 함께 보고합니다.

The original decimal p=10⁻⁴⁰⁰ is positive, although binary 64 display may underflow to zero. The tree calculation preserves its decimal string as an integer fraction and tests the exact denominator for zero.

With u=0.8, v=0.2, this tiny positive p still gives P(B|A)=4/5. Exact p=0 instead gives an undefined ratio. A zero screen display and an exactly zero numerator are different states.

Exact representation of a reported decimal does not remove measurement uncertainty. It reproduces recorded values, not infinitely precise biological measurements. Rare conditions can also make ratios sensitive to small mass changes, so report denominators and data precision.

기초Foundations

38. 국가 사례: 높은 GDP와 기대수명의 사건을 만든다38. Country example: define GDPpc and life-expectancy events

보관한 World Bank 2024년 16개국 기록을 하나씩 균등하게 선택합니다. A는 1인당 실질 GDP가 30000 불변2015USD/명 이상, B는 출생시 기대수명이 80년 이상입니다. 문턱은 수업에서 정의한 것이며 공식 고소득국 분류가 아닙니다.

네 칸은 (8,1,0,7), 따라서 P(A)=9/16, P(B)=8/16, P(A∩B)=8/16입니다. B인 여덟 나라가 모두 A에도 속하므로 P(A|B)=1입니다. 그러나 A인 아홉 나라 중 하나는 B가 아니므로 P(B|A)=8/9입니다.

P(A∪B)=916,P(B∣A)=89,P(A∣B)=1,P(A∩B)≠P(A)P(B)P(A\cup B)=\frac9{16},\qquad P(B\mid A)=\frac89,\qquad P(A\mid B)=1,\qquad P(A\cap B)\ne P(A)P(B)

이 결과는 선택된 16개국의 균등 이름표 법칙에 관한 것입니다. 세계 모든 나라나 모든 주민의 비율이 아니며, GDP를 올리면 기대수명이 인과적으로 80년을 넘는다는 주장도 아닙니다. 기대수명은 기간 사망률 구조를 요약한 지표이며 특정 개인의 보장 수명이 아닙니다.

Select uniformly among sixteen retained World Bank country records for 2024. Let A mean real GDP per person at least 30000 constant 2015 USD, and B mean life expectancy at birth at least eighty years. These are teaching thresholds rather than official income classifications.

The cells are (8,1,0,7), giving P(A)=9/16, P(B)=8/16 and intersection 8/16. All eight B countries also satisfy A, so P(A|B)=1. One of nine A countries fails B, giving P(B|A)=8/9.

P(A∪B)=916,P(B∣A)=89,P(A∣B)=1,P(A∩B)≠P(A)P(B)P(A\cup B)=\frac9{16},\qquad P(B\mid A)=\frac89,\qquad P(A\mid B)=1,\qquad P(A\cap B)\ne P(A)P(B)

The law concerns the selected sixteen country tickets, not all countries or residents. It supplies no causal GDP intervention effect. Period life expectancy summarizes mortality conditions rather than guaranteeing an individual lifespan.

기초Foundations

39. 개체 사례: 긴 날개라는 조건의 분모를 감사한다39. Individual-record example: audit the long-flipper denominator

Palmer Penguins 원자료 344개 기록 중 날개 길이 결측 두 개를 0으로 채우지 않고, 길이가 있는 342개에 조건을 겁니다. G는 Gentoo, T는 날개 길이 210mm 이상입니다. 네 칸 (109,14,5,214)의 합은 342입니다.

P(T|G)=109/123은 Gentoo 안에서 긴 날개의 비율, P(G|T)=109/114는 긴 날개 안에서 Gentoo의 비율입니다. 서로 반대 조건을 같은 분류 정확도로 부르면 안 됩니다. 원자료 밖 검증 없이 후자를 새 야생 개체의 예측 성능이라고 보고하지 않습니다.

P(T)=13,P(G∪T)=128342,P(G△T)=19342,P(T∣Gc)=5219P(T)=\frac13,\quad P(G\cup T)=\frac{128}{342},\quad P(G\triangle T)=\frac{19}{342},\quad P(T\mid G^c)=\frac5{219}

결측 두 기록을 짧은 날개로 취급하면 조건 사건과 분모가 달라집니다. sex가 이 질문에 필요하지 않으므로 sex 결측 때문에 333개로 줄이지도 않습니다. 실제 포함 규칙은 사용 변수·문턱·결측 처리와 함께 저장합니다.

Among 344 source records, two flipper measurements are missing. Do not fill them with zero; define selection among 342 available records. Let G mean Gentoo and T mean flipper length at least 210 mm. Cells (109,14,5,214) sum to 342.

P(T|G)=109/123 describes long flippers within Gentoo, while P(G|T)=109/114 describes Gentoo within long flippers. These are different conditional quantities. Neither is validated out-of-sample predictive performance by itself.

P(T)=13,P(G∪T)=128342,P(G△T)=19342,P(T∣Gc)=5219P(T)=\frac13,\quad P(G\cup T)=\frac{128}{342},\quad P(G\triangle T)=\frac{19}{342},\quad P(T\mid G^c)=\frac5{219}

Treating missing records as short flippers would change the experiment. Sex is not required here, so do not additionally reduce the set to 333 records. Save the required variables, threshold and inclusion rule.

기초Foundations

40. 기업 사례: 품목 균등과 매출 가중은 다른 확률이다40. Company example: uniform categories and sales weighting define different laws

Apple 공시의 다섯 순매출 품목을 고릅니다. H는 하드웨어 네 품목, I는 FY2024 명목 연간 순매출이 FY2023보다 증가한 품목입니다. 증가는 iPhone, Mac, Services이고, 하드웨어이면서 증가는 앞 두 품목입니다. 균등 품목 네 칸은 (2,2,1,0)입니다.

균등 선택에서는 P(I|H)=2/4=1/2입니다. FY2024 매출을 선택 가중치로 쓰면 H∩I의 질량은 201183+29984=231167, H의 질량은 294866이므로 조건부 값은 231167/294866≈0.783973입니다. 품목 수가 같아도 품목들의 매출 크기는 다릅니다.

Puniform(I∣H)=12,Psales(I∣H)=231167294866,Psales(I)=327336391035P_{\rm uniform}(I\mid H)=\frac12,\qquad P_{\rm sales}(I\mid H)=\frac{231167}{294866},\qquad P_{\rm sales}(I)=\frac{327336}{391035}

단위는 두 해 모두 백만 명목 USD이며 확률에서는 약분됩니다. FY2023은 53주, FY2024는 52주이므로 이 사건은 공시 연간값의 증가이지 동일 주수 성장률 판정이 아닙니다. 매출 비중 선택은 구매 고객·거래 건수·물리적 제품 수의 관측 확률을 제공하지 않습니다.

Use five Apple net-sales categories. H denotes the four hardware categories; I denotes an increase in reported nominal annual sales from FY2023 to FY2024. iPhone, Mac and Services increased, giving uniform-category cells (2,2,1,0).

Uniform selection gives P(I|H)=2/4=1/2. Under FY2024 sales weighting, shared mass is 201183+29984=231167 and hardware mass is 294866, so the conditional value is about 0.783973. Category counts and category sales masses are different denominators.

Puniform(I∣H)=12,Psales(I∣H)=231167294866,Psales(I)=327336391035P_{\rm uniform}(I\mid H)=\frac12,\qquad P_{\rm sales}(I\mid H)=\frac{231167}{294866},\qquad P_{\rm sales}(I)=\frac{327336}{391035}

Currency units are millions of nominal USD and cancel in probability ratios. FY2023 has 53 weeks and FY2024 has 52, so this is reported annual increase rather than equal-week growth. Sales weighting does not observe customer, transaction or physical-unit probabilities.

기초Foundations

41. 실제 자료 실습: 법칙을 바꾸되 원자료는 보존한다41. Actual-data lab: change the law while preserving the records

국가·펭귄·기업을 차례로 선택하고 사건 이름, 네 칸 원기록 수, 선택 가중치, 결합확률과 양방향 조건부확률을 함께 읽습니다. 기업에서만 균등과 FY2024 매출 가중을 전환합니다. 국가와 펭귄의 이 실습은 지정한 균등 기록 법칙을 유지합니다.

먼저 P(B|A)의 분모를 네 칸에서 직접 찾아 설명하고, 다음에는 P(A|B)를 계산하세요. 독립 등식 P(A∩B)=P(A)P(B)도 정확 분수로 확인합니다. 화면 판정은 정의한 유한 법칙에 대한 것이며 모집단 가설 검정 결과로 표시하지 않습니다.

기업의 가중 법칙을 바꾸어도 원기록 수 (2,2,1,0)는 그대로입니다. 바뀌는 것은 각 칸의 확률 질량입니다. 실제 원수치·자료 출처·법칙 이름을 함께 남기면 다른 사람이 같은 질문을 재현할 수 있습니다.

Select country, penguin and company examples. Read event labels, record counts, selection weights, joint probabilities and both conditional directions. Only the company example switches between uniform and FY2024 sales-weighted selection.

Identify the denominator of P(B|A) directly from the four cells, then reverse the condition. Check the independence identity using exact fractions. This is a statement about the defined finite law, not a population hypothesis test.

Changing company weights leaves record counts (2,2,1,0) unchanged while changing cell masses. Preserve actual values, provenance and the selection-law name for reproduction.

기초Foundations

42. 확률 문장을 쓰기 전에 여덟 항목을 확인한다42. Audit eight ingredients before reporting a probability

① 무엇을 한 번 고르는가, ② Ω와 사건은 무엇인가, ③ 어떤 법칙이 질량을 주는가, ④ 결측·기간·단위는 무엇인가를 적습니다. 다음으로 ⑤ 결합인지 조건인지, ⑥ 조건의 확률이 양수인지, ⑦ 독립을 가정했는지 계산했는지, ⑧ 원기록 밖으로 어떤 일반화를 하는지 확인합니다.

“긴 날개면 95.6% Gentoo” 대신 “가용 342개 기록에서 균등 선택하고 날개 210mm 이상이라는 조건 아래 109/114가 Gentoo”라고 쓰면 질문이 분명합니다. 설명이 길다면 표 머리말에 분모와 법칙을 두고 본문은 간결하게 유지할 수 있습니다.

다음 장에서는 조건을 거꾸로 읽는 Bayes 공식과 기저율 문제를 더 깊이 다룹니다. 이번 장의 네 칸 표와 조건부 정의가 그 선수입니다. 아직 배운 적 없는 공식을 끌어오지 않고도 오늘의 실제 조건부 비율은 모두 계산할 수 있습니다.

Record: the selected unit; Ω and the events; the mass-assignment law; missingness, period and units. Then check joint versus conditional meaning, positive conditioning probability, assumed versus calculated independence, and any generalization beyond the records.

“Among uniformly selected available records with flipper length at least 210 mm, 109/114 are Gentoo” is more reproducible than an unlabeled percentage. A table heading can carry the law and denominator.

The next chapter develops Bayes’ rule and base rates. This chapter’s joint tables and conditional definition provide its prerequisites; no later formula is needed to compute the present examples.

기초Foundations

43. 국가·개체·기업의 상세 케이스 스터디43. Detailed country, individual-record and company case studies

국가 사례 · 조건이 바뀌면 분모도 달라진다

앞 장에서 사용한 2024년 실제 16개 국가 지표를 그대로 가져옵니다. 이번에는 “이 16개 국가 이름표 중 하나를 같은 확률로 뽑는다”는 학습 실험을 정의합니다. 세계의 사람 한 명을 뽑는 실험이 아니며, 선택 국가들이 세계를 대표한다는 가정도 넣지 않습니다. 원자료는 고정되어 있고 무작위성은 우리가 정의한 이름표 선택에 있습니다.

사건 A는 GDP/명이 30,000 이상, 사건 B는 출생 시 기대수명이 80년 이상인 국가가 뽑히는 것입니다. GDP 단위는 2015년 가격의 USD/명입니다. 두 기준은 이 장에서 고른 연습용 임계값이며 공식 소득 분류나 정책의 성공·실패 기준이 아닙니다. 기대수명은 시점별 사망률 패턴으로 계산한 집단 지표로 개인의 미래 수명이 아닙니다.

실제 국가 지표에서 사건 이름표 붙이기
국가GDP/명 (2015 USD/명)기대수명 (년)A: GDP≥30,000B: 기대수명≥80
AUS61,486.3883.051예예
BRA9,566.7576.023아니요아니요
CAN45,061.3982.108예예
CHN13,119.1178.017아니요아니요
DEU44,027.7680.793예예
FRA39,683.4082.980예예
GBR47,900.9781.387예예
IDN4,367.9571.288아니요아니요
IND2,366.8372.235아니요아니요
JPN37,976.6484.036예예
KOR37,048.4383.629예예
MEX10,284.0375.264아니요아니요
SGP68,129.7083.346예예
USA66,856.5178.890예아니요
VNM4,012.5174.736아니요아니요
ZAF5,715.4866.312아니요아니요

1. 네 칸으로 나누면 겹침을 두 번 세지 않는다

같은 16개 국가를 서로 겹치지 않는 네 칸으로 분할
사건이름표 수선택 확률
A∩B88/16
A∩Bᶜ11/16
Aᶜ∩B00/16
Aᶜ∩Bᶜ77/16
전체161
P(A)=916,P(B)=816,P(A∩B)=816,P(A∪B)=916+816−816=916P(A)=\frac9{16},\quad P(B)=\frac8{16},\quad P(A\cap B)=\frac8{16},\qquad P(A\cup B)=\frac9{16}+\frac8{16}-\frac8{16}=\frac9{16}

“또는”은 둘 다 해당하는 경우까지 포함합니다. 9개와 8개를 그냥 더하면 둘 다 해당하는 8개를 두 번 세므로 겹침을 한 번 빼야 합니다. 이 고정 자료에서는 B에 속한 국가가 모두 A에도 속하므로 B⊂A입니다. 다른 국가·연도까지 이 포함 관계가 성립한다고 결론 내리지는 않습니다.

2. 조건은 남겨 둘 이름표를 정한다

“A에 해당하는 국가가 뽑혔다”는 정보를 받으면 16개 전체가 아니라 A 안의 9개 이름표만 남겨 봅니다. 그중 B에도 해당하는 것은 8개입니다. 남은 9개 안에서 선택 확률의 합이 다시 1이 되도록 나누는 것이 조건부확률입니다.

P(B∣A)=P(A∩B)P(A)=8/169/16=89,P(A∣B)=8/168/16=1P(B\mid A)=\frac{P(A\cap B)}{P(A)}=\frac{8/16}{9/16}=\frac89,\qquad P(A\mid B)=\frac{8/16}{8/16}=1
먼저 생각한 뒤 풀이 보기: A도 B도 아닌 확률과, A가 아닐 때 B일 확률은 같은가요?

서로 다릅니다. 둘 다 아닌 확률 P(Aᶜ∩Bᶜ)=7/16입니다. A가 아닌 국가 7개 안에서 B인 국가 수는 0이므로 P(B|Aᶜ)=0/7=0입니다. 첫 식의 분모는 전체 16, 두 번째는 조건에 남은 7입니다. 사건을 문장으로 먼저 읽으면 분모를 찾기 쉽습니다.

먼저 생각한 뒤 풀이 보기: P(B|A)가 크면 GDP를 올리는 정책의 수명 효과인가요?

이 실험은 같은 자료를 고른 조건별로 나눈 계산입니다. GDP를 바꾸는 개입이나 시간에 따른 정책 효과를 측정하지 않았습니다. 조건부확률을 인과효과로 읽으려면 추가 설계와 가정이 필요합니다.

먼저 생각한 뒤 풀이 보기: “GDP<0인 국가”를 조건으로 정하면 어떤가요?

선택한 16개 지표에는 해당 국가가 없으므로 이 실험에서 그 조건의 확률은 0입니다. 정의식은 0으로 나누게 되어 사용할 수 없습니다. “해당 없음”과 조건부확률 0은 다릅니다. 이 장에서는 분모가 양수인 조건만 계산합니다.

자료: World Bank · 실제 2024년 국가 지표 · 실제 값·사건·선택 가중치 CSV

출생 시 기대수명 공식 정의 · SP.DYN.LE00.IN

개체 사례 · “날개가 길 때 Gentoo”와 “Gentoo의 날개가 길다”

Palmer 자료의 실제 펭귄 관측을 사용합니다. 원본은 344행이지만 날개 길이가 빈 행 4·272를 0으로 바꾸지 않고 CSV에 보존합니다. 이번 선택 실험은 날개 길이가 기록된 342행 중 하나를 균등하게 고르는 것입니다. 모든 펭귄이 아니라 이 유효 기록 집합 안의 확률을 계산합니다. row_id는 행을 찾는 번호이며 독립 표집을 증명하는 개체 추적 번호가 아닙니다.

G는 실제 종이 Gentoo인 사건, T는 기록된 날개 길이가 210 mm 이상인 사건입니다. 210이라는 기준은 설명을 위해 선택했으며 생물학적 종 판별의 공식 기준이나 검증된 예측 규칙이 아닙니다. 종은 실제 기록을 사용하고 날개 길이만으로 새 종 이름을 만들어 넣지 않습니다.

실제 342개 유효 기록의 2×2 표
기록된 종T: 날개≥210 mmTᶜ: 날개<210 mm합계
G: Gentoo10914123
Gᶜ: 다른 두 종5214219
합계114228342
P(G∩T)=109342,P(T)=114342,P(G)=123342P(G\cap T)=\frac{109}{342},\quad P(T)=\frac{114}{342},\quad P(G)=\frac{123}{342}

1. 분자 109가 같아도 질문은 다르다

P(G∣T)=109114≈0.956140,P(T∣G)=109123≈0.886179P(G\mid T)=\frac{109}{114}\approx0.956140,\qquad P(T\mid G)=\frac{109}{123}\approx0.886179

첫 질문은 긴 날개를 가진 114개 기록 안에서 Gentoo가 몇 개인지 묻습니다. 두 번째는 Gentoo 123개 안에서 긴 날개가 몇 개인지 묻습니다. 둘 다 겹치는 109개를 세지만 남겨 놓은 집합이 다릅니다. 먼저 표에서 분모의 행 또는 열을 손가락으로 짚어 본 뒤 나눠 보세요.

먼저 생각한 뒤 풀이 보기: 긴 날개인 기록에 조건을 걸었을 때 다른 두 종일 확률은?
P(Gc∣T)=5114,109114+5114=1P(G^c\mid T)=\frac5{114},\qquad \frac{109}{114}+\frac5{114}=1

조건 T를 만족하는 열 안에서 두 종 집단이 겹치지 않고 전체를 채웁니다. 기존 전체 분모 342를 유지하면 두 조건부확률의 합이 1이 되지 않습니다.

먼저 생각한 뒤 풀이 보기: Gentoo 또는 긴 날개일 확률을 123/342+114/342로 계산해도 되나요?
P(G∪T)=123+114−109342=128342=64171P(G\cup T)=\frac{123+114-109}{342}=\frac{128}{342}=\frac{64}{171}

Gentoo이면서 긴 날개인 109개를 두 번 더했으므로 한 번 빼야 합니다. “둘 중 정확히 하나”라면 겹침을 포함하지 않아 (14+5)/342=19/342입니다. 일상어 “또는”의 뜻부터 구별합니다.

먼저 생각한 뒤 풀이 보기: 342를 344로 바꾸면 조금 더 보수적인 계산인가요?

아닙니다. 분석 대상과 사건 정의가 바뀝니다. 두 빈 날개 값을 210 미만이라고 알 수 없으므로 T 여부를 임의로 붙이지 않습니다. 알려진 자료에서 조건을 건 실험은 342가 분모입니다. 결측이 있는 전체 기록이나 더 넓은 생물 집단으로 일반화하려면 관측 가능성과 선택 과정을 추가로 살펴야 합니다.

먼저 생각한 뒤 풀이 보기: 두 기록을 연속해서 고르면 두 번의 선택은 자동으로 독립인가요?

선택 절차를 먼저 정해야 합니다. 매번 342개 중 균등하게 독립 재추첨하는 가정과, 한 번 뽑은 행을 빼고 341개 중 다시 뽑는 가정은 다릅니다. 두 위치의 주변확률이 같아도 독립인 것은 아닙니다. 이 장의 표는 한 번 선택에 대한 것이며 여러 번 선택의 독립성을 자료 파일 자체에서 읽어 낸 것은 아닙니다. 다음 장에서 이 차이를 이어 봅니다.

자료: Horst·Hill·Gorman / Palmer LTER · 실제 종·날개 길이 (CC0) · 실제 값·사건·선택 가중치 CSV

기업 사례 · 품목 하나를 뽑는 것과 매출 비중으로 뽑는 것

Apple 공시의 같은 다섯 품목을 사용합니다. FY2023은 53주, FY2024는 52주이며 단위는 백만 명목 USD의 순매출입니다. 이 표는 한 기업의 품목 집계로 거래별 구매 금액·고객 수·판매 개수 자료가 아닙니다. 따라서 “고객이 서비스를 살 확률”을 직접 계산할 수는 없습니다.

실제 공시 값에 두 사건을 표시
품목FY2023 순매출FY2024 순매출H: 하드웨어I: 명목 연간 매출 증가
iPhone200,583201,183예예
Mac29,35729,984예예
iPad28,30026,694예아니요
웨어러블·홈·액세서리39,84537,005예아니요
서비스85,20096,169아니요예

H는 네 하드웨어 품목 중 하나, I는 FY2024 순매출이 FY2023보다 큰 품목입니다. 서비스·iPhone·Mac은 I에 들어가고 iPad·웨어러블 등은 들어가지 않습니다. 주수가 다른 명목 연간 집계의 단순 비교이며, 주당 성장·이익 증가·물량 증가를 뜻하지 않습니다.

1. 실험 U: 다섯 품목 이름표를 같은 확률로 선택

PU(H)=45,PU(I)=35,PU(H∩I)=25,PU(H∣I)=23P_U(H)=\frac45,\quad P_U(I)=\frac35,\quad P_U(H\cap I)=\frac25,\quad P_U(H\mid I)=\frac23

증가한 세 품목 중 하드웨어는 iPhone·Mac 두 개입니다. 이 실험에서는 서비스도 iPhone도 각각 1/5의 선택 확률입니다. 실제 매출 크기가 같다는 뜻은 아니며 이름표를 균등하게 고른다는 뜻입니다.

2. 실험 W: FY2024 공시 매출 비중을 선택 가중치로 지정

PW({j})=Sj,2024∑kSk,2024,∑kSk,2024=391035 million USDP_W(\{j\})=\frac{S_{j,2024}}{\sum_k S_{k,2024}},\qquad \sum_k S_{k,2024}=391035\ {\rm million\ USD}

가중치의 분자와 분모에는 같은 통화 단위가 있으므로 나눈 확률은 무차원입니다. 이 선택 법칙은 실제 공시 집계를 재료로 정의한 수학적 실험이며, 실제 고객·영수증을 관찰해 얻은 구매 확률이 아닙니다. 품목 수가 아니라 선택 가중치의 합으로 조건부확률을 계산합니다.

동일한 실제 다섯 품목, 서로 다른 선택 확률
품목균등 품목 선택 U매출 가중 선택 W
iPhone1/567061/130345 ≈ 0.514488
Mac1/529984/391035 ≈ 0.076679
iPad1/58898/130345 ≈ 0.068265
웨어러블·홈·액세서리1/52467/26069 ≈ 0.094633
서비스1/596169/391035 ≈ 0.245935
PW(H∣I)=201183+29984201183+29984+96169=231167327336≈0.706207078P_W(H\mid I)=\frac{201183+29984}{201183+29984+96169}=\frac{231167}{327336}\approx0.706207078
먼저 생각한 뒤 풀이 보기: 같은 표인데 2/3과 231167/327336 중 어느 쪽이 맞나요?

각자 정의한 실험에서는 둘 다 맞습니다. U는 품목 이름표를 같은 확률로, W는 FY2024 매출 비중으로 고릅니다. 같은 사건 이름을 쓰더라도 확률 법칙이 다르면 답이 달라집니다. “무엇을 어떤 확률로 뽑는가?”를 표와 계산 앞에 적어야 비교가 가능합니다.

먼저 생각한 뒤 풀이 보기: 관측 빈도로 세어 계산하는 n(A)/n(Ω)가 항상 맞는 공식인가요?

유한 표본공간에서 모든 이름표가 같은 확률일 때 맞습니다. 가중 선택 W에서는 사건 안 가중치들의 합을 써야 합니다. 서비스 한 품목의 가중치는 1/5가 아니라 96,169/391,035입니다. “행 수를 나눈다”와 “확률 질량을 더한다”를 구별합니다.

먼저 생각한 뒤 풀이 보기: 서비스와 하드웨어는 겹치지 않으니 확률도 독립인가요?

서비스와 하드웨어는 이 분류에서 동시에 일어날 수 없는 서로 배반인 사건입니다. 독립은 다른 조건이 붙어도 확률이 어떻게 달라지는지에 대한 별도 개념이며 다음 장에서 정의합니다. “서로 다른 이름”이나 “겹치지 않음”을 독립이라는 말로 바꾸지 않습니다.

먼저 생각한 뒤 풀이 보기: 비율 0.706207078을 70.6207078%로 바꾸면 자료의 단위가 바뀌나요?

표현만 바뀝니다. 1을 100%로 쓰는 방식이며 통화 단위가 생기지 않습니다. 공시 값이 반올림된 백만 USD라는 한계는 남지만, 보관한 공시 숫자에 대한 분수 계산은 정확히 재현할 수 있습니다.

자료: SEC EDGAR · 실제 Apple 순매출 품목 표 · 실제 값·사건·선택 가중치 CSV

네 칸 교차표·선택 가중치 CSV · 사건·조건부확률의 정확한 분수 계산 CSV · 출처·가공·해시 기록

Country case · Changing the condition changes the denominator

Keep the same actual 2024 indicators for sixteen countries. Define a classroom experiment: select one of these sixteen country-name tickets uniformly. This is not a random resident of the world, and the selected countries are not assumed to represent all countries. The records are fixed; randomness comes from the specified ticket selection.

Event A means selecting a country with GDP/person at least 30000; B means life expectancy at birth at least 80 years. GDP uses constant 2015 USD/person. These thresholds are chosen teaching rules, not official income classifications or policy success criteria. Life expectancy is a population indicator calculated from period mortality patterns, not a forecast of one person’s future lifespan.

Attach event labels to actual national indicators
CountryGDP/person (2015 USD/person)Life expectancy (years)A: GDP≥30000B: life expectancy≥80
AUS61,486.3883.051YesYes
BRA9,566.7576.023NoNo
CAN45,061.3982.108YesYes
CHN13,119.1178.017NoNo
DEU44,027.7680.793YesYes
FRA39,683.4082.980YesYes
GBR47,900.9781.387YesYes
IDN4,367.9571.288NoNo
IND2,366.8372.235NoNo
JPN37,976.6484.036YesYes
KOR37,048.4383.629YesYes
MEX10,284.0375.264NoNo
SGP68,129.7083.346YesYes
USA66,856.5178.890YesNo
VNM4,012.5174.736NoNo
ZAF5,715.4866.312NoNo

1. Four disjoint cells prevent double counting

Partition the same sixteen tickets into disjoint cells
EventTicketsSelection probability
A∩B88/16
A∩Bᶜ11/16
Aᶜ∩B00/16
Aᶜ∩Bᶜ77/16
Total161
P(A)=916,P(B)=816,P(A∩B)=816,P(A∪B)=916+816−816=916P(A)=\frac9{16},\quad P(B)=\frac8{16},\quad P(A\cap B)=\frac8{16},\qquad P(A\cup B)=\frac9{16}+\frac8{16}-\frac8{16}=\frac9{16}

“Or” includes outcomes in both events. Adding 9 and 8 counts the shared 8 twice, so subtract the overlap once. All B countries happen to belong to A in this fixed snapshot: B⊂A. This does not establish the same inclusion for other countries or years.

2. A condition specifies which tickets remain

If told that A occurred, retain its nine tickets rather than all sixteen. Eight of those nine also satisfy B. Conditional probability divides by the retained probability mass so that probabilities in the conditioned experiment again sum to one.

P(B∣A)=P(A∩B)P(A)=8/169/16=89,P(A∣B)=8/168/16=1P(B\mid A)=\frac{P(A\cap B)}{P(A)}=\frac{8/16}{9/16}=\frac89,\qquad P(A\mid B)=\frac{8/16}{8/16}=1
Think first, then reveal: Is the probability of neither A nor B the same as B given not A?

No. P(Aᶜ∩Bᶜ)=7/16 uses all sixteen tickets. Among seven not-A countries, none satisfies B, so P(B|Aᶜ)=0/7=0. Read the event in words before deciding which denominator applies.

Think first, then reveal: Does large P(B|A) measure a policy effect from raising GDP?

This calculation partitions fixed records by observed conditions. It does not measure an intervention on GDP or a policy effect over time. Reading a conditional association as causation requires further design and assumptions.

Think first, then reveal: What if the condition is selecting a country with GDP below zero?

No retained country satisfies it, so that conditioning event has probability zero in this experiment. The elementary conditional formula would divide by zero and cannot be used. An undefined conditional probability differs from probability zero. We calculate only positive-probability conditions here.

Source: World Bank · actual 2024 national indicators · Actual values, events and selection weights CSV

Official life-expectancy definition · SP.DYN.LE00.IN

Individual-organism case · Gentoo given a long flipper versus a long flipper given Gentoo

Use actual Palmer penguin records. Retain all 344 source rows in the CSV, including missing flipper measurements in rows 4 and 272. Do not replace them with zero. The experiment uniformly selects one of 342 records with an available flipper measurement. Its probabilities concern that fixed valid-record set, not all penguins. Added row IDs locate records; they do not certify independent sampling or supply original tracking identities.

G means the recorded species is Gentoo; T means recorded flipper length is at least 210 mm. The threshold is selected for instruction, not an official biological species definition or a validated prediction rule. Species labels come from actual records rather than being invented from flipper lengths.

Actual 2×2 table of 342 valid records
Recorded speciesT: flipper≥210 mmTᶜ: flipper<210 mmTotal
G: Gentoo10914123
Gᶜ: other two species5214219
Total114228342
P(G∩T)=109342,P(T)=114342,P(G)=123342P(G\cap T)=\frac{109}{342},\quad P(T)=\frac{114}{342},\quad P(G)=\frac{123}{342}

1. The same numerator can answer different questions

P(G∣T)=109114≈0.956140,P(T∣G)=109123≈0.886179P(G\mid T)=\frac{109}{114}\approx0.956140,\qquad P(T\mid G)=\frac{109}{123}\approx0.886179

The first question counts Gentoo among 114 long-flipper records. The second counts long flippers among 123 Gentoo records. Both count the same overlap of 109, but retain different sets. Point to the conditioning row or column in the table before dividing.

Think first, then reveal: Given a long flipper, what is the probability of another species?
P(Gc∣T)=5114,109114+5114=1P(G^c\mid T)=\frac5{114},\qquad \frac{109}{114}+\frac5{114}=1

The two species groups are disjoint and exhaust the conditioned T column. Keeping the old denominator of 342 would prevent these conditional probabilities from summing to one.

Think first, then reveal: May Gentoo or a long flipper be calculated as 123/342+114/342?
P(G∪T)=123+114−109342=128342=64171P(G\cup T)=\frac{123+114-109}{342}=\frac{128}{342}=\frac{64}{171}

Subtract the 109 overlapping records counted twice. “Exactly one” instead excludes the overlap and has probability (14+5)/342=19/342. Clarify the meaning of “or” first.

Think first, then reveal: Would changing 342 to 344 simply make the calculation more conservative?

No. It changes the target experiment. Neither missing flipper measurement is known to be below 210, so do not assign its T status. Uniform selection conditional on an available flipper measurement uses 342 records. Generalization to all retained records or a wider biological population requires an account of missingness and selection.

Think first, then reveal: If two records are selected in sequence, are both selections automatically independent?

Specify the selection procedure. Independent uniform redrawing from all 342 records differs from removing the first ticket and drawing from 341. Equal marginal probabilities at the two positions do not establish independence. Our table describes one selection; it does not infer independence of repeated sampling from the data file. The next chapter develops this distinction.

Source: Horst, Hill, Gorman / Palmer LTER · actual species and flippers (CC0) · Actual values, events and selection weights CSV

Company case · Uniform category selection differs from sales-weighted selection

Retain Apple’s same five disclosed categories. FY2023 spans 53 weeks and FY2024 52 weeks; net sales use million nominal USD. These are category aggregates for one company, not transaction amounts, customer counts or unit sales. They do not directly identify a customer’s probability of purchasing a service.

Attach two events to actual disclosed values
CategoryFY2023 net salesFY2024 net salesH: hardwareI: annual nominal sales increased
iPhone200,583201,183YesYes
Mac29,35729,984YesYes
iPad28,30026,694YesNo
Wearables, Home and Accessories39,84537,005YesNo
Services85,20096,169NoYes

H means one of the four hardware categories; I means FY2024 net sales exceed FY2023. Services, iPhone and Mac satisfy I; iPad and Wearables do not. This compares nominal annual totals across unequal fiscal weeks, not weekly growth, profit growth or growth in physical units.

1. Experiment U: select one of five category tickets uniformly

PU(H)=45,PU(I)=35,PU(H∩I)=25,PU(H∣I)=23P_U(H)=\frac45,\quad P_U(I)=\frac35,\quad P_U(H\cap I)=\frac25,\quad P_U(H\mid I)=\frac23

Two of the three increased categories are hardware: iPhone and Mac. Services and iPhone each receive selection probability 1/5 in this experiment. Their actual sales are not claimed equal; their category tickets are selected equally.

2. Experiment W: assign FY2024 sales shares as selection weights

PW({j})=Sj,2024∑kSk,2024,∑kSk,2024=391035 million USDP_W(\{j\})=\frac{S_{j,2024}}{\sum_k S_{k,2024}},\qquad \sum_k S_{k,2024}=391035\ {\rm million\ USD}

Matching currency units cancel in the ratio, leaving a dimensionless probability. This is an explicitly defined mathematical selection law using actual disclosed aggregates, not a purchase probability observed from customer receipts. Conditional probabilities sum weights rather than merely count categories.

Same actual categories, different selection probabilities
CategoryUniform USales-weighted W
iPhone1/567061/130345 ≈ 0.514488
Mac1/529984/391035 ≈ 0.076679
iPad1/58898/130345 ≈ 0.068265
Wearables, Home and Accessories1/52467/26069 ≈ 0.094633
Services1/596169/391035 ≈ 0.245935
PW(H∣I)=201183+29984201183+29984+96169=231167327336≈0.706207078P_W(H\mid I)=\frac{201183+29984}{201183+29984+96169}=\frac{231167}{327336}\approx0.706207078
Think first, then reveal: Which answer is correct: 2/3 or 231167/327336?

Both are correct for their specified experiments. U selects category tickets uniformly; W uses FY2024 sales shares. The same event labels can have different probabilities under different selection laws. State what is selected and how before comparing answers.

Think first, then reveal: Is the counting formula n(A)/n(Ω) always correct?

It applies to a finite outcome space with equally likely tickets. Under W, sum the assigned weights inside the event. Services has mass 96169/391035 rather than 1/5. Counting rows and adding probability mass are different operations.

Think first, then reveal: Since Services and hardware do not overlap, are they independent?

They are mutually exclusive under this classification: both cannot occur on one selection. Independence is a separate condition on how probabilities behave under information, defined in the next chapter. Different labels or disjoint sets do not automatically imply independence.

Think first, then reveal: Does expressing 0.706207078 as 70.6207078% change the data’s units?

It changes only the probability notation: one is written as 100%. No currency unit reappears. Disclosed million-USD values retain their reporting precision, while exact fractions reproduce calculations on the retained reported numbers.

Source: SEC EDGAR · actual Apple net-sales category table · Actual values, events and selection weights CSV

Four-cell tables and assigned masses CSV · Exact event and conditional calculations CSV · Sources, processing and hashes

기초Foundations

44. 영상·학자·참고 읽기를 계산과 연결한다44. Connect videos, thinkers and further reading to calculations

본문 아래 공식 영상은 이 페이지 안에서 재생하도록 구성합니다. 시청 전 “또는은 둘 다를 포함하는가”를 답하고, 시청 후 실제 펭귄 합집합 128/342와 정확히 하나 19/342를 비교하세요. 영상의 그림이 모든 실제 자료의 선택 법칙까지 정해 주는 것은 아닙니다.

콜모고로프의 공리 체계 소개는 서로 다른 실험을 같은 수학 규칙으로 다룬다는 역사적 연결입니다. 인물의 권위가 실제 확률 수치를 대신 검증하는 것은 아닙니다. 논리는 공리·가정·증명, 실제 값은 원자료·분모·검산으로 확인합니다.

MIT 18.05 Reading 2의 이산 표본공간·가중치·사건 연산과 Reading 3의 조건부 정의·곱셈 규칙을 읽습니다. 연속공간에도 확률측도는 존재하며 점질량 함수와 밀도는 별개라는 점을 유지하세요. 전체 확률의 조건부곱은 양의 분할 질량에 쓰고 영질량 조각은 교집합 0항으로 처리합니다. Bayes와 추론의 확장은 다음 장에서 이어 갑니다.

Python · R · 원자료·단위·가공·출처

The official video is intended to play within this page. Before viewing, decide whether “or” includes both. Afterwards compare the actual penguin union 128/342 with exactly-one probability 19/342. A visual diagram does not choose every actual selection law.

Kolmogorov’s axiomatic work supplies historical context for shared mathematical rules. A thinker’s authority does not validate empirical probability values. Use assumptions and proof for logic, and source values, denominators and reproduction for calculations.

Read MIT 18.05 Reading 2 on discrete spaces, weights and event operations, then Reading 3 on conditional probability and multiplication. Continuous spaces also have probability measures; atomic mass functions and densities are distinct representations. Use conditional products only on positive-mass partition pieces, treating null pieces through zero joint mass. Bayes and inference continue in the next chapter.

Python · R · Inputs, units, transformations and sources

Python·R 코드 실행 방법Run the Python/R companions

자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.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.

python stat04-reproduce.py
Rscript --vanilla --encoding=UTF-8 stat04-reproduce.R

결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. 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.

확률 규칙과 조건을 그림으로 읽기Probability rules and conditions

CrashCourse · Statistics 13

본문에서 공식 영상을 보며 합집합·교집합·조건을 구별합니다. 국가 표에서 같은 8개를 왜 한 번 빼는지 먼저 설명해 보세요.Watch the official video in this chapter and distinguish union, intersection and conditioning. Explain why the country table subtracts its shared eight once.

교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.

보고 읽은 뒤 답하기Respond after watching/reading 또는과 정확히 하나는 같은가요?Does “or” mean exactly one?

생각을 점검하는 해설Check your reasoning

확률의 합집합은 둘 다 해당하는 경우도 포함합니다. 정확히 하나는 교집합을 제외하므로 펭귄 표에서 128/342와 19/342로 다릅니다.Union includes outcomes in both events. Exactly one excludes the intersection, giving 128/342 versus 19/342 in the penguin table.

콜모고로프 · 공통 규칙으로 확률 계산하기Andrey Kolmogorov: shared rules for probability

University of St Andrews · MacTutor

대학 소개에서 콜모고로프(1903–1987)와 1933년 확률 공리 체계의 역사적 맥락을 읽습니다. 서로 다른 선택 실험도 비음성·전체 1·가산 가법성의 공통 규칙을 만족해야 합니다.Read the university account of Kolmogorov (1903–1987) and his 1933 axiomatic probability work. Different experiments still obey nonnegativity, total mass one and countable additivity.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 공리만 알면 실제 고객의 구매 확률도 자동으로 알게 되나요?Do the axioms alone determine real customer purchase probabilities?

생각을 점검하는 해설Check your reasoning

공리는 허용되는 확률 계산의 규칙을 줍니다. 어떤 실험·선택 법칙이 현실 질문에 맞는지는 자료와 별도 가정으로 정해야 합니다.Axioms constrain valid probability calculations. Choosing a law that matches a real question requires data and separately stated assumptions.

표본공간·사건·유한 선택 가중치Outcome spaces, events and finite selection weights

MIT OCW 18.05 · Reading 2

§2.1·2.3·2.4·3의 이산 표본공간·가중치·여사건·합집합을 읽습니다. 이름표가 같은 확률일 때와 아닐 때를 Apple의 두 실험에 연결합니다.Read §§2.1, 2.3, 2.4 and 3 on discrete outcomes, weights, complements and unions. Connect equally and unequally weighted tickets to Apple’s two experiments.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 매출 크기가 달라도 균등 품목 추첨을 정의할 수 있나요?Can categories be sampled uniformly despite unequal sales?

생각을 점검하는 해설Check your reasoning

가능합니다. 이름표 선택 법칙을 균등하게 정한 실험이며, 실제 매출이 같다고 주장하는 것이 아닙니다.Yes. Uniformity specifies the category-ticket experiment; it does not claim that actual sales are equal.

조건으로 남은 질량을 다시 1로 만들기Renormalize retained mass after conditioning

MIT OCW 18.05 · Reading 3, §§2–3

이번에는 §2·3의 조건부확률 정의와 곱셈 규칙만 읽습니다. 조건의 확률이 양수인지 확인하고 실제 네 칸 표로 식을 검산합니다.Read only §§2–3 on conditional probability and multiplication for this chapter. Check positive conditioning probability, then verify formulas with actual four-cell tables.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading P(A∩B)=P(B|A)P(A)는 독립일 때만 맞나요?Does P(A∩B)=P(B|A)P(A) require independence?

생각을 점검하는 해설Check your reasoning

P(A)>0이면 조건부확률 정의를 정리한 식이라 일반적으로 맞습니다. P(B|A)를 P(B)로 바꾸려면 독립 조건이 따로 필요합니다.For P(A)>0 it follows directly from the conditional definition. Replacing P(B|A) with P(B) requires a separate independence condition.

연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof

먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.

1. 결과와 사건Outcome versus event

Ω={a,b,c,d}, A={a,b}입니다. a, A, ∅, Ω의 역할과 A가 발생하는 결과를 쓰세요.

For Ω={a, b, c, d} and A={a, b}, identify the roles of a, A,∅,Ω and when A occurs.

풀이와 확인할 이유Solution and explanation

a는 결과, A는 사건, ∅는 불가능 사건, Ω는 확실 사건입니다. a나 b를 선택하면 A가 발생합니다. A라는 집합 자체를 한 번 뽑힌 결과 a와 구별합니다.

a is an outcome; A is an event; ∅ is impossible and Ω certain. A occurs at a or b. The subset A is distinct from the realized label a.

2. 두 동전의 순서Ordered tosses

독립 공정 동전 두 번의 순서 있는 네 결과와 정확히 한 번 앞면인 사건·확률을 쓰세요.

List the four ordered outcomes of two independent fair tosses, and find exactly-one-head probability.

풀이와 확인할 이유Solution and explanation

Ω={HH,HT,TH,TT}이고 사건은 {HT,TH}입니다. 독립 공정 가정에서 네 결과가 각각 1/4이므로 확률은 2/4=1/2입니다. HT와 TH를 합쳐 하나로 세면 균등 기본결과를 잃습니다.

Ω={HH, HT, TH, TT}; the event is {HT, TH}. Each ordered outcome has mass 1/4, giving 1/2. Combining HT and TH into one equally weighted label would change the law.

3. 주사위 합의 균등 오류Dice sums are not uniform

두 독립 공정 주사위의 합 2와 합 7의 확률을 각각 구하고 1/11이라는 답을 고치세요.

For two independent fair dice, find probabilities of sums two and seven and explain why 1/11 is wrong.

풀이와 확인할 이유Solution and explanation

36개 균등 순서쌍에서 합 2는 (1,1) 하나로 1/36, 합 7은 여섯 쌍으로 1/6입니다. 가능한 합이 11가지라고 그 합들이 균등한 것은 아닙니다.

Among 36 uniform ordered pairs, sum two has one pair and sum seven six. Their probabilities are 1/36 and 1/6. Eleven possible sum values do not have equal masses.

4. 집합 연산Set operations

Ω={a,b,c,d}, A={a,b}, B={b,c}에서 교집합·합집합·A여사건·A만·정확히 하나를 쓰세요.

For Ω={a, b, c, d}, A={a, b}, B={b, c}, list intersection, union, complement of A, A only and exactly one.

풀이와 확인할 이유Solution and explanation

각각 {b},{a,b,c},{c,d},{a},{a,c}입니다. 정확히 하나에는 공통인 b가 없지만 합집합에는 있습니다. 여사건은 명시한 Ω 안에서 만듭니다.

They are {b}, {a, b, c}, {c, d}, {a}, and {a, c}. The overlap b belongs to the union but not to exactly one. Complements use the stated Ω.

5. 드모르간 직접 검산Check De Morgan directly

Ω={a,b,c,d}, A={a,b}, B={b,c}에서 (A∪B)ᶜ=Aᶜ∩Bᶜ를 확인하세요.

For Ω={a, b, c, d}, A={a, b}, B={b, c}, verify (A∪B)ᶜ=Aᶜ∩Bᶜ.

풀이와 확인할 이유Solution and explanation

A∪B={a,b,c}의 여사건은 {d}입니다. Aᶜ={c,d}, Bᶜ={a,d}의 교집합도 {d}입니다. 양쪽 모두 두 사건 어디에도 들어가지 않는 결과를 가리킵니다.

The union is {a, b, c}, whose complement is {d}. Intersecting {c, d} and {a, d} also gives {d}. Both describe neither event.

6. 가중 법칙의 확률Weighted event probabilities

a,b,c,d의 가중치가 (1,2,3,4)이고 A={a,b}, B={b,c}입니다. P(A),P(B),교집합·합집합을 구하세요.

With weights (1,2,3,4) on a, b, c, d and A={a, b}, B={b, c}, find their probabilities, intersection and union.

풀이와 확인할 이유Solution and explanation

전체 질량 10입니다. A는 3/10, B는 5/10=1/2, 교집합 b는 2/10=1/5, 합집합 a,b,c는 6/10=3/5입니다. 3/10+1/2−1/5=3/5로도 확인합니다.

Total mass is ten. The values are 3/10, 1/2, 1/5 and 3/5. Inclusion–exclusion gives 3/10+1/2−1/5=3/5.

7. 공통 배율Common rescaling

가중치 (1,2,3,4)를 (1000,2000,3000,4000)으로 바꾸면 모든 사건 확률이 같은 이유를 보이세요.

Why do weights (1,2,3,4) and (1000,2000,3000,4000) give identical probabilities for every event?

풀이와 확인할 이유Solution and explanation

각 사건의 질량 합과 전체 질량이 모두 1000배입니다. 비율에서 1000이 약분됩니다. 이름표 하나만 1000배로 바꾸는 연산에는 이 결론이 적용되지 않습니다.

Both event mass and total mass are multiplied by 1000, which cancels. Rescaling only one label does not have this property.

8. 합계만 맞는 입력A total of one is insufficient

(−0.1,0.3,0.4,0.4)는 합계가 1입니다. 확률 법칙인지와 정규화가 해결책인지 판단하세요.

The entries (−0.1,0.3,0.4,0.4) total one. Are they a probability law, and can normalization fix them?

풀이와 확인할 이유Solution and explanation

첫 원자 확률이 음수라 비음성 공리를 위반합니다. 합계가 이미 1이어도 유효하지 않습니다. 정규화로 음수를 없앨 수 없으며 임의 절댓값·잘라내기는 다른 법칙을 만드는 수정입니다.

No: one atomic mass is negative. Normalization cannot remove that violation. Taking absolute values or clipping defines a different law and needs explicit justification.

9. 영질량Zero total mass

가중치가 (0,0,0,0)이면 유효한 측도인지, 확률과 조건부 비율은 정의되는지 쓰세요.

For weights (0,0,0,0), distinguish a measure, a probability law and normalized conditional ratios.

풀이와 확인할 이유Solution and explanation

비음수이고 가법적인 영측도입니다. 그러나 전체 질량은 0이므로 확률측도가 아니며 전체로 나누어 정규화할 수 없습니다. 사건 확률과 조건부 비율을 0으로 채우지 않고 미정의로 남깁니다.

These define the additive zero measure. They do not define a probability measure because total mass is zero. Normalization and conditional ratios are undefined, not zero-filled.

10. 별도 정규화Explicit normalization

입력 (1,1,2,6)의 원확률 검사와 정규화 결과를 구분하세요.

Distinguish raw-input validity and normalized results for (1,1,2,6).

풀이와 확인할 이유Solution and explanation

원합은 10이어서 그대로는 확률이 아닙니다. 비음수·양의 총질량이므로 새 법칙 (1/10,1/10,1/5,3/5)을 정의할 수 있습니다. 원입력이 유효한 확률이었다는 판정과는 다릅니다.

The original total is ten, so the entries are not probabilities as given. Nonnegative positive-total weights can define the new law (1/10,1/10,1/5,3/5).

11. 원십진 합Exact decimal total

네 입력 문자열 0.1,0.2,0.3,0.4의 합이 공리의 전체 1을 만족하는지 정확 분수로 확인하세요.

Check whether the original decimal strings 0.1,0.2,0.3,0.4 satisfy total mass one.

풀이와 확인할 이유Solution and explanation

1/10+1/5+3/10+2/5=(1+2+3+4)/10=1입니다. 모두 비음수입니다. binary64에서 중간 반올림이 생기는 현상과 원입력 십진 법칙의 정확한 유효성을 구분합니다.

As fractions, their sum is (1+2+3+4)/10=1, and all are nonnegative. Intermediate binary 64 rounding is separate from the validity of this exact decimal law.

12. 여사건과 공집합Derive empty and complement rules

공리에서 P(∅)=0과 P(Aᶜ)=1−P(A)를 유도하세요.

Derive P(∅)=0 and P(Aᶜ)=1−P(A) from the axioms.

풀이와 확인할 이유Solution and explanation

Ω=Ω∪∅의 서로 겹치지 않는 합에서 1=1+P(∅)이므로 0입니다. Ω=A∪Aᶜ에서도 1=P(A)+P(Aᶜ)이므로 여사건 식이 나옵니다.

Disjoint Ω and ∅ give 1=1+P(∅), hence zero. Splitting Ω into disjoint A and Aᶜ gives 1=P(A)+P(Aᶜ).

13. 단조성의 역은 거짓Monotonicity is not reversible

P(A)≤P(B)이면 A⊆B라는 주장에 네 균등 이름표 반례를 드세요.

Give a four-uniform-ticket counterexample to “P(A)≤P(B) implies A⊆B.”

풀이와 확인할 이유Solution and explanation

A={a},B={b,c}이면 1/4≤1/2지만 a는 B에 없습니다. 포함 관계에서 확률 부등식은 따라오나, 숫자 부등식만으로 포함을 복원할 수 없습니다.

Take A={a}, B={b, c}. Their probabilities are 1/4 and 1/2, but a is not in B. Numerical order does not recover inclusion.

14. 겹침을 빼기Remove the overlap

P(A)=0.6, P(B)=0.5, P(A∩B)=0.3일 때 합집합·둘 다 아님을 구하세요.

For P(A)=0.6, P(B)=0.5 and P(A∩B)=0.3, find the union and neither probabilities.

풀이와 확인할 이유Solution and explanation

합집합은 0.6+0.5−0.3=0.8, 둘 다 아님은 1−0.8=0.2입니다. 단순 합 1.1은 중복을 포함하므로 합집합의 확률이 아닙니다.

The union is 0.8 and neither is 0.2. The sum 1.1 includes overlap twice and is not a union probability.

15. 정확히 하나Exactly one

P(A)=0.6, P(B)=0.5, P(A∩B)=0.3에서 정확히 하나의 확률을 두 방법으로 구하세요.

For P(A)=0.6, P(B)=0.5 and intersection 0.3, compute exactly-one probability in two ways.

풀이와 확인할 이유Solution and explanation

A만 0.3, B만 0.2를 더하면 0.5입니다. 또는 0.6+0.5−2×0.3=0.5입니다. 합집합 0.8에서 교집합 0.3을 빼도 같습니다.

A only is 0.3 and B only 0.2, totaling 0.5. Equivalently use 0.6+0.5−2×0.3=0.5, or union 0.8 minus intersection 0.3.

16. 교집합의 허용 범위Intersection bounds

P(A)=0.6, P(B)=0.5일 때 t=P(A∩B)의 정확한 허용 범위와 끝점 네 칸을 쓰세요.

For marginals 0.6 and 0.5, determine the full allowed range of t=P(A∩B) and endpoint tables.

풀이와 확인할 이유Solution and explanation

네 칸 t,0.6−t,0.5−t,t−0.1의 비음성에서 0.1≤t≤0.5입니다. t=0.1은 (0.1,0.5,0.4,0), t=0.5는 (0.5,0.1,0,0.4)입니다. 둘 다 합이 1인 유효 법칙입니다.

Nonnegative cells t, 0.6−t, 0.5−t, t−0.1 require 0.1≤t≤0.5. Endpoint tables are (0.1,0.5,0.4,0) and (0.5,0.1,0,0.4).

17. 합집합 상계A loose union bound

네 사건의 확률이 각각 0.4일 때 합계 1.6을 합집합 확률이라고 쓸 수 있나요? 정확한 상계를 쓰세요.

Four events each have probability 0.4. Is 1.6 their union probability? State the available bound.

풀이와 확인할 이유Solution and explanation

아닙니다. 합집합은 1 이하이며 합집합 상계에 따라 1.6 이하이기도 합니다. 결합하면 최소 상계는 min(1,1.6)=1입니다. 교집합 구조를 모르므로 정확값은 정해지지 않습니다.

No. The union is at most both 1 and 1.6, hence at most one. Without overlap information the exact probability is not determined.

18. 균등 조건Uniform conditioning

균등 Ω={a,b,c,d}, A={a,b},B={b,c}에서 P(A|B),P(A∩B),P(A)를 구별하세요.

On uniform Ω={a, b, c, d}, A={a, b}, B={b, c}, distinguish P(A|B), P(A∩B) and P(A).

풀이와 확인할 이유Solution and explanation

각각 (1/4)/(1/2)=1/2,1/4,1/2입니다. 이 예에서 첫째와 셋째가 같은 것은 독립 구조 때문이며 조건부와 주변 확률이 항상 같은 것은 아닙니다.

They are 1/2,1/4 and 1/2. Equality between the first and third reflects independence here, not a universal rule.

19. 가중 조건Weighted conditioning

a,b,c,d의 가중치 (1,2,3,4), A={a,b},B={b,c}에서 양방향 조건부확률을 구하세요.

With weights (1,2,3,4), A={a, b}, B={b, c}, find both conditional directions.

풀이와 확인할 이유Solution and explanation

P(A|B)=b질량/(b+c질량)=2/5입니다. P(B|A)=b질량/(a+b질량)=2/3입니다. 전체 질량 10은 약분되지만 조건 분모는 서로 다릅니다.

P(A|B)=2/5 and P(B|A)=2/3. Total mass ten cancels, while the retained denominators differ.

20. 포함 관계와 역조건Inclusion and reversed conditions

균등 네 이름표에서 A={a},B={a,b,c}입니다. 두 조건부확률과 교집합을 구하세요.

Under four uniform tickets, A={a}, B={a, b, c}. Find both conditionals and the intersection probability.

풀이와 확인할 이유Solution and explanation

P(A|B)=1/3, P(B|A)=1, P(A∩B)=1/4입니다. A⊆B라서 A조건에서는 B가 확실하지만 B조건에서 A가 확실한 것은 아닙니다.

The values are 1/3, one and 1/4. A⊆B makes B certain given A, but not A certain given B.

21. 여사건 위치Which side is complemented?

균등 Ω={a,b,c,d},A={a,b},B={a,b,c}에서 P(Aᶜ|B)와 P(A|Bᶜ)를 구하세요.

For uniform Ω={a, b, c, d}, A={a, b}, B={a, b, c}, find P(Aᶜ|B) and P(A|Bᶜ).

풀이와 확인할 이유Solution and explanation

첫째는 남은 a,b,c 중 c 하나라 1/3입니다. 둘째는 남은 d 안에 A가 없어 0입니다. 1−P(A|B)=1/3은 첫째이며 두 번째가 아닙니다.

The first is 1/3 and the second zero. One minus P(A|B) equals the first expression, not the second.

22. 빈 조건의 실패An empty condition

조건 B=∅에서 모든 A에 P(A|B)=0을 주자는 제안이 왜 확률 법칙이 아닌가요?

Why is assigning P(A|∅)=0 for every A not a probability law?

풀이와 확인할 이유Solution and explanation

A=Ω를 넣으면 전체 확률도 0이 됩니다. 조건부 법칙의 전체 1 조건을 위반합니다. 이 장의 비율은 0/0으로 미정의입니다. 영질량 버전을 따로 선택하는 고급 개념과 산술 정의를 혼동하지 않습니다.

Taking A=Ω would assign total probability zero rather than one. The ratio is undefined. Choosing a null-input version using additional structure is a different construction.

23. 선택 심화: 조건부 법칙 증명Optional: prove the conditional law

P(B)>0에서 Q(A)=P(A∩B)/P(B)가 공리를 만족함을 설명하세요.

For P(B)>0, show that Q(A)=P(A∩B)/P(B) satisfies probability axioms.

풀이와 확인할 이유Solution and explanation

분자·분모가 비음수·양수라 Q≥0이고 Q(Ω)=1입니다. 서로 겹치지 않는 Aₙ의 B와의 교집합도 서로 겹치지 않으므로 P의 가산 가법성을 적용한 뒤 고정 분모로 나누면 Q의 가산 가법성이 됩니다.

Q is nonnegative and Q(Ω)=1. Intersections of disjoint Aₙ with B remain disjoint. Apply countable additivity of P and divide by the fixed positive denominator.

24. 펭귄 결합 복원Reconstruct a penguin joint probability

P(G)=123/342, P(T|G)=109/123에서 P(G∩T)를 구하고 독립이 필요한지 답하세요.

Given P(G)=123/342 and P(T|G)=109/123, find P(G∩T). Is independence required?

풀이와 확인할 이유Solution and explanation

곱하면 109/342입니다. 양의 조건부확률 정의를 정리한 것이므로 독립은 필요 없습니다. P(T|G)를 주변 P(T)로 바꾸는 단계에는 독립이 필요합니다.

The product is 109/342. The multiplication rule follows from the conditional definition, without independence. Replacing P(T|G) by P(T) would require independence.

25. 세 사건 경로A three-event path

P(A)=1/2, P(B|A)=2/3, P(C|A∩B)=3/4일 때 세 사건 교집합을 구하고 분모 조건을 쓰세요.

Given P(A)=1/2, P(B|A)=2/3, P(C|A∩B)=3/4, find the triple intersection and check denominators.

풀이와 확인할 이유Solution and explanation

P(A∩B)=1/3>0이므로 다음 조건도 유효합니다. 세 사건 교집합은 (1/2)(2/3)(3/4)=1/4입니다. A와 A∩B가 양의 확률이라는 조건을 확인하며 독립은 가정하지 않습니다.

P(A∩B)=1/3 is positive. Multiplying gives 1/4. Both A and A∩B have positive mass; independence is not assumed.

26. 네 칸 국가 표A four-cell country table

칸 순서 (AB,A만, B만, 둘 다 아님)=(8,1,0,7)에서 N,P(A),P(B),P(B|A),P(A|B)를 구하세요.

For cells (AB, A only, B only, neither)=(8,1,0,7), find N, P(A), P(B), P(B|A), P(A|B).

풀이와 확인할 이유Solution and explanation

N=16, A수=9, B수=8입니다. 주변은 9/16과1/2, 조건부는8/9와1입니다. 비율 방향을 바꾸면 분모가9에서8로 바뀝니다.

N=16; row A totals nine and column B totals eight. Marginals are 9/16 and 1/2; the conditionals are 8/9 and one.

27. 빈 행과 빈 표Empty row versus empty table

네 칸 (0,0,2,3)에서 주변·조건부 정의 상태를 쓰고 (0,0,0,0)과 비교하세요.

For cells (0,0,2,3), distinguish marginal and conditional states; compare with an all-zero table.

풀이와 확인할 이유Solution and explanation

전체5라 P(A)=0, P(B)=2/5가 정의됩니다. P(B|A)는0조건이라 미정의이고 P(A|B)=0은 정의됩니다. 전체0인 표에서는 확률 법칙 자체를 정규화할 수 없습니다.

Total five gives P(A)=0 and P(B)=2/5. P(B|A) is undefined, while P(A|B)=0 is defined. An all-zero table has no normalized probability law at all.

28. 기본 나무The default tree

p=0.4, u=0.8, v=0.2의 네 잎·P(B)·P(A|B)를 구하세요.

For p=0.4, u=0.8, v=0.2, find four leaves, P(B) and P(A|B).

풀이와 확인할 이유Solution and explanation

네 잎은 (0.32,0.08,0.12,0.48)입니다. B질량은0.44, 역조건은0.32/0.44=8/11입니다. P(B|A)=0.8과8/11을 같은 값으로 쓰지 않습니다.

Leaves are (0.32,0.08,0.12,0.48). P(B)=0.44 and P(A|B)=8/11. This reverse conditional differs from the input 0.8.

29. 집단 비율의 잘못된 평균Do not average branch shares unweighted

P(A)=0.4, P(B|A)=0.8, P(B|Aᶜ)=0.2에서 P(B)를0.5라 한 답을 수정하세요.

For P(A)=0.4, P(B|A)=0.8, P(B|Aᶜ)=0.2, repair the answer P(B)=0.5.

풀이와 확인할 이유Solution and explanation

단순 평균은 집단 질량을 무시합니다. 가중합은0.4×0.8+0.6×0.2=0.44입니다. 두 집단 질량이 같거나 두 비율이 같을 때는 단순 평균이 우연히 맞을 수 있지만 일반 규칙은 아닙니다.

Use 0.4×0.8+0.6×0.2=0.44. A simple mean ignores unequal group masses and works only in special cases.

30. 영확률 가지 커널A null-branch kernel

p=0, v=0.2에서 u를0.1에서0.9로 바꾸면 네 잎과 P(B|A)의 상태는 어떻게 되나요?

For p=0, v=0.2, change u from 0.1 to 0.9. What happens to the leaves and the ratio P(B|A)?

풀이와 확인할 이유Solution and explanation

네 잎은 언제나(0,0,0.2,0.8)입니다. u는 선택한 가지 규칙이지만 그 가지 질량이0이라 결합법칙에 영향을 주지 않습니다. 실제 비율 P(B|A)는0/0으로 계속 미정의입니다.

Leaves stay (0,0,0.2,0.8). The selected kernel u does not affect joint mass on a zero branch. The actual ratio remains undefined.

31. 아주 작은 양의 조건A tiny positive condition

정확한 p=10⁻⁴⁰⁰,u=0.8, v=0.2에서 P(B|A)를 구하고 표시가 0인 p와 정확한 0의 차이를 쓰세요.

For exact p=10⁻⁴⁰⁰, u=0.8, v=0.2, find P(B|A) and distinguish displayed zero from exact zero.

풀이와 확인할 이유Solution and explanation

p>0이므로 pu/p=u=4/5입니다. 부동소수점 표시가 0으로 내려가도 원래 값은 정확한 0이 아닙니다. p가 정확히 0이면 이 비율은 미정의입니다. 십진수를 먼저 일반 부동소수점 값으로 바꾸면 그 차이를 잃을 수 있습니다.

Since p is positive, pu/p=4/5. Display underflow does not make the exact denominator zero. Exact p=0 would give an undefined ratio. Premature conversion to an ordinary floating-point value can lose this distinction.

32. 거의1인 원입력An input close to one

p문자열 0.999999999999999999999에서 1−p를 정확히 구하고 p=1과 비교하세요.

For decimal string p=0.999999999999999999999, find exact 1−p and compare with p=1.

풀이와 확인할 이유Solution and explanation

1−p=10⁻²¹>0입니다. 따라서 Aᶜ가지 비율도 정의할 수 있습니다. Number표시가1로 반올림되어도 원십진 p와 정확1은 다릅니다. 조건 판단에는 원분수를 사용합니다.

The difference is 10⁻²¹, which is positive. Ratios on the complementary branch remain defined. A rounded Number display of one does not change the original exact decimal.

33. 독립은 법칙에도 달린다Independence depends on the law

A={a,b},B={b,c}에서 균등 가중치와 (1,1,1,7)의 독립 여부를 각각 판단하세요.

For A={a, b}, B={b, c}, compare independence under uniform weights and (1,1,1,7).

풀이와 확인할 이유Solution and explanation

균등에서는 교집합1/4=주변 곱1/4라 독립입니다. 두 번째에서는 교집합1/10, 주변 곱(1/5)(1/5)=1/25라 아닙니다. 집합을 바꾸지 않고 법칙만 바꾸어도 독립성이 달라집니다.

The uniform intersection and product both equal 1/4. Under the other law they are 1/10 and 1/25, so independence fails despite unchanged subsets.

34. 배반이지만 독립 아님Disjoint but dependent

공정 주사위의 A={1},B={2}가 배반이면서 독립이 아닌 이유를 계산하세요.

Explain why A={1}, B={2} on a fair die are disjoint but not independent.

풀이와 확인할 이유Solution and explanation

교집합은 공집합이라 확률0입니다. 주변 곱은1/36>0이므로 독립 등식이 실패합니다. A가 주어지면 B확률은0이 되어 원래1/6과 달라집니다.

The intersection probability is zero but the marginal product is 1/36. Given A, B probability drops from 1/6 to zero.

35. 영확률 사건의 독립Independence of a null event

P(A)=0일 때 모든 사건 B와 독립임을 보이고, 반드시 A=∅인지는 답하세요.

If P(A)=0, prove independence from every B. Must A be empty?

풀이와 확인할 이유Solution and explanation

교집합은 A의 부분집합이라 확률0이고 P(A)P(B)도0입니다. 정의상 독립입니다. A가 비어 있을 필요는 없습니다. 균등[0,1]에서 A={1/2}는 비어 있지 않은 영확률 사건입니다.

Monotonicity gives P(A∩B)=0=P(A) P(B). A need not be empty; {1/2} under uniform[0,1] is a counterexample.

36. 선택 심화: 둘씩과 상호 독립Optional: pairwise versus mutual

균등 HH,HT,TH,TT에서 A=첫앞면, B=둘째앞면, C=같은면입니다. 둘씩·상호 독립을 판정하세요.

On uniform HH, HT, TH, TT, let A=first heads, B=second heads, C=equal faces. Check pairwise and mutual independence.

풀이와 확인할 이유Solution and explanation

각 주변1/2, 각 쌍 교집합1/4라 둘씩 독립입니다. 세 교집합은 HH확률1/4인데 주변 곱1/8과 다르므로 상호 독립이 아닙니다.

Each marginal is 1/2 and each pair intersection 1/4. The triple intersection has mass 1/4 rather than 1/8, so mutual independence fails.

37. 조건 후 의존Dependence after conditioning

같은 균등 HH,HT,TH,TT에서 A=첫앞면, B=둘째앞면, C=같은면일 때 A,B가 C조건에서 독립인지 보세요.

On uniform HH, HT, TH, TT with A=first heads, B=second heads, C=equal faces, are A and B independent given C?

풀이와 확인할 이유Solution and explanation

C안에는 HH,TT가 남습니다. 두 조건부 주변은1/2, 결합은1/2라 곱1/4와 다릅니다. 원래의 독립이 특정 조건 안에서의 독립을 보장하지 않습니다.

No. Within HH, TT, both marginals are 1/2 but the joint is 1/2 rather than 1/4. Marginal independence does not guarantee conditional independence.

38. 복원과 비복원Replacement and no replacement

빨강2·파랑1을 두 번 균등 선택할 때 독립 복원과 비복원의 두 빨강 확률을 비교하세요.

From two red and one blue labeled balls, compare two-red probabilities under independent replacement and no replacement.

풀이와 확인할 이유Solution and explanation

독립 복원은(2/3)²=4/9입니다. 비복원은 첫 빨강 뒤 빨강1·전체2가 남아(2/3)(1/2)=1/3입니다. 두 경우 모두 곱셈 규칙이며 둘째 조건부확률이 다릅니다.

Independent replacement gives 4/9. Without replacement the second red share is 1/2 after a first red, giving 1/3. The multiplication rule holds in both.

39. 연속 앞면 뒤 다음 결과After a run of heads

독립 공정 동전에서 앞면이 다섯 번 나왔습니다. 다음 뒷면 확률과 이것이 실제 장치 공정성을 증명하는지 답하세요.

Under an independent fair-coin model, five heads occurred. Find next-tail probability and state whether this proves an actual device fair.

풀이와 확인할 이유Solution and explanation

모형 안에서는 다음 뒷면 확률1/2입니다. 앞선 결과가 다음 선택과 독립이기 때문입니다. 실제 장치의 공정성이 증명된 것은 아니며 모형 적합성은 별도로 검토합니다.

The model gives 1/2 because the next toss is independent. This calculation does not prove that a real device follows the assumed model.

40. 선택 심화: 감소 연속성Optional: continuity from above

균등[0,1]에서 Bₙ=[0,1/n]의 교집합과 확률 극한을 구하세요.

Under uniform[0,1], find the intersection of Bₙ=[0,1/n] and the probability limit.

풀이와 확인할 이유Solution and explanation

모든 양수 x는 충분히 큰 n에서1/n보다 커져 빠지고0은 계속 남으므로 교집합은{0}입니다. P(Bₙ)=1/n→0이며 감소 연속성으로 P({0})=0입니다.

Every positive x is eventually excluded while zero remains, so the intersection is{0}. Probabilities 1/n tend to zero, giving P({0})=0 by continuity from above.

41. 가산 법칙의 꼬리A countable tail

양의 정수에서 pₙ=2⁻ⁿ입니다. 1~N확률과3이상 확률을 구하세요.

For pₙ=2⁻ⁿ on positive integers, find P(n≤N) and P(n≥3).

풀이와 확인할 이유Solution and explanation

등비합은1−2⁻ᴺ입니다. 3이상은1−1/2−1/4=1/4입니다. 첫 N개만 다시 정규화하면 조건 n≤N을 건 다른 법칙입니다.

The geometric sum is 1−2⁻ᴺ. The tail from three is 1/4. Renormalizing only the first N outcomes creates a different law conditioned on n≤N.

42. 무한 정수의 균등 불가능No uniform law on positive integers

양의 정수 모두에 같은 확률 c를 부여할 수 없는 이유를 c>0과c=0으로 나누세요.

Explain why assigning the same probability c to every positive integer fails for c> 0 and c=0.

풀이와 확인할 이유Solution and explanation

c>0이면 충분히 큰 N에서 Nc>1로 실패합니다. c=0이면 가산 가법성으로 전체 확률0이라 실패합니다. 음수는 비음성부터 위반합니다.

For c> 0, some finite sum Nc exceeds one. For c=0, countable additivity gives total zero. Negative c already violates nonnegativity.

43. 확률0과 공집합Null versus empty

균등[0,1]에서 {1/2}의 확률과 그 사건이 비어 있는지 답하세요.

Under uniform[0,1], what is P({1/2}), and is the event empty?

풀이와 확인할 이유Solution and explanation

확률은0이지만 결과1/2를 포함하므로 비어 있지 않습니다. 한 점의 확률0은 결과가 집합에 없다는 뜻이 아닙니다. 해당 한 점으로 조건을 걸 때의 비율은 별도로 미정의입니다.

Its probability is zero, but the event contains 1/2. Null mass does not imply empty membership. The ratio conditioned on that singleton remains undefined.

44. 비가산 합집합 오류Uncountable union error

[0,1]의 모든 점 확률이0이므로 전체 확률도0이라는 주장을 고치세요.

Repair the claim that [0,1] has probability zero because every singleton has probability zero.

풀이와 확인할 이유Solution and explanation

가산 가법성은 자연수로 나열할 수 있는 서로 배반인 사건들의 합에 대한 공리입니다. [0,1]의 모든 한 점은 비가산개라 그 합산을 적용할 수 없습니다. 가산개의 유리수 점은0이지만 구간 전체는1입니다.

Countable additivity concerns listable disjoint families. The interval has uncountably many singletons, so that sum rule does not apply. Rational points form a countable null set, while the whole interval has mass one.

45. 실제 국가 합집합Actual country union

2024년 지정16국에서 A=GDPpc≥30000, B=기대수명≥80이고 네 칸은(8,1,0,7)입니다. 합집합·정확히 하나·둘 다 아님을 구하세요.

For sixteen selected 2024 countries, A=GDPpc≥30000, B=life expectancy≥80 and cells(8,1,0,7). Find union, exactly one and neither.

풀이와 확인할 이유Solution and explanation

합집합9/16, 정확히 하나1/16, 둘 다 아님7/16입니다. B만 칸이0이라 B가 A에 포함됩니다. 세계 모든 나라·주민의 비율이 아니라 선택16국 균등 법칙의 값입니다.

They are 9/16,1/16 and 7/16. The zero B-only cell implies B⊆A in this record set. These are selected-country ticket probabilities, not global resident proportions.

46. 실제 국가 독립 확인Actual country independence check

지정16국의 P(A)=9/16, P(B)=1/2, P(A∩B)=1/2에서 독립인지와 차이를 구하세요.

For the selected-country law with P(A)=9/16, P(B)=1/2, intersection 1/2, check independence and compute the gap.

풀이와 확인할 이유Solution and explanation

주변 곱9/32와교집합16/32가 달라 독립이 아닙니다. 차이는7/32입니다. 이는 고정 기록 법칙의 등식 확인이며 GDP정책의 인과효과나 모집단 검정이 아닙니다.

The product is 9/32 and the intersection 16/32, giving gap 7/32. They are not independent in this finite law. This is neither a causal policy effect nor a population hypothesis test.

47. 실제 펭귄 세 사건Three penguin event questions

G=Gentoo,T=날개≥210mm,네 칸(109,14,5,214)에서 둘 다·적어도 하나·정확히 하나를 계산하세요.

For G=Gentoo, T=flipper≥210 mm and cells(109,14,5,214), find both, at least one and exactly one.

풀이와 확인할 이유Solution and explanation

전체342에서 각각109/342,128/342,19/342입니다. 합집합은109+14+5, 정확히 하나는14+5입니다. 실제 관찰된 수와 선택한210mm 문턱을 구분해 보고합니다.

They are 109/342,128/342 and 19/342. The union uses the first three cells; exactly one uses the middle two. The threshold is a teaching choice applied to actual measurements.

48. 실제 펭귄 조건 반전Reverse actual penguin conditions

같은342행의 네 칸(109,14,5,214)에서 P(T|G),P(G|T),P(T|Gᶜ)를 구하세요.

Using cells(109,14,5,214) for 342 records, find P(T|G), P(G|T), P(T|Gᶜ).

풀이와 확인할 이유Solution and explanation

각 분모는123,114,219입니다. 따라서109/123,109/114,5/219입니다. 높은109/114를 원자료 밖 새 개체의 검증된 예측정확도로 바꾸지 않습니다.

The respective denominators are 123,114 and 219, giving 109/123,109/114 and 5/219. The second value is not automatically validated accuracy for new wild individuals.

49. 결측 분모A missingness denominator

원펭귄344행에서 날개2개 결측, sex결측 포함11개입니다. G와날개≥210mm를 묻는 유한 실험의 분모는 왜342인가요?

The source has 344 penguin records, two missing flippers and eleven missing sex entries. Why use 342 for species and flipper≥210 mm?

풀이와 확인할 이유Solution and explanation

필요한 종·날개가 유효한 기록을 남깁니다. 날개 결측2개를0으로 넣지 않고, 불필요한 sex를 요구해333으로 줄이지도 않습니다. 342는 질문에 필요한 가용집합이며 원자연 모집단 크기가 아닙니다.

Retain records with the required species and flipper variables. Do not zero-fill missing flippers or require unused sex values. The 342-record set is a question-specific available set, not a natural population size.

50. 기업 균등 조건Uniform company conditionals

5품목 균등에서 H=하드웨어, I=FY24연간매출증가, 네 칸(2,2,1,0)입니다. P(I|H),P(H|I),P(H∪I)를 구하세요.

For five uniform categories, H=hardware, I=FY24 annual sales increase and cells(2,2,1,0), find P(I|H), P(H|I), P(H∪I).

풀이와 확인할 이유Solution and explanation

각각2/4=1/2,2/3,1입니다. 모든 품목이 H또는I에 속합니다. 조건 분모4와3은 원기록 수이지 매출액이 아닙니다.

They are 1/2,2/3 and one. Every category belongs to H or I. Denominators four and three are category counts, not sales amounts.

51. 기업 매출 가중 조건Sales-weighted company conditionals

FY24 하드웨어 매출294866, 그중 증가 품목231167, 전체391035, 전체 증가 품목327336(백만USD)입니다. P(I|H),P(H|I),P(I)를 구하세요.

FY24 hardware sales are 294866, increasing-hardware sales 231167, total 391035 and all increasing-category sales 327336, in millions USD. Find P(I|H), P(H|I), P(I).

풀이와 확인할 이유Solution and explanation

매출 가중 법칙에서231167/294866,231167/327336,327336/391035입니다. 첫째는 약0.783973로 균등의1/2와 다릅니다. 단위는 각 비율에서 약분됩니다.

Under sales weighting, the values are 231167/294866,231167/327336 and 327336/391035. The first is about 0.783973 rather than the uniform 1/2. Currency units cancel.

52. 단위·기간·관측대상Units, periods and observed objects

품목 매출을 백만USD에서USD로 바꾸면 선택확률이 바뀌나요? FY23 53주/FY24 52주와 고객확률 주의도 쓰세요.

Does converting all category sales from millions USD to USD change selection probabilities? Include 53/52-week and customer-probability qualifications.

풀이와 확인할 이유Solution and explanation

모든 질량이10⁶배라 확률은 같습니다. 그러나 공시 연간증가는 동일 주수 성장 판정이 아닙니다. 품목 매출비중이 관측한 고객수·거래수의 비율이라는 주장도 성립하지 않습니다.

No: the common 10⁶ factor cancels. Reported annual increase is not equal-week growth, and sales-share selection does not observe customer or transaction probabilities.

53. 불가능한 조건부 보고An inconsistent conditional report

P(A)=0.4, P(B)=0.5, P(A|B)=0.9라는 보고가 같은 법칙에서 가능한지 확인하세요.

Can P(A)=0.4, P(B)=0.5 and P(A|B)=0.9 hold under the same law?

풀이와 확인할 이유Solution and explanation

조건부 정의에 따르면 교집합은0.9×0.5=0.45입니다. 그러나 교집합은 A보다 클 수 없어0.4이하이어야 합니다. 따라서 세 보고는 같은 유효 법칙에서 동시에 성립할 수 없습니다.

The conditional implies intersection 0.45, exceeding P(A)=0.4. Monotonicity forbids this, so the three reported values are inconsistent.

54. 서로 다른 조건을 더한 오류Adding different conditions

균등 Ω={a,b,c,d},A={a},B={a,b},C={a,c,d}입니다. P(A|B)+P(Aᶜ|C)가1인지 확인하세요.

On uniform Ω={a, b, c, d}, A={a}, B={a, b}, C={a, c, d}, is P(A|B)+P(Aᶜ|C)=1?

풀이와 확인할 이유Solution and explanation

첫항1/2, 둘째2/3라 합7/6입니다. 확률 공리 위반이 아니라 서로 다른 조건의 숫자를 한 법칙의 여사건쌍처럼 더한 오류입니다. 같은 B라면 P(A|B)+P(Aᶜ|B)=1입니다.

The values 1/2 and 2/3 sum to 7/6. This does not violate axioms: different conditional laws were incorrectly treated as one complement pair. Keeping B in both terms would give one.

55. 종합 확률 감사Integrated probability audit

보고서가 합집합을 단순 합, 반대 조건을 같은 값, 0 조건을 0, 품목 매출 비중을 고객 확률, 유한 표의 독립을 인과 증거로 씁니다. 각각 고치세요.

A report adds unions without overlap correction, equates reverse conditionals, zero-fills null conditions, calls sales shares customer probabilities and treats finite-law independence as causal evidence. Repair each.

풀이와 확인할 이유Solution and explanation

합집합에서는 교집합을 한 번 뺍니다. 조건을 반전하면 분모를 다시 구합니다. 0조건의 비율은 미정의이며 선택 커널과 구별합니다. 매출 가중은 지정한 품목선택 법칙입니다. 유한 법칙의 독립 등식과 모집단·인과 식별을 분리하고 단위·기간·원자료·포함규칙을 기록합니다.

Subtract overlap once; recompute the reversed denominator; leave null-condition ratios undefined and separate chosen kernels. Label sales weighting as a category-selection law. Separate exact finite-law independence from population inference and causal identification, recording units, periods, sources and inclusion rules.

자료와 출처Data and sources

실제 자료 사례Actual-data cases · 원자료·단위·결측·변환·출처Inputs, units, missingness, transformations and sources

자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.

자료사전·출처·이용 조건Data dictionary, sources and terms