특징 선택·정보·중요도와 설명Feature selection, information, importance and explanation
카드의 놀라움에서 실제 예측의 선택·중요도·설명과 대학원 정보 이론까지From surprising cards to actual feature selection,model reliance,explanations and graduate information theory
실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions
학부 심화 · 선택Advanced undergraduate · optional
질문 한 번이 줄여 주는 불확실성How one question reduces uncertainty
상자 안에 빨강 카드 두 장, 파랑 카드 두 장이 있습니다. 눈을 감고 한 장을 뽑으면 아직 색을 모릅니다. “빨강인가?”라는 질문의 답을 들으면 색을 알게 됩니다. 이때 줄어든 불확실성을 수로 재려는 것이 이 장의 출발점입니다. 카드의 색이 아름다운가, 사회적으로 중요한가를 수치화하려는 것은 아닙니다.
이번에는 빨강 카드가 아홉 장, 파랑 카드가 한 장이라고 합시다. 빨강이라는 답은 예상하기 쉽지만 파랑이라는 답은 뜻밖입니다. 드문 결과가 더 큰 놀라움을 준다는 직관을 로그 함수와 연결할 것입니다. 그 뒤에는 결과 하나의 놀라움과, 뽑기 전에 예상하는 평균 놀라움을 구별합니다.
특징 선택은 질문을 고르는 일과 닮았습니다. 이탈을 예측하려는 통신사는 고객의 불만 여부와 이용 시간을 볼 수 있습니다. 어느 질문이 표본에서 많은 정보를 주는지, 어느 질문을 넣은 모형이 새 자료에서 좋은지, 무엇이 이탈의 원인인지는 서로 다른 질문입니다. 하나의 중요도 숫자로 셋을 대신하지 않습니다.
작은 카드 예제에서 시작해 실제 2024년 국가 지표, 1976년 개인 임금·교육, 공개 통신 이용 자료로 이동합니다. 실제 관측값을 보관하되 이 장에서 만든 이진 구분과 자료 역할은 별도 교육용 규칙으로 밝힙니다. 원자료를 읽는 일과 규칙을 정하는 일을 함께 배워야 합니다.
A box contains two red cards and two blue cards. Draw one without looking. The answer to “Is it red?” tells you its color. Measuring the uncertainty removed by that answer is our starting point. We are not measuring whether a color is beautiful or socially important.
Now put nine red cards and one blue card in the box. Red is expected; blue is surprising. We will connect the intuition that rare outcomes carry more surprise to a logarithm, then distinguish the surprise of one outcome from the average surprise anticipated before drawing.
Feature selection resembles choosing questions. A telecommunications analyst might observe complaints and usage when predicting churn. Which feature conveys information in a sample, which fitted predictor performs well on new data, and what causes churn are different questions. One importance number cannot answer all three.
We move from constructed cards to actual country indicators for 2024, individual wages and schooling in 1976, and public telecommunications records. Native observations remain available, while our binary categories and data roles are explicitly declared teaching choices. Learning requires both reading data and identifying the rules imposed on them.
학부 심화 · 선택Advanced undergraduate · optional
확률표·관측 단위·평가 역할Probability tables, observation units and roles
유한 확률표는 가능한 결과마다 음수가 아닌 수를 붙이고 그 합을 1로 만듭니다. 카드 수가 빨강 3, 파랑 1이면 확률은 3/4과 1/4입니다. 카드 수 30과 10도 같은 확률표를 만들지만 관측된 표본 수까지 같아진 것은 아닙니다. 같은 비율과 같은 증거의 양을 혼동하지 마세요.
pi≥0,i=1∑kpi=1
표본에서 만든 비율은 경험 확률입니다. 실제 모집단의 확률을 이미 알고 있다는 뜻이 아닙니다. 모집단에서 독립적으로 반복 추출했다는 가정이 없다면 보통의 표본오차 공식도 자동으로 따라오지 않습니다. 한 사람의 반복 기록과 서로 다른 사람의 기록은 특히 구별해야 합니다.
실제 국가 사례는 16개 국가의 같은 해 관측입니다. 네 지표씩 기록한 64행을 64개 독립 국가라고 세지 않습니다. 개인은 원자료 3,613행을 보존하고, 기업은 3,150행을 보존합니다. 원래 조사 가중치가 있는 개인 자료도 이 장의 계산에는 질량 1을 사용하므로 모집단 대표성을 보장하지 않습니다.
훈련 행은 확률표와 모형을 맞추고, 검증 행은 선언된 특징 조합을 고르며, 시험 행은 선택이 끝난 결과를 평가합니다. 행 위치로 고정한 역할은 재현하기 쉽지만 무작위 표본이나 미래 배포 실험은 아닙니다. 결과를 해석할 때 역할과 추출 설계를 함께 적으세요.
A finite probability table assigns a nonnegative number to each possible outcome and sums to one. Three red cards and one blue card give probabilities 3/4 and 1/4. Counts 30 and 10 give the same probabilities, but not the same amount of observed evidence. Equal proportions do not mean equal sample sizes.
pi≥0,i=1∑kpi=1
Proportions computed from a sample define an empirical distribution. They do not reveal population probabilities without uncertainty. Standard sampling-error formulas also require assumptions such as independent sampling; repeated records from one person are not interchangeable with records from different people.
Our actual country frame contains 16 countries in the same year. Four indicators per country produce 64 records, not 64 independent countries. We retain all 3,613 native person rows and all 3,150 company rows. Person survey weights remain in the archive, but the teaching calculations assign mass one and do not ensure population representativeness.
Training rows fit probability tables and models, validation rows choose a declared feature subset, and test rows evaluate the completed choice. A fixed source-position split is reproducible, but it is not a randomized sample or a prospective deployment experiment. Report roles alongside the sampling design.
학부 심화 · 선택Advanced undergraduate · optional
놀라움을 로그로 재는 이유Why surprise is measured by a logarithm
어떤 결과의 확률이 p일 때 정보량을 −log₂p로 정의합니다. 확률 1/2이면 1비트, 1/4이면 2비트, 1/8이면 3비트입니다. “비트”는 여기서 정보량의 단위입니다. 저장 장치의 이진 자릿수 한 칸과 언제나 같은 물리적 물건이라는 뜻은 아닙니다.
I(x)=−log2p(x)=log2p(x)1
로그가 편리한 이유는 독립 사건의 곱을 정보량의 합으로 바꾸기 때문입니다. 서로 독립인 공정 동전 두 개가 모두 앞면일 확률은 1/4이고 정보량은 2비트입니다. 동전 하나씩 받은 정보 1비트와 1비트를 합한 값과 맞습니다. 독립이 아니면 둘째 결과에는 조건부 확률을 써야 합니다.
확률이 1인 결과는 놀라움이 0입니다. 확률이 0인 사건이 실제로 일어났다면 그 확률 모형에서는 무한한 놀라움입니다. “드물다”와 “불가능하다”는 다릅니다. 전자는 작지만 양수인 확률이고 후자는 정확히 0이므로 계산 화면에서도 구별합니다.
밑을 e로 바꾸면 단위는 내트입니다. 1비트는 ln2 내트이고, 수치의 단위가 바뀌어도 어떤 확률표가 더 좋은지라는 비교 자체는 양의 상수 배율만 바뀝니다. 실제 표와 코드에서 사용한 로그의 밑을 확인하세요.
For an outcome with probability p, define information as −log₂p. Probabilities 1/2, 1/4 and 1/8 correspond to one, two and three bits. A bit here is a unit of information, not automatically the same physical object as one binary storage digit.
I(x)=−log2p(x)=log2p(x)1
The logarithm turns products for independent events into sums of information. Two independent fair coins both showing heads have probability 1/4 and information two bits, matching one bit from each coin. Without independence, the second outcome requires a conditional probability.
An outcome assigned probability one has zero surprise. An outcome assigned exactly zero probability but then observed has infinite surprise under that model. Rare and impossible differ: the former has small positive probability, the latter exactly zero. The calculation interface must preserve that distinction.
Using base e gives nats. One bit equals ln 2 nats. Changing units multiplies information by a positive constant and does not reverse model comparisons. Check the logarithm base used by a table or program.
학부 심화 · 선택Advanced undergraduate · optional
평균 놀라움: 엔트로피Entropy as average surprise
뽑기 전에 어느 색이 나올지 모를 때, 각 결과의 놀라움에 그 결과가 나올 확률을 곱해 더합니다. 이것이 엔트로피입니다. 드문 결과가 아주 놀랍더라도 실제로 드물게 나온다는 가중치를 함께 반영합니다.
H(P)=−i:pi>0∑pilog2pi
공정 동전은 H=1비트입니다. 빨강 3/4, 파랑 1/4이면 H=−(3/4)log₂(3/4)−(1/4)log₂(1/4)≈0.811278비트입니다. 파랑 한 번의 놀라움은 2비트이지만 뽑기 전 평균은 2비트가 아닙니다. 확률표가 한 색에 집중될수록 평균 불확실성이 작아집니다.
확률이 0인 칸은 합에 기여하지 않습니다. 0×log0을 프로그램에서 그대로 곱해 NaN을 만드는 대신, xlogx의 x→0 양의 극한이 0이라는 연속 확장으로 정의합니다. 모든 질량이 한 칸에 있으면 엔트로피는 정확히 0입니다.
이 장의 실습은 질량과 확률을 정확한 분수로 보관하지만 일반적인 로그값은 근삿값입니다. “확률이 정확한 분수”라는 사실이 “엔트로피도 정확한 유리수”라는 뜻은 아닙니다. 일부 특별한 예에서만 결과가 정확한 정수 비트가 됩니다.
Before drawing, multiply each outcome’s surprise by its probability and add. This average is entropy. A rare outcome may be highly surprising, but its rarity also weights its contribution.
H(P)=−i:pi>0∑pilog2pi
A fair coin has entropy one bit. Probabilities 3/4 and 1/4 give approximately 0.811278 bits. A blue outcome alone carries two bits, but the average before drawing is not two bits. Concentrating probability on one color reduces average uncertainty.
A zero-probability cell contributes zero. Rather than directly multiplying zero by log zero and producing NaN, define the term by the right-hand limit of x log x, which is zero. All mass concentrated on one cell gives exactly zero entropy.
The lab retains exact rational masses and probabilities, while general logarithms are approximations. An exact rational probability does not imply rational entropy. Only special examples yield exact integer numbers of bits.
학부 심화 · 선택Advanced undergraduate · optional
등확률·최대 엔트로피·부호 길이Equal probabilities, maximum entropy and code length
가능한 결과가 k개이고 모두 확률 1/k라면 엔트로피는 log₂k입니다. 네 결과는 2비트, 여덟 결과는 3비트입니다. 가능한 칸의 수가 같을 때 등확률표가 가장 큰 엔트로피를 준다는 사실은 뒤에서 KL 비음성으로 증명합니다. 여기서는 결과가 한쪽에 몰리면 예측이 쉬워진다는 직관을 먼저 잡으세요.
H(P)≤log2k,H(P)=log2k⟺pi=1/k for all i
정보량은 실제 부호 길이와도 연결됩니다. 확률이 1/2, 1/4, 1/4인 세 기호에 각각 0, 10, 11을 붙이면 앞에서부터 읽어 모호함 없이 구별할 수 있습니다. 평균 길이는 (1/2)×1+(1/4)×2+(1/4)×2=1.5자리이고 엔트로피와 같습니다.
그렇다고 어떤 확률표에서나 기호 하나를 소수 자릿수 길이로 저장할 수 있는 것은 아닙니다. 한 기호에 붙이는 이진 부호 길이는 정수입니다. 양의 확률 기호에 대한 접두 부호에서는 최적 평균 길이를 H 이상, H+1 미만으로 만들 수 있습니다. 한 기호만 있으면 빈 부호를 허용하는 관례입니다. 다만, 실제 구현·메타데이터·유한 길이 비용은 별도로 듭니다.
매출이나 임금을 이진 구분으로 바꿔 계산한 엔트로피는 그 구분에 대한 정보량입니다. 잃어버린 원수치 전체를 복원하는 부호 길이도 아니고 경제적 가치도 아닙니다. 국가의 엔트로피가 크다고 더 우수한 국가라는 뜻도 없습니다.
With k equally likely outcomes, entropy is log₂k: two bits for four outcomes and three for eight. Equal probabilities maximize entropy among distributions on the same k outcomes, a fact proved later using KL nonnegativity. First note the intuition: concentration makes outcomes easier to anticipate.
H(P)≤log2k,H(P)=log2k⟺pi=1/k for all i
Information relates to actual coding. Assign codewords 0, 10 and 11 to symbols with probabilities 1/2, 1/4 and 1/4. They are unambiguous when read from the start. Average length is 1.5 binary digits, equal to entropy.
This does not mean every probability table allows a fractional-length codeword for one symbol. Individual binary codeword lengths are integers. For positive-probability symbols, an optimal prefix code has expected length at least H and less than H+1, allowing an empty code for a single-symbol alphabet. However, implementation, metadata and finite-block overhead remain separate costs.
Entropy after binning wages or sales concerns the declared categories. It is not the code length needed to recover all discarded native numbers, nor their economic value. Greater country entropy does not mean a better country.
학부 심화 · 선택Advanced undergraduate · optional
실습 A: 질량·로그 단위·표시 한계Lab A: masses, log units and display limits
먼저 질량 [1,1]을 입력해 합 2가 확률 [1/2,1/2]로 바뀌는지 확인하세요. 질량 [10,10]도 같은 엔트로피를 줍니다. 이어 [3,1], [9,1], [1,0]을 넣어 집중도가 커질 때의 변화를 비교합니다. 각 실험에서 확률표와 정보량의 단위를 함께 적으세요.
밑을 e로 바꾸어 같은 예를 계산하고 비트 결과에 ln2를 곱한 값과 비교합니다. “수치가 작아졌다”를 “불확실성이 감소했다”로 해석하면 단위를 바꾼 사실을 놓친 것입니다. 결과를 비교하려면 같은 로그 단위를 사용해야 합니다.
매우 작은 질량과 큰 질량도 넣어 보세요. 예를 들어 [1e−200,1e200]은 정규화 뒤 양의 확률 하나가 약 1e−400이 됩니다. 이 수는 일반 이진 부동소수점에서 0으로 보일 수 있지만 정확한 분수는 0이 아닙니다. 양의 엔트로피가 표시 정밀도 아래라면 “정확히 0” 대신 양수이지만 해상도가 부족하다고 보고합니다.
정확값을 펼쳐 보면 긴 분모까지 확인할 수 있습니다. 기본 표에서는 짧은 근삿값과 경계 표시를 먼저 읽고, 계산을 검증할 때만 정확한 식을 확인하세요. 모든 질량이 0인 입력과 음수 질량은 확률표를 만들 수 없으므로 거부됩니다.
Enter masses [1,1] and check that total mass two becomes probabilities [1/2,1/2]. Masses [10,10] have the same entropy. Then compare [3,1], [9,1] and [1,0] as concentration increases. Record the probability table and information unit each time.
Switch to base e and compare with the bit result multiplied by ln 2. A smaller numeric value does not mean less uncertainty when the unit has changed. Comparisons require a common logarithm unit.
Try extremely unequal masses. For [1e−200, 1e200], one normalized positive probability is about 1e−400. Binary floating-point display may show zero although the exact rational is nonzero. If positive entropy falls below the available resolution, the result reports positive but unresolved rather than exactly zero.
Expand exact values to inspect complete denominators when verifying a result. Read compact approximations and boundary flags first; long numerators are not the main learning task. All-zero and negative masses are rejected because they cannot define a probability table.
학부 심화 · 선택Advanced undergraduate · optional
맞지 않는 확률표로 예측하는 비용The cost of predicting with a mismatched table
실제 결과를 만드는 확률표를 P, 내가 예측에 사용하는 확률표를 Q라고 하겠습니다. 결과 i가 나오면 Q가 준 확률 qᵢ의 음의 로그를 비용으로 냅니다. 실제로 결과가 나오는 빈도는 P가 정하므로 평균 비용은 pᵢ로 가중합니다. 이 평균을 교차 엔트로피라고 부릅니다.
H(P,Q)=−i:pi>0∑pilog2qi
실제 공정 동전에 Q=(3/4,1/4)를 제시하면 평균 비용은 −(1/2)log₂(3/4)−(1/2)log₂(1/4)≈1.207519비트입니다. 정확한 P를 제시했을 때의 1비트보다 비쌉니다. 자신 있게 틀린 확률을 제시하는 데 비용이 생기는 셈입니다.
교차 엔트로피는 첫 확률표와 둘째 확률표의 역할을 바꾸면 일반적으로 달라집니다. P는 평균을 낼 기준이고 Q는 비용을 계산할 예측입니다. 두 확률표가 비슷한지 보는 대칭적인 거리를 계산한 것이 아닙니다.
실제 분류에서 정답이 이탈이면 −log q, 유지이면 −log(1−q)를 냅니다. 이 장의 특징 조합 선택에는 비교와 손계산이 정확한 Brier 손실 (q−y)²을 사용합니다. 두 손실은 서로 다른 점수이므로 엔트로피 값과 Brier 값을 한 열에서 크기만 비교하지 않습니다.
Let P generate outcomes and let Q be the probability table used for prediction. If outcome i occurs, pay the negative logarithm of qᵢ. Average this cost using the actual probabilities pᵢ. The resulting quantity is cross-entropy.
H(P,Q)=−i:pi>0∑pilog2qi
For an actual fair coin, predicting Q=(3/4,1/4) gives average cost approximately 1.207519 bits, more than the one bit obtained by predicting P correctly. Confidently assigning the wrong probabilities has a cost.
Swapping P and Q generally changes cross-entropy. P determines the averaging distribution; Q determines the predicted cost. This is not a symmetric distance between two probability tables.
For binary churn, log loss is −log q when churn occurs and −log(1−q) otherwise. Our feature-subset lab instead uses Brier loss (q−y)², which permits exact rational comparisons. These are different scoring rules; do not compare their numeric magnitudes as though they shared a scale.
학부 심화 · 선택Advanced undergraduate · optional
관측되지 않음·확률 0·무한 비용Unobserved outcomes, zero probability and infinite cost
표본에서 어떤 범주가 한 번도 나오지 않았다는 사실은 모집단에서 불가능하다는 증거가 아닙니다. 고객 10명 중 이탈자가 없더라도 다음 고객의 이탈 확률이 정확히 0이라고 확정할 수 없습니다. 경험 비율과 예측에 쓸 확률을 구별해야 하는 이유입니다.
P에서 양의 확률을 가진 결과에 Q가 0을 주면 평균 로그 비용은 무한대입니다. 예를 들어 P=(1/2,1/2), Q=(1,0)에서는 파랑이 나올 때 무한 비용이 발생합니다. 반대로 P=(1,0), Q=(1,0)은 실제로 발생하는 첫 칸의 비용이 0이므로 교차 엔트로피도 0입니다. 두 번째 칸의 0log0을 무한 비용으로 잘못 세지 마세요.
실무에서는 관측되지 않은 범주에 작은 양의 예측 확률을 줄 수 있습니다. 그러나 평활화는 Q를 바꾸는 모형 선택입니다. 무한 비용을 숨기려고 원래 Q의 0을 계산기 안에서 몰래 작은 수로 바꾸면 다른 질문에 답하게 됩니다. 이 장의 분포 실습은 원래 지원집합을 보존하고, 뒤의 예측 모형은 별도로 선언한 평활화 강도를 사용합니다.
실습에서 P와 Q를 각각 입력한 다음 0의 위치를 바꿔 보세요. 교차 엔트로피와 KL이 언제 무한대가 되는지, 엔트로피 H(P)는 왜 Q를 바꾸어도 변하지 않는지 설명해 보세요. 무한대는 입력 오류와도 다릅니다. 합법적인 확률표 둘을 비교한 수학적 결과입니다.
A category absent from a sample is not proved impossible in the population. Observing no churn among ten customers does not establish zero churn probability for the next customer. Empirical frequencies and predictive probabilities have different roles.
If P gives positive probability to an outcome that Q declares impossible, average log cost is infinite. P=(1/2,1/2), Q=(1,0) incurs infinite cost on blue. In contrast, P=(1,0), Q=(1,0) has zero cross-entropy because the only occurring outcome costs zero. Do not count a zero-mass 0 log 0 term as infinite cost.
Prediction models can smooth unseen categories with positive probabilities, but smoothing changes Q. Replacing zeros by a hidden epsilon to conceal infinity answers a different question. Our distribution lab preserves the supplied support; the later predictive model declares its smoothing strength separately.
Change the locations of zeros in P and Q. Explain when cross-entropy and KL become infinite, and why H(P) remains unchanged when only Q changes. Infinity is not an input error: it can be the valid mathematical comparison of two valid probability distributions.
학부 심화 · 선택Advanced undergraduate · optional
KL: 잘못된 예측의 추가 평균 비용KL as excess expected prediction cost
앞 절의 공정 동전을 다시 보겠습니다. 실제 확률 P를 썼을 때 평균 로그 비용은 1비트였고, Q=(3/4,1/4)를 썼을 때는 약 1.207519비트였습니다. 이 차이를 KL 발산이라고 합니다. P를 기준으로, 잘못된 Q가 얼마나 더 비싼지를 측정합니다.
식은 로그의 나눗셈 법칙으로 나옵니다. −log qᵢ를 −log pᵢ+log(pᵢ/qᵢ)로 나누고 pᵢ로 평균하면 됩니다. 이 장에서는 유한 칸의 확률표를 먼저 다루므로 H(P)는 유한합니다. Q가 P의 양의 확률 칸에 0을 주면 교차 엔트로피와 KL이 함께 무한대이며, 이를 유한값처럼 빼지 않습니다.
어떤 결과에서는 Q가 P보다 큰 확률을 주어 log(pᵢ/qᵢ)가 음수가 될 수 있습니다. KL의 각 항이 모두 음수가 아니라는 주장은 틀립니다. 비음성은 모든 항을 P로 가중한 합에 대한 정리입니다. 다음 절에서 그 이유를 증명하겠습니다.
KL은 일반적인 거리 함수가 아닙니다. 방향을 바꾸면 보통 값이 달라지고, 삼각부등식을 항상 만족하지도 않습니다. 발산이 작다는 사실을 정책의 비용이나 인과효과가 작다는 주장으로 옮기려면 별도의 손실·의사결정 연결이 필요합니다.
Return to the fair coin. Predicting its true P costs one bit on average; using Q=(3/4,1/4) costs about 1.207519 bits. KL divergence is this excess cost, averaged under P.
The identity follows by writing −log qᵢ=−log pᵢ+log(pᵢ/qᵢ), then averaging with pᵢ. On our finite alphabet H(P) is finite. A zero-Q cell with positive P makes both cross-entropy and KL infinite; do not subtract them as finite values.
A cell where Q exceeds P has a negative log ratio. Individual KL terms need not be nonnegative. The theorem concerns their complete P-weighted sum, proved next.
KL is not a general metric. Reversing direction usually changes it, and it need not satisfy a triangle inequality. Turning small divergence into a claim about policy costs or causal effects requires a separate decision and loss argument.
학부 심화 · 선택Advanced undergraduate · optional
왜 KL은 음수가 아닌가Why KL is nonnegative
먼저 자연로그의 기본 부등식 ln t≤t−1을 사용합니다. t>0에서 두 곡선은 t=1에 접하고, 그 점에서만 등호가 됩니다. 미분하면 (t−1−ln t)′=1−1/t이므로 t=1까지 감소하고 그 뒤 증가한다는 것으로 확인할 수 있습니다. 로그의 오목성에서 나오는 같은 성질이기도 합니다.
lnt≤t−1(t>0),equality iff t=1
아래 증명에서 KL은 자연로그 단위인 nat로 씁니다. 비트 단위의 KL은 이를 양수 ln 2로 나눈 값이므로 비음성과 등호 조건이 같습니다. P가 양수인 모든 칸에서 Q도 양수라고 가정합니다. 각 칸에 t=qᵢ/pᵢ를 넣고 pᵢ를 곱해 더하면 아래 식을 얻습니다. P가 0인 칸에도 Q의 질량이 있을 수 있으므로, 중간 합을 처음부터 1이라고 놓지 않는 것이 중요합니다.
−DKL(P∥Q)≤i:pi>0∑(qi−pi)=i:pi>0∑qi−1≤0
따라서 KL≥0입니다. 등호가 되려면 P의 모든 양수 칸에서 qᵢ/pᵢ=1이어야 하고, 그 밖에 남는 Q 질량도 없어야 합니다. 즉 같은 선언된 지원집합에서 P=Q입니다. Q가 0인 양의 P 칸이 있다면 KL=+∞이므로 비음성은 그 경우에도 맞습니다.
Jensen 부등식으로도 증명할 수 있습니다. 오목한 ln에 P 가중치를 적용하면 Σpᵢln(qᵢ/pᵢ)≤lnΣqᵢ≤0입니다. MATH23에서 배운 볼록·오목 함수와 기대값의 순서를 여기서 사용합니다. 유한 합의 증명을 이해한 뒤 연속형에서 적분 가능성과 절대연속성을 추가하세요.
Start with ln t≤t−1 for t>0, with equality only at one. Differentiating t−1−ln t gives 1−1/t: the function decreases until one and then increases. The same property follows from concavity of the logarithm.
lnt≤t−1(t>0),equality iff t=1
In this proof KL uses natural logarithms and is measured in nats. Dividing by the positive constant ln 2 gives bits, preserving nonnegativity and the equality condition. Assume Q is positive wherever P is positive. Substitute t=qᵢ/pᵢ, multiply by pᵢ and sum. Q can put mass outside the positive-P support, so the intermediate Q sum need not equal one.
−DKL(P∥Q)≤i:pi>0∑(qi−pi)=i:pi>0∑qi−1≤0
Hence KL≥0. Equality requires qᵢ/pᵢ=1 on every positive-P cell, with no remaining Q mass outside it: P=Q on the declared support. If a positive-P cell has qᵢ=0, KL=+∞ and nonnegativity still holds.
Jensen gives another proof: concavity implies Σpᵢln(qᵢ/pᵢ)≤lnΣqᵢ≤0. This applies the convexity and expectation ordering studied in MATH23. Understand finite sums before adding integrability and absolute-continuity conditions for continuous distributions.
학부 심화 · 선택Advanced undergraduate · optional
등호·비대칭·최대값의 조건Equality, asymmetry and an entropy maximum
같은 확률표 P=Q를 비교하면 모든 양의 칸의 비율이 1이고 log1=0이므로 KL은 정확히 0입니다. 반대로 KL=0이면 두 표가 같습니다. 이 정리는 합이 1인 올바른 확률표에 대한 것입니다. 정규화하지 않은 원래 질량 [1,1]과 [10,10]이 달라도 같은 확률표를 만들 수 있습니다.
비대칭은 P=(1,0), Q=(1/2,1/2)에서 바로 보입니다. KL(P∥Q)=1비트이지만 KL(Q∥P)=+∞입니다. 앞의 것은 가능한 실제 첫 칸에 대한 비용이고, 뒤의 것은 P가 불가능이라 선언한 둘째 칸을 Q가 실제로 생성하는 경우입니다.
최대 엔트로피도 이제 증명할 수 있습니다. k칸 등확률표 U에 대해 KL(P∥U)=log₂k−H(P)이므로 H(P)≤log₂k입니다. 등호는 P=U일 때만 가능합니다. 칸의 수를 고정한 비교이며, 서로 다른 구간 나누기나 서로 다른 표적의 엔트로피를 이 정리만으로 순위 매기지 않습니다.
DKL(P∥Uk)=log2k−H(P)≥0
수치 화면에서는 매우 가까운 서로 다른 확률표의 KL이 0처럼 반올림될 수 있습니다. 엔진은 두 확률표의 정확한 분수를 비교해 “정확히 같은 표”와 “양수이지만 근사 해상도 부족”을 분리합니다. 부동소수점의 작은 음수를 곧바로 수학적 반례라고 보거나, 아무 표시 없이 0으로 고치지 않습니다.
When P=Q, every positive-cell ratio is one and KL is exactly zero. Conversely, zero KL implies the same probability table. The theorem concerns normalized probabilities: different raw masses such as [1,1] and [10,10] can normalize to the same P.
Asymmetry is immediate for P=(1,0), Q=(1/2,1/2). KL(P∥Q)=1 bit while KL(Q∥P)=+∞. The first evaluates a possible first outcome; the reverse encounters an outcome declared impossible by P.
Let U be uniform on k cells. KL(P∥U)=log₂k−H(P), proving H(P)≤log₂k, with equality only at uniformity. This fixes the alphabet size; it does not justify ranking different binnings or different targets solely by entropy.
DKL(P∥Uk)=log2k−H(P)≥0
Numerically, distinct but nearly equal probability tables can have KL displayed as zero. The engine compares exact rational PMFs to distinguish identical tables from positive divergence below approximation resolution. A tiny negative floating-point sum is neither automatically a mathematical counterexample nor something to conceal with an unreported clamp.
학부 심화 · 선택Advanced undergraduate · optional
실습: 교차 엔트로피와 KL을 함께 읽기Reading cross-entropy and KL together
실습 A에서 P=[1,1], Q=[3,1]을 넣으세요. P의 엔트로피, P를 기준으로 한 교차 엔트로피, KL을 한 줄로 적습니다. 같은 로그 단위에서 H(P)+KL이 교차 엔트로피의 근삿값과 일치하는지 확인합니다. 반올림된 숫자끼리 빼기보다 보존된 정확한 로그 항을 함께 보세요.
P와 Q를 바꾸면 어떤 값이 바뀌는지 예측한 뒤 계산합니다. 이어 P=[1,0], Q=[1,1]과 그 역방향을 비교합니다. 유한한 1비트와 무한대의 차이를 확인하면 KL이 대칭 거리가 아니라는 사실이 선명해집니다.
마지막에는 P=[1,1], Q=[1,1.000000000000000000000000000000000000000000000000001]처럼 아주 가까운 두 표를 비교하세요. 정확한 확률은 다르므로 KL은 양수입니다. 그러나 두 방향의 작은 로그 항을 더하는 이진 근사 계산에서 차이가 사라질 수 있습니다. 이때 “양수, 수치 해상도 부족”이라는 결과가 오히려 수학적 구분을 충실히 보존합니다.
P의 지지 확률을 바꾸지 않고 로그의 밑만 바꾸면 0 여부·무한대 여부·같음의 조건은 그대로입니다. 지원집합, 방향, 단위, 근사 상태를 나누어 기록하는 습관이 뒤의 실제 정보량 표에도 필요합니다.
In Lab A enter P=[1,1], Q=[3,1]. Record entropy, cross-entropy averaged under P, and KL using a common logarithm unit. Check that H(P)+KL matches cross-entropy numerically. Inspect preserved exact log terms instead of relying only on subtraction of rounded displays.
Predict what changes when P and Q are swapped, then compute. Compare P=[1,0], Q=[1,1] with the reverse. Finite one-bit divergence in one direction and infinity in the other make the lack of symmetry clear.
Finally compare nearly equal tables such as P=[1,1] and Q=[1,1.000000000000000000000000000000000000000000000000001]. Their exact normalized probabilities differ, so KL is positive. Binary 64 cancellation can erase the small sum of signed log terms. Reporting positive but unresolved preserves the mathematical distinction.
Changing only the logarithm base leaves zero, infinity and equality conditions unchanged. Record support, direction, unit and approximation status separately; the same discipline applies to the actual information tables.
학부 심화 · 선택Advanced undergraduate · optional
결합표에서 주변확률·조건부확률로From joint tables to marginal and conditional probabilities
한 장의 카드에 색 X와 모양 Y가 함께 적혀 있다고 합시다. 빨강·원 2장, 빨강·네모 1장, 파랑·원 1장, 파랑·네모 0장이면 전체는 4장입니다. 각 조합의 비율이 결합확률이고, 색을 무시해 모양별로 더한 것이 주변확률입니다.
이 표에서 P(X=빨강)=3/4, P(Y=원)=3/4입니다. 빨강 카드로 범위를 좁히면 P(Y=원|X=빨강)=2/3입니다. 분모가 전체 4장에서 빨강 3장으로 바뀐 것입니다. 조건을 붙인 뒤에도 전체 4장을 분모로 쓰면 조건부 확률이 아닙니다.
조건의 확률이 0이면 그 조건 안에서 표본 비율을 정의할 수 없습니다. 컴퓨터가 보기 좋게 0이나 1/2로 채워 넣는다면 추가 모형을 도입한 것입니다. 이 장의 정보량 계산은 양의 조건 질량 안에서만 조건부 항을 평균합니다.
빈도에 분석 가중치를 곱해 질량을 만들 수도 있습니다. 그러나 가중치가 음수이면 확률이 아니며, 가중치를 썼다는 사실만으로 표본 설계의 편향이 사라지지도 않습니다. 실제 사례는 단위 질량으로 계산하고 원래 가중치는 따로 보존합니다.
Suppose cards carry both color X and shape Y: two red circles, one red square, one blue circle and no blue squares. There are four cards. Fractions for combinations are joint probabilities. Summing over colors gives the marginal distribution of shape.
Here P(red)=3/4 and P(circle)=3/4. Restricting attention to red cards gives P(circle|red)=2/3. The denominator changes from all four cards to the three red cards. Keeping four as the denominator after conditioning does not give a conditional probability.
A zero-probability condition has no within-condition empirical proportion. Filling it with zero or one-half adds a model. Information calculations average only within conditions carrying positive mass.
Analytical weights can define weighted masses, but negative weights do not form probabilities, and weighting alone does not remove sampling bias. Our actual calculations use unit mass while retaining original survey weights separately.
학부 심화 · 선택Advanced undergraduate · optional
상호정보량: 알게 된 뒤 줄어든 불확실성Mutual information as uncertainty reduction
표적 Y를 알기 전에 평균적으로 얼마나 불확실한지는 H(Y)입니다. 특징 X를 먼저 들은 뒤 남는 평균 불확실성은 H(Y|X)입니다. 둘의 차이 I(X;Y)는 X가 Y에 관해 알려 주는 평균 정보량입니다. 조건별 엔트로피를 단순 평균하지 않고 그 조건의 확률로 가중해야 합니다.
오른쪽 식은 실제 결합표와 “둘이 독립이라면 생길 결합표” 사이의 KL입니다. 따라서 상호정보량은 음수가 아니고, 유한 이산 표에서 0이면 정확한 독립입니다. 상관계수가 0이라는 조건보다 강한 결합분포의 조건입니다.
X가 Y를 완전히 결정하면 H(Y|X)=0이므로 I(X;Y)=H(Y)입니다. 반대로 I가 크다고 그 모형을 새 자료에서 이미 잘 예측한다는 뜻은 아닙니다. 여기서 사용한 표가 훈련 표본인지, 모집단 법칙인지, 보유 자료인지가 중요합니다.
“알려 준다”는 말은 통계적 연관입니다. 비가 올 때 우산이 많다는 특징은 유용한 정보를 줄 수 있지만 우산을 늘려 비를 내리게 할 수 있다는 인과 주장은 아닙니다. 실제 개인의 교육과 임금, 고객의 불만과 이탈에도 같은 구분을 적용합니다.
H(Y) measures average uncertainty before learning a feature. H(Y|X) measures what remains after X is known. Their difference I(X;Y) is the average information X supplies about Y. Weight conditional entropies by condition probabilities rather than averaging them equally.
The right-hand side is KL between the actual joint distribution and the joint distribution implied by independence. Hence mutual information is nonnegative, and in a finite discrete table zero means independence. This is a stronger distributional condition than zero correlation.
If X determines Y, conditional entropy is zero and mutual information equals H(Y). High empirical information does not establish good performance on new data. Identify whether the table represents training data, held-out observations or a population law.
Supplies information describes statistical association. Umbrellas can be informative about rain without causing rain. Apply the same distinction to schooling and wages, and complaints and churn.
공정한 두 비트 X₁,X₂를 독립적으로 뽑고, 서로 다르면 Y=1, 같으면 Y=0으로 정합니다. 네 조합 00,01,10,11은 각각 확률 1/4입니다. X₁만 보아도 Y는 여전히 반반이고 X₂만 보아도 마찬가지입니다. 따라서 두 개별 상호정보량은 0입니다.
그러나 두 비트를 함께 알면 Y를 정확히 계산할 수 있습니다. 결합 특징 (X₁,X₂)의 상호정보량은 H(Y)=1비트입니다. 개별 점수가 높은 특징만 고르는 필터는 이 상호작용을 놓칠 수 있습니다. 모형이 어떤 조합을 표현하는지도 중요합니다.
I(X1;Y)=I(X2;Y)=0,I((X1,X2);Y)=1 bit
반대 사례도 있습니다. X₂가 X₁의 정확한 복사본이고 Y=X₁이면 각 특징은 모두 1비트를 주지만 둘을 합쳐도 1비트뿐입니다. 개별 정보량을 더하면 2비트라고 잘못 셉니다. 두 질문이 같은 답을 반복해서 알려 주기 때문입니다.
추가 특징의 가치는 이미 아는 특징에 조건을 붙인 상호정보량으로 볼 수 있습니다. XOR에서는 X₁을 안 뒤 X₂가 1비트를 더 주지만 복사본 예에서는 0비트입니다. 다만 표본에서 이 값을 추정할 때는 칸의 수와 작은 표본의 편향을 다시 고려해야 합니다.
Draw independent fair bits X₁ and X₂, and define Y=1 when they differ, zero otherwise. The four combinations 00,01,10,11 each have probability 1/4. Knowing either bit alone leaves Y equally likely to be zero or one. Each marginal mutual information is zero.
Knowing both bits determines Y exactly. Their joint mutual information is H(Y)=1 bit. A filter retaining only individually informative features can miss this interaction. The combinations a predictive model can represent also matter.
I(X1;Y)=I(X2;Y)=0,I((X1,X2);Y)=1 bit
For the opposite example, let X₂ copy X₁ exactly and set Y=X₁. Each feature supplies one bit, but both together still supply only one bit. Summing marginal scores would double-count the same answer.
Conditional mutual information measures the additional information after another feature is known. In XOR the second bit adds one bit after the first; a copy adds zero. Estimating these quantities still raises questions about cell counts and finite-sample bias.
실습 B에 XOR 네 행을 넣고 특징 0만 선택합니다. 주변표와 결합표의 분수를 먼저 손으로 확인한 뒤 I(X₁;Y)=0인지 보세요. 특징 1도 같은 결과를 줍니다. 두 특징을 함께 선택하면 결합표의 X는 두 숫자를 묶은 범주이며 정보량은 1비트가 됩니다.
다음에는 특징 0을 관심 특징, 특징 1을 조건으로 선택합니다. 조건별 두 행에서 Y가 X₁에 의해 결정되므로 I(X₁;Y|X₂)=1비트입니다. 주변 독립과 조건부 독립은 같은 말이 아닙니다. 특징 열의 순서를 바꾸더라도 정보량 자체가 달라지지는 않지만 표의 좌표 순서는 선언된 순서를 따라야 합니다.
행 하나의 분석 질량을 0으로 만들면 그 행은 표에 질량을 더하지 않습니다. 관측은 보존되지만 분석 분모는 바뀝니다. 표적이 결측인 행도 빈칸을 클래스로 바꾸지 않고 대상에서 제외합니다. 반면 일반 실습의 결측 특징은 명시적인 범주로 볼 수 있다는 계약을 함께 읽으세요. 실제 사례는 필요한 원특징이 결측이면 사전에 제외 역할을 부여합니다.
실습은 표본의 결합표에서 정확한 독립을 검사합니다. 이 검사는 유한 표에서의 대수적 등식이며 모집단 독립성에 대한 유의확률이 아닙니다. 확률표가 원자료에서 어떻게 만들어졌는지와, 그 표에서 어떤 계산을 했는지를 구분해 정리하세요.
Enter the four XOR rows in Lab B and select feature zero. Verify the rational marginal and joint tables by hand before checking I(X₁;Y)=0. Feature one gives the same answer. Selecting both treats the pair as one joint category and gives one bit.
Now use feature zero as the feature of interest and feature one as the condition. Within each two-row condition, X₁ determines Y, giving I(X₁;Y|X₂)=1 bit. Marginal and conditional independence differ. Reordering feature coordinates preserves information but the displayed tuple must follow the declared order.
Setting a row’s analytical mass to zero removes its mass contribution while preserving the observation. Missing targets are excluded rather than turned into a class. Generic missing predictors can be explicit categories; read that contract separately. Actual source rows missing required native predictors are assigned an excluded role beforehand.
The lab tests exact independence of an empirical table through algebraic equalities. This is not a population-independence p-value. Distinguish how source observations become a probability table from what is computed once that table is fixed.
학부 심화 · 선택Advanced undergraduate · optional
경험 정보량은 모집단 정보량이 아니다Empirical information is not population information
확률을 알고 있는 카드 상자와 자료에서 빈도를 센 고객 표는 출발점이 다릅니다. 후자에서는 결합표 자체가 표본에 따라 흔들립니다. 경험 비율을 엔트로피 공식에 대입하는 방법을 플러그인 추정이라고 부릅니다. 계산을 정확한 분수로 했더라도 모집단 정보량을 오차 없이 알아낸 것은 아닙니다.
특히 칸의 수가 표본 수에 비해 크면 빈칸이 많아집니다. 관측되지 않은 결과를 확률 0으로 놓아 경험 엔트로피를 낮추거나, 우연한 결합 패턴을 상호정보량으로 읽을 수 있습니다. 편향의 방향과 크기는 어떤 양을 추정하는지, 지원집합과 추정법이 무엇인지에 따라 구별해야 합니다.
정규적인 유한 범주·큰 표본 조건에서는 엔트로피의 작은 표본 편향을 근사하는 공식도 있습니다. 그러나 관측 범주의 수만 넣으면 모든 희소 표·가중 표·의존 자료를 해결한다는 뜻은 아닙니다. 이 장의 실제 표는 보정된 모집단 정보량이라고 부르지 않고 선언된 표본의 가중 경험 정보량이라고 표시합니다.
자료를 다시 뽑을 수 있는 설계라면 표본 불확실성을 탐색할 수 있습니다. 같은 사람의 반복 자료를 섞어 독립 관측처럼 재표집하면 안 됩니다. 무엇을 다시 뽑을지, 추출 가정이 무엇인지 먼저 정해야 하며, 이 장의 두 고정 순환 순열을 그런 재표집 법칙으로 오해하지 마세요.
A card box with known probabilities differs from a customer table whose frequencies were observed. In the latter, the joint table varies across samples. Substituting empirical proportions into an entropy formula is plug-in estimation. Exact rational computation does not reveal population information without sampling error.
Many categories relative to sample size create sparse cells. Treating unseen outcomes as probability zero can depress empirical entropy, while accidental joint patterns can appear informative. Distinguish the quantity, support and estimator before discussing the direction or magnitude of bias.
Large-sample formulas approximate small-sample entropy bias under regular finite-alphabet assumptions. Simply inserting the observed category count does not solve every sparse, weighted or dependent-data problem. Our actual tables are labeled weighted empirical information, not bias-corrected population information.
When the design supports resampling, it can explore sampling uncertainty. Repeated observations from one person cannot be resampled as independent people without justification. Specify the resampling unit and assumptions; our two fixed cyclic permutations are not such a sampling law.
학부 심화 · 선택Advanced undergraduate · optional
식별자는 왜 훈련 정보를 다 외우는가Why an identifier can memorize training information
훈련 행 네 개에 서로 다른 이름 A,B,C,D를 붙이고 표적을 0,0,1,1로 적습니다. 경험 표에서 이름을 알면 어느 행인지 알 수 있고 표적도 정확히 찾아낼 수 있습니다. 따라서 식별자와 표적의 경험 상호정보량은 H(Y)=1비트입니다. 이 수치만 보면 이름이 훌륭한 특징처럼 보입니다.
그러나 새 사람 E가 오면 훈련 표에는 E의 행이 없습니다. 이 이름만으로 그 사람의 표적을 알 수 없습니다. 높은 경험 정보량은 이미 본 행을 구별하는 능력에서 나왔으며 새 관측에 전이되는 관계를 확인한 것이 아닙니다. 사람 ID나 국가 코드가 유용한 맥락도 있지만, 반복 관측과 새 개체를 구별해 평가해야 합니다.
이 장의 원자료 ID는 행을 연결하고 누락을 확인하는 데 사용합니다. 실제 사례의 예측 특징에는 국가 코드나 임의 고객 행 번호를 넣지 않습니다. 개인 원자료 1행의 원 ID가 2라는 정보도 보존하지만, 그 숫자 크기를 교육 수준이나 임금의 원인으로 사용하지 않습니다.
높은 범주 수를 가진 특징은 우연한 훈련 패턴을 많이 담을 수 있습니다. 필터 점수의 표본 프레임을 밝히고, 특징을 고르는 단계까지 포함해 보유 자료에서 성능을 평가하세요. 식별자 암기를 “해석 가능한 발견”이라고 이름만 바꾸어도 문제가 해결되지는 않습니다.
Give four training rows distinct names A, B, C, D and targets 0,0,1,1. In the empirical table, a name identifies the row and therefore its target. Identifier–target information equals H(Y)=1 bit. By that score alone, the name appears excellent.
A new person E has no training row. The name alone does not reveal E’s target. The high empirical score came from distinguishing seen rows, not from a relationship shown to transfer to new observations. IDs can encode useful context, but evaluation must distinguish repeated entities from new ones.
Our source IDs link records and reveal omissions. Country codes and arbitrary customer row numbers are not predictive inputs in the actual examples. We preserve the fact that NLS source row one has native ID two, without treating that number as schooling or a cause of wages.
High-cardinality features can capture many accidental training patterns. Declare the filtering frame and evaluate the entire feature-selection process on held-out data. Calling memorization an interpretable discovery does not repair it.
학부 심화 · 선택Advanced undergraduate · optional
구간 나누기와 연속형 엔트로피Binning and differential entropy
연속형 임금을 구간으로 나누면 범주 확률표를 만들 수 있습니다. 5달러 미만/이상으로 나눈 표와 1달러 간격으로 나눈 표는 서로 다른 질문입니다. 구간을 세분하면 잃는 정보가 줄 수 있지만 희소한 칸과 추정의 어려움은 늘어납니다. 실제 사례의 500센트 기준은 미리 정한 교육용 구분이지 최적 임금 기준의 추정이 아닙니다.
연속 밀도 f에는 미분 엔트로피 h(X)=−∫f log f라는 별도의 양을 정의할 수 있습니다. 밀도는 확률 자체가 아니라 단위 길이당 질량이므로 1보다 클 수 있습니다. 그 결과 미분 엔트로피는 음수일 수도 있습니다. 이산 엔트로피의 비음성 정리를 그대로 옮길 수 없습니다.
h(X)=−∫f(x)lnf(x)dx,X∼Unif(0,a)⇒h(X)=lna
예를 들어 (0,1/2)의 균등분포는 밀도 2이고 h=−ln2입니다. 이는 “음수 비트의 사실을 배웠다”는 뜻이 아니라 선택한 수치 단위에 의존하는 밀도 기반 양입니다. 모든 연속 변수의 미분 엔트로피가 유한하게 존재하는 것도 아닙니다.
매끄러운 밀도에서 매우 작은 동일 폭 Δ로 나눈 경우에는 이산화 엔트로피가 대략 h(X)−lnΔ와 연결될 수 있습니다. 이것은 정칙성과 근사 조건이 필요한 관계입니다. 웹 실습의 이산 범주 계산기가 자동으로 연속 상호정보량 추정기가 되는 것은 아닙니다.
Binning continuous wages creates a categorical probability table. Below/above five dollars and one-dollar intervals answer different questions. Finer bins can discard less information while creating sparsity and estimation difficulties. Our 500-cent threshold is a predeclared teaching choice, not an estimated optimal wage cutoff.
For a continuous density f, differential entropy is the distinct quantity h(X)=−∫f log f. A density is mass per unit length, not a probability, and can exceed one. Differential entropy can therefore be negative; the nonnegativity theorem for discrete entropy does not transfer unchanged.
h(X)=−∫f(x)lnf(x)dx,X∼Unif(0,a)⇒h(X)=lna
Uniform(0,1/2) has density two and differential entropy −ln 2. This is not negative factual knowledge: it is a density-based quantity depending on numerical units. Differential entropy also need not exist as a finite number.
For a sufficiently regular density and fine equal-width bins, discretized entropy can approximate h(X)−lnΔ. Conditions matter. Our categorical web calculator is not automatically a continuous mutual-information estimator.
학부 심화 · 선택Advanced undergraduate · optional
단위를 바꾸면 무엇이 보존되는가What is preserved when units change
같은 길이를 미터와 센티미터로 표현해 봅시다. Y=100X이면 연속 밀도의 높이도 변합니다. 정칙성과 유한한 관련 적분을 가정하면 h(Y)=h(X)+ln100입니다. 더 많은 사실을 관측하지 않았는데도 미분 엔트로피 값이 달라지는 이유는 좌표의 척도가 바뀌기 때문입니다.
h(aX+b)=h(X)+ln∣a∣(a=0)
반면 가역적인 좌표 변환은 그 변수가 다른 변수에 관해 담은 정보 자체를 잃게 하지 않습니다. 적절한 밀도·지원집합 조건 아래 KL과 상호정보량에서는 변환의 Jacobian 항이 분자와 분모에서 상쇄됩니다. 미분 엔트로피 한 항의 단위 의존성과 정보량 전체의 불변성을 구분하세요.
구간 나누기는 가역 변환이 아닙니다. 임금 5.01과 100을 모두 “5 이상”이라고 바꾸면 원래 수치를 되찾을 수 없습니다. 이름을 바꾸는 것과 정보를 압축해 버리는 것은 다른 연산입니다. 원표를 보존하는 이유도 여기에 있습니다.
실제 표에서 명목 센트를 달러로 바꾸는 것과 임금을 이진화하는 것을 따로 기록하세요. 앞은 알려진 배율의 단위 변환이고 뒤는 비가역적인 특징·표적 설계입니다. 교과서의 수식에서 가역성 가정을 빠뜨리면 두 행동을 잘못 같은 것으로 취급할 수 있습니다.
Express a length in meters and centimeters. With Y=100 X, density heights change too. Under the relevant regularity and finite-integral conditions, h(Y)=h(X)+ln 100. The value changes without a new observation because the coordinate scale changed.
h(aX+b)=h(X)+ln∣a∣(a=0)
An invertible coordinate transformation does not discard what a variable says about another. Under appropriate density and support conditions, Jacobian terms cancel in KL and mutual information. Distinguish unit dependence of a single differential entropy from invariance of the complete information quantity.
Binning is not invertible. Mapping both wages 5.01 and 100 to “at least five” prevents recovering the native value. Renaming coordinates differs from discarding information. This is one reason to preserve the original table.
Record cents-to-dollars conversion separately from wage binning. The former is a known invertible scale change; the latter is a lossy feature or target design. Omitting invertibility would conflate them.
학부 심화 · 선택Advanced undergraduate · optional
정보의 연쇄법칙과 데이터 처리 부등식Information chain rules and data processing
두 특징을 함께 알 때 얻는 정보는 첫 특징의 정보와 첫 특징을 안 뒤 둘째가 더하는 정보의 합입니다. 어떤 특징을 먼저 놓는지에 따라 두 항은 달라도 총합은 같습니다. XOR와 복사본 예제가 이 식을 손으로 확인하기 좋은 사례입니다.
I((X1,X2);Y)=I(X1;Y)+I(X2;Y∣X1)
이제 X를 압축해 T=g(X)를 만든다고 합시다. Y를 보지 않고 X만 처리했다면 T가 Y에 관해 원래 X보다 더 많은 모집단 정보를 만들 수는 없습니다. 유한 이산 변수에서는 아래 부등식이 성립합니다. 무작위 처리를 허용할 때도 T와 Y가 X를 조건으로 독립이라는 조건이 필요합니다.
Y−X−T is a Markov chain⇒I(T;Y)≤I(X;Y)
증명은 I((X,T);Y)를 두 순서로 전개하면 됩니다. T가 X만으로 생성되어 I(T;Y|X)=0이므로 이 값은 I(X;Y)입니다. 반대 순서에서는 I(T;Y)+I(X;Y|T)이고 뒤 항이 음수가 아니므로 부등식이 나옵니다. 등호는 남은 조건부 정보가 0일 때입니다.
이 부등식은 모집단뿐 아니라 고정된 하나의 경험분포에도 적용됩니다. 같은 행에서 T가 X만의 결정적 함수라면, 그 함수를 정답을 보며 고른 경우에도 그 경험표의 I(T;Y)는 I(X;Y)를 넘지 않습니다. 다만 정답을 보며 변환을 고르면 높은 훈련 정보량이 보유 자료로 전이된다는 보장은 없고, T를 만들 때 X 외의 Y를 직접 입력하면 가정 자체가 달라집니다. 개별 특징의 정보량이나 상관과의 비교를 전체 X의 정보량과의 비교로 혼동하지 마세요.
Joint feature information splits into information from the first feature plus additional information from the second given the first. Changing order can alter the terms but not their sum. XOR and duplicate features make useful hand checks.
I((X1,X2);Y)=I(X1;Y)+I(X2;Y∣X1)
Now compress X to T=g(X). Processing X without observing Y cannot create more population information about Y. For finite discrete variables, the data-processing inequality holds. Random processing also requires T and Y to be conditionally independent given X.
Y−X−T is a Markov chain⇒I(T;Y)≤I(X;Y)
Expand I((X, T);Y) in both orders. Because T is generated from X alone, I(T;Y|X)=0, giving I(X;Y). The reverse expansion gives I(T;Y)+I(X;Y|T), whose final term is nonnegative. Equality means no remaining conditional information.
The inequality applies both to a population law and to a fixed empirical distribution. If T is a deterministic function of X on those same rows, its empirical I(T;Y) cannot exceed I(X;Y), even if that function was selected after inspecting the labels. Label-adaptive selection can nevertheless overfit: high training information need not transfer to held-out data. Directly feeding Y in addition to X into T changes the assumption. Do not confuse comparison with an individual feature or correlation with comparison against information in the full X.
학부 심화 · 선택Advanced undergraduate · optional
필터·부분집합·모형에 내장된 선택Filters, wrappers and embedded selection
필터는 예측 모형을 맞추기 전에 특징 점수를 계산합니다. 표적과의 상호정보량이나 단순 상관을 사용할 수 있습니다. 빠르게 후보를 좁히는 데 유용하지만, 개별 점수만으로 XOR 상호작용이나 복사본의 중복을 해결하지는 못합니다. 어떤 표본에서 어떤 구간으로 점수를 만들었는지도 결과의 일부입니다.
래퍼는 특징 조합마다 예측 모형을 맞추고 성능을 비교합니다. 이 장에서는 최대 네 개의 범주 특징에 대해 모든 조합을 선언하고, 각 조합의 훈련 확률표를 만든 뒤 검증 Brier 손실로 고릅니다. 탐색 공간이 작기 때문에 전수 비교가 가능하며, 모든 머신러닝 모형을 망라한 최적 선택이라는 뜻은 아닙니다.
내장 선택은 모형 학습 과정에 변수 선택이나 축소를 결합합니다. 희소 선형모형의 벌점처럼 매개변수와 선택을 함께 결정할 수 있습니다. 그렇다고 0이 아닌 계수가 인과적으로 중요한 변수라는 보장은 없습니다. 스케일·상관·벌점·학습 표본에 따라 선택이 바뀔 수 있습니다.
선택 목적에는 예측 정확도뿐 아니라 측정 비용, 자료 수집 가능성, 개인정보, 해석과 안정성도 들어갈 수 있습니다. 이 장의 수치 선택은 선언된 검증 Brier 하나를 최소화합니다. 다른 목적이 있다면 점수에 몰래 포함하지 말고 제약이나 별도 비교 항목으로 밝히세요.
Filters score features before fitting a predictive model, using mutual information or simple correlation, for example. They can reduce candidate sets quickly, but marginal scores alone do not solve XOR interactions or duplication. The scoring sample and binning are part of the procedure.
Wrappers fit predictors for feature subsets and compare performance. Here we enumerate all subsets of at most four categorical predictors, fit training probability tables, and select by validation Brier loss. Exhaustive comparison is feasible in this small declared space; it is not universal optimal feature selection across all model classes.
Embedded methods combine selection or shrinkage with fitting, as in penalized sparse linear models. A nonzero coefficient is not guaranteed to be causally important. Scaling, correlation, penalties and training samples can change the selection.
Prediction accuracy is not the only objective: measurement costs, availability, privacy, interpretation and stability can matter. Our numeric choice minimizes one declared validation Brier criterion. State other aims as explicit constraints or additional comparisons rather than silently changing the score.
학부 심화 · 선택Advanced undergraduate · optional
누출 없는 선택과 같은 평가 분모Selection without leakage and with a common denominator
시험 자료의 정답을 보며 가장 좋은 특징을 고르면, 그 시험 자료는 선택에 사용된 자료입니다. 나중에 “시험 오차”라고 이름을 붙여도 선택 편향이 사라지지 않습니다. 훈련에서 모형을 맞추고 검증에서 조합을 고른 다음, 그 결정에 손대지 않은 시험 결과를 보고하는 순서가 필요합니다.
특징 조합마다 결측 행을 다르게 버리면 평가 대상도 달라집니다. 좋은 조합처럼 보이는 이유가 어려운 행을 더 많이 제외했기 때문일 수 있습니다. 이 장의 실제 사례는 필요한 원특징과 표적의 공통 관측 조건을 먼저 선언하고, 모든 후보를 같은 역할·질량 프레임에서 비교합니다. 일반 실습에서 null 특징을 범주로 처리하는 방법과 원자료의 사전 제외를 구분하세요.
검증 자료도 여러 후보 중 우승자를 고르는 데 쓰이면 우승 점수가 낙관적일 수 있습니다. 후보 수가 늘고 반복 수정이 많을수록 선택 과정 자체의 불확실성을 고려해야 합니다. 다음 ML13의 중첩 교차검증은 선택 절차 전체를 평가하는 방법으로 이어집니다. 이 장의 한 번 고정 분할만으로 안정성을 인증하지 않습니다.
실제 국가 시험은 단 세 국가입니다. 분수가 정확해도 자료가 넉넉해진 것은 아닙니다. 선택된 특징과 모든 후보의 점수, 역할별 관측 수, 가장 단순한 빈 특징 기준선을 함께 보세요. 정답을 더 자세히 읽는 것이 소수점 자릿수를 늘리는 것보다 중요할 때가 많습니다.
Selecting the best features after inspecting test labels uses that test set for selection. Renaming its final score test error does not remove selection bias. Fit on training data, select on validation data, then report test results untouched by those choices.
Dropping different missing rows for different feature subsets changes who is evaluated. A seemingly good subset may merely discard harder cases. Our actual examples declare a common required-observation frame before fitting and compare all candidates on the same roles and masses. Distinguish generic null-as-category handling from source-level exclusion.
Even validation winners can have optimistic scores after many candidates or repeated revisions. ML13 develops nested cross-validation to evaluate the entire selection procedure. One fixed split here is not a stability certificate.
The country test frame contains only three countries. Exact fractions do not create more evidence. Read selected features, all candidate scores, role counts and the empty-feature baseline together. More decimal places cannot replace careful interpretation.
학부 심화 · 선택Advanced undergraduate · optional
실습 C: 확률표 모형과 특징 조합 선택Lab C: selecting a categorical probability model
실습 C는 선택된 특징 값의 조합마다 훈련에서 0과 1의 질량을 셉니다. 각 클래스에 α를 더해 아래 확률을 예측합니다. α=1이 기본값이며 작은 칸의 극단적인 확률을 완화합니다. 이는 Brier 손실을 위한 선언된 예측 모형이지 모집단의 참 확률이 아닙니다.
훈련에 없던 조합에는 전체 훈련의 평활 확률을 사용합니다. 관측되지 않았다는 이유로 확률을 0으로 만들지 않습니다. 빈 특징 조합은 모든 행에 같은 전체 확률을 주는 기준선입니다. 후보 순서는 선언된 순서이고 검증 손실이 정확히 같으면 먼저 나온 후보를 유지합니다.
XOR 네 훈련 행과 같은 네 검증 행을 입력해 보세요. α=1이면 빈 특징과 단일 특징들은 확률 1/2을 주어 Brier가 1/4입니다. 두 특징을 함께 쓰면 각 칸에서 정답 확률이 2/3이 되어 Brier가 1/9입니다. 단일 상호정보량이 0이어도 이 모형에서는 조합이 유용합니다.
시험 표적만 바꾸었을 때 선택된 조합과 훈련 확률표가 변하지 않는지 확인하세요. 검증 표적이 모두 결측이거나 양의 평가 질량이 없으면 최적 후보를 고른 것이 아닙니다. 실습은 첫 후보를 유지하면서 선택이 미정의임을 명시합니다. α=0, 작은 칸, 보지 못한 조합도 비교하고 입력·분모·평활화 규칙을 함께 기록하세요.
Lab C counts training masses of zero and one within each selected-feature combination, then adds α to each class. The default α=1 moderates extreme probabilities in small cells. This is a declared predictive model for Brier scoring, not the true population law.
An unseen combination receives the smoothed global training probability instead of an invented zero. The empty subset gives that same global probability to every row. Candidate order is declared; exact validation ties retain the earlier candidate.
Enter the four XOR training rows and four matching validation rows. With α=1, the empty and single-feature models predict one-half, scoring 1/4. Using both features gives correct-class probability 2/3 and Brier 1/9. Zero marginal information does not prevent a useful interaction for this model.
Changing only test targets must leave the selected subset and fitted training tables unchanged. With no positive observed validation mass, retaining the first candidate is an explicitly undefined selection, not an optimality result. Compare α=0, small cells and unseen combinations while recording inputs, denominators and smoothing.
학부 심화 · 선택Advanced undergraduate · optional
정보량·성능 기여·인과효과의 세 질문Three questions: information, model reliance and causation
고객의 불만 여부와 이탈 사이에 정보량이 있다고 합시다. 이는 두 변수가 선택된 자료에서 연관된다는 질문입니다. 반면 “이미 학습한 모형이 불만 특징을 얼마나 의지하는가”는 모형과 손실까지 고정해야 답할 수 있는 질문입니다. 불만 접수 제도를 바꿨을 때 이탈이 줄어드는가는 처치·반사실·교란을 다루는 세 번째 질문입니다.
같은 자료를 사용해도 답은 다를 수 있습니다. 두 특징이 정확한 복사본이면 둘 다 표적에 많은 정보를 담지만 모형이 하나만 사용했을 수 있습니다. 사용하지 않은 복사본을 바꾸어도 그 모형의 예측은 변하지 않으므로 모형 중요도는 0일 수 있습니다.
모형이 나쁜 특징을 과도하게 사용하면 그 특징을 섞었을 때 성능이 좋아질 수도 있습니다. 이때 음의 순열 중요도가 나오는 것은 산술 오류가 아닙니다. 고정된 모형과 선택한 평가 틀에서 원래의 연결이 오히려 해로웠다는 뜻입니다. 특징 자체의 보편적 가치를 증명한 것이 아닙니다.
실제 보고서에는 적어도 표본 프레임, 학습된 모형, 평가 손실, 특징을 바꾼 규칙을 함께 적으세요. “가장 중요하다”라는 문장만 쓰면 이 네 가지를 독자가 복원할 수 없습니다. 원자료의 해석과 수치 실험의 정의를 연결하는 것이 설명 가능성의 첫 단계입니다.
Information between complaints and churn asks whether variables are associated in the selected distribution. How much a fitted model relies on complaints additionally fixes the model and scoring loss. Whether changing a complaints policy reduces churn is a third question involving interventions, counterfactuals and confounding.
Answers can differ even on the same data. Duplicate features can both carry information about Y while a model uses only one. Changing the unused copy leaves that model’s predictions unchanged, so its model-specific importance can be zero.
If a model relies on a misleading relationship, shuffling a feature may improve its performance. Negative permutation importance is then not an arithmetic error. It describes the fixed model on the chosen evaluation frame, not the feature’s universal value.
Report the sample frame, fitted model, evaluation loss and feature-alteration rule. The phrase most important cannot reconstruct these choices. Explanation begins by connecting source meaning to the numeric experiment.
학부 심화 · 선택Advanced undergraduate · optional
Brier 손실로 재는 모형 의존Measuring model reliance with Brier loss
이진 표적 y와 예측 확률 q에 Brier 손실 (q−y)²을 사용합니다. 예측 확률이 [0,1] 안이면 손실은 0과 1 사이입니다. 평가 질량이 양수인 관측 표적에 가중 평균을 내며, 이 장에서는 1/2을 곱하지 않습니다.
RE(f)=∑r∈Ewr∑r∈Ewr(f(xr)−yr)2
특징 j를 바꾼 평가 행을 x̃라 할 때, 중요도는 바꾼 뒤 손실에서 원래 손실을 뺀 값입니다. 양수이면 그 바꾸기에서 성능이 나빠졌고, 0이면 같은 손실이며, 음수이면 좋아졌습니다. 분모·표적·질량을 고정해야 두 손실 차이가 같은 대상에 대한 비교가 됩니다.
Impj=RE(f;Xj)−RE(f;X)
Brier 손실의 모집단 의미도 확인할 수 있습니다. 참 조건부 확률 p(x)에 대해 조건부 기대 손실은 p(x)(1−p(x))+(q(x)−p(x))²입니다. 따라서 고정된 X의 정보 안에서는 q=p가 최적입니다. 표본에서 추정한 작은 칸 확률이 이미 p라는 뜻은 아닙니다.
서로 다른 모형·손실·평가 집단에서 얻은 중요도는 별개의 수입니다. 이탈 확률 모형의 Brier 변화와 임금 회귀의 달러 제곱오차 변화를 같은 축에 놓고 크기만 순위 매기지 마세요. 단위와 목적이 다릅니다.
For binary y and probability q, Brier loss is (q−y)². With q in [0,1], loss lies between zero and one. Average using positive evaluation weights and observed targets; our definition has no one-half factor.
RE(f)=∑r∈Ewr∑r∈Ewr(f(xr)−yr)2
Importance is altered-data loss minus original loss. Positive means the declared alteration hurt performance, zero means unchanged loss, and negative means improvement. Hold targets, masses and the evaluation denominator fixed.
Impj=RE(f;Xj)−RE(f;X)
If p(x) is the true conditional probability, expected conditional Brier loss is p(x)(1−p(x))+(q(x)−p(x))², minimized at q=p. An estimated small-cell frequency is not automatically that population probability.
Importances from different models, losses and populations are different quantities. Do not rank a churn-model Brier change against a wage-model dollar-squared error change solely by magnitude. Their units and purposes differ.
학부 심화 · 선택Advanced undergraduate · optional
고정 순열 실험을 손으로 따라가기Tracing a fixed permutation experiment
시험 행 세 개가 A,B,C 순서로 있고 바꿀 특징 값이 10,20,30이라고 합시다. donor 일정 [1,2,0]은 A에게 B의 값 20, B에게 C의 값 30, C에게 A의 값 10을 줍니다. 배열 번호는 0부터입니다. 표적과 분석 질량은 원래 A,B,C에 남습니다. 이것이 한 번의 선언된 순열입니다.
모형은 원래 훈련에서 한 번 맞춘 뒤 고정합니다. 바뀐 시험 자료로 다시 학습하거나 가장 손실이 커지는 순열만 골라 보고하면 다른 실험이 됩니다. 원래 특징 분포의 값들은 그대로 있지만 표적과의 행별 연결이 달라집니다.
이 장의 실제 사례는 shift 1과 floor(n/2)의 두 순환 일정을 공개합니다. 표본이 작으면 두 일정이 같을 수도 있습니다. 국가의 시험 n=3에서는 두 값이 모두 1이므로 같은 순열이 두 번 나타납니다. 두 개의 독립 무작위 추출이나 추가 통계적 증거로 세지 않습니다.
많은 무작위 순열의 기대 성능을 말하려면 별도의 무작위화 법칙과 반복 설계를 정해야 합니다. 여기의 유한 일정은 그 법칙을 자동으로 근사한다는 보장이 없습니다. 값이 정교한 분수여도 실험 설계의 범위가 넓어진 것은 아닙니다.
Suppose test rows A, B, C have feature values 10,20,30. Donor schedule [1,2,0] assigns B’s value 20 to A, C’s 30 to B, and A’s 10 to C, with zero-based indices. Targets and analytical weights remain with their original recipients. This is one declared permutation.
Fit once on the original training frame and freeze the model. Refitting on altered test data or reporting only the most damaging shuffle defines a different experiment. The feature’s observed values remain, while their rowwise connection to targets changes.
Our actual studies publish cyclic shifts one and floor(n/2). Small samples can make them identical. For three country test rows, both shifts equal one, so the same permutation occurs twice. They are not independent random draws or additional statistical evidence.
An expectation over random permutations requires a separately declared randomization law and repetition design. These finite schedules are not guaranteed approximations to it. Exact fractions do not broaden the experimental claim.
학부 심화 · 선택Advanced undergraduate · optional
상관된 특징과 묶음 순열Correlated features and grouped permutations
두 센서가 같은 온도를 거의 똑같이 기록한다면 한 열만 섞었을 때 실제로 관측되기 어려운 조합이 생길 수 있습니다. 하나는 한겨울 값, 다른 하나는 한여름 값인 행이 만들어지는 식입니다. 그 조합에서 모형이 실패했다고 해서 원래 환경에서 그 특징의 고유한 가치가 그만큼이라고 단정할 수 없습니다.
여러 열을 같은 donor 행에서 함께 가져오는 묶음 순열은 그 묶음 안의 관계를 보존합니다. 그러나 바깥 특징이나 표적과의 관계는 여전히 달라집니다. 단일 특징 순열의 중요도를 모두 더한 값이 묶음 중요도와 같아야 한다는 정리는 없습니다. 상호작용과 중복이 있기 때문입니다.
조건부 순열은 나머지 특징을 조건으로 해당 특징의 분포를 보존하려는 다른 방법입니다. 조건부 분포를 어떻게 알고 추정하는지, 작은 칸에서 어떤 가정을 쓰는지에 따라 답이 달라집니다. 단순히 열을 함께 섞었다고 조건부 중요도를 계산한 것은 아닙니다. 이 장의 실습은 명시된 주변·묶음 순열만 계산합니다.
실제 해석에서는 데이터가 지지하는 영역과 만들어 낸 혼합 영역을 구별하세요. 임금·교육·나이, 고객 이용 시간·기간·불만에는 관측 관계가 있습니다. 모형의 민감도를 살펴보는 실험과 실제 개인의 한 속성만 바꾸는 실행 가능한 정책은 다릅니다.
If two sensors almost duplicate a temperature reading, shuffling only one can create unrealistic combinations: a winter value beside a summer value. Poor model performance on that hybrid does not establish the feature’s unique value in the original environment.
Grouped permutation copies several features from the same donor, preserving relationships within the group. Relationships with outside features and targets still change. Individual importance values need not sum to grouped importance because of redundancy and interactions.
Conditional permutation instead aims to preserve a feature’s distribution given the remaining predictors. Its answer depends on how that conditional law is known or estimated, especially in sparse cells. Jointly shuffling columns is not automatically conditional importance. Our lab implements declared marginal/group shuffles only.
Distinguish supported observations from constructed hybrids. Wages, schooling and age, or usage, tenure and complaints, have observational relationships. A model-sensitivity experiment differs from an actionable policy changing one property of a real person.
학부 심화 · 선택Advanced undergraduate · optional
실습 D: 바꾸기 전후의 같은 행 읽기Lab D: comparing the same rows before and after alteration
실습 D에서 먼저 두 시험 행의 완벽한 예측을 만듭니다. 모형이 0에는 0, 1에는 1을 예측하고 정답도 같다면 원래 Brier는 0입니다. 특징을 서로 바꾸면 두 예측이 모두 틀려 Brier가 1이 되고 중요도는 1입니다. 먼저 손으로 계산한 뒤 표를 확인하세요.
이번에는 같은 시험 정답에 반대로 예측하는 모형을 고정하세요. 원래 Brier는 1이고 바꾼 뒤에는 0이어서 중요도는 −1입니다. 실습은 음수를 0으로 지우지 않습니다. “이 특징은 해롭다”라는 보편적 선언보다, 이 모형·이 시험 프레임·이 일정에서 개선되었다고 표현하는 것이 정확합니다.
결과 표에서는 recipient ID와 donor ID를 대조합니다. 같은 행의 표적과 비중이 유지되었는지, 선택한 열만 바뀌었는지, 전체 시험 행 수와 분모가 같은지 확인합니다. donor 번호가 중복되어 어떤 행이 두 번 사용되면 완전한 순열이 아니므로 입력을 거부합니다.
실제 자료에서는 이미 선택된 특징 조합의 모형을 고정합니다. 그 조합이 쓰지 않는 특징을 섞으면 예측은 같고 중요도는 정확히 0이어야 합니다. 이 결과가 그 특징과 표적 사이의 경험 정보량도 0이라는 뜻은 아닙니다.
Begin Lab D with two perfect test predictions: the fixed model predicts zero at feature zero and one at feature one, matching the targets. Original Brier is zero. Swap the feature values and both predictions become wrong, making Brier and importance one. Compute by hand before reading the table.
Now freeze a model predicting the reverse of those test targets. Original Brier is one; after swapping it is zero, giving importance −1. The lab does not erase negative values. State improvement for this model, frame and schedule instead of declaring the feature universally harmful.
Compare recipient and donor IDs. Check unchanged targets and weights, altered selected columns, and the same evaluation denominator. A repeated donor index is not a complete permutation and is rejected.
The actual study freezes its selected-feature model. Shuffling an unused predictor must preserve predictions and yield exactly zero importance. That does not imply zero empirical information between that predictor and the target.
학부 심화 · 선택Advanced undergraduate · optional
한 예측의 설명과 기준값Explaining one prediction relative to a baseline
전체 시험 성능이 좋아도 특정 고객의 예측이 왜 높은지 설명하려면 다른 질문을 해야 합니다. 로컬 설명은 한 입력 x와 고정된 모형의 출력 f(x)를 대상으로 합니다. 기준값에서 얼마나 올라가거나 내려갔는지 특징별로 나누는 방식이 한 가지 접근입니다.
선형 모형 f(x)=b+Σβⱼxⱼ와 기준 입력 z가 주어지면 f(x)−f(z)=Σβⱼ(xⱼ−zⱼ)입니다. 이 분해는 대수적으로 정확하지만, z를 무엇으로 잡느냐에 따라 기여도가 달라집니다. β도 관측 자료에서 학습한 계수라면 각 항을 실제로 개입했을 때의 인과효과라고 읽을 수 없습니다.
f(x)=f(z)+j∑βj(xj−zj)
비선형 모형에서는 특징을 하나씩 넣는 순서에 따라 증가분이 달라질 수 있습니다. XOR에서 첫 비트만으로는 정답을 모르지만 둘째를 함께 알면 알 수 있다는 점을 떠올리세요. 상호작용의 기여를 어떤 특징에 배분할지 추가 규칙이 필요합니다.
기여도가 더해져 원래 예측과 맞는다는 성질은 유용한 검산입니다. 그러나 합이 맞는 분해가 유일한 현실 설명이라는 뜻은 아닙니다. 기준, 가상의 입력을 만드는 규칙, 모형 출력 단위를 모두 명시한 뒤 그 규칙 안에서 해석해야 합니다.
Good overall test performance does not explain why one customer receives a high prediction. A local explanation concerns one input x and a fixed output f(x). One approach allocates the increase or decrease from a baseline among features.
For f(x)=b+Σβⱼxⱼ and baseline input z, f(x)−f(z)=Σβⱼ(xⱼ−zⱼ). The decomposition is exact, but contributions depend on z. Coefficients fitted observationally do not make these terms causal intervention effects.
f(x)=f(z)+j∑βj(xj−zj)
For nonlinear models, increments can depend on feature-entry order. In XOR one bit alone does not reveal the target, while the second completes the answer. An additional rule must allocate the interaction.
Adding contributions back to the original prediction is a useful check, not proof of a unique real-world explanation. Declare the baseline, hybrid-input rule and output units, then interpret within that game.
학부 심화 · 선택Advanced undergraduate · optional
연합 게임: 어떤 배경을 대입하는가Coalition games and the chosen background
특징 전체를 F라고 하고 그중 일부 S만 현재 관측 x의 값으로 고정합니다. 나머지 특징은 배경 행 z에서 가져와 모형을 계산하고 배경 질량으로 평균합니다. 그 결과를 연합 S의 가치 v(S)라고 정의합니다. 여기서는 실체가 다른 두 사람의 속성을 합친 가상 입력일 수도 있습니다.
v(S)=∑z∈Bwz∑z∈Bwzf(xS,zF∖S)
아무 특징도 현재 값으로 고정하지 않은 v(∅)는 배경에서의 모형 예측 평균입니다. 배경 정답의 평균과 같을 필요가 없습니다. 모든 특징을 현재 값으로 고정하면 v(F)=f(x)입니다. 이 두 끝점을 확인하면 어떤 예측 차이를 배분하는지 알 수 있습니다.
이 장의 실습은 훈련 행 중 선언된 배경 ID만 사용하고, 그 가중치도 공개합니다. 실제 사례는 최대 32개의 등간격 훈련 행을 사용합니다. 이는 전체 훈련 분포나 모집단의 정확한 배경이라는 주장이 아니라, 유한하고 재현 가능한 설명 게임입니다.
다른 배경 집단을 선택하면 기준값과 기여도가 바뀔 수 있습니다. 조건부 분포로 누락 특징을 채우는 게임도, 구조적 인과모형으로 개입을 정의하는 게임도 각각 다릅니다. “Shapley”라는 이름만 같다고 같은 해석을 보장하지 않습니다.
Let F contain all predictors and hold a subset S at the focal input x. Fill the others from background row z, predict, and average over background weights. Define this as coalition value v(S). The hybrid may combine properties from different real people.
v(S)=∑z∈Bwz∑z∈Bwzf(xS,zF∖S)
With no fixed focal features, v(∅) is mean background model prediction, not necessarily mean background target. Fixing every feature gives v(F)=f(x). These endpoints identify the prediction difference being allocated.
The lab uses declared eligible training-background IDs and weights. Actual examples use at most 32 evenly spaced training rows. This is a finite reproducible game, not an exact population or full-training background claim.
Changing the background can change the baseline and contributions. Filling features from conditional distributions and defining interventions through a causal model produce different games. Sharing the name Shapley does not make their interpretations identical.
학부 심화 · 선택Advanced undergraduate · optional
Shapley 값: 모든 순서의 증가분 평균Shapley values average increments over feature orders
특징이 두 개라면 들어오는 순서는 1→2와 2→1 두 가지입니다. 각 순서에서 특징이 들어올 때의 v 증가분을 구하고 평균하면 Shapley 값입니다. 첫 번째로 들어왔을 때와 두 번째로 들어왔을 때의 역할을 똑같이 고려하는 방식입니다.
ϕj=S⊆F∖{j}∑p!∣S∣!(p−∣S∣−1)![v(S∪{j})−v(S)]
계수는 전체 p!개 순서 중 정확히 S가 j보다 앞에 오는 순서의 비율입니다. S의 앞 순서는 |S|!가지, 나머지 뒤 순서는 (p−|S|−1)!가지입니다. 가능한 연합을 크기와 무관하게 같은 확률로 평균한 것이 아니라 순서의 수로 가중했다는 점을 확인하세요.
모든 특징의 기여를 합하면 f(x)−v(∅)가 됩니다. 각 순서에서 증가분 합이 처음부터 마지막까지 이어지는 망원합이기 때문입니다. 어떤 특징이 모든 연합에서 값을 바꾸지 않으면 그 기여는 0입니다. 교환했을 때 게임 가치가 항상 같은 두 특징은 같은 기여를 받습니다. 이 성질들은 정의한 게임 안에서의 공정한 배분 조건입니다.
XOR 네 훈련 칸에 α=1을 쓰고 배경 네 행을 같은 질량으로 두겠습니다. 현재 입력 00의 예측은 1/3, 배경 평균은 1/2입니다. 어느 특징 하나만 고정해도 평균은 1/2이고 둘 다 고정해야 1/3이 됩니다. 두 특징의 기여는 각각 −1/12이고 합 −1/6을 기준 1/2에 더하면 1/3이 복원됩니다. 확률 기여가 음수일 수 있다는 것도 자연스럽게 보입니다.
With two features, entry orders are 1→2 and 2→1. Compute the increase in v when each feature enters, then average across orders. Each feature is considered both first and second.
ϕj=S⊆F∖{j}∑p!∣S∣!(p−∣S∣−1)![v(S∪{j})−v(S)]
The weight is the fraction of all p! orders placing exactly S before j. There are |S|! orders before j and (p−|S|−1)! after it. Coalitions are weighted by ordering counts, not equally regardless of size.
Contributions sum to f(x)−v(∅), because increments telescope from the empty coalition to all features in every order. A feature changing no coalition value gets zero. Features whose exchange preserves every game value receive equal contributions. These are allocation properties within the declared game.
Fit the four XOR cells with α=1 and use all four rows as equal-weight background. Focal input 00 predicts 1/3; the baseline is 1/2. Fixing either single feature leaves the average 1/2, while fixing both gives 1/3. Each contribution is −1/12, summing to −1/6; adding to the baseline restores 1/3. Probability contributions can naturally be negative.
학부 심화 · 선택Advanced undergraduate · optional
실습 E: 배경을 바꾸며 설명을 읽기Lab E: reading explanations as the background changes
실습 E에서는 훈련 확률표 모형과 현재 행 ID를 고정하고 배경 ID를 명시합니다. 먼저 XOR의 네 훈련 행을 모두 넣어 앞 절의 −1/12,−1/12를 재현하세요. 배경을 한 행만 남겼을 때 기준값과 기여도가 어떻게 바뀌는지도 계산해 봅니다. 현재 예측은 모형과 현재 X가 같으면 변하지 않아야 합니다.
표에서 빈 연합부터 전체 연합까지의 값을 차례로 읽으세요. 각 특징을 더했을 때의 증가분과 순서 가중치가 맞는지 두 특징 예제에서 손으로 확인합니다. 모든 기여를 기준값에 더한 결과가 현재 예측과 같고 효율성 잔차가 정확히 0인지 검산합니다.
배경은 양의 질량과 관측 표적이 있는 선언된 훈련 행에서 선택합니다. 이 제한은 실습의 자료 사용 규칙이며, 현실의 모든 설명 문제가 반드시 같은 배경을 써야 한다는 정리는 아닙니다. 시험 정답을 보고 설명 배경을 유리하게 바꾸면 보고서의 해석도 달라집니다.
실제 개인 사례에서는 첫 시험 행의 나이 이진값이 1이고, 등간격으로 뽑은 32개 배경 행도 모두 1입니다. 따라서 이 유한 대입 게임에서는 나이 좌표를 현재 값으로 고정해도 가상 입력이 변하지 않아 나이 기여가 0입니다. 모형이 나이를 사용하지 않는다거나 나이가 전역적으로 무관하다는 뜻은 아닙니다. 뒤의 순열 표와 함께 확인할 것입니다.
Freeze the fitted cell model and focal ID, then declare background IDs. Reproduce −1/12,−1/12 using all four XOR training rows. Repeat with one background row and inspect the changed baseline and contributions. The focal prediction must stay fixed when its X and model stay fixed.
Read coalition values from empty to full. For two features, check marginal increments and ordering weights by hand. Add contributions to the baseline and verify the focal prediction with exact zero efficiency residual.
The lab accepts declared positive-mass training rows with observed targets as background. This is a data-use contract, not a theorem that every explanation problem must use that background. Choosing a favorable background after seeing test targets changes the report’s interpretation.
In the actual person example, the first test row and all 32 evenly spaced background rows have age-bin one. Fixing that coordinate therefore changes no hybrid input, so its contribution is zero in this finite game. This does not mean the model ignores age or that age is globally irrelevant. Compare with the later permutation table.
학부 심화 · 선택Advanced undergraduate · optional
주변·조건부·인과 설명은 다른 게임이다Marginal, conditional and causal explanations are different games
고정 모형 f(x₁,x₂)=x₁이고 자료에서 X₂=X₁인 공정 비트라고 합시다. 현재 입력 11을 설명할 때, 주변 배경 대입 게임은 첫 특징에 1/2, 둘째에 0을 줍니다. 모형이 쓰지 않는 X₂를 고정해도 예측은 변하지 않기 때문입니다.
조건부 게임에서는 v(S)를 E[f(X)|Xₛ=xₛ]로 정의할 수 있습니다. X₂=1을 안다는 것은 자료의 관계를 통해 X₁=1을 안다는 뜻이므로 둘째 특징만 알려 줘도 조건부 예측은 1입니다. 이 게임의 두 특징 기여는 1/4씩입니다. 어느 값이 산술적으로 틀린 것이 아니라, “없어진 특징”을 채우는 규칙이 다릅니다.
인과 게임에는 변수를 어떻게 조작하고 다른 변수들이 어떻게 반응하는지를 정한 구조가 추가로 필요합니다. 조건부 관측은 개입과 같지 않습니다. 학교 근처 거주나 불만 여부를 고정된 특징 칸에 대입한 표만으로 실제 정책 변화의 임금·이탈 효과를 알아낼 수 없습니다.
보고서에는 출력의 단위, 게임 v, 배경 집단과 질량, 처리한 상관관계, 가상의 입력이 실제로 가능한지를 적어야 합니다. “설명 값이 있으니 원인을 알았다”가 아니라 이 선언된 모형·게임이 예측을 어떻게 배분하는지 읽는 것입니다.
Let f(x₁,x₂)=x₁ and observationally let X₂=X₁ be a fair bit. For focal 11, marginal background replacement assigns one-half to feature one and zero to feature two. Fixing the unused X₂ never changes this model’s prediction.
A conditional game can instead define v(S)=E[f(X)|Xₛ=xₛ]. Knowing X₂=1 reveals X₁=1 through their observational relationship, so either single known feature raises conditional prediction to one. This game gives one-quarter to each feature. Different filling rules produce different valid arithmetic.
A causal game additionally specifies interventions and how other variables respond through a structural system. Conditioning is not intervention. Substituting college proximity or complaints into feature cells does not identify wage or retention effects of real policies.
Report output units, game v, background population and weights, treatment of dependence, and feasibility of hybrid inputs. Read how a declared model/game allocates a prediction rather than treating explanation values as discovered causes.
학부 심화 · 선택Advanced undergraduate · optional
우승 특징의 불확실성과 선택 후 평가Uncertainty of the winning feature subset
검증 점수는 한 번의 표본에서 나온 수입니다. 두 후보의 실제 평균 성능이 같아도 표본 오차 때문에 한쪽이 더 좋아 보일 수 있습니다. 후보를 더 많이 살펴보면 가장 낮은 검증 점수는 내려가거나 그대로지만, 새 자료 성능도 반드시 좋아지는 것은 아닙니다.
훈련 자료가 정해진 뒤 후보 모형들이 고정되고 각 검증 위험 추정이 불편하다고 가정해 봅시다. 최소값의 기대는 각 기대의 최소보다 클 수 없으므로 E[min R̂ₘ]≤min Rₘ입니다. 선택된 모형의 실제 위험은 그 최소 실제 위험 이상이므로 우승 검증 점수의 낙관성이 생길 수 있습니다. 이는 가정이 있는 기대값 비교이지 매 표본에서 반드시 우승 점수가 더 작다는 주장은 아닙니다.
E[mminRm]≤mminRm≤E[Rm]
상관된 특징 사이에서는 선택된 열 이름이 흔들려도 예측은 비슷할 수 있습니다. 반대로 같은 특징이 반복 선택되어도 잘못된 표본 선택이나 누출이 반복되었을 수 있습니다. 선택 안정성과 정확도·보정·인과성은 별도로 평가합니다.
이 장은 모든 후보와 선언된 검증 점수를 공개하고 시험은 선택에 사용하지 않습니다. 다음 장에서는 바깥 평가 안에 선택 과정을 넣는 중첩 검증으로 이어집니다. 실제 자료에서 검증 분모와 양성 수가 작거나 불균형할 때는 특히 점수 한 개보다 그 절차와 불확실성을 자세히 읽어야 합니다.
Validation scores are sample quantities. Equal true performance can still produce a sample winner. Looking at more candidates can only lower or preserve the minimum validation score, without guaranteeing better performance on new data.
Condition on training so candidate models are fixed, and suppose validation risk estimates are unbiased. The expected minimum is no greater than the minimum expected risk. Selected true risk is at least the best true risk, allowing optimism in the winning validation score. This is an expectation statement under assumptions, not an inequality required in every sample.
E[mminRm]≤mminRm≤E[Rm]
Correlated predictors can make selected names unstable while predictions remain similar. Repeated selection of the same name can also reflect repeated bias or leakage. Selection stability, accuracy, calibration and causality require separate assessments.
We publish all candidates and validation scores without using test data to choose. The next chapter places selection inside an outer evaluation. With small or imbalanced validation frames, interpret the procedure and uncertainty rather than one winning number.
대학원 연결Graduate bridge
대학원 연결: 지원집합·절대연속성·JensenGraduate bridge: support, absolute continuity and Jensen
유한 표에서 “P가 양수인 곳에 Q도 양수”라는 조건은 일반 확률측도에서 P가 Q에 대해 절대연속이라는 조건으로 이어집니다. Q가 확률 0을 주는 집합에는 P도 0을 주어야 한다는 뜻입니다. 이 조건 아래 밀도의 역할을 하는 Radon–Nikodym 도함수 dP/dQ로 KL을 쓸 수 있습니다.
P≪Q,DKL(P∥Q)=∫ln(dQdP)dP
절대연속성이 실패하면 KL은 확장된 +∞로 정의합니다. 조건이 맞아도 값이 무한대일 수 있습니다. 연속 밀도가 존재한다는 사실만으로 모든 로그 적분이 유한해지는 것은 아닙니다. 교차 엔트로피에서 엔트로피를 빼는 표현은 ∞−∞가 되지 않도록 관련 양의 존재와 유한성을 확인해야 합니다.
Jensen 증명의 핵심은 그대로입니다. 로그의 오목성과 확률 가중치를 연결합니다. 다만 유한 합을 적분으로 바꿀 때 기대값과 극한·적분을 바꾸는 조건을 생략해서는 안 됩니다. 이 절은 일반 언어로 가는 다리이며 측도론 전체의 증명을 대신하지 않습니다.
계산 실습에서는 선언된 유한 지원집합의 정확한 질량을 사용하므로 이 문제를 구체적으로 볼 수 있습니다. 지원집합 실패, 정확한 같은 확률표, 아주 작은 양의 발산, 근사 취소 한계를 각각 다른 상태로 남기는 이유도 일반 이론의 구분을 존중하기 위해서입니다.
The finite-table condition that Q be positive wherever P is positive generalizes to absolute continuity P≪Q: every Q-null set must also be P-null. Then the Radon–Nikodym derivative plays the role of a density ratio in KL.
P≪Q,DKL(P∥Q)=∫ln(dQdP)dP
If absolute continuity fails, define KL as extended positive infinity. Even with it, KL can be infinite. Existence of continuous densities does not ensure finite log integrals. Subtracting entropy from cross-entropy requires avoiding undefined infinity-minus-infinity expressions.
Jensen retains the same core idea: concavity plus probability weighting. Passing from finite sums to integrals requires conditions for expectations, limits and integration. This is a bridge to the general language, not a replacement for a measure-theoretic proof.
Our finite-support calculator makes these distinctions concrete. It separates failed support, identical exact PMFs, tiny positive divergence and approximate cancellation limits instead of collapsing them into one display.
대학원 연결Graduate bridge
연속 KL·상호정보량과 JacobianContinuous KL, mutual information and Jacobians
같은 가역 변환 T를 두 밀도 p,q에 적용한다고 합시다. 변환된 두 밀도에는 같은 Jacobian 역수 항이 들어갑니다. KL의 로그 밀도 비에서는 그 항이 상쇄되고 적분의 변수변환까지 적용하면 원래 KL이 남습니다. 가역성과 공통 변환, 필요한 밀도·적분 조건이 있는 주장입니다.
상호정보량은 결합법칙과 주변법칙의 곱 사이 KL이므로 각 변수의 가역 좌표 변환에도 같은 원리가 작동합니다. 정보가 좌표 이름이나 미터·센티미터 선택 때문에 생기거나 사라지지 않는다는 직관을 수식으로 뒷받침합니다. 미분 엔트로피는 Jacobian의 기대 로그 항을 따로 갖는다는 차이를 기억하세요.
그러나 결정적인 연속 관계는 특이한 결합법칙을 만들 수 있습니다. 예를 들어 연속 X와 Y=X는 두 변수 평면 전체에 밀도를 가진 일반적인 산점도와 다릅니다. 연속 상호정보량이 무한대가 될 수 있고, 유한 범주 표의 1비트 예를 그대로 옮길 수 없습니다.
실무에서 연속 상호정보량을 추정하려면 밀도, 이웃, 커널, 구간 등 별도 선택과 가정이 필요합니다. 여기의 웹 계산은 유한 범주로 선언한 대상만 계산합니다. 연속 원수치 CSV를 보존해 두는 것은 다른 추정법을 재현하고 비교할 수 있게 하기 위한 출발점입니다.
Apply the same invertible transformation T to densities p and q. Both transformed densities contain the same inverse Jacobian factor. It cancels in the log ratio, and changing the integration variable leaves KL unchanged. The claim requires invertibility, a common transformation and appropriate density/integrability conditions.
Mutual information is KL between a joint law and the product of marginals, so the same principle applies to invertible coordinate changes of either variable. Coordinate names or meters versus centimeters do not create information. Differential entropy differs by retaining an expected log-Jacobian term.
A deterministic continuous relationship can produce a singular joint law. Continuous X with Y=X is not an ordinary two-dimensional density cloud. Its information can be infinite, unlike a directly transplanted finite-bit example.
Continuous information estimation requires separate choices about densities, neighbors, kernels or bins. Our calculator computes the declared finite categorical objects. Retaining native continuous CSV values enables later methods and comparisons.
학부 심화 · 선택Advanced undergraduate · optional
적절한 점수와 행동의 기준Proper scores and the decision threshold
로그 손실과 Brier 손실은 확률 예측을 평가하는 서로 다른 적절 점수입니다. 모집단 조건부 분포를 정해 놓으면 참 확률을 제시하는 것이 기대 점수를 최소화합니다. 이는 좋은 점수를 얻은 임의의 작은 표본 추정이 곧 참 확률이라는 뜻은 아닙니다.
확률을 알아도 행동에는 비용이 필요합니다. 이탈 위험이 높은 고객에게 연락할지 정할 때, 잘못 연락한 비용과 놓친 이탈의 비용이 다르면 1/2이 최적 임계값일 이유가 없습니다. 거짓 양성 비용 cFP, 거짓 음성 비용 cFN이고 다른 비용이 0인 단순 조건에서는 아래 임계값이 나옵니다. 두 비용은 음수가 아니고 합은 양수라고 가정합니다. 확률이 임계값과 같으면 두 행동의 기대 비용이 같고, 두 비용이 모두 0이면 모든 행동의 비용이 같으므로 이 비율 임계값은 정의하지 않습니다.
choose action 1 if p>cFP+cFNcFP
확률 점수, 0/1 분류 정확도, 실행 비용을 같은 결과라고 부르지 마세요. 정보가 큰 특징이라도 수집 비용이 너무 크거나 배포 시점에 얻을 수 없으면 의사결정에 도움이 되지 않을 수 있습니다. 원자료의 시간·측정 과정을 확인하는 이유입니다.
이 장은 예측 확률과 Brier를 계산하고 실제 고객에게 정책을 집행하지 않습니다. 다음 성능·비용 장에서 집단별 성능과 임계값을 더 자세히 다룹니다. 현재는 모형의 통계적 설명을 행동이나 인과적 정책 효과로 바로 연결하지 않는 연결 고리를 익히세요.
Log loss and Brier loss are different proper scores for probability forecasts. Under a fixed population conditional law, truthful probabilities minimize expected score. A good finite-sample score does not prove an estimate equals the true probability.
Actions additionally require costs. With false-positive cost cFP, false-negative cost cFN and zero other costs, the simple optimal positive-action threshold need not be one-half. Assume both costs are nonnegative and their sum is positive. At equality with the threshold both actions have the same expected cost. If both costs are zero, every action ties and this ratio threshold is undefined.
choose action 1 if p>cFP+cFNcFP
Probability score, classification accuracy and operational cost are different outputs. An informative feature may be too expensive to collect or unavailable at decision time. This is why measurement and timing matter.
We calculate forecasts and Brier scores without implementing a customer intervention. Later chapters develop costs, thresholds and group performance. For now, understand the additional arguments required to move from statistical explanation to action or causal policy effects.
대학원 연결Graduate bridge
AI13으로 연결: 잠재변수와 ELBOBridge to AI13: latent variables and the ELBO
관측 x 뒤에 직접 보지 못한 상태 z가 있는 생성모형을 생각해 봅시다. 관측 확률은 z를 합하거나 적분한 pθ(x)입니다. 가능한 z가 많으면 이 계산이나 사후확률 pθ(z|x)를 다루기 어려울 수 있어, 계산하기 쉬운 q(z|x)를 후보로 놓습니다.
q와 사후확률의 KL이 음수가 아니라는 성질은 관측 로그확률의 하한으로 이어집니다. 관련 로그 기대가 잘 정의되고 유한한 조건에서 아래 항등식이 성립합니다. 이때 ELBO는 q로 평균한 log pθ(x,z)−log q(z|x)입니다.
따라서 ELBO≤log pθ(x)이며 등호는 후보 q가 실제 사후법칙과 같을 때입니다. 분모의 관측 확률은 0보다 크고 유한해야 하며, 지원집합과 로그 적분 조건을 확인해야 합니다. 무한 KL과 음의 무한 ELBO를 아무 조건 없이 더해 유한값이라고 쓰면 안 됩니다.
이 장은 ELBO를 실제 자료의 분류 손실로 사용하지 않습니다. 정확한 확률표, KL의 방향, 조건부 분포와 지원집합을 익혀 뒤 AI13의 변분 추론과 생성모형을 읽을 준비를 합니다. 지금 쓴 작은 범주 예측 모형이 곧 VAE나 인과 생성모형이라는 뜻도 아닙니다.
Consider a generative model with observed x and unobserved state z. Evidence pθ(x) sums or integrates over z. When evidence or posterior calculations are difficult, choose a tractable candidate q(z|x).
Nonnegative KL between q and the posterior yields a lower bound on log evidence. Under well-defined finite log expectations, the identity below holds. The ELBO averages log pθ(x, z)−log q(z|x) under q.
Thus ELBO≤log pθ(x), with equality when q matches the posterior. Evidence must be positive and finite, with appropriate support and log-integrability conditions. Do not add infinite KL to negative-infinite ELBO as an unqualified finite identity.
Our actual classification exercises do not optimize an ELBO. Exact PMFs, KL direction, conditional laws and support prepare you for variational inference in AI13. A small categorical predictor is not thereby a VAE or a causal generative model.
학부 심화 · 선택Advanced undergraduate · optional
프로젝트를 위한 질문·계약·반증Questions, contracts and falsification for a project
먼저 질문을 하나의 문장으로 정합니다. “어느 특징이 중요할까?”보다 “이 자료 역할과 고정 모형에서 어떤 특징 묶음을 바꾸면 시험 Brier가 얼마나 변할까?”가 재현하기 쉽습니다. 모집단이나 정책 효과를 묻고 싶다면 표본 설계와 인과 가정을 추가로 설계해야 합니다.
둘째로 원자료·단위·결측·이진 기준·역할을 한 장의 계약으로 적습니다. 사례의 원표와 비교해 기준값이 실제 관측인지 만든 범주인지 구별하세요. 원본 ID와 행 위치가 다르거나 표본 가중치를 적용하지 않는다는 사실도 빠뜨리지 않습니다.
셋째로 실패할 수 있는 검산을 정합니다. 시험 정답을 바꿔도 선택 특징은 유지되어야 하고, 사용하지 않은 특징의 순열은 예측을 바꾸지 않아야 하며, 설명의 합은 현재 모형 출력을 복원해야 합니다. 단, 설명 기여 0이 항상 미사용 특징이라는 역명제는 성립하지 않습니다.
마지막으로 보고서에 단순 기준선, 모든 후보, 같은 분모의 점수, 실제로 사용한 donor 일정과 배경을 넣습니다. 좋은 결과뿐 아니라 음의 중요도, 희소 검증, 중복 일정, 불리한 시험 성능도 포함하세요. 독자가 원문 코드를 내려받기 전에도 무엇이 계산되었고 어떤 주장이 가능한지 이해하도록 쓰는 것이 목표입니다.
State one reproducible question. Instead of which feature is important, ask how a declared feature-group alteration changes test Brier for this data role and frozen model. Population or policy questions additionally require sampling and causal designs.
Write a contract for native data, units, missingness, binary cutoffs and roles. Distinguish observed numbers from constructed categories. Preserve native IDs versus row positions and disclose unused survey weights.
Choose checks capable of failing: test-label changes must not alter feature selection, permuting an unused predictor must preserve predictions, and explanation contributions must reconstruct the current output. The converse that every zero contribution implies an unused feature is false.
Report the baseline, all candidates, common-denominator scores, actual donor schedules and background. Include negative importance, sparse validation, duplicate schedules and unfavorable test performance. Readers should understand the calculation and its limits before downloading code.
학부 심화 · 선택Advanced undergraduate · optional
실제 국가: 같은 해의 연관과 작은 시험 틀Actual countries: same-year associations and a small test frame
세계은행의 보존 빈티지에서 2024년 16개 국가의 1인당 실질 GDP, 총 GDP 증가율, CPI 상승률, 기대수명 64값을 사용합니다. 표적은 기대수명 80년 이상 여부이고, 특징은 1인당 GDP 25,000 기준·성장률 2% 기준·물가 3% 기준의 세 이진 구분입니다. 원래 연속 수치는 그대로 보관합니다.
GDP 수준은 2015년 불변 달러/인 단위이고 PPP 값으로 바꾸지 않았습니다. 성장·물가 기준은 연간 퍼센트이며 기대수명은 기간 기대수명 연수입니다. 이 기준들은 데이터를 보기 좋게 분류하기 위한 교육용 선언이지 건강·복지의 보편적 정책 문턱이 아닙니다.
국가 코드를 정렬한 위치의 나머지로 역할을 고정하면 훈련 9, 검증 4, 시험 3개입니다. 시험 국가는 DEU·JPN·VNM입니다. 검증이 고른 특징은 GDP 수준의 이진 구분 하나이고, 검증 Brier는 13/147, 시험은 107/1323입니다. 빈 특징 기준선의 시험 38/121과 같은 세 국가에서 비교합니다.
선택 모형은 훈련 GDP 상위 칸에서 확률 2/3, 하위 칸에서 1/7을 줍니다. 표본의 기대수명 구분과 연관된 예측이지 GDP를 올려 기대수명을 늘리는 인과효과는 아닙니다. 같은 해 관측이고 국가 수도 작습니다. 국가 시험의 두 순열 일정은 모두 shift 1이라 중복임을 남기고, 모든 원값·역할·후보·설명 배경을 아래 사례에서 확인합니다.
자료에서 설명까지 · 전체 사례
16개 국가의 2024년 횡단면을 학습 카드로 삼아 봅시다. 목표는 기대수명 80년 이상 여부를 구분하는 것이고, 경제 수준·총 GDP 성장·소비자물가는 설명 후보입니다. 한 국가가 한 행이며, 국가마다 질량 1을 줍니다. 이 구성에서는 인구가 큰 국가가 더 큰 가중치를 받지 않습니다. 원 관측값과 이 장이 만든 0/1 구분은 서로 다른 자료입니다.
국가 코드를 정렬한 위치로 훈련 9개·검증 4개·시험 3개를 고정했습니다. 세계 전체를 대표하는 무작위 표본도, 미래 예측 평가도 아닙니다. 2024년 값은 보관한 2026년 10월 8일 자료판이며, 이후의 개정값을 이번 표에 조용히 섞지 않습니다. GDP는 구매력평가 값이 아니라 2015년 불변 달러의 1인당 수준입니다.
1. 무엇을 바꾸고 무엇을 고정했나
원행 역할·공통 관측·양성·제외
역할
계획 행
사용 행
양성 행
제외 행
행 질량
train
9
9
3
0
1
validation
4
4
3
0
1
test
3
3
2
0
1
이 장의 고정 구분 기준 · 자료 자체의 보편 법칙 아님
번호
1이 되는 조건
원단위
0
1인당 GDP ≥ 25,000
2015년 불변 USD / 인
1
총 GDP 성장률 ≥ 2
연간 %
2
CPI 상승률 ≥ 3
연간 %
표적 1의 정의: 기대수명 ≥ 80년. 모든 후보는 같은 역할·같은 공통 관측 조건에서 비교합니다. 평활화는 각 표적 범주에 α=1을 더하며, 훈련에서 본 적 없는 특징 칸에는 전체 훈련 확률을 씁니다.
국가 · 역할별 실제 표적 수 · 고정 원행 역할·공통 관측 조건; 무작위 대표 표본 아님 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG국가 · 원단위 관측 전체 · 16개 실제 국가·2024년; 점선은 이 장의 구분 기준, 회귀선 아님 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG
2. 전체 후보를 비교하고 선택한 칸을 손으로 계산하기
검증에서 선택되는 것은 후보 1, 즉 1인당 GDP 구분만 쓰는 모형입니다. 훈련의 높은 GDP 칸은 4개 국가 중 3개가 양성이므로 평활화 확률은 (3+1)/(4+2)=2/3입니다. 낮은 칸은 5개 중 양성 0개라 (0+1)/(5+2)=1/7입니다. 검증 평균 Brier는 13/147이고 시험은 107/1323입니다. 각 행에서 (확률−표적)²을 계산해 같은 역할 안에서 평균해 보세요.
모든 선언 후보 · 시험은 선택 이후의 보고값
후보
사용 특징 번호
선택
훈련 Brier
검증 Brier
시험 Brier
0
[]
false
27/121
163/484
38/121
1
[0]
true
388/3969
13/147
107/1323
2
[1]
false
35/162
43/144
11/54
3
[2]
false
874/3969
533/1764
337/1323
4
[0, 1]
false
76/675
37/300
1/12
5
[0, 2]
false
373/3240
53/450
3/25
6
[1, 2]
false
239/1176
14603/47432
563/1936
7
[0, 1, 2]
false
1037/8100
21431/108900
563/1936
선택 모형의 모든 관측 훈련 칸
후보
특징 칸
훈련 질량
양성 질량
α
확률
미관측 칸 대체 확률
1
["0"]
5
0
1
1/7
4/11
1
["1"]
4
3
1
2/3
4/11
국가 · 선언된 후보의 손실 · 검증만 선택에 사용; 같은 역할 분모·시험은 이 곡선에 미표시 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG모든 후보의 훈련 칸 펼치기
후보별 전체 관측 훈련 칸
후보
특징 번호
특징 칸
질량
양성
α
확률
대체 확률
0
[]
[]
9
3
1
4/11
4/11
1
[0]
["0"]
5
0
1
1/7
4/11
1
[0]
["1"]
4
3
1
2/3
4/11
2
[1]
["1"]
7
2
1
1/3
4/11
2
[1]
["0"]
2
1
1
1/2
4/11
3
[2]
["1"]
4
1
1
1/3
4/11
3
[2]
["0"]
5
2
1
3/7
4/11
4
[0, 1]
["0", "1"]
4
0
1
1/6
4/11
4
[0, 1]
["1", "1"]
3
2
1
3/5
4/11
4
[0, 1]
["1", "0"]
1
1
1
2/3
4/11
4
[0, 1]
["0", "0"]
1
0
1
1/3
4/11
5
[0, 2]
["0", "1"]
3
0
1
1/5
4/11
5
[0, 2]
["1", "0"]
3
2
1
3/5
4/11
5
[0, 2]
["0", "0"]
2
0
1
1/4
4/11
5
[0, 2]
["1", "1"]
1
1
1
2/3
4/11
6
[1, 2]
["1", "1"]
2
0
1
1/4
4/11
6
[1, 2]
["1", "0"]
5
2
1
3/7
4/11
6
[1, 2]
["0", "1"]
2
1
1
1/2
4/11
7
[0, 1, 2]
["0", "1", "1"]
2
0
1
1/4
4/11
7
[0, 1, 2]
["1", "1", "0"]
3
2
1
3/5
4/11
7
[0, 1, 2]
["0", "1", "0"]
2
0
1
1/4
4/11
7
[0, 1, 2]
["1", "0", "1"]
1
1
1
2/3
4/11
7
[0, 1, 2]
["0", "0", "1"]
1
0
1
1/3
4/11
3. 정보량은 어디에서 나오는가
훈련에서 GDP 구분의 정보량은 약 0.5577비트이고 세 특징을 함께 볼 때는 약 0.6122비트입니다. 그런데 정보량이 조금 늘었다고 검증 예측 손실이 반드시 줄지는 않습니다. 훈련 정보표는 모형을 쓰지 않는 경험 빈도의 요약이고, 후보 손실은 평활화한 특정 예측기의 결과입니다.
아래 분할표는 양의 질량을 가진 관측 칸을 모두 싣습니다. 표에 없는 조합은 경험 질량 0이며 0·log 0의 항은 0으로 처리합니다. 상호정보량은 훈련에서 계산하고, 조건부 상호정보량의 조건 집합은 비어 있어 여기서는 MI와 같습니다. 로그값은 근사치이고, 확률과 로그의 계수·인수는 정확한 유리수입니다.
시험은 3행이어서 순환 이동 1과 floor(3/2)는 둘 다 1입니다. 두 중요도 막대는 독립 표본 두 번이 아닙니다. GDP 또는 전체 묶음을 바꾸면 Brier 증가는 22/63이고, 사용하지 않는 두 특징은 0입니다. DEU 행의 예측 2/3은 배경 평균 71/189와 GDP 기여 55/189로 정확히 복원됩니다. 이것으로 소득을 늘리는 정책의 기대수명 효과를 계산한 것은 아닙니다.
원래 시험 행의 표적·가중치·ID는 고정하고, 선언한 특징 묶음만 기증 행에서 가져옵니다. 변경 Brier에서 원래 Brier를 뺍니다. 두 일정은 유한한 민감도 실험이며 표준오차나 무작위 순열의 기대값을 대신하지 않습니다.
모든 특징 묶음·모든 고정 일정
특징 묶음
일정
이동 칸
행
총질량
원래 Brier
변경 Brier
차이
[0]
0
1
3
3
107/1323
569/1323
22/63
[0]
1
1
3
3
107/1323
569/1323
22/63
[1]
0
1
3
3
107/1323
107/1323
0
[1]
1
1
3
3
107/1323
107/1323
0
[2]
0
1
3
3
107/1323
107/1323
0
[2]
1
1
3
3
107/1323
107/1323
0
[0, 1, 2]
0
1
3
3
107/1323
569/1323
22/63
[0, 1, 2]
1
1
3
3
107/1323
569/1323
22/63
국가 · 고정 순열 중요도 · 국가의 두 일정은 같음; 음수·0을 유지 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG각 일정의 처음 12수신 행·전체가 12미만이면 모두
이 표는 명시된 미리보기입니다. 모든 수신·기증 연결은 공개 CSV에 있으며, 실습에서 현재 입력과 고정 실행 자료를 구분해 비교합니다.
특징 묶음·일정별 수신/기증 미리보기
묶음
일정
수신 ID
기증 ID
표적
변경 특징
확률
행 Brier
[0]
0
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[0]
0
JPN:2024
VNM:2024
1
["0", "0", "0"]
1/7
36/49
[0]
0
VNM:2024
DEU:2024
0
["1", "1", "1"]
2/3
4/9
[0]
1
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[0]
1
JPN:2024
VNM:2024
1
["0", "0", "0"]
1/7
36/49
[0]
1
VNM:2024
DEU:2024
0
["1", "1", "1"]
2/3
4/9
[1]
0
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[1]
0
JPN:2024
VNM:2024
1
["1", "1", "0"]
2/3
1/9
[1]
0
VNM:2024
DEU:2024
0
["0", "0", "1"]
1/7
1/49
[1]
1
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[1]
1
JPN:2024
VNM:2024
1
["1", "1", "0"]
2/3
1/9
[1]
1
VNM:2024
DEU:2024
0
["0", "0", "1"]
1/7
1/49
[2]
0
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[2]
0
JPN:2024
VNM:2024
1
["1", "0", "1"]
2/3
1/9
[2]
0
VNM:2024
DEU:2024
0
["0", "1", "0"]
1/7
1/49
[2]
1
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[2]
1
JPN:2024
VNM:2024
1
["1", "0", "1"]
2/3
1/9
[2]
1
VNM:2024
DEU:2024
0
["0", "1", "0"]
1/7
1/49
[0, 1, 2]
0
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[0, 1, 2]
0
JPN:2024
VNM:2024
1
["0", "1", "1"]
1/7
36/49
[0, 1, 2]
0
VNM:2024
DEU:2024
0
["1", "0", "0"]
2/3
4/9
[0, 1, 2]
1
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[0, 1, 2]
1
JPN:2024
VNM:2024
1
["0", "1", "1"]
1/7
36/49
[0, 1, 2]
1
VNM:2024
DEU:2024
0
["1", "0", "0"]
2/3
4/9
5. 한 행을 설명하는 배경·연합·기여
설명 대상은 첫 공통 관측 시험 행 DEU:2024입니다. 최대 32개의 훈련 배경을 원순서에 고르게 배치해 고정하고, 각 배경 질량은 1로 둡니다. 연합에 든 특징은 현재 행에서, 나머지는 배경 행에서 가져온 합성 입력을 모형에 넣습니다. 합성 입력은 새로 관측한 사람·국가·고객이 아닙니다.
선언된 모든 훈련 배경 ID
ID
원행
원 ID
역할
특징
질량
BRA:2024
2
BRA
train
["0", "1", "1"]
1
CAN:2024
3
CAN
train
["1", "1", "0"]
1
CHN:2024
4
CHN
train
["0", "1", "0"]
1
GBR:2024
7
GBR
train
["1", "0", "1"]
1
IDN:2024
8
IDN
train
["0", "1", "0"]
1
IND:2024
9
IND
train
["0", "1", "1"]
1
MEX:2024
12
MEX
train
["0", "0", "1"]
1
SGP:2024
13
SGP
train
["1", "1", "0"]
1
USA:2024
14
USA
train
["1", "1", "0"]
1
모든 연합의 배경 평균 모형 확률
마스크
연합 번호
배경 행
배경 질량
연합 값
0
[]
9
9
71/189
1
[0]
9
9
2/3
2
[1]
9
9
71/189
3
[0, 1]
9
9
2/3
4
[2]
9
9
71/189
5
[0, 2]
9
9
2/3
6
[1, 2]
9
9
71/189
7
[0, 1, 2]
9
9
2/3
모든 기여·기준·현재 예측·합 검산
특징 번호 또는 양
정확 확률 단위 값
0
55/189
1
0
2
0
baseline
71/189
prediction
2/3
prediction − baseline − sum
0
국가 · 첫 시험 행의 기여 · 기준 0.37566 → 현재 0.66667; 선언된 훈련 배경 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG
가중치는 |S|!(p−|S|−1)!/p!이고 모든 특징 순서에서의 증가분을 평균합니다. 기준+기여의 합이 예측과 같다는 성질은 이 모형·이 배경 게임의 배분을 검산합니다. 조건부 표본 추출이나 개입 효과를 식별하는 성질은 아닙니다.
모든 연합×배경 합성 입력 펼치기
전체 72행을 이 표에서20행씩 읽을 수 있습니다. 페이지 번호로 바로 이동할 수 있습니다.
1–20 / 72
모든 구성된 합성 입력·원 관측 아님
마스크
연합
배경 ID
배경 질량
합성 특징
모형 확률
미관측 칸
0
[]
BRA:2024
1
["0", "1", "1"]
1/7
false
0
[]
CAN:2024
1
["1", "1", "0"]
2/3
false
0
[]
CHN:2024
1
["0", "1", "0"]
1/7
false
0
[]
GBR:2024
1
["1", "0", "1"]
2/3
false
0
[]
IDN:2024
1
["0", "1", "0"]
1/7
false
0
[]
IND:2024
1
["0", "1", "1"]
1/7
false
0
[]
MEX:2024
1
["0", "0", "1"]
1/7
false
0
[]
SGP:2024
1
["1", "1", "0"]
2/3
false
0
[]
USA:2024
1
["1", "1", "0"]
2/3
false
1
[0]
BRA:2024
1
["1", "1", "1"]
2/3
false
1
[0]
CAN:2024
1
["1", "1", "0"]
2/3
false
1
[0]
CHN:2024
1
["1", "1", "0"]
2/3
false
1
[0]
GBR:2024
1
["1", "0", "1"]
2/3
false
1
[0]
IDN:2024
1
["1", "1", "0"]
2/3
false
1
[0]
IND:2024
1
["1", "1", "1"]
2/3
false
1
[0]
MEX:2024
1
["1", "0", "1"]
2/3
false
1
[0]
SGP:2024
1
["1", "1", "0"]
2/3
false
1
[0]
USA:2024
1
["1", "1", "0"]
2/3
false
2
[1]
BRA:2024
1
["0", "0", "1"]
1/7
false
2
[1]
CAN:2024
1
["1", "0", "0"]
2/3
false
1–20 / 72
6. 원자료와 선택 모형의 전체 행을 따라가기
국가 전체 16행
ID
1인당 GDP·불변 USD
총 GDP 성장 %
CPI 상승 %
기대수명·년
역할
AUS:2024
≈ 61486.461486.38147544
≈ 1.373411.37340773365975
≈ 3.166573.16656665428797
≈ 83.051283.0512195121951
validation
BRA:2024
≈ 9566.759566.74518687619
≈ 3.419323.41931516501906
≈ 4.367464.36746407652336
76.023
train
CAN:2024
≈ 45061.445061.3864587285
≈ 2.046272.04626605401701
≈ 2.381582.38158383281173
≈ 82.10882.1080487804878
train
CHN:2024
≈ 13119.113119.1076099516
≈ 4.95834.95830378788091
≈ 0.2181290.218128938439177
78.017
train
DEU:2024
≈ 44027.844027.7631554469
≈ -0.495852-0.495851897260366
≈ 2.25652.2564981433876
≈ 80.792780.7926829268293
test
FRA:2024
≈ 39683.439683.3953489029
≈ 1.190471.19046798275883
≈ 1.997431.99742599742599
≈ 82.980582.9804878048781
validation
GBR:2024
≈ 4790147900.9680144146
≈ 1.080281.08027716858781
≈ 3.271573.2715729463592
≈ 81.386981.3868536585366
train
IDN:2024
≈ 4367.954367.94741847938
≈ 5.032575.03257477088519
≈ 2.181512.18151273615188
71.288
train
IND:2024
≈ 2366.832366.8328910323
≈ 7.099287.09927893176518
≈ 4.953044.9530355097366
72.235
train
JPN:2024
≈ 37976.637976.6371788298
≈ -0.240084-0.240084236041696
≈ 2.738542.7385368163524
≈ 84.036384.0363414634146
test
KOR:2024
≈ 37048.437048.4264001496
≈ 2.003612.00361101838986
≈ 2.321742.32174328643542
≈ 83.629383.6292682926829
validation
MEX:2024
≈ 1028410284.0336925726
≈ 1.350581.35057631384696
≈ 4.722264.72225588452931
75.264
train
SGP:2024
≈ 68129.768129.6960402288
≈ 5.343515.3435120192366
≈ 2.389512.38951123595017
≈ 83.346383.3463414634146
train
USA:2024
≈ 66856.566856.5131698371
≈ 2.793192.79318715363841
≈ 2.949532.94952520485207
≈ 78.890278.890243902439
train
VNM:2024
≈ 4012.514012.50779921084
≈ 7.039557.03955197123018
≈ 3.621093.62109273885843
74.736
test
ZAF:2024
≈ 5715.485715.47531469148
≈ 0.5348440.534843531905139
≈ 4.361154.36115246518962
66.312
validation
다음 펼침 표에는 선택 모형의 원행을 전부 싣습니다. 제외 행도 지우지 않고 확률·손실을 미정의로 남깁니다. 미정의는 오류 0이나 위험 0을 뜻하지 않습니다. 원 52개·14개 필드 전체와 모든 후보별 예측은 별도 CSV에 보존되어 있으며, 아래 표는 이 장의 분석에 필요한 특징·표적·역할·출력의 전체 행입니다.
Python은 원문 CSV 세 개에서 구분·역할·후보·순열·배경을 다시 만들고 확률·Brier·기여를 Fraction으로 계산합니다. 로그는 Decimal 80 근사입니다. base R은 같은 유한 계산을 이진 부동소수점으로 재현하므로 정확한 유리수 프로그램이라고 부르지 않습니다. 어느 코드도 이미 계산된 정답 CSV나 웹 엔진을 읽어 답으로 삼지 않습니다.
확인해 봅시다. ① 표의 한 칸 확률을 양성 질량·전체 질량·α로 재계산하세요. ② 검증에서 선택한 후보와 훈련 정보량이 가장 큰 특징 묶음이 다른 이유를 설명하세요. ③ 한 순열에서 바뀐 수신 행을 찾아 차이의 부호를 확인하세요. ④ 한 연합 값을 배경 확률의 평균으로 만들고, 기준+기여=현재 예측을 검산하세요. ⑤ 다른 집단에 같은 결론을 옮기려면 어떤 관측·분할·인과 전제가 더 필요한지 적어 보세요.
Use 64 retained World Bank values for 16 countries in 2024: real GDP per capita, total GDP growth, CPI inflation and period life expectancy. The target is life expectancy at least 80 years. Predictors are binary GDP-per-capita 25000, growth 2-percent and inflation 3-percent cutoffs, with native continuous values preserved.
GDP level is constant 2015 USD per person, not PPP. Growth and inflation are annual percentages; life expectancy is measured in years. These are declared teaching bins, not universal welfare or health-policy thresholds.
Sorted-code positions define nine training, four validation and three test countries. Tests are DEU, JPN, VNM. Validation selects GDP level alone, with Brier 13/147 on validation and 107/1323 on test. Compare the empty-feature test baseline 38/121 on the same three countries.
The fitted high-GDP cell predicts 2/3 and the low cell 1/7. This is a same-year association with a binned life-expectancy target, not the effect of raising GDP. Both test permutation schedules are shift one and remain disclosed as duplicates. Read all native values, roles, candidates and explanation background in the full case below.
From measurements to explanations: full study
Use the 2024 cross-section of 16 countries as a set of learning cards. The target is period life expectancy of at least 80 years; economic level, total GDP growth and consumer-price inflation are candidate predictors. A country is one row with analytical mass one, regardless of population. Native measurements and our constructed binary bins are different data objects.
Positions in sorted country-code order fix nine training, four validation and three test countries. This is neither a representative random world sample nor a prospective forecast assessment. We preserve the retained October 8, 2026 vintage of the 2024 values. GDP is per capita in constant 2015 US dollars, rather than purchasing-power-parity units.
1. What changes and what stays fixed
Source roles, common observations, positives and exclusions
Role
Planned rows
Used rows
Positive rows
Excluded rows
Row mass
train
9
9
3
0
1
validation
4
4
3
0
1
test
3
3
2
0
1
Fixed teaching bins, rather than universal data laws
Index
Condition for one
Native unit
0
GDP per capita ≥ 25,000
constant 2015 USD / person
1
Total GDP growth ≥ 2
annual %
2
CPI inflation ≥ 3
annual %
Target one: Period life expectancy ≥ 80 years. Every candidate uses the same role frames and eligibility. Smoothing adds alpha one to each target class; an unseen predictor cell falls back to the global training probability.
Countries · observed target counts by role · Fixed source-position roles and common observations; not representative random sampling The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNGCountries · all native-unit observations · 16 actual countries, 2024; dotted lines are teaching cutoffs, not a regression fit The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNG
2. Compare every candidate and calculate the selected cells
Validation selects candidate one, using only the GDP-level bin. Three of four training countries in the high-GDP cell are positive, giving the smoothed probability (3+1)/(4+2)=2/3. The lower cell has zero positives among five, giving (0+1)/(5+2)=1/7. Validation Brier is 13/147 and test Brier 107/1323. Compute each squared probability error and average within the same role.
Every declared candidate; test values are reports after selection
Candidate
Predictor indices
Selected
Training Brier
Validation Brier
Test Brier
0
[]
false
27/121
163/484
38/121
1
[0]
true
388/3969
13/147
107/1323
2
[1]
false
35/162
43/144
11/54
3
[2]
false
874/3969
533/1764
337/1323
4
[0, 1]
false
76/675
37/300
1/12
5
[0, 2]
false
373/3240
53/450
3/25
6
[1, 2]
false
239/1176
14603/47432
563/1936
7
[0, 1, 2]
false
1037/8100
21431/108900
563/1936
Every observed training cell of the selected model
Candidate
Predictor cell
Training mass
Positive mass
Alpha
Probability
Unseen fallback
1
["0"]
5
0
1
1/7
4/11
1
["1"]
4
3
1
2/3
4/11
Countries · losses of declared candidates · Validation selects; common role frames; test scores not shown in this curve The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNGExpand training cells for every candidate
All observed training cells by candidate
Candidate
Indices
Cell
Mass
Positive
Alpha
Probability
Fallback
0
[]
[]
9
3
1
4/11
4/11
1
[0]
["0"]
5
0
1
1/7
4/11
1
[0]
["1"]
4
3
1
2/3
4/11
2
[1]
["1"]
7
2
1
1/3
4/11
2
[1]
["0"]
2
1
1
1/2
4/11
3
[2]
["1"]
4
1
1
1/3
4/11
3
[2]
["0"]
5
2
1
3/7
4/11
4
[0, 1]
["0", "1"]
4
0
1
1/6
4/11
4
[0, 1]
["1", "1"]
3
2
1
3/5
4/11
4
[0, 1]
["1", "0"]
1
1
1
2/3
4/11
4
[0, 1]
["0", "0"]
1
0
1
1/3
4/11
5
[0, 2]
["0", "1"]
3
0
1
1/5
4/11
5
[0, 2]
["1", "0"]
3
2
1
3/5
4/11
5
[0, 2]
["0", "0"]
2
0
1
1/4
4/11
5
[0, 2]
["1", "1"]
1
1
1
2/3
4/11
6
[1, 2]
["1", "1"]
2
0
1
1/4
4/11
6
[1, 2]
["1", "0"]
5
2
1
3/7
4/11
6
[1, 2]
["0", "1"]
2
1
1
1/2
4/11
7
[0, 1, 2]
["0", "1", "1"]
2
0
1
1/4
4/11
7
[0, 1, 2]
["1", "1", "0"]
3
2
1
3/5
4/11
7
[0, 1, 2]
["0", "1", "0"]
2
0
1
1/4
4/11
7
[0, 1, 2]
["1", "0", "1"]
1
1
1
2/3
4/11
7
[0, 1, 2]
["0", "0", "1"]
1
0
1
1/3
4/11
3. Where the information comes from
Training information is about 0.5577 bits for GDP alone and 0.6122 bits jointly for all three predictors. More empirical information need not improve the validation loss of this particular smoothed predictor. The information table summarizes categorical frequencies without fitting the predictor; candidate risks evaluate a specified model.
The contingency tables list every positive-mass empirical cell. Unlisted combinations have zero empirical mass and contribute zero to the corresponding zero-log-zero term. Information uses training data. The conditioning set for CMI is empty here, so CMI equals MI. Logarithms are approximate; probabilities and the coefficients and arguments of logarithms are exact rationals.
Observed cells of every marginal and joint table
Profile
Indices
Predictor value
Target
Cell mass
Total mass
P(X,Y)
P(X)
P(Y)
feature0
[0]
["0"]
0
5
9
5/9
5/9
2/3
feature0
[0]
["1"]
1
3
9
1/3
4/9
1/3
feature0
[0]
["1"]
0
1
9
1/9
4/9
2/3
feature1
[1]
["1"]
0
5
9
5/9
7/9
2/3
feature1
[1]
["1"]
1
2
9
2/9
7/9
1/3
feature1
[1]
["0"]
1
1
9
1/9
2/9
1/3
feature1
[1]
["0"]
0
1
9
1/9
2/9
2/3
feature2
[2]
["1"]
0
3
9
1/3
4/9
2/3
feature2
[2]
["0"]
1
2
9
2/9
5/9
1/3
feature2
[2]
["0"]
0
3
9
1/3
5/9
2/3
feature2
[2]
["1"]
1
1
9
1/9
4/9
1/3
joint
[0, 1, 2]
["0", "1", "1"]
0
2
9
2/9
2/9
2/3
joint
[0, 1, 2]
["1", "1", "0"]
1
2
9
2/9
1/3
1/3
joint
[0, 1, 2]
["0", "1", "0"]
0
2
9
2/9
2/9
2/3
joint
[0, 1, 2]
["1", "0", "1"]
1
1
9
1/9
1/9
1/3
joint
[0, 1, 2]
["0", "0", "1"]
0
1
9
1/9
1/9
2/3
joint
[0, 1, 2]
["1", "1", "0"]
0
1
9
1/9
1/3
2/3
Information for each training table; bits, Decimal-80 approximation
Countries · empirical training information · Plug-in categorical information; not a p-value or causal effect The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNGExpand every exact log-linear expression
For each profile and quantity, sum coefficient × log₂(argument). The repeated approximateSum is the approximation of that complete expression, rather than the value of an individual term.
Read all 69 rows in this table, twenty at a time. Enter a page number to jump directly.
1–20 / 69
Every log term reconstructible from the probability tables
With three test rows, shifts one and floor(3/2) are both one. Their bars are not independent repetitions. Replacing GDP or the whole predictor group increases Brier by 22/63, while the two unused predictors give zero. For DEU, the prediction 2/3 equals background mean 71/189 plus GDP contribution 55/189. This is not an estimate of a policy effect of income on life expectancy.
Keep each recipient’s test target, weight and identity; replace only the declared feature group with its donor values. Subtract original Brier from altered Brier. The two schedules are finite sensitivity experiments, not standard errors or expectations over random permutations.
Every feature group and fixed schedule
Group
Schedule
Shift
Rows
Mass
Original Brier
Altered Brier
Difference
[0]
0
1
3
3
107/1323
569/1323
22/63
[0]
1
1
3
3
107/1323
569/1323
22/63
[1]
0
1
3
3
107/1323
107/1323
0
[1]
1
1
3
3
107/1323
107/1323
0
[2]
0
1
3
3
107/1323
107/1323
0
[2]
1
1
3
3
107/1323
107/1323
0
[0, 1, 2]
0
1
3
3
107/1323
569/1323
22/63
[0, 1, 2]
1
1
3
3
107/1323
569/1323
22/63
Countries · finite-schedule permutation importance · Both country schedules are identical; retain signs and zeros The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNGFirst twelve recipient rows per schedule, or all when fewer
This is an explicitly bounded preview. The public CSV contains every recipient/donor mapping; in the lab, distinguish current inputs from the fixed study.
Recipient/donor preview by group and schedule
Group
Schedule
Recipient ID
Donor ID
Target
Altered predictors
Probability
Row Brier
[0]
0
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[0]
0
JPN:2024
VNM:2024
1
["0", "0", "0"]
1/7
36/49
[0]
0
VNM:2024
DEU:2024
0
["1", "1", "1"]
2/3
4/9
[0]
1
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[0]
1
JPN:2024
VNM:2024
1
["0", "0", "0"]
1/7
36/49
[0]
1
VNM:2024
DEU:2024
0
["1", "1", "1"]
2/3
4/9
[1]
0
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[1]
0
JPN:2024
VNM:2024
1
["1", "1", "0"]
2/3
1/9
[1]
0
VNM:2024
DEU:2024
0
["0", "0", "1"]
1/7
1/49
[1]
1
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[1]
1
JPN:2024
VNM:2024
1
["1", "1", "0"]
2/3
1/9
[1]
1
VNM:2024
DEU:2024
0
["0", "0", "1"]
1/7
1/49
[2]
0
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[2]
0
JPN:2024
VNM:2024
1
["1", "0", "1"]
2/3
1/9
[2]
0
VNM:2024
DEU:2024
0
["0", "1", "0"]
1/7
1/49
[2]
1
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[2]
1
JPN:2024
VNM:2024
1
["1", "0", "1"]
2/3
1/9
[2]
1
VNM:2024
DEU:2024
0
["0", "1", "0"]
1/7
1/49
[0, 1, 2]
0
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[0, 1, 2]
0
JPN:2024
VNM:2024
1
["0", "1", "1"]
1/7
36/49
[0, 1, 2]
0
VNM:2024
DEU:2024
0
["1", "0", "0"]
2/3
4/9
[0, 1, 2]
1
DEU:2024
JPN:2024
1
["1", "0", "0"]
2/3
1/9
[0, 1, 2]
1
JPN:2024
VNM:2024
1
["0", "1", "1"]
1/7
36/49
[0, 1, 2]
1
VNM:2024
DEU:2024
0
["1", "0", "0"]
2/3
4/9
5. Background, coalitions and contributions for one row
The focal case is the first complete test row, DEU:2024. Fix up to thirty-two evenly spaced training backgrounds in source order, each with mass one. A hybrid takes coalition features from the focal row and other features from the background. It is a constructed input, not a newly observed person, country or customer.
Every declared training background ID
ID
Source row
Native ID
Role
Predictors
Mass
BRA:2024
2
BRA
train
["0", "1", "1"]
1
CAN:2024
3
CAN
train
["1", "1", "0"]
1
CHN:2024
4
CHN
train
["0", "1", "0"]
1
GBR:2024
7
GBR
train
["1", "0", "1"]
1
IDN:2024
8
IDN
train
["0", "1", "0"]
1
IND:2024
9
IND
train
["0", "1", "1"]
1
MEX:2024
12
MEX
train
["0", "0", "1"]
1
SGP:2024
13
SGP
train
["1", "1", "0"]
1
USA:2024
14
USA
train
["1", "1", "0"]
1
Background-mean model probability for every coalition
Mask
Coalition indices
Background rows
Background mass
Game value
0
[]
9
9
71/189
1
[0]
9
9
2/3
2
[1]
9
9
71/189
3
[0, 1]
9
9
2/3
4
[2]
9
9
71/189
5
[0, 2]
9
9
2/3
6
[1, 2]
9
9
71/189
7
[0, 1, 2]
9
9
2/3
All contributions, baseline, prediction and reconstruction
Feature index or quantity
Exact probability-unit value
0
55/189
1
0
2
0
baseline
71/189
prediction
2/3
prediction − baseline − sum
0
Countries · first-test-row contributions · Baseline 0.37566 → focal 0.66667; declared training background The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNG
Weights are |S|!(p−|S|−1)!/p!, averaging marginal changes over all feature orders. Baseline plus contributions reconstructs the prediction within this model and background game; reconstruction does not identify a conditional-sampling or intervention effect.
Expand all coalition-by-background hybrids
Read all 72 rows in this table, twenty at a time. Enter a page number to jump directly.
1–20 / 72
Every constructed hybrid; not native observations
Mask
Coalition
Background ID
Mass
Hybrid predictors
Model probability
Unseen cell
0
[]
BRA:2024
1
["0", "1", "1"]
1/7
false
0
[]
CAN:2024
1
["1", "1", "0"]
2/3
false
0
[]
CHN:2024
1
["0", "1", "0"]
1/7
false
0
[]
GBR:2024
1
["1", "0", "1"]
2/3
false
0
[]
IDN:2024
1
["0", "1", "0"]
1/7
false
0
[]
IND:2024
1
["0", "1", "1"]
1/7
false
0
[]
MEX:2024
1
["0", "0", "1"]
1/7
false
0
[]
SGP:2024
1
["1", "1", "0"]
2/3
false
0
[]
USA:2024
1
["1", "1", "0"]
2/3
false
1
[0]
BRA:2024
1
["1", "1", "1"]
2/3
false
1
[0]
CAN:2024
1
["1", "1", "0"]
2/3
false
1
[0]
CHN:2024
1
["1", "1", "0"]
2/3
false
1
[0]
GBR:2024
1
["1", "0", "1"]
2/3
false
1
[0]
IDN:2024
1
["1", "1", "0"]
2/3
false
1
[0]
IND:2024
1
["1", "1", "1"]
2/3
false
1
[0]
MEX:2024
1
["1", "0", "1"]
2/3
false
1
[0]
SGP:2024
1
["1", "1", "0"]
2/3
false
1
[0]
USA:2024
1
["1", "1", "0"]
2/3
false
2
[1]
BRA:2024
1
["0", "0", "1"]
1/7
false
2
[1]
CAN:2024
1
["1", "0", "0"]
2/3
false
1–20 / 72
6. Trace native measurements and every selected-model row
All sixteen country rows
ID
GDPpc constant USD
Total GDP growth %
CPI inflation %
Life expectancy years
Role
AUS:2024
≈ 61486.461486.38147544
≈ 1.373411.37340773365975
≈ 3.166573.16656665428797
≈ 83.051283.0512195121951
validation
BRA:2024
≈ 9566.759566.74518687619
≈ 3.419323.41931516501906
≈ 4.367464.36746407652336
76.023
train
CAN:2024
≈ 45061.445061.3864587285
≈ 2.046272.04626605401701
≈ 2.381582.38158383281173
≈ 82.10882.1080487804878
train
CHN:2024
≈ 13119.113119.1076099516
≈ 4.95834.95830378788091
≈ 0.2181290.218128938439177
78.017
train
DEU:2024
≈ 44027.844027.7631554469
≈ -0.495852-0.495851897260366
≈ 2.25652.2564981433876
≈ 80.792780.7926829268293
test
FRA:2024
≈ 39683.439683.3953489029
≈ 1.190471.19046798275883
≈ 1.997431.99742599742599
≈ 82.980582.9804878048781
validation
GBR:2024
≈ 4790147900.9680144146
≈ 1.080281.08027716858781
≈ 3.271573.2715729463592
≈ 81.386981.3868536585366
train
IDN:2024
≈ 4367.954367.94741847938
≈ 5.032575.03257477088519
≈ 2.181512.18151273615188
71.288
train
IND:2024
≈ 2366.832366.8328910323
≈ 7.099287.09927893176518
≈ 4.953044.9530355097366
72.235
train
JPN:2024
≈ 37976.637976.6371788298
≈ -0.240084-0.240084236041696
≈ 2.738542.7385368163524
≈ 84.036384.0363414634146
test
KOR:2024
≈ 37048.437048.4264001496
≈ 2.003612.00361101838986
≈ 2.321742.32174328643542
≈ 83.629383.6292682926829
validation
MEX:2024
≈ 1028410284.0336925726
≈ 1.350581.35057631384696
≈ 4.722264.72225588452931
75.264
train
SGP:2024
≈ 68129.768129.6960402288
≈ 5.343515.3435120192366
≈ 2.389512.38951123595017
≈ 83.346383.3463414634146
train
USA:2024
≈ 66856.566856.5131698371
≈ 2.793192.79318715363841
≈ 2.949532.94952520485207
≈ 78.890278.890243902439
train
VNM:2024
≈ 4012.514012.50779921084
≈ 7.039557.03955197123018
≈ 3.621093.62109273885843
74.736
test
ZAF:2024
≈ 5715.485715.47531469148
≈ 0.5348440.534843531905139
≈ 4.361154.36115246518962
66.312
validation
The following expandable table includes every native row of the selected-model study. Exclusions remain visible, with probability and loss undefined. Undefined is not zero error or zero risk. All fifty-two or fourteen native fields and every candidate’s predictions are retained in the separate CSVs; this table presents every analytical row with predictors, target, role and selected-model output.
Expand all 16 selected-model rows
Every selected-model row, including retained exclusions
Python reconstructs bins, roles, candidates, schedules and backgrounds from three factual CSVs. Probabilities, Brier scores and contributions use Fraction, while logarithms use an eighty-digit Decimal approximation. Base R reproduces the finite study with binary floating point and is not an exact rational program. Neither companion uses precomputed answer CSVs or the web engine as its answers.
Try five checks. Recalculate one cell probability from its positive mass, total mass and alpha. Explain why validation choice and the most informative feature set may differ. Trace a changed recipient in one permutation and verify the sign of its loss difference. Average background predictions for one coalition and check baseline plus contributions. Finally, state what new sampling, splitting and causal assumptions would be needed to transport the conclusion.
Downloads of native observations and every computed table
실제 개인: 원 임금과 배경 의존 설명Actual people: native wages and background-dependent explanations
NLS 원자료 3,613명의 52개 필드를 보존합니다. 원 임금·교육·나이·대학 근접 여부에 필요한 관측이 있는 3,017명을 이 장의 공통 분석 틀로 사용하고 596명의 제외 행도 남깁니다. 역할은 훈련 1,819명, 검증 594명, 시험 604명입니다.
표적은 1976년 명목 시급 500센트 이상 여부입니다. 특징은 교육 12년 이상, 나이 25세 이상, 원래 대학 근접 범주 nearc4입니다. 원 연구에서 사용된 도구변수 논리를 이 단순 예측에 자동 적용하지 않습니다. 실질 임금이나 교육의 인과 수익률도 아닙니다.
검증은 세 특징을 함께 고릅니다. 훈련의 개별 정보량은 교육 약 0.02914비트, 나이 약 0.01795비트, 근접 약 0.01107비트입니다. 이 수치는 유의확률이 아닙니다. 시험 Brier는 약 0.21768이며 같은 604명의 빈 특징 기준선 약 0.242846와 비교합니다.
첫 시험 행은 원자료 5행·원 ID 6으로 교육 12년, 나이 34세, 근접 범주 1, 임금 729센트입니다. 선택 모형의 확률은 15/22입니다. 이 행의 유한 배경 설명에서 나이 기여는 0이지만 나이의 전역 순열 중요도는 양수입니다. 배경 32명의 나이 이진값이 모두 현재와 같기 때문입니다. 두 다른 질문의 차이를 실제 데이터로 확인해 보세요.
자료에서 설명까지 · 전체 사례
개인의 임금을 맞히는 문제에서도 “무엇을 예측할까?”부터 정해야 합니다. 여기서는 원 1976년 임금이 시간당 500센트 이상인지가 표적입니다. 500센트는 당시 명목 5달러이며, 현재의 구매력이나 실질 임금으로 바꾸지 않았습니다. 교육·나이·대학 근접 여부를 이진 구분하여 작은 범주 모형을 배웁니다.
원 3,613명을 모두 보존하되 필요한 네 원변수 중 결측이 있으면 그 행을 추정·평가에서 제외합니다. 그 결과 공통 관측 3,017명과 제외 596명이 남습니다. 훈련 1,819명·검증 594명·시험 604명의 원행 역할은 결측을 삭제한 뒤 다시 매기지 않습니다. 원 id와 이 장의 원자료 행 번호도 구별합니다. 원자료 1행의 원 id는 2입니다. 원 조사 가중치는 CSV에 보존하지만 여기의 계산 질량은 모두 1입니다.
1. 무엇을 바꾸고 무엇을 고정했나
원행 역할·공통 관측·양성·제외
역할
계획 행
사용 행
양성 행
제외 행
행 질량
train
2168
1819
1037
349
1
validation
723
594
342
129
1
test
722
604
354
118
1
이 장의 고정 구분 기준 · 자료 자체의 보편 법칙 아님
번호
1이 되는 조건
원단위
0
교육 연수 ≥ 12
1976년 연수
1
나이 ≥ 25
1976년 만 나이·년
2
nearc4 = 1
원 4년제 대학 근접 범주
표적 1의 정의: 1976년 원 임금 ≥ 500 명목 센트/시간. 모든 후보는 같은 역할·같은 공통 관측 조건에서 비교합니다. 평활화는 각 표적 범주에 α=1을 더하며, 훈련에서 본 적 없는 특징 칸에는 전체 훈련 확률을 씁니다.
개인 · 역할별 실제 표적 수 · 고정 원행 역할·공통 관측 조건; 무작위 대표 표본 아님 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG개인 · 원단위 관측 전체 · 공통 관측 3,017명 전부; 제외 596행 보존, 인과 수익률 아님 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG
2. 전체 후보를 비교하고 선택한 칸을 손으로 계산하기
검증은 후보 7, 즉 세 구분을 모두 사용하는 모형을 고릅니다. 첫 시험 행은 원자료 5행·원 id 6이며, 교육 12년·나이 34년·대학 근접 1·임금 729센트입니다. 모형의 이 행 확률은 15/22, 표적은 1이므로 행 Brier는 (15/22−1)²=49/484입니다. 이것은 특정 개인의 관측 임금 수준 구분이지 교육을 1년 더 받았을 때의 인과 임금 증가가 아닙니다.
개인 · 선언된 후보의 손실 · 검증만 선택에 사용; 같은 역할 분모·시험은 이 곡선에 미표시 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG모든 후보의 훈련 칸 펼치기
후보별 전체 관측 훈련 칸
후보
특징 번호
특징 칸
질량
양성
α
확률
대체 확률
0
[]
[]
1819
1037
1
346/607
346/607
1
[0]
["1"]
1510
929
1
155/252
346/607
1
[0]
["0"]
309
108
1
109/311
346/607
2
[1]
["1"]
1576
947
1
158/263
346/607
2
[1]
["0"]
243
90
1
13/35
346/607
3
[2]
["0"]
579
278
1
279/581
346/607
3
[2]
["1"]
1240
759
1
380/621
346/607
4
[0, 1]
["1", "1"]
1298
854
1
171/260
346/607
4
[0, 1]
["0", "1"]
278
93
1
47/140
346/607
4
[0, 1]
["0", "0"]
31
15
1
16/33
346/607
4
[0, 1]
["1", "0"]
212
75
1
38/107
346/607
5
[0, 2]
["1", "0"]
446
247
1
31/56
346/607
5
[0, 2]
["0", "1"]
176
77
1
39/89
346/607
5
[0, 2]
["1", "1"]
1064
682
1
683/1066
346/607
5
[0, 2]
["0", "0"]
133
31
1
32/135
346/607
6
[1, 2]
["1", "0"]
493
251
1
28/55
346/607
6
[1, 2]
["1", "1"]
1083
696
1
697/1085
346/607
6
[1, 2]
["0", "1"]
157
63
1
64/159
346/607
6
[1, 2]
["0", "0"]
86
27
1
7/22
346/607
7
[0, 1, 2]
["1", "1", "0"]
376
225
1
113/189
346/607
7
[0, 1, 2]
["0", "1", "1"]
161
67
1
68/163
346/607
7
[0, 1, 2]
["1", "1", "1"]
922
629
1
15/22
346/607
7
[0, 1, 2]
["0", "0", "1"]
15
10
1
11/17
346/607
7
[0, 1, 2]
["1", "0", "1"]
142
53
1
3/8
346/607
7
[0, 1, 2]
["0", "0", "0"]
16
5
1
1/3
346/607
7
[0, 1, 2]
["0", "1", "0"]
117
26
1
27/119
346/607
7
[0, 1, 2]
["1", "0", "0"]
70
22
1
23/72
346/607
3. 정보량은 어디에서 나오는가
교육의 훈련 상호정보량은 약 0.02914비트, 나이는 0.01795비트, 대학 근접은 0.01107비트입니다. 세 특징을 묶으면 약 0.06743비트입니다. 작은 정보량도 표본 크기·비용·모형에 따라 검토 가치가 있을 수 있고, 이 값 자체가 유의확률을 제공하지는 않습니다.
아래 분할표는 양의 질량을 가진 관측 칸을 모두 싣습니다. 표에 없는 조합은 경험 질량 0이며 0·log 0의 항은 0으로 처리합니다. 상호정보량은 훈련에서 계산하고, 조건부 상호정보량의 조건 집합은 비어 있어 여기서는 MI와 같습니다. 로그값은 근사치이고, 확률과 로그의 계수·인수는 정확한 유리수입니다.
대학 근접의 첫 순열 중요도는 음수입니다. 그대로 두어야 고정 시험 자료에서 우연히 손실이 낮아질 수 있음을 배울 수 있습니다. 반면 첫 개인의 나이 기여는 정확히 0입니다. 선언한 배경 32명은 모두 나이 구분 1이고 현재 개인도 1이므로, 이 게임에서 나이를 현재 값으로 대체해도 아무 칸도 바뀌지 않습니다. 전체 시험의 나이 중요도가 양수인 것과 모순되지 않습니다.
원래 시험 행의 표적·가중치·ID는 고정하고, 선언한 특징 묶음만 기증 행에서 가져옵니다. 변경 Brier에서 원래 Brier를 뺍니다. 두 일정은 유한한 민감도 실험이며 표준오차나 무작위 순열의 기대값을 대신하지 않습니다.
모든 특징 묶음·모든 고정 일정
특징 묶음
일정
이동 칸
행
총질량
원래 Brier
변경 Brier
차이
[0]
0
1
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.233189149580936105083573/641459065401399168
≈ 0.015508819896558722206487/1282918130802798336
[0]
1
302
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.24243311018362882316863/1282918130802798336
≈ 0.02475067938262348589051/320729532700699584
[1]
0
1
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.23474243022052756388751/183274018686114048
≈ 0.01706193648175967793433/213819688467133056
[1]
1
302
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.235769302472821157419455/1282918130802798336
≈ 0.01808965801876917364699/320729532700699584
[2]
0
1
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.215202276086518987369763/1282918130802798336
≈ -0.00247778-2006814709969/809923062375504
[2]
1
302
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.224025287405338287842491/1282918130802798336
≈ 0.0063449392500281816839/14578615122759072
[0, 1, 2]
0
1
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.244484313652614004110163/1282918130802798336
≈ 0.02680423316701/869897259
[0, 1, 2]
1
302
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.270661347236478425767251/1282918130802798336
≈ 0.05298176584089/124271037
개인 · 고정 순열 중요도 · 수신 행의 정답·질량 고정; 두 일정은 무작위 법칙이 아님 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG각 일정의 처음 12수신 행·전체가 12미만이면 모두
이 표는 명시된 미리보기입니다. 모든 수신·기증 연결은 공개 CSV에 있으며, 실습에서 현재 입력과 고정 실행 자료를 구분해 비교합니다.
전체 96행을 이 표에서20행씩 읽을 수 있습니다. 페이지 번호로 바로 이동할 수 있습니다.
1–20 / 96
특징 묶음·일정별 수신/기증 미리보기
묶음
일정
수신 ID
기증 ID
표적
변경 특징
확률
행 Brier
[0]
0
person:5
person:10
1
["1", "1", "1"]
15/22
49/484
[0]
0
person:10
person:15
1
["1", "1", "1"]
15/22
49/484
[0]
0
person:15
person:20
1
["0", "1", "1"]
68/163
9025/26569
[0]
0
person:20
person:25
1
["1", "1", "1"]
15/22
49/484
[0]
0
person:25
person:30
1
["1", "1", "1"]
15/22
49/484
[0]
0
person:30
person:35
0
["1", "1", "1"]
15/22
225/484
[0]
0
person:35
person:40
0
["1", "1", "1"]
15/22
225/484
[0]
0
person:40
person:45
1
["0", "1", "1"]
68/163
9025/26569
[0]
0
person:45
person:50
0
["0", "1", "1"]
68/163
4624/26569
[0]
0
person:50
person:55
1
["1", "1", "1"]
15/22
49/484
[0]
0
person:55
person:65
1
["1", "1", "1"]
15/22
49/484
[0]
0
person:65
person:70
1
["1", "1", "1"]
15/22
49/484
[0]
1
person:5
person:1810
1
["1", "1", "1"]
15/22
49/484
[0]
1
person:10
person:1815
1
["1", "1", "1"]
15/22
49/484
[0]
1
person:15
person:1820
1
["1", "1", "1"]
15/22
49/484
[0]
1
person:20
person:1825
1
["1", "1", "1"]
15/22
49/484
[0]
1
person:25
person:1830
1
["1", "1", "1"]
15/22
49/484
[0]
1
person:30
person:1835
0
["1", "1", "1"]
15/22
225/484
[0]
1
person:35
person:1840
0
["1", "1", "1"]
15/22
225/484
[0]
1
person:40
person:1845
1
["1", "1", "1"]
15/22
49/484
1–20 / 96
5. 한 행을 설명하는 배경·연합·기여
설명 대상은 첫 공통 관측 시험 행 person:5입니다. 최대 32개의 훈련 배경을 원순서에 고르게 배치해 고정하고, 각 배경 질량은 1로 둡니다. 연합에 든 특징은 현재 행에서, 나머지는 배경 행에서 가져온 합성 입력을 모형에 넣습니다. 합성 입력은 새로 관측한 사람·국가·고객이 아닙니다.
선언된 모든 훈련 배경 ID
ID
원행
원 ID
역할
특징
질량
person:2
2
3
train
["1", "1", "0"]
1
person:113
113
188
train
["1", "1", "1"]
1
person:222
222
339
train
["1", "1", "1"]
1
person:329
329
486
train
["1", "1", "1"]
1
person:442
442
654
train
["1", "1", "1"]
1
person:544
544
821
train
["1", "1", "1"]
1
person:664
664
979
train
["1", "1", "1"]
1
person:782
782
1133
train
["1", "1", "1"]
1
person:897
897
1312
train
["1", "1", "1"]
1
person:1017
1017
1518
train
["1", "1", "1"]
1
person:1137
1137
1677
train
["0", "1", "1"]
1
person:1247
1247
1816
train
["1", "1", "0"]
1
person:1369
1369
1975
train
["1", "1", "1"]
1
person:1488
1488
2140
train
["0", "1", "1"]
1
person:1608
1608
2299
train
["1", "1", "0"]
1
person:1728
1728
2464
train
["1", "1", "1"]
1
person:1839
1839
2613
train
["1", "1", "1"]
1
person:1953
1953
2793
train
["0", "1", "1"]
1
person:2083
2083
2978
train
["1", "1", "0"]
1
person:2199
2199
3145
train
["0", "1", "1"]
1
person:2313
2313
3314
train
["0", "1", "1"]
1
person:2423
2423
3475
train
["1", "1", "1"]
1
person:2538
2538
3628
train
["1", "1", "1"]
1
person:2652
2652
3817
train
["1", "1", "1"]
1
person:2772
2772
4005
train
["1", "1", "1"]
1
person:2903
2903
4201
train
["1", "1", "0"]
1
person:3022
3022
4374
train
["1", "1", "1"]
1
person:3138
3138
4539
train
["1", "1", "0"]
1
person:3249
3249
4711
train
["0", "1", "0"]
1
person:3363
3363
4870
train
["1", "1", "0"]
1
person:3473
3473
5012
train
["1", "1", "0"]
1
person:3613
3613
5225
train
["1", "1", "1"]
1
모든 연합의 배경 평균 모형 확률
마스크
연합 번호
배경 행
배경 질량
연합 값
0
[]
32
32
≈ 0.60526855790303/92174544
1
[0]
32
32
9731/14784
2
[1]
32
32
≈ 0.60526855790303/92174544
3
[0, 1]
32
32
9731/14784
4
[2]
32
32
36273/57376
5
[0, 2]
32
32
15/22
6
[1, 2]
32
32
36273/57376
7
[0, 1, 2]
32
32
15/22
모든 기여·기준·현재 예측·합 검산
특징 번호 또는 양
정확 확률 단위 값
0
≈ 0.05128183437729/67036032
1
0
2
≈ 0.025268418632797/737396352
baseline
≈ 0.60526855790303/92174544
prediction
15/22
prediction − baseline − sum
0
개인 · 첫 시험 행의 기여 · 기준 0.60527 → 현재 0.68182; 선언된 훈련 배경 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG
가중치는 |S|!(p−|S|−1)!/p!이고 모든 특징 순서에서의 증가분을 평균합니다. 기준+기여의 합이 예측과 같다는 성질은 이 모형·이 배경 게임의 배분을 검산합니다. 조건부 표본 추출이나 개입 효과를 식별하는 성질은 아닙니다.
모든 연합×배경 합성 입력 펼치기
전체 256행을 이 표에서20행씩 읽을 수 있습니다. 페이지 번호로 바로 이동할 수 있습니다.
1–20 / 256
모든 구성된 합성 입력·원 관측 아님
마스크
연합
배경 ID
배경 질량
합성 특징
모형 확률
미관측 칸
0
[]
person:2
1
["1", "1", "0"]
113/189
false
0
[]
person:113
1
["1", "1", "1"]
15/22
false
0
[]
person:222
1
["1", "1", "1"]
15/22
false
0
[]
person:329
1
["1", "1", "1"]
15/22
false
0
[]
person:442
1
["1", "1", "1"]
15/22
false
0
[]
person:544
1
["1", "1", "1"]
15/22
false
0
[]
person:664
1
["1", "1", "1"]
15/22
false
0
[]
person:782
1
["1", "1", "1"]
15/22
false
0
[]
person:897
1
["1", "1", "1"]
15/22
false
0
[]
person:1017
1
["1", "1", "1"]
15/22
false
0
[]
person:1137
1
["0", "1", "1"]
68/163
false
0
[]
person:1247
1
["1", "1", "0"]
113/189
false
0
[]
person:1369
1
["1", "1", "1"]
15/22
false
0
[]
person:1488
1
["0", "1", "1"]
68/163
false
0
[]
person:1608
1
["1", "1", "0"]
113/189
false
0
[]
person:1728
1
["1", "1", "1"]
15/22
false
0
[]
person:1839
1
["1", "1", "1"]
15/22
false
0
[]
person:1953
1
["0", "1", "1"]
68/163
false
0
[]
person:2083
1
["1", "1", "0"]
113/189
false
0
[]
person:2199
1
["0", "1", "1"]
68/163
false
1–20 / 256
6. 원자료와 선택 모형의 전체 행을 따라가기
전체 48행을 이 표에서20행씩 읽을 수 있습니다. 페이지 번호로 바로 이동할 수 있습니다.
1–20 / 48
원자료 처음 48행의 명시적 미리보기
원행
원 id
교육·년
나이·년
대학 근접
임금·명목 센트/시간
역할
1
2
7
29
0
548
validation
2
3
12
27
0
481
train
3
4
12
34
0
721
train
4
5
11
27
1
250
train
5
6
12
34
1
729
test
6
7
12
26
1
500
validation
7
8
18
33
1
565
train
8
9
14
29
1
608
train
9
10
12
28
1
425
train
10
11
12
29
1
515
test
11
12
9
28
1
225
validation
12
13
12
26
1
400
train
13
14
11
24
1
417
train
14
15
11
30
1
217
train
15
16
16
31
1
894
test
16
17
14
24
1
300
validation
17
18
11
34
1
미정의·결측
excluded
18
19
12
34
1
346
train
19
20
14
29
1
658
train
20
22
10
26
1
575
test
1–20 / 48
다음 펼침 표에는 선택 모형의 원행을 전부 싣습니다. 제외 행도 지우지 않고 확률·손실을 미정의로 남깁니다. 미정의는 오류 0이나 위험 0을 뜻하지 않습니다. 원 52개·14개 필드 전체와 모든 후보별 예측은 별도 CSV에 보존되어 있으며, 아래 표는 이 장의 분석에 필요한 특징·표적·역할·출력의 전체 행입니다.
선택 모형 전체 3613행 펼치기
전체 3613행을 이 표에서20행씩 읽을 수 있습니다. 페이지 번호로 바로 이동할 수 있습니다.
Python은 원문 CSV 세 개에서 구분·역할·후보·순열·배경을 다시 만들고 확률·Brier·기여를 Fraction으로 계산합니다. 로그는 Decimal 80 근사입니다. base R은 같은 유한 계산을 이진 부동소수점으로 재현하므로 정확한 유리수 프로그램이라고 부르지 않습니다. 어느 코드도 이미 계산된 정답 CSV나 웹 엔진을 읽어 답으로 삼지 않습니다.
확인해 봅시다. ① 표의 한 칸 확률을 양성 질량·전체 질량·α로 재계산하세요. ② 검증에서 선택한 후보와 훈련 정보량이 가장 큰 특징 묶음이 다른 이유를 설명하세요. ③ 한 순열에서 바뀐 수신 행을 찾아 차이의 부호를 확인하세요. ④ 한 연합 값을 배경 확률의 평균으로 만들고, 기준+기여=현재 예측을 검산하세요. ⑤ 다른 집단에 같은 결론을 옮기려면 어떤 관측·분할·인과 전제가 더 필요한지 적어 보세요.
Retain all 52 native fields for 3,613 NLS people. The common frame contains 3,017 people with required wage, schooling, age and proximity observations;596 excluded rows remain archived. Roles contain 1,819 training,594 validation and 604 test people.
The target is nominal hourly wage in 1976 at least 500 cents. Predictors are schooling at least 12 years, age at least 25 years and native nearc4. The original study’s instrumental-variable argument does not automatically apply to this predictive exercise. These are neither real wages nor causal returns to schooling.
Validation selects all three predictors. Marginal training information is about 0.02914 bits for schooling,0.01795 for age and 0.01107 for proximity, not p-values. Test Brier is about 0.21768, compared with the empty-feature baseline 0.242846 on the same 604 people.
The first test observation is native row 5,original ID 6: schooling 12,age 34,proximity 1 and wage 729 cents. Its prediction is 15/22. Its finite-background age contribution is zero despite positive global age permutation importance, because all 32 background age bins match the focal bin. Use the actual table to distinguish these questions.
From measurements to explanations: full study
Even for individual wages, begin by choosing the prediction question. Our target is whether the native 1976 wage reaches 500 cents per hour: five nominal dollars at that time, without a purchasing-power or real-wage conversion. Binary schooling, age and college-proximity categories make a small categorical model that can be inspected completely.
All 3,613 native people remain in the source. A missing value in any required predictor or target excludes that row from the common fitting and scoring frame, leaving 3,017 complete people and 596 retained exclusions. Training has 1,819, validation 594 and test 604 people. Roles follow original positions and are not renumbered after dropping missing values. Original identity and source position differ: source row one has native id two. Native survey weights remain in the CSV but analytical masses here are one.
1. What changes and what stays fixed
Source roles, common observations, positives and exclusions
Role
Planned rows
Used rows
Positive rows
Excluded rows
Row mass
train
2168
1819
1037
349
1
validation
723
594
342
129
1
test
722
604
354
118
1
Fixed teaching bins, rather than universal data laws
Index
Condition for one
Native unit
0
Schooling ≥ 12
1976 years
1
Age ≥ 25
1976 age in years
2
nearc4 = 1
native four-year-college proximity category
Target one: Native 1976 wage ≥ 500 nominal cents/hour. Every candidate uses the same role frames and eligibility. Smoothing adds alpha one to each target class; an unseen predictor cell falls back to the global training probability.
People · observed target counts by role · Fixed source-position roles and common observations; not representative random sampling The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNGPeople · all native-unit observations · All 3,017 common observations; 596 excluded rows retained; not causal returns The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNG
2. Compare every candidate and calculate the selected cells
Validation chooses candidate seven, containing all three bins. The first eligible test case is source row five, native id six: schooling twelve years, age thirty-four, proximity one and wage 729 cents. Its predicted probability is 15/22 and target one, so its row Brier is (15/22−1)²=49/484. This classifies an observed wage level; it does not estimate the causal return to an additional school year.
Every declared candidate; test values are reports after selection
Every observed training cell of the selected model
Candidate
Predictor cell
Training mass
Positive mass
Alpha
Probability
Unseen fallback
7
["1", "1", "0"]
376
225
1
113/189
346/607
7
["0", "1", "1"]
161
67
1
68/163
346/607
7
["1", "1", "1"]
922
629
1
15/22
346/607
7
["0", "0", "1"]
15
10
1
11/17
346/607
7
["1", "0", "1"]
142
53
1
3/8
346/607
7
["0", "0", "0"]
16
5
1
1/3
346/607
7
["0", "1", "0"]
117
26
1
27/119
346/607
7
["1", "0", "0"]
70
22
1
23/72
346/607
People · losses of declared candidates · Validation selects; common role frames; test scores not shown in this curve The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNGExpand training cells for every candidate
All observed training cells by candidate
Candidate
Indices
Cell
Mass
Positive
Alpha
Probability
Fallback
0
[]
[]
1819
1037
1
346/607
346/607
1
[0]
["1"]
1510
929
1
155/252
346/607
1
[0]
["0"]
309
108
1
109/311
346/607
2
[1]
["1"]
1576
947
1
158/263
346/607
2
[1]
["0"]
243
90
1
13/35
346/607
3
[2]
["0"]
579
278
1
279/581
346/607
3
[2]
["1"]
1240
759
1
380/621
346/607
4
[0, 1]
["1", "1"]
1298
854
1
171/260
346/607
4
[0, 1]
["0", "1"]
278
93
1
47/140
346/607
4
[0, 1]
["0", "0"]
31
15
1
16/33
346/607
4
[0, 1]
["1", "0"]
212
75
1
38/107
346/607
5
[0, 2]
["1", "0"]
446
247
1
31/56
346/607
5
[0, 2]
["0", "1"]
176
77
1
39/89
346/607
5
[0, 2]
["1", "1"]
1064
682
1
683/1066
346/607
5
[0, 2]
["0", "0"]
133
31
1
32/135
346/607
6
[1, 2]
["1", "0"]
493
251
1
28/55
346/607
6
[1, 2]
["1", "1"]
1083
696
1
697/1085
346/607
6
[1, 2]
["0", "1"]
157
63
1
64/159
346/607
6
[1, 2]
["0", "0"]
86
27
1
7/22
346/607
7
[0, 1, 2]
["1", "1", "0"]
376
225
1
113/189
346/607
7
[0, 1, 2]
["0", "1", "1"]
161
67
1
68/163
346/607
7
[0, 1, 2]
["1", "1", "1"]
922
629
1
15/22
346/607
7
[0, 1, 2]
["0", "0", "1"]
15
10
1
11/17
346/607
7
[0, 1, 2]
["1", "0", "1"]
142
53
1
3/8
346/607
7
[0, 1, 2]
["0", "0", "0"]
16
5
1
1/3
346/607
7
[0, 1, 2]
["0", "1", "0"]
117
26
1
27/119
346/607
7
[0, 1, 2]
["1", "0", "0"]
70
22
1
23/72
346/607
3. Where the information comes from
Training information is approximately 0.02914 bits for schooling, 0.01795 for age and 0.01107 for college proximity, or 0.06743 jointly. Even small information may merit examination given sample size, cost and model. These plug-in quantities are not p-values.
The contingency tables list every positive-mass empirical cell. Unlisted combinations have zero empirical mass and contribute zero to the corresponding zero-log-zero term. Information uses training data. The conditioning set for CMI is empty here, so CMI equals MI. Logarithms are approximate; probabilities and the coefficients and arguments of logarithms are exact rationals.
Observed cells of every marginal and joint table
Profile
Indices
Predictor value
Target
Cell mass
Total mass
P(X,Y)
P(X)
P(Y)
feature0
[0]
["1"]
0
581
1819
581/1819
1510/1819
46/107
feature0
[0]
["1"]
1
929
1819
929/1819
1510/1819
61/107
feature0
[0]
["0"]
0
201
1819
201/1819
309/1819
46/107
feature0
[0]
["0"]
1
108
1819
108/1819
309/1819
61/107
feature1
[1]
["1"]
0
629
1819
37/107
1576/1819
46/107
feature1
[1]
["1"]
1
947
1819
947/1819
1576/1819
61/107
feature1
[1]
["0"]
0
153
1819
9/107
243/1819
46/107
feature1
[1]
["0"]
1
90
1819
90/1819
243/1819
61/107
feature2
[2]
["0"]
0
301
1819
301/1819
579/1819
46/107
feature2
[2]
["0"]
1
278
1819
278/1819
579/1819
61/107
feature2
[2]
["1"]
0
481
1819
481/1819
1240/1819
46/107
feature2
[2]
["1"]
1
759
1819
759/1819
1240/1819
61/107
joint
[0, 1, 2]
["1", "1", "0"]
0
151
1819
151/1819
376/1819
46/107
joint
[0, 1, 2]
["1", "1", "0"]
1
225
1819
225/1819
376/1819
61/107
joint
[0, 1, 2]
["0", "1", "1"]
0
94
1819
94/1819
161/1819
46/107
joint
[0, 1, 2]
["1", "1", "1"]
1
629
1819
37/107
922/1819
61/107
joint
[0, 1, 2]
["1", "1", "1"]
0
293
1819
293/1819
922/1819
46/107
joint
[0, 1, 2]
["0", "0", "1"]
0
5
1819
5/1819
15/1819
46/107
joint
[0, 1, 2]
["1", "0", "1"]
1
53
1819
53/1819
142/1819
61/107
joint
[0, 1, 2]
["1", "0", "1"]
0
89
1819
89/1819
142/1819
46/107
joint
[0, 1, 2]
["0", "0", "1"]
1
10
1819
10/1819
15/1819
61/107
joint
[0, 1, 2]
["0", "1", "1"]
1
67
1819
67/1819
161/1819
61/107
joint
[0, 1, 2]
["0", "0", "0"]
1
5
1819
5/1819
16/1819
61/107
joint
[0, 1, 2]
["0", "1", "0"]
0
91
1819
91/1819
117/1819
46/107
joint
[0, 1, 2]
["1", "0", "0"]
0
48
1819
48/1819
70/1819
46/107
joint
[0, 1, 2]
["1", "0", "0"]
1
22
1819
22/1819
70/1819
61/107
joint
[0, 1, 2]
["0", "0", "0"]
0
11
1819
11/1819
16/1819
46/107
joint
[0, 1, 2]
["0", "1", "0"]
1
26
1819
26/1819
117/1819
61/107
Information for each training table; bits, Decimal-80 approximation
People · empirical training information · Plug-in categorical information; not a p-value or causal effect The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNGExpand every exact log-linear expression
For each profile and quantity, sum coefficient × log₂(argument). The repeated approximateSum is the approximation of that complete expression, rather than the value of an individual term.
Read all 133 rows in this table, twenty at a time. Enter a page number to jump directly.
1–20 / 133
Every log term reconstructible from the probability tables
The first proximity-permutation importance is negative. Retain its sign to see that a finite replacement can happen to reduce held-out loss. Yet the focal person’s age contribution is exactly zero: all thirty-two declared background people and the focal person have age bin one, so inserting focal age changes no hybrid cell. Positive global age importance and zero local age contribution answer different questions.
Keep each recipient’s test target, weight and identity; replace only the declared feature group with its donor values. Subtract original Brier from altered Brier. The two schedules are finite sensitivity experiments, not standard errors or expectations over random permutations.
Every feature group and fixed schedule
Group
Schedule
Shift
Rows
Mass
Original Brier
Altered Brier
Difference
[0]
0
1
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.233189149580936105083573/641459065401399168
≈ 0.015508819896558722206487/1282918130802798336
[0]
1
302
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.24243311018362882316863/1282918130802798336
≈ 0.02475067938262348589051/320729532700699584
[1]
0
1
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.23474243022052756388751/183274018686114048
≈ 0.01706193648175967793433/213819688467133056
[1]
1
302
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.235769302472821157419455/1282918130802798336
≈ 0.01808965801876917364699/320729532700699584
[2]
0
1
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.215202276086518987369763/1282918130802798336
≈ -0.00247778-2006814709969/809923062375504
[2]
1
302
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.224025287405338287842491/1282918130802798336
≈ 0.0063449392500281816839/14578615122759072
[0, 1, 2]
0
1
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.244484313652614004110163/1282918130802798336
≈ 0.02680423316701/869897259
[0, 1, 2]
1
302
604
604
≈ 0.21768279265313487960659/1282918130802798336
≈ 0.270661347236478425767251/1282918130802798336
≈ 0.05298176584089/124271037
People · finite-schedule permutation importance · Recipient targets/weights fixed; two schedules are not a random law The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNGFirst twelve recipient rows per schedule, or all when fewer
This is an explicitly bounded preview. The public CSV contains every recipient/donor mapping; in the lab, distinguish current inputs from the fixed study.
Read all 96 rows in this table, twenty at a time. Enter a page number to jump directly.
1–20 / 96
Recipient/donor preview by group and schedule
Group
Schedule
Recipient ID
Donor ID
Target
Altered predictors
Probability
Row Brier
[0]
0
person:5
person:10
1
["1", "1", "1"]
15/22
49/484
[0]
0
person:10
person:15
1
["1", "1", "1"]
15/22
49/484
[0]
0
person:15
person:20
1
["0", "1", "1"]
68/163
9025/26569
[0]
0
person:20
person:25
1
["1", "1", "1"]
15/22
49/484
[0]
0
person:25
person:30
1
["1", "1", "1"]
15/22
49/484
[0]
0
person:30
person:35
0
["1", "1", "1"]
15/22
225/484
[0]
0
person:35
person:40
0
["1", "1", "1"]
15/22
225/484
[0]
0
person:40
person:45
1
["0", "1", "1"]
68/163
9025/26569
[0]
0
person:45
person:50
0
["0", "1", "1"]
68/163
4624/26569
[0]
0
person:50
person:55
1
["1", "1", "1"]
15/22
49/484
[0]
0
person:55
person:65
1
["1", "1", "1"]
15/22
49/484
[0]
0
person:65
person:70
1
["1", "1", "1"]
15/22
49/484
[0]
1
person:5
person:1810
1
["1", "1", "1"]
15/22
49/484
[0]
1
person:10
person:1815
1
["1", "1", "1"]
15/22
49/484
[0]
1
person:15
person:1820
1
["1", "1", "1"]
15/22
49/484
[0]
1
person:20
person:1825
1
["1", "1", "1"]
15/22
49/484
[0]
1
person:25
person:1830
1
["1", "1", "1"]
15/22
49/484
[0]
1
person:30
person:1835
0
["1", "1", "1"]
15/22
225/484
[0]
1
person:35
person:1840
0
["1", "1", "1"]
15/22
225/484
[0]
1
person:40
person:1845
1
["1", "1", "1"]
15/22
49/484
1–20 / 96
5. Background, coalitions and contributions for one row
The focal case is the first complete test row, person:5. Fix up to thirty-two evenly spaced training backgrounds in source order, each with mass one. A hybrid takes coalition features from the focal row and other features from the background. It is a constructed input, not a newly observed person, country or customer.
Every declared training background ID
ID
Source row
Native ID
Role
Predictors
Mass
person:2
2
3
train
["1", "1", "0"]
1
person:113
113
188
train
["1", "1", "1"]
1
person:222
222
339
train
["1", "1", "1"]
1
person:329
329
486
train
["1", "1", "1"]
1
person:442
442
654
train
["1", "1", "1"]
1
person:544
544
821
train
["1", "1", "1"]
1
person:664
664
979
train
["1", "1", "1"]
1
person:782
782
1133
train
["1", "1", "1"]
1
person:897
897
1312
train
["1", "1", "1"]
1
person:1017
1017
1518
train
["1", "1", "1"]
1
person:1137
1137
1677
train
["0", "1", "1"]
1
person:1247
1247
1816
train
["1", "1", "0"]
1
person:1369
1369
1975
train
["1", "1", "1"]
1
person:1488
1488
2140
train
["0", "1", "1"]
1
person:1608
1608
2299
train
["1", "1", "0"]
1
person:1728
1728
2464
train
["1", "1", "1"]
1
person:1839
1839
2613
train
["1", "1", "1"]
1
person:1953
1953
2793
train
["0", "1", "1"]
1
person:2083
2083
2978
train
["1", "1", "0"]
1
person:2199
2199
3145
train
["0", "1", "1"]
1
person:2313
2313
3314
train
["0", "1", "1"]
1
person:2423
2423
3475
train
["1", "1", "1"]
1
person:2538
2538
3628
train
["1", "1", "1"]
1
person:2652
2652
3817
train
["1", "1", "1"]
1
person:2772
2772
4005
train
["1", "1", "1"]
1
person:2903
2903
4201
train
["1", "1", "0"]
1
person:3022
3022
4374
train
["1", "1", "1"]
1
person:3138
3138
4539
train
["1", "1", "0"]
1
person:3249
3249
4711
train
["0", "1", "0"]
1
person:3363
3363
4870
train
["1", "1", "0"]
1
person:3473
3473
5012
train
["1", "1", "0"]
1
person:3613
3613
5225
train
["1", "1", "1"]
1
Background-mean model probability for every coalition
Mask
Coalition indices
Background rows
Background mass
Game value
0
[]
32
32
≈ 0.60526855790303/92174544
1
[0]
32
32
9731/14784
2
[1]
32
32
≈ 0.60526855790303/92174544
3
[0, 1]
32
32
9731/14784
4
[2]
32
32
36273/57376
5
[0, 2]
32
32
15/22
6
[1, 2]
32
32
36273/57376
7
[0, 1, 2]
32
32
15/22
All contributions, baseline, prediction and reconstruction
Feature index or quantity
Exact probability-unit value
0
≈ 0.05128183437729/67036032
1
0
2
≈ 0.025268418632797/737396352
baseline
≈ 0.60526855790303/92174544
prediction
15/22
prediction − baseline − sum
0
People · first-test-row contributions · Baseline 0.60527 → focal 0.68182; declared training background The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNG
Weights are |S|!(p−|S|−1)!/p!, averaging marginal changes over all feature orders. Baseline plus contributions reconstructs the prediction within this model and background game; reconstruction does not identify a conditional-sampling or intervention effect.
Expand all coalition-by-background hybrids
Read all 256 rows in this table, twenty at a time. Enter a page number to jump directly.
1–20 / 256
Every constructed hybrid; not native observations
Mask
Coalition
Background ID
Mass
Hybrid predictors
Model probability
Unseen cell
0
[]
person:2
1
["1", "1", "0"]
113/189
false
0
[]
person:113
1
["1", "1", "1"]
15/22
false
0
[]
person:222
1
["1", "1", "1"]
15/22
false
0
[]
person:329
1
["1", "1", "1"]
15/22
false
0
[]
person:442
1
["1", "1", "1"]
15/22
false
0
[]
person:544
1
["1", "1", "1"]
15/22
false
0
[]
person:664
1
["1", "1", "1"]
15/22
false
0
[]
person:782
1
["1", "1", "1"]
15/22
false
0
[]
person:897
1
["1", "1", "1"]
15/22
false
0
[]
person:1017
1
["1", "1", "1"]
15/22
false
0
[]
person:1137
1
["0", "1", "1"]
68/163
false
0
[]
person:1247
1
["1", "1", "0"]
113/189
false
0
[]
person:1369
1
["1", "1", "1"]
15/22
false
0
[]
person:1488
1
["0", "1", "1"]
68/163
false
0
[]
person:1608
1
["1", "1", "0"]
113/189
false
0
[]
person:1728
1
["1", "1", "1"]
15/22
false
0
[]
person:1839
1
["1", "1", "1"]
15/22
false
0
[]
person:1953
1
["0", "1", "1"]
68/163
false
0
[]
person:2083
1
["1", "1", "0"]
113/189
false
0
[]
person:2199
1
["0", "1", "1"]
68/163
false
1–20 / 256
6. Trace native measurements and every selected-model row
Read all 48 rows in this table, twenty at a time. Enter a page number to jump directly.
1–20 / 48
Explicit preview of the first forty-eight native rows
Source row
Native id
Schooling years
Age years
College proximity
Nominal cents/hour
Role
1
2
7
29
0
548
validation
2
3
12
27
0
481
train
3
4
12
34
0
721
train
4
5
11
27
1
250
train
5
6
12
34
1
729
test
6
7
12
26
1
500
validation
7
8
18
33
1
565
train
8
9
14
29
1
608
train
9
10
12
28
1
425
train
10
11
12
29
1
515
test
11
12
9
28
1
225
validation
12
13
12
26
1
400
train
13
14
11
24
1
417
train
14
15
11
30
1
217
train
15
16
16
31
1
894
test
16
17
14
24
1
300
validation
17
18
11
34
1
Undefined / missing
excluded
18
19
12
34
1
346
train
19
20
14
29
1
658
train
20
22
10
26
1
575
test
1–20 / 48
The following expandable table includes every native row of the selected-model study. Exclusions remain visible, with probability and loss undefined. Undefined is not zero error or zero risk. All fifty-two or fourteen native fields and every candidate’s predictions are retained in the separate CSVs; this table presents every analytical row with predictors, target, role and selected-model output.
Expand all 3613 selected-model rows
Read all 3613 rows in this table, twenty at a time. Enter a page number to jump directly.
1–20 / 3613
Every selected-model row, including retained exclusions
Python reconstructs bins, roles, candidates, schedules and backgrounds from three factual CSVs. Probabilities, Brier scores and contributions use Fraction, while logarithms use an eighty-digit Decimal approximation. Base R reproduces the finite study with binary floating point and is not an exact rational program. Neither companion uses precomputed answer CSVs or the web engine as its answers.
Try five checks. Recalculate one cell probability from its positive mass, total mass and alpha. Explain why validation choice and the most informative feature set may differ. Trace a changed recipient in one permutation and verify the sign of its loss difference. Average background predictions for one coalition and check baseline plus contributions. Finally, state what new sampling, splitting and causal assumptions would be needed to transport the conclusion.
Downloads of native observations and every computed table
실제 기업: 극단적으로 희소한 검증 양성Actual company data: a validation frame with one positive
공개 UCI 통신 이탈 CSV의 3,150행·14개 원필드를 보존합니다. 이탈 표적은 원래의 Churn입니다. 특징은 통화 실패 5회 이상, 불만 여부, 가입 기간 30개월 이상, 이용 시간 10,000초 이상으로 미리 고정했습니다. 청구 범주의 원래 코드 10인 7행도 보존하지만 그 코드를 구간척도로 사용하지 않습니다.
원행 위치의 고정 역할 규칙은 훈련 1,890행·검증 630행·시험 630행을 만듭니다. 그런데 이탈 양성 수는 각각 393·1·101입니다. 검증에는 음성 629행과 양성 단 1행이 있습니다. 원래 행 순서와 역할 규칙이 만든 이 관측을 숨기거나 결과가 예뻐지도록 섞지 않습니다. 무작위·대표 검증이라고 읽으면 안 됩니다.
검증이 고른 모형은 불만 특징 하나입니다. 불만이 없는 훈련 칸의 예측은 241/1704, 있는 칸은 77/95입니다. 다른 세 특징을 섞어도 이 고정 모형의 예측은 같아 중요도 0입니다. 그렇다고 그 특징들이 이탈과 경험적으로 독립인 것은 아닙니다.
시험 Brier는 약 0.088826이고 빈 특징 기준선은 약 0.136913입니다. 좋은 수치가 나와도 검증 양성 1개와 원행 기반 분할의 한계를 함께 보고합니다. 불만을 정책으로 줄였을 때 이탈이 그만큼 줄어든다는 처치 효과를 추정한 것도 아닙니다.
자료에서 설명까지 · 전체 사례
통신사의 이탈 자료를 보면 불만이 접수된 고객을 빨리 찾아야 한다고 생각하기 쉽습니다. 그러나 “이 모형이 이탈 구분에 불만 정보를 쓴다”와 “불만 처리 정책이 이탈을 줄인다”는 다른 문장입니다. 이 사례는 전자의 예측·설명 문제를 다룹니다. 3,150행의 원 이탈 표적과 네 가지 구분 특징을 사용합니다.
UCI의 설명에 따르면 특징은 첫 9개월의 집계이고 이탈 표적은 12개월 말의 상태이며 계획 간격은 3개월입니다. 이 CSV의 행 순서를 시점으로 해석하지 않습니다. 원행 위치로 역할을 정하니 훈련 1,890행·검증 630행·시험 630행이 되고, 검증의 양성은 실제로 단 1행입니다. 이 불편한 결과를 섞어 예쁘게 만들지 말고, 고정 분할의 대표성 한계를 먼저 확인합시다.
1. 무엇을 바꾸고 무엇을 고정했나
원행 역할·공통 관측·양성·제외
역할
계획 행
사용 행
양성 행
제외 행
행 질량
train
1890
1890
393
0
1
validation
630
630
1
0
1
test
630
630
101
0
1
이 장의 고정 구분 기준 · 자료 자체의 보편 법칙 아님
번호
1이 되는 조건
원단위
0
통화 실패 ≥ 5
원 횟수
1
불만 = 1
원 이진 범주
2
가입 기간 ≥ 30
개월
3
이용 시간 ≥ 10,000
초
표적 1의 정의: 원 Churn = 1. 모든 후보는 같은 역할·같은 공통 관측 조건에서 비교합니다. 평활화는 각 표적 범주에 α=1을 더하며, 훈련에서 본 적 없는 특징 칸에는 전체 훈련 확률을 씁니다.
기업 · 역할별 실제 표적 수 · 이진 구분 후 관측 표적 수; 검증 양성 1행 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG기업 · 원단위 관측 전체 · 실제 3,150행 모두; 색은 원 이탈 표적, 불만 정책 효과 아님 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG
2. 전체 후보를 비교하고 선택한 칸을 손으로 계산하기
검증은 후보 2, 불만 하나만 쓰는 모형을 고릅니다. 훈련에서 불만 0의 1,702행 중 이탈은 240행이므로 확률은 241/1704입니다. 불만 1의 188행 중 이탈은 153행이므로 확률은 77/95입니다. 높은 구분력이 보이지만, 이 수치를 불만 제기의 인과효과로 읽지 않습니다.
기업 · 선언된 후보의 손실 · 검증만 선택에 사용; 같은 역할 분모·시험은 이 곡선에 미표시 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG모든 후보의 훈련 칸 펼치기
전체 74행을 이 표에서20행씩 읽을 수 있습니다. 페이지 번호로 바로 이동할 수 있습니다.
1–20 / 74
후보별 전체 관측 훈련 칸
후보
특징 번호
특징 칸
질량
양성
α
확률
대체 확률
0
[]
[]
1890
393
1
197/946
197/946
1
[0]
["0"]
716
169
1
85/359
197/946
1
[0]
["1"]
1174
224
1
75/392
197/946
2
[1]
["0"]
1702
240
1
241/1704
197/946
2
[1]
["1"]
188
153
1
77/95
197/946
3
[2]
["1"]
1427
367
1
368/1429
197/946
3
[2]
["0"]
463
26
1
9/155
197/946
4
[3]
["0"]
1643
393
1
394/1645
197/946
4
[3]
["1"]
247
0
1
1/249
197/946
5
[0, 1]
["0", "0"]
672
126
1
127/674
197/946
5
[0, 1]
["1", "0"]
1030
114
1
115/1032
197/946
5
[0, 1]
["1", "1"]
144
110
1
111/146
197/946
5
[0, 1]
["0", "1"]
44
43
1
22/23
197/946
6
[0, 2]
["0", "1"]
514
153
1
77/258
197/946
6
[0, 2]
["1", "1"]
913
214
1
43/183
197/946
6
[0, 2]
["0", "0"]
202
16
1
1/12
197/946
6
[0, 2]
["1", "0"]
261
10
1
11/263
197/946
7
[0, 3]
["0", "0"]
695
169
1
10/41
197/946
7
[0, 3]
["1", "0"]
948
224
1
9/38
197/946
7
[0, 3]
["1", "1"]
226
0
1
1/228
197/946
1–20 / 74
3. 정보량은 어디에서 나오는가
불만의 훈련 정보량은 약 0.1400비트로 다른 개별 구분보다 큽니다. 네 구분의 결합 정보량은 약 0.2361비트인데, 결합 특징 모형이 검증에서 이긴 것은 아닙니다. 검증 양성 1행이라는 사실 때문에 이 순위에 얼마나 의존할지, 새 집단이나 새 시기의 별도 평가가 필요한지 논의할 수 있습니다. 이 장의 시험 101양성도 검증과 구성비가 다릅니다.
아래 분할표는 양의 질량을 가진 관측 칸을 모두 싣습니다. 표에 없는 조합은 경험 질량 0이며 0·log 0의 항은 0으로 처리합니다. 상호정보량은 훈련에서 계산하고, 조건부 상호정보량의 조건 집합은 비어 있어 여기서는 MI와 같습니다. 로그값은 근사치이고, 확률과 로그의 계수·인수는 정확한 유리수입니다.
불만만 바꾸는 두 일정의 중요도는 약 0.09771과 0.02336으로 크게 다릅니다. 두 수를 표준오차로 해석하지 말고 어떤 수신 행에 어떤 기증 행이 연결됐는지 확인하세요. 첫 시험 고객은 불만 0이며, 예측 241/1704는 배경 평균 158211/863360에 불만 기여 −108313/2590080을 더한 값입니다. 다른 세 특징의 기여는 이 선택 모형에서 정확히 0입니다.
원래 시험 행의 표적·가중치·ID는 고정하고, 선언한 특징 묶음만 기증 행에서 가져옵니다. 변경 Brier에서 원래 Brier를 뺍니다. 두 일정은 유한한 민감도 실험이며 표준오차나 무작위 순열의 기대값을 대신하지 않습니다.
모든 특징 묶음·모든 고정 일정
특징 묶음
일정
이동 칸
행
총질량
원래 Brier
변경 Brier
차이
[0]
0
1
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.088826488816569553/5503078224000
0
[0]
1
315
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.088826488816569553/5503078224000
0
[1]
0
1
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.186535342172320571/1834359408000
≈ 0.0977092491199/25496100
[1]
1
315
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.112191617397098113/5503078224000
≈ 0.02336521191443/50992200
[2]
0
1
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.088826488816569553/5503078224000
0
[2]
1
315
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.088826488816569553/5503078224000
0
[3]
0
1
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.088826488816569553/5503078224000
0
[3]
1
315
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.088826488816569553/5503078224000
0
[0, 1, 2, 3]
0
1
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.186535342172320571/1834359408000
≈ 0.0977092491199/25496100
[0, 1, 2, 3]
1
315
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.112191617397098113/5503078224000
≈ 0.02336521191443/50992200
기업 · 고정 순열 중요도 · 수신 행의 정답·질량 고정; 두 일정은 무작위 법칙이 아님 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG각 일정의 처음 12수신 행·전체가 12미만이면 모두
이 표는 명시된 미리보기입니다. 모든 수신·기증 연결은 공개 CSV에 있으며, 실습에서 현재 입력과 고정 실행 자료를 구분해 비교합니다.
전체 120행을 이 표에서20행씩 읽을 수 있습니다. 페이지 번호로 바로 이동할 수 있습니다.
1–20 / 120
특징 묶음·일정별 수신/기증 미리보기
묶음
일정
수신 ID
기증 ID
표적
변경 특징
확률
행 Brier
[0]
0
customer:5
customer:10
0
["1", "0", "1", "0"]
241/1704
58081/2903616
[0]
0
customer:10
customer:15
0
["1", "0", "1", "0"]
241/1704
58081/2903616
[0]
0
customer:15
customer:20
0
["0", "0", "1", "1"]
241/1704
58081/2903616
[0]
0
customer:20
customer:25
0
["1", "0", "1", "0"]
241/1704
58081/2903616
[0]
0
customer:25
customer:30
1
["0", "1", "1", "0"]
77/95
324/9025
[0]
0
customer:30
customer:35
0
["1", "0", "1", "0"]
241/1704
58081/2903616
[0]
0
customer:35
customer:40
0
["0", "0", "1", "0"]
241/1704
58081/2903616
[0]
0
customer:40
customer:45
0
["0", "0", "0", "0"]
241/1704
58081/2903616
[0]
0
customer:45
customer:50
0
["0", "0", "0", "0"]
241/1704
58081/2903616
[0]
0
customer:50
customer:55
1
["1", "0", "0", "0"]
241/1704
≈ 0.7371392140369/2903616
[0]
0
customer:55
customer:60
0
["1", "0", "1", "0"]
241/1704
58081/2903616
[0]
0
customer:60
customer:65
0
["1", "0", "1", "0"]
241/1704
58081/2903616
[0]
1
customer:5
customer:1580
0
["0", "0", "1", "0"]
241/1704
58081/2903616
[0]
1
customer:10
customer:1585
0
["0", "0", "1", "0"]
241/1704
58081/2903616
[0]
1
customer:15
customer:1590
0
["0", "0", "1", "1"]
241/1704
58081/2903616
[0]
1
customer:20
customer:1595
0
["0", "0", "1", "0"]
241/1704
58081/2903616
[0]
1
customer:25
customer:1600
1
["0", "1", "1", "0"]
77/95
324/9025
[0]
1
customer:30
customer:1605
0
["0", "0", "1", "0"]
241/1704
58081/2903616
[0]
1
customer:35
customer:1610
0
["0", "0", "1", "0"]
241/1704
58081/2903616
[0]
1
customer:40
customer:1615
0
["0", "0", "0", "0"]
241/1704
58081/2903616
1–20 / 120
5. 한 행을 설명하는 배경·연합·기여
설명 대상은 첫 공통 관측 시험 행 customer:5입니다. 최대 32개의 훈련 배경을 원순서에 고르게 배치해 고정하고, 각 배경 질량은 1로 둡니다. 연합에 든 특징은 현재 행에서, 나머지는 배경 행에서 가져온 합성 입력을 모형에 넣습니다. 합성 입력은 새로 관측한 사람·국가·고객이 아닙니다.
선언된 모든 훈련 배경 ID
ID
원행
원 ID
역할
특징
질량
customer:2
2
원 ID 없음
train
["0", "0", "1", "0"]
1
customer:102
102
원 ID 없음
train
["0", "0", "1", "0"]
1
customer:203
203
원 ID 없음
train
["1", "0", "1", "0"]
1
customer:304
304
원 ID 없음
train
["1", "0", "1", "0"]
1
customer:407
407
원 ID 없음
train
["0", "0", "1", "0"]
1
customer:508
508
원 ID 없음
train
["1", "0", "1", "0"]
1
customer:609
609
원 ID 없음
train
["1", "0", "1", "1"]
1
customer:712
712
원 ID 없음
train
["1", "0", "1", "0"]
1
customer:813
813
원 ID 없음
train
["1", "0", "1", "1"]
1
customer:914
914
원 ID 없음
train
["0", "0", "1", "0"]
1
customer:1017
1017
원 ID 없음
train
["0", "0", "1", "0"]
1
customer:1118
1118
원 ID 없음
train
["0", "0", "1", "0"]
1
customer:1219
1219
원 ID 없음
train
["0", "0", "1", "0"]
1
customer:1322
1322
원 ID 없음
train
["1", "0", "1", "0"]
1
customer:1423
1423
원 ID 없음
train
["1", "1", "1", "0"]
1
customer:1524
1524
원 ID 없음
train
["1", "0", "1", "1"]
1
customer:1624
1624
원 ID 없음
train
["1", "0", "1", "1"]
1
customer:1727
1727
원 ID 없음
train
["1", "0", "1", "0"]
1
customer:1828
1828
원 ID 없음
train
["0", "0", "0", "0"]
1
customer:1929
1929
원 ID 없음
train
["0", "0", "1", "0"]
1
customer:2032
2032
원 ID 없음
train
["0", "1", "1", "0"]
1
customer:2133
2133
원 ID 없음
train
["1", "0", "1", "0"]
1
customer:2234
2234
원 ID 없음
train
["1", "0", "1", "1"]
1
customer:2337
2337
원 ID 없음
train
["1", "0", "1", "0"]
1
customer:2438
2438
원 ID 없음
train
["1", "0", "1", "0"]
1
customer:2539
2539
원 ID 없음
train
["1", "0", "0", "0"]
1
customer:2642
2642
원 ID 없음
train
["1", "0", "0", "0"]
1
customer:2743
2743
원 ID 없음
train
["1", "0", "0", "0"]
1
customer:2844
2844
원 ID 없음
train
["1", "0", "0", "0"]
1
customer:2947
2947
원 ID 없음
train
["1", "0", "0", "0"]
1
customer:3048
3048
원 ID 없음
train
["1", "0", "0", "0"]
1
customer:3149
3149
원 ID 없음
train
["1", "0", "0", "0"]
1
모든 연합의 배경 평균 모형 확률
마스크
연합 번호
배경 행
배경 질량
연합 값
0
[]
32
32
158211/863360
1
[0]
32
32
158211/863360
2
[1]
32
32
241/1704
3
[0, 1]
32
32
241/1704
4
[2]
32
32
158211/863360
5
[0, 2]
32
32
158211/863360
6
[1, 2]
32
32
241/1704
7
[0, 1, 2]
32
32
241/1704
8
[3]
32
32
158211/863360
9
[0, 3]
32
32
158211/863360
10
[1, 3]
32
32
241/1704
11
[0, 1, 3]
32
32
241/1704
12
[2, 3]
32
32
158211/863360
13
[0, 2, 3]
32
32
158211/863360
14
[1, 2, 3]
32
32
241/1704
15
[0, 1, 2, 3]
32
32
241/1704
모든 기여·기준·현재 예측·합 검산
특징 번호 또는 양
정확 확률 단위 값
0
0
1
≈ -0.0418184-108313/2590080
2
0
3
0
baseline
158211/863360
prediction
241/1704
prediction − baseline − sum
0
기업 · 첫 시험 행의 기여 · 기준 0.18325 → 현재 0.14143; 선언된 훈련 배경 원본은 벡터·고해상도 그림입니다. 벡터 원본 확대 · 고해상도 PNG
가중치는 |S|!(p−|S|−1)!/p!이고 모든 특징 순서에서의 증가분을 평균합니다. 기준+기여의 합이 예측과 같다는 성질은 이 모형·이 배경 게임의 배분을 검산합니다. 조건부 표본 추출이나 개입 효과를 식별하는 성질은 아닙니다.
모든 연합×배경 합성 입력 펼치기
전체 512행을 이 표에서20행씩 읽을 수 있습니다. 페이지 번호로 바로 이동할 수 있습니다.
1–20 / 512
모든 구성된 합성 입력·원 관측 아님
마스크
연합
배경 ID
배경 질량
합성 특징
모형 확률
미관측 칸
0
[]
customer:2
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:102
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:203
1
["1", "0", "1", "0"]
241/1704
false
0
[]
customer:304
1
["1", "0", "1", "0"]
241/1704
false
0
[]
customer:407
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:508
1
["1", "0", "1", "0"]
241/1704
false
0
[]
customer:609
1
["1", "0", "1", "1"]
241/1704
false
0
[]
customer:712
1
["1", "0", "1", "0"]
241/1704
false
0
[]
customer:813
1
["1", "0", "1", "1"]
241/1704
false
0
[]
customer:914
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:1017
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:1118
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:1219
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:1322
1
["1", "0", "1", "0"]
241/1704
false
0
[]
customer:1423
1
["1", "1", "1", "0"]
77/95
false
0
[]
customer:1524
1
["1", "0", "1", "1"]
241/1704
false
0
[]
customer:1624
1
["1", "0", "1", "1"]
241/1704
false
0
[]
customer:1727
1
["1", "0", "1", "0"]
241/1704
false
0
[]
customer:1828
1
["0", "0", "0", "0"]
241/1704
false
0
[]
customer:1929
1
["0", "0", "1", "0"]
241/1704
false
1–20 / 512
6. 원자료와 선택 모형의 전체 행을 따라가기
전체 48행을 이 표에서20행씩 읽을 수 있습니다. 페이지 번호로 바로 이동할 수 있습니다.
1–20 / 48
원자료 처음 48행의 명시적 미리보기
원행
통화 실패
불만
가입·개월
이용·초
원 요금 코드
이탈
역할
1
8
0
38
4370
0
0
validation
2
0
0
39
318
0
0
train
3
10
0
37
2453
0
0
train
4
10
0
38
4198
0
0
train
5
3
0
38
2393
0
0
test
6
11
0
38
3775
1
0
validation
7
4
0
38
2360
0
0
train
8
13
0
37
9115
2
0
train
9
7
0
38
13773
0
0
train
10
7
0
38
4515
1
0
test
11
6
0
38
5918
0
0
validation
12
9
0
38
2238
0
0
train
13
25
0
38
15140
3
0
train
14
4
0
38
3095
1
0
train
15
9
0
37
15485
0
0
test
16
3
0
37
6500
1
0
validation
17
0
0
37
875
0
1
train
18
2
0
38
710
0
0
train
19
0
0
37
0
0
1
train
20
3
0
37
7508
0
0
test
1–20 / 48
UCI의 원 설명은 요금 코드를 0–9의 순서 범주로 소개하지만 실제 보관 CSV에는 코드 10이 7행 있습니다. 아래는 그 7행 전부입니다. 이 원 토큰을 잘라내거나 9로 바꾸지 않았고, 이번 모형은 요금 코드를 특징으로 쓰지 않습니다.
원 요금 코드 10의 전체 7행
원행
통화 실패
불만
가입·개월
이용·초
원 요금 코드
이탈
역할
474
25
0
36
11035
10
0
train
2174
29
1
40
10800
10
0
train
2274
27
0
42
10820
10
0
train
2374
31
0
44
11000
10
0
train
2674
26
0
39
10855
10
0
train
2924
28
0
43
10740
10
0
train
2974
32
0
39
11450
10
0
train
다음 펼침 표에는 선택 모형의 원행을 전부 싣습니다. 제외 행도 지우지 않고 확률·손실을 미정의로 남깁니다. 미정의는 오류 0이나 위험 0을 뜻하지 않습니다. 원 52개·14개 필드 전체와 모든 후보별 예측은 별도 CSV에 보존되어 있으며, 아래 표는 이 장의 분석에 필요한 특징·표적·역할·출력의 전체 행입니다.
선택 모형 전체 3150행 펼치기
전체 3150행을 이 표에서20행씩 읽을 수 있습니다. 페이지 번호로 바로 이동할 수 있습니다.
Python은 원문 CSV 세 개에서 구분·역할·후보·순열·배경을 다시 만들고 확률·Brier·기여를 Fraction으로 계산합니다. 로그는 Decimal 80 근사입니다. base R은 같은 유한 계산을 이진 부동소수점으로 재현하므로 정확한 유리수 프로그램이라고 부르지 않습니다. 어느 코드도 이미 계산된 정답 CSV나 웹 엔진을 읽어 답으로 삼지 않습니다.
확인해 봅시다. ① 표의 한 칸 확률을 양성 질량·전체 질량·α로 재계산하세요. ② 검증에서 선택한 후보와 훈련 정보량이 가장 큰 특징 묶음이 다른 이유를 설명하세요. ③ 한 순열에서 바뀐 수신 행을 찾아 차이의 부호를 확인하세요. ④ 한 연합 값을 배경 확률의 평균으로 만들고, 기준+기여=현재 예측을 검산하세요. ⑤ 다른 집단에 같은 결론을 옮기려면 어떤 관측·분할·인과 전제가 더 필요한지 적어 보세요.
Retain all 3,150 rows and 14 native fields of the public UCI churn CSV. The target is native Churn. Predeclared predictors are call failures at least 5,complaints, subscription length at least 30 months and usage at least 10000 seconds. Preserve seven raw charge-code 10 rows without treating that ordinal code as an interval predictor.
The source-position role rule creates 1,890 training,630 validation and 630 test rows. Positive counts are 393,one and 101. Validation therefore has 629 negatives and only one positive. Preserve this observed consequence of native order and the split rule; do not reshuffle merely to improve its appearance or call it representative randomized validation.
Validation selects complaints alone. Predicted probabilities are 241/1704 without complaints and 77/95 with complaints. Permuting unused predictors preserves this frozen model and yields zero importance, even though those features can have positive empirical information about churn.
Test Brier is about 0.088826, versus empty-feature baseline 0.136913. Report the sparse-validation and source-order limitations alongside the improvement. This does not estimate a treatment effect of reducing complaints.
From measurements to explanations: full study
A churn dataset can tempt us to say that customers who complain need immediate intervention. Yet a model using complaint information to distinguish churn is different from a complaint-handling policy reducing churn. This case studies prediction and explanation. It retains all 3,150 native rows, the churn target and four declared binary predictors.
UCI describes predictors aggregated over the first nine months, churn status at the end of month twelve and a three-month planning gap. The retained CSV row order is not a time index. Position-based roles give 1,890 training, 630 validation and 630 test rows, with only one positive in validation. Preserve this uncomfortable fact and examine the representativeness of the split before interpreting its selected model.
1. What changes and what stays fixed
Source roles, common observations, positives and exclusions
Role
Planned rows
Used rows
Positive rows
Excluded rows
Row mass
train
1890
1890
393
0
1
validation
630
630
1
0
1
test
630
630
101
0
1
Fixed teaching bins, rather than universal data laws
Index
Condition for one
Native unit
0
Call failures ≥ 5
native count
1
Complaints = 1
native binary category
2
Subscription length ≥ 30
months
3
Usage ≥ 10,000
seconds
Target one: Native Churn = 1. Every candidate uses the same role frames and eligibility. Smoothing adds alpha one to each target class; an unseen predictor cell falls back to the global training probability.
Company · observed target counts by role · Observed target counts after declared bins; one validation positive The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNGCompany · all native-unit observations · All 3,150 native rows; colors are native churn, not complaint-policy effects The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNG
2. Compare every candidate and calculate the selected cells
Validation selects candidate two, complaints alone. Among 1,702 training rows with no complaint, 240 churn, giving probability 241/1704 after smoothing. Among 188 complaint rows, 153 churn, giving 77/95. Strong predictive separation does not make this a causal effect of submitting a complaint.
Every declared candidate; test values are reports after selection
Every observed training cell of the selected model
Candidate
Predictor cell
Training mass
Positive mass
Alpha
Probability
Unseen fallback
2
["0"]
1702
240
1
241/1704
197/946
2
["1"]
188
153
1
77/95
197/946
Company · losses of declared candidates · Validation selects; common role frames; test scores not shown in this curve The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNGExpand training cells for every candidate
Read all 74 rows in this table, twenty at a time. Enter a page number to jump directly.
1–20 / 74
All observed training cells by candidate
Candidate
Indices
Cell
Mass
Positive
Alpha
Probability
Fallback
0
[]
[]
1890
393
1
197/946
197/946
1
[0]
["0"]
716
169
1
85/359
197/946
1
[0]
["1"]
1174
224
1
75/392
197/946
2
[1]
["0"]
1702
240
1
241/1704
197/946
2
[1]
["1"]
188
153
1
77/95
197/946
3
[2]
["1"]
1427
367
1
368/1429
197/946
3
[2]
["0"]
463
26
1
9/155
197/946
4
[3]
["0"]
1643
393
1
394/1645
197/946
4
[3]
["1"]
247
0
1
1/249
197/946
5
[0, 1]
["0", "0"]
672
126
1
127/674
197/946
5
[0, 1]
["1", "0"]
1030
114
1
115/1032
197/946
5
[0, 1]
["1", "1"]
144
110
1
111/146
197/946
5
[0, 1]
["0", "1"]
44
43
1
22/23
197/946
6
[0, 2]
["0", "1"]
514
153
1
77/258
197/946
6
[0, 2]
["1", "1"]
913
214
1
43/183
197/946
6
[0, 2]
["0", "0"]
202
16
1
1/12
197/946
6
[0, 2]
["1", "0"]
261
10
1
11/263
197/946
7
[0, 3]
["0", "0"]
695
169
1
10/41
197/946
7
[0, 3]
["1", "0"]
948
224
1
9/38
197/946
7
[0, 3]
["1", "1"]
226
0
1
1/228
197/946
1–20 / 74
3. Where the information comes from
Complaint information is about 0.1400 training bits, greater than the other individual bins. Joint information is about 0.2361 bits, but the joint-feature predictor does not win validation. With just one validation positive, discuss how much confidence to place in this ranking and why another population or time period needs separate assessment. The test frame, with 101 positives, also has a different composition.
The contingency tables list every positive-mass empirical cell. Unlisted combinations have zero empirical mass and contribute zero to the corresponding zero-log-zero term. Information uses training data. The conditioning set for CMI is empty here, so CMI equals MI. Logarithms are approximate; probabilities and the coefficients and arguments of logarithms are exact rationals.
Observed cells of every marginal and joint table
Profile
Indices
Predictor value
Target
Cell mass
Total mass
P(X,Y)
P(X)
P(Y)
feature0
[0]
["0"]
0
547
1890
547/1890
358/945
499/630
feature0
[0]
["1"]
0
950
1890
95/189
587/945
499/630
feature0
[0]
["0"]
1
169
1890
169/1890
358/945
131/630
feature0
[0]
["1"]
1
224
1890
16/135
587/945
131/630
feature1
[1]
["0"]
0
1462
1890
731/945
851/945
499/630
feature1
[1]
["0"]
1
240
1890
8/63
851/945
131/630
feature1
[1]
["1"]
1
153
1890
17/210
94/945
131/630
feature1
[1]
["1"]
0
35
1890
1/54
94/945
499/630
feature2
[2]
["1"]
0
1060
1890
106/189
1427/1890
499/630
feature2
[2]
["1"]
1
367
1890
367/1890
1427/1890
131/630
feature2
[2]
["0"]
0
437
1890
437/1890
463/1890
499/630
feature2
[2]
["0"]
1
26
1890
13/945
463/1890
131/630
feature3
[3]
["0"]
0
1250
1890
125/189
1643/1890
499/630
feature3
[3]
["1"]
0
247
1890
247/1890
247/1890
499/630
feature3
[3]
["0"]
1
393
1890
131/630
1643/1890
131/630
joint
[0, 1, 2, 3]
["0", "0", "1", "0"]
0
340
1890
34/189
457/1890
499/630
joint
[0, 1, 2, 3]
["1", "0", "1", "0"]
0
479
1890
479/1890
587/1890
499/630
joint
[0, 1, 2, 3]
["1", "0", "1", "1"]
0
186
1890
31/315
31/315
499/630
joint
[0, 1, 2, 3]
["0", "0", "1", "0"]
1
117
1890
13/210
457/1890
131/630
joint
[0, 1, 2, 3]
["1", "1", "1", "0"]
1
106
1890
53/945
41/630
131/630
joint
[0, 1, 2, 3]
["1", "1", "1", "1"]
0
17
1890
17/1890
17/1890
499/630
joint
[0, 1, 2, 3]
["1", "0", "1", "0"]
1
108
1890
2/35
587/1890
131/630
joint
[0, 1, 2, 3]
["0", "1", "1", "0"]
1
36
1890
2/105
2/105
131/630
joint
[0, 1, 2, 3]
["0", "0", "0", "0"]
0
185
1890
37/378
97/945
499/630
joint
[0, 1, 2, 3]
["0", "0", "0", "0"]
1
9
1890
1/210
97/945
131/630
joint
[0, 1, 2, 3]
["1", "0", "0", "0"]
0
228
1890
38/315
13/105
499/630
joint
[0, 1, 2, 3]
["0", "0", "1", "1"]
0
21
1890
1/90
1/90
499/630
joint
[0, 1, 2, 3]
["1", "1", "1", "0"]
0
17
1890
17/1890
41/630
499/630
joint
[0, 1, 2, 3]
["1", "0", "0", "1"]
0
23
1890
23/1890
23/1890
499/630
joint
[0, 1, 2, 3]
["0", "1", "0", "0"]
1
7
1890
1/270
4/945
131/630
joint
[0, 1, 2, 3]
["1", "0", "0", "0"]
1
6
1890
1/315
13/105
131/630
joint
[0, 1, 2, 3]
["1", "1", "0", "0"]
1
4
1890
2/945
2/945
131/630
joint
[0, 1, 2, 3]
["0", "1", "0", "0"]
0
1
1890
1/1890
4/945
499/630
Information for each training table; bits, Decimal-80 approximation
Company · empirical training information · Plug-in categorical information; not a p-value or causal effect The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNGExpand every exact log-linear expression
For each profile and quantity, sum coefficient × log₂(argument). The repeated approximateSum is the approximation of that complete expression, rather than the value of an individual term.
Read all 146 rows in this table, twenty at a time. Enter a page number to jump directly.
1–20 / 146
Every log term reconstructible from the probability tables
The two complaint-permutation schedules yield about 0.09771 and 0.02336 Brier increase. They are not a standard error: inspect the explicit recipient-to-donor mappings. The first test customer has no complaint; prediction 241/1704 equals background mean 158211/863360 plus contribution −108313/2590080. The other three contributions are exactly zero for this selected predictor.
Keep each recipient’s test target, weight and identity; replace only the declared feature group with its donor values. Subtract original Brier from altered Brier. The two schedules are finite sensitivity experiments, not standard errors or expectations over random permutations.
Every feature group and fixed schedule
Group
Schedule
Shift
Rows
Mass
Original Brier
Altered Brier
Difference
[0]
0
1
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.088826488816569553/5503078224000
0
[0]
1
315
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.088826488816569553/5503078224000
0
[1]
0
1
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.186535342172320571/1834359408000
≈ 0.0977092491199/25496100
[1]
1
315
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.112191617397098113/5503078224000
≈ 0.02336521191443/50992200
[2]
0
1
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.088826488816569553/5503078224000
0
[2]
1
315
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.088826488816569553/5503078224000
0
[3]
0
1
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.088826488816569553/5503078224000
0
[3]
1
315
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.088826488816569553/5503078224000
0
[0, 1, 2, 3]
0
1
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.186535342172320571/1834359408000
≈ 0.0977092491199/25496100
[0, 1, 2, 3]
1
315
630
630
≈ 0.088826488816569553/5503078224000
≈ 0.112191617397098113/5503078224000
≈ 0.02336521191443/50992200
Company · finite-schedule permutation importance · Recipient targets/weights fixed; two schedules are not a random law The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNGFirst twelve recipient rows per schedule, or all when fewer
This is an explicitly bounded preview. The public CSV contains every recipient/donor mapping; in the lab, distinguish current inputs from the fixed study.
Read all 120 rows in this table, twenty at a time. Enter a page number to jump directly.
1–20 / 120
Recipient/donor preview by group and schedule
Group
Schedule
Recipient ID
Donor ID
Target
Altered predictors
Probability
Row Brier
[0]
0
customer:5
customer:10
0
["1", "0", "1", "0"]
241/1704
58081/2903616
[0]
0
customer:10
customer:15
0
["1", "0", "1", "0"]
241/1704
58081/2903616
[0]
0
customer:15
customer:20
0
["0", "0", "1", "1"]
241/1704
58081/2903616
[0]
0
customer:20
customer:25
0
["1", "0", "1", "0"]
241/1704
58081/2903616
[0]
0
customer:25
customer:30
1
["0", "1", "1", "0"]
77/95
324/9025
[0]
0
customer:30
customer:35
0
["1", "0", "1", "0"]
241/1704
58081/2903616
[0]
0
customer:35
customer:40
0
["0", "0", "1", "0"]
241/1704
58081/2903616
[0]
0
customer:40
customer:45
0
["0", "0", "0", "0"]
241/1704
58081/2903616
[0]
0
customer:45
customer:50
0
["0", "0", "0", "0"]
241/1704
58081/2903616
[0]
0
customer:50
customer:55
1
["1", "0", "0", "0"]
241/1704
≈ 0.7371392140369/2903616
[0]
0
customer:55
customer:60
0
["1", "0", "1", "0"]
241/1704
58081/2903616
[0]
0
customer:60
customer:65
0
["1", "0", "1", "0"]
241/1704
58081/2903616
[0]
1
customer:5
customer:1580
0
["0", "0", "1", "0"]
241/1704
58081/2903616
[0]
1
customer:10
customer:1585
0
["0", "0", "1", "0"]
241/1704
58081/2903616
[0]
1
customer:15
customer:1590
0
["0", "0", "1", "1"]
241/1704
58081/2903616
[0]
1
customer:20
customer:1595
0
["0", "0", "1", "0"]
241/1704
58081/2903616
[0]
1
customer:25
customer:1600
1
["0", "1", "1", "0"]
77/95
324/9025
[0]
1
customer:30
customer:1605
0
["0", "0", "1", "0"]
241/1704
58081/2903616
[0]
1
customer:35
customer:1610
0
["0", "0", "1", "0"]
241/1704
58081/2903616
[0]
1
customer:40
customer:1615
0
["0", "0", "0", "0"]
241/1704
58081/2903616
1–20 / 120
5. Background, coalitions and contributions for one row
The focal case is the first complete test row, customer:5. Fix up to thirty-two evenly spaced training backgrounds in source order, each with mass one. A hybrid takes coalition features from the focal row and other features from the background. It is a constructed input, not a newly observed person, country or customer.
Every declared training background ID
ID
Source row
Native ID
Role
Predictors
Mass
customer:2
2
No native ID
train
["0", "0", "1", "0"]
1
customer:102
102
No native ID
train
["0", "0", "1", "0"]
1
customer:203
203
No native ID
train
["1", "0", "1", "0"]
1
customer:304
304
No native ID
train
["1", "0", "1", "0"]
1
customer:407
407
No native ID
train
["0", "0", "1", "0"]
1
customer:508
508
No native ID
train
["1", "0", "1", "0"]
1
customer:609
609
No native ID
train
["1", "0", "1", "1"]
1
customer:712
712
No native ID
train
["1", "0", "1", "0"]
1
customer:813
813
No native ID
train
["1", "0", "1", "1"]
1
customer:914
914
No native ID
train
["0", "0", "1", "0"]
1
customer:1017
1017
No native ID
train
["0", "0", "1", "0"]
1
customer:1118
1118
No native ID
train
["0", "0", "1", "0"]
1
customer:1219
1219
No native ID
train
["0", "0", "1", "0"]
1
customer:1322
1322
No native ID
train
["1", "0", "1", "0"]
1
customer:1423
1423
No native ID
train
["1", "1", "1", "0"]
1
customer:1524
1524
No native ID
train
["1", "0", "1", "1"]
1
customer:1624
1624
No native ID
train
["1", "0", "1", "1"]
1
customer:1727
1727
No native ID
train
["1", "0", "1", "0"]
1
customer:1828
1828
No native ID
train
["0", "0", "0", "0"]
1
customer:1929
1929
No native ID
train
["0", "0", "1", "0"]
1
customer:2032
2032
No native ID
train
["0", "1", "1", "0"]
1
customer:2133
2133
No native ID
train
["1", "0", "1", "0"]
1
customer:2234
2234
No native ID
train
["1", "0", "1", "1"]
1
customer:2337
2337
No native ID
train
["1", "0", "1", "0"]
1
customer:2438
2438
No native ID
train
["1", "0", "1", "0"]
1
customer:2539
2539
No native ID
train
["1", "0", "0", "0"]
1
customer:2642
2642
No native ID
train
["1", "0", "0", "0"]
1
customer:2743
2743
No native ID
train
["1", "0", "0", "0"]
1
customer:2844
2844
No native ID
train
["1", "0", "0", "0"]
1
customer:2947
2947
No native ID
train
["1", "0", "0", "0"]
1
customer:3048
3048
No native ID
train
["1", "0", "0", "0"]
1
customer:3149
3149
No native ID
train
["1", "0", "0", "0"]
1
Background-mean model probability for every coalition
Mask
Coalition indices
Background rows
Background mass
Game value
0
[]
32
32
158211/863360
1
[0]
32
32
158211/863360
2
[1]
32
32
241/1704
3
[0, 1]
32
32
241/1704
4
[2]
32
32
158211/863360
5
[0, 2]
32
32
158211/863360
6
[1, 2]
32
32
241/1704
7
[0, 1, 2]
32
32
241/1704
8
[3]
32
32
158211/863360
9
[0, 3]
32
32
158211/863360
10
[1, 3]
32
32
241/1704
11
[0, 1, 3]
32
32
241/1704
12
[2, 3]
32
32
158211/863360
13
[0, 2, 3]
32
32
158211/863360
14
[1, 2, 3]
32
32
241/1704
15
[0, 1, 2, 3]
32
32
241/1704
All contributions, baseline, prediction and reconstruction
Feature index or quantity
Exact probability-unit value
0
0
1
≈ -0.0418184-108313/2590080
2
0
3
0
baseline
158211/863360
prediction
241/1704
prediction − baseline − sum
0
Company · first-test-row contributions · Baseline 0.18325 → focal 0.14143; declared training background The originals retain vector text and high-resolution pixels. Enlarge vector original · High-resolution PNG
Weights are |S|!(p−|S|−1)!/p!, averaging marginal changes over all feature orders. Baseline plus contributions reconstructs the prediction within this model and background game; reconstruction does not identify a conditional-sampling or intervention effect.
Expand all coalition-by-background hybrids
Read all 512 rows in this table, twenty at a time. Enter a page number to jump directly.
1–20 / 512
Every constructed hybrid; not native observations
Mask
Coalition
Background ID
Mass
Hybrid predictors
Model probability
Unseen cell
0
[]
customer:2
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:102
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:203
1
["1", "0", "1", "0"]
241/1704
false
0
[]
customer:304
1
["1", "0", "1", "0"]
241/1704
false
0
[]
customer:407
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:508
1
["1", "0", "1", "0"]
241/1704
false
0
[]
customer:609
1
["1", "0", "1", "1"]
241/1704
false
0
[]
customer:712
1
["1", "0", "1", "0"]
241/1704
false
0
[]
customer:813
1
["1", "0", "1", "1"]
241/1704
false
0
[]
customer:914
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:1017
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:1118
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:1219
1
["0", "0", "1", "0"]
241/1704
false
0
[]
customer:1322
1
["1", "0", "1", "0"]
241/1704
false
0
[]
customer:1423
1
["1", "1", "1", "0"]
77/95
false
0
[]
customer:1524
1
["1", "0", "1", "1"]
241/1704
false
0
[]
customer:1624
1
["1", "0", "1", "1"]
241/1704
false
0
[]
customer:1727
1
["1", "0", "1", "0"]
241/1704
false
0
[]
customer:1828
1
["0", "0", "0", "0"]
241/1704
false
0
[]
customer:1929
1
["0", "0", "1", "0"]
241/1704
false
1–20 / 512
6. Trace native measurements and every selected-model row
Read all 48 rows in this table, twenty at a time. Enter a page number to jump directly.
1–20 / 48
Explicit preview of the first forty-eight native rows
Source row
Call failures
Complaints
Tenure months
Usage seconds
Native charge code
Churn
Role
1
8
0
38
4370
0
0
validation
2
0
0
39
318
0
0
train
3
10
0
37
2453
0
0
train
4
10
0
38
4198
0
0
train
5
3
0
38
2393
0
0
test
6
11
0
38
3775
1
0
validation
7
4
0
38
2360
0
0
train
8
13
0
37
9115
2
0
train
9
7
0
38
13773
0
0
train
10
7
0
38
4515
1
0
test
11
6
0
38
5918
0
0
validation
12
9
0
38
2238
0
0
train
13
25
0
38
15140
3
0
train
14
4
0
38
3095
1
0
train
15
9
0
37
15485
0
0
test
16
3
0
37
6500
1
0
validation
17
0
0
37
875
0
1
train
18
2
0
38
710
0
0
train
19
0
0
37
0
0
1
train
20
3
0
37
7508
0
0
test
1–20 / 48
UCI documents charge amounts as ordinal codes zero through nine, but the retained CSV has seven rows with code ten. All seven are listed below, without clipping them to nine or deleting them. This predictor is not used by our model.
All seven native charge-code-ten rows
Source row
Call failures
Complaints
Tenure months
Usage seconds
Native charge code
Churn
Role
474
25
0
36
11035
10
0
train
2174
29
1
40
10800
10
0
train
2274
27
0
42
10820
10
0
train
2374
31
0
44
11000
10
0
train
2674
26
0
39
10855
10
0
train
2924
28
0
43
10740
10
0
train
2974
32
0
39
11450
10
0
train
The following expandable table includes every native row of the selected-model study. Exclusions remain visible, with probability and loss undefined. Undefined is not zero error or zero risk. All fifty-two or fourteen native fields and every candidate’s predictions are retained in the separate CSVs; this table presents every analytical row with predictors, target, role and selected-model output.
Expand all 3150 selected-model rows
Read all 3150 rows in this table, twenty at a time. Enter a page number to jump directly.
1–20 / 3150
Every selected-model row, including retained exclusions
Python reconstructs bins, roles, candidates, schedules and backgrounds from three factual CSVs. Probabilities, Brier scores and contributions use Fraction, while logarithms use an eighty-digit Decimal approximation. Base R reproduces the finite study with binary floating point and is not an exact rational program. Neither companion uses precomputed answer CSVs or the web engine as its answers.
Try five checks. Recalculate one cell probability from its positive mass, total mass and alpha. Explain why validation choice and the most informative feature set may differ. Trace a changed recipient in one permutation and verify the sign of its loss difference. Average background predictions for one coalition and check baseline plus contributions. Finally, state what new sampling, splitting and causal assumptions would be needed to transport the conclusion.
Downloads of native observations and every computed table
원자료·코드북·만든 변수를 구별하기Distinguishing native fields, codebooks and constructed variables
국가 원 CSV는 64개 지표 기록이고, 결합한 16행 표는 국가별 특징과 표적을 만든 파생표입니다. 두 표의 행 수를 더해 관측 국가 수를 늘리지 않습니다. 원 JSON의 지표 ID·연도·국가 코드와 원행 위치를 따라가면 어떤 값이 어느 칸에 들어갔는지 검산할 수 있습니다.
NLS의 보존 압축파일에는 원 데이터와 변수 위치를 설명하는 코드북이 있습니다. 이 장의 준비 과정은 코드북의 고정 폭 열 위치로 52개 토큰을 읽습니다. 원래 결측 토큰 점(.)과 숫자 0은 다릅니다. wage76를 wage 76처럼 이름을 바꾸면 코드북·코드·표가 연결되지 않으므로 식별자는 그대로 보관합니다.
기업의 열 이름에는 원래 두 칸 공백도 있습니다. 원 CSV 헤더를 유지하고, 학습용 파생 열에는 새 이름을 붙여 충돌을 피합니다. 이진 기준·정규화·역할·내부 ID는 원래 조사 필드와 따로 세며, 범주 10을 발견했다고 원행을 삭제하거나 9로 바꾸지 않습니다.
아래 원자료 표와 다운로드 CSV를 대조할 때 원단위, 파생 규칙, 제외 사유를 각각 확인하세요. 모형 계산에 필요한 칸만 보는 화면과 원래 52개·14개 필드 전체를 보존한 파일의 범위를 분명히 구별하면, 요약이 원본을 대신하는 오류를 줄일 수 있습니다.
The country native CSV contains 64 indicator records; the joined 16-row table is derived. Adding their row counts does not create more countries. Follow original indicator IDs, years, codes and source positions to reconstruct the mapping.
The retained NLS archive includes native data and a column-position codebook. Preparation reads 52 tokens using fixed-width positions. A native dot missing marker differs from numeric zero. Preserve identifiers such as wage76; changing it to wage 76 breaks the codebook/code/table connection.
Company headers retain their original spacing. Derived teaching columns receive distinct names. Bins, roles, conversions and internal IDs are not counted as native survey fields. Finding raw charge code 10 does not justify deleting it or changing it to 9.
Compare native units, derivation rules and exclusion reasons separately. Distinguish views of model-relevant fields from archived files preserving all 52 or 14 native fields. A summary should not silently replace its source.
학부 심화 · 선택Advanced undergraduate · optional
직접 재현: 같은 자료, 같은 규칙, 다른 언어Reproduction: same observations and rules in two languages
재현의 첫 단계는 보존된 원값 CSV 세 개를 읽는 것입니다. 국가 64기록, 개인 3,613행의 원필드, 기업 3,150행의 원필드에서 이진 기준과 역할을 다시 만듭니다. 결합 파생표나 이미 계산된 모형 정답을 읽어 결과를 복사하는 절차와 구별하세요.
Python 공개 코드는 유리수 질량·확률·Brier·유한 연합 기여를 분수로 보관합니다. 정보량의 로그는 별도의 근사 계산이며 정확한 분수 계수와 로그 인수를 함께 남깁니다. R 공개 코드는 수치 근사라는 점을 명시합니다. 두 언어에서 같은 원칙을 계산하더라도 마지막 표시 자릿수나 합산 순서가 다를 수 있습니다.
결과를 비교할 때 먼저 원행 수·역할·양성 수·선택 특징·공통 분모가 같은지 보세요. 이어 모든 후보의 평균과 선택 모형의 행별 확률을 비교하고, 순열 donor ID와 배경 연합 값을 확인합니다. 소수점이 조금 다른 문제와 다른 사람이 평가된 문제는 전혀 다릅니다.
고정 Python·R 보관 예제는 그 예제의 입력을 실제 실행한 결과입니다. 웹에서 바꾼 현재 입력이 자동으로 과거 예제 코드의 입력으로 바뀌는 것은 아닙니다. 보관된 코드·stdout·진단·전체 수치·원 SVG를 함께 읽고, 현재 실습 결과와 구분하세요.
실행 순서도 정해 봅시다. 이 장의 Python 코드와 R 코드를 같은 폴더에 두고, 아래 원값 CSV 세 개를 그 아래 ml12-sources 폴더에 둡니다. Python은 표준 라이브러리만, R은 base R만 사용합니다. 터미널의 현재 폴더를 코드 폴더로 옮긴 뒤 다음 두 명령을 차례로 실행합니다. 결과 폴더는 서로 다르게 지정해 두 언어의 근사·정확 결과를 혼동하지 않습니다.
Begin by reading three factual-source CSVs:64 country records, native fields for 3,613 people, and native fields for 3,150 company rows. Reconstruct bins and roles rather than copying answers from a derived model or result table.
Public Python retains rational masses, probabilities, Brier values and finite-coalition contributions as fractions. Logarithms remain approximate, with exact rational coefficients and arguments preserved. Public R arithmetic is explicitly approximate. Equivalent definitions need not produce identical final display digits or summation order.
First compare native counts, roles, positive counts, selected subsets and denominators. Then compare every candidate criterion, selected-model row prediction, permutation donor ID and coalition value. Slight decimal differences differ fundamentally from evaluating different people.
Fixed Python/R archives contain actual results for their declared inputs. Editing a live web input does not rewrite historical program inputs. Read code, stdout, diagnostics, full values and original SVG together, separately from the current lab result.
Make the reproduction steps explicit. Put this chapter’s Python code and R code in one folder, and the three factual CSVs listed below in its ml12-sources subfolder. Python uses only its standard library; R uses base R. Open a terminal in the code folder and run the two commands in sequence. Separate output folders keep the exact and approximate outputs identifiable.
학자·읽기·본문에서 보는 영상Scholars, readings and an embedded lecture
Claude Shannon은 통신에서의 평균 정보량과 부호화 문제를 수학적으로 연결했습니다. 이 장에서 배운 엔트로피는 메시지의 도덕적 가치나 의미의 깊이를 재는 척도가 아니라 선언된 확률 법칙의 불확실성을 재는 양입니다. 공학적 질문이 출발점이었다는 맥락을 알면 용어를 과도하게 확대하는 일을 줄일 수 있습니다.
Lloyd Shapley의 협력게임 기여 배분 원리는 “누가 어떤 순서로 합류했는가”에 따른 증가분 평균으로 읽을 수 있습니다. Lundberg와 Lee의 예측 설명 연구를 읽을 때도 먼저 어떤 게임과 배경을 정의했는지 확인하세요. 이름의 권위보다 수식의 대상과 가정을 읽는 것이 중요합니다.
Guyon과 Elisseeff의 특징 선택 입문은 개별 순위와 예측에 유용한 부분집합이 다를 수 있다는 점을 살펴보기에 좋은 원 논문입니다. 원문을 읽으며 이 장의 XOR·중복·고비율 범주 예제를 연결하고, 실제 연구 목적에 맞는 선택 기준이 무엇인지 정리하세요.
아래 MIT 6.02 공식 강의는 George Verghese가 정보량과 엔트로피·부호화의 기본을 설명합니다. 본문 안에서 재생하며, 보기 전에는 1/2과 1/4의 놀라움을 예측하고 본 뒤에는 평균 부호 길이와 엔트로피를 구별해 적어 보세요. 특정 분·초에 대한 내용을 보장하는 안내는 두지 않습니다.
Claude Shannon connected average information and coding through mathematics of communication. Entropy here measures uncertainty under a declared probability law, not moral value or semantic depth. Its engineering context helps prevent overinterpreting the term.
Lloyd Shapley’s cooperative allocation principle averages increments across entry orders. When reading Lundberg and Lee on prediction explanations, first identify the game and background. Read mathematical objects and assumptions rather than relying on names alone.
Guyon and Elisseeff’s introduction to feature selection discusses why individual rankings differ from subsets useful for prediction. Connect the original paper to XOR, redundancy and high-cardinality examples, then specify a criterion appropriate to your own research purpose.
The official MIT 6.02 lecture below, taught by George Verghese, introduces information, entropy and coding. Play it within this page. Before viewing, predict surprise at probabilities 1/2 and 1/4; afterwards, distinguish entropy from average code length. No precise timestamp promises are made.
세 사례를 잇는 종합 연구 실습An integrative study across the three cases
세 사례 중 하나를 골라 다음의 짧은 연구 기록을 완성하세요. 먼저 표적과 원단위를 쓰고, 이진화로 무엇을 버렸는지 적습니다. 국가 기대수명, 개인 시급, 고객 이탈은 같은 종류의 변수도 같은 정책 질문도 아닙니다.
모든 후보의 검증 점수와 선택 특징을 표로 정리하고 시험 기준선과 비교합니다. 국가 시험 세 행, 개인 제외 596명, 기업 검증 양성 1개를 각각 결과 해석에 반영하세요. 평가 집단을 더 좋게 보이도록 바꾸기보다 현재 설계가 어떤 질문까지 답하는지 설명합니다.
선택 모형에서 단독·묶음 순열 중요도를 비교한 뒤 첫 시험 행의 유한 배경 설명을 읽습니다. 사용하지 않은 특징의 중요도 0과, 사용하지만 특정 배경에서 지역 기여 0인 경우를 구별합니다. 개인 대학 근접 특징의 한 순열 중요도가 음수인 결과도 숨기지 말고 다른 일정과 함께 확인하세요.
마지막 문단에는 무엇이 관측 연관이고 무엇이 모형 의존이며 무엇이 아직 식별되지 않은 인과 질문인지 적습니다. 실제 개입을 제안하려면 어떤 추가 설계가 필요한지도 구체적으로 쓰세요. 수치 결과를 사회적 판단이나 정책 권고로 옮길 때 필요한 연결 고리를 드러내는 연습입니다.
Choose one actual case and write a compact research record. State its target, native units and what binning discards. Country life expectancy, individual wages and customer churn are different variables and policy questions.
Tabulate every validation candidate, chosen subset and test baseline comparison. Account for three country test rows,596 excluded people or one validation churn positive. Explain which questions the present design answers instead of changing evaluation populations to improve appearances.
Compare single/group permutation importance and the first test row’s finite-background explanation. Distinguish an unused feature’s zero reliance from a used feature’s zero local contribution for a particular background. Preserve the negative person-proximity importance under one schedule and compare it with the other schedule.
End by separating observed association, model reliance and unidentified causal questions. Specify the additional design needed for an intervention proposal. Practice making the steps between numeric results and social or policy judgments explicit.
학부 심화 · 선택Advanced undergraduate · optional
스스로 검산하고 다음 장으로 가기Self-checking before the next chapter
확률표에서는 질량 합과 정규화를 확인하고, 로그 단위와 지원집합을 적습니다. 같은 확률표의 KL은 0이고, 양의 P에 Q가 0인 칸은 무한대입니다. 경험 상호정보량이 0이라는 등식과 모집단 독립성 검정은 다른 주장입니다.
선택 표에서는 훈련 확률표가 시험 표적에 의존하지 않는지 확인합니다. 모든 후보가 같은 평가 행과 질량을 사용하는지, 정확한 동률 규칙과 검증 미정의 처리가 구별되는지 읽으세요. 이름이 같은 특징이 다른 구간 규칙을 사용하지 않는지도 대조합니다.
중요도와 설명에서는 모형을 고정하고 donor 일정·특징 묶음·배경 ID를 확인합니다. 음의 중요도와 작은 표본을 지우지 않고, 설명 기여의 합이 예측을 복원하는지 검산합니다. 같은 게임의 효율성이 인과적 타당성까지 보장하지 않는다는 점을 말로 설명할 수 있어야 합니다.
다음 ML13에서는 이 전체 선택 절차를 바깥 평가 안에 넣고 모형 선택의 불확실성을 다룹니다. 뒤 AI13에서는 KL·조건부 법칙·변수변환을 잠재변수 추론과 ELBO에 사용합니다. 단순한 카드와 실제 원표 사이를 왕복하며 계산 대상과 주장 범위를 정확히 구별하는 습관을 유지하세요.
For probability tables, verify total masses, normalization, log units and support. Identical PMFs have zero KL;positive P where Q is zero gives infinity. Exact empirical independence differs from a population-independence test.
For selection, check that training tables do not depend on test targets. Verify common evaluation rows/weights, exact ties versus undefined validation, and consistent bin definitions behind feature names.
For importance and explanations, freeze the model and inspect donor schedules, feature groups and background IDs. Retain negative importance and small frames;check reconstruction of the prediction. Explain why efficiency within a game does not establish causality.
ML13 evaluates the complete selection procedure inside an outer assessment. AI13 reuses KL, conditional laws and transformations for latent inference and the ELBO. Continue moving between small cards and native tables while keeping the computed object and claim precise.
영상·학자·함께 읽기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.
정보와 엔트로피의 출발점 · MIT 6.02Information and entropy: MIT 6.02
MIT OpenCourseWare · George Verghese · English · undergraduate
본문의 카드 확률과 로그 놀라움을 계산한 뒤 평균 정보량·부호 길이를 구별하며 읽고 봅니다.Calculate surprise for the card probabilities, then distinguish average information from actual code lengths.
보고 읽은 뒤 답하기Respond after watching/reading확률1/4의 놀라움2비트와 P=(1/2,1/4,1/4)의 평균1.5비트는 왜 다른가요?Why does probability 1/4 give two bits of surprise while P=(1/2,1/4,1/4) has average 1.5 bits?
생각을 점검하는 해설Check your reasoning
전자는 한 결과의 −log₂p이고 후자는 모든 결과의 놀라움을 확률로 가중한 평균입니다. 각 부호 길이와 기대 길이도 구별해야 합니다.One is an outcome’s negative log probability; the other weights all outcome surprises by their probabilities. Individual and expected code lengths also differ.
원문 읽기 · 특징 순위와 유용한 부분집합Primary reading: rankings and useful feature subsets
Guyon and Elisseeff · JMLR 2003 · English · selected opening
서론의 개별 관련성과 예측에 유용한 조합의 구분을 읽고 본문의 XOR·복사본 사례에 연결합니다.Read the opening distinction between individual relevance and subsets useful for prediction, and connect it to XOR and duplicates.
보고 읽은 뒤 답하기Respond after watching/reading개별 정보량이 큰 특징을 많이 넣으면 반드시 가장 좋은 예측 모형이 되나요?Must adding many individually informative predictors produce the best predictor?
생각을 점검하는 해설Check your reasoning
중복은 같은 정보를 반복하고 상호작용은 개별 점수에서 보이지 않을 수 있습니다. 선택 목적·모형·보유 평가를 함께 정해야 합니다.Redundancy repeats information while interactions can be invisible to marginal scores. Specify the objective, model and held-out assessment.
원문 읽기 · 예측 설명의 게임과 합 성질Primary reading: attribution games and reconstruction
Scott M. Lundberg and Su-In Lee · NeurIPS 2017 · English · selected opening/equations
가산 설명식과 Shapley 증가분 계수를 읽고 이 장의 유한 배경 게임에서 기준·연합·기여를 확인합니다.Read the additive explanation and Shapley ordering weights, then identify baseline, coalitions and contributions in our finite-background game.
보고 읽은 뒤 답하기Respond after watching/reading기여의 합이 예측을 복원하면 그 기여가 인과효과라는 뜻인가요?Does reconstructing the prediction make contributions causal effects?
생각을 점검하는 해설Check your reasoning
아닙니다. 합 성질은 선언된 모형·게임 안의 배분을 검산합니다. 주변 대입·조건부·인과 게임은 서로 다른 대상입니다.No. Reconstruction checks allocation within a specified model and game. Marginal replacement, conditional and causal games differ.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 분모와 증거의 양Denominators and evidence
빨강·파랑 수가 (3,1)인 상자와 (30,10)인 상자의 경험 확률과 엔트로피는 같은가? 관측 표본의 정보도 완전히 같다고 말할 수 있는가?
Compare boxes with red/blue counts (3,1) and (30,10). Do their empirical probabilities and entropy agree? Is their amount of observed statistical evidence identical?
풀이와 확인할 이유Solution and explanation
두 확률표 모두 (3/4,1/4)이므로 엔트로피도 약 0.811278비트로 같습니다. 이는 경험 확률표가 같다는 뜻입니다.
첫 표본은 4개이고 둘째는 40개입니다. 같은 모집단에서 독립 추출했다는 조건이라면 비율 추정의 불확실성은 다를 수 있습니다. 어떤 추출 조건인지 모른 채 비율만 보고 증거의 양까지 같다고 말할 수는 없습니다.
Both normalize to (3/4,1/4), giving entropy about 0.811278 bits. Their empirical probability tables agree.
The samples contain four and forty observations. Under independent sampling from the same population, estimation uncertainty can differ. Equal proportions do not imply identical evidence without a sampling argument.
2. 확률에서 놀라움으로From probability to surprise
확률 1/2,1/8,1인 결과의 정보량을 비트로 계산하라. 확률이 절반이 되면 정보량은 얼마나 증가하는가?
Compute information in bits for probabilities 1/2, 1/8 and 1. How much does information increase when a positive probability is halved?
풀이와 확인할 이유Solution and explanation
각각 −log₂(1/2)=1, −log₂(1/8)=3, −log₂1=0비트입니다. 양수 p에 대해 −log₂(p/2)=−log₂p+1이므로 1비트 증가합니다. 확률이 작아질수록 같은 결과가 더 뜻밖이라는 정의와 일치합니다.
The values are one, three and zero bits. For p>0, −log₂(p/2)=−log₂p+1, so halving probability adds one bit. A less probable outcome is more surprising under this definition.
3. 독립이 필요한 곱셈When independence permits multiplication
공정 동전 두 개가 독립이다. 모두 앞면인 사건의 정보량을 구하라. 둘째 동전이 첫째와 항상 같은 면을 보인다면 답은 어떻게 달라지는가?
Two fair coins are independent. Find the information of both being heads. What changes if the second always matches the first?
풀이와 확인할 이유Solution and explanation
독립이면 두 앞면의 확률은 (1/2)²=1/4이므로 2비트입니다. 항상 같은 면이라면 두 앞면은 첫 동전이 앞면일 확률 1/2과 같아서 1비트입니다.
둘째 결과의 조건부 확률은 첫 경우 1/2, 둘째 경우 1입니다. 합의 법칙을 쓸 때 둘째 항은 조건부 놀라움이어야 하며, 의존성을 무시해 두 번의 1비트를 더하면 중복 계산합니다.
Under independence, the probability is 1/4, giving two bits. If the coins always match, both heads has probability 1/2, giving one bit.
The second conditional probability is 1/2 in the first case and one in the second. Its information contribution must be conditional; adding two unconditional bits would double-count dependent information.
4. 세 기호의 평균 놀라움Average surprise for three symbols
P=(1/2,1/4,1/4)의 엔트로피와 각 결과의 정보량을 구하라.
Find the outcome information and entropy of P=(1/2,1/4,1/4).
풀이와 확인할 이유Solution and explanation
결과별 정보량은 (1,2,2)비트입니다. 확률로 가중한 평균은 (1/2)×1+(1/4)×2+(1/4)×2=3/2비트입니다. 세 값을 단순 평균한 5/3은 세 결과가 등확률이라는 다른 가정을 사용하므로 정답이 아닙니다.
Outcome information is (1,2,2) bits. The probability-weighted average is 3/2 bits. The unweighted average 5/3 implicitly treats outcomes as equally likely and answers a different question.
5. 같은 결과, 다른 단위Same uncertainty, different units
정보량 3비트는 몇 내트인가? 밑을 바꾸면 가능 결과의 순위나 확률표가 바뀌는가?
Convert three bits to nats. Does changing the logarithm base change outcome probabilities or their ordering?
풀이와 확인할 이유Solution and explanation
3ln2≈2.079442내트입니다. ln(1/p)=ln2×log₂(1/p)이므로 모든 정보량에 같은 양의 상수를 곱합니다. 확률 자체도, 놀라움의 크기 순서도 바뀌지 않습니다. 수치만 직접 비교하면 단위 변환을 실제 불확실성 변화로 오해할 수 있습니다.
Three bits equal 3 ln 2≈2.079442 nats. Since ln(1/p)=ln 2·log₂(1/p), all information values receive the same positive scale factor. Probabilities and surprise ordering remain unchanged.
6. 부호의 평균 길이Expected code length
P=(1/2,1/4,1/4)에 접두 부호 0,10,11을 사용한다. 평균 길이를 구하고, 한 기호의 부호 길이가 1.5자리라는 설명이 맞는지 판단하라.
Use prefix codewords 0,10,11 for P=(1/2,1/4,1/4). Find expected length and assess the statement that one symbol has a 1.5-digit codeword.
풀이와 확인할 이유Solution and explanation
길이는 1,2,2이고 기대 길이는 1.5자리입니다. 개별 부호는 정수 길이이며 1.5는 반복 사용에서의 평균입니다. 이 예의 평균은 엔트로피와 같지만 일반적인 단일 기호 부호에서 항상 등호가 성립하는 것은 아닙니다.
Lengths are one, two and two, giving expected length 1.5 digits. Individual codewords have integer lengths; 1.5 is an average over use. Equality with entropy holds here, not for every single-symbol code.
7. 틀린 동전 예측의 비용The cost of a wrong coin forecast
P=(1/2,1/2), Q=(3/4,1/4)의 교차 엔트로피와 H(P)를 구하라. 두 값의 차이는 얼마인가?
Compute cross-entropy and H(P) for P=(1/2,1/2), Q=(3/4,1/4). What is their difference?
풀이와 확인할 이유Solution and explanation
H(P)=1비트입니다. 교차 엔트로피는 −(1/2)log₂(3/4)−(1/2)log₂(1/4)=1.20751875…비트입니다. 차이는 약 0.20751875비트입니다. 뒤에서 이 추가 평균 로그 비용을 KL(P∥Q)라고 부릅니다. 단일 결과가 아니라 P로 평균한 비용의 차이입니다.
H(P)=1 bit. Cross-entropy is −(1/2)log₂(3/4)−(1/2)log₂(1/4)=1.20751875… bits. The excess is about 0.20751875 bits, later identified as KL(P∥Q). It is an expected log-cost difference under P.
8. 지원집합의 방향The direction of a support mismatch
P=(1/2,1/2), Q=(1,0)와 P=(1,0), Q=(1/2,1/2)를 각각 비교하라. 교차 엔트로피는 둘 다 무한대인가?
Compare P=(1/2,1/2), Q=(1,0) with P=(1,0), Q=(1/2,1/2). Are both cross-entropies infinite?
풀이와 확인할 이유Solution and explanation
첫 경우에는 P가 양수인 둘째 결과에 Q가 0을 주므로 무한대입니다. 둘째 경우에는 실제로 나오는 첫 결과에 Q가 1/2을 주므로 −log₂(1/2)=1비트입니다. P가 0인 둘째 결과는 기여하지 않습니다. 평균 기준과 예측의 방향이 중요합니다.
The first is infinite because Q assigns zero to a positive-P outcome. The second is one bit: the only occurring outcome has predicted probability 1/2. Its zero-P second cell contributes nothing. The averaging and predictive roles are directional.
9. 표시 0과 정확한 0Displayed zero versus exact zero
질량 [1e−200,1e200]을 정규화한 작은 확률은 정확히 0인가? 계산기가 엔트로피를 양수이지만 표시 한계 아래라고 보고하면 어떻게 써야 하는가?
Is the small normalized probability from masses [1e−200, 1e200] exactly zero? How should a report describe entropy marked positive but below display resolution?
풀이와 확인할 이유Solution and explanation
작은 확률은 1/(1+10⁴⁰⁰)이므로 양수입니다. 보통의 이진 부동소수점 표시에서 0으로 반올림될 수 있습니다. 두 칸 모두 양수이므로 엔트로피도 양수이며 “엔트로피=0”이라고 쓰면 틀립니다.
정확한 분수 또는 로그의 정확한 계수·인수를 보존하고, 근사 표시의 해상도가 부족하다고 적습니다. 매우 작은 양수를 모형상 불가능으로 바꾸거나 근사값을 정확한 증명처럼 쓰지 않습니다.
The probability is 1/(1+10⁴⁰⁰), strictly positive, though ordinary binary floating-point display can round it to zero. Both cells are positive, so entropy is positive; reporting H=0 is incorrect.
Retain the exact fraction or exact log coefficients and arguments, and state the limited approximation resolution. Do not convert a tiny probability into impossibility or a rounded display into a proof.
10. 평활화는 별도의 모형이다Smoothing is a separate model
훈련 10명 중 이탈자가 0명이다. 경험 비율 0과 양의 평활 확률을 구별하고, 시험 이탈자가 나온 뒤 원래 예측 확률을 몰래 바꾸면 안 되는 이유를 설명하라.
Training data contain zero churners among ten customers. Distinguish empirical rate zero from a smoothed positive forecast, and explain why changing the original forecast after a test churn occurs is invalid.
풀이와 확인할 이유Solution and explanation
경험 비율은 0/10=0입니다. 예를 들어 두 클래스에 각각 α=1을 더하는 예측 규칙을 미리 선언하면 이탈 예측은 (0+1)/(10+2)=1/12입니다. 같은 원자료라도 규칙이 다릅니다.
시험에서 실제 이탈이 나오면 원래 확률 0의 로그 손실은 무한대이고, 1/12 예측의 로그 손실은 log₂12입니다. 결과를 본 뒤 0을 작은 수로 고쳐 과거 점수를 줄이면 시험 자료로 예측과 평가 규칙을 바꾼 것입니다. 선언된 규칙과 원래 예측을 남겨 비교해야 합니다.
The empirical rate is 0/10=0. A predeclared rule adding α=1 to each binary class predicts (0+1)/(10+2)=1/12. The source observations are unchanged, but the prediction rule differs.
A test churn gives infinite log loss for the original zero forecast and log₂12 for the 1/12 forecast. Replacing zero after seeing the outcome changes prediction and evaluation using test information. Preserve the declared rule and original forecasts.
11. KL의 각 항Individual KL terms
P=(1/2,1/2), Q=(3/4,1/4)에서 두 KL 항의 부호와 합을 구하라.
For P=(1/2,1/2), Q=(3/4,1/4), find the signs and sum of the two KL terms.
풀이와 확인할 이유Solution and explanation
첫 항은 (1/2)log₂(2/3)≈−0.292481입니다. 둘째 항은 (1/2)log₂2=1/2입니다. 합은 약 0.207519비트로 양수입니다. 비음성 정리는 각 항이 아니라 전체 가중합에 적용됩니다.
The first term is (1/2)log₂(2/3)≈−0.292481; the second is (1/2)log₂2=1/2. Their sum is about 0.207519 bits. Nonnegativity applies to the complete weighted sum, not each term.
12. KL 증명의 지원집합Support in the KL proof
P=(1,0), Q=(1/2,1/2)에서 Σ₍p>0₎q가 1인가? ln t≤t−1을 이용한 증명의 마지막 부등식을 확인하라.
For P=(1,0), Q=(1/2,1/2), is Σ₍p>0₎q equal to one? Check the last inequality in the ln t≤t−1 proof.
풀이와 확인할 이유Solution and explanation
P가 양수인 칸은 첫 칸뿐이므로 Q의 합은 1/2입니다. 따라서 −KL≤1/2−1=−1/2≤0입니다. 여기서 KL은 자연로그 단위로 ln2이고 −ln2≤−1/2가 맞습니다. 지원집합 밖 Q 질량을 무시하고 합을 1이라고 놓을 필요가 없습니다.
Only the first cell has positive P, so the restricted Q sum is 1/2. Thus −KL≤−1/2≤0. In natural-log units KL=ln 2 and −ln 2≤−1/2. The proof does not require pretending the restricted Q sum is one.
13. 최대 엔트로피의 증명An entropy maximum proof
세 칸 확률표 P와 등확률표 U=(1/3,1/3,1/3)에 대해 KL(P∥U)를 H(P)로 표현하고 등호 조건을 쓰라.
Express KL(P∥U) using H(P) for U=(1/3,1/3,1/3), and state the equality condition.
풀이와 확인할 이유Solution and explanation
Σpᵢlog₂(pᵢ/(1/3))=Σpᵢlog₂pᵢ+Σpᵢlog₂3=−H(P)+log₂3입니다. KL≥0이므로 H(P)≤log₂3≈1.584963비트입니다. 등호는 P=U일 때만 성립합니다. 가능한 칸을 세 개로 고정한 정리입니다.
Expanding gives Σpᵢlog₂pᵢ+log₂3=−H(P)+log₂3. Nonnegative KL implies H(P)≤log₂3≈1.584963 bits, with equality only at P=U. The alphabet is fixed at three cells.
14. 방향과 정규화Direction and normalization
원질량 [1,1]과 [10,10] 사이의 KL은 0인가? 그렇다면 원질량도 같은가?
Is KL between raw masses [1,1] and [10,10] zero after normalization? Does this imply equal raw masses?
풀이와 확인할 이유Solution and explanation
각각을 합으로 나누면 둘 다 (1/2,1/2)이므로 KL은 정확히 0입니다. 원질량의 합은 2와 20으로 다릅니다. KL의 0 조건은 정규화된 확률표의 같음이며 관측 수나 총 질량의 같음이 아닙니다.
Both normalize to (1/2,1/2), so KL is exactly zero. Total masses are two and twenty. Zero KL concerns normalized probability tables, not equal sample sizes or total mass.
15. 네 카드의 조건부 확률Conditional probabilities from four cards
There are two red circles, one red square, one blue circle and no blue squares. Find P(circle), P(circle|red) and P(red|circle).
풀이와 확인할 이유Solution and explanation
원은 3장이므로 P(원)=3/4입니다. 빨강 3장 중 원 2장이므로 P(원|빨강)=2/3입니다. 원 3장 중 빨강 2장이므로 P(빨강|원)=2/3입니다. 마지막 두 값은 이 예의 주변 수가 같아서 우연히 같고 일반적으로 조건의 방향을 바꾸면 같지 않습니다.
Three of four cards are circles, so P(circle)=3/4. Two of three red cards are circles, and two of three circles are red, giving 2/3 for each conditional probability. Their equality is specific to these equal marginal counts, not a general rule for reversed conditioning.
16. 완전 결정과 상호정보량Determinism and mutual information
공정 비트 X에 대해 Y=X라고 하자. H(Y), H(Y|X), I(X;Y)를 구하라.
Let X be a fair bit and Y=X. Find H(Y), H(Y|X) and I(X;Y).
풀이와 확인할 이유Solution and explanation
Y도 반반이므로 H(Y)=1비트입니다. X를 알면 Y가 확정되므로 각 조건에서 엔트로피가 0이고 H(Y|X)=0입니다. 차이 I(X;Y)=1비트입니다. 이는 확률표의 결정 관계이며 실제 세계에서 X를 조작하는 인과효과까지 자동으로 식별하지는 않습니다.
Y is fair, so H(Y)=1 bit. Knowing X determines Y, giving H(Y|X)=0 and I(X;Y)=1 bit. This distributional determination does not automatically identify a real-world causal effect of manipulating X.
17. XOR의 개별 특징Marginal XOR features
네 등확률 조합 00,01,10,11에서 Y=X₁ XOR X₂이다. X₁만 관측했을 때 Y의 조건부 확률표와 상호정보량을 구하라.
For equiprobable 00,01,10,11 with Y=X₁ XOR X₂, find the conditional Y tables given X₁ and the mutual information.
풀이와 확인할 이유Solution and explanation
X₁=0에서는 00의 Y=0과 01의 Y=1이 반반입니다. X₁=1에서도 10의 Y=1과 11의 Y=0이 반반입니다. 두 조건 모두 엔트로피 1비트이므로 H(Y|X₁)=1, H(Y)=1, I(X₁;Y)=0입니다. 특징 하나만 높은 점수로 고르는 필터가 이 문제를 놓칠 수 있습니다.
Given X₁=0, 00 and 01 give Y zero and one equally. Given X₁=1, 10 and 11 again give one and zero equally. Both conditions have entropy one bit, so I(X₁;Y)=1−1=0. Marginal feature filtering can miss this problem.
18. XOR의 조건부 정보Conditional XOR information
같은 XOR 표에서 I(X₁;Y|X₂)를 구하고 I(X₁;Y)=0과 모순인지 설명하라.
In the same XOR table, compute I(X₁;Y|X₂) and explain why it does not contradict marginal information zero.
풀이와 확인할 이유Solution and explanation
X₂=0이면 Y=X₁이고 X₂=1이면 Y=1−X₁입니다. 각 조건 안에서 Y는 공정하며 X₁을 알면 확정됩니다. 따라서 각 조건의 정보량은 1비트이고 확률 1/2씩 가중해도 1비트입니다. 주변 독립은 추가 조건을 붙인 독립까지 뜻하지 않으므로 모순이 아닙니다.
For X₂=0, Y=X₁; for X₂=1, Y=1−X₁. Within either condition Y is fair and determined by X₁, giving one bit. Averaging with condition probabilities 1/2 still gives one bit. Marginal independence does not imply independence after conditioning.
19. 복사본의 중복 정보Redundant information in a copy
공정 비트 Y=X₁이고 X₂=X₁이다. 개별 정보량의 합과 결합 정보량을 비교하고 I(X₂;Y|X₁)를 구하라.
Let fair Y=X₁ and X₂=X₁. Compare the sum of marginal information with joint information and compute I(X₂;Y|X₁).
풀이와 확인할 이유Solution and explanation
각 특징이 Y를 알려 주므로 개별 정보량은 각각 1비트이고 합은 2비트입니다. 그러나 두 특징을 함께 알아도 불확실성은 원래 1비트만 줄어 결합 정보량은 1비트입니다. X₁ 뒤에는 Y가 이미 확정되어 X₂의 추가 정보는 0비트입니다. 같은 정보를 두 번 더하면 안 됩니다.
Each feature gives one bit, so their marginal sum is two bits. Together they remove only the original one bit of uncertainty. After X₁, Y is already known, so I(X₂;Y|X₁)=0. Repeated information must not be counted twice.
20. 표본 독립과 모집단 독립Empirical versus population independence
An exact empirical table satisfies p(x, y)=pX(x)pY(y). May you report a population-independence p-value of one from this alone?
풀이와 확인할 이유Solution and explanation
아닙니다. 확인한 것은 선택된 표본과 가중치가 만든 확률표의 대수적 독립입니다. 유의확률은 모집단 가설, 추출 설계, 검정통계량의 영분포를 별도로 정해야 정의됩니다.
작은 표본에서 우연히 독립 형태가 보일 수도 있고, 자료 선택이 그 형태를 만들 수도 있습니다. “이 경험 표의 상호정보량은 정확히 0”이라고 보고하고 모집단으로의 일반화 조건은 따로 검토해야 합니다.
No. You verified algebraic independence of the distribution formed by the selected sample and weights. A p-value additionally requires a population null, sampling design and null distribution of a test statistic.
A small sample can look independent by chance or by selection. Report exact zero information for this empirical table and examine population generalization separately.
21. 유일한 이름의 정보량Information in unique names
네 훈련 행의 이름 A,B,C,D가 모두 다르고 표적은 0,0,1,1이다. 경험 I(ID;Y)를 구하고 새로운 이름 E의 예측과 구별하라.
Four training rows have unique names A, B, C, D and targets 0,0,1,1. Find empirical I(ID;Y) and distinguish prediction for a new name E.
풀이와 확인할 이유Solution and explanation
표적은 반반이라 H(Y)=1비트입니다. 훈련 ID를 알면 해당 표적이 정해져 H(Y|ID)=0이므로 경험 정보량은 1비트입니다. 새 이름 E에는 기억한 칸이 없어 표적을 알 수 없습니다. 훈련 표의 완전 설명과 새 개체 일반화는 다릅니다.
Targets are balanced, so H(Y)=1 bit. Each training ID determines its target, giving conditional entropy zero and empirical information one bit. New name E has no memorized cell. Perfect description of the training table differs from generalization to a new entity.
22. 음의 미분 엔트로피Negative differential entropy
X가 (0,1/2)의 균등분포일 때 밀도와 자연로그 미분 엔트로피를 구하라. 이 값이 이산 엔트로피의 비음성과 모순인가?
Find density and natural-log differential entropy for Uniform(0,1/2). Does the result contradict discrete entropy nonnegativity?
풀이와 확인할 이유Solution and explanation
구간 길이가 1/2이므로 밀도는 2입니다. h(X)=−∫₀¹ᐟ²2ln2 dx=−ln2입니다. 밀도 기반 미분 엔트로피와 유한 범주 확률의 엔트로피는 다른 양이므로 모순이 아닙니다. 밀도 2는 확률이 2라는 뜻이 아닙니다.
The interval has length 1/2, so density is two and h(X)=−∫₀¹ᐟ²2 ln 2 dx=−ln 2. Differential and discrete entropy are different quantities. Density two does not mean probability two.
23. 센티미터와 미터Centimeters and meters
X가 미터 단위 연속 길이이고 h(X)가 유한하다. Y=100X일 때 h(Y)−h(X)를 구하고, 다른 변수 Z와의 상호정보량도 그만큼 늘어나는지 설명하라.
For a continuous length X in meters with finite h(X), let Y=100 X. Find h(Y)−h(X), and assess whether information with another variable Z rises by the same amount.
풀이와 확인할 이유Solution and explanation
미분 엔트로피 차이는 ln100입니다. 그러나 정칙성과 필요한 밀도·적분 조건 아래 가역적 단위 변환에서 I(Y;Z)=I(X;Z)입니다. Jacobian 항이 상호정보량의 밀도 비에서 상쇄되기 때문입니다. 새 정보를 관측한 것이 아닙니다.
The differential entropy difference is ln 100. Under the required density and integrability conditions, invertible scaling preserves I(Y;Z)=I(X;Z) because Jacobian factors cancel in the density ratio. No new information was observed.
24. 이진화가 버린 값What binning discards
임금 4.99,5.01,100을 5 이상이면 1, 미만이면 0으로 바꾼다. 결과와 가역 여부를 구하고, 원수치를 보관할 이유를 쓰라.
Bin wages 4.99,5.01,100 as one when at least five and zero otherwise. Give the results, determine invertibility and explain retaining native values.
풀이와 확인할 이유Solution and explanation
결과는 0,1,1입니다. 1에서 5.01과 100을 구별할 수 없어 가역이 아닙니다. 같은 이진 특징이라도 규모 차이는 원래 자료에 남아 있습니다. 다른 기준·연속 모형·단위 검토를 할 수 있도록 원수치와 이진화 규칙을 함께 보관해야 합니다.
The results are 0,1,1. The map is not invertible because one cannot distinguish 5.01 from 100. Native magnitudes remain relevant for alternative thresholds, continuous models and unit checks. Retain both source values and the binning rule.
For independent fair X=(X₁,X₂), Y=X₁ XOR X₂, compute T as their XOR from X. Compare I(T;Y) and I(X;Y). What if T retains only X₁?
풀이와 확인할 이유Solution and explanation
X로부터 XOR를 계산하면 T=Y이므로 두 정보량이 모두 1비트입니다. Y를 별도로 읽어 특징에 복사한 것이 아니라 X의 알려진 함수로 계산한다는 조건입니다. T=X₁이면 정보량은 0으로 줄어듭니다. 같은 차원 축소라도 표적에 필요한 구분을 보존하는지에 따라 다릅니다.
Computing XOR from X yields T=Y and both information quantities equal one bit. This presumes computing a known function of X, not copying separately observed labels into a feature. Retaining only X₁ instead reduces information to zero. A summary may preserve or discard the distinction needed for Y.
26. 평활 확률과 BrierSmoothed probability and Brier score
한 훈련 칸의 1 질량은 3, 0 질량은 1이고 α=1이다. 예측 확률과 표적 0/1 각각의 Brier 손실을 구하라.
A training cell has success mass three and failure mass one, with α=1. Find its predicted probability and Brier loss for targets zero and one.
풀이와 확인할 이유Solution and explanation
예측은 (3+1)/(3+1+2)=2/3입니다. 표적 0이면 (2/3)²=4/9, 표적 1이면 (2/3−1)²=1/9입니다. 이 장의 Brier에는 1/2을 붙이지 않습니다. 앞 인공지능 장의 반 제곱손실과 배율을 혼동하지 마세요.
The prediction is (3+1)/(3+1+2)=2/3. Loss is 4/9 for target zero and 1/9 for target one. Our Brier definition has no factor one-half; distinguish it from the earlier AI half-squared loss.
27. 보지 못한 조합의 기준선Fallback for an unseen combination
전체 훈련에서 1은 6, 0은 2이고 α=1이다. 선택 특징의 새로운 조합이 들어오면 이 장의 모형은 어떤 확률을 주는가? 새 조합의 참 확률이라고 말할 수 있는가?
Training has six successes and two failures, α=1. What probability does our model assign an unseen selected-feature combination? Is it the true probability for that combination?
풀이와 확인할 이유Solution and explanation
전체 훈련의 평활 확률 (6+1)/(8+2)=7/10을 사용합니다. 보지 못한 칸에 원래 관측이 생긴 것이 아니라 미리 선언한 대체 예측입니다. 그 조합의 모집단 조건부 확률을 알아낸 것으로 해석하지 않습니다.
It uses the smoothed global probability (6+1)/(8+2)=7/10. This is a predeclared fallback, not newly observed evidence in the unseen cell or knowledge of its true conditional probability.
28. XOR 부분집합의 정확한 비교An exact XOR subset comparison
XOR 네 행을 각각 훈련과 검증에 한 번씩 두고 α=1로 계산한다. 빈 특징, X₁만, 두 특징 모형의 검증 Brier를 구하라.
Place each XOR row once in training and once in validation, with α=1. Find validation Brier for the empty subset, X₁ alone and both features.
풀이와 확인할 이유Solution and explanation
빈 특징은 전체 성공·실패가 2씩이라 확률 1/2이고 Brier 1/4입니다. X₁의 각 칸도 성공·실패가 1씩이라 확률 1/2이고 Brier 1/4입니다. 두 특징의 각 칸은 관측 한 개라 정답 클래스 확률이 2/3입니다. 각 오차 제곱은 1/9이므로 평균도 1/9입니다. 전수 후보 중 이 검증 기준은 두 특징을 고릅니다.
The empty model has two successes and failures, predicting one-half with Brier 1/4. Each X₁ cell is also balanced, giving 1/4. Joint cells contain one observation, so correct-class probability is 2/3 and each validation loss is 1/9. The declared validation criterion selects both features.
29. 동률과 검증 미정의Ties and undefined validation
후보 순서가 [X₂],[X₁],빈 특징이고 검증 Brier가 모두 1/4이다. 어느 후보를 고르는가? 검증의 모든 표적이 결측이면 어떤 의미가 달라지는가?
Candidates are ordered [X₂],[X₁],empty, with validation Brier 1/4 for each. Which is selected? What changes if all validation targets are missing?
풀이와 확인할 이유Solution and explanation
정확한 동률에서는 먼저 선언된 [X₂]를 유지합니다. 이는 모집단에서 X₂가 더 낫다는 정리가 아니라 재현 가능한 동률 규칙입니다. 검증 표적이 모두 결측이면 점수가 정의되지 않아 역시 첫 후보를 남기지만, 선택 미정의를 표시해야 합니다. 두 경우의 숫자 인덱스가 같아도 근거는 다릅니다.
An exact tie retains the first declared [X₂], a reproducible convention rather than evidence it is better in the population. If all validation targets are missing, no validation score is defined. The first candidate remains, but selection is explicitly undefined. The same index can have different justification.
30. 좋아 보이는 결측 제외Apparently better scores after changing coverage
후보 A는 시험 100명에서 Brier 0.20, 후보 B는 어려운 60명을 결측으로 제외한 40명에서 0.10이다. B가 더 좋다고 바로 결론내려도 되는가?
Candidate A scores Brier 0.20 on 100 test people; B scores 0.10 after excluding 60 difficult people as missing. Can you immediately conclude B is better?
풀이와 확인할 이유Solution and explanation
아닙니다. 서로 다른 사람을 평균했으므로 점수 차이에 모형 차이와 평가 대상 차이가 섞여 있습니다. 공통 관측 프레임에서 두 후보를 비교하고, 제외된 사람의 수와 특성을 별도로 밝혀야 합니다. 공통 프레임도 원래 모집단 전체를 대표한다는 보장은 없습니다. 결측의 원인과 실제 배포의 적용 범위도 검토해야 합니다.
No. Different evaluation populations mix model differences with coverage differences. Compare on a common observed frame and report exclusions separately. Even that common frame may not represent the intended population; examine missingness and deployment coverage.
31. 정보는 있지만 쓰지 않는 특징Informative but unused
X₂=X₁=Y인 공정 비트 표에서 고정 모형 f가 X₁만 사용한다. X₂의 상호정보량과 X₂ 단독 순열 중요도는 각각 얼마인가?
For fair X₂=X₁=Y, a frozen predictor uses only X₁. Find information in X₂ and its individual permutation importance.
풀이와 확인할 이유Solution and explanation
I(X₂;Y)=1비트입니다. 그러나 X₂를 바꾸어도 f의 입력으로 쓰는 X₁은 그대로라 모든 예측과 손실이 같습니다. 순열 중요도는 정확히 0입니다. 표본 연관과 특정 모형의 의존은 다른 양입니다.
I(X₂;Y)=1 bit. Altering X₂ leaves the used X₁ unchanged, so all predictions and losses agree and permutation importance is exactly zero. Association and model reliance differ.
32. 반이 붙지 않는 BrierBrier without a one-half factor
두 동일 질량 시험 행의 예측이 1/4,3/4이고 정답은 0,1이다. Brier 평균은 얼마인가?
Two equal-weight test predictions are 1/4 and 3/4 with targets zero and one. Find mean Brier loss.
풀이와 확인할 이유Solution and explanation
각 손실은 (1/4)²=1/16과 (3/4−1)²=1/16입니다. 평균도 1/16입니다. 1/2을 추가로 곱해 1/32로 만들지 않습니다. 이 장의 점수 정의와 반 제곱손실을 구별합니다.
Both squared errors equal 1/16, so their mean is 1/16. Do not multiply by an extra one-half to obtain 1/32. Brier and half-squared loss use different conventions.
33. 양의 순열 중요도Positive permutation importance
시험 x=0,1의 정답도 0,1이고 고정 모형 f(x)=x이다. 두 특징 값을 서로 바꾸었을 때 중요도를 구하라.
Test inputs and targets are zero and one, with frozen f(x)=x. Swap the feature values and find importance.
풀이와 확인할 이유Solution and explanation
원래 두 손실은 0입니다. 바꾼 뒤 예측은 1,0이어서 두 손실은 모두 1입니다. 평균 Brier가 0에서 1로 올라 중요도는 1입니다. 바뀐 자료로 모형을 다시 학습하지 않았다는 조건입니다.
Original losses are zero. After swapping, predictions are one and zero, giving loss one on both rows. Mean Brier rises from zero to one, so importance is one. The model is not refitted after alteration.
34. 음의 순열 중요도Negative permutation importance
같은 시험 x=0,1과 y=0,1에 고정 모형 f(x)=1−x를 쓴다. 값을 바꾸었을 때 중요도를 구하고 0으로 지워도 되는지 판단하라.
Use frozen f(x)=1−x on the same test inputs/targets zero and one. Find swapped importance and assess clamping it to zero.
풀이와 확인할 이유Solution and explanation
원래 예측은 1,0으로 Brier 1입니다. 서로 바꾸면 예측이 0,1이 되어 Brier 0입니다. 중요도는 0−1=−1입니다. 음수는 이 모형·평가 틀·일정에서 성능이 좋아졌다는 결과이므로 숨기지 않습니다. 보편적인 인과 해로움으로 확대하지도 않습니다.
Original predictions one and zero give Brier one. Swapping yields correct predictions zero and one, giving Brier zero. Importance is −1. Preserve the improvement for this model, frame and schedule, without turning it into universal causal harm.
35. 같은 두 순환 일정Two identical cyclic schedules
시험 행 수 n=3에서 shift 1과 floor(n/2)의 donor 일정을 각각 쓰라. 결과가 같으면 두 번의 독립 무작위 반복이라고 셀 수 있는가?
For n=3 test rows, write donor schedules for shift one and floor(n/2). If results agree, are these two independent random repetitions?
풀이와 확인할 이유Solution and explanation
floor(3/2)=1이므로 두 일정 모두 [1,2,0]입니다. 같은 고정 입력을 두 번 계산한 것이며 독립 무작위 추출이 아닙니다. 결과가 일치해도 표본 불확실성이 작아졌다는 증거로 세지 않습니다. 공개된 일정의 중복을 그대로 밝힙니다.
Both shifts equal one and give [1,2,0]. These are identical fixed inputs, not independent random draws. Agreement does not establish reduced sampling uncertainty; disclose the duplicate schedules.
36. 단독 순열과 묶음 순열Single versus grouped permutation
훈련 칸 00은 y=0, 11은 y=1이고 α=0인 두 특징 모형이다. 보지 못한 01/10은 전체 확률 1/2을 쓴다. 같은 두 시험 행에서 X₁만 교환한 중요도와 두 특징을 함께 교환한 중요도를 구하라.
Train on cells 00→0 and 11→1 with α=0; unseen cells 01/10 fall back to global probability 1/2. On matching test rows, compare swapping only X₁ with swapping both features.
풀이와 확인할 이유Solution and explanation
원래 Brier는 0입니다. X₁만 바꾸면 두 행이 10/01이 되어 예측 1/2, 각 손실 1/4이므로 중요도 1/4입니다. 두 특징을 함께 바꾸면 11/00이 되어 정답과 반대 확률 1/0을 예측하고 중요도는 1입니다. 단독과 묶음은 다른 가상 입력 실험이며 중요도의 합 규칙을 가정할 수 없습니다.
Original Brier is zero. Swapping only X₁ creates unseen 10/01, predicting one-half with loss 1/4, so importance is 1/4. Swapping both creates 11/00 with opposite predictions one/zero, giving importance one. These are different hybrid-input experiments; no additive importance rule follows.
37. 선형 기준값 분해A linear baseline decomposition
고정 점수 f(x)=100+2x₁−x₂, 기준 z=(10,4), 현재 x=(12,3)이다. 기준 점수, 두 기여, 현재 점수를 구하라. 이 기여가 인과효과인가?
For frozen score f(x)=100+2 x₁−x₂, baseline z=(10,4), focal x=(12,3), find baseline, contributions and focal score. Are these causal effects?
풀이와 확인할 이유Solution and explanation
기준은 100+20−4=116입니다. 첫 기여는 2×(12−10)=4, 둘째는 −1×(3−4)=1입니다. 합치면 116+4+1=121이고 직접 계산한 100+24−3과 같습니다. 고정 모형의 대수 분해이며 계수의 인과 식별 조건 없이 실제 개입 효과라고 부를 수 없습니다.
Baseline is 116. Contributions are 2(12−10)=4 and −(3−4)=1, yielding 116+4+1=121. This is an algebraic decomposition of a fixed score, not identified intervention effects without causal assumptions.
v(∅)=v({1})=v({2})=1/2, v({1,2})=1/3이다. 두 Shapley 값을 구하고 효율성을 확인하라.
For v(∅)=v({1})=v({2})=1/2 and v({1,2})=1/3, find both Shapley values and check efficiency.
풀이와 확인할 이유Solution and explanation
특징 1은 먼저 들어오면 0, 나중에 들어오면 1/3−1/2=−1/6을 더합니다. 두 순서를 평균해 −1/12입니다. 특징 2도 같습니다. 총 기여 −1/6은 v(F)−v(∅)와 같고, 기준 1/2에 더하면 현재 1/3을 복원합니다.
Feature one adds zero when first and −1/6 when second. Averaging yields −1/12, as for feature two. Their sum −1/6 equals v(F)−v(∅), restoring prediction 1/3 from baseline 1/2.
39. 쓰지 않는 특징의 기여A dummy feature contribution
고정 모형 f(x₁,x₂)=x₁, 배경은 00과11을 같은 질량으로 사용하고 현재 입력은11이다. 두 특징의 유한 배경 Shapley 값을 구하라.
Let f(x₁,x₂)=x₁, with equal-weight background 00/11 and focal 11. Find finite-background Shapley values.
풀이와 확인할 이유Solution and explanation
v(∅)=1/2, v({1})=1, v({2})=1/2, v({1,2})=1입니다. 특징 1의 증가분은 어느 순서에서도 1/2이고 특징 2는 0입니다. 따라서 기여는 (1/2,0)입니다. 배경에서 두 특징이 함께 움직여도 선언된 주변 대입 게임과 고정 모형에서는 사용하지 않는 두 번째 특징이 더미입니다.
The coalition values are 1/2,1,1/2,1 for empty, first, second, both. Feature one adds one-half in either order and feature two adds zero, giving (1/2,0). Background correlation does not change the unused feature’s dummy role in this declared interventional game.
40. 배경 정답과 배경 예측Background targets versus predictions
배경 두 행의 실제 표적은 모두1이지만 고정 모형 예측은 1/5,2/5이다. 유한 배경 게임의 기준값은 1인가? 현재 예측 7/10에 대한 기여 합은 얼마인가?
Both background targets are one, but frozen predictions are 1/5 and 2/5. Is the game baseline one? For focal prediction 7/10, what must contributions sum to?
풀이와 확인할 이유Solution and explanation
기준은 정답 평균이 아니라 모형 예측 평균 (1/5+2/5)/2=3/10입니다. 따라서 기여 합은 7/10−3/10=2/5입니다. 모형이 배경 정답을 잘 맞히거나 보정되었다는 가정은 별도로 필요하며, Shapley의 합 검산이 그 성능을 보장하지 않습니다.
The baseline is mean model prediction, (1/5+2/5)/2=3/10, not mean target. Contributions sum to 7/10−3/10=2/5. Calibration and predictive accuracy require separate evidence; the efficiency identity does not establish them.
41. 주변 게임과 조건부 게임Interventional and conditional games
f(x)=x₁, X₂=X₁인 공정 비트, 현재11에서 주변 게임은 (1/2,0)의 기여를 준다. 조건부 게임의 두 단일 연합 가치를 구하고 기여를 비교하라.
For f(x)=x₁, fair X₂=X₁ and focal 11, the interventional game gives contributions (1/2,0). Find singleton values and contributions in the conditional game.
풀이와 확인할 이유Solution and explanation
조건부로 X₁=1이면 f=1이고 X₂=1이어도 X₁=1을 알므로 f=1입니다. 따라서 v∅=1/2, v1=v2=v12=1입니다. 각 특징은 먼저 올 때 1/2, 나중에는 0을 더하므로 기여가 1/4씩입니다. 다른 게임이므로 주변 값과 다르며 인과효과를 확인한 것은 아닙니다.
Conditioning on either feature equal to one reveals X₁=1, so both singleton values are one. With baseline 1/2 and full value 1, each contribution averages an initial 1/2 increment and later zero, giving 1/4. Different games need not agree, and neither calculation identifies causation.
42. 지역 기여 0의 역해석The converse of a zero local contribution
선택 모형이 나이를 사용하지만 현재와 모든 배경 행의 나이 범주가 같다. 이 게임의 나이 기여가 0이면 전역 순열 중요도도 반드시 0인가?
A fitted model uses age, but the focal row and every background row share the same age category. Does zero age contribution in this game force zero global permutation importance?
풀이와 확인할 이유Solution and explanation
아닙니다. 어느 연합에서나 나이 대입 전후의 입력이 같아 지역 증가분이 0입니다. 전역 시험 행에는 다른 나이 범주가 있고 순열로 그것을 바꾸면 예측이 달라질 수 있습니다. 실제 개인 사례의 32배경과 나이 범주가 바로 이 구분을 보여 줍니다.
No. Adding age changes no hybrid input in this particular background game, so local increments vanish. Other test rows can have different ages, and global permutation can change predictions. The actual person example illustrates this distinction.
43. 후보를 더 보면 검증 최소는What adding candidates does to the validation minimum
같은 검증 자료에서 후보를 3개에서4개로 늘렸다. 가장 낮은 관측 검증 손실은 증가할 수 있는가? 새 자료 위험도 반드시 감소하는가?
Add a fourth candidate to three on the same validation data. Can the observed minimum increase? Must new-data risk fall?
풀이와 확인할 이유Solution and explanation
기존 세 후보를 유지하면 최소값은 증가하지 않습니다. 새 후보가 더 좋지 않으면 그대로입니다. 그러나 표본 잡음으로 낮게 보인 후보가 선택될 수 있어 새 자료의 위험은 높아질 수 있습니다. 관측 최소값의 단조성과 일반화 개선은 다른 주장입니다.
Keeping the original candidates means the minimum cannot increase. It stays unchanged if the new candidate is worse. But a noisy apparent winner can have higher new-data risk. Monotonicity of the observed minimum does not imply improved generalization.
44. 절대연속성의 실패Failure of absolute continuity
Q가 어떤 집합 A에 확률0, P가 그 집합에1/10을 준다. P≪Q인가? 이 장의 KL 확장값은 무엇인가?
Q assigns set A probability zero while P assigns 1/10. Is P absolutely continuous with respect to Q, and what is extended KL?
풀이와 확인할 이유Solution and explanation
Q의 영집합에 P가 양의 질량을 주므로 P≪Q가 아닙니다. 확장된 KL은 +∞입니다. 유한 표에서는 qᵢ=0인데 pᵢ>0인 칸과 같은 지원집합 실패입니다. 작은 상수로 Q를 바꾸면 원래의 비교가 아니라 새 모형의 비교입니다.
Absolute continuity fails because a Q-null set has positive P mass. Extended KL is +∞, the analogue of a positive-P/zero-Q cell. Replacing Q with an epsilon-smoothed model changes the comparison.
45. 무한값끼리 빼기Subtracting infinite quantities
연속형 교차 엔트로피와 미분 엔트로피가 각각 +∞라고 보고되었다. 두 값을 빼 KL=0이라고 결론내릴 수 있는가?
Continuous cross-entropy and differential entropy are both reported as +∞. May their subtraction establish KL=0?
풀이와 확인할 이유Solution and explanation
아닙니다. ∞−∞는 정의된 산술값이 아닙니다. 밀도 비의 로그를 적절한 측도로 적분하는 KL 정의와 지원집합·적분 조건을 직접 확인해야 합니다. 유한 지원집합에서 안전했던 유한값 항등식을 조건 없이 확장한 오류입니다.
No. Infinity minus infinity is undefined. Check KL directly through its log density-ratio definition, support and integrability. A finite-alphabet identity cannot be extended without its conditions.
46. 최적 확률과 최소 BrierThe optimal probability and minimum Brier
참 조건부 확률 p=3/4이다. q=1/2와 q=3/4의 조건부 기대 Brier를 계산하라.
True conditional probability is p=3/4. Compute expected Brier for q=1/2 and q=3/4.
풀이와 확인할 이유Solution and explanation
기대 손실은 p(1−p)+(q−p)²입니다. p(1−p)=3/16입니다. q=1/2이면 1/16이 더해져 1/4, q=p이면 3/16입니다. 참 확률에서도 결과의 잡음 때문에 기대 손실이 0일 필요는 없습니다.
Expected loss is p(1−p)+(q−p)². The irreducible term is 3/16. Predicting 1/2 adds 1/16, giving 1/4; predicting 3/4 gives 3/16. Even a true probability need not yield zero expected loss.
47. 비용 임계값A cost threshold
거짓 양성 비용은1, 거짓 음성 비용은4이고 그 외 비용은0이다. 양성 행동의 확률 임계값을 구하고 p=0.3에서 행동을 고르라.
False-positive cost is one, false-negative cost four, other costs zero. Find the positive-action threshold and choose an action at p=0.3.
풀이와 확인할 이유Solution and explanation
양성 행동 비용은 1−p, 음성 행동 비용은 4p입니다. 1−p<4p이면 p>1/5입니다. p=0.3에서는 0.7<1.2이므로 양성 행동을 고릅니다. 이 결론은 주어진 비용과 정확한 확률에 대한 결정이며 이탈을 줄이는 처치 효과를 식별한 것이 아닙니다.
Positive action costs 1−p and negative action 4 p. Positive is better when p>1/5. At 0.3, costs are 0.7 and 1.2, so choose positive. This decision uses the stated costs and probabilities; it does not identify a treatment’s effect on churn.
48. 유한 잠재변수의 사후확률A finite latent posterior
관측 x와 잠재 z의 결합 질량이 z=0에서1/5, z=1에서3/10이다. p(x)와 두 사후확률을 구하라.
Joint masses for observed x are 1/5 at z=0 and 3/10 at z=1. Find evidence p(x) and the two posterior probabilities.
풀이와 확인할 이유Solution and explanation
관측 확률은 1/5+3/10=1/2입니다. 사후확률은 결합 질량을 1/2로 나눈 (2/5,3/5)입니다. 결합 질량의 합은 전체 x,z 공간의1이 아니라 이 관측 x에 해당하는 증거이므로 정규화 분모를 구별해야 합니다.
Evidence is 1/5+3/10=1/2. Dividing each joint mass by it gives posterior(2/5,3/5). These masses cover this observed x, not the entire joint space, so identify the correct normalization denominator.
49. ELBO의 간극The ELBO gap
앞 문제에 q(z|x)=(1/2,1/2)를 사용한다. ELBO와 log p(x)의 차이를 KL로 표현하고 부호를 확인하라.
Use q=(1/2,1/2) in the previous problem. Express the gap between log evidence and ELBO as KL and determine its sign.
풀이와 확인할 이유Solution and explanation
ELBO는 (1/2)ln((1/5)/(1/2))+(1/2)ln((3/10)/(1/2))=(1/2)ln(6/25)입니다. log p(x)=ln(1/2)입니다. 차이는 (1/2)ln(25/24)>0입니다.
이는 KL((1/2,1/2)∥(2/5,3/5))=(1/2)ln(5/4)+(1/2)ln(5/6)와 같습니다. 모두 양의 유한 질량이어서 이 예의 항등식은 잘 정의됩니다.
ELBO is(1/2)ln(2/5)+(1/2)ln(3/5)=(1/2)ln(6/25). Log evidence is ln(1/2), leaving positive gap(1/2)ln(25/24).
This equals KL((1/2,1/2)∥(2/5,3/5)). Every mass is positive and finite, so the identity is well-defined here.
50. 합이 맞아도 예측은 틀릴 수 있다An efficient explanation can explain a wrong prediction
배경 기준0.2, 기여0.3과0.1이 더해 현재 예측0.6을 정확히 복원한다. 실제 표적이0이면 Brier는 얼마이며 효율성 잔차0이 좋은 성능의 증거인가?
Baseline 0.2 and contributions 0.3/0.1 exactly reconstruct prediction 0.6. If target is zero, find Brier and assess whether zero efficiency residual proves good performance.
풀이와 확인할 이유Solution and explanation
Brier는 (0.6−0)²=0.36입니다. 기여 합의 잔차0은 설명 게임의 대수적 복원을 확인할 뿐 예측 정답, 보정, 인과성, 배경의 적합성을 보장하지 않습니다. 틀린 예측도 정확한 합 분해를 가질 수 있습니다.
Brier is 0.36. Zero residual verifies the game’s algebraic reconstruction, not accuracy, calibration, causality or background adequacy. A wrong prediction can have an efficient explanation.
51. 64개의 기록과 16개의 국가64 records versus 16 countries
국가 네 지표씩 64기록을 결합했다. 국가 수와 특징 벡터 수는? 원 지표 표와 결합표를 합쳐 표본 수80이라고 해도 되는가?
Join 64 records containing four indicators per country. How many countries/vectors are there? May adding native and joined rows give sample size 80?
풀이와 확인할 이유Solution and explanation
64/4=16개 국가이고 16개 벡터입니다. 원표와 파생표가 같은 관측을 다른 모양으로 표현하므로 합해 80개 독립 관측이라고 셀 수 없습니다. 실제 평가 단위와 원기록의 수를 따로 보고합니다.
There are 16 countries and 16 vectors. Native and joined tables represent the same observations differently;adding them does not create 80 independent observations. Report evaluation units separately from source-record counts.
52. 국가 두 칸 확률과 시험 BrierCountry cell probabilities and test Brier
국가 훈련 GDP 상위 칸은 4개 중 기대수명 양성3, 하위 칸은5개 중0이다. α=1에서 예측을 구하고, 시험 상위 양성2개·하위 음성1개의 Brier를 구하라.
The high-GDP training cell has three positives of four, and the low cell zero of five. With α=1,find probabilities and Brier on two high-positive test countries and one low-negative country.
풀이와 확인할 이유Solution and explanation
상위는 (3+1)/(4+2)=2/3, 하위는 (0+1)/(5+2)=1/7입니다. 시험 손실은 1/9,1/9,1/49이므로 평균 (2/9+1/49)/3=107/1323입니다. 세 국가에서의 예측 평가이며 GDP 변화의 인과효과가 아닙니다.
Probabilities are 2/3 and 1/7. Test losses are 1/9,1/9 and 1/49,averaging 107/1323. This evaluates predictions on three countries, not a causal GDP effect.
53. 제외 행과 평가 분모Excluded rows and the evaluation denominator
NLS 원자료3613명 중596명이 공통 필요 관측 조건에서 제외되었다. 분석 인원과 역할별1819/594/604의 합을 확인하라. 제외된 임금을0으로 넣어도 되는가?
Of 3613 native NLS people,596 fail common required-observation conditions. Verify eligible count and role sum 1819/594/604. May missing wages be replaced by zero?
풀이와 확인할 이유Solution and explanation
3613−596=3017이고 1819+594+604=3017입니다. 제외 행은 보존하지만 관측되지 않은 임금을 0으로 바꾸면 표적과 자료 생성 의미가 달라집니다. 공통 평가 분모와 제외 수를 함께 보고해야 합니다.
Eligibility is 3017,and role counts sum to 3017. Preserve excluded rows, but replacing missing wages with zero changes target meaning. Report the common denominator and exclusions together.
54. 원행5와 원ID6Source row 5 and native ID 6
원자료5행·원ID6의 교육12년·나이34세·nearc4=1·임금729센트를 이 장의 규칙으로 바꾸고, 선택 확률15/22의 Brier를 구하라.
Transform source row 5,native ID 6:schooling 12,age 34,nearc4=1,wage 729 cents. Find its Brier under prediction 15/22.
풀이와 확인할 이유Solution and explanation
특징은 [1,1,1]이고 임금729≥500이므로 표적1입니다. 729센트는 명목 시급7.29달러이며 현재 가치로 바꾼 실질액이 아닙니다. Brier=(15/22−1)²=49/484입니다. 원행 번호와 원ID를 동일하게 쓰지 않습니다.
Features are[1,1,1]and target one. Native 729 cents equals nominal 7.29 USD/hour, not a current real-wage value. Brier=(15/22−1)²=49/484. Source position and native ID remain distinct.
55. 실제 배경의 나이 좌표Age in the actual explanation background
첫 개인 시험 행과32배경 행의 나이 이진값이 모두1이다. 전체 연합에서 나이를 추가할 때 가상 입력은 어떻게 변하는가? 지역기여0이 전역 미사용을 뜻하는가?
The focal person and all 32 background rows have age bin one. What changes when age is added to a coalition? Does local contribution zero imply the model never uses age?
풀이와 확인할 이유Solution and explanation
대입 전에도 배경 나이가1이고 대입 뒤에도 현재 나이가1이므로 어떤 가상 입력도 변하지 않습니다. 모든 연합의 증가분이0이어서 지역 Shapley도0입니다. 다른 나이 범주를 가진 시험 행의 예측은 바뀔 수 있으므로 전역 미사용이나 무관의 증거가 아닙니다.
Background and focal age are both one, so adding age changes no hybrid input and every marginal increment is zero. Other test-age categories can affect predictions. This is not evidence of global nonuse or irrelevance.
56. 99.8퍼센트의 함정The 99.8 percent accuracy trap
기업 검증630행 중 이탈 양성이1행이다. 모두 비이탈이라고 분류하면 정확도는? 이것만으로 확률 예측이나 새 고객 성능이 좋다고 결론내릴 수 있는가?
Company validation has one positive among 630 rows. What accuracy does always predicting non-churn achieve? Does this prove good probabilities or new-customer performance?
풀이와 확인할 이유Solution and explanation
정확도는629/630≈99.8413%입니다. 양성을 전혀 찾지 못해도 얻는 수치입니다. 확률의 Brier·보정·양성 탐지·실제 적용 집단을 별도로 확인해야 합니다. 고정 원행 분할로 생긴 희소 검증을 대표 표본이라고 부를 수 없습니다.
Accuracy is 629/630≈99.8413 percent, despite detecting no positives. Inspect probability scores, calibration, positive detection and the deployment population separately. This sparse source-position split is not a representative-sample certificate.
57. 불만만 쓰는 기업 모형A company model using complaints alone
선택 기업 모형이 불만 특징만 쓴다. 다른 세 특징의 단독 순열 중요도는 얼마여야 하는가? 그 특징의 경험 정보량이 양수이면 모순인가?
The selected company model uses only complaints. What must the other three individual permutation importances be? Is positive empirical information a contradiction?
풀이와 확인할 이유Solution and explanation
그 세 열을 바꾸어도 모형이 읽는 불만 칸이 같아 예측·손실이 그대로이므로 중요도는 정확히0입니다. 경험 정보량은 자료의 표적 연관이고 순열 중요도는 특정 모형 의존이므로 모순이 아닙니다. 선택 후보 밖의 다른 모형은 그 특징을 사용할 수도 있습니다.
They must be exactly zero because the used complaints value, predictions and losses stay fixed. Empirical information concerns association;permutation concerns this model. Another model could use those predictors.
국가 두 일정이 같고 GDP 특징 중요도가 모두22/63이다. 평균은 얼마인가? 두 결과의 차이가0이면 통계 불확실성도0인가?
Identical country schedules each give GDP importance 22/63. Find their mean. Does zero between-schedule difference mean zero statistical uncertainty?
풀이와 확인할 이유Solution and explanation
평균은(22/63+22/63)/2=22/63입니다. 같은 입력의 반복이므로 차이가0인 것은 당연할 수 있습니다. 표본 추출이나 무작위 순열 법칙의 불확실성을 측정한 것이 아니므로 신뢰구간0폭이나 모집단 확실성으로 해석하지 않습니다.
The mean remains 22/63. Equal fixed inputs can naturally give equal results. This does not measure sampling or randomized-permutation uncertainty and cannot justify a zero-width population interval.
59. 국가 설명의 효율성Efficiency of the country explanation
독일 시험 관측의 예측은2/3, 배경 기준은71/189이다. GDP만 쓰는 모형의 세 특징 기여 합과 GDP 기여를 구하라.
The German focal prediction is 2/3 and baseline 71/189. A model uses GDP alone. Find total and GDP contributions across three features.
풀이와 확인할 이유Solution and explanation
2/3=126/189이므로 차이는55/189입니다. 나머지 두 특징은 미사용 더미여서0이고 GDP 기여가55/189입니다. 기준71/189에 더하면126/189=2/3이 복원됩니다. 이는 고정 분류 확률 게임의 기여이며 기대수명 연수나 GDP의 인과효과가 아닙니다.
The difference is 126/189−71/189=55/189. The unused features contribute zero, so GDP contributes 55/189. Adding it restores 2/3. These are probability-game contributions, not years of life or a causal GDP effect.
60. 재현 보고서의 네 층Four layers of a reproduction report
원자료 코드10인7행, 만든 이진 특징, 검증이 고른 불만 모형, 불만 정책의 이탈 효과를 한 문장으로 같은 사실처럼 쓰면 무엇이 문제인가? 네 층으로 나누어 쓰라.
Why is it wrong to conflate seven raw code 10 rows, binary engineered predictors, a complaints-selected model and a complaints policy’s causal churn effect? Separate four layers.
풀이와 확인할 이유Solution and explanation
첫째 원자료 층에서는 실제 코드10인7행과 원필드를 보존합니다. 둘째 설계 층에서는 청구 코드를 사용하지 않는 이진 특징과 역할 규칙을 밝힙니다. 셋째 예측 층에서는 선언된 검증 Brier가 불만 모형을 고른 결과와 시험 성능·분모를 보고합니다.
넷째 인과 층에서는 불만 정책의 반사실 효과는 여기서 식별되지 않았음을 적고 필요한 처치·대조·교란 설계를 제안합니다. 원 토큰·만든 규칙·모형 실험·정책 효과는 서로 다른 주장입니다.
First preserve the seven raw code 10 rows and native fields. Second state engineered binary features and roles, including that charge code is unused. Third report complaints-model selection by validation Brier and its test score/coverage.
Fourth identify the policy’s counterfactual effect as unestimated here, and specify a treatment/control/confounding design. Native tokens, engineering rules, predictive experiments and policy effects are different claims.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.