불균형·비용·임계값·집단별 성능Imbalance, costs, thresholds and group performance
여섯 카드의 오류 장부에서 실제 검증 임계값·확률 보정·집단별 점검까지From six-card error ledgers to actual validation thresholds, reliability and group audits
실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions
기초Foundations
99점을 받았는데 중요한 문제는 모두 틀렸다면A score of 99 that misses every important case
학교 도서관에서 반납이 늦어질 책을 미리 알려 주는 장치를 만든다고 생각해 봅시다. 100권 중 실제 연체가 1권뿐일 때, 모든 책을 “제때 돌아온다”고 답해도 정확도는 99%입니다. 그러나 연체를 찾아 연락하려던 목적에는 아무 도움도 주지 못합니다. 정확도가 잘못 계산된 것이 아니라, 정확도 하나가 우리의 질문을 다 담지 못한 것입니다.
먼저 무엇을 양성이라고 부를지 적어야 합니다. 양성은 좋은 결과라는 뜻이 아니라 관심 표적 Y=1의 이름입니다. 이탈, 질병, 긴 기대수명, 높은 임금처럼 서로 다른 결과가 양성일 수 있습니다. 표적의 방향을 바꾸면 양성 재현율과 음성 재현율의 역할도 바뀝니다.
이 장은 결과를 안 뒤의 채점, 확률 점수, 행동을 정하는 임계값, 행동 오류의 비용을 차례로 구분합니다. 마지막에는 실제 국가·개인·기업 자료의 같은 예측을 서로 다른 가정으로 다시 읽습니다. 작은 집단의 100%라는 숫자 옆에도 몇 행을 세었는지 남기겠습니다.
Imagine a library tool predicting late returns. If just one of one hundred books is late, predicting every book will arrive on time achieves 99% accuracy. It finds none of the cases that motivated the tool. Accuracy was calculated correctly; that single number did not answer the whole operational question.
First declare the positive outcome. Positive means target Y equals one, not a desirable result. Churn, illness, long life expectancy or high wages can each be designated positive. Reversing this definition exchanges the roles of positive and negative recall.
We separate assessment after outcomes are observed, probability scores, action thresholds and assumed costs of action errors. Actual country, person and company observations let us inspect the same scores under different questions. Every percentage, including a small group’s 100%, keeps its denominator.
기초Foundations
여섯 장의 카드로 계산 시작하기Start calculating with six cards
다음 여섯 카드는 원자료가 아니라 계산을 끝까지 따라가기 위한 구성 예입니다. 점수 p가 클수록 양성 가능성을 높게 평가한 것입니다. b와 c의 점수는 모두 0.8이므로 같은 임계값 규칙은 두 카드를 함께 선택해야 합니다. 정답을 보고 그중 양성만 먼저 선택하면 가능한 모형 성능보다 좋은 곡선을 만들어 버립니다.
구성한 여섯 카드 · 모두 질량 1
ID
점수 p
관측 Y
예시 집단
a
0.9
1
A
b
0.8
1
A
c
0.8
0
A
d
0.6
0
B
e
0.4
1
B
f
0.1
0
B
점수는 아직 행동이 아닙니다. p≥0.8이면 연락한다고 정할 때 a,b,c를 선택합니다. 실제 양성 a,b,e 가운데 e를 놓치고, 실제 음성 c,d,f 가운데 c에게 잘못 연락합니다. 이처럼 점수·기준·정답을 각기 적어야 오류 종류가 보입니다.
이 장의 포함 규칙은 “이상”입니다. 따라서 점수가 임계값과 같으면 양성 행동입니다. 늘 음성·늘 양성이라는 정책도 별도 이름으로 표시합니다. 임계값 1만으로 늘 음성이라고 하면 점수 1인 행을 잘못 처리하므로 두 정책을 구분합니다.
These six cards are constructed for a complete calculation, not empirical source observations. Larger p ranks a card higher. Cards b and c tie at 0.8, so one score-threshold rule must select them together. Choosing the positive card first after observing its label would create an unattainably favorable curve.
Six constructed cards, each with mass one
ID
Score p
Observed Y
Example group
a
0.9
1
A
b
0.8
1
A
c
0.8
0
A
d
0.6
0
B
e
0.4
1
B
f
0.1
0
B
A score is not an action. Contacting cases with p at least 0.8 selects a, b and c. Among actual positives a, b and e, we miss e; among negatives c, d and f, we unnecessarily contact c. Keep scores, rules and outcomes separate to see both errors.
The comparison is inclusive: equality selects positive. Always-negative and always-positive are explicit policies. Threshold one is not always-negative when a row has score one.
기초Foundations
혼동행렬은 네 종류의 장부다The confusion matrix is a four-cell ledger
혼동행렬은 예측 행동과 실제 정답을 교차한 표입니다. TP는 양성을 양성으로 선택, FP는 음성을 양성으로 선택, FN은 양성을 음성으로 남김, TN은 음성을 음성으로 남김입니다. “진짜”와 “가짜”가 실제 Y의 이름인지 예측의 맞고 틀림인지 섞이지 않도록 처음에는 긴 이름을 함께 읽으세요.
여섯 카드에 임계값 0.8을 적용하면 TP=2, FP=1, FN=1, TN=2입니다. 행이나 열의 위치는 책마다 다르므로 표 제목과 축을 확인해야 합니다. 네 칸의 합은 사용한 총질량이고, 양성 열 합은 실제 양성 질량입니다.
여기서 행동 a는 0 또는 1입니다. 모든 w=1이면 네 칸은 행 수입니다. 다른 질량을 주면 네 칸은 가중 질량이므로 반드시 정수일 필요는 없습니다. 총합 보존을 확인하는 것은 계산 오류를 찾는 가장 빠른 첫 검사입니다.
A confusion matrix crosses actions with observed outcomes. TP selects a positive; FP selects a negative; FN leaves a positive unselected; TN leaves a negative unselected. Initially read the long descriptions with the abbreviations so “true” is not confused with the target’s value.
At threshold 0.8 the six cards give TP two, FP one, FN one and TN two. Books arrange axes differently, so inspect their labels. All four cells sum to eligible mass, while the actual-positive column sums to positive target mass.
Action a is zero or one. Unit masses make the cells row counts. Unequal masses produce weighted cells that need not be integers. Checking conservation of total mass is a quick first check for calculation errors.
기초Foundations
재현율과 정밀도는 다른 사람에게 묻는다Recall and precision ask about different populations
재현율 TPR은 실제 양성 중 얼마나 찾았는지 묻습니다. 분모는 TP+FN입니다. 정밀도 PPV는 선택한 사람 중 실제 양성이 얼마나 되는지 묻습니다. 분모는 TP+FP입니다. 여섯 카드에서는 두 값이 우연히 2/3으로 같지만, 그 이유는 실제 양성 수와 선택 수가 모두 3이기 때문입니다. 두 이름이 같은 뜻인 것은 아닙니다.
FPR은 “연락한 사람 가운데 잘못 연락한 비율”이 아닙니다. 그것은 1−정밀도이고, FPR은 실제 음성 전체 중 잘못 선택한 비율입니다. 예를 들어 실제 양성 10명 중 8명을 찾고 실제 음성 90명 중 9명을 잘못 선택하면 재현율은 80%, FPR은 10%, 정밀도는 8/17≈47.1%입니다.
그 반대 방향의 질문 NPV는 음성 행동 중 실제 음성인 비율 TN/(TN+FN)입니다. “음성이라 들었으니 안전하다”는 해석에도 어떤 표본에서 관찰한 비율인지가 필요합니다. 새 환경의 유병률이나 이탈률이 달라지면 같은 TPR/FPR에서도 PPV와 NPV가 바뀔 수 있습니다.
Recall or TPR asks how many actual positives were found; its denominator is TP plus FN. Precision or PPV asks how many selected cases are positive; its denominator is TP plus FP. Both equal two thirds for our cards only because actual-positive and selected-positive masses both happen to be three.
FPR does not mean the fraction of selected cases that are wrong. That is one minus precision. FPR divides by all actual negatives. Finding eight of ten positives and incorrectly selecting nine of ninety negatives gives recall 80%, FPR 10% and precision 8/17, approximately 47.1%.
NPV asks the reverse-direction question for negative actions: TN divided by TN plus FN. A reassuring negative result still needs its population context. Different prevalence can change PPV and NPV even with the same TPR and FPR.
기초Foundations
정확도·균형 정확도·F1을 목적에 맞게 읽기Read accuracy, balanced accuracy and F1 against the objective
정확도는 맞은 질량을 전체로 나눕니다. 실제 음성이 매우 많으면 음성을 잘 맞힌 결과가 대부분을 차지합니다. 균형 정확도는 양성과 음성의 재현율을 반씩 평균하여 이 영향을 다르게 조정합니다. 이는 원래 행 평균과 다른 채점 규칙을 택한 것이며, 자동으로 사회적 비용을 반영한 것은 아닙니다.
Accuracy=WTP+TN,BA=2TPR+TNR,F1=2TP+FP+FN2TP
F1은 양성 재현율과 정밀도의 조화평균으로 소개되지만 직접 네 칸으로 계산하면 경계도 분명해집니다. TN은 식에 직접 들어가지 않습니다. 여섯 카드에서 정확도·균형 정확도·F1은 모두 2/3이지만, 이 일치는 일반적인 법칙이 아닙니다.
100권 중 양성 1권인 예에서 늘 음성 정책의 정확도는 99/100, TPR은 0, TNR은 1, 균형 정확도는 1/2, F1은 0입니다. 다섯 숫자가 다른 이야기를 한다기보다 같은 장부의 다른 질문을 요약합니다. 한 숫자를 고르기 전에 어떤 오류와 누구의 부담이 중요한지 써 보세요.
Accuracy divides correct mass by total mass. With many negatives, correct negatives dominate it. Balanced accuracy instead gives positive and negative recall equal weights. This changes the scoring objective; it does not automatically encode social costs.
Accuracy=WTP+TN,BA=2TPR+TNR,F1=2TP+FP+FN2TP
F1 is often introduced as the harmonic mean of recall and precision. The direct confusion-cell formula also makes boundary cases clear. TN does not enter it directly. All three scores equal two thirds for the six cards, but this equality is not a general rule.
With one positive book among one hundred, always-negative achieves accuracy 99/100, TPR zero, TNR one, balanced accuracy one half and F1 zero. These numbers summarize different questions about one ledger. Specify whose errors and burdens matter before choosing a summary.
기초Foundations
분모가 0이면 0%라고 말하지 않는다A zero denominator is not a measured rate of zero
아무도 양성으로 선택하지 않았을 때 TP+FP=0입니다. 정밀도는 0/0이므로 정의되지 않습니다. 실제 양성이 하나도 없으면 재현율도 정의되지 않습니다. 이는 계산기 고장이 아니라 질문에 해당하는 관측 대상이 없다는 뜻입니다. 이 장은 미정의를 빈값과 이유로 표시하고 0%로 바꾸지 않습니다.
서로 비슷한 지표도 직접 정의에 따라 경계가 다를 수 있습니다. 실제 양성은 있지만 모두 놓치고 아무도 선택하지 않으면 정밀도는 미정의여도 F1의 직접 분모 2TP+FP+FN은 양수이므로 F1=0입니다. 양성도 선택도 전혀 없으면 F1 자체도 미정의입니다.
사용 가능한 전체 질량 W가 0이면 평균 Brier·정확도·평균 비용은 미정의입니다. 반면 네 칸의 합과 총 오류 비용은 빈 합 0으로 남습니다. 합이 0이라는 사실을 평균 0이라는 말로 옮기지 마세요. 실제 자료에서는 제외 사유와 원행을 남겨 왜 분모가 줄었는지 확인합니다.
If no case is selected, TP plus FP is zero and precision is 0/0, undefined. If no actual positive is present, recall is undefined. This is not a calculator malfunction: the conditioning population is absent. We display the reason instead of substituting zero percent.
Related metrics can have different boundaries. When positives exist but all are missed and nobody is selected, precision is undefined while the direct F1 denominator is positive, giving F1 zero. If there are neither positives nor selections, F1 is also undefined.
When eligible total mass is zero, average Brier, accuracy and mean cost are undefined. Confusion totals and total error cost remain empty sums of zero. A zero total does not establish a zero average. Native rows and exclusion reasons explain changes in denominators.
기초Foundations
점수의 품질과 행동의 품질을 따로 채점하기Score probabilities and actions separately
확률 0.51과 0.99는 임계값 0.5에서 같은 양성 행동을 만듭니다. 그러나 정답이 0이면 두 확률의 Brier 손실은 각각 0.2601과 0.9801로 크게 다릅니다. 행동 장부만으로는 얼마나 강하게 확신했는지 알 수 없습니다. 반대로 확률 점수만으로 연락 비용이나 놓친 사례의 비용을 모두 알 수 없습니다.
Brier=W∑iwi(pi−yi)2,W=i∑wi>0
여섯 카드의 손실은 0.01,0.04,0.64,0.36,0.36,0.01입니다. 합 1.42를 6으로 나눈 71/300≈0.2367이 평균 Brier입니다. 임계값을 0.8에서 0.4로 바꿔도 이 확률들이 그대로라면 Brier는 바뀌지 않습니다. 바뀌는 것은 행동 장부와 그 행동의 비용입니다.
양성 비중 자체를 모든 행의 확률로 제시하는 상수 예측도 유용한 기준선입니다. 여섯 카드의 양성 비중은 1/2이고 상수 Brier는 1/4입니다. 여기의 차이가 새 표본의 우월성을 증명하지는 않지만, 같은 관측에서 얼마나 개선했는지 비교할 기준은 제공합니다.
Scores 0.51 and 0.99 produce the same positive action at threshold 0.5, but against target zero their Brier losses are 0.2601 and 0.9801. The action ledger hides strength of confidence. A probability score alone does not encode all contact or missed-case costs either.
Brier=W∑iwi(pi−yi)2,W=i∑wi>0
The six losses are 0.01, 0.04, 0.64, 0.36, 0.36 and 0.01. Their total 1.42 divided by six gives 71/300, about 0.2367. Changing the threshold from 0.8 to 0.4 leaves Brier unchanged when probability scores stay fixed. Actions and action costs change instead.
A constant forecast equal to prevalence is a useful reference. The six-card prevalence is one half and its constant Brier is one quarter. The observed improvement does not prove superiority on new samples, but supplies a comparison on the same frame.
기초Foundations
실습: 한 칸씩 움직이며 분모를 확인하기Lab: move one threshold and inspect every denominator
먼저 여섯 카드의 점수·정답·질량을 입력하고 임계값 0.8로 계산하세요. TP2·FP1·FN1·TN2와 Brier71/300이 나오는지 확인합니다. 다음 임계값을 0.4로 바꾸기 전에 어느 카드가 새로 선택될지 적으세요. d와 e가 함께 추가되어 TP3·FP2·FN0·TN1이 되어야 합니다.
다음에는 임계값을 다시 0.8로 되돌린 뒤 c의 질량만 2로 바꿉니다. 이는 c와 같은 자료가 모집단에 실제 두 배 있다는 주장이 아니라 가중 채점의 계산 연습입니다. TP2·FP2·FN1·TN2, 총질량7, 정밀도1/2·재현율2/3이 됩니다. 정밀도와 재현율이 갈라지는 이유를 분모로 설명하세요.
마지막으로 늘 음성 정책과 빈 자료를 각각 계산합니다. 미정의 정밀도와 전체 평균의 미정의를 구분하세요. 잘못된 음수 질량을 넣었을 때는 결과표를 신뢰하지 말고 입력 오류를 먼저 고칩니다. 언어를 바꾸어도 입력한 카드와 정책이 같은지 대조하며 실습 기록에는 입력·분모·결론을 함께 남깁니다.
Enter the six cards at unit mass and threshold 0.8. Confirm TP two, FP one, FN one, TN two and Brier 71/300. Before lowering the threshold to 0.4, predict the entering cards. Cards d and e join, giving TP three, FP two, FN zero and TN one.
Return the threshold to 0.8, then change only c’s mass to two. This exercises weighted assessment; it does not claim the empirical population contains twice as many such cases. The cells become two, two, one and two, total mass seven, precision one half and recall two thirds. Explain their difference through denominators.
Finally compare always-negative with an empty dataset. Distinguish undefined precision from an undefined overall average. Correct invalid negative mass before interpreting any result. Check that language changes preserve the cards and policy, and record inputs, denominators and conclusions together.
학부 심화 · 선택Advanced undergraduate · optional
임계값을 내리면 두 분모가 보인다Lower a threshold and keep both denominators visible
가장 높은 기준에서 시작해 기준을 내리면 점수가 높은 카드부터 양성 행동으로 들어옵니다. 여섯 카드에서는 늘 음성→0.9→0.8→0.6→0.4→0.1 순서입니다. b와 c는 같은 순간 들어오므로 여섯 행이 있어도 점수 기준의 서로 다른 선택은 시작점을 포함해 여섯 개입니다.
기준이 내려가면 TP와 FP는 감소하지 않습니다. 따라서 TPR과 FPR도 각 분모가 양수인 고정 평가 범위에서는 감소하지 않습니다. 그러나 정밀도는 오르기도 내리기도 합니다. 새로 들어온 묶음에 양성이 많이 있는지 음성이 많이 있는지에 따라 달라지기 때문입니다.
여섯 카드 임계값 장부
기준
TP
FP
TPR
FPR
정밀도
늘 음성
0
0
0
0
미정의
0.9
1
0
1/3
0
1
0.8
2
1
2/3
1/3
2/3
0.6
2
2
2/3
2/3
1/2
0.4
3
2
1
2/3
3/5
0.1
3
3
1
1
1/2
끝점의 늘 양성과 시작점의 늘 음성을 먼저 확인하면 빠진 관측이나 동률 처리 오류를 찾기 쉽습니다. 행 개수 대신 질량을 썼다면 이 표의 TP·FP도 같은 질량으로 누적합니다.
Begin above every score and lower the threshold. The six-card sequence is always-negative, 0.9, 0.8, 0.6, 0.4 and 0.1. Cards b and c enter simultaneously, leaving six distinct operating sets including the starting set.
On a fixed eligible frame, TP and FP never decrease. TPR and FPR therefore never decrease when their class denominators are positive. Precision can increase or decrease, depending on the composition of the entering block.
Six-card threshold ledger
Threshold
TP
FP
TPR
FPR
Precision
Always-negative
0
0
0
0
Undefined
0.9
1
0
1/3
0
1
0.8
2
1
2/3
1/3
2/3
0.6
2
2
2/3
2/3
1/2
0.4
3
2
1
2/3
3/5
0.1
3
3
1
1
1/2
Check the all-selected endpoint and nobody-selected starting point before interpreting areas. Missing rows and split ties often reveal themselves here. Weighted analysis accumulates the same analytical masses throughout.
학부 심화 · 선택Advanced undergraduate · optional
ROC: 실제 음성 중 경보와 실제 양성 중 탐지ROC: alerts among negatives and detections among positives
ROC 그림의 가로축은 FPR이고 세로축은 TPR입니다. 오른쪽으로 가면 실제 음성에서 더 많은 경보를 허용하고, 위로 가면 실제 양성을 더 많이 찾습니다. 왼쪽 위가 매력적이지만 어느 점이 적절한지는 경보 처리 능력·오류 비용·평가 환경에 달려 있습니다. 곡선 전체가 하나의 행동을 자동 선택하지는 않습니다.
여섯 카드에서 기준0.8은(1/3,2/3), 기준0.4는(2/3,1)입니다. 둘째는 양성을 더 찾지만 음성의 잘못된 경보도 더 많습니다. “더 위에 있으니 무조건 더 좋다”라고 말하려면 동시에 오른쪽으로 이동한 부담을 무시해야 합니다.
인접 ROC 점을 직선으로 이을 때 그 중간은 원래 점수의 다른 결정적 임계값으로 언제나 구현되는 점이 아닙니다. 두 정책을 자료와 독립인 동전으로 확률적으로 섞으면 기대 TP·FP가 직선 위에 놓인다는 해석은 가능합니다. 실제 운영의 무작위화 허용 여부와 유한 표본의 실현 결과는 별도 문제입니다.
ROC places FPR horizontally and TPR vertically. Moving right permits more alerts among actual negatives; moving up finds more positives. The upper left is attractive, but capacity, error costs and deployment context determine the operating point. The whole curve does not automatically choose an action.
Threshold 0.8 gives (1/3,2/3); threshold 0.4 gives (2/3,1). The latter detects more positives and also alerts on more negatives. Calling it unconditionally better ignores the horizontal burden.
A straight segment between adjacent points need not consist of deterministic score thresholds. Independently randomizing between two policies gives expected TP and FP on the segment. Whether such randomization is acceptable, and how its finite realization behaves, are separate questions.
학부 심화 · 선택Advanced undergraduate · optional
AUC는 양성·음성 두 장의 순서 확률이다AUC compares the ordering of a positive-negative pair
ROC AUC를 눈대중의 면적만으로 배우지 말고 두 카드를 뽑는 질문으로 바꾸어 봅시다. 양성 한 장과 음성 한 장을 각 범주 안의 질량에 비례해 뽑습니다. 양성 점수가 크면1점, 같으면1/2점, 작으면0점입니다. 이 평균이 이 장의 ROC AUC입니다. 확률 0.8이 실제로80% 맞는지는 다른 질문입니다.
여섯 카드에서 양성0.9는 음성0.8·0.6·0.1보다 모두 커서3점입니다. 양성0.8은 동점1/2점과 두 승리로2.5점, 양성0.4는0.1에게만 이겨1점입니다. 합6.5를9쌍으로 나누면13/18≈0.7222입니다.
양성이나 음성 질량이0이면 뽑을 쌍이 없어 AUC는 미정의입니다. 두 범주가 존재하고 점수가 모두 같으면 모든 쌍이 동점이라 AUC=1/2입니다. 점수를 엄격히 증가하는 함수로 바꾸면 순서와 동률이 같아 AUC도 같지만 확률의 의미나 Brier는 달라질 수 있습니다.
Turn ROC area into a pairwise question. Draw one positive and one negative proportional to their masses within class. Award one for a higher positive score, one half for a tie and zero otherwise. The average is our ROC AUC. Whether a forecast of 0.8 corresponds to an 80% event rate is a different question.
The positive score 0.9 beats all three negatives, earning three. The positive 0.8 earns a half tie and two wins, or 2.5. The positive 0.4 beats only 0.1, earning one. Divide 6.5 by nine pairs to obtain 13/18, about 0.7222.
With either class absent there is no pair distribution and AUC is undefined. If both classes exist and every score ties, AUC is one half. A strictly increasing score transformation preserves order and ties, hence AUC, while it can change probability meaning and Brier loss.
학부 심화 · 선택Advanced undergraduate · optional
PR은 찾아낸 양성과 경보의 품질을 함께 본다PR combines positive coverage and alert quality
PR 그림의 가로축은 재현율, 세로축은 정밀도입니다. 연체를 얼마나 찾았는지와 연락한 책 가운데 실제 연체가 얼마나 되는지를 함께 보여 줍니다. ROC와 다른 정보를 발명한 것은 아닙니다. 같은 혼동행렬을 다른 분모로 표현한 것이어서, 실제 양성 비중이 해석에 직접 들어옵니다.
PPV=TPRπ+FPR(1−π)TPRπ,π=P/W
TPR=0.8·FPR=0.1인 규칙을 생각해 봅시다. 양성 비중이1/2이면 정밀도8/9지만, 비중1/10이면8/17입니다. 여기서는 TPR과 FPR이 그대로 유지된다고 가정한 계산입니다. 실제로 새 환경에서 조건부 점수 분포까지 달라지면 이 두 비율도 바뀔 수 있습니다.
따라서 서로 다른 양성 비중의 두 자료에서 PR 높이만 바로 비교하면 순위 성능과 구성비 효과가 섞입니다. ROC도 표본 선택·조건부 분포 이동에 면역인 것은 아닙니다. 표적 정의·범주별 질량·같은 평가 범위를 곁에 적어 두세요.
PR plots recall horizontally and precision vertically: how many positives are found, and how many selected cases are positive. It reexpresses the same confusion cells with different denominators, making prevalence enter directly.
PPV=TPRπ+FPR(1−π)TPRπ,π=P/W
Holding TPR 0.8 and FPR 0.1 fixed, precision is 8/9 at prevalence one half but 8/17 at prevalence one tenth. This calculation assumes those conditional rates stay fixed. They too may change if class-conditional score distributions shift.
Comparing PR heights across different prevalences mixes ranking with composition. ROC is not immune to sampling changes or class-conditional shifts either. Report target definitions, class masses and evaluation frames alongside either curve.
학부 심화 · 선택Advanced undergraduate · optional
평균 정밀도는 오른쪽 계단으로 누적한다Average precision accumulates right-step precision
곡선 요약의 정의를 먼저 고정합니다. 이 장의 평균 정밀도 AP는 각 동점 묶음이 들어온 뒤의 정밀도에 그때 증가한 재현율을 곱해 더합니다. 양성이 들어오지 않는 묶음의 재현율 증분은0입니다. 점을 직선으로 이은 PR 면적과 같은 정의가 아닙니다.
AP=k∑(Rk−Rk−1)Qk,R0=0
여섯 카드에서는0.9에서 재현율1/3·정밀도1, 0.8에서 재현율이1/3 늘며 정밀도2/3, 0.4에서 다시1/3 늘며 정밀도3/5입니다. 따라서 AP=1/3+2/9+1/5=34/45≈0.7556입니다. 0.6과0.1 묶음은 정밀도를 바꾸지만 AP의 재현율 증분이0입니다.
선택이0인 시작점의 관측 정밀도는 미정의입니다. 그림을 그리기 위해 재현율0의 세로값을1로 놓는 관례를 별도 표시할 수 있습니다. 그 관례를 포함한 사다리꼴 면적을 AP라고 바꾸어 부르지 않습니다. 양성이 없으면 AP는 미정의이며, 양성만 있으면 AP=1일 수 있어도 음성과의 구별이 검증된 것은 아닙니다.
Declare the summary before calculating it. Our average precision weights the precision after each tied-score block by that block’s recall increment. A block adding no positive mass contributes zero. This is not the area from connecting PR points with straight lines.
AP=k∑(Rk−Rk−1)Qk,R0=0
For the six cards, recall rises by one third at score 0.9 with precision one, at 0.8 with precision two thirds, and at 0.4 with precision three fifths. AP is 1/3 plus 2/9 plus 1/5, or 34/45, about 0.7556. Blocks at 0.6 and 0.1 change precision but add no recall.
Observed precision is undefined when nobody is selected. A plot may explicitly assign precision one at recall zero for drawing. Its trapezoid area remains a separate convention, not AP. AP is undefined without positives; it can be one with only positives without establishing discrimination against negatives.
학부 심화 · 선택Advanced undergraduate · optional
동률·가중치·보간은 결과의 일부다Ties, weights and interpolation belong to the result
점수0.8의 b와 c를 어느 순서로 놓느냐에 따라 가짜 중간점이 달라집니다. 표적을 보고 b부터 넣으면 좋아 보이고, c부터 넣으면 나빠 보입니다. 동점 묶음을 함께 넣는 규칙은 임의의 행 순서가 성능을 바꾸지 못하게 합니다. 실제 예측이 유한한 칸 확률이면 동률은 드문 예외가 아니라 흔한 상황입니다.
가중 ROC는 각 양성·음성 쌍의 질량 곱으로 계산합니다. 재현율·정밀도·AP도 같은 질량을 사용해야 합니다. 행 수 ROC와 가중 AP를 한 그림의 같은 분석이라고 섞으면 어떤 표본을 평가했는지 흐려집니다.
ROC의 직선 보간과 PR의 직선 보간도 서로 같은 혼합 정책을 뜻하지 않습니다. 혼합된 TP·FP를 먼저 계산하고 정밀도의 비율을 취하면 일반적으로 PR 평면에서 직선이 아닙니다. 곡선 사이의 변환은 분모가 바뀌는 비선형 계산입니다. 구현 문서에 AP·사다리꼴·시작점·동률 규칙을 모두 적어 두는 이유입니다.
Splitting the tied b/c block creates an arbitrary intermediate point: placing the positive b first looks better and placing c first looks worse. Entering tied blocks together prevents source-row order from changing performance. Ties are common in finite cell-based probabilities.
Weighted ROC uses the product of positive and negative pair masses. Recall, precision and AP must use those same masses. Mixing unweighted ROC with weighted AP obscures the evaluation population.
Straight ROC interpolation and straight PR interpolation generally do not represent the same randomized policy. Mixing TP and FP first and then taking their precision ratio produces a nonlinear PR path. Document AP, trapezoid, origin and tie conventions explicitly.
학부 심화 · 선택Advanced undergraduate · optional
곡선이 좋으면 임계값도 정해지는가Does a good curve determine a threshold?
AUC가 높다는 것은 평균적인 양성·음성 순서 비교가 좋다는 뜻입니다. 운영에서 필요한 영역은 FPR≤0.01처럼 아주 좁을 수 있습니다. 그 영역에서는 두 곡선의 순서가 전체 면적의 순서와 다를 수 있습니다. 곡선이 서로 교차한다면 어떤 요약 하나로 모든 운영 질문의 우열을 정할 수 없습니다.
같은 점수 순서를 보존하는 변환 p→p²는 AUC와 AP를 바꾸지 않지만, 기준0.5의 행동은 바꿉니다. 예전 점수0.6은 새 점수0.36으로 내려가 선택되지 않습니다. 확률이 적절한지 확인하지 않고 “AUC가 좋으니0.5를 쓰자”라고 정할 근거는 없습니다.
이제 다음 부분에서 비용과 검증 자료로 행동 기준을 고릅니다. 순위의 평가, 확률의 보정, 행동의 선택이 이어져 있지만 같은 일은 아니라는 점을 유지하세요. 연구 보고서에는 전체 면적 옆에 실제 운영점의 TP·FP·FN·TN과 사용 분모를 제시하는 것이 도움이 됩니다.
A high AUC means good average positive-negative ordering. Deployment may care only about a narrow region such as FPR at most 0.01. Curves can have a different ordering there than their total areas suggest. Crossing curves cannot be ranked for every operational objective by one area.
The increasing transformation p to p squared preserves ranking, AUC and AP, but changes actions at threshold 0.5: score 0.6 becomes 0.36. A good AUC alone provides no reason to use threshold 0.5 without considering probability meaning.
Next we choose actions using costs and validation data. Ranking assessment, probability calibration and action selection connect without becoming the same task. Report the actual operating point’s cells and denominators alongside global areas.
학부 심화 · 선택Advanced undergraduate · optional
실습: 동률·단일 범주·곡선의 세 가지 요약Lab: ties, a single class and three curve summaries
기본 여섯 카드에서 ROC AUC13/18과 AP34/45를 손계산표에 대조합니다. PR 사다리꼴은 시작 세로값1의 그림 관례를 포함한 별도 출력임을 확인합니다. 동점0.8을0.8001·0.7999로 아주 조금 나누면 새 점수 규칙을 만든 것이며, 바뀐 면적을 반올림 오차라고 부르지 않습니다.
다음에는 모든 점수를0.5로 바꿉니다. 양성·음성이 모두 있으므로 AUC=1/2이고 AP는 양성 비중1/2입니다. 다시 표적을 모두1로 바꾸면 ROC AUC는 미정의지만 AP는1입니다. 이 두 출력을 모순으로 보지 말고 각각의 분모를 찾으세요.
마지막으로 가중치 한 개를 바꾸고 쌍 질량의 합 PN을 검산합니다. 그래프의 점을 읽기 어려우면 수치표에서 임계값·TPR·FPR·정밀도를 함께 읽습니다. 표와 그림이 같은 동점 묶음을 나타내는지 확인하는 것까지가 실습입니다.
Check AUC 13/18 and AP 34/45 against the six-card hand ledger. The PR trapezoid includes an explicitly labeled precision-one drawing origin and is a separate output. Splitting the 0.8 tie into 0.8001 and 0.7999 creates a different scoring rule, not a rounding correction.
Set every score to 0.5. With both classes present AUC is one half and AP equals prevalence, here one half. Then set every target to one: ROC AUC becomes undefined while AP becomes one. Find their denominators instead of treating the results as contradictory.
Change one analytical mass and verify total positive-negative pair mass PN. Read the numerical threshold table whenever a point is difficult to identify. Confirm that its rows and the graph use the same tied blocks.
학부 심화 · 선택Advanced undergraduate · optional
오경보 한 건과 놓친 양성 한 건의 부담The burdens of a false alarm and a missed positive
연체 안내를 보내는 데 시간이 들고, 놓친 연체 때문에 다른 이용자가 기다린다고 해 봅시다. FP 한 건의 비용을 C_FP, FN 한 건의 비용을 C_FN으로 정하면 두 오류의 부담을 다른 비중으로 합칠 수 있습니다. 여기서 비용은 돈일 수도 있고 작업 시간이나 가정한 점수일 수도 있습니다. 단위가 다른 부담을 아무 근거 없이 합치지 말고 어떤 환산을 가정했는지 적어야 합니다.
Ctotal=CFPFP+CFNFN,C=Ctotal/W,W>0
이 장의 실제 자료에서는 FP/FN 비용을1:1,1:5,5:1로 바꾼 세 교육용 시나리오를 사용합니다. 실제 회사의 손익이나 정책의 사회적 후생을 측정한 값이 아닙니다. “비용이5다”는 가정을 바꾸면 같은 예측에 대한 행동 선호가 바뀐다는 것을 보여 줍니다.
위 식은 맞은 행동의 추가 비용을0으로 둔 단순 비용표입니다. 실제로는 조사 자체의 비용, 용량 제한, 지연, 잘못된 낙인, 행동이 결과에 미치는 영향이 있을 수 있습니다. 표의 가정을 넘어선 편익을 이 계산 결과에 몰래 포함하지 않습니다.
Suppose a late-return notice consumes staff time while a missed late return makes another reader wait. Assign separate costs C_FP and C_FN to these two errors. Cost can mean money, minutes or hypothetical teaching units. Combining unlike burdens requires an explicit conversion assumption.
Ctotal=CFPFP+CFNFN,C=Ctotal/W,W>0
Our actual-data studies use three hypothetical FP/FN cost ratios: 1:1, 1:5 and 5:1. They are not measured firm profits or policy welfare. They demonstrate how a changed burden assumption alters preferred actions for unchanged scores.
This simple table assigns no additional cost to correct actions. Real investigations, capacity, delay, stigma and effects of actions on outcomes can require a richer model. Do not silently add benefits outside the stated table.
학부 심화 · 선택Advanced undergraduate · optional
여섯 카드의 비용표를 끝까지 비교하기Compare every six-card operating cost
여섯 카드를 검증 자료라고 가정하고 각 임계값의 FP와 FN을 적습니다. 놓친 양성의 비용을5, 오경보 비용을1로 두면 늘 음성은15, 기준0.9는10, 0.8은6, 0.6은7, 0.4는2, 0.1은3입니다. 최솟값은 기준0.4에서 총2·평균1/3입니다.
오경보가 더 비싸다고 FP=5·FN=1로 바꾸면 비용은3,2,6,11,10,15가 됩니다. 이제 기준0.9가 총2로 최적입니다. 순위도 확률도 정답도 바뀌지 않았지만 선택하는 행동이 달라졌습니다.
구성 예 · 비용은 가정한 단위
기준
FP
FN
FP1/FN5 총비용
FP5/FN1 총비용
늘 음성
0
3
15
3
0.9
0
2
10
2
0.8
1
1
6
6
0.6
2
1
7
11
0.4
2
0
2
10
0.1
3
0
3
15
같은 총질량6으로 나누므로 이 예에서는 총비용과 평균 비용의 최솟값 위치가 같습니다. 서로 다른 평가 범위를 써서 분모가 바뀌면 총비용끼리 비교하는 뜻도 달라집니다. 모든 후보에 같은 검증 행을 사용해야 하는 이유입니다.
Treat the six cards as validation data. With missed positives costing five and false alarms one, threshold costs are fifteen, ten, six, seven, two and three. Threshold 0.4 minimizes total cost at two and mean cost at one third.
Reverse the burdens to FP five and FN one: costs become three, two, six, eleven, ten and fifteen. Threshold 0.9 now minimizes cost. Rankings, probabilities and labels did not change; the action objective did.
Constructed example; hypothetical cost units
Threshold
FP
FN
Total FP1/FN5
Total FP5/FN1
Always-negative
0
3
15
3
0.9
0
2
10
2
0.8
1
1
6
6
0.6
2
1
7
11
0.4
2
0
2
10
0.1
3
0
3
15
Every candidate divides by the same mass six, so total and mean costs have the same minimizer here. Comparing totals on different frames changes the question. Use the same validation rows for every candidate.
학부 심화 · 선택Advanced undergraduate · optional
사후확률을 알 때의 베이즈 임계값A Bayes threshold when the event posterior is known
이번에는 관측된 여섯 카드의 최솟값이 아니라 새 X에서의 조건부 기대비용을 생각합니다. p=P(Y=1|X)가 관련 환경의 정확한 사건 사후확률이고, 양성 행동의 오류 비용이 C_FP·음성 행동의 오류 비용이 C_FN이라고 가정합니다. 양성 행동의 기대비용은 C_FP(1−p), 음성 행동은 C_FN p입니다.
CFP(1−p)≤CFNp⟺p≥CFP+CFNCFP,CFP+CFN>0
FP1·FN5이면 이 이론적 경계는1/6입니다. 앞서 검증 카드가 선택한0.4와 달라도 모순이 아닙니다. 한쪽은 알려진 관련 사후확률과 비용 가정의 조건부 최적 행동이고, 다른 쪽은 제한된 점수와 유한 검증 자료에서 찾은 경험 최솟값입니다.
등호에서는 두 행동의 기대비용이 같습니다. 이 장은 일관되게 양성을 택합니다. 두 비용이 모두0이면 분모도0이며 어떤 행동도 비용상 우열이 없습니다. C_FP=0·C_FN>0이면 p=0에서도 동률이고, C_FN=0·C_FP>0이면 p=1에서만 양성 행동이 동률일 수 있습니다. 경계 포함 규칙을 함께 적어 두세요.
Now consider conditional expected cost at a new X rather than the empirical optimum of six observed cards. Assume p is the relevant environment’s exact event posterior P(Y=1|X). Positive action has expected error cost C_FP times one minus p; negative action has C_FN times p.
CFP(1−p)≤CFNp⟺p≥CFP+CFNCFP,CFP+CFN>0
FP one and FN five give the theoretical boundary one sixth. This need not equal the validation choice 0.4. One is conditionally optimal under a known relevant posterior and cost assumptions; the other is a finite empirical minimizer for available scores.
At equality both actions have equal expected cost; our convention selects positive. When both costs are zero, the ratio is undefined and all actions tie. A zero FP cost or zero FN cost also creates endpoint ties, so state the equality convention.
학부 심화 · 선택Advanced undergraduate · optional
확률 보정만으로 모든 조건이 채워지지는 않는다Calibration alone does not fill every decision assumption
“p라고 말한 사람들의 사건 비중도 p다”라는 보정은 점수 수준에서의 진술입니다. 그것이 모든 X의 정보에 대한 사후확률을 안다는 뜻은 아닙니다. 점수만을 사용해 행동하고 관련 비용이 점수 안에서 같은 방식으로 적용될 때는 점수 조건부 확률로 기대비용을 비교할 수 있습니다. 비용이나 사용 가능한 정보가 사람마다 다르면 추가 조건이 필요합니다.
예를 들어 확인 전화를 걸면 이탈을 막을 수 있다고 주장하려면 행동을 하지 않았을 때와 했을 때의 결과 차이가 필요합니다. 이탈 예측의 Y만으로 그 차이를 알 수 없습니다. 이 장의 FP·FN은 관측된 표적에 대한 분류 장부이며, 개입으로 구한 순이익 장부가 아닙니다.
비용을 자료에서 추정했다면 그 추정 불확실성도 추가됩니다. 여기서는1·5라는 비용을 독자가 바꾸는 가정으로 두므로 통계적으로 추정한 실제 비용이라고 표시하지 않습니다. 임계값의 정확한 분수가 가정의 정확성까지 보장해 주지는 않습니다.
Calibration says event frequency matches p among cases receiving score p. It does not establish that every available detail X has been incorporated into the event posterior. Score-conditional probabilities can guide score-only decisions when the relevant costs apply appropriately within score levels. Heterogeneous costs or additional information need further conditions.
Claiming a call prevents churn requires a contrast between outcomes with and without the call. Churn labels alone do not supply it. Our FP and FN are classifications against observed outcomes, not a causal intervention profit ledger.
Estimated costs add uncertainty of their own. Here one and five are adjustable assumptions, never estimates of actual operating losses. An exact fractional threshold does not certify the assumptions behind it.
학부 심화 · 선택Advanced undergraduate · optional
훈련·검증·시험의 세 역할Three roles: training, validation and test
훈련 자료는 점수를 만드는 모형을 적합합니다. 검증 자료는 그 모형의 점수 중 어떤 임계값을 쓸지 고릅니다. 시험 자료는 선택을 마친 정책을 평가합니다. 시험의 결과를 보고 임계값을 다시 바꾸면 그 자료는 이미 선택에 참여했으므로 처음 의미의 손대지 않은 시험이 아닙니다.
실제 사례는 새 고정 역할표를 사용합니다. 원행 ID의 SHA256 순서를 정하고 순위의5로 나눈 나머지가0이면 시험·1이면 검증·나머지는 훈련입니다. 이 일정은 재현 가능한 교육용 분할이며 IID 표집이나 시간상 미래 독립을 증명하지 않습니다. 필요한 입력·Y 결측 행은 예정 역할을 보존한 채 분석에서는 제외합니다.
중앙값과 칸 확률은 훈련에서만 배웁니다. 모든 특징과 α=1은 이 장에서 고정하여 모형 선택과 행동 선택을 구분합니다. 비용별 임계값은 검증에만 의존하고, 시험은 그 선택 이후에만 읽습니다. 분할·표적·비용 시나리오를 여러 번 바꾼 뒤 가장 보기 좋은 시험만 보고하면 더 큰 선택 문제가 생긴다는 앞 장의 논의도 유지됩니다.
Training fits the scoring model. Validation chooses a threshold for that model. Test evaluates the policy after selection. Changing the threshold after seeing test outcomes makes that test part of selection.
Actual studies use a fresh fixed role schedule. Sort native IDs by SHA256; rank modulo five assigns zero to test, one to validation and the other ranks to training. This is a reproducible educational split, not proof of IID sampling or future-time independence. Rows missing required X or Y keep their planned roles but are analytically excluded.
Medians and cell probabilities use training only. All predictors and alpha one are fixed, separating model choice from action choice. Validation alone selects thresholds for each cost scenario. Repeatedly changing splits or scenarios and reporting the most attractive test would introduce the broader selection problem discussed previously.
학부 심화 · 선택Advanced undergraduate · optional
실현 가능한 규칙·제약·동점의 선택 순서Feasibility, constraints and selection ties
목표를 “평균 비용 최소, 단 재현율≥0.8·FPR≤0.4”처럼 정할 수도 있습니다. 후보마다 제약을 먼저 확인하고 통과한 후보 중 비용이 가장 작은 것을 선택합니다. 실제 양성이 없어 재현율이 미정의인 경우 “≥0.8”을 충족했다고 처리할 수 없습니다.
여섯 카드에서 재현율≥0.8이면0.4 또는0.1이 필요하지만 두 후보의 FPR은2/3·1입니다. 따라서 FPR≤0.4와 동시에 만족하는 후보는 없습니다. 이때 결론은 미실현 가능이지 가장 가까운 후보를 성공으로 바꾸는 것이 아닙니다. 다른 정책·추가 자료·목적 수정은 명시적인 다음 연구입니다.
여러 후보의 비용이 같으면 이 장은 선언된 후보 순서에서 먼저 나온 것을 택합니다. 기본 순서는 늘 음성 다음 서로 다른 검증 점수의 내림차순입니다. 직접 입력한 후보는 중복까지 원순서를 보존합니다. 이 재현 규칙이 가장 공정하거나 유일하게 좋은 정책이라는 뜻은 아닙니다.
An objective may minimize mean cost subject to recall at least 0.8 and FPR at most 0.4. Check constraints before minimizing among feasible candidates. Undefined recall cannot be treated as satisfying a recall requirement.
For the six cards, recall at least 0.8 requires threshold 0.4 or 0.1, whose FPR values are two thirds and one. No candidate also satisfies FPR at most 0.4. Report infeasibility instead of relabeling the nearest candidate successful. A different policy class or objective is a new explicit study.
When costs tie, retain the first candidate in declared order. The default starts with always-negative followed by distinct validation scores descending. User-supplied grids retain their order and duplicates. This makes selection reproducible without claiming a uniquely fair or optimal tie policy.
학부 심화 · 선택Advanced undergraduate · optional
검증 최솟값의 불확실성과 시험 결과의 해석Uncertainty in the validation minimum and interpretation of test results
검증 자료가 작으면 한 카드만 바뀌어도 최적 임계값이 크게 움직일 수 있습니다. 많은 후보를 훑은 최솟값은 그 표의 우연한 구성에 맞춰진 값이기도 합니다. 검증 최솟값을 새 환경의 비용 보장이라고 부르지 말고, 선택 ID·후보 수·총질량·동점 규칙을 함께 보고합니다.
시험 평균은 그 시험 행에서 고정 정책을 적용한 결과입니다. 모집단 기대비용의 추정으로 해석하려면 대표성·독립성·관측과 배포 환경의 관계를 추가로 논의해야 합니다. 실제16개 국가의 시험4개 행은 특히 작은 예이므로 분수와 개수를 그대로 보여 주겠습니다.
다시 적합할 계획이 있다면 전체 절차를 먼저 정합니다. 훈련+검증으로 확률을 다시 적합하면 점수의 눈금 자체가 바뀔 수 있어 이전 모형에서 고른 임계값을 그대로 쓰는 것은 별도 정책입니다. 이 장의 실제 시연은 훈련 모형을 고정하고 검증 선택·시험 평가를 수행합니다.
With little validation data, one changed observation can move the optimum substantially. Searching many candidates also adapts to that table’s accidental composition. Report selection IDs, candidate count, mass and tie rules rather than calling the minimum a future cost guarantee.
Test mean cost describes a fixed policy on those test rows. Interpreting it as population expected cost needs representativeness, independence and deployment-context assumptions. Four test countries among sixteen especially call for visible fractions and counts.
Declare refitting plans first. Refitting probabilities on training plus validation can change their scale, so retaining an old threshold becomes a different procedure. Our actual demonstration keeps the training model fixed throughout validation choice and test assessment.
학부 심화 · 선택Advanced undergraduate · optional
실습: 비용을 바꾸되 시험으로 선택하지 않기Lab: change costs without selecting on test outcomes
여섯 카드의 역할을 모두 검증으로 지정하고 평가 역할은 없음을 택하여 비용1:5·5:1을 각각 비교하세요. 기준0.4와0.9가 선택되는지 전체 후보표로 확인합니다. 비용을 모두0으로 바꾸면 모든 후보가 동률이며 기본 첫 후보인 늘 음성이 선택됩니다. 베이즈 경계는 미정의로 남아야 합니다.
다음에는 실제 국가 사례에서 훈련9·검증3·시험4의 역할을 확인합니다. 세 비용 시나리오가 모두 기준3/4을 고르더라도 시험 비용은 같을 필요가 없습니다. 같은 FP에 다른 단가가 적용되기 때문입니다. 시험 행의 정답을 바꿔 보는 민감도 연습에서는 선택 임계값은 유지되고 시험 채점만 바뀌어야 합니다.
마지막으로 최소 재현율·최대 FPR 제약을 넣어 가능한 후보가 없는 경우를 만듭니다. 결과의 빈 선택을 계산 실패와 구분하세요. 결론을 “조건을 만족하는 후보가 이 선언된 격자에 없음”이라고 정확히 기록합니다.
Assign all six cards to validation and use no evaluation role. Compare cost ratios 1:5 and 5:1 and verify selected thresholds 0.4 and 0.9 from every candidate. With both costs zero all candidates tie, so the default first candidate, always-negative, wins; the Bayes ratio remains undefined.
For the actual country study, inspect nine training, three validation and four test rows. All cost scenarios can choose threshold three quarters yet yield different test costs, because unit burdens differ. A sensitivity change to test labels should alter assessment without altering selection.
Finally add minimum-recall and maximum-FPR constraints that leave no feasible candidate. An empty selection is not a calculator failure. Record precisely that no candidate in the declared grid satisfies the constraints.
학부 심화 · 선택Advanced undergraduate · optional
80%라고 말한 카드에서 실제로 몇 번 일어났나How often did events occur among forecasts of 80%?
날씨 앱이 비 올 확률을80%라고 여러 번 말했다고 합시다. 비가 한 번 오지 않았다고 그 확률을 즉시 틀렸다고 할 수는 없습니다. 같은 조건으로80%라고 예측한 날들에서 비가 대략80% 오는지 묻는 것이 보정의 출발점입니다. 사건 한 번의 성공 여부와 확률 진술의 반복 성질은 다릅니다.
이진 사건의 이상적 보정은 E[Y|p]=p라고 씁니다. 유한 자료에서 같은 점수가 반복되지 않으면 구간으로 묶어 평균 점수와 사건 비중을 비교할 수 있습니다. 이는 구간 요약이며, 모든 점수 수준의 모집단 보정을 증명하지 않습니다.
이 장의 보정 실습은 이진 사건의 p와 Y를 비교하는 진단입니다. 확률을 다시 적합하는 Platt scaling·등위 회귀·온도 보정을 구현한 것은 아닙니다. 별도 보정 모형을 적합한다면 그 선택과 적합 자료를 최종 시험과 분리해야 합니다.
A weather app can predict an 80% chance of rain and still observe a dry day. Calibration instead asks whether rain occurs about 80% of the time among comparable forecasts of 80%. One realized event and the repeated meaning of a probability statement are different.
Ideal binary-event calibration is E[Y|p]=p. Finite data often require bins to compare average score with event frequency. A bin summary does not prove population calibration at every score value.
Our calibration lab diagnoses binary-event forecasts. It does not fit Platt scaling, isotonic regression or temperature scaling. Fitting such a mapping would require separating calibration fitting and selection from the final test.
학부 심화 · 선택Advanced undergraduate · optional
신뢰도 그림은 점과 개수를 함께 읽는다Read reliability points together with their counts
구간마다 가로축 평균 점수·세로축 사건 비중을 그리면 대각선 위는 평균 점수보다 사건이 더 자주 일어난 구간, 아래는 덜 자주 일어난 구간입니다. 점 하나가10행인지1000행인지에 따라 흔들림이 다를 수 있으므로 구간 질량과 행 수도 옆에 표시합니다.
이 장은 왼쪽 닫힘·오른쪽 열림 구간을 사용하고 마지막 구간의 오른쪽1만 포함합니다. 경계[0,0.5,1]이면0.5는 위 구간,1도 위 구간입니다. 빈 구간의 평균은 미정의이며0을 찍어 대각선 가까이 보이게 하지 않습니다.
여섯 카드의 아래 구간은 점수0.4·0.1이라 평균1/4·사건 비중1/2·질량2입니다. 위 구간은0.9·0.8·0.8·0.6이라 평균31/40·사건 비중1/2·질량4입니다. 이 두 점을 읽는 것만으로 각 점수의 모든 오류를 알 수는 없지만 어느 방향의 평균 차이가 있는지 확인할 수 있습니다.
Plot mean forecast horizontally and event frequency vertically for each bin. Points above the diagonal have more events than their mean forecast; points below have fewer. Display rows and mass because a ten-row point can fluctuate differently from a thousand-row point.
Bins are left-closed and right-open, except that the final bin includes one. For edges zero, one half and one, score one half belongs to the upper bin, as does score one. Empty-bin means stay undefined rather than becoming artificial zeros.
For the six cards, the lower bin contains scores 0.4 and 0.1: mean one quarter, event rate one half, mass two. The upper bin contains 0.9, 0.8, 0.8 and 0.6: mean 31/40, event rate one half, mass four. These summarize average directions without revealing every individual error.
학부 심화 · 선택Advanced undergraduate · optional
ECE는 선언한 구간에 의존한다ECE depends on the declared bins
이 장의 이진 사건 ECE는 각 구간에서 평균 점수와 사건 비중의 차이 절댓값을 구하고 질량 비중으로 평균합니다. 차이의 부호가 상쇄되지 않게 하지만, 구간 내부의 상쇄까지 막는 것은 아닙니다.
ECE=b:Wb>0∑WWb∣pˉb−yˉb∣
여섯 카드를[0,0.5,1]로 나누면 ECE=(2/6)|1/4−1/2|+(4/6)|31/40−1/2|=4/15입니다. 전부 한 구간으로 묶으면 전체 평균 점수3/5·사건 비중1/2여서 ECE=1/10으로 줄어듭니다. 점수와 정답은 전혀 바뀌지 않았습니다.
따라서 ECE를 비교하려면 같은 사건 정의·질량·구간 경계·빈 구간 규칙을 써야 합니다. 구간 수를 늘리면 모든 표본에서 반드시 증가한다는 단순 주장은 삼가야 합니다. 같은 분할을 더 잘게 나눈 경우의 절댓값 삼각부등식과, 경계 자체가 다른 두 분할은 다른 문제입니다.
Guo 등 논문의 신경망 보정 논의는 유용한 연결 읽기입니다. 그러나 그 논문의 다범주 최상위 예측 정답 여부와 신뢰도를 쓰는 ECE를 이 장의 이진 사건 p·Y 정의와 조용히 동일시하지 않습니다.
Our binary-event ECE averages each bin’s absolute difference between mean probability and event frequency, weighted by bin mass. It prevents cancellation across bins but not within a bin.
ECE=b:Wb>0∑WWb∣pˉb−yˉb∣
For edges zero, one half and one, the six-card ECE is (2/6)|1/4−1/2| plus (4/6)|31/40−1/2|, or 4/15. Putting all rows in one bin gives mean score three fifths and event rate one half, hence ECE one tenth. No score or target changed.
Compare ECE only with declared event, mass, edges and empty-bin rules. Do not assert arbitrary higher bin counts always increase every finite-sample ECE. Refining the same partition invokes an absolute-value triangle inequality; moving boundaries creates a different comparison.
Guo and colleagues provide a useful neural-network calibration reading. Their multiclass top-label correctness/confidence convention is not silently identified with our binary-event probability/target definition.
학부 심화 · 선택Advanced undergraduate · optional
ECE가0인데 매우 나쁜 두 예측Two poor forecasts with ECE zero
점수0.1에 정답1, 점수0.9에 정답0인 두 카드를 한 구간으로 묶습니다. 평균 점수와 사건 비중이 모두0.5이므로 ECE=0입니다. 그러나 두 예측은 모두 정답 반대편에 강하게 확신했고 Brier는0.81입니다. ECE=0이라는 구간 요약을 “좋은 확률 모형”이라고 읽으면 이 실패를 놓칩니다.
두 카드를 다른 구간으로 나누면 각 차이가0.9여서 ECE=0.9입니다. 무엇을 묶는지가 결과에 큰 영향을 줍니다. 신뢰도 그림의 점·질량·원점수 표와 Brier를 같이 보는 이유입니다.
반대로 사건 비중1/2을 모두에게 제시한 상수 모형은 모집단 비중이 실제1/2인 환경에서 보정될 수 있지만 사람 사이의 위험 차이를 구별하지 못합니다. 확률의 보정과 분리 능력, 예측의 날카로움은 연결되면서도 구별해야 하는 성질입니다.
Put score 0.1 with target one and score 0.9 with target zero into a single bin. Mean score and event frequency both equal one half, giving ECE zero. Yet both forecasts confidently point the wrong way and Brier is 0.81. A zero bin summary does not certify a good probability model.
Separate the cards into different bins and each discrepancy is 0.9, giving ECE 0.9. Pair reliability points and masses with native score tables and Brier.
Conversely, forecasting one half for everyone can be calibrated in a population with true event frequency one half while failing to distinguish individuals’ risks. Calibration, discrimination and sharpness are related but different properties.
대학원 연결Graduate bridge
Brier를 구간 안에서 전개하기Expand Brier inside each bin
구간 평균만으로 제곱오차를 분해하려면 구간 안의 점수 변화도 남겨야 합니다. 한 구간의 가중 분산을 Var_b(p), 점수와 표적의 가중 공분산을 Cov_b(p,Y)라고 하겠습니다. 분모는 모두 그 구간의 총질량이며 불편 표본 분산의 n−1을 쓰지 않습니다.
증명은 p²−2pY+Y를 평균내는 데서 시작합니다. Y가0 또는1이므로 Y²=Y입니다. 평균 p²는 Var_b(p)+평균p의 제곱이고, 평균 pY는 Cov_b(p,Y)+평균p·평균Y입니다. 이를 넣고 평균Y의 제곱을 더하고 빼면 위 식이 됩니다.
구간 안에서 점수가 모두 같은 경우 분산과 공분산은0입니다. 점수가 다르면 두 항이 일반적으로 사라지지 않습니다. 구간 대표 확률만 사용한 별도 예측 모형의 손실과 원래 각 행의 점수 손실을 구별해야 합니다.
A squared-error decomposition based on bins must retain within-bin variation. Let Var_b(p) and Cov_b(p,Y) use bin mass denominators, not an n-minus-one unbiased sample convention.
Start from the mean of p squared minus two pY plus Y, since binary Y squared equals Y. Replace mean p squared by variance plus squared mean, and mean pY by covariance plus the product of means. Adding and subtracting squared mean Y yields the identity.
If every forecast is constant within each bin, variance and covariance vanish. Otherwise they generally remain. A model replacing each individual score by its bin representative is a different set of forecasts from the original scores.
대학원 연결Graduate bridge
불확실성·분리·신뢰도·구간 내부 보정항Uncertainty, resolution, reliability and a within-bin correction
전체 양성 비중을 π라고 하면 각 구간의 사건 비중이 전체 비중과 얼마나 다른지로 분리 항을 정의합니다. 신뢰도 항은 구간 평균 점수와 사건 비중의 제곱 차이입니다. 모든 항은 같은 관측과 질량에서 계산합니다.
마지막 항은 이름에 보정이 들어가지만 확률을 재적합하는 알고리즘이 아닙니다. 원래 Brier를 정확히 복원하는 대수적 나머지입니다. 음수일 수도 있습니다. 이 항을 삭제하고 구간 평균의 세 항만으로 원손실을 설명하면 일반적으로 틀립니다.
두 개의 뒤집힌 예측에서는 불확실성1/4·분리0·신뢰도0, 구간 내부 보정항14/25이므로 Brier=1/4+14/25=81/100입니다. 차원을 늘린 추상 정리가 아니라 앞의 나쁜 예측을 원손실과 일치시키는 필요한 계산입니다.
전체 질량이0이면 π와 이 평균 항들은 미정의입니다. 빈 구간은 해당 가중 기여를0으로 처리하되 구간 평균 자체를0으로 채우지는 않습니다. 실습의 잔차가 정확히0인지 확인하면 항의 누락이나 분모 불일치를 찾을 수 있습니다.
Let overall prevalence be pi. Resolution measures variation of bin event frequencies around pi; reliability measures squared differences between bin mean scores and event frequencies. Every term uses the same observations and masses.
The last correction is not an algorithm for refitting probabilities. It is an algebraic remainder restoring the original Brier score and can be negative. Omitting it generally makes the three bin-mean terms fail to equal original forecast loss.
For the two reversed forecasts, uncertainty is one quarter, resolution and reliability zero, and within-bin correction 14/25. Their sum is 81/100. This term is needed to reconcile the visible bad forecasts with their original error.
With zero total mass these averages are undefined. Empty bins contribute zero weighted terms while retaining undefined means. An exact zero reconstruction residual helps detect omitted terms and inconsistent denominators.
학부 심화 · 선택Advanced undergraduate · optional
보정 지도를 적합한다면 어디서 배울까Where would a fitted calibration map learn?
진단 결과를 보고 점수를 새 확률로 바꾸고 싶을 수 있습니다. 예를 들어 단조 함수를 적합하거나 로짓 점수에 새 계수를 붙이는 방법이 있습니다. 이는 새 학습 단계이며, 구간 평균을 본 뒤 시험 정답에 맞춰 고치면 시험은 더 이상 외부 평가가 아닙니다. 이 장은 그러한 재적합을 수행하지 않고 원점수의 진단만 제공합니다.
온도 보정은 신경망의 로짓을 온도로 나누어 확률 눈금을 바꾸는 대표적 연결 사례입니다. 단조 점수 변환이 순위를 유지할 수 있어도 보정과 Brier·로그손실은 변할 수 있습니다. 다범주의 최상위 정답률 보정과 이진 사건 보정의 정의도 구별해야 합니다.
별도 연구를 한다면 훈련에서 원모형, 보정용 자료에서 보정 지도, 최종 손대지 않은 시험에서 두 모형의 성능을 비교하도록 설계합니다. 자료가 작으면 그 모든 선택을 바깥에서 평가하는 중첩 절차를 고려합니다. 가장 좋은 ECE를 주는 구간 경계까지 시험에서 고르는 것은 또 하나의 선택입니다.
A diagnosis may motivate changing scores using a monotone map or additional logit coefficients. That is a new fitting stage. Repairing probabilities against test labels after inspection makes the test part of learning. Our lab only diagnoses original scores.
Temperature scaling rescales neural-network logits before probabilities. A monotone score transformation can preserve ordering while changing calibration, Brier or log loss. Multiclass top-label correctness calibration and binary-event calibration still need distinct definitions.
A separate study can fit the base model on training, fit its calibration map on calibration data, and compare both on an untouched test. Small data may require an outer assessment of all choices. Selecting bin edges on test to minimize ECE is another selection step.
학부 심화 · 선택Advanced undergraduate · optional
실습: 구간을 바꾸고 정확한 분해를 유지하기Lab: change bins and preserve the exact decomposition
여섯 카드에 경계[0,0.5,1]을 넣어 구간 질량2·4, 평균 점수1/4·31/40, 사건 비중1/2·1/2, ECE4/15를 확인합니다. 경계를[0,1]로 바꾸면 ECE1/10이지만 원Brier71/300은 같아야 합니다. 신뢰도·분리·구간 내부 항이 어떻게 함께 변했는지 표로 읽으세요.
두 카드 p=[0.1,0.9]·Y=[1,0]를 한 구간에 넣고 ECE0·Brier81/100·보정항14/25를 재현합니다. 이어 두 구간으로 나누면 ECE는 달라져도 Brier와 분해 잔차0은 유지되어야 합니다.
경계0.5의 점수 한 행을 추가하여 왼쪽 닫힘·오른쪽 열림을 확인합니다. 빈 구간의 점을 그래프에서0으로 발명하지 않는지 수치표와 대조하세요. 결과를 “확률이 보정되었다”가 아니라 “선언한 구간에서 원점수를 이렇게 진단했다”라고 기록합니다.
For the six cards use edges zero, one half and one. Check masses two/four, mean scores 1/4 and 31/40, event rates one half each and ECE 4/15. Change to a single bin: ECE becomes one tenth but original Brier remains 71/300. Inspect how reliability, resolution and the within-bin term change together.
Reproduce ECE zero, Brier 81/100 and correction 14/25 for scores [0.1,0.9], targets [1,0] in one bin. Split them into two bins: ECE changes while Brier and the zero decomposition residual remain.
Add a score exactly one half to inspect interval closure. Check that empty-bin points are not invented at zero. Record a diagnosis under declared bins rather than claiming the probabilities have been recalibrated.
학부 심화 · 선택Advanced undergraduate · optional
집단을 나누기 전에 무엇을 기록했는지 읽기Read what a group records before comparing groups
집단별 성능은 같은 결과표를 선언한 범주별로 다시 세는 것입니다. 지역·연령·요금제·소득 구분 등 어떤 변수를 쓰느냐에 따라 질문이 달라집니다. 숫자1이라는 코드만으로 그 의미를 추정하지 말고 원 코드북과 관측 단위를 먼저 읽습니다. 집단을 예측 입력에 쓰는지, 사후 점검에만 쓰는지도 구분합니다.
이 장의 세 실제 집단은 서로 다른 성격입니다. 국가는 2024년 1인당 GDP가25,000불변2015USD 이상인지 만든 교육용 구분입니다. 세계은행의 공식 소득 등급이 아닙니다. 개인은 역사적 NLS의 원 black 코드이고, 회사는 원 Tariff Plan 코드입니다. 어느 것도 이름만으로 같은 사회적 의미를 갖지 않습니다.
이 집단 코드는 훈련 특징에 넣지 않고 집단별 평가 점검에만 사용합니다. 그렇다고 다른 특징이 집단 정보를 전혀 담지 않는다는 보장은 없습니다. 또한 집단 정보의 사용 여부 하나만으로 법적·윤리적 적정성을 판정할 수 없습니다. 이 장의 결론은 관측된 표본에서 어떤 비율이 다른지까지입니다.
A group audit recounts results within declared categories. Region, age, plan and income group answer different questions. Read codebooks and observational units before interpreting a code such as one. Distinguish use as a predictor from use only for subsequent auditing.
Our actual groups have different meanings: a constructed country GDP-per-person threshold of 25,000 constant-2015 USD, the historical NLS native black code, and the native company Tariff Plan code. The country split is not an official World Bank income classification. These categories are not interchangeable social constructs.
Group codes are excluded from fitting predictors and used only for auditing. Other predictors can still contain associated information. Whether a group variable is used cannot by itself decide legal or ethical acceptability. Our claims describe rate differences in the retained observations.
학부 심화 · 선택Advanced undergraduate · optional
전체 성능과 집단별 분모를 나란히 놓기Place overall performance beside group denominators
여섯 카드에서 집단A를 a,b,c, 집단B를 d,e,f로 정했습니다. 기준0.8에서 A는 세 명을 모두 선택하고 B는 한 명도 선택하지 않습니다. A의TPR=1·FPR=1·PPV=2/3, B의TPR=0·FPR=0·PPV는 미정의입니다. 전체TPR=2/3·FPR=1/3만 보면 이 극단적인 구성이 가려집니다.
구성한 집단 · 기준0.8
집단
전체 질량
양성
음성
선택
TPR
FPR
PPV
A
3
2
1
3
1
1
2/3
B
3
1
2
0
0
0
미정의
여기서 PPV 차이를2/3−0이라고 쓰면 안 됩니다. B에는 선택된 사람이 없어 PPV를 측정하지 못했습니다. 차이를 계산할 수 없다는 사실 자체가 중요한 결과입니다. 빈값을0으로 바꾸면 비교 대상이 생겼다는 잘못된 인상을 줍니다.
실제 표에서도 집단별 총행·적격행·양성·음성·선택 질량과 네 칸을 먼저 보여 줍니다. 비율의 차이가 커도 한두 행에서 나온 것인지 수백 행에서 나온 것인지 먼저 확인해야 합니다.
For the six cards, group A contains a, b and c; group B contains d, e and f. Threshold 0.8 selects everyone in A and nobody in B. A has TPR one, FPR one and PPV two thirds; B has TPR zero, FPR zero and undefined PPV. Overall TPR two thirds and FPR one third hide this composition.
Constructed groups at threshold 0.8
Group
Total mass
Positive
Negative
Selected
TPR
FPR
PPV
A
3
2
1
3
1
1
2/3
B
3
1
2
0
0
0
Undefined
Do not report the PPV gap as two thirds minus zero. B has no selected cases and supplies no PPV estimate. Undefined comparison is itself informative; substituting zero invents a measured population.
Actual tables therefore begin with retained and eligible rows, positive/negative/selected masses and all confusion cells. A large rate difference requires inspection of whether it comes from a handful or hundreds of observations.
학부 심화 · 선택Advanced undergraduate · optional
선택률·조건부 오류율·정밀도는 다른 평등이다Selection, conditional error rates and precision compare different equalities
선택률의 같음은 P(행동1|집단)가 같은지를 묻습니다. 기회균등이라는 통계 기준은 실제 양성에서 TPR이 같은지를 묻습니다. 분류 행동의 equalized odds는 실제 Y 각각에서 행동 분포가 집단과 독립인 조건이며, 이진 행동에서는 TPR과 FPR이 모두 같은 것으로 표현됩니다. 용어를 “좋음”의 단일 점수로 합치지 않습니다.
selection parity: a⊥G,equalized odds: a⊥G∣Y
Hardt·Price·Srebro의 원문은 이 조건부 질문을 명확히 구별하는 연결 읽기입니다. 여기서는 유한 표에서 해당 비율을 계산합니다. 알려진 모집단 결합 법칙에서의 조건을 유한 표의 근삿값만으로 증명했다고 주장하지 않습니다.
PPV의 같음은 선택된 사람 중 양성 비중이 집단마다 같은지를 묻습니다. 양성 비중이 다르면 TPR/FPR의 같음과 PPV의 같음 사이에 긴장이 생길 수 있습니다. 어느 기준이 맥락에 적합한지는 목적·오류 부담·자료 생성·권리와 절차의 논의를 필요로 하며 표 한 장이 대신 결정하지 않습니다.
Selection-rate parity asks whether P(action one given group) is equal. Equal opportunity compares TPR among actual positives. Equalized odds asks for action independent of group conditional on Y; with binary actions this means equal TPR and equal FPR. These are distinct criteria, not one universal goodness score.
selection parity: a⊥G,equalized odds: a⊥G∣Y
The primary Hardt, Price and Srebro paper distinguishes these conditional questions. We calculate their finite-table rate analogues without claiming that approximate finite equality proves a known-population conditional-independence condition.
Equal PPV asks whether selected cases have the same positive fraction across groups. Different prevalences can create tension with equal TPR/FPR. Which criterion suits a context needs discussion of purpose, burdens, data generation, rights and procedures beyond one table.
대학원 연결Graduate bridge
양성 비중이 다르면 생기는 정확한 대수The exact algebra when prevalences differ
집단g의 양성 비중을 π_g라고 두고, 두 집단에서 공통 TPR=t·FPR=f라고 가정합니다. 각 비중이0과1 사이이고 t>0·f>0이면 PPV는 아래 식입니다. π가 커질수록 이 값은 엄격하게 증가합니다.
Q(π)=tπ+f(1−π)tπ,Q′(π)={f+(t−f)π}2tf>0
따라서 양성 비중이 다른 두 집단이 이 비퇴화 조건에서 TPR과 FPR을 모두 같게 유지하면 PPV까지 같을 수는 없습니다. t=4/5·f=1/10에 π=1/2이면8/9, π=1/10이면8/17이라는 앞 계산이 그 예입니다.
이것을 모든 공정성 기준이 언제나 동시에 불가능하다는 주장으로 넓히지 않습니다. f=0이면 양성 선택이 있는 한 PPV=1일 수 있고, t=0이나 선택 분모0이면 다른 경계 문제가 생깁니다. 양성 비중이 같으면 엄격 차이 논거도 없습니다. 가정·정의·예외를 함께 쓰는 것이 정리를 제대로 사용하는 방법입니다.
Let group prevalence be pi_g and suppose both groups share TPR t and FPR f. For prevalences strictly between zero and one and t,f both positive, PPV has the following strictly increasing form.
Q(π)=tπ+f(1−π)tπ,Q′(π)={f+(t−f)π}2tf>0
Thus different prevalences cannot also yield equal PPV while sharing TPR and FPR under these nondegenerate conditions. The earlier values 8/9 and 8/17 at t four fifths and f one tenth illustrate this.
Do not broaden it into a claim that all fairness criteria always conflict. If f is zero, defined PPV can be one; t zero or zero selection denominators create other boundaries. Equal prevalences remove this strict-difference argument. State assumptions, definitions and exceptions together.
학부 심화 · 선택Advanced undergraduate · optional
집단 정보가 없는 행도 전체 장부에 남긴다Rows without group information remain in the overall ledger
표적·점수는 있지만 집단 코드만 없는 행을 생각해 봅시다. 전체 예측 채점에는 사용할 수 있으므로 전체에서 제거하지 않습니다. 알려진 집단 합계와 미상 집단을 별도로 보여 주면 전체 질량이 보존됩니다. 집단별 분석에서만 필요한 정보와 예측 채점에 필요한 정보를 구분한 것입니다.
Wknown+Wunknown=Woverall
코드 숫자0과 문자“0”도 입력에서 다르게 선언했다면 다른 범주로 보존합니다. 원 코드북상 같은 범주로 통일해야 한다면 그 정제 규칙을 사전에 기록해야 합니다. 자동 형 변환이 원분류를 조용히 바꾸지 않게 합니다.
최대−최소 격차는 양의 질량을 가진 알려진 집단이 둘 이상이고 모든 해당 집단의 지표가 정의될 때만 표시합니다. 알려진 집단 중 하나의 양성이0이라 TPR이 미정의이면 TPR 격차도 미정의입니다. 몇 집단만 골라 계산한다면 그 선택 범위를 따로 선언해야 합니다.
A row can have observed score and target but unknown group. It remains eligible for overall prediction assessment. Report known-group totals and unknown-group mass separately to conserve the ledger. Group-audit requirements need not remove an otherwise scoreable observation.
Wknown+Wunknown=Woverall
Numeric zero and text “0” remain separate if declared as different typed categories. Any harmonization justified by the codebook should be explicit preprocessing, not a silent coercion.
We display max-minus-min gaps only with at least two positive-mass known groups and the metric defined in every such group. A zero-positive group leaves its TPR and therefore the full TPR gap undefined. Any restricted subset comparison must be separately declared.
학부 심화 · 선택Advanced undergraduate · optional
표본 차이·측정 차이·인과 차이를 구분하기Separate sampling, measurement and causal differences
집단별 TPR 차이는 같은 표적 정의와 관측된 Y를 기준으로 계산합니다. Y가 누군가의 접근 기회나 측정 과정에 영향을 받았다면 그 표적 자체의 의미를 다시 점검해야 합니다. 관측 결과를 맞히는 능력과 바람직한 결과를 만들 수 있는 능력은 다릅니다.
역사적 인종 코드별 임금 구분에서 차이가 나더라도 이 표만으로 차이의 원인을 분리할 수 없습니다. 교육·연령·선택·측정·제도 등 여러 요인이 연결될 수 있습니다. 원 집단 코드도 개인의 현재 정체성을 연구자가 추정한 값이 아니라 해당 역사 자료의 기록입니다.
작은 집단의 차이에는 표본 변동도 있습니다. 이 장은 정확한 유한 비율과 분모를 제시하며 대표 모집단 신뢰구간을 자동 생성하지 않습니다. 독립 표집·군집·가중치·반복 측정 등 설계를 확인한 별도 추론이 필요합니다. 큰 격차를 무시하지도, 한 숫자로 원인을 확정하지도 않는 것이 분석의 출발점입니다.
Group TPR differences condition on observed Y under a common target definition. If access or measurement processes affect Y, examine the label itself. Predicting an observed outcome and producing a desirable outcome are distinct abilities.
A difference across historical race codes in a wage classification does not identify its cause. Education, age, selection, measurement and institutions can be associated. The code is a retained historical record, not an investigator’s inference of a person’s present identity.
Small-group differences also fluctuate. We report exact finite rates and denominators without automatically producing population confidence intervals. Inference needs sampling, clustering, weights and repeated-measure design assumptions. Neither dismiss a gap nor treat one number as its causal explanation.
학부 심화 · 선택Advanced undergraduate · optional
새 집단·새 환경에서는 무엇을 다시 확인하나What must be checked in new groups or environments?
전체 성능이 좋아도 어떤 하위 집단의 정보가 거의 없을 수 있습니다. 집단을 더 잘게 교차하면 작은 칸과 빈 분모가 빠르게 늘어납니다. 자세한 점검은 중요하지만, 많은 비교 중 가장 큰 격차만 선택하면 또 선택 편향과 불확실성 문제가 생깁니다. 사전에 중요한 비교와 탐색 비교를 구분하세요.
분포 이동에서는 집단 비중만 달라질 수도 있고, 집단 내부 점수·표적 관계까지 바뀔 수도 있습니다. 전자라면 기존 조건부 비율을 새로운 비중으로 재조합하는 계산을 할 수 있지만, 후자에서는 그 비율 자체를 다시 확인해야 합니다. 과거 집단별 보정도 미래 보정을 자동 보장하지 않습니다.
집단별 서로 다른 기준을 쓸지 여부는 이 장의 단일 공통 임계값 실습을 넘어선 정책 선택입니다. 기술적으로 비율을 맞출 수 있다는 사실과 그 조치의 정당성·법적 허용·운영 효과는 다른 판단입니다. 여기서는 먼저 공통 규칙이 누구에게 어떤 오류를 만들었는지 재현 가능한 장부로 보여 줍니다.
Good overall performance can coexist with little information about a subgroup. Intersecting categories creates small cells and undefined denominators quickly. Detailed auditing matters, but selecting only the largest gap among many comparisons adds selection uncertainty. Distinguish prespecified comparisons from exploration.
Shift can change group composition alone or change score-outcome relationships within groups. In the former case old conditional rates can be recombined under explicit assumptions; in the latter the rates themselves need reassessment. Historical group calibration does not guarantee future calibration.
Group-specific thresholds are a policy choice beyond this common-threshold lab. Technical rate matching, legitimacy, legal acceptability and operational effects are distinct questions. We first make the errors of one common rule visible and reproducible.
학부 심화 · 선택Advanced undergraduate · optional
실습: 알려진 집단·미상 집단·빈 분모Lab: known groups, unknown groups and empty denominators
여섯 카드에 A/B 집단을 붙이고 기준0.8로 계산합니다. A의TPR1·FPR1, B의TPR0·FPR0, PPV 격차 미정의를 확인합니다. 이어 기준0.4로 바꾸어 선택률·TPR·FPR·PPV 중 무엇이 가까워지고 멀어지는지 각 분모로 설명하세요.
f의 집단만 미상으로 바꿉니다. 전체 혼동행렬과 전체 비용은 그대로여야 하고 알려진 집단 질량5+미상 질량1=전체6이 되어야 합니다. B의 음성 분모가 줄어들면서 집단별 비율이 어떻게 달라지는지도 따로 읽습니다.
실제 개인·기업에서는 원집단 코드의 명칭과 값, 전체·집단 분모를 함께 확인합니다. 집단 구분은 훈련 특징과 다르므로 집단표를 숨겼다고 점수 적합이 바뀌지 않습니다. 결론은 관측 표본의 기술적 차이로 쓰고 원인·차별 판정으로 뛰어넘지 않습니다.
Attach A/B groups to the six cards at threshold 0.8. Verify A’s TPR/FPR one, B’s zero/zero and undefined PPV gap. Change threshold to 0.4 and explain through denominators which selection, TPR, FPR and PPV comparisons move closer or farther apart.
Make only f’s group unknown. Overall cells and cost must remain unchanged, with known mass five plus unknown mass one equaling six. Separately inspect the changed negative denominator in group B.
For actual people and companies, inspect native group labels and codes alongside overall and group denominators. Audit groups differ from fitting features, so hiding the audit table does not refit scores. Describe observed differences without converting them into causal or legal findings.
학부 심화 · 선택Advanced undergraduate · optional
국가 사례: 같은 해의 수명 구분과 네 개 시험 국가Country study: same-year life classification and four test countries
첫 사례는 보존한 세계은행 공개 응답에서2024년16개 국가의 기대수명·1인당 GDP·총GDP 증가율·CPI 상승률을 다시 읽습니다. 1인당 GDP는 불변2015USD/인이고, 두 증가율은 연간%입니다. 기대수명80년 이상을 Y=1로 구분합니다. 같은 해의 단면 지표를 사용하므로 다음 해 수명을 미리 예측한 실험도, GDP를 바꿨을 때 수명의 효과를 추정한 실험도 아닙니다.
고정 역할은 훈련9·검증3·시험4입니다. 훈련의 각 수치 특징 중앙값보다 큰지를 구분해 칸을 만들고, 칸마다 양성 수에1·전체 수에2를 더해 확률을 적합합니다. 같은 자료를 이용해 특징이나 α를 고르지 않으며 GDP 집단 코드는 사후 점검에만 사용합니다.
검증DEU·FRA·VNM에서 세 비용 시나리오 모두 기준3/4을 택합니다. 시험CAN·JPN·MEX·USA의 점수는3/4·3/4·1/4·3/4이고 Y는1·1·0·0입니다. 결과는TP2·FP1·FN0·TN1입니다. 오경보 단가를1에서5로 올리면 같은 행동의 시험 평균 비용이1/4에서5/4로 바뀝니다.
이 작은 표를 원자료·훈련 칸·검증 후보·시험 곡선·보정·집단별 장부로 이어 읽겠습니다. 시험4개만으로 일반 국가 순위나 정책의 타당성을 확정하지 않습니다. 원분수와 모든 국가의 관측 단위를 옆에 남겨 손으로 검산할 수 있게 합니다.
국가 전체 사례: 원관측에서 행동의 오류까지
1. 원관측·역할·제외를 모두 추적하기
이 표는 필요한 원 X·원표적·파생Y·집단·예정 역할·분석 역할을 모두 보여 줍니다. 집단이 미상이면 전체 채점에서 자동 제외하지 않습니다. 원 가중치는 연결 파일에 보존하며 이번 분석 질량은 모두1입니다. 행 위치는 시간이 아닙니다.
X 순서는GDP/인·총GDP 증가율·CPI이며 원표적은 기대수명입니다. GDP 집단 경계25,000은 교육용 구분으로 공식 세계은행 소득 등급이 아닙니다.
2. 훈련에서만 배운 변환·칸·한 행 풀이
CAN의 원 GDP는45,061.3864587285불변2015USD/인, 성장률2.04626605401701%, CPI2.38158383281173%입니다. 훈련 중앙값은 각각 약13,119.1076·3.419315·3.166567입니다. 따라서 엄격한 큰가 비교는(1,0,0)입니다. 이 훈련 칸의2국 모두 Y=1이어서 α=1 확률은(2+1)/(2+2)=3/4입니다. CAN은 시험 행이므로 그 훈련2국에는 포함되지 않습니다. Y=1의 행 Brier는(3/4−1)²=1/16이고, 검증에서 정한 기준3/4에서는 TP가 됩니다.
고정 훈련 중앙값·범주 열은 미적용
특징 번호
원범주 유지
훈련 행
중앙값
단위
0
0
9
≈ 13119.1132797769024879/2500000000
constant2015USD/person
1
0
9
≈ 3.419315170965758250953/50000000000000
annualPercent
2
0
9
≈ 3.166567316656665428797/100000000000000
annualPercent
모든 훈련 칸과 미관측 칸 대체 확률
변환 칸
훈련 행
양성 행
칸 확률
전체훈련 대체
1|0|0
2
2
3/4
5/11
0|0|1
2
0
1/4
5/11
0|1|0
2
0
1/4
5/11
1|0|1
1
1
2/3
5/11
0|1|1
1
0
1/3
5/11
1|1|0
1
1
2/3
5/11
평활화α1과 전체 특징은 고정입니다. 집단 코드는 칸을 만드는 특징이 아닙니다. 적격 시험 행의 전처리에 시험값을 보태거나, 제외 행을0점수로 채우지 않습니다.
3. 검증에서 모든 후보를 비교한 뒤 선택하기
국가 · 검증 후보의 가정 비용 · 비용1/1·1/5·5/1은 교육용 가정입니다. 선택은 검증에서만 하며 시험 성능을 최소화하지 않습니다. 벡터 원본 확대 · 고해상도 PNG
세 가설 비용의 모든 검증 후보
비용 시나리오
후보
정책
기준
선택
TP
FP
FN
TN
평균 비용
TPR
FPR
정밀도
equal
0
always-negative
미정의·결측
0
0
0
2
1
2/3
0
0
미정의·결측
equal
1
threshold
3/4
1
2
0
0
1
0
1
0
1
equal
2
threshold
1/3
0
2
1
0
0
1/3
1
1
2/3
miss-five
0
always-negative
미정의·결측
0
0
0
2
1
10/3
0
0
미정의·결측
miss-five
1
threshold
3/4
1
2
0
0
1
0
1
0
1
miss-five
2
threshold
1/3
0
2
1
0
0
1/3
1
1
2/3
alarm-five
0
always-negative
미정의·결측
0
0
0
2
1
2/3
0
0
미정의·결측
alarm-five
1
threshold
3/4
1
2
0
0
1
0
1
0
1
alarm-five
2
threshold
1/3
0
2
1
0
0
5/3
1
1
2/3
최초의 정확한 최소 비용 후보를 선언 순서대로 택합니다. 늘 음성 정책의 빈 수치 기준은 결측 오류가 아니라 숫자 임계값을 쓰지 않는 정책이라는 뜻입니다. 시나리오마다 비용표가 다르므로 그 최솟값끼리 모형 우열을 단정하지 않습니다.
4. 고정 정책의 시험 채점·모든 원행 점수
국가 · 시험의 원표적과 고정 확률 · 가로축은 시간이 아닌 시험 원순서입니다. 원관측 Y와 훈련 적합 확률을 구분합니다. 벡터 원본 확대 · 고해상도 PNG
시험의 모든 비율·가정 비용·곡선·보정 요약
시나리오
양
정확 값
단위
equal
TP
2
rows
equal
FP
1
rows
equal
FN
0
rows
equal
TN
1
rows
equal
mass
4
rows
equal
positiveTargetMass
2
rows
equal
negativeTargetMass
2
rows
equal
predictedPositiveMass
3
rows
equal
predictedNegativeMass
1
rows
equal
prevalence
1/2
dimensionless
equal
selectionRate
3/4
dimensionless
equal
accuracy
3/4
dimensionless
equal
precision
2/3
dimensionless
equal
negativePredictiveValue
1
dimensionless
equal
TPR
1
dimensionless
equal
FPR
1/2
dimensionless
equal
TNR
1/2
dimensionless
equal
FNR
0
dimensionless
equal
F1
4/5
dimensionless
equal
balancedAccuracy
3/4
dimensionless
전체 99행 중 첫20행 · 페이지로 전체를 읽습니다.
모든 원행의 확률·제외 표 펼치기
원행별 고정 확률·훈련과 보유 역할 구분
ID
원행
역할
사용
Y
확률
미관측 칸
변환 X
제외 이유
AUS:2024
1
train
1
1
3/4
0
1|0|0
미정의·결측
BRA:2024
2
train
1
0
1/4
0
0|0|1
미정의·결측
CAN:2024
3
test
1
1
3/4
0
1|0|0
미정의·결측
CHN:2024
4
train
1
0
1/4
0
0|1|0
미정의·결측
DEU:2024
5
validation
1
1
3/4
0
1|0|0
미정의·결측
FRA:2024
6
validation
1
1
3/4
0
1|0|0
미정의·결측
GBR:2024
7
train
1
1
2/3
0
1|0|1
미정의·결측
IDN:2024
8
train
1
0
1/4
0
0|1|0
미정의·결측
IND:2024
9
train
1
0
1/3
0
0|1|1
미정의·결측
JPN:2024
10
test
1
1
3/4
0
1|0|0
미정의·결측
KOR:2024
11
train
1
1
3/4
0
1|0|0
미정의·결측
MEX:2024
12
test
1
0
1/4
0
0|0|1
미정의·결측
SGP:2024
13
train
1
1
2/3
0
1|1|0
미정의·결측
USA:2024
14
test
1
0
3/4
0
1|0|0
미정의·결측
VNM:2024
15
validation
1
0
1/3
0
0|1|1
미정의·결측
ZAF:2024
16
train
1
0
1/4
0
0|0|1
미정의·결측
이 표의 훈련 행 점수는 적합에 참여한 행의 점수이며 보유 시험 점수와 같은 외부 평가로 해석하지 않습니다. 검증은 정책 선택, 시험은 선택 이후 채점이라는 역할을 유지합니다. 제외 행의 빈 확률은0이 아닙니다.
5. 원점수 순위·확률의 보정 진단
국가 · ROC 관측점과 연결 · 동점은 한 묶음입니다. 점 연결은 ROC 보간이며 모든 중간점이 결정적 임계값은 아닙니다. 벡터 원본 확대 · 고해상도 PNG국가 · PR 관측점 · 관측 정밀도만 점으로 표시합니다. 미선택 시작점은 미정의입니다. AP는 표의 오른쪽 계단 정의로 별도 계산합니다. 벡터 원본 확대 · 고해상도 PNG
시험의 모든 동점 묶음·정의된 정밀도
점
정책
기준
TP
FP
FN
TN
TPR
FPR
정밀도
0
always-negative
미정의·결측
0
0
2
2
0
0
미정의·결측
1
threshold
3/4
2
1
0
1
1
1/2
2/3
2
threshold
1/4
2
2
0
0
1
1
1/2
국가 · 이진 사건 신뢰도 진단 · 선언한 구간의 평균과 행 수로 읽습니다. 빈 구간은 점을 만들지 않습니다. 이진 사건 진단이며 확률 재적합이 아닙니다. 벡터 원본 확대 · 고해상도 PNG
이진 사건 보정 구간·전체 Brier의 내부 항
구간
왼쪽
오른쪽
행
질량
평균 확률
사건 비중
차이
점수 분산
점수·Y 공분산
내부 보정항
0
0
1/5
0
0
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
1
1/5
2/5
1
1
1/4
0
1/4
0
0
0
2
2/5
3/5
0
0
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
3
3/5
4/5
3
3
3/4
2/3
1/12
0
0
0
4
4/5
1
0
0
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
경계는 왼쪽을 포함하며 마지막1만 오른쪽에도 포함합니다. 빈 구간은 평균과 점을 발명하지 않습니다. 총Brier는 불확실성−분리+신뢰도+내부 보정항으로 복원되고 잔차는0입니다. 이 표는 확률 보정 지도를 적합한 결과가 아닙니다.
6. 집단별 원분모·조건부 비율·해석의 한계
국가 · 집단별 참 양성률 · 같은 정책의 관측 집단 비율입니다. 분모와 미정의를 표에서 확인하며 원인·법적 판정으로 해석하지 않습니다. 벡터 원본 확대 · 고해상도 PNG
그림의 가로축 눈금은 원 집단 코드입니다. 점 좌표 파일의 x는 선언된 집단 순서 위치이며 태그에 원 코드를 함께 보존합니다. 양성 분모가 없는 집단의 TPR 막대는0이 아니라 미정의로 생략합니다.
전체·알려진 집단·미상 집단의 원분모
시나리오
범위
집단
유지 행
전체 질량
양성
음성
선택
TP
FP
FN
TN
equal
overall
all
4
4
2
2
3
2
1
0
1
equal
known
1
3
3
2
1
3
2
1
0
0
equal
known
0
1
1
0
1
0
0
0
0
1
equal
unknown
미정의·결측
0
0
0
0
0
0
0
0
0
miss-five
overall
all
4
4
2
2
3
2
1
0
1
miss-five
known
1
3
3
2
1
3
2
1
0
0
miss-five
known
0
1
1
0
1
0
0
0
0
1
miss-five
unknown
미정의·결측
0
0
0
0
0
0
0
0
0
alarm-five
overall
all
4
4
2
2
3
2
1
0
1
alarm-five
known
1
3
3
2
1
3
2
1
0
0
alarm-five
known
0
1
1
0
1
0
0
0
0
1
alarm-five
unknown
미정의·결측
0
0
0
0
0
0
0
0
0
같은 정책의 집단별 조건부 비율·가정 비용
시나리오
범위
집단
양성 비중
선택률
TPR
FPR
정밀도
정확도
평균 비용
equal
overall
all
1/2
3/4
1
1/2
2/3
3/4
1/4
equal
known
1
2/3
1
1
1
2/3
2/3
1/3
equal
known
0
0
0
미정의·결측
0
미정의·결측
1
0
equal
unknown
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
miss-five
overall
all
1/2
3/4
1
1/2
2/3
3/4
1/4
miss-five
known
1
2/3
1
1
1
2/3
2/3
1/3
miss-five
known
0
0
0
미정의·결측
0
미정의·결측
1
0
miss-five
unknown
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
alarm-five
overall
all
1/2
3/4
1
1/2
2/3
3/4
5/4
alarm-five
known
1
2/3
1
1
1
2/3
2/3
5/3
alarm-five
known
0
0
0
미정의·결측
0
미정의·결측
1
0
alarm-five
unknown
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
관측 비율의 차이는 그 조건부 장부의 차이입니다. 정책의 인과효과·차별의 원인·법적 적정성을 확정하지 않습니다. 미상 집단은 전체에 남고 알려진 합+미상 합=전체를 확인합니다. 정의되지 않은 집단 비율을0으로 바꾸어 격차를 만들지 않습니다.
The first study rereads retained World Bank public responses for sixteen countries in 2024: life expectancy, GDP per person, total GDP growth and CPI inflation. GDP per person is in constant-2015 USD/person; growth and inflation are annual percentages. Y indicates life expectancy at least eighty years. Same-year cross-sectional classification is neither next-year forecasting nor a causal effect of changing GDP.
A fixed schedule assigns nine training, three validation and four test countries. Training medians bin numeric predictors, and each cell estimates probability by adding one positive and two total observations. Predictors and alpha are fixed; the GDP audit group is not a fitting predictor.
Validation countries DEU, FRA and VNM select threshold three quarters in all three cost scenarios. Test scores for CAN, JPN, MEX and USA are 3/4, 3/4, 1/4 and 3/4 against targets 1,1,0,0. Cells are TP two, FP one, FN zero and TN one. Raising only the false-alarm unit cost from one to five changes mean test cost from one quarter to five quarters.
Follow native observations through fitted cells, validation candidates, test curves, reliability and group ledgers. Four test countries cannot settle general country rankings or policy validity. Fractions and observation units support a complete hand audit.
Country full study: observations through action errors
1. Trace every native observation, role and exclusion
This table retains required native predictors, native outcome, constructed target, audit group, planned role and analytic role. Missing group alone does not remove a row from overall scoring. Native weights remain in linked files; analytical masses are all one. Row position is not time.
Expand all native rows and roles
Required native fields, outcomes and complete roles
X order is GDP/person, total GDP growth and CPI; the native target is life expectancy. The 25,000 GDP audit split is educational, not an official World Bank income class.
2. Training-only transformations, cells and a worked row
CAN has native GDP 45,061.3864587285 constant-2015 USD/person, growth 2.04626605401701% and CPI 2.38158383281173%. Training medians are about 13,119.1076, 3.419315 and 3.166567. Strict greater-than comparisons yield (1,0,0). Both training countries in that cell have Y=1, giving alpha-one probability (2+1)/(2+2)=3/4. Held CAN is not one of those two training countries. Its Y=1 Brier is 1/16 and threshold 3/4 makes it TP.
Fixed training medians; inapplicable to categorical columns
Feature index
Native category
Training rows
Median
Unit
0
0
9
≈ 13119.1132797769024879/2500000000
constant2015USD/person
1
0
9
≈ 3.419315170965758250953/50000000000000
annualPercent
2
0
9
≈ 3.166567316656665428797/100000000000000
annualPercent
Every training cell and unseen-cell fallback
Transformed cell
Training rows
Positive rows
Cell probability
Global-training fallback
1|0|0
2
2
3/4
5/11
0|0|1
2
0
1/4
5/11
0|1|0
2
0
1/4
5/11
1|0|1
1
1
2/3
5/11
0|1|1
1
0
1/3
5/11
1|1|0
1
1
2/3
5/11
Alpha one and all predictors are fixed. Audit group is not a cell feature. Neither add held values to preprocessing nor fill exclusions with score zero.
3. Compare all validation candidates before selecting
Country · Assumed validation candidate costs · Cost ratios1/1,1/5,5/1 are teaching assumptions. Selection uses validation only, not minimum test cost. Enlarge vector original · High-resolution PNG
Every validation candidate for three hypothetical costs
Cost scenario
Candidate
Policy
Threshold
Selected
TP
FP
FN
TN
Mean cost
TPR
FPR
Precision
equal
0
always-negative
Undefined / missing
0
0
0
2
1
2/3
0
0
Undefined / missing
equal
1
threshold
3/4
1
2
0
0
1
0
1
0
1
equal
2
threshold
1/3
0
2
1
0
0
1/3
1
1
2/3
miss-five
0
always-negative
Undefined / missing
0
0
0
2
1
10/3
0
0
Undefined / missing
miss-five
1
threshold
3/4
1
2
0
0
1
0
1
0
1
miss-five
2
threshold
1/3
0
2
1
0
0
1/3
1
1
2/3
alarm-five
0
always-negative
Undefined / missing
0
0
0
2
1
2/3
0
0
Undefined / missing
alarm-five
1
threshold
3/4
1
2
0
0
1
0
1
0
1
alarm-five
2
threshold
1/3
0
2
1
0
0
5/3
1
1
2/3
The earliest exact minimum wins in declared order. A blank numeric threshold for always-negative denotes a nonnumeric policy, not missing input. Different scenario losses are different objectives, not a direct model-quality ranking.
4. Fixed-policy test assessment and every native-row score
Country · Test outcomes and fixed scores · The horizontal axis is test source order, not time. Distinguish observed Y from training-fitted probabilities. Enlarge vector original · High-resolution PNG
Every test rate, assumed cost, curve and calibration summary
Scenario
Quantity
Exact value
Unit
equal
TP
2
rows
equal
FP
1
rows
equal
FN
0
rows
equal
TN
1
rows
equal
mass
4
rows
equal
positiveTargetMass
2
rows
equal
negativeTargetMass
2
rows
equal
predictedPositiveMass
3
rows
equal
predictedNegativeMass
1
rows
equal
prevalence
1/2
dimensionless
equal
selectionRate
3/4
dimensionless
equal
accuracy
3/4
dimensionless
equal
precision
2/3
dimensionless
equal
negativePredictiveValue
1
dimensionless
equal
TPR
1
dimensionless
equal
FPR
1/2
dimensionless
equal
TNR
1/2
dimensionless
equal
FNR
0
dimensionless
equal
F1
4/5
dimensionless
equal
balancedAccuracy
3/4
dimensionless
First 20 of 99 rows; use pages to read every row.
Expand probabilities and exclusions for every native row
Fixed probabilities with fitting and held roles distinguished
ID
Source row
Role
Eligible
Y
Probability
Unseen cell
Transformed X
Exclusion reason
AUS:2024
1
train
1
1
3/4
0
1|0|0
Undefined / missing
BRA:2024
2
train
1
0
1/4
0
0|0|1
Undefined / missing
CAN:2024
3
test
1
1
3/4
0
1|0|0
Undefined / missing
CHN:2024
4
train
1
0
1/4
0
0|1|0
Undefined / missing
DEU:2024
5
validation
1
1
3/4
0
1|0|0
Undefined / missing
FRA:2024
6
validation
1
1
3/4
0
1|0|0
Undefined / missing
GBR:2024
7
train
1
1
2/3
0
1|0|1
Undefined / missing
IDN:2024
8
train
1
0
1/4
0
0|1|0
Undefined / missing
IND:2024
9
train
1
0
1/3
0
0|1|1
Undefined / missing
JPN:2024
10
test
1
1
3/4
0
1|0|0
Undefined / missing
KOR:2024
11
train
1
1
3/4
0
1|0|0
Undefined / missing
MEX:2024
12
test
1
0
1/4
0
0|0|1
Undefined / missing
SGP:2024
13
train
1
1
2/3
0
1|1|0
Undefined / missing
USA:2024
14
test
1
0
3/4
0
1|0|0
Undefined / missing
VNM:2024
15
validation
1
0
1/3
0
0|1|1
Undefined / missing
ZAF:2024
16
train
1
0
1/4
0
0|0|1
Undefined / missing
Training-row scores belong to observations used for fitting and are not external held-test assessment. Validation selects the policy; test assesses after choice. Blank excluded probabilities are not zeros.
5. Ranking and probability diagnostics of unchanged scores
Country · ROC points and connections · Ties enter together. ROC interpolation does not make every intermediate point a deterministic threshold. Enlarge vector original · High-resolution PNGCountry · Observed PR operating points · Only observed precision points are plotted; nobody-selected precision is undefined. AP uses the separately tabulated right-step definition. Enlarge vector original · High-resolution PNG
Every test tied block and observed precision
Point
Policy
Threshold
TP
FP
FN
TN
TPR
FPR
Precision
0
always-negative
Undefined / missing
0
0
2
2
0
0
Undefined / missing
1
threshold
3/4
2
1
0
1
1
1/2
2/3
2
threshold
1/4
2
2
0
0
1
1
1/2
Country · Binary-event reliability · Read declared bin means and row counts. Empty bins create no points. This binary-event diagnostic does not refit probabilities. Enlarge vector original · High-resolution PNG
Binary-event bins and within-bin Brier terms
Bin
Left
Right
Rows
Mass
Mean probability
Event rate
Gap
Score variance
Score/Y covariance
Within-bin correction
0
0
1/5
0
0
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
1
1/5
2/5
1
1
1/4
0
1/4
0
0
0
2
2/5
3/5
0
0
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
3
3/5
4/5
3
3
3/4
2/3
1/12
0
0
0
4
4/5
1
0
0
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Bins include the left endpoint, with one included in the final right endpoint. Empty bins invent neither means nor points. Uncertainty minus resolution plus reliability plus the within-bin term restores Brier with zero residual. No calibration mapping is fitted.
6. Group denominators, conditional rates and interpretation limits
Country · True positive rates by group · These are descriptive group rates under the same policy. Inspect denominators and undefined rates; no causal or legal certificate. Enlarge vector original · High-resolution PNG
Plot ticks display native group codes. The point file’s x is declared group position and its tag retains the native code. A group with no positive denominator has an undefined, omitted TPR bar, not a zero bar.
Overall, known and unknown group denominators
Scenario
Scope
Group
Retained rows
Mass
Positive
Negative
Selected
TP
FP
FN
TN
equal
overall
all
4
4
2
2
3
2
1
0
1
equal
known
1
3
3
2
1
3
2
1
0
0
equal
known
0
1
1
0
1
0
0
0
0
1
equal
unknown
Undefined / missing
0
0
0
0
0
0
0
0
0
miss-five
overall
all
4
4
2
2
3
2
1
0
1
miss-five
known
1
3
3
2
1
3
2
1
0
0
miss-five
known
0
1
1
0
1
0
0
0
0
1
miss-five
unknown
Undefined / missing
0
0
0
0
0
0
0
0
0
alarm-five
overall
all
4
4
2
2
3
2
1
0
1
alarm-five
known
1
3
3
2
1
3
2
1
0
0
alarm-five
known
0
1
1
0
1
0
0
0
0
1
alarm-five
unknown
Undefined / missing
0
0
0
0
0
0
0
0
0
Group conditional rates and assumed costs under one policy
Scenario
Scope
Group
Prevalence
Selection rate
TPR
FPR
Precision
Accuracy
Mean cost
equal
overall
all
1/2
3/4
1
1/2
2/3
3/4
1/4
equal
known
1
2/3
1
1
1
2/3
2/3
1/3
equal
known
0
0
0
Undefined / missing
0
Undefined / missing
1
0
equal
unknown
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
miss-five
overall
all
1/2
3/4
1
1/2
2/3
3/4
1/4
miss-five
known
1
2/3
1
1
1
2/3
2/3
1/3
miss-five
known
0
0
0
Undefined / missing
0
Undefined / missing
1
0
miss-five
unknown
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
alarm-five
overall
all
1/2
3/4
1
1/2
2/3
3/4
5/4
alarm-five
known
1
2/3
1
1
1
2/3
2/3
5/3
alarm-five
known
0
0
0
Undefined / missing
0
Undefined / missing
1
0
alarm-five
unknown
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Differences describe these conditional ledgers, not intervention effects, causes of discrimination or legal acceptability. Unknown groups remain overall; check known plus unknown mass equals overall. Do not manufacture gaps by substituting zero for undefined rates.
7. Every plotted coordinate and public reproduction inputs
Expand every original rational plot coordinate
Chart, series, rational coordinates and observed/model tags
Chart
Series
Index
x
y
x unit
y unit
ID / tag
roc
ROC
0
0
0
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
0
0
Undefined / missing
dimensionless
dimensionless
Undefined / missing
roc
ROC
1
1/2
1
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
1
1
2/3
dimensionless
dimensionless
Undefined / missing
roc
ROC
2
1
1
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
2
1
1/2
dimensionless
dimensionless
Undefined / missing
reliability
Binary event rate
0
Undefined / missing
Undefined / missing
dimensionless
dimensionless
rows=0
reliability
Binary event rate
1
1/4
0
dimensionless
dimensionless
rows=1
reliability
Binary event rate
2
Undefined / missing
Undefined / missing
dimensionless
dimensionless
rows=0
reliability
Binary event rate
3
3/4
2/3
dimensionless
dimensionless
rows=3
reliability
Binary event rate
4
Undefined / missing
Undefined / missing
dimensionless
dimensionless
rows=0
test-scores
Training-fitted probability
0
1
3/4
test-row position
probability
CAN:2024
test-scores
Observed Y
0
1
1
test-row position
binary target
CAN:2024
test-scores
Training-fitted probability
1
2
3/4
test-row position
probability
JPN:2024
test-scores
Observed Y
1
2
1
test-row position
binary target
JPN:2024
test-scores
Training-fitted probability
2
3
1/4
test-row position
probability
MEX:2024
test-scores
Observed Y
2
3
0
test-row position
binary target
MEX:2024
test-scores
Training-fitted probability
3
4
3/4
test-row position
probability
USA:2024
test-scores
Observed Y
3
4
0
test-row position
binary target
USA:2024
validation-cost
equal
0
0
2/3
candidate index
hypothetical cost units/mass
always-negative
First 20 of 34 rows; use pages to read every row.
Long fractions expand and long tables page through twenty rows. All rows remain in this same body. To recompute from factual inputs, use ml14-study.py · ml14-study.R.
개인 사례: 원 임금 단위와 역사적 집단 코드Person study: native wage units and a historical group code
개인 자료는 Card가 공개한 NLS 원자료3,613행·52개 필드를 보존합니다. wage76은1976년 명목 센트/시간이며 Y는500이상 여부입니다. 오늘날의 실질 구매력이나 생애 소득을 뜻하지 않습니다. 교육연수·1976년 나이·4년제 대학 근접 원 코드를 예측 특징으로 사용합니다.
필요한 X·Y가 없는596행은 원 ID·예정 역할·제외 사유를 보존하며 점수와 평가를 미정의로 둡니다. 사용 가능한3,017행의 역할은 훈련1,790·검증620·시험607입니다. 원 가중치 필드는 남기지만 이 예의 분석 질량은 모두1입니다. 이를 원논문의 가중 추정이나 인과 임금 수익률 복제라고 부르지 않습니다.
동일 비용의 검증 선택 기준201/326은 시험에서TP197·FP89·FN142·TN179를 만듭니다. 놓침 비용5의 기준21/58은 시험607명 모두를 선택합니다. 오경보 비용5의 기준25/33은TP84·FP7·FN255·TN261입니다. 단가 가정이 사람에게 실제로 전달될 행동 수를 크게 바꿀 수 있음을 보여 줍니다.
집단 점검에는 원 black 코드를 그대로 사용합니다. 역사 자료의 기록 의미와 표본 범위를 읽고, 각 집단의 조건부 분모·양성 비중·오류를 비교합니다. 표만으로 개인 정체성을 추정하거나 차이의 원인을 확정하지 않습니다.
개인 전체 사례: 원관측에서 행동의 오류까지
1. 원관측·역할·제외를 모두 추적하기
이 표는 필요한 원 X·원표적·파생Y·집단·예정 역할·분석 역할을 모두 보여 줍니다. 집단이 미상이면 전체 채점에서 자동 제외하지 않습니다. 원 가중치는 연결 파일에 보존하며 이번 분석 질량은 모두1입니다. 행 위치는 시간이 아닙니다.
전체 원행·역할 표 펼치기
필요 원필드·원표적·전체 역할
ID
원행
원 ID
원 X·선언 순서
원표적
Y
집단
예정 역할
분석 역할
사용
제외 이유
person:1
1
2
7|29|0
548
1
1
train
train
1
미정의·결측
person:2
2
3
12|27|0
481
0
0
train
train
1
미정의·결측
person:3
3
4
12|34|0
721
1
0
train
train
1
미정의·결측
person:4
4
5
11|27|1
250
0
0
test
test
1
미정의·결측
person:5
5
6
12|34|1
729
1
0
validation
validation
1
미정의·결측
person:6
6
7
12|26|1
500
1
0
test
test
1
미정의·결측
person:7
7
8
18|33|1
565
1
0
train
train
1
미정의·결측
person:8
8
9
14|29|1
608
1
0
validation
validation
1
미정의·결측
person:9
9
10
12|28|1
425
0
0
train
train
1
미정의·결측
person:10
10
11
12|29|1
515
1
0
train
train
1
미정의·결측
person:11
11
12
9|28|1
225
0
0
train
train
1
미정의·결측
person:12
12
13
12|26|1
400
0
0
validation
validation
1
미정의·결측
person:13
13
14
11|24|1
417
0
0
validation
validation
1
미정의·결측
person:14
14
15
11|30|1
217
0
0
validation
validation
1
미정의·결측
person:15
15
16
16|31|1
894
1
1
validation
validation
1
미정의·결측
person:16
16
17
14|24|1
300
0
0
train
train
1
미정의·결측
person:17
17
18
11|34|1
미정의·결측
미정의·결측
0
train
excluded
0
required-X-or-Y-missing
person:18
18
19
12|34|1
346
0
0
test
test
1
미정의·결측
person:19
19
20
14|29|1
658
1
0
test
test
1
미정의·결측
person:20
20
22
10|26|1
575
1
0
train
train
1
미정의·결측
전체 3613행 중 첫20행 · 페이지로 전체를 읽습니다.
X 순서는교육연수·1976년 나이·nearc4이며 원표적은1976년 명목 센트/시간입니다. black은 해당 역사 자료의 원 집단 코드이고 개인의 현재 정체성을 추정한 값이 아닙니다.
2. 훈련에서만 배운 변환·칸·한 행 풀이
원자료4행·원 id5는 교육11년·나이27년·대학 근접1·1976년 임금250센트/시간입니다. Y=0이고 훈련 중앙값13년·28년으로 바꾸면 셀(0,0,1)입니다. 훈련400명 중211명이 Y=1인 칸이므로 확률은(211+1)/(400+2)=106/201입니다. 이 시험 행의 Brier는11236/40401입니다. 동일 비용 기준201/326보다 낮아 TN, 놓침 비용5의 기준21/58보다 높아 FP, 오경보 비용5의 기준25/33보다 낮아 TN입니다. 원 id5와 원자료4행을 혼동하지 마세요.
고정 훈련 중앙값·범주 열은 미적용
특징 번호
원범주 유지
훈련 행
중앙값
단위
0
0
1790
13
years
1
0
1790
28
years
2
1
1790
미정의·결측
nativeCategory
모든 훈련 칸과 미관측 칸 대체 확률
변환 칸
훈련 행
양성 행
칸 확률
전체훈련 대체
0|1|0
148
71
12/25
131/224
0|0|0
230
83
21/58
131/224
1|1|1
237
196
197/239
131/224
0|0|1
400
211
106/201
131/224
0|1|1
266
178
179/268
131/224
1|0|1
324
200
201/326
131/224
1|0|0
121
59
20/41
131/224
1|1|0
64
49
25/33
131/224
평활화α1과 전체 특징은 고정입니다. 집단 코드는 칸을 만드는 특징이 아닙니다. 적격 시험 행의 전처리에 시험값을 보태거나, 제외 행을0점수로 채우지 않습니다.
3. 검증에서 모든 후보를 비교한 뒤 선택하기
개인 · 검증 후보의 가정 비용 · 비용1/1·1/5·5/1은 교육용 가정입니다. 선택은 검증에서만 하며 시험 성능을 최소화하지 않습니다. 벡터 원본 확대 · 고해상도 PNG
세 가설 비용의 모든 검증 후보
비용 시나리오
후보
정책
기준
선택
TP
FP
FN
TN
평균 비용
TPR
FPR
정밀도
equal
0
always-negative
미정의·결측
0
0
0
347
273
347/620
0
0
미정의·결측
equal
1
threshold
197/239
0
68
11
279
262
29/62
68/347
11/273
68/79
equal
2
threshold
25/33
0
91
15
256
258
271/620
91/347
5/91
91/106
equal
3
threshold
179/268
0
156
47
191
226
119/310
156/347
47/273
156/203
equal
4
threshold
201/326
1
215
101
132
172
233/620
215/347
101/273
215/316
equal
5
threshold
106/201
0
271
174
76
99
25/62
271/347
58/91
271/445
equal
6
threshold
20/41
0
289
203
58
70
261/620
289/347
29/39
289/492
equal
7
threshold
12/25
0
315
233
32
40
53/124
315/347
233/273
315/548
equal
8
threshold
21/58
0
347
273
0
0
273/620
1
1
347/620
miss-five
0
always-negative
미정의·결측
0
0
0
347
273
347/124
0
0
미정의·결측
miss-five
1
threshold
197/239
0
68
11
279
262
703/310
68/347
11/273
68/79
miss-five
2
threshold
25/33
0
91
15
256
258
259/124
91/347
5/91
91/106
miss-five
3
threshold
179/268
0
156
47
191
226
501/310
156/347
47/273
156/203
miss-five
4
threshold
201/326
0
215
101
132
172
761/620
215/347
101/273
215/316
miss-five
5
threshold
106/201
0
271
174
76
99
277/310
271/347
58/91
271/445
miss-five
6
threshold
20/41
0
289
203
58
70
493/620
289/347
29/39
289/492
miss-five
7
threshold
12/25
0
315
233
32
40
393/620
315/347
233/273
315/548
miss-five
8
threshold
21/58
1
347
273
0
0
273/620
1
1
347/620
alarm-five
0
always-negative
미정의·결측
0
0
0
347
273
347/620
0
0
미정의·결측
alarm-five
1
threshold
197/239
0
68
11
279
262
167/310
68/347
11/273
68/79
alarm-five
2
threshold
25/33
1
91
15
256
258
331/620
91/347
5/91
91/106
alarm-five
3
threshold
179/268
0
156
47
191
226
213/310
156/347
47/273
156/203
alarm-five
4
threshold
201/326
0
215
101
132
172
637/620
215/347
101/273
215/316
alarm-five
5
threshold
106/201
0
271
174
76
99
473/310
271/347
58/91
271/445
alarm-five
6
threshold
20/41
0
289
203
58
70
1073/620
289/347
29/39
289/492
alarm-five
7
threshold
12/25
0
315
233
32
40
1197/620
315/347
233/273
315/548
alarm-five
8
threshold
21/58
0
347
273
0
0
273/124
1
1
347/620
최초의 정확한 최소 비용 후보를 선언 순서대로 택합니다. 늘 음성 정책의 빈 수치 기준은 결측 오류가 아니라 숫자 임계값을 쓰지 않는 정책이라는 뜻입니다. 시나리오마다 비용표가 다르므로 그 최솟값끼리 모형 우열을 단정하지 않습니다.
4. 고정 정책의 시험 채점·모든 원행 점수
개인 · 시험의 원표적과 고정 확률 · 가로축은 시간이 아닌 시험 원순서입니다. 원관측 Y와 훈련 적합 확률을 구분합니다. 벡터 원본 확대 · 고해상도 PNG
시험의 모든 비율·가정 비용·곡선·보정 요약
시나리오
양
정확 값
단위
equal
TP
197
rows
equal
FP
89
rows
equal
FN
142
rows
equal
TN
179
rows
equal
mass
607
rows
equal
positiveTargetMass
339
rows
equal
negativeTargetMass
268
rows
equal
predictedPositiveMass
286
rows
equal
predictedNegativeMass
321
rows
equal
prevalence
339/607
dimensionless
equal
selectionRate
286/607
dimensionless
equal
accuracy
376/607
dimensionless
equal
precision
197/286
dimensionless
equal
negativePredictiveValue
179/321
dimensionless
equal
TPR
197/339
dimensionless
equal
FPR
89/268
dimensionless
equal
TNR
179/268
dimensionless
equal
FNR
142/339
dimensionless
equal
F1
394/625
dimensionless
equal
balancedAccuracy
113477/181704
dimensionless
전체 99행 중 첫20행 · 페이지로 전체를 읽습니다.
모든 원행의 확률·제외 표 펼치기
원행별 고정 확률·훈련과 보유 역할 구분
ID
원행
역할
사용
Y
확률
미관측 칸
변환 X
제외 이유
person:1
1
train
1
1
12/25
0
0|1|0
미정의·결측
person:2
2
train
1
0
21/58
0
0|0|0
미정의·결측
person:3
3
train
1
1
12/25
0
0|1|0
미정의·결측
person:4
4
test
1
0
106/201
0
0|0|1
미정의·결측
person:5
5
validation
1
1
179/268
0
0|1|1
미정의·결측
person:6
6
test
1
1
106/201
0
0|0|1
미정의·결측
person:7
7
train
1
1
197/239
0
1|1|1
미정의·결측
person:8
8
validation
1
1
197/239
0
1|1|1
미정의·결측
person:9
9
train
1
0
106/201
0
0|0|1
미정의·결측
person:10
10
train
1
1
179/268
0
0|1|1
미정의·결측
person:11
11
train
1
0
106/201
0
0|0|1
미정의·결측
person:12
12
validation
1
0
106/201
0
0|0|1
미정의·결측
person:13
13
validation
1
0
106/201
0
0|0|1
미정의·결측
person:14
14
validation
1
0
179/268
0
0|1|1
미정의·결측
person:15
15
validation
1
1
197/239
0
1|1|1
미정의·결측
person:16
16
train
1
0
201/326
0
1|0|1
미정의·결측
person:17
17
excluded
0
미정의·결측
미정의·결측
미정의·결측
미정의·결측
required-X-or-Y-missing
person:18
18
test
1
0
179/268
0
0|1|1
미정의·결측
person:19
19
test
1
1
197/239
0
1|1|1
미정의·결측
person:20
20
train
1
1
106/201
0
0|0|1
미정의·결측
전체 3613행 중 첫20행 · 페이지로 전체를 읽습니다.
이 표의 훈련 행 점수는 적합에 참여한 행의 점수이며 보유 시험 점수와 같은 외부 평가로 해석하지 않습니다. 검증은 정책 선택, 시험은 선택 이후 채점이라는 역할을 유지합니다. 제외 행의 빈 확률은0이 아닙니다.
5. 원점수 순위·확률의 보정 진단
개인 · ROC 관측점과 연결 · 동점은 한 묶음입니다. 점 연결은 ROC 보간이며 모든 중간점이 결정적 임계값은 아닙니다. 벡터 원본 확대 · 고해상도 PNG개인 · PR 관측점 · 관측 정밀도만 점으로 표시합니다. 미선택 시작점은 미정의입니다. AP는 표의 오른쪽 계단 정의로 별도 계산합니다. 벡터 원본 확대 · 고해상도 PNG
시험의 모든 동점 묶음·정의된 정밀도
점
정책
기준
TP
FP
FN
TN
TPR
FPR
정밀도
0
always-negative
미정의·결측
0
0
339
268
0
0
미정의·결측
1
threshold
197/239
62
7
277
261
62/339
7/268
62/69
2
threshold
25/33
84
7
255
261
28/113
7/268
12/13
3
threshold
179/268
144
39
195
229
48/113
39/268
48/61
4
threshold
201/326
197
89
142
179
197/339
89/268
197/286
5
threshold
106/201
265
169
74
99
265/339
169/268
265/434
6
threshold
20/41
287
184
52
84
287/339
46/67
287/471
7
threshold
12/25
306
217
33
51
102/113
217/268
306/523
8
threshold
21/58
339
268
0
0
1
1
339/607
개인 · 이진 사건 신뢰도 진단 · 선언한 구간의 평균과 행 수로 읽습니다. 빈 구간은 점을 만들지 않습니다. 이진 사건 진단이며 확률 재적합이 아닙니다. 벡터 원본 확대 · 고해상도 PNG
이진 사건 보정 구간·전체 Brier의 내부 항
구간
왼쪽
오른쪽
행
질량
평균 확률
사건 비중
차이
점수 분산
점수·Y 공분산
내부 보정항
0
0
1/5
0
0
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
1
1/5
2/5
84
84
21/58
11/28
-25/812
0
0
0
2
2/5
3/5
237
237
≈ 0.510795524941084/48827925
109/237
≈ 0.050879882484359/48827925
≈ 0.0004620091220301299216/476833251961125
≈ 0.0001506124348584/2314443645
≈ 0.000160784276667262016/476833251961125
3
3/5
4/5
217
217
≈ 0.65262939279829/14219142
135/217
≈ 0.03050951433819/14219142
≈ 0.0018329751358860010957/741341330459268
≈ 0.0060564489343748/1542776907
≈ -0.01027992-81945487279/7971412155476
4
4/5
1
69
69
197/239
62/69
-1225/16491
0
0
0
경계는 왼쪽을 포함하며 마지막1만 오른쪽에도 포함합니다. 빈 구간은 평균과 점을 발명하지 않습니다. 총Brier는 불확실성−분리+신뢰도+내부 보정항으로 복원되고 잔차는0입니다. 이 표는 확률 보정 지도를 적합한 결과가 아닙니다.
6. 집단별 원분모·조건부 비율·해석의 한계
개인 · 집단별 참 양성률 · 같은 정책의 관측 집단 비율입니다. 분모와 미정의를 표에서 확인하며 원인·법적 판정으로 해석하지 않습니다. 벡터 원본 확대 · 고해상도 PNG
그림의 가로축 눈금은 원 집단 코드입니다. 점 좌표 파일의 x는 선언된 집단 순서 위치이며 태그에 원 코드를 함께 보존합니다. 양성 분모가 없는 집단의 TPR 막대는0이 아니라 미정의로 생략합니다.
전체·알려진 집단·미상 집단의 원분모
시나리오
범위
집단
유지 행
전체 질량
양성
음성
선택
TP
FP
FN
TN
equal
overall
all
607
607
339
268
286
197
89
142
179
equal
known
0
473
473
300
173
243
181
62
119
111
equal
known
1
134
134
39
95
43
16
27
23
68
equal
unknown
미정의·결측
0
0
0
0
0
0
0
0
0
miss-five
overall
all
607
607
339
268
607
339
268
0
0
miss-five
known
0
473
473
300
173
473
300
173
0
0
miss-five
known
1
134
134
39
95
134
39
95
0
0
miss-five
unknown
미정의·결측
0
0
0
0
0
0
0
0
0
alarm-five
overall
all
607
607
339
268
91
84
7
255
261
alarm-five
known
0
473
473
300
173
84
78
6
222
167
alarm-five
known
1
134
134
39
95
7
6
1
33
94
alarm-five
unknown
미정의·결측
0
0
0
0
0
0
0
0
0
같은 정책의 집단별 조건부 비율·가정 비용
시나리오
범위
집단
양성 비중
선택률
TPR
FPR
정밀도
정확도
평균 비용
equal
overall
all
339/607
286/607
197/339
89/268
197/286
376/607
231/607
equal
known
0
300/473
243/473
181/300
62/173
181/243
292/473
181/473
equal
known
1
39/134
43/134
16/39
27/95
16/43
42/67
25/67
equal
unknown
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
miss-five
overall
all
339/607
1
1
1
339/607
339/607
268/607
miss-five
known
0
300/473
1
1
1
300/473
300/473
173/473
miss-five
known
1
39/134
1
1
1
39/134
39/134
95/134
miss-five
unknown
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
alarm-five
overall
all
339/607
91/607
28/113
7/268
12/13
345/607
290/607
alarm-five
known
0
300/473
84/473
13/50
6/173
13/14
245/473
252/473
alarm-five
known
1
39/134
7/134
2/13
1/95
6/7
50/67
19/67
alarm-five
unknown
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
미정의·결측
관측 비율의 차이는 그 조건부 장부의 차이입니다. 정책의 인과효과·차별의 원인·법적 적정성을 확정하지 않습니다. 미상 집단은 전체에 남고 알려진 합+미상 합=전체를 확인합니다. 정의되지 않은 집단 비율을0으로 바꾸어 격차를 만들지 않습니다.
The person study preserves all 3,613 Card NLS rows and fifty-two native fields. wage76 is nominal 1976 cents per hour; Y marks values at least five hundred. This is neither present purchasing power nor lifetime income. Predictors are education, age in 1976 and the native four-year-college proximity code.
The 596 rows missing required X or Y retain IDs, planned roles and exclusion reasons, with score and evaluation undefined. The 3,017 eligible rows split into 1,790 training, 620 validation and 607 test. Native sampling weights remain in the source but all analytical masses are one. This is not a replication of the original weighted or causal wage-return study.
Equal-cost threshold 201/326 produces test cells 197,89,142,179. Miss-five threshold 21/58 selects all 607 test people. Alarm-five threshold 25/33 gives 84,7,255,261. Assumed burdens can substantially change how many people receive an action.
Audit groups retain the native historical black code. Read its recorded meaning and sample scope before comparing conditional denominators, prevalence and errors. The table neither infers current personal identity nor identifies causes of differences.
Person full study: observations through action errors
1. Trace every native observation, role and exclusion
This table retains required native predictors, native outcome, constructed target, audit group, planned role and analytic role. Missing group alone does not remove a row from overall scoring. Native weights remain in linked files; analytical masses are all one. Row position is not time.
Expand all native rows and roles
Required native fields, outcomes and complete roles
ID
Source row
Native ID
Native X, declared order
Native outcome
Y
Group
Planned role
Analytic role
Eligible
Exclusion reason
person:1
1
2
7|29|0
548
1
1
train
train
1
Undefined / missing
person:2
2
3
12|27|0
481
0
0
train
train
1
Undefined / missing
person:3
3
4
12|34|0
721
1
0
train
train
1
Undefined / missing
person:4
4
5
11|27|1
250
0
0
test
test
1
Undefined / missing
person:5
5
6
12|34|1
729
1
0
validation
validation
1
Undefined / missing
person:6
6
7
12|26|1
500
1
0
test
test
1
Undefined / missing
person:7
7
8
18|33|1
565
1
0
train
train
1
Undefined / missing
person:8
8
9
14|29|1
608
1
0
validation
validation
1
Undefined / missing
person:9
9
10
12|28|1
425
0
0
train
train
1
Undefined / missing
person:10
10
11
12|29|1
515
1
0
train
train
1
Undefined / missing
person:11
11
12
9|28|1
225
0
0
train
train
1
Undefined / missing
person:12
12
13
12|26|1
400
0
0
validation
validation
1
Undefined / missing
person:13
13
14
11|24|1
417
0
0
validation
validation
1
Undefined / missing
person:14
14
15
11|30|1
217
0
0
validation
validation
1
Undefined / missing
person:15
15
16
16|31|1
894
1
1
validation
validation
1
Undefined / missing
person:16
16
17
14|24|1
300
0
0
train
train
1
Undefined / missing
person:17
17
18
11|34|1
Undefined / missing
Undefined / missing
0
train
excluded
0
required-X-or-Y-missing
person:18
18
19
12|34|1
346
0
0
test
test
1
Undefined / missing
person:19
19
20
14|29|1
658
1
0
test
test
1
Undefined / missing
person:20
20
22
10|26|1
575
1
0
train
train
1
Undefined / missing
First 20 of 3613 rows; use pages to read every row.
X order is education, age in 1976 and nearc4; outcome units are nominal 1976 cents/hour. The historical native black code is not an inference of present identity.
2. Training-only transformations, cells and a worked row
Native row 4, original id 5, has education 11 years, age 27, proximity 1 and wage 250 nominal 1976 cents/hour. Its target is zero. Training medians 13 and 28 produce cell (0,0,1), with 211 positives among 400 training people. The forecast is (211+1)/(400+2)=106/201 and held Brier 11236/40401. It is TN under equal-cost threshold 201/326, FP under miss-five 21/58, and TN under alarm-five 25/33. Original id 5 and source row 4 are different identifiers.
Fixed training medians; inapplicable to categorical columns
Feature index
Native category
Training rows
Median
Unit
0
0
1790
13
years
1
0
1790
28
years
2
1
1790
Undefined / missing
nativeCategory
Every training cell and unseen-cell fallback
Transformed cell
Training rows
Positive rows
Cell probability
Global-training fallback
0|1|0
148
71
12/25
131/224
0|0|0
230
83
21/58
131/224
1|1|1
237
196
197/239
131/224
0|0|1
400
211
106/201
131/224
0|1|1
266
178
179/268
131/224
1|0|1
324
200
201/326
131/224
1|0|0
121
59
20/41
131/224
1|1|0
64
49
25/33
131/224
Alpha one and all predictors are fixed. Audit group is not a cell feature. Neither add held values to preprocessing nor fill exclusions with score zero.
3. Compare all validation candidates before selecting
Person · Assumed validation candidate costs · Cost ratios1/1,1/5,5/1 are teaching assumptions. Selection uses validation only, not minimum test cost. Enlarge vector original · High-resolution PNG
Every validation candidate for three hypothetical costs
Cost scenario
Candidate
Policy
Threshold
Selected
TP
FP
FN
TN
Mean cost
TPR
FPR
Precision
equal
0
always-negative
Undefined / missing
0
0
0
347
273
347/620
0
0
Undefined / missing
equal
1
threshold
197/239
0
68
11
279
262
29/62
68/347
11/273
68/79
equal
2
threshold
25/33
0
91
15
256
258
271/620
91/347
5/91
91/106
equal
3
threshold
179/268
0
156
47
191
226
119/310
156/347
47/273
156/203
equal
4
threshold
201/326
1
215
101
132
172
233/620
215/347
101/273
215/316
equal
5
threshold
106/201
0
271
174
76
99
25/62
271/347
58/91
271/445
equal
6
threshold
20/41
0
289
203
58
70
261/620
289/347
29/39
289/492
equal
7
threshold
12/25
0
315
233
32
40
53/124
315/347
233/273
315/548
equal
8
threshold
21/58
0
347
273
0
0
273/620
1
1
347/620
miss-five
0
always-negative
Undefined / missing
0
0
0
347
273
347/124
0
0
Undefined / missing
miss-five
1
threshold
197/239
0
68
11
279
262
703/310
68/347
11/273
68/79
miss-five
2
threshold
25/33
0
91
15
256
258
259/124
91/347
5/91
91/106
miss-five
3
threshold
179/268
0
156
47
191
226
501/310
156/347
47/273
156/203
miss-five
4
threshold
201/326
0
215
101
132
172
761/620
215/347
101/273
215/316
miss-five
5
threshold
106/201
0
271
174
76
99
277/310
271/347
58/91
271/445
miss-five
6
threshold
20/41
0
289
203
58
70
493/620
289/347
29/39
289/492
miss-five
7
threshold
12/25
0
315
233
32
40
393/620
315/347
233/273
315/548
miss-five
8
threshold
21/58
1
347
273
0
0
273/620
1
1
347/620
alarm-five
0
always-negative
Undefined / missing
0
0
0
347
273
347/620
0
0
Undefined / missing
alarm-five
1
threshold
197/239
0
68
11
279
262
167/310
68/347
11/273
68/79
alarm-five
2
threshold
25/33
1
91
15
256
258
331/620
91/347
5/91
91/106
alarm-five
3
threshold
179/268
0
156
47
191
226
213/310
156/347
47/273
156/203
alarm-five
4
threshold
201/326
0
215
101
132
172
637/620
215/347
101/273
215/316
alarm-five
5
threshold
106/201
0
271
174
76
99
473/310
271/347
58/91
271/445
alarm-five
6
threshold
20/41
0
289
203
58
70
1073/620
289/347
29/39
289/492
alarm-five
7
threshold
12/25
0
315
233
32
40
1197/620
315/347
233/273
315/548
alarm-five
8
threshold
21/58
0
347
273
0
0
273/124
1
1
347/620
The earliest exact minimum wins in declared order. A blank numeric threshold for always-negative denotes a nonnumeric policy, not missing input. Different scenario losses are different objectives, not a direct model-quality ranking.
4. Fixed-policy test assessment and every native-row score
Person · Test outcomes and fixed scores · The horizontal axis is test source order, not time. Distinguish observed Y from training-fitted probabilities. Enlarge vector original · High-resolution PNG
Every test rate, assumed cost, curve and calibration summary
Scenario
Quantity
Exact value
Unit
equal
TP
197
rows
equal
FP
89
rows
equal
FN
142
rows
equal
TN
179
rows
equal
mass
607
rows
equal
positiveTargetMass
339
rows
equal
negativeTargetMass
268
rows
equal
predictedPositiveMass
286
rows
equal
predictedNegativeMass
321
rows
equal
prevalence
339/607
dimensionless
equal
selectionRate
286/607
dimensionless
equal
accuracy
376/607
dimensionless
equal
precision
197/286
dimensionless
equal
negativePredictiveValue
179/321
dimensionless
equal
TPR
197/339
dimensionless
equal
FPR
89/268
dimensionless
equal
TNR
179/268
dimensionless
equal
FNR
142/339
dimensionless
equal
F1
394/625
dimensionless
equal
balancedAccuracy
113477/181704
dimensionless
First 20 of 99 rows; use pages to read every row.
Expand probabilities and exclusions for every native row
Fixed probabilities with fitting and held roles distinguished
ID
Source row
Role
Eligible
Y
Probability
Unseen cell
Transformed X
Exclusion reason
person:1
1
train
1
1
12/25
0
0|1|0
Undefined / missing
person:2
2
train
1
0
21/58
0
0|0|0
Undefined / missing
person:3
3
train
1
1
12/25
0
0|1|0
Undefined / missing
person:4
4
test
1
0
106/201
0
0|0|1
Undefined / missing
person:5
5
validation
1
1
179/268
0
0|1|1
Undefined / missing
person:6
6
test
1
1
106/201
0
0|0|1
Undefined / missing
person:7
7
train
1
1
197/239
0
1|1|1
Undefined / missing
person:8
8
validation
1
1
197/239
0
1|1|1
Undefined / missing
person:9
9
train
1
0
106/201
0
0|0|1
Undefined / missing
person:10
10
train
1
1
179/268
0
0|1|1
Undefined / missing
person:11
11
train
1
0
106/201
0
0|0|1
Undefined / missing
person:12
12
validation
1
0
106/201
0
0|0|1
Undefined / missing
person:13
13
validation
1
0
106/201
0
0|0|1
Undefined / missing
person:14
14
validation
1
0
179/268
0
0|1|1
Undefined / missing
person:15
15
validation
1
1
197/239
0
1|1|1
Undefined / missing
person:16
16
train
1
0
201/326
0
1|0|1
Undefined / missing
person:17
17
excluded
0
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
required-X-or-Y-missing
person:18
18
test
1
0
179/268
0
0|1|1
Undefined / missing
person:19
19
test
1
1
197/239
0
1|1|1
Undefined / missing
person:20
20
train
1
1
106/201
0
0|0|1
Undefined / missing
First 20 of 3613 rows; use pages to read every row.
Training-row scores belong to observations used for fitting and are not external held-test assessment. Validation selects the policy; test assesses after choice. Blank excluded probabilities are not zeros.
5. Ranking and probability diagnostics of unchanged scores
Person · ROC points and connections · Ties enter together. ROC interpolation does not make every intermediate point a deterministic threshold. Enlarge vector original · High-resolution PNGPerson · Observed PR operating points · Only observed precision points are plotted; nobody-selected precision is undefined. AP uses the separately tabulated right-step definition. Enlarge vector original · High-resolution PNG
Every test tied block and observed precision
Point
Policy
Threshold
TP
FP
FN
TN
TPR
FPR
Precision
0
always-negative
Undefined / missing
0
0
339
268
0
0
Undefined / missing
1
threshold
197/239
62
7
277
261
62/339
7/268
62/69
2
threshold
25/33
84
7
255
261
28/113
7/268
12/13
3
threshold
179/268
144
39
195
229
48/113
39/268
48/61
4
threshold
201/326
197
89
142
179
197/339
89/268
197/286
5
threshold
106/201
265
169
74
99
265/339
169/268
265/434
6
threshold
20/41
287
184
52
84
287/339
46/67
287/471
7
threshold
12/25
306
217
33
51
102/113
217/268
306/523
8
threshold
21/58
339
268
0
0
1
1
339/607
Person · Binary-event reliability · Read declared bin means and row counts. Empty bins create no points. This binary-event diagnostic does not refit probabilities. Enlarge vector original · High-resolution PNG
Binary-event bins and within-bin Brier terms
Bin
Left
Right
Rows
Mass
Mean probability
Event rate
Gap
Score variance
Score/Y covariance
Within-bin correction
0
0
1/5
0
0
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
1
1/5
2/5
84
84
21/58
11/28
-25/812
0
0
0
2
2/5
3/5
237
237
≈ 0.510795524941084/48827925
109/237
≈ 0.050879882484359/48827925
≈ 0.0004620091220301299216/476833251961125
≈ 0.0001506124348584/2314443645
≈ 0.000160784276667262016/476833251961125
3
3/5
4/5
217
217
≈ 0.65262939279829/14219142
135/217
≈ 0.03050951433819/14219142
≈ 0.0018329751358860010957/741341330459268
≈ 0.0060564489343748/1542776907
≈ -0.01027992-81945487279/7971412155476
4
4/5
1
69
69
197/239
62/69
-1225/16491
0
0
0
Bins include the left endpoint, with one included in the final right endpoint. Empty bins invent neither means nor points. Uncertainty minus resolution plus reliability plus the within-bin term restores Brier with zero residual. No calibration mapping is fitted.
6. Group denominators, conditional rates and interpretation limits
Person · True positive rates by group · These are descriptive group rates under the same policy. Inspect denominators and undefined rates; no causal or legal certificate. Enlarge vector original · High-resolution PNG
Plot ticks display native group codes. The point file’s x is declared group position and its tag retains the native code. A group with no positive denominator has an undefined, omitted TPR bar, not a zero bar.
Overall, known and unknown group denominators
Scenario
Scope
Group
Retained rows
Mass
Positive
Negative
Selected
TP
FP
FN
TN
equal
overall
all
607
607
339
268
286
197
89
142
179
equal
known
0
473
473
300
173
243
181
62
119
111
equal
known
1
134
134
39
95
43
16
27
23
68
equal
unknown
Undefined / missing
0
0
0
0
0
0
0
0
0
miss-five
overall
all
607
607
339
268
607
339
268
0
0
miss-five
known
0
473
473
300
173
473
300
173
0
0
miss-five
known
1
134
134
39
95
134
39
95
0
0
miss-five
unknown
Undefined / missing
0
0
0
0
0
0
0
0
0
alarm-five
overall
all
607
607
339
268
91
84
7
255
261
alarm-five
known
0
473
473
300
173
84
78
6
222
167
alarm-five
known
1
134
134
39
95
7
6
1
33
94
alarm-five
unknown
Undefined / missing
0
0
0
0
0
0
0
0
0
Group conditional rates and assumed costs under one policy
Scenario
Scope
Group
Prevalence
Selection rate
TPR
FPR
Precision
Accuracy
Mean cost
equal
overall
all
339/607
286/607
197/339
89/268
197/286
376/607
231/607
equal
known
0
300/473
243/473
181/300
62/173
181/243
292/473
181/473
equal
known
1
39/134
43/134
16/39
27/95
16/43
42/67
25/67
equal
unknown
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
miss-five
overall
all
339/607
1
1
1
339/607
339/607
268/607
miss-five
known
0
300/473
1
1
1
300/473
300/473
173/473
miss-five
known
1
39/134
1
1
1
39/134
39/134
95/134
miss-five
unknown
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
alarm-five
overall
all
339/607
91/607
28/113
7/268
12/13
345/607
290/607
alarm-five
known
0
300/473
84/473
13/50
6/173
13/14
245/473
252/473
alarm-five
known
1
39/134
7/134
2/13
1/95
6/7
50/67
19/67
alarm-five
unknown
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Differences describe these conditional ledgers, not intervention effects, causes of discrimination or legal acceptability. Unknown groups remain overall; check known plus unknown mass equals overall. Do not manufacture gaps by substituting zero for undefined rates.
7. Every plotted coordinate and public reproduction inputs
Expand every original rational plot coordinate
Chart, series, rational coordinates and observed/model tags
Chart
Series
Index
x
y
x unit
y unit
ID / tag
roc
ROC
0
0
0
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
0
0
Undefined / missing
dimensionless
dimensionless
Undefined / missing
roc
ROC
1
7/268
62/339
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
1
62/339
62/69
dimensionless
dimensionless
Undefined / missing
roc
ROC
2
7/268
28/113
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
2
28/113
12/13
dimensionless
dimensionless
Undefined / missing
roc
ROC
3
39/268
48/113
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
3
48/113
48/61
dimensionless
dimensionless
Undefined / missing
roc
ROC
4
89/268
197/339
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
4
197/339
197/286
dimensionless
dimensionless
Undefined / missing
roc
ROC
5
169/268
265/339
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
5
265/339
265/434
dimensionless
dimensionless
Undefined / missing
roc
ROC
6
46/67
287/339
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
6
287/339
287/471
dimensionless
dimensionless
Undefined / missing
roc
ROC
7
217/268
102/113
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
7
102/113
306/523
dimensionless
dimensionless
Undefined / missing
roc
ROC
8
1
1
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
8
1
339/607
dimensionless
dimensionless
Undefined / missing
reliability
Binary event rate
0
Undefined / missing
Undefined / missing
dimensionless
dimensionless
rows=0
reliability
Binary event rate
1
21/58
11/28
dimensionless
dimensionless
rows=84
First 20 of 1270 rows; use pages to read every row.
Long fractions expand and long tables page through twenty rows. All rows remain in this same body. To recompute from factual inputs, use ml14-study.py · ml14-study.R.
기업 사례: 이탈 경보의 회수와 잘못된 연락Company study: recovered churn cases and unnecessary contacts
기업 사례는 UCI Iranian Churn의3,150행·14개 원 필드를 읽습니다. 원 Churn이 표적이고 통화 실패 수·불만 코드·가입 기간·통화 사용 초를 특징으로 사용합니다. 요금제는 원 코드 그대로 집단 점검에만 사용합니다. 이 공개 자료의 고객 표본과 측정 기간을 넘어 회사 전체의 현재 고객을 대표한다고 주장하지 않습니다.
역할은 훈련1,890·검증630·시험630입니다. 시험 양성100·음성530이므로 늘 음성 정확도는530/630≈84.1%입니다. 이것은 이탈을 하나도 찾지 못하는 기준선입니다. 동일 비용의 검증 기준17/29는TP33·FP5·FN67·TN525로 정확도를 높이면서도 양성 중33%만 찾습니다.
놓침 비용5의 기준17/112는TP87·FP239·FN13·TN291입니다. 더 많은 이탈을 찾는 대신 음성에게 더 많이 연락합니다. 오경보 비용5의 기준18/19는TP10·FP0·FN90·TN530입니다. 이 표를 “어느 임계값이 최고인가”보다 “가정한 부담이 어떤 행동을 고르는가”로 읽으세요.
원 Charge Amount 코드10이 있는7행도 그대로 보존합니다. 공식 변수 설명의0~9 범위와 다른 원토큰이라는 점을 숨기지 않습니다. 그 변수는 이번 특징에 없으므로 이 이유로 행을 삭제하거나10을9로 바꾸지 않습니다. 연락이 이탈을 막았다는 인과효과는 이 예에서 계산하지 않습니다.
기업 전체 사례: 원관측에서 행동의 오류까지
1. 원관측·역할·제외를 모두 추적하기
이 표는 필요한 원 X·원표적·파생Y·집단·예정 역할·분석 역할을 모두 보여 줍니다. 집단이 미상이면 전체 채점에서 자동 제외하지 않습니다. 원 가중치는 연결 파일에 보존하며 이번 분석 질량은 모두1입니다. 행 위치는 시간이 아닙니다.
전체 원행·역할 표 펼치기
필요 원필드·원표적·전체 역할
ID
원행
원 ID
원 X·선언 순서
원표적
Y
집단
예정 역할
분석 역할
사용
제외 이유
customer:1
1
미정의·결측
8|0|38|4370
0
0
1
test
test
1
미정의·결측
customer:2
2
미정의·결측
0|0|39|318
0
0
1
validation
validation
1
미정의·결측
customer:3
3
미정의·결측
10|0|37|2453
0
0
1
train
train
1
미정의·결측
customer:4
4
미정의·결측
10|0|38|4198
0
0
1
train
train
1
미정의·결측
customer:5
5
미정의·결측
3|0|38|2393
0
0
1
train
train
1
미정의·결측
customer:6
6
미정의·결측
11|0|38|3775
0
0
1
train
train
1
미정의·결측
customer:7
7
미정의·결측
4|0|38|2360
0
0
1
test
test
1
미정의·결측
customer:8
8
미정의·결측
13|0|37|9115
0
0
1
train
train
1
미정의·결측
customer:9
9
미정의·결측
7|0|38|13773
0
0
1
train
train
1
미정의·결측
customer:10
10
미정의·결측
7|0|38|4515
0
0
1
train
train
1
미정의·결측
customer:11
11
미정의·결측
6|0|38|5918
0
0
1
train
train
1
미정의·결측
customer:12
12
미정의·결측
9|0|38|2238
0
0
1
validation
validation
1
미정의·결측
customer:13
13
미정의·결측
25|0|38|15140
0
0
1
validation
validation
1
미정의·결측
customer:14
14
미정의·결측
4|0|38|3095
0
0
1
train
train
1
미정의·결측
customer:15
15
미정의·결측
9|0|37|15485
0
0
1
train
train
1
미정의·결측
customer:16
16
미정의·결측
3|0|37|6500
0
0
1
train
train
1
미정의·결측
customer:17
17
미정의·결측
0|0|37|875
1
1
1
validation
validation
1
미정의·결측
customer:18
18
미정의·결측
2|0|38|710
0
0
1
train
train
1
미정의·결측
customer:19
19
미정의·결측
0|0|37|0
1
1
1
test
test
1
미정의·결측
customer:20
20
미정의·결측
3|0|37|7508
0
0
1
train
train
1
미정의·결측
전체 3150행 중 첫20행 · 페이지로 전체를 읽습니다.
X 순서는통화 실패·불만·가입 개월·이용 초이며 원표적은이탈입니다. 집단은원 요금제입니다. Charge Amount 코드10의7행은 보존되며 이 변수는 이번 특징에 없습니다.
2. 훈련에서만 배운 변환·칸·한 행 풀이
원고객1행은 실패8회·불만0·가입38개월·사용4,370초·이탈0입니다. 수치 훈련 중앙값6회·35개월·2,943초를 적용하고 불만 원범주0을 유지하면(1,0,1,1)입니다. 그 훈련 칸은352명 중7명이 양성이므로 확률(7+1)/(352+2)=4/177, 시험 Brier16/31329입니다. 세 선택 기준보다 모두 낮아서 세 시나리오에서 TN입니다. 같은 행의 원 요금제1은 이 확률 적합에 사용되지 않고 뒤의 집단 점검에만 쓰입니다.
고정 훈련 중앙값·범주 열은 미적용
특징 번호
원범주 유지
훈련 행
중앙값
단위
0
0
1890
6
count
1
1
1890
미정의·결측
nativeCategory
2
0
1890
35
months
3
0
1890
2943
seconds
모든 훈련 칸과 미관측 칸 대체 확률
변환 칸
훈련 행
양성 행
칸 확률
전체훈련 대체
1|0|1|0
110
16
17/112
7/44
1|0|1|1
352
7
4/177
7/44
0|0|1|0
216
42
43/218
7/44
0|0|1|1
137
0
1/139
7/44
1|1|0|0
36
35
18/19
7/44
1|1|1|1
27
16
17/29
7/44
0|0|0|0
362
68
69/364
7/44
0|0|0|1
203
2
3/205
7/44
0|1|1|0
12
11
6/7
7/44
1|0|0|1
210
7
2/53
7/44
1|0|0|0
136
23
4/23
7/44
0|1|0|0
46
45
23/24
7/44
1|1|1|0
27
16
17/29
7/44
1|1|0|1
13
9
2/3
7/44
0|1|0|1
3
3
4/5
7/44
평활화α1과 전체 특징은 고정입니다. 집단 코드는 칸을 만드는 특징이 아닙니다. 적격 시험 행의 전처리에 시험값을 보태거나, 제외 행을0점수로 채우지 않습니다.
3. 검증에서 모든 후보를 비교한 뒤 선택하기
기업 · 검증 후보의 가정 비용 · 비용1/1·1/5·5/1은 교육용 가정입니다. 선택은 검증에서만 하며 시험 성능을 최소화하지 않습니다. 벡터 원본 확대 · 고해상도 PNG
세 가설 비용의 모든 검증 후보
비용 시나리오
후보
정책
기준
선택
TP
FP
FN
TN
평균 비용
TPR
FPR
정밀도
equal
0
always-negative
미정의·결측
0
0
0
95
535
19/126
0
0
미정의·결측
equal
1
threshold
23/24
0
10
0
85
535
17/126
2/19
0
1
equal
2
threshold
18/19
0
19
0
76
535
38/315
1/5
0
1
equal
3
threshold
6/7
0
22
1
73
534
37/315
22/95
1/535
22/23
equal
4
threshold
2/3
0
23
3
72
532
5/42
23/95
3/535
23/26
equal
5
threshold
17/29
1
32
7
63
528
1/9
32/95
7/535
32/39
equal
6
threshold
43/218
0
51
64
44
471
6/35
51/95
64/535
51/115
equal
7
threshold
69/364
0
72
157
23
378
2/7
72/95
157/535
72/229
equal
8
threshold
4/23
0
77
191
18
344
209/630
77/95
191/535
77/268
equal
9
threshold
17/112
0
86
212
9
323
221/630
86/95
212/535
43/149
equal
10
threshold
2/53
0
88
280
7
255
41/90
88/95
56/107
11/46
equal
11
threshold
4/177
0
93
418
2
117
2/3
93/95
418/535
93/511
equal
12
threshold
3/205
0
95
503
0
32
503/630
1
503/535
95/598
equal
13
threshold
1/139
0
95
535
0
0
107/126
1
1
19/126
miss-five
0
always-negative
미정의·결측
0
0
0
95
535
95/126
0
0
미정의·결측
miss-five
1
threshold
23/24
0
10
0
85
535
85/126
2/19
0
1
miss-five
2
threshold
18/19
0
19
0
76
535
38/63
1/5
0
1
miss-five
3
threshold
6/7
0
22
1
73
534
61/105
22/95
1/535
22/23
miss-five
4
threshold
2/3
0
23
3
72
532
121/210
23/95
3/535
23/26
miss-five
5
threshold
17/29
0
32
7
63
528
23/45
32/95
7/535
32/39
전체 42행 중 첫20행 · 페이지로 전체를 읽습니다.
최초의 정확한 최소 비용 후보를 선언 순서대로 택합니다. 늘 음성 정책의 빈 수치 기준은 결측 오류가 아니라 숫자 임계값을 쓰지 않는 정책이라는 뜻입니다. 시나리오마다 비용표가 다르므로 그 최솟값끼리 모형 우열을 단정하지 않습니다.
4. 고정 정책의 시험 채점·모든 원행 점수
기업 · 시험의 원표적과 고정 확률 · 가로축은 시간이 아닌 시험 원순서입니다. 원관측 Y와 훈련 적합 확률을 구분합니다. 벡터 원본 확대 · 고해상도 PNG
시험의 모든 비율·가정 비용·곡선·보정 요약
시나리오
양
정확 값
단위
equal
TP
33
rows
equal
FP
5
rows
equal
FN
67
rows
equal
TN
525
rows
equal
mass
630
rows
equal
positiveTargetMass
100
rows
equal
negativeTargetMass
530
rows
equal
predictedPositiveMass
38
rows
equal
predictedNegativeMass
592
rows
equal
prevalence
10/63
dimensionless
equal
selectionRate
19/315
dimensionless
equal
accuracy
31/35
dimensionless
equal
precision
33/38
dimensionless
equal
negativePredictiveValue
525/592
dimensionless
equal
TPR
33/100
dimensionless
equal
FPR
1/106
dimensionless
equal
TNR
105/106
dimensionless
equal
FNR
67/100
dimensionless
equal
F1
11/23
dimensionless
equal
balancedAccuracy
6999/10600
dimensionless
전체 99행 중 첫20행 · 페이지로 전체를 읽습니다.
모든 원행의 확률·제외 표 펼치기
원행별 고정 확률·훈련과 보유 역할 구분
ID
원행
역할
사용
Y
확률
미관측 칸
변환 X
제외 이유
customer:1
1
test
1
0
4/177
0
1|0|1|1
미정의·결측
customer:2
2
validation
1
0
43/218
0
0|0|1|0
미정의·결측
customer:3
3
train
1
0
17/112
0
1|0|1|0
미정의·결측
customer:4
4
train
1
0
4/177
0
1|0|1|1
미정의·결측
customer:5
5
train
1
0
43/218
0
0|0|1|0
미정의·결측
customer:6
6
train
1
0
4/177
0
1|0|1|1
미정의·결측
customer:7
7
test
1
0
43/218
0
0|0|1|0
미정의·결측
customer:8
8
train
1
0
4/177
0
1|0|1|1
미정의·결측
customer:9
9
train
1
0
4/177
0
1|0|1|1
미정의·결측
customer:10
10
train
1
0
4/177
0
1|0|1|1
미정의·결측
customer:11
11
train
1
0
1/139
0
0|0|1|1
미정의·결측
customer:12
12
validation
1
0
17/112
0
1|0|1|0
미정의·결측
customer:13
13
validation
1
0
4/177
0
1|0|1|1
미정의·결측
customer:14
14
train
1
0
1/139
0
0|0|1|1
미정의·결측
customer:15
15
train
1
0
4/177
0
1|0|1|1
미정의·결측
customer:16
16
train
1
0
1/139
0
0|0|1|1
미정의·결측
customer:17
17
validation
1
1
43/218
0
0|0|1|0
미정의·결측
customer:18
18
train
1
0
43/218
0
0|0|1|0
미정의·결측
customer:19
19
test
1
1
43/218
0
0|0|1|0
미정의·결측
customer:20
20
train
1
0
1/139
0
0|0|1|1
미정의·결측
전체 3150행 중 첫20행 · 페이지로 전체를 읽습니다.
이 표의 훈련 행 점수는 적합에 참여한 행의 점수이며 보유 시험 점수와 같은 외부 평가로 해석하지 않습니다. 검증은 정책 선택, 시험은 선택 이후 채점이라는 역할을 유지합니다. 제외 행의 빈 확률은0이 아닙니다.
5. 원점수 순위·확률의 보정 진단
기업 · ROC 관측점과 연결 · 동점은 한 묶음입니다. 점 연결은 ROC 보간이며 모든 중간점이 결정적 임계값은 아닙니다. 벡터 원본 확대 · 고해상도 PNG기업 · PR 관측점 · 관측 정밀도만 점으로 표시합니다. 미선택 시작점은 미정의입니다. AP는 표의 오른쪽 계단 정의로 별도 계산합니다. 벡터 원본 확대 · 고해상도 PNG
시험의 모든 동점 묶음·정의된 정밀도
점
정책
기준
TP
FP
FN
TN
TPR
FPR
정밀도
0
always-negative
미정의·결측
0
0
100
530
0
0
미정의·결측
1
threshold
23/24
6
0
94
530
3/50
0
1
2
threshold
18/19
10
0
90
530
1/10
0
1
3
threshold
6/7
14
0
86
530
7/50
0
1
4
threshold
2/3
17
0
83
530
17/100
0
1
5
threshold
17/29
33
5
67
525
33/100
1/106
33/38
6
threshold
43/218
55
68
45
462
11/20
34/265
55/123
7
threshold
69/364
74
173
26
357
37/50
173/530
74/247
8
threshold
4/23
81
211
19
319
81/100
211/530
81/292
9
threshold
17/112
87
239
13
291
87/100
239/530
87/326
10
threshold
2/53
95
306
5
224
19/20
153/265
95/401
11
threshold
4/177
100
412
0
118
1
206/265
25/128
12
threshold
3/205
100
487
0
43
1
487/530
100/587
13
threshold
1/139
100
530
0
0
1
1
10/63
기업 · 이진 사건 신뢰도 진단 · 선언한 구간의 평균과 행 수로 읽습니다. 빈 구간은 점을 만들지 않습니다. 이진 사건 진단이며 확률 재적합이 아닙니다. 벡터 원본 확대 · 고해상도 PNG
The company study reads all 3,150 Iranian Churn rows and fourteen native fields from UCI. Churn is the target; predictors are call failures, complaints, subscription length and usage seconds. Native tariff codes are audit groups only. The retained customer sample and measurement period are not claimed to represent every current customer of a firm.
Roles contain 1,890 training, 630 validation and 630 test rows. Test has one hundred positives and 530 negatives, so always-negative reaches about 84.1% accuracy while detecting no churn. Equal-cost validation threshold 17/29 gives cells 33,5,67,525, detecting only 33% of positives.
Miss-five threshold 17/112 gives 87,239,13,291: higher detection with many more negative contacts. Alarm-five threshold 18/19 gives 10,0,90,530. Read the table as a comparison of action objectives, not a universal best threshold.
Seven native rows contain Charge Amount code ten despite the documentation’s zero-to-nine description. Preserve that source discrepancy. The variable is unused here, so neither delete those rows nor replace ten with nine. The causal effect of contacting customers is not estimated.
Company full study: observations through action errors
1. Trace every native observation, role and exclusion
This table retains required native predictors, native outcome, constructed target, audit group, planned role and analytic role. Missing group alone does not remove a row from overall scoring. Native weights remain in linked files; analytical masses are all one. Row position is not time.
Expand all native rows and roles
Required native fields, outcomes and complete roles
ID
Source row
Native ID
Native X, declared order
Native outcome
Y
Group
Planned role
Analytic role
Eligible
Exclusion reason
customer:1
1
Undefined / missing
8|0|38|4370
0
0
1
test
test
1
Undefined / missing
customer:2
2
Undefined / missing
0|0|39|318
0
0
1
validation
validation
1
Undefined / missing
customer:3
3
Undefined / missing
10|0|37|2453
0
0
1
train
train
1
Undefined / missing
customer:4
4
Undefined / missing
10|0|38|4198
0
0
1
train
train
1
Undefined / missing
customer:5
5
Undefined / missing
3|0|38|2393
0
0
1
train
train
1
Undefined / missing
customer:6
6
Undefined / missing
11|0|38|3775
0
0
1
train
train
1
Undefined / missing
customer:7
7
Undefined / missing
4|0|38|2360
0
0
1
test
test
1
Undefined / missing
customer:8
8
Undefined / missing
13|0|37|9115
0
0
1
train
train
1
Undefined / missing
customer:9
9
Undefined / missing
7|0|38|13773
0
0
1
train
train
1
Undefined / missing
customer:10
10
Undefined / missing
7|0|38|4515
0
0
1
train
train
1
Undefined / missing
customer:11
11
Undefined / missing
6|0|38|5918
0
0
1
train
train
1
Undefined / missing
customer:12
12
Undefined / missing
9|0|38|2238
0
0
1
validation
validation
1
Undefined / missing
customer:13
13
Undefined / missing
25|0|38|15140
0
0
1
validation
validation
1
Undefined / missing
customer:14
14
Undefined / missing
4|0|38|3095
0
0
1
train
train
1
Undefined / missing
customer:15
15
Undefined / missing
9|0|37|15485
0
0
1
train
train
1
Undefined / missing
customer:16
16
Undefined / missing
3|0|37|6500
0
0
1
train
train
1
Undefined / missing
customer:17
17
Undefined / missing
0|0|37|875
1
1
1
validation
validation
1
Undefined / missing
customer:18
18
Undefined / missing
2|0|38|710
0
0
1
train
train
1
Undefined / missing
customer:19
19
Undefined / missing
0|0|37|0
1
1
1
test
test
1
Undefined / missing
customer:20
20
Undefined / missing
3|0|37|7508
0
0
1
train
train
1
Undefined / missing
First 20 of 3150 rows; use pages to read every row.
X order is failures, complaints, tenure months and usage seconds; outcome is churn and group is tariff. Seven native Charge Amount tens remain, and that field is unused.
2. Training-only transformations, cells and a worked row
Native customer row 1 records failures 8, complaints 0, tenure 38 months, usage 4,370 seconds and churn 0. Training medians 6, 35 and 2,943 with the retained complaints category give cell (1,0,1,1). Seven positives among 352 training rows give probability (7+1)/(352+2)=4/177 and held Brier 16/31329. The score is below all three selected thresholds, so this row is TN in every scenario. Native tariff 1 is used for auditing, not fitting this probability.
Fixed training medians; inapplicable to categorical columns
Feature index
Native category
Training rows
Median
Unit
0
0
1890
6
count
1
1
1890
Undefined / missing
nativeCategory
2
0
1890
35
months
3
0
1890
2943
seconds
Every training cell and unseen-cell fallback
Transformed cell
Training rows
Positive rows
Cell probability
Global-training fallback
1|0|1|0
110
16
17/112
7/44
1|0|1|1
352
7
4/177
7/44
0|0|1|0
216
42
43/218
7/44
0|0|1|1
137
0
1/139
7/44
1|1|0|0
36
35
18/19
7/44
1|1|1|1
27
16
17/29
7/44
0|0|0|0
362
68
69/364
7/44
0|0|0|1
203
2
3/205
7/44
0|1|1|0
12
11
6/7
7/44
1|0|0|1
210
7
2/53
7/44
1|0|0|0
136
23
4/23
7/44
0|1|0|0
46
45
23/24
7/44
1|1|1|0
27
16
17/29
7/44
1|1|0|1
13
9
2/3
7/44
0|1|0|1
3
3
4/5
7/44
Alpha one and all predictors are fixed. Audit group is not a cell feature. Neither add held values to preprocessing nor fill exclusions with score zero.
3. Compare all validation candidates before selecting
Company · Assumed validation candidate costs · Cost ratios1/1,1/5,5/1 are teaching assumptions. Selection uses validation only, not minimum test cost. Enlarge vector original · High-resolution PNG
Every validation candidate for three hypothetical costs
Cost scenario
Candidate
Policy
Threshold
Selected
TP
FP
FN
TN
Mean cost
TPR
FPR
Precision
equal
0
always-negative
Undefined / missing
0
0
0
95
535
19/126
0
0
Undefined / missing
equal
1
threshold
23/24
0
10
0
85
535
17/126
2/19
0
1
equal
2
threshold
18/19
0
19
0
76
535
38/315
1/5
0
1
equal
3
threshold
6/7
0
22
1
73
534
37/315
22/95
1/535
22/23
equal
4
threshold
2/3
0
23
3
72
532
5/42
23/95
3/535
23/26
equal
5
threshold
17/29
1
32
7
63
528
1/9
32/95
7/535
32/39
equal
6
threshold
43/218
0
51
64
44
471
6/35
51/95
64/535
51/115
equal
7
threshold
69/364
0
72
157
23
378
2/7
72/95
157/535
72/229
equal
8
threshold
4/23
0
77
191
18
344
209/630
77/95
191/535
77/268
equal
9
threshold
17/112
0
86
212
9
323
221/630
86/95
212/535
43/149
equal
10
threshold
2/53
0
88
280
7
255
41/90
88/95
56/107
11/46
equal
11
threshold
4/177
0
93
418
2
117
2/3
93/95
418/535
93/511
equal
12
threshold
3/205
0
95
503
0
32
503/630
1
503/535
95/598
equal
13
threshold
1/139
0
95
535
0
0
107/126
1
1
19/126
miss-five
0
always-negative
Undefined / missing
0
0
0
95
535
95/126
0
0
Undefined / missing
miss-five
1
threshold
23/24
0
10
0
85
535
85/126
2/19
0
1
miss-five
2
threshold
18/19
0
19
0
76
535
38/63
1/5
0
1
miss-five
3
threshold
6/7
0
22
1
73
534
61/105
22/95
1/535
22/23
miss-five
4
threshold
2/3
0
23
3
72
532
121/210
23/95
3/535
23/26
miss-five
5
threshold
17/29
0
32
7
63
528
23/45
32/95
7/535
32/39
First 20 of 42 rows; use pages to read every row.
The earliest exact minimum wins in declared order. A blank numeric threshold for always-negative denotes a nonnumeric policy, not missing input. Different scenario losses are different objectives, not a direct model-quality ranking.
4. Fixed-policy test assessment and every native-row score
Company · Test outcomes and fixed scores · The horizontal axis is test source order, not time. Distinguish observed Y from training-fitted probabilities. Enlarge vector original · High-resolution PNG
Every test rate, assumed cost, curve and calibration summary
Scenario
Quantity
Exact value
Unit
equal
TP
33
rows
equal
FP
5
rows
equal
FN
67
rows
equal
TN
525
rows
equal
mass
630
rows
equal
positiveTargetMass
100
rows
equal
negativeTargetMass
530
rows
equal
predictedPositiveMass
38
rows
equal
predictedNegativeMass
592
rows
equal
prevalence
10/63
dimensionless
equal
selectionRate
19/315
dimensionless
equal
accuracy
31/35
dimensionless
equal
precision
33/38
dimensionless
equal
negativePredictiveValue
525/592
dimensionless
equal
TPR
33/100
dimensionless
equal
FPR
1/106
dimensionless
equal
TNR
105/106
dimensionless
equal
FNR
67/100
dimensionless
equal
F1
11/23
dimensionless
equal
balancedAccuracy
6999/10600
dimensionless
First 20 of 99 rows; use pages to read every row.
Expand probabilities and exclusions for every native row
Fixed probabilities with fitting and held roles distinguished
ID
Source row
Role
Eligible
Y
Probability
Unseen cell
Transformed X
Exclusion reason
customer:1
1
test
1
0
4/177
0
1|0|1|1
Undefined / missing
customer:2
2
validation
1
0
43/218
0
0|0|1|0
Undefined / missing
customer:3
3
train
1
0
17/112
0
1|0|1|0
Undefined / missing
customer:4
4
train
1
0
4/177
0
1|0|1|1
Undefined / missing
customer:5
5
train
1
0
43/218
0
0|0|1|0
Undefined / missing
customer:6
6
train
1
0
4/177
0
1|0|1|1
Undefined / missing
customer:7
7
test
1
0
43/218
0
0|0|1|0
Undefined / missing
customer:8
8
train
1
0
4/177
0
1|0|1|1
Undefined / missing
customer:9
9
train
1
0
4/177
0
1|0|1|1
Undefined / missing
customer:10
10
train
1
0
4/177
0
1|0|1|1
Undefined / missing
customer:11
11
train
1
0
1/139
0
0|0|1|1
Undefined / missing
customer:12
12
validation
1
0
17/112
0
1|0|1|0
Undefined / missing
customer:13
13
validation
1
0
4/177
0
1|0|1|1
Undefined / missing
customer:14
14
train
1
0
1/139
0
0|0|1|1
Undefined / missing
customer:15
15
train
1
0
4/177
0
1|0|1|1
Undefined / missing
customer:16
16
train
1
0
1/139
0
0|0|1|1
Undefined / missing
customer:17
17
validation
1
1
43/218
0
0|0|1|0
Undefined / missing
customer:18
18
train
1
0
43/218
0
0|0|1|0
Undefined / missing
customer:19
19
test
1
1
43/218
0
0|0|1|0
Undefined / missing
customer:20
20
train
1
0
1/139
0
0|0|1|1
Undefined / missing
First 20 of 3150 rows; use pages to read every row.
Training-row scores belong to observations used for fitting and are not external held-test assessment. Validation selects the policy; test assesses after choice. Blank excluded probabilities are not zeros.
5. Ranking and probability diagnostics of unchanged scores
Company · ROC points and connections · Ties enter together. ROC interpolation does not make every intermediate point a deterministic threshold. Enlarge vector original · High-resolution PNGCompany · Observed PR operating points · Only observed precision points are plotted; nobody-selected precision is undefined. AP uses the separately tabulated right-step definition. Enlarge vector original · High-resolution PNG
Every test tied block and observed precision
Point
Policy
Threshold
TP
FP
FN
TN
TPR
FPR
Precision
0
always-negative
Undefined / missing
0
0
100
530
0
0
Undefined / missing
1
threshold
23/24
6
0
94
530
3/50
0
1
2
threshold
18/19
10
0
90
530
1/10
0
1
3
threshold
6/7
14
0
86
530
7/50
0
1
4
threshold
2/3
17
0
83
530
17/100
0
1
5
threshold
17/29
33
5
67
525
33/100
1/106
33/38
6
threshold
43/218
55
68
45
462
11/20
34/265
55/123
7
threshold
69/364
74
173
26
357
37/50
173/530
74/247
8
threshold
4/23
81
211
19
319
81/100
211/530
81/292
9
threshold
17/112
87
239
13
291
87/100
239/530
87/326
10
threshold
2/53
95
306
5
224
19/20
153/265
95/401
11
threshold
4/177
100
412
0
118
1
206/265
25/128
12
threshold
3/205
100
487
0
43
1
487/530
100/587
13
threshold
1/139
100
530
0
0
1
1
10/63
Company · Binary-event reliability · Read declared bin means and row counts. Empty bins create no points. This binary-event diagnostic does not refit probabilities. Enlarge vector original · High-resolution PNG
Bins include the left endpoint, with one included in the final right endpoint. Empty bins invent neither means nor points. Uncertainty minus resolution plus reliability plus the within-bin term restores Brier with zero residual. No calibration mapping is fitted.
6. Group denominators, conditional rates and interpretation limits
Company · True positive rates by group · These are descriptive group rates under the same policy. Inspect denominators and undefined rates; no causal or legal certificate. Enlarge vector original · High-resolution PNG
Plot ticks display native group codes. The point file’s x is declared group position and its tag retains the native code. A group with no positive denominator has an undefined, omitted TPR bar, not a zero bar.
Overall, known and unknown group denominators
Scenario
Scope
Group
Retained rows
Mass
Positive
Negative
Selected
TP
FP
FN
TN
equal
overall
all
630
630
100
530
38
33
5
67
525
equal
known
1
585
585
100
485
35
33
2
67
483
equal
known
2
45
45
0
45
3
0
3
0
42
equal
unknown
Undefined / missing
0
0
0
0
0
0
0
0
0
miss-five
overall
all
630
630
100
530
326
87
239
13
291
miss-five
known
1
585
585
100
485
309
87
222
13
263
miss-five
known
2
45
45
0
45
17
0
17
0
28
miss-five
unknown
Undefined / missing
0
0
0
0
0
0
0
0
0
alarm-five
overall
all
630
630
100
530
10
10
0
90
530
alarm-five
known
1
585
585
100
485
10
10
0
90
485
alarm-five
known
2
45
45
0
45
0
0
0
0
45
alarm-five
unknown
Undefined / missing
0
0
0
0
0
0
0
0
0
Group conditional rates and assumed costs under one policy
Scenario
Scope
Group
Prevalence
Selection rate
TPR
FPR
Precision
Accuracy
Mean cost
equal
overall
all
10/63
19/315
33/100
1/106
33/38
31/35
4/35
equal
known
1
20/117
7/117
33/100
2/485
33/35
172/195
23/195
equal
known
2
0
1/15
Undefined / missing
1/15
0
14/15
1/15
equal
unknown
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
miss-five
overall
all
10/63
163/315
87/100
239/530
87/326
3/5
152/315
miss-five
known
1
20/117
103/195
87/100
222/485
29/103
70/117
287/585
miss-five
known
2
0
17/45
Undefined / missing
17/45
0
28/45
17/45
miss-five
unknown
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
alarm-five
overall
all
10/63
1/63
1/10
0
1
6/7
1/7
alarm-five
known
1
20/117
2/117
1/10
0
1
11/13
2/13
alarm-five
known
2
0
0
Undefined / missing
0
Undefined / missing
1
0
alarm-five
unknown
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Undefined / missing
Differences describe these conditional ledgers, not intervention effects, causes of discrimination or legal acceptability. Unknown groups remain overall; check known plus unknown mass equals overall. Do not manufacture gaps by substituting zero for undefined rates.
7. Every plotted coordinate and public reproduction inputs
Expand every original rational plot coordinate
Chart, series, rational coordinates and observed/model tags
Chart
Series
Index
x
y
x unit
y unit
ID / tag
roc
ROC
0
0
0
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
0
0
Undefined / missing
dimensionless
dimensionless
Undefined / missing
roc
ROC
1
0
3/50
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
1
3/50
1
dimensionless
dimensionless
Undefined / missing
roc
ROC
2
0
1/10
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
2
1/10
1
dimensionless
dimensionless
Undefined / missing
roc
ROC
3
0
7/50
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
3
7/50
1
dimensionless
dimensionless
Undefined / missing
roc
ROC
4
0
17/100
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
4
17/100
1
dimensionless
dimensionless
Undefined / missing
roc
ROC
5
1/106
33/100
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
5
33/100
33/38
dimensionless
dimensionless
Undefined / missing
roc
ROC
6
34/265
11/20
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
6
11/20
55/123
dimensionless
dimensionless
Undefined / missing
roc
ROC
7
173/530
37/50
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
7
37/50
74/247
dimensionless
dimensionless
Undefined / missing
roc
ROC
8
211/530
81/100
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
8
81/100
81/292
dimensionless
dimensionless
Undefined / missing
roc
ROC
9
239/530
87/100
dimensionless
dimensionless
Undefined / missing
pr
PR-observed
9
87/100
87/326
dimensionless
dimensionless
Undefined / missing
First 20 of 1341 rows; use pages to read every row.
Long fractions expand and long tables page through twenty rows. All rows remain in this same body. To recompute from factual inputs, use ml14-study.py · ml14-study.R.
원자료에서 역할·점수·장부로 이어지는 계보Lineage from native observations to roles, scores and ledgers
재현은 마지막 표를 다시 저장하는 것보다 더 긴 사슬입니다. 원 응답·ZIP·코드북에서 필드를 읽고, 표적과 집단을 정의하고, 원 ID로 역할을 만들고, 훈련에서만 중앙값·칸 확률을 적합한 뒤 검증 선택·시험 평가로 이어집니다. 각 단계의 입력과 단위를 기록하면 어긋난 곳을 찾을 수 있습니다.
국가64기록은16국가×4지표입니다. 이를16개의 같은 해 벡터로 묶는 것은 파생 단계입니다. 개인 자료는 원 코드북의 고정 폭 위치에 따라52필드를 보존하며, 집단 코드와 선택할 특징을 구분합니다. 기업은 원CSV의14필드와1기반 원행 위치를 보존합니다. 파생 행 번호를 원 필드인 것처럼 세지 않습니다.
역할은 전체 원위치에서 먼저 정하고 결측을 나중에 판정합니다. 제외한 개인596행을 없애고 남은 행을 다시 번호 매기면 역할표와 추적 ID가 달라집니다. 결측을0으로 채우는 것도 다른 모형입니다. 이 예는 제외 사유를 원행에 남기므로 사용3,017행과 원3,613행을 함께 추적할 수 있습니다.
공개 코드의 입력은 원 사실 CSV와 명시한 규칙입니다. 미리 계산한 점수·검증 답안·그래프를 입력으로 읽어 같은 답을 베끼지 않습니다. 원토큰이 십진수면 정확 유리수 계산에서는 그 십진 문자열을 분수로 읽고, 이진 부동소수점 근사 계산의 차이는 별도 범위로 밝힙니다.
Reproduction is a chain, not merely resaving a final table: read fields from responses, archives and codebooks; define targets and audit groups; assign roles from native IDs; fit training medians and cell probabilities; select on validation and assess on test. Preserve units and inputs at every step.
The sixty-four country records are sixteen countries times four indicators, assembled into sixteen same-year vectors as a derived step. Individual data preserve fifty-two fields using native fixed-width codebook positions. Company data retain fourteen CSV fields and one-based source positions. A derived row index is not a native field.
Assign roles on all native positions before evaluating missingness. Removing 596 excluded people and renumbering survivors would change IDs and roles. Filling missing values with zero creates another model. Our ledger links all 3,613 source rows with the 3,017 eligible rows.
Public code starts from factual CSVs and declared rules, not precomputed scores, validation answers or charts. Decimal tokens become exact fractions from their strings when using rational arithmetic; binary floating approximations are separately identified.
학부 심화 · 선택Advanced undergraduate · optional
공개 Python·R로 표 한 칸을 재현하기Reproduce a table cell with public Python and R
먼저 국가 시험 네 행의 원 Y와 훈련에서 얻은 점수를 찾아 기준3/4의 선택을 손으로 적습니다. 그 뒤 공개 Python·R 코드를 실행해 원행·역할·훈련 중앙값·칸·후보 기준·시험 비율·보정 구간·집단표를 확인합니다. 프로그램 결과를 이해하기 전에 실행 버튼부터 누를 필요는 없습니다.
Python 재현은 십진 원토큰을 Fraction으로 읽어 유한 합·분수 비교·동률을 정확하게 계산합니다. R 재현은 명시한 유한 정밀도 수치 계산이며 모든 가능한 극단 입력에서 임의정밀도 유리수와 같다고 주장하지 않습니다. 실제 사례의 선택과 각 표를 비교하되 표시 반올림의 같음과 원분수의 같음을 구분하세요.
곡선 점과 표는 같은 계산에서 나와야 합니다. ROC는FPR/TPR, PR은재현율/정밀도, 신뢰도 그림은 구간 평균 점수/사건 비중입니다. 시작 정밀도1은 PR 그림 관례이고 관측 정밀도 미정의는 표에 남습니다. 원SVG를 확대해도 모든 비율의 분모를 알 수 있는 것은 아니므로 연결된 수치표를 함께 읽습니다.
실험 기록에는 실행 환경·입력 파일·비용·구간 경계·역할·선택 규칙을 남깁니다. 파일을 내려받지 않아도 본문 표에서 핵심을 이해하고, 원자료부터 검증하려는 독자는 같은 연결을 따라 재현하도록 구성합니다.
Begin by finding the four country test targets and training-fitted probabilities and applying threshold three quarters by hand. Then use public Python and R to inspect source rows, roles, fitted medians/cells, candidates, test rates, reliability bins and groups. Understanding a cell can precede pressing Run.
Python reads decimal strings as Fractions for exact finite sums, comparisons and ties. R uses declared finite-precision arithmetic and does not claim arbitrary-precision rational equivalence for every extreme input. Compare actual choices and tables while distinguishing identical rounded displays from identical fractions.
Plots and tables must share calculations: FPR/TPR for ROC, recall/precision for PR, and bin forecast/event means for reliability. The PR drawing origin of precision one remains distinct from undefined observed precision. Zooming an SVG cannot reveal all denominators; read its linked numerical table.
Record environment, factual inputs, costs, edges, roles and selection rules. The body should explain the core findings without downloads, while reproduction follows the same lineage back to originals.
학부 심화 · 선택Advanced undergraduate · optional
학자와 영상: 같은 표에서 서로 다른 질문 찾기Scholars and video: different questions about one table
Jesse Davis와 Mark Goadrich는2006년 연구에서 ROC와 PR의 관계와 보간을 검토했습니다. 먼저 그 논문의 혼동행렬 정의를 이 장의 표와 대조하고, 혼동질량의 선형 변화가 PR 평면에서는 왜 비선형인지 설명해 보세요. Jesse Davis의 공식 연구 페이지는 기계학습과 스포츠 분석 등 응용으로 연결되는 연구 경로도 보여 줍니다. 인물 이름을 외우기보다 어떤 질문을 분리했는지 기억하세요.
Chuan Guo·Geoff Pleiss·Yu Sun·Kilian Weinberger의2017년 논문은 신경망의 정확도와 확신의 보정을 구분하는 연결 읽기입니다. Moritz Hardt·Eric Price·Nathan Srebro의2016년 논문은 선택률과 표적 조건부 오류율의 같음을 구별합니다. 이 장은 그들의 전체 알고리즘을 재현한 것이 아니라 필요한 정의를 읽고 이진 사건·유한 표의 계산으로 연결합니다.
본문 영상은 제작자 StatQuest with Josh Starmer의 ROC and AUC, Clearly Explained!입니다. 임계값별 혼동행렬이 어떻게 ROC 점으로 모이는지 보고, 여섯 카드의 동점 묶음과 대조하세요. 제작자가 설명란에 밝힌12:00 정정은 TP3·FP2·FN1·TN2입니다. 영상의 해당 행렬은 이 수정값으로 읽어야 합니다. 시청 뒤 “AUC가 같아도 행동 비용은 왜 다를 수 있나”를 자신의 말로 답해 보세요.
Jesse Davis and Mark Goadrich’s 2006 paper studies the relation between ROC and PR and their interpolation. Compare its confusion definitions with ours and explain why linear confusion-mass interpolation is nonlinear in PR. Davis’s official research page also connects machine learning with applications such as sports analytics. Remember the distinct research questions rather than only names.
Chuan Guo, Geoff Pleiss, Yu Sun and Kilian Weinberger (2017) separate neural-network accuracy from confidence calibration. Moritz Hardt, Eric Price and Nathan Srebro (2016) distinguish selection parity from target-conditional error-rate parity. We connect selected definitions to binary-event finite tables rather than reproducing their complete algorithms.
The embedded creator video is StatQuest with Josh Starmer’s ROC and AUC, Clearly Explained! Trace confusion matrices into ROC points and compare our tied block. The creator’s description corrects the matrix at 12:00 to TP three, FP two, FN one and TN two; read that matrix using this correction. Afterwards explain why identical AUC does not imply identical action costs.
학부 심화 · 선택Advanced undergraduate · optional
실습: 실제 세 자료를 같은 절차로 읽기Lab: read all three actual datasets through one procedure
자료 종류를 국가→개인→기업으로 바꾸며 같은 절차를 반복합니다. 원행 수·적격행·훈련/검증/시험 질량을 먼저 쓰고, 그 다음 비용 시나리오를 고릅니다. 임계값은 검증에서만 정해졌는지 확인하고 시험 혼동행렬을 총질량과 대조합니다.
국가에서는 같은 기준3/4에 비용만 달라지는 예를, 개인에서는 놓침 비용5에서 시험 전체가 선택되는 예를, 기업에서는 오경보 비용5에서FP0·FN90이 되는 예를 찾아보세요. 좋은 숫자 하나를 고르기보다 누가 어떤 행동을 받는지 읽는 연습입니다.
곡선과 보정은 동일한 시험 점수를 사용합니다. 비용 시나리오가 바뀌어도 AUC·AP·Brier가 그대로인 이유를 설명하세요. 집단표에서는 코드의 의미·빈 분모·알려진 합+미상 합=전체를 확인합니다. 원본 그림 확대와 웹 수치표를 오가며 동일한 점을 찾는 것까지 수행합니다.
Switch from country to person to company and repeat one procedure. First record native rows, eligible rows and train/validation/test masses; then choose a cost scenario. Confirm validation-only threshold choice and reconcile test cells with total mass.
Find the common three-quarter country threshold with changing costs, all-selected person test under miss-five, and company alarm-five with zero FP and ninety FN. Read who receives which action instead of choosing one attractive number.
Curves and reliability use the same test scores. Explain why AUC, AP and Brier remain fixed when only the cost scenario changes. Inspect group meaning, undefined denominators and mass conservation. Match a point across the original zoomable figure and the web numerical table.
학부 심화 · 선택Advanced undergraduate · optional
연구 프로젝트: 예측 점수에서 책임 있는 행동 계획으로Project: from prediction scores to a defensible action plan
작은 팀 프로젝트로 세 자료 중 하나를 고르세요. 첫 페이지에 표적과 단위, 관측 범위, 분석 질량, 역할 일정, 제외 규칙을 적습니다. “모형을 개선한다”보다 “동일 비용일 때와 놓침 비용이 커질 때 선택량이 어떻게 다른가”처럼 답할 수 있는 질문을 세웁니다. 결과표에는 전체와 집단별 분모·네 칸·평균 비용·원점수 Brier·곡선 요약을 나란히 둡니다.
두 번째 페이지에서는 비용을 누가 어떤 근거로 정했는지 논의합니다. 연락 부담·미선택 부담·용량·행동 효과 중 이 비용표가 포함한 것과 추가 연구가 필요한 것을 나눕니다. 원예측으로는 알 수 없는 개입 효과를 상상 숫자로 실제 편익처럼 보고하지 않습니다.
세 번째 페이지에서는 실패 조건을 설계합니다. 양성 없는 시험·동점 전부·집단 정보 결측·미실현 제약·작은 비영 확률·표시 범위를 넘는 비용을 넣어 정의와 계산이 보존되는지 확인합니다. 정확한 값이 화면에서0이나1로 반올림될 때는 원분수와 비영·반올림 표지를 함께 읽습니다.
다음 장의 분포 이동과 견고성 논의로 이어갈 질문은 “같은 절차를 다른 환경에서 쓰려면 무엇이 유지되어야 하는가”입니다. 이 장의 유한 표를 마무리하되, 예측의 의미·선택의 가정·집단의 맥락을 남긴 연구 기록이 다음 분석의 출발점이 되게 하세요.
Choose one actual dataset for a small team project. On page one declare target/units, observation scope, analytical mass, role schedule and exclusions. Ask an answerable question, such as how selection changes between equal costs and higher missed-case costs. Place overall/group denominators, cells, mean cost, original-score Brier and curve summaries together.
On page two discuss who sets costs and on what evidence. Separate burdens represented by the table from capacity, intervention effects and other matters needing research. Do not present imagined intervention benefits as measured consequences of prediction.
On page three design failure cases: no positive test cases, all ties, missing groups, infeasible constraints, tiny nonzero probabilities and costs exceeding display range. Verify preserved definitions. When exact values round to zero or one, inspect fractions with nonzero or rounded-value markers.
A bridge to distribution shift and robustness asks what must remain stable to reuse the procedure in another environment. Finish the finite ledger while preserving probability meaning, selection assumptions and group context for the next study.
영상·학자·함께 읽기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.
ROC·AUC 입문 · StatQuestROC and AUC, Clearly Explained!
StatQuest with Josh Starmer · creator-verified YouTube channel · English · 2019 revision
임계값별 혼동행렬을 ROC 점으로 옮기고 동점 묶음과 비교합니다. 제작자 설명란의12:00 정정은TP3·FP2·FN1·TN2입니다.Map threshold confusion matrices to ROC points and compare tied blocks. The creator corrects the matrix at 12:00 to TP3/FP2/FN1/TN2.
보고 읽은 뒤 답하기Respond after watching/reading면적이 같아도 운영점의 오류 부담은 같나요?Does equal area imply equal burdens at an operating point?
생각을 점검하는 해설Check your reasoning
아닙니다. 운영점의 네 칸·비용·분모를 따로 비교해야 합니다.No. Compare operating cells, costs and denominators separately.
원문 읽기 · ROC와 PR의 관계Primary reading: the relationship between ROC and PR
Jesse Davis and Mark Goadrich · ICML 2006 · selected definitions and interpolation
8쪽 원문 중 처음 두 쪽의 정의와 PDF5쪽 그림5의 비선형 PR 보간 설명을 읽습니다.Read definitions in the first two PDF pages and the nonlinear PR interpolation discussion around Figure5 on PDF page5 of eight.
Chuan Guo, Geoff Pleiss, Yu Sun and Kilian Q. Weinberger · PMLR 2017 · selected opening/definitions
원문 서두·2절의 최상위 예측 정확도와 확신 정의를 읽고 이 장의 이진 사건 p·Y 진단과 구별합니다.Read opening and Section2 definitions of top-label correctness/confidence, distinguishing them from our binary-event p/Y diagnostic.
Moritz Hardt, Eric Price and Nathan Srebro · NeurIPS 2016 · selected Definitions2.1–2.3
PDF2~3쪽의 조건부 독립·TPR/FPR 정의와 알려진 결합 법칙 이상화를 읽습니다. 집단별 후처리 알고리즘을 이 장에서 구현했다고 표시하지 않습니다.Read PDF pages2–3 on conditional independence, TPR/FPR and the idealized known joint law. Our lab does not implement their group postprocessing algorithm.
보고 읽은 뒤 답하기Respond after watching/reading다른 응용에서도 지표의 분모를 명시해야 하는 이유는?Why must metric denominators be explicit across applications?
생각을 점검하는 해설Check your reasoning
같은 이름의 비율도 평가 대상과 행동 목적이 다를 수 있기 때문입니다.Evaluation populations and action objectives can differ even with familiar metric names.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 정확도 99%의 빈틈The gap in 99% accuracy
양성1명·음성99명에서 늘 음성일 때 TP·FP·FN·TN, 정확도와 재현율을 구하세요.
With one positive and ninety-nine negatives, calculate cells, accuracy and recall for always-negative.
풀이와 확인할 이유Solution and explanation
누구도 선택하지 않으므로 TP=FP=0입니다. 양성 한 명은 놓쳐 FN=1, 음성99명은 TN=99입니다. 정확도는99/100, 재현율은0/1=0입니다. 정밀도는0/0으로 미정의입니다. 높은 정확도와 탐지 실패가 동시에 가능합니다.
Selecting nobody gives TP and FP zero, FN one and TN ninety-nine. Accuracy is 99/100, recall zero and precision undefined as 0/0. High accuracy and complete failure to detect positives can coexist.
2. 같은 점수는 함께 선택한다Equal scores enter together
여섯 카드에서 기준0.8과0.8001의 선택 ID와 네 칸을 비교하세요.
Compare selected IDs and confusion cells at thresholds 0.8 and 0.8001 for the six cards.
풀이와 확인할 이유Solution and explanation
0.8에서는 a,b,c를 선택하여(2,1,1,2)입니다. 0.8001에서는 a만 선택하여(1,0,2,3)입니다. b만 남기고 c를 빼는 것은 점수 임계값 규칙으로 만들 수 없습니다. 실수 근삿값이 아니라 선언한 십진 임계값으로 동률을 비교합니다.
Threshold 0.8 selects a, b and c, giving (2,1,1,2). Threshold 0.8001 selects only a, giving (1,0,2,3). A score threshold cannot keep b while dropping equally scored c. Compare the declared decimal tokens when deciding ties.
3. FPR과 잘못된 경보 비중FPR versus the wrong-alert share
TP8·FP9·FN2·TN81일 때 TPR·FPR·정밀도·선택 중 오류 비중을 구하세요.
For TP eight, FP nine, FN two and TN eighty-one, calculate TPR, FPR, precision and the wrong-alert fraction.
풀이와 확인할 이유Solution and explanation
TPR=108=54,FPR=909=101,PPV=178,1−PPV=179
FPR의 분모90은 실제 음성 수이고, 마지막 분모17은 선택한 수입니다. 같은 FP9라도 질문이 다르므로 비율도 다릅니다.
TPR=108=54,FPR=909=101,PPV=178,1−PPV=179
FPR divides by ninety actual negatives; the last quantity divides by seventeen selected cases. The same nine false positives answer different conditional questions.
4. 가중 카드A weighted card
여섯 카드 기준0.8에서 c의 질량만2이면 총질량·정확도·정밀도·F1은 얼마인가요?
At threshold 0.8 double only c’s mass. Find total mass, accuracy, precision and F1.
Apply mass to confusion cells before forming ratios. Doubling an old percentage misses the changed denominator.
5. 균형 정확도Balanced accuracy
TP1·FN9·TN90·FP0에서 정확도와 균형 정확도를 구하고 다른 이유를 설명하세요.
For TP one, FN nine, TN ninety and FP zero, compare accuracy and balanced accuracy.
풀이와 확인할 이유Solution and explanation
Accuracy=10091,BA=21/10+1=2011
정확도는100행의 평균이고 균형 정확도는 양성10명과 음성90명의 재현율을 각각 절반으로 셉니다. 양성 실패9명을 어떤 비중으로 벌할지 다른 목적을 정한 것입니다.
Accuracy=10091,BA=21/10+1=2011
Accuracy averages one hundred rows; balanced accuracy gives equal weight to recall among ten positives and ninety negatives. They assign different importance to the nine missed positives.
6. 정밀도 미정의와 F1 0Undefined precision and zero F1
실제 양성2·음성3에서 아무도 선택하지 않을 때 정밀도와 F1을 구하세요.
There are two positives and three negatives, with nobody selected. Find precision and F1.
풀이와 확인할 이유Solution and explanation
PPV=00 undefined,F1=0+0+20=0
미정의 정밀도를 임의로0으로 채운 뒤 조화평균을 계산한 것이 아닙니다. F1을 직접 정의한 식의 분모가 양수이기 때문에0입니다.
PPV=00 undefined,F1=0+0+20=0
We did not replace undefined precision with zero before a harmonic mean. The direct definition of F1 has a positive denominator here.
7. 확신이 강한 오답A confident wrong answer
Y=0에 p=0.51과0.99를 제시할 때 Brier와 기준0.5 행동을 비교하세요.
Against Y zero, compare Brier and threshold-0.5 actions for scores 0.51 and 0.99.
풀이와 확인할 이유Solution and explanation
(0.51−0)2=0.2601,(0.99−0)2=0.9801
두 행동 모두 양성이라 FP 한 건입니다. 확률 채점에서는 두 번째가 더 큰 손실입니다. 행동의 같음은 확률의 품질이 같다는 뜻이 아닙니다.
(0.51−0)2=0.2601,(0.99−0)2=0.9801
Both actions are positive and contribute one FP. Probability scoring penalizes the second more heavily. Equal actions do not imply equal probability quality.
8. 여섯 카드 BrierSix-card Brier
여섯 카드의 평균 Brier와 상수0.5 기준선의 차이를 구하세요.
Calculate six-card mean Brier and its difference from the constant-0.5 reference.
풀이와 확인할 이유Solution and explanation
BS=6001+4+64+36+36+1=30071,41−30071=751
손실은 각각 분모100이며6행을 평균합니다. 임계값을 바꾸어도 점수와 Y가 같으면 이 차이는 그대로입니다.
BS=6001+4+64+36+36+1=30071,41−30071=751
Each squared loss has denominator one hundred and we average six rows. Threshold changes leave this difference unchanged while scores and targets remain fixed.
9. 결측 한 행의 분모The denominator with one missing row
완전 관측3행의 정확한 행동2건과 표적 결측1행이 있습니다. 결측을 맞힌 것으로 세었을 때와 올바른 정확도를 비교하세요.
Three complete rows contain two correct actions and a fourth row lacks its target. Compare correct accuracy with counting the missing row as correct.
A missing target cannot establish correctness. Preserve the native row and exclusion reason while excluding it from the scoring denominator. Three quarters invents an unobserved outcome.
10. 표적을 뒤집어 읽기Reverse the target orientation
TP2·FP1·FN1·TN6인 결과에서 표적과 행동의0/1을 모두 뒤집으면 네 칸과 새 TPR은 무엇인가요?
Reverse both target and action labels for TP two, FP one, FN one and TN six. Find the new cells and TPR.
풀이와 확인할 이유Solution and explanation
새 양성은 옛 음성입니다. 따라서 새(TP,FP,FN,TN)=(6,1,1,2)이고 새TPR=6/7입니다. 옛TPR은2/3이었습니다. 정확도8/10은 그대로지만 무엇을 찾는지에 따라 재현율 질문은 바뀝니다.
New positives are old negatives, so new cells are (6,1,1,2) and new TPR is 6/7, compared with old TPR 2/3. Accuracy stays 8/10 while the meaning of recall changes with target orientation.
11. 임계값 장부 완성Complete the threshold ledger
여섯 카드 기준0.6과0.4의(TP,FP,FN,TN)·정밀도를 구하세요.
Find confusion cells and precision at thresholds 0.6 and 0.4 for the six cards.
Threshold 0.6 selects a through d, giving (2,2,1,1) and precision one half. Adding positive e at 0.4 gives (3,2,0,1), precision three fifths. Lowering the threshold increased precision here; precision is not monotone.
12. 양성·음성 아홉 쌍Nine positive-negative pairs
여섯 카드 ROC AUC의 세 양성별 점수를 써서13/18을 확인하세요.
Verify AUC 13/18 by listing the credit earned by each positive score.
풀이와 확인할 이유Solution and explanation
AUC=3⋅33+(2+1/2)+1=1813
양성0.8과 음성0.8은 동률이라1/2점입니다. 이 항을0이나1로 바꾸면 다른 정의가 되고 행 순서의 영향을 받을 수 있습니다.
AUC=3⋅33+(2+1/2)+1=1813
Positive 0.8 ties negative 0.8 and earns a half. Assigning zero or one changes the definition and can introduce row-order effects.
13. 가중 동점 쌍Weighted tied pairs
양성 점수0.8·질량2, 음성 점수0.8·질량3 및0.2·질량1일 때 AUC를 구하세요.
A positive score 0.8 has mass two; negatives 0.8 and 0.2 have masses three and one. Find AUC.
풀이와 확인할 이유Solution and explanation
P=2,N=4,U=2⋅3⋅21+2⋅1=5,AUC=85
쌍의 질량은2와3의 합이 아니라 곱6입니다. 각 범주 안의 질량에 비례해 한 장씩 뽑는 정의를 반영합니다.
P=2,N=4,U=2⋅3⋅21+2⋅1=5,AUC=85
Pair mass is the product six, not the sum of two and three. It represents independently drawing proportional to mass within each class.
14. AP의 세 기여Three AP contributions
여섯 카드의 AP를 재현율이 증가한 세 묶음만 사용해 구하세요.
Calculate AP using the three blocks that increase recall in the six-card example.
풀이와 확인할 이유Solution and explanation
AP=31(1)+31(32)+31(53)=4534
음성만 들어오는0.6·0.1 묶음의 재현율 증분은0입니다. 다만 앞서 들어온 음성이 이후 정밀도의 분모에 남으므로 완전히 무시된다는 뜻은 아닙니다.
AP=31(1)+31(32)+31(53)=4534
Negative-only blocks at 0.6 and 0.1 have zero recall increments. Their negatives still remain in later precision denominators; zero direct contribution does not erase that effect.
15. AP와 PR 사다리꼴AP and the PR trapezoid
양성 점수0.9·음성 점수0.8·양성 점수0.7의 단위 질량3행에서 AP와 시작점 정밀도1의 PR 사다리꼴을 구하세요.
For unit-mass rows positive 0.9, negative 0.8, positive 0.7, find AP and PR trapezoid with initial plotted precision one.
At recall one half the negative lowers precision vertically from one to one half. The next trapezoid averages one half and two thirds, unlike right-step AP.
16. 양성 비중의 변화Changing prevalence
TPR4/5·FPR1/10을 고정하고 양성 비중1/2와1/10의 정밀도를 비교하세요.
Hold TPR four fifths and FPR one tenth fixed. Compare precision at prevalences one half and one tenth.
This is a composition calculation conditional on unchanged TPR and FPR. Whether a deployed model preserves those rates needs new evidence.
17. 모든 점수가 동점Every score ties
양성2·음성3의 점수가 모두0.4라면 AUC와 AP는 얼마인가요?
Two positives and three negatives all score 0.4. Find AUC and AP.
풀이와 확인할 이유Solution and explanation
AUC=2⋅32⋅3⋅(1/2)=21,AP=(1−0)52=52
한 묶음이 한 번에 들어옵니다. 그 안에서 양성을 먼저 놓는 인위적 정렬을 하지 않습니다.
AUC=2⋅32⋅3⋅(1/2)=21,AP=(1−0)52=52
One tied block enters at once. No artificial within-block ordering places the positives first.
18. 단일 범주의 다른 미정의Different single-class boundaries
관측3행이 모두 양성이며 점수가0.9·0.6·0.2일 때 AUC·AP·마지막 정밀도는 무엇인가요?
Three observed rows are all positive at scores 0.9, 0.6 and 0.2. Find AUC, AP and final precision.
풀이와 확인할 이유Solution and explanation
음성 질량이0이라 ROC AUC는 미정의입니다. 모든 비어 있지 않은 선택의 정밀도는1이고 재현율 증분 합이1이므로 AP=1입니다. 마지막 정밀도도3/3=1입니다. 이 결과는 음성과의 구별 성능을 평가하지 못합니다.
With zero negative mass ROC AUC is undefined. Every nonempty selection has precision one and recall increments total one, so AP equals one. Final precision is three thirds. No discrimination against negatives has been evaluated.
19. 점수 제곱과 기준0.5Squaring scores at threshold 0.5
점수0.9·0.6·0.4를 제곱하면 기준0.5 선택과 순위는 어떻게 달라지나요?
Square scores 0.9, 0.6 and 0.4. What changes in threshold-0.5 selection and ranking?
풀이와 확인할 이유Solution and explanation
원래0.9·0.6을 선택하지만 제곱하면0.81·0.36·0.16이 되어0.9였던 행만 선택합니다. 순서와 동률은 유지되므로 두 범주가 존재할 때 AUC는 같습니다. 값이 확률로 적절한지는 별도로 채점해야 합니다.
Originally 0.9 and 0.6 are selected. Squared values 0.81, 0.36 and 0.16 select only the first. Ordering and ties are preserved, so AUC stays unchanged when defined. Probability suitability needs separate assessment.
20. 확률적 ROC 혼합Randomized ROC mixing
정책A의(TPR,FPR)=(1/3,0), 정책B=(1,2/3)를 독립 동전으로 각각 절반 확률로 사용하면 기대 TPR·FPR은 얼마인가요?
Use policies A with (TPR,FPR)=(1/3,0) and B with (1,2/3), each with probability one half independently of cases. Find expected rates.
풀이와 확인할 이유Solution and explanation
E[TPR]=2131+21=32,E[FPR]=21(0)+2132=31
고정된 양성·음성 분모에서 기대 혼동질량을 구한 결과입니다. 유한 실행의 실현 비율이 언제나 이 값이라는 뜻은 아니며, 기대 정밀도까지 같은 선형 평균이라고 옮겨 쓰면 안 됩니다.
E[TPR]=2131+21=32,E[FPR]=21(0)+2132=31
These use expected confusion masses with fixed class denominators. Realized finite rates need not equal them, and expected precision cannot simply be replaced by the same linear average.
21. 같은 장부·다른 비용One ledger, different costs
여섯 카드 기준0.8의 FP1·FN1에서 비용1:5와5:1의 총비용·평균 비용을 구하세요.
At threshold 0.8, FP and FN both equal one. Calculate total and mean costs for ratios 1:5 and 5:1.
풀이와 확인할 이유Solution and explanation
C1:5=1+5=6,C5:1=5+1=6,C=6/6=1
이 한 기준에서는 우연히 같지만 전체 후보에서 최적 기준이 같다는 뜻은 아닙니다. 비용 비교는 모든 허용 후보에 적용해야 합니다.
C1:5=1+5=6,C5:1=5+1=6,C=6/6=1
Equality at one policy does not imply equal optimal thresholds. Compare costs across every allowed candidate.
22. 놓침 비용5의 최소Minimize with missed-case cost five
여섯 카드의 기준별 FP/FN으로 FP1·FN5 최적 기준과 평균 비용을 구하세요.
Use all six-card thresholds to minimize FP-one/FN-five cost and find its mean.
풀이와 확인할 이유Solution and explanation
후보 총비용은 늘 음성15,0.9에서10,0.8에서6,0.6에서7,0.4에서2,0.1에서3입니다. 기준0.4가 최솟값2이고 총질량6으로 나누면1/3입니다. 평균 최소화는 같은 분모이기 때문에 같은 후보를 택합니다.
Totals are fifteen, ten, six, seven, two and three in declared threshold order. Threshold 0.4 minimizes at two; dividing by six gives one third. Equal denominators make the mean minimizer identical.
23. 두 행동의 조건부 손실Conditional losses of two actions
p=1/5·FP1·FN5에서 양성 및 음성 행동의 기대비용을 비교하세요.
At posterior p one fifth with FP cost one and FN cost five, compare expected costs.
풀이와 확인할 이유Solution and explanation
C+=1(1−1/5)=4/5,C−=5(1/5)=1
4/5<1이므로 이 가정 아래 양성 행동을 택합니다. 경계1/6보다1/5가 큰 것과 일치합니다. 관련 사후확률과 비용 가정을 확인한 뒤에만 이 판단을 적용합니다.
C+=1(1−1/5)=4/5,C−=5(1/5)=1
Positive action has smaller conditional cost, consistent with one fifth exceeding the boundary one sixth. This conclusion is conditional on the relevant posterior and cost assumptions.
24. 이론 경계와 검증 선택Theoretical boundary and validation choice
FP1·FN5의 베이즈 경계1/6과 여섯 카드의 검증 기준0.4가 다른 이유를 설명하세요.
Explain why the Bayes boundary one sixth need not equal the six-card validation threshold 0.4.
풀이와 확인할 이유Solution and explanation
베이즈 식은 점수가 관련 사건의 조건부 확률이며 비용표가 해당 행동 손실을 나타낸다는 조건 아래의 기대손실 최소화입니다. 검증 선택은 관측된 여섯 카드와 선언한 점수 격자에서 경험 비용을 최소화합니다. 유한 표본과 확률 보정 오차가 있을 수 있어 두 결과의 같음이 전제되지 않습니다.
The Bayes expression minimizes conditional expected loss under a relevant posterior and the stated action-loss table. Validation minimizes empirical cost on six observed cards and a declared score grid. Finite sampling and imperfect probability meaning need not make the two answers equal.
25. 영 비용의 경계The zero-cost boundary
FP=FN=0일 때 양의 질량 검증 자료의 후보 비용·선택·베이즈 경계는 어떻게 되나요?
With both error costs zero and positive validation mass, what are candidate costs, selection and the Bayes boundary?
풀이와 확인할 이유Solution and explanation
모든 후보의 총·평균 비용은0입니다. 제약이 없다면 선언 순서 첫 후보를 택합니다. C_FP/(C_FP+C_FN)=0/0이므로 경계는 미정의이며, 확률과 관계없이 비용상 모든 행동이 같습니다. 이를 경계0이라고 바꾸면 다른 진술이 됩니다.
Every total and mean cost is zero. Without constraints the first declared candidate wins. The ratio zero over zero is undefined; all actions tie in cost regardless of probability. Replacing that statement with a boundary of zero changes its meaning.
26. 동점에서 원순서 보존Preserve declared order under a tie
여섯 카드 FP=FN=1에서 후보를[0.8,0.9]로 선언했을 때 각 총비용과 선택을 구하세요.
For equal costs, declare candidates [0.8,0.9] on the six cards. Find their costs and selected candidate.
풀이와 확인할 이유Solution and explanation
0.8은FP1+FN1=2,0.9는FP0+FN2=2입니다. 정확히 동률이므로 먼저 선언한0.8을 택합니다. 후보 순서를[0.9,0.8]로 바꾸면 선택도0.9가 됩니다. 입력 순서는 재현 계약의 일부입니다.
Threshold 0.8 costs one FP plus one FN, or two; 0.9 costs zero FP plus two FN, also two. The first declared 0.8 wins. Reversing the input order selects 0.9. Declared order is part of the reproducible rule.
27. 제약이 불가능한 경우An infeasible constraint pair
여섯 카드에서 TPR≥4/5·FPR≤2/5를 모두 충족하는 기본 후보가 있는지 확인하세요.
Check whether any default six-card threshold satisfies TPR at least four fifths and FPR at most two fifths.
풀이와 확인할 이유Solution and explanation
가능한 TPR은0,1/3,2/3,1이므로4/5 이상은1이어야 합니다. 그 후보0.4·0.1의 FPR은2/3·1로 모두2/5를 넘습니다. 따라서 선택은 미정의·불가능 상태이며 제약을 충족한 것처럼 기준0.4를 반환하면 안 됩니다.
Possible recalls are zero, one third, two thirds and one, so the requirement forces one. Thresholds 0.4 and 0.1 have FPR two thirds and one, both above two fifths. Selection is infeasible, not a successful threshold 0.4.
28. 시험 표적을 바꾸는 검사A test-label perturbation check
훈련·검증은 그대로 두고 시험 Y만 뒤집었습니다. 검증 선택과 시험 비용에서 무엇이 바뀔 수 있나요?
Keep training and validation fixed but reverse only test labels. What may change in threshold selection and test cost?
풀이와 확인할 이유Solution and explanation
검증에만 의존하는 선택 임계값·후보 비용표는 그대로여야 합니다. 시험 혼동행렬·곡선·Brier·비용은 달라질 수 있습니다. 선택이 바뀌었다면 시험 정보를 읽는 경로가 있는지 조사해야 합니다. 이는 특정 실행의 누출 검사이지 모든 정보 경로의 통계적 독립성 증명은 아닙니다.
A validation-only threshold and candidate costs must stay fixed. Test cells, curves, Brier and costs can change. Changed selection indicates a path reading test information. This is a concrete leakage check, not a proof of statistical independence of every information channel.
29. 단위와 분모Units and normalization
총질량8에서 FP2·FN1이고 FP비용3분·FN비용12분이면 총·평균 부담은 무엇인가요?
At total mass eight, FP two and FN one, assign costs three minutes and twelve minutes. Find total and mean burden.
The denominator is declared total evaluation mass, not selected or erroneous cases. State whether unit costs were measured or merely assumed.
30. 다시 적합하면 새 정책이다Refitting creates a new policy question
검증에서 고른 기준0.6을 훈련+검증으로 다시 적합한 모형에 그대로 적용했습니다. 처음 평가한 절차와 같은가요?
A threshold of 0.6 chosen on validation is reused after refitting probabilities on training plus validation. Is that the original evaluated procedure?
풀이와 확인할 이유Solution and explanation
일반적으로 같지 않습니다. 훈련 중앙값·칸 확률·점수 눈금이 바뀔 수 있기 때문입니다. 새 절차로 사전에 선언해 별도 외부 평가를 할 수 있지만, 기존 시험 성능이 자동 이전된다고 주장할 수는 없습니다. 이 장의 실제 예는 재적합 없이 모형을 고정합니다.
Not generally. Training medians, cell probabilities and score scales can change. Declare and externally assess the new procedure rather than automatically transferring the old test score. Our actual study fixes its fitted model.
31. 구간 경계의 행A row on a bin edge
경계[0,0.5,1]에서 점수0·0.5·1의 소속 구간을 정하세요.
For edges [0,0.5,1], assign scores zero, one half and one to bins.
풀이와 확인할 이유Solution and explanation
0은[0,0.5)에,0.5와1은[0.5,1]에 들어갑니다. 마지막 구간만 오른쪽 경계1을 포함합니다. 구간을 모두 닫으면0.5를 중복 계산하고 모두 열면 경계 행을 잃습니다.
Zero enters [0,0.5), while one half and one enter [0.5,1]. Only the final bin includes its right endpoint. Closing both adjacent bins double-counts boundaries; opening both loses them.
32. 여섯 카드의 두 평균Two means for the six cards
아래 두 행과 위 네 행의 평균 점수·사건 비중을 직접 구하세요.
Compute mean scores and event rates for the lower two and upper four six-card rows.
The correction vanishes in this special constant-forecast case. It does not generally vanish for varying forecasts.
39. 빈 구간은0점이 아니다An empty bin is not a zero-valued point
한 구간 질량0일 때 평균 점수·사건 비중·ECE 가중 기여는 어떻게 기록하나요?
How should an empty bin’s mean score, event frequency and ECE contribution be recorded?
풀이와 확인할 이유Solution and explanation
평균 점수와 사건 비중은0/0으로 미정의입니다. 전체 질량이 양수라면 그 구간의 ECE 기여는 질량 비중0이므로0입니다. 그림에(0,0)을 추가하지 않습니다. 전체 질량까지0이면 ECE 자체도 미정의입니다.
Both means are undefined as zero over zero. If overall mass is positive, the empty bin’s weighted contribution is zero. Do not add a fabricated point at (0,0). If all mass is zero, ECE itself is undefined.
40. 보정 적합의 시험 누출Test leakage in calibration fitting
시험 자료에서 구간을 골라 ECE가 가장 작은 보정 지도를 만든 뒤 같은 시험 ECE를 보고했습니다. 무엇이 평가에 섞였나요?
A calibration map and binning are selected to minimize test ECE, then that same ECE is reported. What entered assessment?
풀이와 확인할 이유Solution and explanation
원모형뿐 아니라 보정 지도와 구간 선택이 시험 정답에 적응했습니다. 그 결과는 선택에 사용한 자료의 적합도이며, 손대지 않은 새 시험 평가가 아닙니다. 보정 적합·선택을 별도 범위에서 수행하고 최종 정책 전체를 외부에서 평가하도록 설계를 바꿉니다.
The calibration map and bin choices adapted to test outcomes. The number describes data used for selection, not untouched test assessment. Separate fitting and selection, then externally assess the complete final policy.
41. 여섯 카드 집단표The six-card group ledger
기준0.8에서 집단A(a,b,c)·B(d,e,f)의 선택률·TPR·FPR을 구하세요.
At threshold 0.8 calculate selection rate, TPR and FPR for groups A (a,b,c) and B (d,e,f).
풀이와 확인할 이유Solution and explanation
A는 3명 모두 선택하여 선택률 1, 양성 2명 모두 탐지하여 TPR 1, 음성 1명도 선택하여 FPR 1입니다. B는 선택 0명이라 선택률 0, 양성 1명 누락으로 TPR 0, 음성 2명 모두 남겨 FPR 0입니다. 세 지표 모두 격차 1이지만 뜻과 분모는 다릅니다.
A selects all three, finds both positives and alerts on its one negative, giving rates one/one/one. B selects nobody, misses its positive and leaves both negatives, giving zero/zero/zero. All gaps equal one, with different meanings and denominators.
42. 미정의 PPV 격차An undefined PPV gap
앞 문제의 A·B 정밀도와 그 격차를 계산할 수 있는지 설명하세요.
Can precision and its gap be calculated for groups A and B above?
풀이와 확인할 이유Solution and explanation
A는 TP 2/선택 3=2/3입니다. B는 선택 0이라 0/0으로 미정의입니다. 따라서 두 집단을 모두 포함하는 PPV 격차도 미정의입니다. B의 값을 0으로 대입해 격차 2/3이라고 말하면 관측 없는 조건부 비율을 발명합니다.
A has precision two thirds. B has zero selected mass, giving undefined zero over zero. The full two-group PPV gap is undefined. Substituting zero invents a conditional rate with no conditioning population.
43. 집단 비중과 전체 선택률Group composition and overall selection
집단A 질량2·선택률1,집단B 질량8·선택률1/4일 때 전체와 집단 단순 평균 선택률을 비교하세요.
Group A has mass two and selection rate one; B has mass eight and rate one quarter. Compare overall selection with an unweighted group mean.
풀이와 확인할 이유Solution and explanation
soverall=102(1)+8(1/4)=52,smacro=21+1/4=85
전체는 평가 질량별 평균이고 macro는 집단별 같은 비중입니다. 둘 중 하나를 다른 이름으로 보고하면 분석 대상이 바뀝니다.
soverall=102(1)+8(1/4)=52,smacro=21+1/4=85
The overall weights evaluation mass; macro weights groups equally. Relabeling one as the other changes the estimand.
44. 전체 TPR의 가중치는 양성 질량Overall TPR weights positive mass
A의 양성 질량 2·TPR 1/2, B의 양성 질량 10·TPR 9/10일 때 전체 TPR은 얼마인가요?
A has positive mass two and TPR one half; B has positive mass ten and TPR nine tenths. Find overall TPR.
풀이와 확인할 이유Solution and explanation
TPR=2+102(1/2)+10(9/10)=1210=65
집단의 전체 질량이 아니라 양성 질량을 가중치로 씁니다. TPR의 조건이Y=1이기 때문입니다.
TPR=2+102(1/2)+10(9/10)=1210=65
Weights are positive masses, not total group masses, because TPR conditions on Y one.
45. 같은 오류율·다른 PPVEqual error rates, different PPV
두 집단의 TPR 4/5·FPR 1/10이 같고 양성 비중은 1/2·1/10일 때 PPV를 비교하세요.
Two groups share TPR four fifths and FPR one tenth with prevalences one half and one tenth. Compare PPV.
풀이와 확인할 이유Solution and explanation
QA=8/9,QB=8/17,QA−QB=15364
차이는 공통 오류율 조건 아래 구성비에 의해 생깁니다. 그 사실이 이 자료의 양성 비중 차이가 왜 생겼는지 인과적으로 설명하는 것은 아닙니다.
QA=8/9,QB=8/17,QA−QB=15364
Under shared conditional error rates, composition creates this difference. It does not causally explain why prevalences differ.
46. 비퇴화 조건의 예외An exception to the nondegenerate conditions
두 집단의 FPR=0·TPR>0이고 각 양성 질량이 양수이면 PPV는 무엇인가요?
If both groups have FPR zero, positive TPR and positive positive-target mass, what is PPV?
풀이와 확인할 이유Solution and explanation
FP=0이고 TP>0이므로 PPV=TP/(TP+0)=1입니다. 양성 비중이 다르더라도 같을 수 있습니다. 앞의 엄격 증가 논거는 f>0을 요구하므로 이 경우를 포함하지 않습니다.
FP is zero and TP positive, so PPV equals one in both groups, even at different prevalences. The strict-increase argument required positive f and does not cover this boundary.
47. 미상 집단의 보존Conserve unknown-group mass
전체 질량 10·알려진 A 3·B 5이고 나머지 집단이 결측이면 전체·알려진 합·미상은 어떻게 기록하나요?
Total mass is ten, known A three and B five, with other groups missing. Record all mass totals.
풀이와 확인할 이유Solution and explanation
Woverall=10,Wknown=3+5=8,Wunknown=2,8+2−10=0
그 두 행의 점수·Y가 완전하면 전체 채점에는 남습니다. 집단 정보가 없다는 이유로 전체 성능의 분모를 8로 바꾸지 않습니다.
Woverall=10,Wknown=3+5=8,Wunknown=2,8+2−10=0
If their scores and targets are complete, those two rows remain in overall assessment. Missing group alone does not reduce its denominator to eight.
48. 양성이 없는 집단A group without positives
양의 전체 질량을 가진 집단 A에는 양성이 0, B에는 양성이 있습니다. 모든 집단 TPR 격차를 보고할 수 있나요?
Positive-mass group A has no positives; B has positives. Can a full-group TPR gap be reported?
풀이와 확인할 이유Solution and explanation
A의 TPR 분모가 0이므로 미정의이고 전체 집단 TPR 격차도 미정의입니다. 0으로 바꾸어 B와 차이를 계산하지 않습니다. B만의 TPR은 보고할 수 있지만 집단 간 격차라는 이름을 붙일 수는 없습니다.
A’s TPR denominator is zero, so its rate and the full-group gap are undefined. Do not substitute zero. B’s rate can be reported alone, but is not an intergroup gap.
49. 숫자0과 문자0Numeric zero and text zero
집단 코드 0과 문자 “0”을 자동으로 같게 만들면 무엇이 달라질 수 있나요?
What can change if numeric group zero and text group “0” are automatically merged?
풀이와 확인할 이유Solution and explanation
집단별 분모·혼동행렬·격차가 달라질 수 있습니다. 같은 원범주라는 코드북 근거가 있으면 정제 규칙으로 명시해 통합할 수 있지만 자동 형변환은 재현 규칙을 바꿉니다. 전체 채점이 같더라도 집단 해석은 달라질 수 있습니다.
Group denominators, cells and gaps can change. A codebook-supported harmonization may be declared, but silent coercion changes the reproducible categories. Overall assessment can stay fixed while group interpretation changes.
50. 기술과 인과의 경계The descriptive-causal boundary
역사적 집단 코드별 FN 비율이 다릅니다. 이것만으로 모형 사용이 차이를 만들었다고 할 수 있나요?
Historical group codes show different FN rates. Does this alone show that using the model caused the difference?
풀이와 확인할 이유Solution and explanation
아닙니다. 관측 표적·특징·선택·측정·기존 제도가 연결될 수 있고 모형 사용 전후의 반사실 비교가 없습니다. 먼저 동일 정의의 집단별 분모와 오류를 기술한 뒤, 원인 질문에는 별도의 식별 설계가 필요하다고 밝힙니다.
No. Targets, features, selection, measurement and institutions may be associated, and no counterfactual comparison of model use is supplied. Describe errors on common definitions first; a causal question needs a separate identification design.
51. 실제 국가 시험 네 칸Four actual country test cells
CAN·JPN·MEX·USA의 Y=[1,1,0,0], p=[3/4,3/4,1/4,3/4]에서 기준 3/4의 네 칸·정밀도·FPR을 구하세요.
For CAN, JPN, MEX and USA with targets [1,1,0,0] and scores [3/4,3/4,1/4,3/4], find cells, precision and FPR at threshold 3/4.
CAN, JPN and USA are selected. The first two give TP two, USA gives FP one and MEX TN one, with FN zero. Precision is two thirds, FPR one half and TPR one. Precision and FPR use denominators three and two respectively.
52. 실제 국가 AUC와 APActual country AUC and AP
앞 네 행의 양성·음성 쌍과 동점 묶음을 사용해 AUC·AP를 구하세요.
Use positive-negative pairs and tied blocks for the preceding four rows to calculate AUC and AP.
풀이와 확인할 이유Solution and explanation
AUC=2⋅22(1)+2(1/2)=43,AP=1⋅32=32
각 양성은 MEX보다 높고 USA와 동점입니다. 최고 점수 묶음에 양성 2·음성 1이 같이 들어와 재현율이 한 번에 1이 됩니다.
AUC=2⋅22(1)+2(1/2)=43,AP=1⋅32=32
Each positive beats MEX and ties USA. The highest block contains two positives and one negative, taking recall directly to one.
53. 개인 동일 비용 정책Person equal-cost policy
시험 607행의 TP 197·FP 89·FN 142·TN 179에서 정확도·동일 비용 평균·정밀도를 구하세요.
For 607 person test rows with cells 197,89,142,179, find accuracy, equal-cost mean and precision.
풀이와 확인할 이유Solution and explanation
Accuracy=607376,C=60789+142=607231,PPV=286197
기준 201/326은 검증 620행에서 정했습니다. 시험 607행의 비용을 보고 그 기준을 고른 것으로 서술하지 않습니다.
Accuracy=607376,C=60789+142=607231,PPV=286197
Threshold 201/326 was chosen using 620 validation rows, not by inspecting these 607 test outcomes.
54. 기업의 두 비용 시나리오Two company cost scenarios
miss-five 시험 FP 239·FN 13과 alarm-five 시험 FP 0·FN 90의 각 시나리오 평균 비용을 구하세요.
Compute scenario-specific mean costs for company miss-five FP239/FN13 and alarm-five FP0/FN90 on 630 test rows.
These belong to different assumed objectives. Their ordering does not rank model quality under one fixed loss. Compare allowed policies within a common cost scenario.
55. 원행과 적격행Native and eligible rows
개인 원 3,613행 중 596행이 필수 입력·표적 결측이면 적격 수와 세 역할 합을 확인하세요.
Of 3,613 native people, 596 lack required inputs or targets. Check eligibility and the role sum.
풀이와 확인할 이유Solution and explanation
3613−596=3017,1790+620+607=3017
제외 행의 점수를 0으로 만들거나 원행을 삭제해 재번호 매기지 않습니다. 예정 역할·원 ID·이유는 남기고 분석 역할은 excluded로 기록합니다.
3613−596=3017,1790+620+607=3017
Neither assign zero scores to excluded rows nor delete and renumber native positions. Preserve planned role, native ID and reason while recording analytic role excluded.
56. 가설 비용과 실제 효과Hypothetical costs and actual effects
기업 FN 한 건 비용을 5로 놓았다는 사실만으로 연락한 고객 한 명당 이익 5가 생긴다고 할 수 있나요?
Does assigning FN cost five establish a gain of five for each customer contacted?
풀이와 확인할 이유Solution and explanation
아닙니다. FN 5는 놓친 관측 양성의 분류 손실 가정입니다. 연락으로 이탈이 얼마나 바뀌는지·연락 비용·매출 등을 관측한 것이 아닙니다. 개입 효과와 경제적 이익을 주장하려면 별도 자료와 반사실 설계가 필요합니다.
No. FN five is an assumed classification loss for a missed observed positive. It measures neither the effect of contact on churn nor contact cost or revenue. Intervention benefits require additional data and a counterfactual design.
57. 범위 밖 원토큰의 처리Handling an out-of-description native token
원자료 Charge Amount=10인 7행이 있고 설명은 0~9입니다. 이 변수를 사용하지 않는 분석에서 어떻게 처리하나요?
Seven native Charge Amount values are ten while documentation describes zero to nine. What should an analysis not using this variable do?
풀이와 확인할 이유Solution and explanation
원값 10·원행 위치와 설명 불일치를 보존합니다. 필수 특징이나 표적의 유효성은 별도로 판정하며 이 불일치만으로 행을 삭제하거나 10을 9로 고치지 않습니다. 그 변수를 나중에 사용한다면 별도 정제·민감도 규칙이 필요합니다.
Retain the native tens, row positions and documentation discrepancy. Assess required features and target separately; do not delete rows or change ten to nine solely for this unused field. A later analysis using it needs an explicit cleaning and sensitivity rule.
58. 영상의 제작자 정정 읽기Read a creator’s video correction
Using the creator-corrected video matrix at 12:00, TP3/FP2/FN1/TN2, calculate TPR, FPR, precision and accuracy.
풀이와 확인할 이유Solution and explanation
TPR=43,FPR=42=21,PPV=53,Accuracy=85
영상 화면만 옮기지 말고 제작자 설명란의 수정 내용과 합계 8을 대조합니다. 이 행렬은 여섯 카드 예와 다른 구성 예입니다.
TPR=43,FPR=42=21,PPV=53,Accuracy=85
Reconcile the creator’s description correction with total eight instead of copying a displayed matrix blindly. This is a separate constructed example from our six cards.
59. 표시0과 정확한 비영 값Displayed zero and an exact nonzero value
Y=0·p=10의 −200승인 한 행의 Brier가 표시에서 0처럼 보입니다. 원손실은 0인가요?
A row has Y zero and p ten to the minus two hundred. Brier displays as zero. Is the mathematical loss zero?
풀이와 확인할 이유Solution and explanation
(10−200−0)2=10−400>0
정확 유리수는 비영입니다. 이진64 표시의 범위를 밑돌아 0이 될 수 있으므로 비영·underflow 표지와 원분수를 함께 보여야 합니다. 로그축이나 그래프에서 정확한 0으로 그리면 다른 값을 전달합니다.
(10−200−0)2=10−400>0
The exact rational is nonzero. Binary64 display can underflow, so retain a nonzero-underflow marker with the original fraction. Drawing an exact zero would communicate a different value.
60. 완료 보고서의 다섯 문장Five sentences for a completed study report
표적·역할·정책·결과·한계를 각 한 문장으로 담은 실제 국가 사례 요약을 작성하세요.
Write five sentences on the actual country study: target, roles, policy, result and limitation.
풀이와 확인할 이유Solution and explanation
① 2024년 16국가에서 기대수명 80년 이상 여부를 같은 해 지표로 구분했다. ② 고정 역할 훈련 9·검증 3·시험 4를 쓰고 중앙값·칸 확률은 훈련에서만 적합했다. ③ 선언한 세 가설 비용에서 검증 기준 3/4을 선택했다. ④ 시험 TP 2·FP 1·FN 0·TN 1이며 동일 비용 평균 1/4이었다. ⑤ 작은 단면 분류 결과는 미래 예측 보장이나 GDP의 인과효과가 아니다.
In sixteen 2024 countries we classified life expectancy at least eighty using same-year indicators. The fixed nine/three/four roles fitted medians and cells on training only. All three hypothetical cost scenarios selected threshold three quarters on validation. Test cells were two, one, zero and one, with equal-cost mean one quarter. This small cross-sectional result is neither a future-performance guarantee nor a causal effect of GDP.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.