공정성·해석·인과·거버넌스의 경계Boundaries of fairness, interpretation, causality and governance
분모부터 시작해 집단 지표·기여 게임·구조 모형·검증 선택·책임을 실제 자료로 연결한다.Connect denominators, group metrics, attribution games, structural models, validation selection and accountability using actual data.
실습 6종 · 풀이 포함 연습문제 42개6 labs · 42 exercises with solutions
학부Undergraduate
공정하다는 말 앞에 질문을 적기State the question before calling a system fair
학교가 방과 후 수업 자리를 배정한다고 합시다. 두 반에서 똑같이 절반을 뽑으면 공정할까요? 한 반에서는 도움이 꼭 필요한 학생을 잘 찾아내지만 다른 반에서는 이름순으로 뽑았다면, 같은 비율이라는 사실만으로 판단하기 어렵습니다. 반대로 두 반의 상황과 필요가 다른데 비율을 강제로 맞추는 것이 모두에게 도움이 된다고 단정할 수도 없습니다. 먼저 누가 어떤 자원을 얻거나 부담을 지는가를 적어야 합니다.
이 장은 네 질문을 구분합니다. 공정성의 질문은 누구 사이에서 무엇을 같게 할지입니다. 해석의 질문은 모형의 답이 어떤 입력·기준에 의존하는지입니다. 인과의 질문은 실제로 어떤 행동을 바꾸면 결과가 어떻게 달라지는지입니다. 거버넌스의 질문은 그 목표와 증거를 누가 정하고, 오류에 누가 책임지며, 영향을 받는 사람이 어떻게 이의를 제기할지입니다. 네 질문에는 서로 다른 증거가 필요합니다.
질문과 증거의 구별
질문
작은 계산
계산만으로 확정되지 않는 것
집단별 선택 비율이 같은가
집단별 선택 수 / 대상 수
그 선택이 사람에게 유익한가
어떤 입력이 답에 기여했나
명시한 기준 대비 기여 분해
그 입력을 바꾸면 실제 삶이 바뀌나
개입의 효과는 무엇인가
가정한 구조 모형의 do 계산
그 구조가 관측 자료만으로 식별되나
운영을 계속해도 되는가
명시한 성능·비용·제약의 충족
목표의 정당성·법적 판단·책임의 이행
측정 가능한 숫자를 피할 필요는 없습니다. 다만 숫자가 답하는 범위를 지키면 됩니다. 우리는 작은 표의 분모를 손으로 세고, 같은 오류율인데 다른 결과가 나오는 이유를 식으로 확인하며, 하나의 관측 분포에 서로 다른 인과 설명이 맞을 수 있음을 계산합니다. 마지막에는 실제 국가·임금·고객 자료에 적용하되 교육용 점수와 실제 정책을 구별합니다.
Imagine allocating after-school places. Is selecting half of each class fair? If one class uses a useful needs assessment while another selects alphabetically, identical rates leave important questions unanswered. Different needs also complicate a rule that forces identical rates. First state who receives a resource or bears a burden.
We distinguish four questions. Fairness asks what should be equalized and between whom. Interpretation asks how a model output depends on inputs and a reference. Causality asks what would change after an actual intervention. Governance asks who specifies goals and evidence, accepts responsibility and hears appeals. These questions need different kinds of evidence.
Questions and evidence
Question
Small calculation
What the calculation does not settle
Are selection rates equal?
Selected count / eligible count by group
Whether selection benefits the people affected
Which inputs contribute to an answer?
A decomposition relative to a stated reference
Whether changing an input changes a real outcome
What is an intervention effect?
A do-calculation in a stipulated structural model
Whether observed data identify that structure
Should operation continue?
Specified performance, cost and constraint checks
Legitimacy, legal judgment and responsibility
Quantitative evidence remains useful when its scope is clear. We count denominators, derive why equal error rates can coexist with unequal predictive values, and construct different causal explanations of the same observations. Actual country, wage and customer cases then illustrate the boundary between a teaching score and a policy.
학부Undergraduate
정답 열도 측정이고 집단 이름도 선택이다Labels are measurements and group definitions are choices
컴퓨터의 정답 열 Y가 현실의 바람직함 그 자체인 것은 아닙니다. 시험 점수는 특정 시험의 성적이고, 임금은 보수가 관측된 사람의 기록이며, 고객 이탈은 정한 기간 끝의 상태입니다. 이들을 “능력”, “가치”, “받을 자격”이라고 바꾸어 부르면 측정의 의미가 달라집니다. 입력 X, 관측 결과 Y, 점수 R, 실제 행동 D를 서로 다른 기호로 적는 이유입니다.
X⟶R=f(X)⟶D=1{R≥τ},Y: observed outcome
고객 자료에서 R이 높아 연락 대상 D=1이 되었다고 합시다. 연락이 할인 혜택일 수도 있지만 원치 않는 권유일 수도 있습니다. 과거 이탈 Y=1을 잘 맞히는 능력과 연락이 실제 이탈을 막는 효과는 다릅니다. 무엇을 양성이라고 부르는지와 그 선택이 주는 이익·부담을 먼저 적어야 거짓 양성·거짓 음성 비용도 해석할 수 있습니다.
집단 A 역시 자료가 가진 분류와 분석자가 정한 범위를 분명히 해야 합니다. 같은 나라의 반복 연도, 역사적인 이진 인종 코드, 연령 구간은 서로 다른 비교 단위입니다. 국가 간 예측 오차를 비교한다고 개인의 보호 속성에 관한 공정성을 측정한 것은 아닙니다. 오래된 이진 코드는 오늘날의 모든 정체성을 표현하지 못하고, 연령 구간의 경계를 바꾸면 분모와 수치가 달라집니다.
실제 NLS 사례에는 원본 3,613행 중 1976년 시급이 점(.)으로 빠진 596행이 있습니다. 이는 임금 결측이며 비취업이나 검열을 자동으로 뜻하지 않습니다. 이 장의 임금 결과는 관련 값이 관측된 행에서만 정의합니다. 따라서 완전 관측자와 전체 원 코호트는 다른 모집단입니다. 집단별 제외 수와 원본 전체를 함께 남겨야 계산의 경계를 확인할 수 있습니다.
A target column Y is not reality’s definition of deservingness. An examination score describes one examination; wages describe recorded pay; churn describes a status at a specified endpoint. Renaming these “ability,” “value” or “eligibility” changes the claim. Keep features X, observed outcome Y, score R and action D distinct.
X⟶R=f(X)⟶D=1{R≥τ},Y: observed outcome
A high customer score might trigger contact. Contact could provide a useful offer or impose an unwanted solicitation. Predicting past churn differs from estimating whether contact prevents future churn. Define the positive class and the benefits and burdens of action before interpreting error costs.
Group A also requires a stated meaning. Repeated years within countries, a historical binary race code and ordinal age bands are different comparison units. Geographic error comparisons do not automatically measure demographic fairness. A historical binary code is not a complete contemporary identity taxonomy; changing age boundaries changes denominators and results.
The actual NLS file contains 596 missing 1976 wages among 3,613 rows, encoded as dots. This establishes missing wages, not automatically nonemployment or censoring. Our wage target is defined only where relevant fields are observed. Complete observed records and the original cohort are different populations. Preserve exclusions by group and the original rows.
학부Undergraduate
네 칸의 표를 분모와 함께 읽기Read the four confusion cells with their denominators
참 결과 Y와 선택 D가 각각 0 또는 1이면 네 경우가 있습니다. Y=1,D=1은 참 양성(TP), Y=0,D=1은 거짓 양성(FP), Y=0,D=0은 참 음성(TN), Y=1,D=0은 거짓 음성(FN)입니다. “양성”은 이름표일 뿐 항상 좋은 결과라는 뜻이 아닙니다. 질병이나 이탈처럼 Y=1이 바람직하지 않을 수도 있습니다.
TPR은 실제 양성 중 얼마나 선택했는지, FPR은 실제 음성 중 얼마나 잘못 선택했는지입니다. PPV는 선택한 사람 중 실제 양성이 얼마나 되는지입니다. 분자에 TP가 같이 들어가도 TPR과 PPV의 분모는 다릅니다. 선택 비율 s는 집단 전체를 분모로 하므로 또 다른 질문입니다. 이름을 외우기보다 먼저 “누구 중에서 세는가”라고 읽어 보세요.
A집단 두 행은 (Y,R)=(0,1/5),(1,4/5), B집단 두 행은 (0,3/5),(1,2/5)라고 합시다. 문턱 1/2 이상을 선택하면 A는 둘 다 맞히고 B는 둘 다 틀립니다. 두 집단 모두 한 명씩 선택하므로 s=1/2이지만 A의 TPR=1,FPR=0,PPV=1, B의 TPR=0,FPR=1,PPV=0입니다. 같은 선택 비율과 같은 질의 선택은 다릅니다.
Binary outcome Y and decision D yield four cells: true positive TP for Y=1,D=1; false positive FP for Y=0,D=1; true negative TN for Y=0,D=0; and false negative FN for Y=1,D=0. “Positive” is a class label, not necessarily a beneficial state. Churn or illness can be positive outcomes.
TPR asks what fraction of actual positives were selected. FPR asks what fraction of actual negatives were wrongly selected. PPV asks what fraction of selected cases were positive. Sharing a numerator does not give TPR and PPV the same denominator. Selection rate s instead uses the whole group. Read “among whom?” before memorizing a metric name.
Group A has (Y,R)=(0,1/5),(1,4/5), while group B has (0,3/5),(1,2/5). A threshold of 1/2 classifies both A rows correctly and both B rows incorrectly. Each group selects one person, so both selection rates are 1/2. Yet A has TPR=1,FPR=0,PPV=1 and B has TPR=0,FPR=1,PPV=0. Equal selection rates do not ensure equal selection quality.
학부 심화 · 선택Advanced undergraduate · optional
같은 비율의 약속은 서로 다르다Promises to equalize rates are different
인구통계적 동등성은 집단 간 선택 비율을 같게 하려는 조건입니다. 기회균등(equal opportunity)은 Y=1인 층에서 TPR을 같게 하려는 조건입니다. Equalized odds는 Y=1과 Y=0 양쪽 층에서 TPR과 FPR을 모두 같게 합니다. 예측적 동등성은 선택 D=1인 층에서 PPV를 같게 하려는 조건입니다. 어떤 이름이 가장 그럴듯하게 들리는지보다 조건부 분모가 무엇인지 확인해야 합니다.
D⊥A;D⊥A∣Y;Y⊥A∣D
세 식은 각각 독립성, 분리성, 충분성의 이진 결정 버전입니다. 첫 식은 A를 알더라도 D의 분포가 달라지지 않는다는 뜻이고, 둘째는 Y를 고정한 뒤 그렇다는 뜻입니다. 셋째는 D를 고정한 뒤 Y의 분포가 A에 의존하지 않는다는 뜻입니다. 이진 결정의 PPV만 맞추는 것은 셋째 조건 전체보다 약합니다. 셋째는 D=0의 결과 분포도 포함하기 때문입니다.
이 조건들은 문제를 드러내는 여러 렌즈입니다. 과거의 Y가 잘못 측정되었거나 불평등한 제도의 영향을 받았다면 Y를 기준으로 한 오류율도 그 한계를 가집니다. 반대로 Y의 차이를 전부 무시하는 선택 비율만으로 충분한지도 결정해야 합니다. Hardt·Price·Srebro의 기회균등 논의는 구체적인 통계 기준의 장점과 한계를 분석한 것이며, 하나의 수치가 모든 정당성 판단을 대신한다는 뜻이 아닙니다.
이 장의 실습은 어떤 기준을 만족하는지 계산하되 화면에 “공정 인증 완료”를 띄우지 않습니다. 선택 비율 차이, TPR/FPR 차이, PPV 차이와 각 분모를 나란히 보여 줍니다. 이후에는 이 기준이 언제 충돌하고 어떤 특수 경우에는 함께 만족할 수 있는지 도출합니다.
Demographic parity equalizes selection rates across groups. Equal opportunity equalizes TPR within Y=1. Equalized odds equalizes TPR and FPR within both outcome strata. Predictive parity equalizes PPV among D=1 cases. Check the conditional denominator rather than relying on an appealing name.
D⊥A;D⊥A∣Y;Y⊥A∣D
These are binary-decision versions of independence, separation and sufficiency. Independence says knowing A does not change D’s distribution. Separation says this after fixing Y. Sufficiency says that after fixing D, A does not change Y’s distribution. PPV parity alone is weaker than full sufficiency, which also includes the outcome distribution among D=0.
Each condition is a lens. If Y is poorly measured or reflects an unequal institution, error rates defined relative to Y inherit that limitation. Whether ignoring outcome differences and equalizing selection rates is appropriate also requires a judgment. Hardt, Price and Srebro analyze a specific statistical criterion; one number does not replace every legitimacy question.
Our labs calculate these conditions without displaying a blanket “fairness certified” label. Selection-rate, error-rate and predictive-value gaps appear alongside their denominators. Later sections derive when they conflict and which exceptional cases permit agreement.
학부 심화 · 선택Advanced undergraduate · optional
빈 분모·작은 집단·분석 비중Empty denominators, small groups and analytic weights
어떤 연령 집단에 관측된 이탈 고객이 한 명도 없다면 그 집단의 이탈 탐지율 TPR은 0/0입니다. 이를 0으로 채우면 탐지 성능이 매우 나쁘다는 잘못된 뜻이 되고, 1로 채우면 완벽하다는 잘못된 뜻이 됩니다. 값은 미정의로 남겨야 합니다. 집단을 표에서 지워서 나머지만 같은 오류율인지 보는 것도 원래의 전체 집단 비교와 다릅니다.
pg=∑iwi1{Ai=g}∑iwi1{Ai=g}Di,wi≥0
분석 비중 w는 행의 기여도를 정합니다. 원 표본의 조사 비중, 정책상 집단 중요도, 훈련 손실 비중은 목적이 다르므로 이름을 바꾸어 혼용하면 안 됩니다. 이 장의 실제 사례는 선택한 행에 비중 1을 주며 NLS 원 조사 비중은 보존하되 계산에 쓰지 않습니다. 일부러 집단별로 같은 수를 골랐으므로 선택한 표의 전체 평균이 원 모집단의 평균이 되지는 않습니다.
실습에서는 비중이 전부 0인 집단도 이름과 원 행 수를 유지하고 비율은 미정의로 표시합니다. 필요한 비율 하나라도 미정의면 전체 집단 차이도 미정의입니다. 이는 오류가 없다는 뜻도, 오류가 크다는 뜻도 아닙니다. 필요한 층의 관측 또는 양의 비중이 없어서 그 질문에 답하지 못했다는 뜻입니다.
비중이 아주 작다는 이유로 양의 값을 지우는 것도 피합니다. 양성 한 행의 비중이 10⁻²⁰⁰, 음성 한 행의 비중이 10²⁰⁰이면 양성 비율은 정확히 1/(10⁴⁰⁰+1)입니다. 보통 부동소수점 화면에서는 0처럼 보일 수 있어도 수학적으로는 양수입니다. 실습의 정확값 펼치기는 이 차이를 보존합니다. 그러나 소수점 자릿수를 많이 보존하는 일이 적은 표본의 통계적 불확실성을 없애 주지는 않습니다.
If an age group contains no observed churn cases, its TPR has denominator zero. Filling 0/0 with zero falsely says detection was poor; filling it with one falsely says it was perfect. Keep it undefined. Dropping the group and reporting parity among the remainder changes the original question.
pg=∑iwi1{Ai=g}∑iwi1{Ai=g}Di,wi≥0
Analytic weights determine row contributions. Survey weights, normative group priorities and training-loss weights serve different purposes. Actual cases here use unit row weights; original NLS survey weights remain available but are unused. Purposefully equalizing selected group counts means the frame’s aggregate need not estimate a population aggregate.
Even a group with all zero weights retains its name and original row count. Its rates are undefined. An across-all-groups gap is undefined if any required rate is undefined. This means neither “no error” nor “large error”: the necessary stratum or positive mass is absent.
Do not discard a positive weight merely because it is tiny. With positive-class weight 10⁻²⁰⁰ and negative-class weight 10²⁰⁰, prevalence is exactly 1/(10⁴⁰⁰+1), mathematically positive even if a floating display rounds to zero. Exact-value disclosures preserve this distinction. More digits, however, do not remove statistical uncertainty from a small sample.
학부Undergraduate
실습 A: 선택 비율을 고정하고 오류를 바꾸기Lab A: preserve selection rates while changing errors
먼저 네 행의 기본 JSON을 그대로 계산하세요. 집단 A와 B에서 각각 선택 비율이 1/2인지, TPR과 FPR은 어떻게 다른지 확인합니다. 표의 정확값을 펼쳐 0과 1을 읽고, 어떤 집단에서 분모가 몇인지 원 행으로 돌아가 세어 보세요. 단순한 선택 비율 동등성만으로 결과를 판정하지 않는 연습입니다.
두 번째 실험은 다른 조건을 명시적으로 넣습니다. 그룹별 문턱을 {"a":"0","b":"1"}로 지정하면 A를 모두 선택하고 B를 모두 미선택합니다. 점수·정답은 바뀌지 않아도 결정 규칙이 바뀌므로 혼동표가 달라집니다. 이후 이 객체를 비우고 공통 문턱 1/2로 복원하세요. 앞 실험의 그룹별 문턱이 남아 있으면 다음 실험은 다른 질문이 됩니다.
세 번째로 A집단 두 행에만 weight를 "0"으로 지정합니다. A의 원 행 수 2는 유지되지만 분석 질량은 0이고 선택률·TPR·FPR은 미정의가 됩니다. 전체 집단 차이도 미정의여야 합니다. B의 성적만 보고 “두 집단 격차 0”이라고 나오지 않는지 확인하세요. 입력을 바꿀 때 이전 결과는 지워지고 다시 계산되므로 다른 입력과 옛 수치가 섞이지 않습니다.
마지막으로 실제 자료 사례의 해석 범위를 예고합니다. 국가의 양성은 비음수 GDP 성장, 개인 사례의 양성은 1976년 시급 500센트 이상, 기업의 양성은 관측된 고객 이탈입니다. 모두 서로 다른 이름표입니다. 이 점수들로 학교·대출·채용 결정을 검증한 것처럼 말하면 안 됩니다. 같은 산술을 옮길 수 있어도 목표와 제도의 정당성은 새로 검토해야 합니다.
Calculate the default four-row JSON unchanged. Confirm that A and B both select half their rows, then inspect different TPR/FPR values. Open exact values and count each denominator in the source rows. The exercise prevents a selection-rate comparison from silently becoming a blanket judgment.
For the second experiment, explicitly set group thresholds to {"a":"0","b":"1"}. Everyone in A is selected and no one in B is selected. Unchanged scores and labels can therefore yield a different confusion table under a different decision rule. Clear that object and restore common threshold 1/2 before the next experiment.
Next give both A rows weight "0". Their original row count remains 2, but their analytic mass is zero and their rates are undefined. The across-all-groups gaps must also be undefined. The lab must not report “zero disparity” by inspecting B alone. Editing clears old results before recalculation.
The actual cases use different positive labels: nonnegative GDP growth, a 1976 hourly wage of at least 500 cents, and observed customer churn. None is a school, loan or hiring decision. Arithmetic may transfer between settings; the legitimacy of the objective and institution does not transfer automatically.
학부 심화 · 선택Advanced undergraduate · optional
독립성·분리성·충분성을 조건부 표로 보기Read independence, separation and sufficiency in conditional tables
확률의 독립성은 두 변수가 서로 인과적으로 아무 영향도 주지 않는다는 뜻이 아닙니다. 여기서는 한 변수를 알았을 때 다른 변수의 관측 분포가 바뀌는지에 관한 성질입니다. 예를 들어 D와 A의 독립성은 각 집단의 선택 비율이 같은지로 읽습니다. 집단 이름을 지웠다는 프로그램 코드의 모양만 보고 이 성질을 알 수는 없습니다.
분리성 D⊥A|Y는 결과가 같은 사람끼리 따로 표를 만든 뒤 선택 분포를 비교합니다. Y=1인 표에서 선택 비율은 TPR, Y=0인 표에서는 FPR입니다. 충분성 Y⊥A|D는 선택 상태가 같은 사람끼리 표를 만든 뒤 결과 분포를 비교합니다. D=1인 표에서는 PPV, D=0인 표에서는 1−NPV입니다. 표를 나누는 기준이 달라지므로 같은 자료도 다른 질문에 답합니다.
표를 자르는 순서
기준
먼저 고정하는 것
그 안에서 비교하는 값
독립성
집단 전체
선택률 P(D=1|A)
분리성
관측 결과 Y=0 또는1
FPR 및 TPR
충분성
결정 D=0 또는1
결정별 실제 결과 비율
이 조건들을 점수 R에 적용할 때와 이진 결정 D에 적용할 때도 다릅니다. R의 충분성은 같은 점수에서 실제 결과의 비율이 집단에 따라 달라지는지 묻습니다. R의 집단별 보정은 P(Y=1|R=r,A=a)=r처럼 점수의 숫자까지 확률로 해석하는 더 구체적인 조건입니다. 단순히 0과1 사이의 수를 출력했다는 사실이 보정을 보장하지는 않습니다.
이 장의 세 실제 점수는 고정된 교육용 함수입니다. 손으로 계산하기 쉬운 유리수를 만들기 위해 입력 단위를 변환했을 뿐 확률을 학습한 것이 아닙니다. 따라서 Brier 오차나 점수별 관측 비율은 기술할 수 있어도 이 함수가 실제 확률을 나타낸다고 선언하지 않습니다. 이런 구별은 설명 가능한 식을 쓰더라도 필요합니다.
Statistical independence does not assert absence of causal influence. It describes an observed distribution: does knowing one variable change the distribution of another? Independence between D and A concerns group selection rates. Removing the group name from program code does not establish it.
Separation D⊥A|Y compares selection distributions after fixing the observed outcome. Within Y=1 this is TPR; within Y=0 it is FPR. Sufficiency Y⊥A|D instead fixes the decision and compares outcomes: PPV among D=1, and 1−NPV among D=0. Different ways of slicing the same table answer different questions.
Which table is conditioned on?
Criterion
What is fixed first
Compared quantity
Independence
The entire group
P(D=1|A)
Separation
Observed Y=0 or 1
FPR and TPR
Sufficiency
Decision D=0 or 1
Outcome proportion within each decision
A condition on score R also differs from one on binary decision D. Score sufficiency asks whether outcome frequencies at the same score differ by group. Group calibration further requires P(Y=1|R=r,A=a)=r, assigning a probability meaning to the number. Merely outputting a value between zero and one does not establish calibration.
All three actual-case scores are fixed teaching functions. Their input transformations produce manageable rational numbers; they are not fitted probabilities. Brier errors and observed frequencies can be described without claiming that a score is a true risk probability. An interpretable formula does not remove this distinction.
학부 심화 · 선택Advanced undergraduate · optional
베이스레이트에서 선택률을 도출하기Derive selection rates from base rates
집단 g의 실제 양성 비율을 π_g라고 합시다. TPR=t는 양성 중 선택되는 비율이고 FPR=f는 음성 중 선택되는 비율입니다. 집단에서 먼저 양성인지 음성인지를 나누면, 전체 선택은 “양성이면서 선택”과 “음성이면서 선택”의 합입니다. 이 두 사건은 겹치지 않으므로 확률을 더합니다.
sg=P(D=1∣A=g)=tπg+f(1−πg)=f+(t−f)πg
두 집단의 t와 f가 같아도 π가 다르면 보통 선택률이 다릅니다. 차이를 빼면 s_a−s_b=(t−f)(π_a−π_b)입니다. π_a≠π_b인데 선택률까지 같게 하려면 t=f가 되어야 합니다. 이진 결정에서 t=f라는 것은 그 결정의 선택 확률이 결과 Y에 따라 달라지지 않는다는 뜻입니다. Y를 구별하는 정보가 없는 무작위 선택도 그 조건을 만족할 수 있습니다.
예를 들어 π_a=1/5, π_b=4/5, t=4/5, f=1/5를 넣으면 선택률은 각각 8/25와17/25입니다. 두 집단 모두 양성의80%를 찾고 음성의20%를 잘못 선택하지만 전체 선택 비율은32%와68%입니다. 결과 구성의 차이를 조건부 오류율 차이로 오해하지 않아야 합니다.
그렇다고 관측된 베이스레이트를 자연스럽고 정당한 차이라고 단정하는 것은 아닙니다. Y가 어떤 과정을 거쳐 측정되었는지, 과거 기회나 기록의 차이가 들어 있는지 따로 조사해야 합니다. 위 식은 주어진 π,t,f 사이의 산술 관계입니다. 그 값들의 사회적 원인과 정당성까지 증명하는 식이 아닙니다.
Let π_g be group g’s observed positive prevalence. TPR=t is selection among positives; FPR=f is selection among negatives. Split selected cases into the disjoint events “positive and selected” and “negative and selected,” then add their probabilities.
sg=P(D=1∣A=g)=tπg+f(1−πg)=f+(t−f)πg
Common t and f generally do not produce common selection rates when prevalences differ. Subtracting gives s_a−s_b=(t−f)(π_a−π_b). With unequal prevalences, also requiring equal selection rates forces t=f. This binary decision then has the same selection probability within both outcome strata. An uninformative randomized decision can satisfy that condition.
For π_a=1/5, π_b=4/5, t=4/5 and f=1/5, the selection rates are 8/25 and 17/25. Both groups detect 80% of positives and falsely select 20% of negatives, yet overall selection is 32% versus 68%. Do not mistake different outcome mixtures for different conditional error rates.
Observed prevalences are not thereby established as natural or justified differences. Examine measurement, past opportunities and recording processes. The identity describes arithmetic among given π,t,f; it does not establish their social causes or legitimacy.
대학원 연결Graduate bridge
베이즈 식으로 예측적 동등성의 한계 보기Use Bayes’ rule to locate predictive-parity limits
선택한 사람 중 실제 양성일 확률 PPV는 앞에서 구한 양성 선택 비율을 전체 선택 비율로 나눈 값입니다. 분자는 tπ_g이고 분모는 tπ_g+f(1−π_g)입니다. 이 분모가0이면 아무도 선택되지 않아 PPV가 미정의입니다. “선택하지 않았으므로 예측이 완벽하다”는 해석은 맞지 않습니다.
두 선택 분모가 양수이고 t>0,f>0이며 베이스레이트가 다르면 위 차이는0이 아닙니다. 따라서 이 조건에서 공통 TPR/FPR과 PPV 동등성을 동시에 만족할 수 없습니다. 이것이 이 장에서 쓰는 조건을 명시한 충돌입니다. 연속 점수의 보정·분리성에 대한 일반 명제와 이진 선택의 이 식을 혼합하지 않습니다.
앞의 수치에서는 PPV_a=(4/25)/(8/25)=1/2, PPV_b=(16/25)/(17/25)=16/17입니다. 낮은 베이스레이트 집단에서는 선택된 사람 중 음성이 차지하는 몫이 커집니다. 이것은 그 집단 사람의 가치가 낮다는 뜻이 아니라, 이 분류 규칙·목표·조건부 분모의 산술입니다.
가정을 빼면 결론도 달라집니다. f=0이고 각 집단에 양성이 있어 선택 분모가 양수라면 PPV는 모두1입니다. 완전 분류 t=1,f=0은 서로 다른 베이스레이트에서도 equalized odds와 PPV 동등성을 함께 만족합니다. 아무도 선택하지 않는 t=f=0에서는 PPV 자체가 미정의입니다. “공정성 기준은 언제나 함께 만족할 수 없다”는 문장은 이런 경계를 놓칩니다.
PPV divides the selected-positive probability tπ_g by total selection tπ_g+f(1−π_g). A zero denominator means no one was selected, so PPV is undefined. It does not mean prediction was perfect.
If both selection denominators are positive, t>0,f>0 and prevalences differ, the difference cannot be zero. Common TPR/FPR and PPV parity therefore conflict under these stated conditions. This binary-decision calculation should not be confused with a general theorem about calibration and separation of continuous scores.
In the numerical example, PPV_a=(4/25)/(8/25)=1/2 and PPV_b=(16/25)/(17/25)=16/17. Selected cases in the lower-prevalence group include a larger negative fraction. This describes the rule, labels and denominators, not the worth of group members.
Boundary cases matter. With f=0 and positive selection mass in each group, PPV is one in every group. Perfect classification t=1,f=0 can satisfy equalized odds and PPV parity despite different prevalences. Selecting nobody, t=f=0, instead leaves PPV undefined. “Fairness criteria can never coexist” is an overstatement.
학부 심화 · 선택Advanced undergraduate · optional
확률적 결정은 기대 혼동표와 다르지 않지만 실현은 다르다Randomized decisions have expected and realized tables
어떤 점수 구간에서 확률1/3으로 선택하는 규칙을 생각합시다. 이는 같은 자료로 만든 혼동표의 각 행을 1/3명씩 실제로 잘라 선택한다는 뜻이 아닙니다. 한 번의 운영에서는 선택하거나 미선택하는 이진 결과가 생깁니다. 여러 번 같은 규칙을 적용할 때의 기대 질량이 분수로 표현되는 것입니다. 정책의 기대 표와 실제 표를 구별해야 합니다.
P(D=1∣X,A)=λd1(X,A)+(1−λ)d2(X,A),0≤λ≤1
두 고정 규칙 d1,d2를 각 평가행에서 같은 혼합 확률 λ를 갖고 X,A,Y와 독립인 외부 동전으로 혼합하면, 고정 평가 분포에서 기대 TP·FP·TN·FN은 각 규칙 표의 볼록 결합입니다. 집단별 Y의 분모가 고정되어 있으면 기대 TPR·FPR도 그 가중 평균입니다. 그러나 PPV는 “기대 TP / 기대 선택 수”이므로 일반적으로 두 PPV의 단순 평균이 아닙니다. 비율의 분모가 서로 다르기 때문입니다.
그룹별 후처리로 오류율을 맞추는 연구는 이런 무작위화를 활용할 수 있습니다. 그렇다고 실제 운영에서 동전을 쓸 권리나 적절성이 자동으로 생기지는 않습니다. 결정의 일관성, 설명 가능성, 영향을 받는 사람의 기대, 제도의 맥락을 살펴야 합니다. 집단별 속성의 사용이 허용되는지 역시 특정 맥락의 별도 검토 사안입니다.
이 장의 작은 실습은 주어진 t,f의 정확한 기대 확률을 계산하며 난수로 실제 사람을 배정하지 않습니다. 실제 사례의 문턱 후보도 결정적인 고정 규칙입니다. 기대 표 계산을 한 번 수행한 운영 결과나 실제 제도 도입의 증거라고 부르지 않습니다.
A rule selecting with probability 1/3 does not physically select one third of a person in each row. A realized decision is binary. Fractions describe expected mass over repeated use of the specified randomization. Keep expected and realized confusion tables distinct.
P(D=1∣X,A)=λd1(X,A)+(1−λ)d2(X,A),0≤λ≤1
Mix fixed rules d1,d2 using an external coin independent of X,A,Y, with the same mixing probability λ for every evaluation row. On a frozen evaluation distribution, expected confusion cells are convex combinations of the two tables. With fixed outcome denominators, expected TPR/FPR follow the same mixture. PPV generally does not: the ratio of expected TP to expected selected mass is not an average of ratios with different denominators.
Research on group-specific postprocessing can use such randomization. This does not automatically justify using a lottery in an institution. Consistency, explanation, expectations and context remain relevant, as does the permissibility of using group attributes in the particular setting.
Our finite lab computes stipulated expected probabilities; it does not allocate real people by a random device. Actual-case threshold candidates are deterministic rules. An expected table is neither a realized rollout nor evidence that an institution adopted the rule.
학부Undergraduate
속성을 지우면 대리 변수가 사라질까Does deleting an attribute remove its proxies?
학교 위치가 사는 지역을 거의 알려 주고, 사는 지역이 과거 기회와 강하게 연결되어 있다고 합시다. 모형에서 지역 이름 열만 지워도 학교 위치가 같은 정보를 전달할 수 있습니다. 중요한 속성을 코드에서 직접 읽지 않는다는 사실과 결과가 그 속성에 통계적으로 독립이라는 사실은 다릅니다. 이를 흔히 공정성에 대한 “무지”의 한계라고 부릅니다.
반대로 모든 상관 변수를 지우면 항상 옳다는 규칙도 아닙니다. 실제로 필요한 정보와 불필요한 대리 사용을 구별하려면 목적·인과 가정·측정·제도적 맥락이 필요합니다. 데이터만으로 허용할 경로와 금지할 경로가 자동 표시되지 않습니다. 역사적 집단 코드를 모델 훈련에서 제외하더라도 오류의 분포를 점검할 때는 적절하게 수집된 집단 정보가 필요할 수 있습니다.
뒤의 해석 실습에서는 더욱 작은 예를 만납니다. X1=X2인 두 관측 (0,0),(1,1)이 있고 함수는 f(X)=X1만 사용합니다. 두 번째 변수의 직접 가중치는0입니다. 그러나 “X2를 관측한 정보가 평균 예측을 얼마나 바꾸는가”라는 조건부 질문에는 기여가 생길 수 있습니다. 대리 정보, 함수의 직접 사용, 인과적 경로는 세 가지 다른 말입니다.
실제 NLS 사례의 교육·나이 점수는 원 black 코드를 직접 사용하지 않습니다. 그렇더라도 원 코드를 기준으로 한 오차가 같아진다는 보장은 없습니다. 또한 이 점수의 집단별 격차를 찾았다는 사실만으로 차별의 원인이나 법적 위반을 확정할 수 없습니다. 기술적 점검은 추가 질문을 여는 증거이며 제도 판단을 닫는 자동 결론이 아닙니다.
Suppose school location nearly reveals neighborhood, which in turn reflects historical opportunities. Deleting a neighborhood-name column can leave equivalent information in school location. Not directly reading an attribute differs from statistical independence of outputs from that attribute. This limits “fairness through unawareness.”
Deleting every correlated variable is not a universally correct alternative. Distinguishing relevant information from inappropriate proxy use requires purpose, causal assumptions, measurement and institutional context. Data alone do not label permitted and forbidden pathways. Properly collected group information may also be necessary to audit errors even when it is excluded from model inputs.
A later interpretation lab uses a smaller example: observations(0,0),(1,1), with X1=X2 and f(X)=X1. The second feature has zero direct weight, yet observing it can change an expected prediction. Proxy information, direct functional use and causal pathways are different concepts.
Our NLS education/age score does not directly use the original black code. That does not guarantee equal group errors. Conversely, finding a group error gap does not identify discrimination’s cause or a legal violation. A technical audit opens further questions rather than automatically settling an institutional judgment.
학부 심화 · 선택Advanced undergraduate · optional
실습 B: 조건을 바꾸며 충돌의 경계 찾기Lab B: change assumptions and locate the boundary of a conflict
두 집단의 베이스레이트를 [1/5,4/5], 공통 TPR을4/5, 공통 FPR을1/5로 둡니다. 처음에는 표의 네 셀을 읽어 합이1인지 확인합니다. 그 다음 선택률8/25,17/25와 PPV1/2,16/17을 손계산 결과와 대조합니다. 같은 TPR/FPR이 무엇을 같게 했고 무엇을 같게 하지 않았는지 문장으로 설명하세요.
이제 FPR을0, TPR을1로 바꿉니다. 두 집단 PPV는 모두1이고 오류율도 같습니다. 선택률은 각 집단 베이스레이트1/5와4/5로 다릅니다. 그러므로 완전 분류는 “equalized odds와 PPV는 언제나 충돌”의 반례이지만 “모든 세 기준을 동시에 만족한다”의 예는 아닙니다. 어느 두 성질을 비교하는지까지 적어야 합니다.
다음 실험 전에 TPR과 FPR을 모두1/2로 지정합니다. Y와 무관하게 절반을 선택하는 기대 규칙이므로 선택률은 둘 다1/2입니다. 그러나 PPV는 각각1/5와4/5로 남습니다. 선택된 사람이 어떤 결과 구성을 가졌는지는 원 베이스레이트를 반영합니다. 오류율과 선택률이 같아도 PPV가 같아지지 않는 경우입니다.
마지막으로 베이스레이트 [0,1]과 TPR=FPR=0을 넣습니다. 누구도 선택되지 않아 PPV는 미정의입니다. 첫 집단에는 양성이 없어 관측 TPR을 읽을 수 없고, 둘째에는 음성이 없어 관측 FPR을 읽을 수 없습니다. 입력으로 선언한 조건부 기제의 t,f와 실제로 관측할 수 있는 층별 비율을 구별하는 연습입니다.
Start with base rates[1/5,4/5], common TPR 4/5 and FPR 1/5. Read four cells and check that each group’s mass sums to one. Compare selection rates 8/25,17/25 and PPVs 1/2,16/17 with hand calculations. Explain what common error rates equalize and what they leave different.
Set FPR=0 and TPR=1. PPV is one in both groups, and error rates agree. Selection rates remain the unequal prevalences 1/5 and 4/5. Perfect classification refutes a universal claim that equalized odds and PPV always conflict; it does not demonstrate simultaneous satisfaction of all three criteria.
Explicitly set TPR=FPR=1/2 for the next experiment. The expected rule selects half regardless of Y, giving equal selection rates 1/2. PPVs remain 1/5 and 4/5 because the selected populations reflect their original prevalences. Equal error and selection rates need not equalize predictive values.
Finally use base rates[0,1] and TPR=FPR=0. No selection means undefined PPV. The first group lacks positives for an observed TPR; the second lacks negatives for an observed FPR. Distinguish a declared conditional mechanism from rates empirically observable within supported strata.
학부Undergraduate
설명은 답 하나가 아니라 비교 질문이다An explanation begins with a comparison question
어떤 사람이 “이 집의 예상 가격이 왜4억 원인가요?”라고 묻는다고 합시다. “면적이 크기 때문”이라는 설명에는 비교 대상이 빠져 있습니다. 같은 동네의 평균 집과 비교한 것인지, 작은 집과 비교한 것인지, 이 집의 면적만 조금 줄인 경우와 비교한 것인지에 따라 답이 달라집니다. 모형 설명에서는 무엇을 고정하고 무엇을 바꾸는지, 비교 기준은 무엇인지를 명시해야 합니다.
전체 모형의 구조를 읽는 전역 설명과 특정 입력의 답을 설명하는 국소 설명도 다릅니다. 선형 모형의 계수는 함수의 전역 기울기를 알려 주지만 특정 사례가 기준보다 얼마나 높은 점수를 받았는지는 입력 차이도 있어야 계산합니다. 복잡한 모형 주위에 간단한 근사식을 맞추는 설명은 어느 근방에서 얼마나 정확한지까지 필요합니다.
f(x)−f(z)=prediction difference relative to reference z
이 장은 먼저 입력이 두 개인 작은 다항식 f(x1,x2)=b+w1x1+w2x2+vx1x2를 사용합니다. b는 절편, w는 직접 선형 계수, v는 두 입력의 상호작용 계수입니다. 모든 항을 손으로 계산할 수 있으므로 설명값이 어떤 질문의 답인지 확인하기 좋습니다. 이를 실제 고차원 신경망의 설명 품질이나 인간의 이해를 자동으로 검증하는 방법이라고 확대하지 않습니다.
기준 z와 입력 x는 같은 단위·같은 전처리를 써야 합니다. 실제 임금 사례에서 ed76/20과 age76/40을 입력으로 쓰면 기준 평균도 그 변환된 좌표에서 정합니다. 설명값은 모형 점수의 단위이며 “교육의 사회적 가치”나 “그 사람의 가치”가 아닙니다. 비교 기준의 선택이 이미 해석의 일부입니다.
Suppose someone asks why a house is predicted to cost a certain amount. “Because it is large” leaves the comparison unstated: compared with a local average house, a small house, or the same house with slightly less floor area? A model explanation needs to state what stays fixed, what changes and what serves as a reference.
A global description of the function differs from a local explanation of one output. A linear coefficient describes a global slope, but explaining one prediction relative to a reference also requires input differences. A local surrogate needs a neighborhood and a fidelity assessment.
f(x)−f(z)=prediction difference relative to reference z
We begin with the two-feature polynomial f(x1,x2)=b+w1x1+w2x2+vx1x2. The intercept is b, direct linear coefficients are w, and v controls interaction. Hand calculations expose the meaning of each explanation. They do not automatically validate explanations of a high-dimensional network or establish human understanding.
Input and reference must use the same units and preprocessing. If wage features are ed76/20 and age76/40, reference means use those transformed coordinates too. Contributions have model-output units; they are neither the social value of education nor the worth of a person. Choosing a reference is already part of interpretation.
학부 심화 · 선택Advanced undergraduate · optional
입력 두 개를 넣는 두 순서Two orders for revealing two features
기준 입력 z에서 시작하여 x의 두 좌표를 하나씩 공개한다고 생각하세요. 첫 순서는 좌표1을 먼저 바꾸고 좌표2를 바꾸는 것입니다. 둘째 순서는 반대입니다. 상호작용이 있으면 먼저 넣었는지 나중에 넣었는지에 따라 각 좌표의 추가 기여가 달라집니다. Shapley 방식은 가능한 순서들의 추가 기여를 평균합니다. 두 좌표에서는 두 순서가 각각1/2 비중입니다.
여기서 v(S)는 S에 포함된 좌표만 실제 입력에서 가져오고 나머지는 기준에서 가져온 함수값입니다. 돈을 실제로 나누거나 사람의 공헌을 측정하는 것이 아니라, 명시한 함수값 게임의 증가분을 나누는 것입니다. 이 게임을 바꾸면 같은 입력과 모형에서도 다른 설명이 나올 수 있습니다.
두 식을 더하면 중간 항이 서로 지워져 φ1+φ2=f(x)−f(z)가 됩니다. 이를 여기서는 정확한 합 보존, 또는 효율성이라고 부릅니다. 합이 맞는 것은 중요한 산술 성질이지만 그 설명이 인과적으로 옳거나 정책적으로 정당하다는 뜻은 아닙니다. 잘못 정한 비교 게임도 합 자체는 정확히 맞을 수 있습니다.
Start at reference z and reveal the two coordinates of x one at a time. One order reveals feature 1 first; the other reveals feature 2 first. Interaction makes an incremental contribution depend on its position in the order. Shapley values average those increments. With two features, each order has weight 1/2.
The value v(S) uses actual coordinates only for features in S and reference coordinates elsewhere. This allocates increments of an explicitly defined function-value game. It does not measure money or human worth. A different game can yield a different explanation for the same model and input.
Adding the formulas cancels intermediate terms, giving φ1+φ2=f(x)−f(z). This exact efficiency identity is useful arithmetic, but it does not establish causal validity or policy legitimacy. A poorly chosen comparison can still have an exact sum.
학부 심화 · 선택Advanced undergraduate · optional
상호작용을 손으로 나누기Allocate an interaction by hand
함수를 f=1+2x1+3x2+4x1x2, 실제 입력을 (2,1), 기준을 (0,0)으로 둡니다. 기준 예측은1, 좌표1만 공개하면5, 좌표2만 공개하면4, 두 좌표를 공개하면16입니다. 좌표1의 기여는 먼저 들어갔을 때4, 나중에 들어갔을 때12이므로 평균8입니다. 좌표2는 먼저3, 나중에11이므로 평균7입니다.
기준이0인 이 예에서는 상호작용 항8을 두 좌표가4씩 나누어 갖습니다. 선형 부분 기여4와3에 이를 더해8과7이 됩니다. 그러나 “모든 상호작용은 언제나 입력과 무관하게 반으로 나누면 된다”는 규칙은 아닙니다. 위 식처럼 기준과 입력 차이를 반영해야 합니다.
같은 실제 입력에서 기준만 (1,1)로 바꾸어 보세요. 기준 예측은10이므로 설명할 차이는6입니다. 두 번째 좌표는 기준과 실제가 모두1이어서 기여0, 첫 번째는6입니다. 모형과 실제 예측16이 그대로인데도 설명이 바뀐 이유는 비교 질문이 바뀌었기 때문입니다. 두 설명 중 하나가 수치 오류라는 뜻은 아닙니다.
Use f=1+2x1+3x2+4x1x2, actual input (2,1) and reference (0,0). The four game values are 1,5,4 and 16. Feature 1 contributes 4 when first and 12 when second, averaging 8. Feature 2 contributes 3 when first and 11 when second, averaging 7.
With a zero reference, the interaction 8 is split into 4 for each feature, added to linear contributions 4 and 3. This is not a general rule to split every interaction independent of input and reference. The formula explicitly uses both.
Change only the reference to (1,1). Its prediction is 10, so the difference to explain is 6. Feature 2 has no input-reference change and receives 0; feature 1 receives 6. The actual model prediction remains 16. Different explanations follow from different comparison questions, not necessarily an arithmetic error.
대학원 연결Graduate bridge
배경 치환과 조건부 정보는 다른 게임Background replacement and conditional information are different games
기준을 한 점으로 고르기 어렵다면 여러 실제 배경 행을 비교 기준으로 사용할 수 있습니다. 주변 치환 게임은 공개할 좌표를 x로 덮어쓰고 나머지는 각 배경 행에서 가져와 함수값을 평균합니다. 아직 공개하지 않은 좌표의 배경 분포는 고정합니다. 실제로 드문 조합이나 배경에 없는 조합을 만들 수 있다는 한계가 있습니다.
조건부 게임은 배경 행 중 공개된 좌표와 일치하는 행만 남기고 예측을 평균합니다. 이때는 공개한 좌표로 나머지 좌표에 관한 정보도 얻습니다. 실제 유한 표에서 해당 조건을 만족하는 양의 비중이 없으면 조건부 평균을 정의할 수 없습니다. 이 장의 실습은 그 경우를 오류로 알려 주며0을 채우거나 가까운 값을 몰래 가져오지 않습니다.
배경이 같은 비중의 (0,0),(1,1), 실제 입력이 (1,1), 함수가 f=x1이라고 합시다. 주변 치환의 값은 v∅=1/2,v1=1,v2=1/2,v12=1로 기여가 (1/2,0)입니다. 조건부에서는 X2=1만 알아도 X1=1을 알 수 있어 v2=1입니다. 기여는 (1/4,1/4)가 됩니다. 직접 가중치0인 좌표2도 조건부 정보에는 기여합니다.
Shapley의 “기여하지 않는 요소는0” 성질과 모순된다고 서둘러 말하면 안 됩니다. 조건부 게임에서 좌표2는 v({2})를 바꾸므로 그 게임의 무기여 요소가 아닙니다. 함수의 직접 사용 여부와 정보 게임의 추가 가치가 달랐던 것입니다. 주변 치환을 문헌에서 interventional SHAP이라고 부르더라도 실제 세계의 do 개입으로 자동 해석하지 않습니다.
When one reference point is unsuitable, use weighted background rows. Marginal replacement overwrites revealed coordinates with x and averages model outputs using background coordinates for the rest. The unrevealed background distribution stays fixed. This can create rare or unsupported feature combinations.
The conditional game instead keeps background rows matching revealed coordinates and averages their predictions. Revealed features provide information about other features. If no positive background mass supports an event, the empirical conditional mean is undefined. Our lab reports the unsupported event rather than filling zero or silently substituting nearby rows.
Take equally weighted background (0,0),(1,1), input (1,1), and f=x1. Marginal game values 1/2,1,1/2,1 yield contributions (1/2,0). Under conditioning, X2=1 also reveals X1=1, so v2=1 and contributions become(1/4,1/4). A zero-direct-weight feature can carry conditional information.
This does not violate the game-theoretic dummy property: feature 2 changes v({2}) in the conditional game, so it is not a dummy in that game. Direct functional use differs from incremental information. Even terminology such as “interventional SHAP” for marginal replacement does not automatically establish a real-world causal do-intervention.
학부 심화 · 선택Advanced undergraduate · optional
기울기·계수·기여도·실제 행동의 단위Units of gradients, coefficients, contributions and actions
기울기는 현재 점에서 입력을 아주 조금 움직였을 때 함수가 얼마나 변하는지입니다. 기준에서 현재까지의 전체 차이를 반드시 설명하는 값은 아닙니다. 앞의 다항식에서 입력 (2,1)의 기울기는 (6,11)입니다. 이를 입력에 곱하면 (12,11)이지만 합23은 기준0 대비 예측 차이15와 다릅니다. 상호작용을 끝점 기울기로 두 번 계산했기 때문입니다.
∇f(x)=(w1+vx2,w2+vx1)
좌표 단위도 구분하세요. 교육 연수를 10배 한 새 좌표로 바꾸고 함수와 기준도 같은 의미가 되도록 바꾸면 예측과 정확 기여 분해는 유지될 수 있습니다. 그러나 새 좌표의 한 단위는 이전의1/10이므로 기울기의 숫자는1/10이 됩니다. 계수의 절댓값만으로 중요도를 비교하면 단위 선택에 따라 순서가 바뀔 수 있습니다.
기여도가 큰 입력은 모형 답의 기준 대비 차이를 크게 설명한 입력입니다. 가장 쉽게 바꿀 수 있는 행동, 비용이 낮은 행동, 결과를 실제로 개선하는 행동과 같지 않습니다. 나이를 줄이거나 과거의 성장률을 수정하는 것을 현실적인 처방으로 제시할 수는 없습니다. 가능한 행동에는 실행 제약·인과 관계·다른 사람에게 미치는 효과가 있습니다.
여러 사례의 절대 기여도를 평균해 전역 그림을 그릴 때는 어떤 사람·어떤 기준·어떤 비중을 평균했는지도 적습니다. 부호를 유지한 기여도의 평균0은 모든 사례의 기여0일 수도 있지만 양수와 음수의 상쇄일 수도 있습니다. 반면 평균 절대 기여도에는 양·음 상쇄가 없습니다. 비중의 총합이 양수일 때 평균 절대 기여도가0이면 양의 비중을 갖는 각 행의 기여도는0입니다. 선택한 균형 표의 평균을 전체 모집단의 특징 중요도라고 바꾸어 쓰지 않습니다. 설명의 정확 산술과 그 해석의 범위를 함께 보고하세요.
A gradient describes infinitesimal local change, not necessarily a finite difference from a reference. At input (2,1), the example polynomial has gradient(6,11). Multiplying by inputs gives (12,11), whose sum 23 differs from the reference-zero difference 15. Endpoint-gradient multiplication double-counts the interaction.
∇f(x)=(w1+vx2,w2+vx1)
Units matter. Rescaling an education coordinate by ten while consistently changing the function and reference can preserve predictions and contributions. A unit in the new coordinate is only one tenth as large in original units, so the numeric gradient divides by ten. Absolute coefficients alone need not provide a unit-invariant importance ranking.
A large contribution explains a model-output difference relative to a reference. It is not automatically an easy action, a low-cost action or an intervention improving a real outcome. Reducing age or rewriting past GDP growth is not a practical prescription. Feasible actions require constraints, causal relationships and attention to effects on others.
Global averages of absolute contributions require a stated frame, reference and weighting scheme. A signed mean of zero can mean zero everywhere or cancellation of positive and negative contributions. Mean absolute contributions cannot cancel: with positive total weight, a zero mean absolute contribution implies zero contribution in every positive-weight row. A purposefully balanced frame does not automatically estimate population feature importance. Report both arithmetic and interpretation scope.
학부 심화 · 선택Advanced undergraduate · optional
실습 C: 같은 모형에 서로 다른 설명 질문하기Lab C: ask different explanation questions of the same model
기본 함수 b=1,w=(2,3),상호작용4와 입력 (2,1), 기준 (0,0)을 계산합니다. 네 연합의 값1,5,4,16과 두 기여8,7을 먼저 확인하세요. 기준을 (1,1)로 바꾸면 기준 예측10, 기여6,0입니다. 실제 예측16은 변하지 않습니다. 바뀐 것은 실제 사례가 아니라 비교 기준입니다.
다음 실험은 모형을 {"bias":"0","weights":["1","0"],"interaction":"0"}, 입력을 [1,1]로 명시적으로 바꿉니다. 배경 행은 [{"input":[0,0]},{"input":[1,1]}]를 넣고 주변 치환을 고르세요. 기여1/2,0을 확인한 뒤 같은 입력·배경에서 조건부 게임으로 바꿉니다. 기여가1/4,1/4로 바뀌고 합은 계속1/2입니다.
조건부 게임의 입력을 [2,2]로 바꾸면 배경에 일치하는 양의 질량이 없습니다. 결과가 지워지고 지원되지 않은 조건을 알리는지 확인하세요. 모형 f(2,2)=2 자체는 계산 가능하지만 이 배경 표가 정의하는 조건부 게임은 그 사건을 뒷받침하지 못합니다. 모형 함수의 정의역과 경험적 조건부 평균의 지지집합은 다릅니다.
조건부 오류 뒤에는 입력을 [1,1]로 복원하고 다시 계산하세요. 마지막으로 모든 출력이 인과효과가 아니라 함수·기준·배경 게임의 설명이라는 점을 문장으로 적습니다. 어떤 기준을 사용했는지 적지 않은 기여 막대그림은 학습자에게 정확한 비교 질문을 전달하지 못합니다.
Start with b=1,w=(2,3), interaction 4, input (2,1) and reference (0,0). Verify game values 1,5,4,16 and contributions 8,7. Changing the reference to (1,1) gives reference prediction 10 and contributions 6,0, while the actual prediction stays 16.
For the next experiment, explicitly set model {"bias":"0","weights":["1","0"],"interaction":"0"}, input [1,1] and background [{"input":[0,0]},{"input":[1,1]}]. Marginal replacement gives contributions 1/2,0. Switch to conditioning without changing input or background: contributions become 1/4,1/4, still summing to 1/2.
Under conditioning, input [2,2] has no matching positive background mass. Check that results clear and unsupported conditioning is reported. The function f(2,2)=2 remains defined, but this empirical conditional game lacks support. A function’s domain and an empirical distribution’s conditioning support are different objects.
Restore input [1,1] and recalculate after the unsupported condition. State that these are explanations of a function/reference/background game rather than causal effects. A contribution chart without its reference cannot communicate the comparison being answered.
학부Undergraduate
관측·개입·반사실의 세 질문Three questions: observation, intervention and counterfactuals
우산을 든 날에 비가 자주 온다고 해서 사람들에게 우산을 들게 하면 비가 내리는 것은 아닙니다. 관측은 이미 일어난 사실로 대상을 좁히고, 개입은 어떤 결정을 강제로 바꾸었을 때를 묻습니다. 개별 반사실은 특정 사실을 관측한 같은 대상에게 다른 행동을 했더라면 무엇이 달랐을지 묻습니다. 비슷하게 보이는 문장도 필요한 가정은 다릅니다.
P(Y∣X=x),P(Y∣do(X=x)),P(Yx′∣X=x,Y=y)
첫 식은 X=x인 관측들 안의 Y 분포입니다. 둘째는 X를 만드는 과정을 바꾸어 x로 고정한 세계의 Y 분포입니다. 셋째는 현재 X=x,Y=y를 본 대상이 다른 설정 x′에서 어떤 결과를 가졌을지입니다. 표기법을 바꾸는 것만으로 첫 번째에서 두 번째·세 번째 답을 얻을 수는 없습니다.
실제 사례의 점수식을 다시 떠올려 보세요. 교육·나이 점수의 기여는 모형 출력에 관한 설명입니다. 교육을 늘리는 지원 정책의 효과는 교육 기회·비용·임금 결정 구조를 포함한 인과 질문입니다. 고객 불만이 높은 이탈 점수에 기여했다고 해서 불만 표시를 숨기면 고객이 남는다고 결론 내릴 수 없습니다. 기록을 바꾸는 것과 서비스 경험을 바꾸는 것은 다릅니다.
이 장은 인과효과를 원 자료에서 새로 추정하는 대신, 손으로 완전히 풀 수 있는 두 구조 모형을 만듭니다. 두 모형이 같은 관측 표를 만들지만 다른 개입 답을 내놓는다는 사실을 보여 줄 것입니다. 목적은 인과 분석을 포기하는 것이 아니라, 어떤 구조·설계·추가 자료가 있어야 답할 수 있는지 드러내는 것입니다.
Rain often accompanies umbrellas, but making people carry umbrellas does not thereby cause rain. Observation restricts attention to facts already realized. Intervention changes a mechanism. An individual counterfactual asks what would have happened to the same unit under a different setting after observing its facts. Similar-sounding questions require different assumptions.
P(Y∣X=x),P(Y∣do(X=x)),P(Yx′∣X=x,Y=y)
The first expression describes observed Y among cases with X=x. The second describes Y after replacing the mechanism for X with a constant x. The third asks about an alternative outcome for a unit whose actual X=x,Y=y was observed. Changing notation alone does not identify the latter two quantities.
An education/age contribution explains a model output. The effect of an education-support policy concerns opportunities, costs and wage determination. A complaint’s contribution to a churn score does not imply that suppressing complaint records prevents churn. Changing a record differs from improving a service experience.
Rather than estimating causal effects from the actual files, we construct two completely solvable structural models. They agree on an observational table but disagree on interventions. The aim is to expose the additional structures, designs and evidence a causal answer needs.
학부 심화 · 선택Advanced undergraduate · optional
작은 구조 모형의 재료: 독립한 두 동전Ingredients of a small SCM: two independent coins
U와 V를 각각0 또는1인 두 외생 변수라고 합시다. P(U=1)=p, P(V=1)=q이고 서로 독립이라고 가정합니다. 외생이라는 말은 이 작은 모형 안에서는 더 앞의 원인으로 설명하지 않는 요인을 뜻합니다. 독립성은 관측 자료가 자동으로 보장하는 사실이 아니라 모형의 일부입니다.
P(U=u,V=v)=pu(1−p)1−uqv(1−q)1−v
이제 XOR 연산을 정의합니다. 두 값이 다르면1, 같으면0입니다. 0 XOR0=0,0 XOR1=1,1 XOR0=1,1 XOR1=0입니다. V를 뒤집힘 잡음으로 읽으면 Y는 원래 신호와 확률 q로 반대가 됩니다. q=1/4이면 네 번 중 한 번 정도 뒤집히는 확률 법칙이지, 실제 네 관측에서 반드시 한 번만 뒤집힌다는 약속이 아닙니다.
같은 U,V를 쓰는 두 구조 모형
모형
X를 만드는 대입
Y를 만드는 대입
사슬(chain)
X := U
Y := X XOR V
공통 원인(fork)
X := U
Y := U XOR V
사슬에서는 Y가 X의 값을 읽습니다. 공통 원인 모형에서는 Y가 U를 직접 읽고 X는 읽지 않습니다. 평상시 X=U이므로 출력은 같아 보이지만 X의 대입을 강제로 바꾸었을 때 차이가 생깁니다. 이 구별이 표본 개수가 많아져도 반드시 해소되는 것은 아닙니다. 관측할 수 없는 구조의 차이가 남을 수 있기 때문입니다.
Let binary exogenous variables U,V have P(U=1)=p and P(V=1)=q, and assume independence. “Exogenous” means their earlier causes are left outside this small model. Independence is an assumption, not something the observed table automatically guarantees.
P(U=u,V=v)=pu(1−p)1−uqv(1−q)1−v
XOR returns one when its binary arguments differ and zero when they agree. The four outputs for inputs 00,01,10,11 are 0,1,1,0. As flip noise, V reverses a signal with probability q. At q=1/4, this does not promise exactly one flip in every four realized observations.
Two models using the same U,V
Model
Assignment for X
Assignment for Y
Chain
X := U
Y := X XOR V
Fork
X := U
Y := U XOR V
In the chain, Y reads X. In the fork, Y reads U directly, without using X. Since X=U in ordinary observations, the outputs agree until the assignment for X is replaced. More observational data need not resolve this structural difference.
학부 심화 · 선택Advanced undergraduate · optional
완전히 같은 관측 표를 계산하기Calculate an identical observational table
p=1/2,q=1/4로 두고 외생 상태 네 개를 모두 적습니다. (U,V)=(0,0),(0,1),(1,0),(1,1)의 질량은 각각3/8,1/8,3/8,1/8입니다. 어느 모형에서도 관측할 때 X=U이고 Y=U XOR V이므로 관측 (X,Y)의 대응은 (0,0),(0,1),(1,1),(1,0)입니다. 표의 어느 칸도 표본 추정이 아니라 선언한 기제의 정확한 확률입니다.
두 모형의 공통 관측 분포
X
Y
확률
0
0
3/8
0
1
1/8
1
0
1/8
1
1
3/8
P(Y=1∣X=1)=1/23/8=43,P(Y=1∣X=0)=1/21/8=41
관측 차이는1/2입니다. X를 알면 Y를 예측하는 데 도움이 됩니다. 그러나 그 차이가 X를 바꾸는 평균 효과인지 아직 알 수 없습니다. 두 구조 모형은 같은 관측 공동 분포와 같은 조건부 예측을 내놓습니다. 따라서 X,Y만 관측한 표에서 계산한 정확도·상관·집단 통계도 둘을 구별할 수 없습니다.
실제 자료에서 완전히 같은 관측 분포를 아는 것은 드물고 표본 불확실성도 더해집니다. 이 예는 그보다 강한 상황, 관측 분포를 완전히 알아도 생기는 한계를 보여 줍니다. 예측 성능을 더 정확하게 재거나 관측 행을 늘리는 것만으로 구조에 관한 모든 질문이 해결되는 것은 아닙니다.
Set p=1/2,q=1/4. The exogenous states 00,01,10,11 have masses 3/8,1/8,3/8,1/8. In either model, observations satisfy X=U and Y=U XOR V, producing observed pairs 00,01,11,10. These are exact probabilities of a declared mechanism, not sample estimates.
Common observational distribution
X
Y
Probability
0
0
3/8
0
1
1/8
1
0
1/8
1
1
3/8
P(Y=1∣X=1)=1/23/8=43,P(Y=1∣X=0)=1/21/8=41
The observational difference is 1/2, so X helps predict Y. That does not yet establish an average effect of changing X. Both models share the same joint distribution and conditional predictions. Accuracy, correlation and group statistics computed solely from observed X,Y cannot distinguish them.
Actual observational studies also have sampling uncertainty. This example shows a stronger limitation: it remains even if the entire observed distribution is known. More precise prediction or more observed rows does not answer every structural question.
대학원 연결Graduate bridge
관측을 고르는 대신 대입을 교체하기Replace an assignment rather than select observations
do(X=1)은 X=1인 관측만 골라 U도1로 제한하는 연산이 아닙니다. X:=U라는 대입을 X:=1로 교체하고, U,V의 원래 분포는 유지합니다. 사슬에서 Y:=X XOR V는 이제1 XOR V가 되어 Y=1 확률은1−q입니다. do(X=0)에서는 Y=V로 확률 q입니다.
공통 원인 모형의 Y 대입은 U XOR V이므로 X의 대입을 바꾸어도 그대로입니다. 따라서 두 개입에서 E[Y]=p(1−q)+(1−p)q=q+(1−2q)p이고 평균 효과는0입니다. p=1/2,q=1/4에서는 개입 평균이 둘 다1/2입니다. 관측 조건부3/4와1/4는 이 모형의 개입 결과가 아니었습니다.
E[Y∣do(X=x)]fork=q+(1−2q)p,ATEfork=0
두 모형의 차이는 평균 효과1/2 대0입니다. 어느 모형을 현실의 설명으로 채택할지는 과학적 지식, 실험·준실험 설계, 시간 순서, 누락된 원인에 대한 가정 등 추가 근거가 필요합니다. 식의 계산이 정확하다는 사실은 구조의 타당성을 보장하지 않습니다. 이 장의 국가·개인·기업 원 자료에서 이 XOR 구조를 추정했다고 말하지 않습니다.
do(X=1) does not select observed cases with X=1 and thereby force U=1. It replaces X:=U with X:=1 while preserving the original distribution of U,V. In the chain, Y becomes 1 XOR V, with mean 1−q; do(X=0) gives Y=V, with mean q.
In the fork, Y remains U XOR V when the assignment for X changes. Either intervention gives E[Y]=p(1−q)+(1−p)q=q+(1−2q)p, hence average effect zero. At p=1/2,q=1/4, both interventional means are 1/2. Observational conditional means 3/4 and 1/4 were not intervention effects in this model.
E[Y∣do(X=x)]fork=q+(1−2q)p,ATEfork=0
The model-specific average effects differ:1/2 versus 0. Choosing a real-world structure needs additional knowledge, experimental or quasi-experimental design, temporal information and assumptions about omitted causes. Correct algebra does not validate a structure. These XOR assignments are not estimated causal laws for our actual files.
대학원 연결Graduate bridge
같은 대상에게 다른 행동을 했더라면What if the same unit had received another action?
집단 전체의 평균 효과와 같은 사람의 반사실도 다릅니다. X=0,Y=0을 관측한 한 대상을 생각하세요. 두 모형의 평상시 관계 X=U,Y=U XOR V에 따라 이 대상의 U=0,V=0을 추론할 수 있습니다. 여기서는 외생 상태가 관측값으로 유일하게 정해지는 단순한 예입니다. 일반 모형에서 이런 추론은 유일하지 않을 수 있습니다.
이제 그 대상의 U,V를 그대로 두고 X:=1로 바꿉니다. 사슬은 Y=1 XOR0=1이 됩니다. 공통 원인 모형은 Y=0 XOR0=0 그대로입니다. 관측 사실은 동일하지만 반사실 답도 구조에 따라 다릅니다. 개별 처방을 내놓는 설명 기법은 어떤 구조와 실현 가능 행동을 가정했는지 밝혀야 합니다.
세 단계의 반사실 계산
단계
이 예의 계산
필요한 가정
사실에서 외생 상태 추론
X0,Y0 → U0,V0
구조 대입과 양의 증거 확률
행동 대입 교체
X:=1
가능한 개입의 뜻
같은 외생 상태로 결과 계산
사슬1 / 공통 원인0
구조와 같은 대상의 외생 요인 보존
관측 사건의 확률이0이면 이 경험적 조건으로 외생 상태를 추론할 수 없습니다. 예를 들어 p=0일 때 X=1,Y=1을 관측했다고 입력하는 것은 선언한 모형과 양립하지 않습니다. 실습은 그 증거를 거절합니다. 반면 구조를 가정한 상태에서 p=0이어도 do(X=1)을 계산할 수는 있습니다. 실제로 본 적이 없는 행동에 대한 식의 답은 가정에 더 크게 의존합니다.
인과적 공정성의 반사실 조건도 어떤 속성을 바꾸고 어떤 경로를 유지·차단할지 명시한 구조가 있어야 해석할 수 있습니다. 성립 여부를 검토하는 수학과 허용할 경로에 대한 가치 판단을 구분하세요. 실제 인종·장애·사회적 지위를 단일 숫자처럼 마음대로 바꾸는 간단한 처방으로 읽지 않습니다.
A population average effect differs from a counterfactual for one unit. Suppose X=0,Y=0 was observed. Under either model’s ordinary assignments, U=0,V=0 is uniquely inferred. This uniqueness is a feature of our simple example; general models can leave a distribution over exogenous states.
Keep that unit’s U,V fixed and replace X:=1. The chain gives Y=1 XOR 0=1; the fork retains Y=0 XOR 0=0. Identical facts can therefore support different model-specific counterfactuals. A prescriptive explanation must state both structure and feasible actions.
Three steps of counterfactual computation
Step
Calculation here
Needed assumption
Abduce from facts
X0,Y0 → U0,V0
Assignments and positive evidence probability
Replace an action assignment
X:=1
Meaning of a feasible intervention
Predict with the same exogenous state
Chain 1 / fork 0
Structure and unit-level exogenous consistency
Zero-probability evidence cannot support conditional abduction. At p=0, inputting observed X=1,Y=1 contradicts the stipulated model, so the lab rejects it. Yet do(X=1) remains computable under a known structure even at p=0. Such an unobserved action relies more heavily on assumptions.
Counterfactual fairness similarly needs a structure specifying changed attributes and retained or blocked pathways. Separate mathematical satisfaction of a condition from judgments about permissible pathways. Do not read a race, disability or social-status intervention as a simple freely editable scalar prescription.
대학원 연결Graduate bridge
실습 D: 관측이 같아도 인과는 달라질 수 있다Lab D: identical observations need not identify causality
기본 p=1/2,q=1/4, doX=1을 계산합니다. 공통 관측 표의 네 확률과 두 조건부 평균을 먼저 읽으세요. 사슬의 개입 평균3/4와 공통 원인의 개입 평균1/2가 다르다는 점을 확인합니다. 같은 관측 분포라는 칸과 다른 인과 답이라는 칸을 동시에 읽는 것이 핵심입니다.
이제 관측 증거 {"x":0,"y":0}을 넣고 doX=1을 유지합니다. 추론한 U=0,V=0과 두 반사실1,0을 확인합니다. 다음에는 증거를 비우고 p=0,q=0으로 바꾸어 doX=1을 계산합니다. 두 모형은 관측에서 항상X=Y=0이지만 사슬의 개입 결과는1, 공통 원인은0입니다. 관측되지 않은 설정의 구조 가정이 결정적임을 보여 줍니다.
그 상태에서 증거 {"x":1,"y":1}을 넣으면 확률0 사건이므로 거절됩니다. 실패 뒤에는 p=1/2,q=1/4와 양의 확률 증거로 복원하세요. 어떤 모형에서는 가능한 관측이 다른 모형·매개변수에서는 불가능할 수 있어, 입력의 양립 가능성을 확인해야 합니다.
실제 정책 문제에서는 “구조를 완전히 안다”는 가정을 쉽게 채택할 수 없습니다. 무작위 배정, 정당화한 조정 변수, 적절한 도구 변수, 시간적 설계 등은 서로 다른 식별 가정을 제공합니다. 그 가정은 앞의 계량경제학에서 자세히 다룹니다. 이 장의 결론은 예측 통계·Shapley 막대·집단 비율만으로 모든 인과 질문이 식별되지 않는다는 것입니다.
Start with p=1/2,q=1/4,doX=1. Read the common four-cell observational table and conditional means first. Then compare the chain’s interventional mean 3/4 with the fork’s 1/2. Identical observations and different causal answers must be read together.
Enter evidence {"x":0,"y":0} while keeping doX=1. Verify inferred U=0,V=0 and counterfactual outcomes 1,0. Then clear evidence and set p=q=0. Both models always observe X=Y=0, but their doX=1 outcomes remain 1 and 0. Structural assumptions determine behavior at an unobserved setting.
Under p=q=0, evidence {"x":1,"y":1} has probability zero and is rejected. Restore p=1/2,q=1/4 and supported evidence afterward. An observation’s compatibility depends on the stipulated model and parameters.
Real policy analysis cannot casually assume complete structural knowledge. Randomization, justified adjustment, instruments and temporal designs supply different identification assumptions, developed in econometrics. Prediction statistics, contribution bars and group rates alone do not identify every causal question.
학부 심화 · 선택Advanced undergraduate · optional
관측 오류와 정책 비용을 따로 정의하기Separate observed errors from policy costs
거짓 양성과 거짓 음성의 수를 알았다고 어떤 정책이 더 좋은지 정해지지는 않습니다. 불필요한 연락 한 번의 비용과 필요한 지원을 놓친 비용을 같게 볼지부터 선택해야 합니다. 비용은 자료에 자동으로 들어 있는 자연 상수가 아니라 당사자와 맥락에 따라 논의할 판단입니다. 피해 중에는 돈으로 같은 축에 더하기 어려운 것도 있습니다.
L(τ)=∑iwicFPFP(τ)+cFNFN(τ),cFP,cFN≥0
위 식은 명시한 비음수 비용으로 평가 표의 오류 질량을 합친 경험적 비용입니다. 가중치가 있으면 FP,FN도 비중의 합입니다. 사람이 실제 정책을 받았을 때의 이익을 추정한 식이 아닙니다. 특히 이탈을 예측하는 정답표와 연락의 효과 자료는 다릅니다. FN의 비용을2로 정했다고 연락이 실제로2만큼의 이익을 준다고 관측한 것은 아닙니다.
앞의 네 행에서 공통 문턱 후보를1/5,1/2,4/5로 둡니다. FP와 FN 수는 각각 (2,0),(1,1),(0,1)입니다. 두 비용이1이면 평균 비용은1/2,1/2,1/4로 높은 문턱을 고릅니다. 반대로 FN 비용을4로 바꾸면1/2,5/4,1이 되어 낮은 문턱을 고릅니다. 자료와 점수가 그대로인데 선택이 바뀐 이유는 목적이 바뀌었기 때문입니다.
이 목적이 모든 영향을 대표한다고 주장하지 마세요. 오류 비용 밖의 절차적 권리, 설명 받을 기회, 접근성, 지연, 안전, 개인정보 등을 별도 제약 또는 검토 항목으로 다룰 수 있습니다. 수치 목적의 최소값과 사회적으로 정당한 결정은 같은 문장이 아닙니다.
Counts of false positives and false negatives do not alone rank policies. Decide whether unnecessary contact and missed support have the same cost. Costs are not natural constants automatically supplied by data; they require discussion with affected parties and context. Some harms resist reduction to one monetary scale.
L(τ)=∑iwicFPFP(τ)+cFNFN(τ),cFP,cFN≥0
This is empirical cost on a stated evaluation frame, using declared nonnegative costs. Weighted FP/FN are masses. The expression does not estimate the causal benefit of applying a policy. Churn labels differ from treatment-effect data; choosing FN cost 2 does not mean contact was observed to produce benefit 2.
For the four-row example, thresholds 1/5,1/2,4/5 yield(FP,FN)=(2,0),(1,1),(0,1). Equal unit costs give mean costs 1/2,1/2,1/4, favoring the high threshold. Setting FN cost 4 changes costs to 1/2,5/4,1, favoring the low threshold. The objective changed while data and scores stayed fixed.
The scalar objective need not represent every impact. Procedural rights, explanation, accessibility, delay, safety and privacy can require additional constraints or review. A numeric minimum is not automatically a socially justified decision.
학부 심화 · 선택Advanced undergraduate · optional
문턱은 검증에서 고르고 시험에서 마지막으로 읽기Select on validation and read the held-out test last
여러 문턱을 시험한 뒤 가장 좋아 보이는 시험 성적을 최종 성능이라고 쓰면 시험 자료를 선택에 사용한 셈입니다. 문턱도 모델의 일부입니다. 점수 함수가 고정되어 있어도, 어느 점수 이상에서 행동할지 고르는 과정은 자료에 맞춘 선택을 포함합니다. 평가용 자료가 이미 선택에 쓰였다면 독립된 마지막 점검으로 해석할 수 없습니다.
실제 사례에서는 점수식을 미리 고정합니다. 훈련 역할의 행은 설명의 기준 평균을 정하는 데 사용합니다. 문턱1/5가 아니라 실제 사례의 미리 정한 세 후보2/5,1/2,3/5는 검증 역할의 행에서만 비교합니다. 선택한 문턱을 고정한 뒤 시험 역할에서 혼동표와 집단별 분모를 읽습니다. 실제 사례의 기본 오류 비용은 FP=1,FN=2라고 명시합니다.
이 분리는 필요하지만 충분한 통계 보장은 아닙니다. 국가 시계열은 반복 관측과 공동 충격이 있고, 개인·고객 사례는 일부러 집단별 같은 수를 골랐습니다. 역할 이름을 train·validation·test라고 붙였다고 IID가 되지 않습니다. 원 모집단 대표성과 새 운영 환경으로의 일반화는 별도 가정·자료가 필요합니다.
시험 결과가 좋지 않으면 보고하고 원인을 조사해야 합니다. 그 결과를 본 뒤 문턱이나 자료 처리를 바꾸었다면 새 선택 단계가 시작된 것입니다. 바뀐 절차에 다시 독립적으로 사용할 평가 틀을 정하고, 시험을 몇 번 들여다보았는지까지 남기는 습관이 중요합니다. 작은 표에서0.1% 차이를 과도하게 해석하지 않습니다.
Trying thresholds on test data and reporting the best test result uses the test for selection. A threshold is part of the model. Even with a fixed score function, choosing an action cutoff adapts to data. A frame already used for selection is no longer an untouched final evaluation.
Actual-case score formulas are fixed in advance. Training-role rows define attribution reference means. The actual-case candidate thresholds are 2/5,1/2,3/5 and are compared only on validation-role rows, with declared default FP cost 1 and FN cost 2. The chosen threshold is then frozen for test confusion tables and group denominators.
Separation is necessary but does not supply every statistical guarantee. Country series have dependence and shared shocks; individual/customer frames purposefully balance groups. Calling rows train, validation and test does not make them IID. Representativeness and transport to a new operating environment need further evidence.
Report poor test results and investigate them. Changing cutoffs or preprocessing after seeing the test starts another selection stage, requiring an appropriate new evaluation plan. Record repeated inspection rather than overstating tiny differences on small frames.
대학원 연결Graduate bridge
숫자 제약이 가능한 정책을 바꾸는 방법How numerical constraints change feasible policies
경험 비용만 최소화하면 중요한 집단의 오류 차이를 무시할 수 있다고 생각할 수 있습니다. 그러면 어떤 지표의 차이를 얼마까지 허용할지 제약을 추가할 수 있습니다. 예를 들어 선택률의 최대−최소가 ε 이하라는 제약입니다. 이 ε는 통계적 오차 허용치와 자동으로 같지 않고, 법이나 윤리의 보편적 기준도 아닙니다. 분석자가 명시한 비교 조건입니다.
τ∈TminLV(τ)subject togmaxsg(τ)−gminsg(τ)≤ε
네 행 예제에서 단위 비용으로 가장 싼 문턱4/5는 A집단만 한 명 선택하므로 선택률 차이1/2입니다. ε=0을 요구하면 이 후보는 제외됩니다. 나머지 두 후보는 차이0이고 비용도1/2로 같으므로, 미리 정한 동률 규칙에 따라 먼저 적은 문턱1/5를 고릅니다. 동률을 나중에 마음에 드는 결과로 깨면 숨은 선택이 추가됩니다.
어떤 집단의 필요한 분모가0이면 제약을 확인할 수 없습니다. 이 실습은 그 후보를 “해당 조건을 확인한 가능한 해”로 세지 않습니다. 모든 후보가 불가능하면 선택 없음으로 남기며 자동으로 제약을 버리거나 다른 집단을 지우지 않습니다. 제약을 완화할지, 자료를 더 모을지, 다른 정책을 설계할지는 책임 있는 추가 판단입니다.
통과한 제약도 평가 표에서 계산한 조건입니다. 작은 집단의 불확실성, 표의 선택 편향, 교차 집단, 측정 누락, 배포 뒤의 변화가 사라지지 않습니다. 결과 문서에는 비용·후보 집합·제약·미정의 분모·동률 규칙을 함께 적어야 다른 사람이 같은 결정을 재현하고 비판할 수 있습니다.
Minimizing empirical cost can overlook group error differences. One can add a declared constraint, such as a maximum selection-rate gap ε. This ε is not automatically a statistical tolerance, a legal threshold or a universal ethical standard. It is a specified analytic condition.
τ∈TminLV(τ)subject togmaxsg(τ)−gminsg(τ)≤ε
In the four-row example, the cheapest unit-cost threshold 4/5 selects one A row and no B row, giving gap 1/2. Requiring ε=0 excludes it. The other two candidates both have gap 0 and cost 1/2. The predetermined earliest-listed tie rule selects 1/5. Choosing a favorable tie after inspecting results adds hidden selection.
A required zero denominator prevents checking the constraint. Our lab does not label that candidate verified feasible. If no candidate qualifies, no policy is selected. It does not silently drop a group or discard the constraint. Relaxation, new data or redesign requires further accountable judgment.
A passed constraint is still a property calculated on this frame. Small-group uncertainty, selection bias, intersections, missing measurements and deployment drift remain. Document costs, candidates, constraints, unsupported denominators and tie rules so others can reproduce and challenge the choice.
학부Undergraduate
모형 카드에서 증거와 주장을 연결하기Connect claims to evidence in a model card
“성능이 좋고 공정하다”라는 홍보 문장보다, 누가 어떤 용도로 어떤 자료에서 무엇을 확인했는지를 읽을 수 있는 문서가 유용합니다. Mitchell과 공동 저자들의 2019년 Model Cards 제안은 사용 맥락과 조건별 평가를 함께 기록하는 문서화를 강조합니다. 문서를 만들었다는 사실 자체가 성능을 개선하거나 모든 사용을 승인하는 것은 아닙니다.
이 장의 교육용 판단 기록지
항목
적을 내용
구체적인 질문
목적·영향 대상
행동과 원하는 결과, 기대 이익·부담
양성 결정은 누구에게 어떤 일을 하는가
자료·측정
원본, 기간, 단위, 결측, 선택·역할
빠진 사람과 쓰지 않은 변수는 누구인가
모형·설명
고정 식, 기준 평균, 점수의 뜻
확률·기여·인과효과를 혼동하지 않았나
평가·제약
분모, 집단별 값, 비용·문턱·동률
지원되지 않은 층과 조건은 무엇인가
책임·수정
담당자, 검토 기한, 이의제기·중단 경로
누가 어떤 증거로 결정을 바꿀 수 있는가
좋은 문서는 확인한 주장과 확인하지 못한 주장을 분리합니다. 예를 들어 “선택한 시험 표에서 오류율 차이를 계산했다”와 “운영 대상 전체에 차별이 없다”는 다릅니다. 원본의 출처·변환·결과 표를 연결하면 산술을 재현할 수 있습니다. 그러나 재현 가능하다는 사실만으로 측정의 적절성이나 정책 목적이 정당해지지는 않습니다.
한 번 작성한 카드도 자료·모형·환경이 바뀌면 갱신해야 합니다. 이전 버전의 범위와 검토 결과를 남겨 어떤 주장이 어느 버전에 관한 것인지 알 수 있게 하세요. 운영 비밀이나 개인 정보가 포함된 원본을 무조건 공개하라는 뜻은 아닙니다. 공개 가능한 요약·접근 통제된 검토·동의와 보존 정책을 맥락에 맞게 정합니다.
A document stating who checked what, for which use and on which data is more useful than a slogan that a model is “accurate and fair.” Mitchell and colleagues’2019 Model Cards proposal emphasizes intended context and evaluation under different conditions. Documentation itself neither improves performance nor approves every use.
An educational decision record for this chapter
Item
Record
Concrete question
Purpose and affected parties
Action, desired outcome, benefits and burdens
What does a positive decision do to whom?
Data and measurement
Source, period, units, missingness, selection and roles
Who is missing, and which fields were unused?
Model and explanation
Fixed formula, reference and score meaning
Were probability, attribution and causal effects separated?
Evaluation and constraints
Denominators, group rates, costs, cutoff and ties
Which strata or conditions lack support?
Responsibility and revision
Owner, review date, appeal and stop path
Who can change the decision using what evidence?
Separate established and unestablished claims. “We computed group gaps on this selected test frame” differs from “no discrimination exists in the operating population.” Linking sources, transformations and outputs permits arithmetic reproduction, but does not establish measurement validity or objective legitimacy.
Update documentation when data, model or environment changes, while retaining version-specific scope. This does not require indiscriminate publication of personal or confidential records. Choose appropriate public summaries, controlled review, consent and retention arrangements for the context.
학부Undergraduate
거버넌스는 점수 합이 아니라 반복되는 책임 과정Governance is recurring responsibility rather than a score total
NIST AI RMF 1.0의 2023년 판은 Govern·Map·Measure·Manage라는 네 기능으로 위험 관리 활동을 조직합니다. 이 장은 그 판의 틀을 참고하며 이를 법적 승인 규칙으로 사용하지 않습니다. 기능은 반드시 한 번씩 순서대로 끝내는 체크리스트가 아니고, 거버넌스는 나머지 활동 전체를 가로지릅니다. 환경과 지식이 바뀌면 다시 판단해야 합니다.
네 기능을 수업 프로젝트에 연결하기
기능
학습 프로젝트에서 할 일
Govern
목표·권한·책임·당사자 참여와 이의제기 경로 정하기
Map
사용 맥락·영향 대상·대안·예상 피해의 구조 그리기
Measure
적절한 자료·지표·분모·불확실성으로 주장 점검하기
Manage
위험 대응·사용 제한·모니터링·수정·중단을 선택하기
측정 담당자가 모든 결정을 대신할 수는 없습니다. 예를 들어 오류율이 같아졌어도 필요한 서비스가 줄었는지, 설명을 이해할 수 없는 사용자가 배제되는지, 이의제기가 실제로 처리되는지를 확인해야 합니다. 사람을 검토 과정에 넣었다는 이름만으로 그 사람이 필요한 정보·시간·변경 권한을 가졌다고 보장되지 않습니다.
엘리너 오스트롬의 경제 거버넌스 연구는 실제 규칙과 집행·협력의 제도를 살펴보는 관점을 제공합니다. 이를 AI에 대한 완성된 정답으로 가져오는 것이 아니라, 규칙의 명칭뿐 아니라 누가 만들고 집행하며 수정하는지 묻는 연결로 읽습니다. 아마르티아 센의 후생경제학·사회선택 연구는 무엇을 평가하고 서로 다른 이익과 관점을 어떻게 비교할지라는 질문을 넓혀 줍니다. 어느 학자의 이름도 특정 지표를 자동으로 정당화하는 권위 표지가 아닙니다.
프로젝트에서는 최소한 하나의 이의제기 경로와 하나의 재검토 조건을 실제로 시연하세요. 예를 들어 잘못된 원 기록 정정을 접수했을 때 담당자, 처리 기한, 재평가할 수치, 당사자에게 보낼 설명을 정합니다. 배포 뒤의 오류나 피해가 드러나면 중단 또는 사용 제한을 누가 결정하는지도 명확히 합니다. 합의한 조건과 남은 이견을 함께 기록합니다.
The 2023 edition of NIST AI RMF 1.0 organizes risk activities into Govern, Map, Measure and Manage. We use that edition as a framework, not a legal approval rule. These are not a one-pass ordered checklist; governance cuts across the other activities, with revision as context and knowledge change.
Connect the four functions to a course project
Function
Project activity
Govern
Specify goals, authority, responsibility, participation and appeals
Map
Describe context, affected parties, alternatives and possible harms
Measure
Check claims using suitable data, metrics, denominators and uncertainty
Manage
Choose responses, use restrictions, monitoring, revision and stopping
Measurement staff cannot settle every institutional question. Equal error rates can coexist with reduced service, inaccessible explanations or ineffective appeals. Naming a human reviewer does not establish that the reviewer has information, time or authority to change a decision.
Elinor Ostrom’s economic-governance research offers a connection to actual rules, enforcement and cooperation. It is not a completed AI prescription. Use it to ask who creates, enforces and revises rules. Amartya Sen’s welfare-economics and social-choice work broadens questions about evaluative criteria and competing interests. Neither scholar’s name automatically legitimizes one metric.
Demonstrate an appeal path and a review trigger in the project. For a correction to a source record, specify an owner, response time, quantities to reassess and explanation to the affected party. State who can restrict or stop operation when harms emerge. Record agreements and unresolved disagreements together.
학부 심화 · 선택Advanced undergraduate · optional
실습 E: 비용·제약을 명시한 정책 비교Lab E: compare policies with explicit costs and constraints
네 기본 행을 role="validation"으로 두고 후보1/5,1/2,4/5, 두 오류 비용1을 사용합니다. 모든 후보의 FP·FN 비용과 선택률 차이를 읽고, 가장 싼 문턱4/5가 선택되는지 확인하세요. 동률 후보가 있을 때는 입력 목록에서 먼저 적은 것을 택합니다. 평가가 끝난 뒤 유리한 후보를 앞으로 옮기는 것은 동률 규칙의 사전 고정과 다릅니다.
FN 비용을4로 바꾸면 문턱1/5가 선택됩니다. 다음 실험 전 두 비용을1로 복원하고 선택률 차이 한도를0으로 넣습니다. 문턱4/5는 제외되고1/5가 선택됩니다. 두 결과는 자료를 조작한 것이 아니라, 명시한 목적과 제약이 다른 정책을 골랐다는 뜻입니다. 한도의 입력을 비우면 그 제약을 적용하지 않는다는 점도 확인하세요.
행 하나의 role을"test"로 바꾸면 정책 선택을 거절해야 합니다. 선택용 검증 표에 시험 라벨을 섞는 것을 막는 조건입니다. 다시"validation"으로 복원한 뒤, 실제 양성이 없는 집단을 만들고 equalized odds 차이 한도0을 요구해 보세요. 필요한 TPR 분모가 없으면 가능한 후보가 없다고 나와야 합니다. 미정의를0으로 바꿔 통과시키지 않습니다.
마지막 보고서는 “이 비용·후보·자료·제약에서 선택한 정책”이라고 씁니다. "공정 인증"이나 "도입 승인"이라고 쓰지 않습니다. 이해관계자가 다른 비용을 제시하면 어느 선택이 어떻게 달라지는지 민감도 토론을 하고, 제약을 만족한 뒤에도 검토할 측정·권리·인과·운영 질문을 최소 세 개 남깁니다.
Use the default four rows with role="validation", candidate thresholds 1/5,1/2,4/5 and unit error costs. Read all candidate costs and selection gaps; confirm that the cheapest threshold 4/5 is selected. Equal-cost ties follow supplied order. Reordering candidates after seeing results differs from committing to that rule in advance.
Set FN cost 4 to select threshold 1/5. Before the next experiment restore both costs to 1 and add selection-gap limit 0. Threshold 4/5 becomes infeasible and 1/5 is selected. These choices reflect different explicit objectives and constraints. A blank limit omits that constraint.
Change one row’s role to"test" and confirm rejection of policy selection. Restore"validation", then create a group with no positives and require equalized-odds gap 0. With an unsupported TPR denominator, no candidate qualifies. Undefined rates must not be filled with zero to pass a constraint.
Report “the policy selected under these costs, candidates, data and constraints,” not “fairness certified” or “deployment approved.” Discuss how other stakeholder costs change the ranking, and retain at least three unresolved measurement, rights, causal or operational questions.
학부 심화 · 선택Advanced undergraduate · optional
국가 사례: 같은 선택률이 된 성장률 규칙Country case: a growth rule with identical selection rates
국가 사례는 DEU·JPN·KOR·USA의 1980~2024년 GDP 성장률과 CPI 상승률 원 관측360개를 보존합니다. 1981~2024년의 현재 GDP 성장률이0 이상이면 Y=1로 정하고, 전년 GDP 성장률을 (성장률+30)/60으로 바꾼 값을 고정 점수로 씁니다. 전년 CPI도 변환 입력으로 보존하지만 이 점수의 직접 가중치는0입니다. 복잡한 경제 예측모형을 새로 추정한 것이 아닙니다.
훈련100행은 설명 기준 평균에, 검증36행은 문턱 후보2/5·1/2·3/5의 선택에, 시험40행은 마지막 기술 평가에 사용합니다. 기본 FP비용1,FN비용2에서 검증은 문턱2/5를 고르고 평균 비용은5/36입니다. 원 성장률 단위로 보면 전년 성장률−6퍼센트 이상이면 선택하는 규칙입니다. 보존된 마지막 시험 구간에서는 모든40행이 선택됩니다.
시험에서 국가별 분모는10행씩입니다. DEU·JPN의 실제 양성은각7행, KOR·USA는각9행이므로 PPV는각7/10과9/10입니다. 모두 선택하므로 선택률은1, TPR과 FPR도모두1입니다. 선택률 차이와 equalized odds 차이가0이지만 음성을 전혀 걸러내지 않는 규칙입니다. 같은 오류율을 얻었다는 말과 유용한 예측을 한다는 말을 구분하는 실제 예입니다.
반복 연도와 공동 경기 충격은 독립 관측이 아닙니다. 또한 2026년10월8일로 보존된 동일 최종 빈티지 값으로 구성했으므로 당시 발표 시차·수정 이력을 복원한 실시간 예측 검증이 아닙니다. 국가 간 비교를 개인의 차별·사회후생 평가로 바꾸지 않습니다. 전체 원 관측과 선택·변환 기록을 받아 단위와 출처를 확인하세요.
국가 · 실제 성장률
원 국가는 지리적 비교 단위입니다. 반복 연도·공동 충격·동일 최종 빈티지 때문에 모집단 공정성이나 실시간 정책 효과로 일반화하지 않습니다. 시험에서 모두 선택되어 선택률·오류율 격차가 0이어도 음성 구별력이 없다는 점을 보세요.
자료와 선언한 모형을 구분
항목
내용
원 관측 전체
360
선택 핵심 행
176
점수
명시한 두 입력의 고정 선형식 · 확률 추정 아님
후보 문턱
2/5 · 1/2 · 3/5
기본 비용
FP=1 · FN=2
문턱 선택
검증 역할만 · 같은 정확 비용이면 먼저 적은 후보
설명 기준
훈련 역할의 두 입력 평균
해석 범위
관측 기술 통계·함수 설명 · 인과/인구/법적 인증 아님
고정 역할의 분모
역할
원 행 수
훈련
100
검증
36
시험
40
검증 후보 전체 · 시험으로 고르지 않음
후보
문턱
검증 수
평균 오류 비용
선택률 차이
EO 차이
최종 선택 1
threshold:2/5
≈0.4정확값2/5
36
≈0.138889정확값5/36
0
미정의
1
threshold:1/2
≈0.5정확값1/2
36
≈0.333333정확값1/3
≈0.333333정확값1/3
미정의
0
threshold:3/5
≈0.6정확값3/5
36
≈1.66667정확값5/3
≈0.111111정확값1/9
미정의
0
집단별 시험 비율 · 미정의는 0이 아님 · 확률 축 0~1. 같은 시험 표의 선택률·TPR·FPR입니다.
The country case retains 360 original GDP-growth/CPI observations for DEU,JPN,KOR,USA during 1980–2024. Current nonnegative GDP growth defines Y=1 in 176 country-years 1981–2024. The fixed score is (previous GDP growth+30)/60. Previous CPI is retained as a transformed zero-direct-weight input; no economic forecasting model is newly fitted.
Training 100 rows define reference means, validation 36 choose among thresholds 2/5,1/2,3/5, and test 40 provide final descriptive evaluation. Default FP cost 1 and FN cost 2 select threshold 2/5 at validation cost 5/36. In original units, this selects previous growth at least−6%. All 40 rows in the retained test period are selected.
Each country contributes 10 test rows. DEU/JPN have 7 positives each; KOR/USA have 9. Their PPVs are 7/10 and 9/10. Selecting everyone gives selection rate 1,TPR 1 and FPR 1 in every country. Selection and equalized-odds gaps are zero, despite detecting none of the negatives. Equal error rates differ from a useful predictive rule.
Repeated years and shared economic shocks violate a simple independent-row interpretation. The common retained 2026-10-08 final vintage does not reconstruct historical publication delays or revisions. These geographic comparisons do not identify personal discrimination or social welfare. Original observations and transformations remain downloadable.
Country · observed growth
Country codes define geographic comparisons. Dependence, shared shocks and the common final vintage limit generalization. Universal test selection gives zero selection/error-rate gaps without distinguishing negatives.
Separate observed data and declared model
Item
Content
All native rows
360
Selected core rows
176
Score
Declared fixed two-feature linear score · not a fitted probability
Candidate cutoffs
2/5 · 1/2 · 3/5
Default costs
FP=1 · FN=2
Cutoff selection
Validation role only · earliest listed exact-cost tie
Attribution reference
Two input means from training-role rows
Interpretation scope
Observed descriptive metrics/function explanation · no causal/population/legal certification
Denominators of frozen roles
Role
Rows
Train
100
Validation
36
Test
40
All validation candidates · never chosen using test labels
Candidate
Cutoff
Validation rows
Mean error cost
Selection gap
EO gap
Selected:1
threshold:2/5
≈0.4Exact value2/5
36
≈0.138889Exact value5/36
0
Undefined
1
threshold:1/2
≈0.5Exact value1/2
36
≈0.333333Exact value1/3
≈0.333333Exact value1/3
Undefined
0
threshold:3/5
≈0.6Exact value3/5
36
≈1.66667Exact value5/3
≈0.111111Exact value1/9
Undefined
0
Group test rates · undefined is not zero · Probability axis 0..1. Selection,TPR,FPR use the same test frame.
Contributions sum to prediction minus its training-reference prediction. Exact efficiency is a property of this function game, not an effect of an actual policy.
개인 사례: 역사적 임금과 선택된 비교 틀Individual case: historical wages and a selected comparison frame
Card 자료의 NLS 남성 코호트 원본3,613행과52개 원 변수를 보존합니다. 필요한 시급·교육·나이·원 black 코드가 관측된3,017행 중, 코드0과1에서 각각120행을 원 순서의 등간격 위치로 골랐습니다. 집단을 충분히 비교하기 위한 의도적 균형 표이며 무작위 표본이나 원 조사 비중을 반영한 인구 추정이 아닙니다. 원 시급 결측596행과 집단별 제외 기록도 유지합니다.
R=5420ed76+5140age76,Y=1{wage76≥500}
Y는 1976년 시급500센트 이상이라는 교육용 기준입니다. 채용 자격이나 연간 소득이 아닙니다. 점수는 원 black 코드를 직접 쓰지 않지만 교육·나이가 집단 구성과 연관될 수 있으므로 집단별 결과가 같아지는 것은 아닙니다. 훈련144행은 설명 기준, 검증48행은 문턱 선택, 시험48행은 고정 선택 뒤의 평가에 사용합니다.
기본 비용에서 검증은 문턱3/5를 고르고 평균 비용3/8을 냅니다. 시험에서 코드0·1은 각각24행입니다. 선택률은7/8과2/3, 실제 양성 비율은17/24와1/3입니다. TPR은16/17과3/4, FPR은5/7과5/8, PPV는16/21과3/8입니다. 선택률 차이는5/24, equalized odds 차이는13/68입니다. 모든 수치는 분모와 함께 읽어야 합니다.
원 binary 코드는 역사적 분류이지 완전한 현대 정체성 정보가 아닙니다. 관측 시급을 조건으로 한 선택과 균형 표집은 비교 대상을 바꿉니다. 이 격차가 차별의 크기나 원인, 교육의 인과적 수익, 현재의 채용 제도 적합성을 추정한 것이라고 말하지 않습니다. 기여도는 같은 고정 점수와 훈련 기준 평균에 대한 설명으로만 읽습니다.
개인 · 역사적 시급
원 black 코드는 역사적 이진 분류이며 완전한 현대 정체성 정보가 아닙니다. 임금 결측 596행은 비취업을 뜻하지 않습니다. 완전 관측자 안에서 균형 선택한 틀이고 원 조사 비중은 쓰지 않습니다. 관측 임금 격차·기여는 채용 차별이나 교육의 인과효과가 아닙니다.
자료와 선언한 모형을 구분
항목
내용
원 관측 전체
3613
선택 핵심 행
240
점수
명시한 두 입력의 고정 선형식 · 확률 추정 아님
후보 문턱
2/5 · 1/2 · 3/5
기본 비용
FP=1 · FN=2
문턱 선택
검증 역할만 · 같은 정확 비용이면 먼저 적은 후보
설명 기준
훈련 역할의 두 입력 평균
해석 범위
관측 기술 통계·함수 설명 · 인과/인구/법적 인증 아님
고정 역할의 분모
역할
원 행 수
훈련
144
검증
48
시험
48
검증 후보 전체 · 시험으로 고르지 않음
후보
문턱
검증 수
평균 오류 비용
선택률 차이
EO 차이
최종 선택 1
threshold:2/5
≈0.4정확값2/5
48
≈0.5정확값1/2
≈0.0416667정확값1/24
≈0.0588235정확값1/17
0
threshold:1/2
≈0.5정확값1/2
48
≈0.479167정확값23/48
≈0.0833333정확값1/12
≈0.117647정확값2/17
0
threshold:3/5
≈0.6정확값3/5
48
≈0.375정확값3/8
≈0.0833333정확값1/12
≈0.0625정확값1/16
1
집단별 시험 비율 · 미정의는 0이 아님 · 확률 축 0~1. 같은 시험 표의 선택률·TPR·FPR입니다.
We retain 3,613 NLS rows and all 52 original variables from the historical male cohort. Among 3,017 rows with relevant observed wage/education/age/black-code fields, choose 120 equally spaced original-order positions within each code 0/1 group. This is a purposeful balanced frame, not random sampling or a survey-weighted population estimate. The 596 missing wages and group-specific exclusions remain preserved.
R=5420ed76+5140age76,Y=1{wage76≥500}
Y is a teaching cutoff of 500 raw hourly cents in 1976, not hiring eligibility or annual income. The score omits direct use of the original black code, but education/age can remain associated with group composition. Training 144 rows define references, validation 48 select a cutoff, and test 48 evaluate the frozen choice.
Default costs select threshold 3/5 at validation cost 3/8. Each code group has 24 test rows. Selection rates are 7/8 and 2/3; prevalences 17/24 and 1/3; TPRs 16/17 and 3/4; FPRs 5/7 and 5/8; PPVs 16/21 and 3/8. The selection gap is 5/24 and equalized-odds gap 13/68. Keep the denominators visible.
The original binary code is a historical classification, not complete contemporary identity information. Observed-wage selection and purposeful balancing alter the comparison population. Gaps do not identify discrimination, education returns or the suitability of current hiring institutions. Contributions describe only this fixed score relative to training-reference means.
Individual · historical hourly wages
The original black code is historical binary coding, not complete contemporary identity information. The 596 missing wages do not establish nonemployment. This is a balanced selection among observed wages, without survey weighting. Neither wage gaps nor contributions identify hiring discrimination or education effects.
Separate observed data and declared model
Item
Content
All native rows
3613
Selected core rows
240
Score
Declared fixed two-feature linear score · not a fitted probability
Candidate cutoffs
2/5 · 1/2 · 3/5
Default costs
FP=1 · FN=2
Cutoff selection
Validation role only · earliest listed exact-cost tie
Attribution reference
Two input means from training-role rows
Interpretation scope
Observed descriptive metrics/function explanation · no causal/population/legal certification
Denominators of frozen roles
Role
Rows
Train
144
Validation
48
Test
48
All validation candidates · never chosen using test labels
Candidate
Cutoff
Validation rows
Mean error cost
Selection gap
EO gap
Selected:1
threshold:2/5
≈0.4Exact value2/5
48
≈0.5Exact value1/2
≈0.0416667Exact value1/24
≈0.0588235Exact value1/17
0
threshold:1/2
≈0.5Exact value1/2
48
≈0.479167Exact value23/48
≈0.0833333Exact value1/12
≈0.117647Exact value2/17
0
threshold:3/5
≈0.6Exact value3/5
48
≈0.375Exact value3/8
≈0.0833333Exact value1/12
≈0.0625Exact value1/16
1
Group test rates · undefined is not zero · Probability axis 0..1. Selection,TPR,FPR use the same test frame.
Test confusion table by group · denominators preserved
Native group
Test rows
TP
FP
TN
FN
black-code:0
24
16
5
2
1
black-code:1
24
6
10
6
2
Conditional rates on the same test frame
Group
Prevalence
Selection
TPR
FPR
PPV
NPV
Accuracy
Brier error
black-code:0
≈0.708333Exact value17/24
≈0.875Exact value7/8
≈0.941176Exact value16/17
≈0.714286Exact value5/7
≈0.761905Exact value16/21
≈0.666667Exact value2/3
≈0.75Exact value3/4
≈0.173989Exact value167029/960000
black-code:1
≈0.333333Exact value1/3
≈0.666667Exact value2/3
≈0.75Exact value3/4
≈0.625Exact value5/8
≈0.375Exact value3/8
≈0.75Exact value3/4
≈0.5Exact value1/2
≈0.30753Exact value295229/960000
Lexical tokens of the selected native observation
Field
Original token
Selected ID
NLS:295
Native group and role
black-code:0 · test
Current native file
actual3613-NLS-original52-fields.csv
One-based data row in current CSV
191
Upstream source row token
191
ed76
12
age76
31
wage76
500
black
0
weight
480445
Both linear contributions · fixed reference and units
Feature
Transformed input
Training mean
Direct weight
Contribution
Prediction
ed76/20
≈0.6Exact value3/5
≈0.636806Exact value917/1440
≈0.8Exact value4/5
≈-0.0294444Exact value-53/1800
≈0.635Exact value127/200
age76/40
≈0.775Exact value31/40
≈0.696701Exact value4013/5760
≈0.2Exact value1/5
≈0.0156597Exact value451/28800
≈0.635Exact value127/200
Contributions sum to prediction minus its training-reference prediction. Exact efficiency is a property of this function game, not an effect of an actual policy.
기업 사례: 모두 미선택이면 동등성은 충분한가Company case: is equal nonselection enough?
UCI Iranian Churn 원본은 고객3,150행과 원 변수14개를 보존합니다. 공식 자료 설명에서 입력은 첫9개월의 합계이고 이탈은12개월 끝의 상태입니다. 실제 달력 날짜, 고객에게 어떤 유지 제안을 했는지와 그 처치 효과는 없습니다. 원 Age Group1~5마다48행씩 등간격 위치로 골라 총240행을 만들며, 원 연령 집단별 분모도 보존합니다.
R=54Complains+5120min(CallFailure,20),Y=Churn
점수는 불만 여부와 공개 한도20으로 잘라 정규화한 통화 실패 수를 사용합니다. 불만의 원인이 무엇인지 추정하지 않으며 기록된 불만을 숨기는 행동의 효과도 아닙니다. 선택 D=1을 가상 연락 대상으로 해석할 수는 있지만 연락의 이득·부담·동의·비용은 관측되지 않은 가정입니다. 점수는 확률을 학습한 것이 아닙니다.
역할별 행 수는 훈련150·검증50·시험40입니다. 기본 비용에서 문턱2/5가 선택되고 검증 평균 비용은3/25입니다. 시험은 연령 집단마다8행인데 모든 점수가 문턱보다 작아 아무도 선택되지 않습니다. 따라서 집단별 선택률과 그 차이는0입니다. 그러나 실제 이탈2행을 놓쳤고 PPV는 모든 집단에서 미정의입니다. 세 집단에는 실제 양성조차 없어 TPR도 미정의이므로 equalized odds 차이는 미정의입니다.
“차이0”이라는 한 숫자로 좋은 정책이라고 결론 내릴 수 없는 실제 사례입니다. 이탈 양성 자체가 드문 작은 시험 표이며, 선택한 균형 틀은 원 모집단의 이탈 비율을 대표하지 않습니다. 제약을 만족하거나 확인하지 못한 이유와 실제 서비스 목적을 따로 검토해야 합니다. 원본 전체와240개 핵심 행의 예측·역할·계보를 함께 확인할 수 있습니다.
기업 · 실제 고객 이탈
원 AgeGroup 코드는 순서가 있는 연령 구간입니다. 균형 선택 표는 원 고객 모집단 비율이 아닙니다. 처음 9개월 입력과 12개월 이탈을 사용하며 실제 연락·처치 효과는 없습니다. 모두 미선택인 시험에서 PPV와 일부 TPR의 미정의를 숨기지 않습니다.
자료와 선언한 모형을 구분
항목
내용
원 관측 전체
3150
선택 핵심 행
240
점수
명시한 두 입력의 고정 선형식 · 확률 추정 아님
후보 문턱
2/5 · 1/2 · 3/5
기본 비용
FP=1 · FN=2
문턱 선택
검증 역할만 · 같은 정확 비용이면 먼저 적은 후보
설명 기준
훈련 역할의 두 입력 평균
해석 범위
관측 기술 통계·함수 설명 · 인과/인구/법적 인증 아님
고정 역할의 분모
역할
원 행 수
훈련
150
검증
50
시험
40
검증 후보 전체 · 시험으로 고르지 않음
후보
문턱
검증 수
평균 오류 비용
선택률 차이
EO 차이
최종 선택 1
threshold:2/5
≈0.4정확값2/5
50
≈0.12정확값3/25
≈0.2정확값1/5
미정의
1
threshold:1/2
≈0.5정확값1/2
50
≈0.12정확값3/25
≈0.2정확값1/5
미정의
0
threshold:3/5
≈0.6정확값3/5
50
≈0.12정확값3/25
≈0.2정확값1/5
미정의
0
집단별 시험 비율 · 미정의는 0이 아님 · 확률 축 0~1. 같은 시험 표의 선택률·TPR·FPR입니다.
The UCI Iranian Churn original retains 3,150 customer rows and 14 original variables. Official documentation describes first-nine-month aggregate covariates and churn status at month 12. Individual calendar dates and actual retention-treatment effects are unavailable. We select 48 equally spaced rows within each native AgeGroup 1..5, retaining original group denominators.
R=54Complains+5120min(CallFailure,20),Y=Churn
This fixed score uses complaints and call failures clipped at the stipulated public cap 20. It estimates neither causes of complaints nor effects of suppressing complaint records. D=1 can be interpreted as a hypothetical contact flag, but benefits, burdens, consent and treatment costs are unobserved assumptions. The score is not fitted as a probability.
There are 150 training,50 validation and 40 test rows. Default costs select threshold 2/5 at validation cost 3/25. Each age group has 8 test rows, and all scores lie below the cutoff. Selection rates and their gap are zero. Yet the rule misses 2 actual churn cases. All PPVs are undefined; three groups lack positives for TPR, so the equalized-odds gap is also undefined.
A zero gap alone therefore cannot establish a good policy. This small test contains few positives, and the balanced frame does not represent population churn prevalence. Examine supported and unsupported constraints separately from service objectives. Original data and predictions, roles and lineage for all 240 core rows remain available.
Company · observed customer churn
Native AgeGroup is an ordinal age band. Purposeful balancing changes the population mixture. Inputs cover months 1–9 and churn month 12; actual contact treatments/effects are absent. Preserve undefined PPV when no cases are selected, and undefined TPR in groups with no positive labels.
Separate observed data and declared model
Item
Content
All native rows
3150
Selected core rows
240
Score
Declared fixed two-feature linear score · not a fitted probability
Candidate cutoffs
2/5 · 1/2 · 3/5
Default costs
FP=1 · FN=2
Cutoff selection
Validation role only · earliest listed exact-cost tie
Attribution reference
Two input means from training-role rows
Interpretation scope
Observed descriptive metrics/function explanation · no causal/population/legal certification
Denominators of frozen roles
Role
Rows
Train
150
Validation
50
Test
40
All validation candidates · never chosen using test labels
Candidate
Cutoff
Validation rows
Mean error cost
Selection gap
EO gap
Selected:1
threshold:2/5
≈0.4Exact value2/5
50
≈0.12Exact value3/25
≈0.2Exact value1/5
Undefined
1
threshold:1/2
≈0.5Exact value1/2
50
≈0.12Exact value3/25
≈0.2Exact value1/5
Undefined
0
threshold:3/5
≈0.6Exact value3/5
50
≈0.12Exact value3/25
≈0.2Exact value1/5
Undefined
0
Group test rates · undefined is not zero · Probability axis 0..1. Selection,TPR,FPR use the same test frame.
Test confusion table by group · denominators preserved
Native group
Test rows
TP
FP
TN
FN
AgeGroup:1
8
0
0
8
0
AgeGroup:2
8
0
0
8
0
AgeGroup:3
8
0
0
7
1
AgeGroup:4
8
0
0
7
1
AgeGroup:5
8
0
0
8
0
Conditional rates on the same test frame
Group
Prevalence
Selection
TPR
FPR
PPV
NPV
Accuracy
Brier error
AgeGroup:1
0
0
Undefined
0
Undefined
1
1
≈0.006Exact value3/500
AgeGroup:2
0
0
Undefined
0
Undefined
1
1
≈0.0022125Exact value177/80000
AgeGroup:3
≈0.125Exact value1/8
0
0
0
Undefined
≈0.875Exact value7/8
≈0.875Exact value7/8
≈0.116475Exact value4659/40000
AgeGroup:4
≈0.125Exact value1/8
0
0
0
Undefined
≈0.875Exact value7/8
≈0.875Exact value7/8
≈0.126262Exact value10101/80000
AgeGroup:5
0
0
Undefined
0
Undefined
1
1
≈0.0110125Exact value881/80000
Lexical tokens of the selected native observation
Field
Original token
Selected ID
churn-row:497
Native group and role
AgeGroup:5 · test
Current native file
actual3150-churn-original14-fields.csv
One-based data row in current CSV
497
Upstream source row token
497
Complains
0
Call Failure
16
Age Group
5
Churn
0
Both linear contributions · fixed reference and units
Feature
Transformed input
Training mean
Direct weight
Contribution
Prediction
Complains
0
≈0.0466667Exact value7/150
≈0.8Exact value4/5
≈-0.0373333Exact value-14/375
≈0.16Exact value4/25
min(CallFailure,20)/20
≈0.8Exact value4/5
≈0.397Exact value397/1000
≈0.2Exact value1/5
≈0.0806Exact value403/5000
≈0.16Exact value4/25
Contributions sum to prediction minus its training-reference prediction. Exact efficiency is a property of this function game, not an effect of an actual policy.
실습 F: 사례·목적·제약을 구분해 읽기Lab F: separate the case, objective and constraints
먼저 국가 사례와 기본 FP비용1,FN비용2를 계산합니다. 검증 후보 비용을 읽고 문턱을 확인한 뒤 시험 집단 표를 보세요. 국가별 선택률1과 오류율의 의미를 설명합니다. 원 기록의 현재 CSV행 번호와 상위 자료의 원 행 토큰은 서로 다른 좌표이므로 모두 출처 이름과 함께 읽습니다. 한 행을 골라도 점수·정답의 원 토큰을 잃지 않습니다.
개인 사례로 바꾸면 균형 표의 역할별 분모와 관측 시급 기준을 읽습니다. 원 관측을 고르고 설명을 볼 때 고정 점수의 기준이 훈련 평균인지 확인하세요. 나이·교육 기여가 임금의 인과효과라고 쓰지 않습니다. 다른 관측과 표·페이지를 읽는 것은 보존한 결과를 확인하는 것이며, 목적 비용이나 제약을 바꾸면 검증 선택을 다시 계산합니다.
기업 사례에서는 모든 시험 행 미선택으로 선택률 차이가0이 되는 결과와 PPV 미정의가 함께 나타납니다. 기본 조건을 확인한 다음 equalized odds 차이 한도를0으로 요구해 보세요. 검증에서 필요한 층이 없거나 어떤 후보도 조건을 만족하지 못하면 선택 없음일 수 있습니다. 그때 시험 표에 옛 선택의 수치를 남겨서 현재 조건의 결과처럼 보이지 않아야 합니다.
마지막 과제는 같은 실제 표에서 서로 다른 목적·집단 정의·인과 가정을 가진 두 해석을 비교하는 것입니다. 어느 해석이 어떤 추가 증거를 필요로 하는지 적습니다. 전체 CSV를 받으면 원본→선택·변환→검증 선택→시험 평가를 재현할 수 있습니다. 출처·단위·결측·범위를 독자가 확인할 수 있어야 실제 학습 자료가 됩니다.
Begin with country data and default FP cost 1,FN cost 2. Read validation candidate losses and the selected cutoff before inspecting test groups. Explain universal selection and its error rates. A row number in the current CSV differs from an upstream source-row token; retain the named file and both coordinates where available.
Switch to the individual case and inspect role denominators and the observed-hourly-wage target. Check that attribution uses training-reference means. Education/age contributions are not causal wage effects. Record/table/page inspection reads retained results; changing costs or constraints recomputes validation selection.
In the company case, zero selection disparity coexists with undefined PPV and no selected test cases. After inspecting defaults, require equalized-odds gap 0. Unsupported validation strata or infeasible candidates can produce no selection. Old policy results must not remain visible as if they belonged to the new condition.
Compare two interpretations of the same observations using different objectives, group definitions or causal assumptions. State what additional evidence each needs. Downloadable CSVs and reproduction code connect sources, selection, transformations, validation choice and final testing. Readers should be able to inspect units, missingness and scope.
학부Undergraduate
학자·본문 영상·선택 읽기Scholars, an in-page video and selected readings
로이드 섀플리는 협력 게임의 배분을 연구한 학자입니다. 이 장의 두 순서 평균은 그 전통의 기여 배분 개념을 명시한 함수 게임에 사용하는 연결입니다. 섀플리와 앨빈 로스의 2012년 경제학상은 안정적 배분과 시장설계에 관한 것이며, 오늘날의 특정 AI 설명을 인증한 상이 아닙니다. Lundberg·Lee의 2017년 연구는 모형 설명을 가법적 기여 체계로 연결한 현대 ML 참고 문헌입니다.
아마르티아 센은 후생경제학과 사회선택을 통해 무엇을 평가하고 서로 다른 이해를 어떻게 비교할지 연구했습니다. 엘리너 오스트롬은 공유 자원을 관리하는 실제 규칙과 경제 거버넌스를 연구했습니다. 이들의 작업을 한 지표의 정답으로 축소하지 말고, 목표·분모·제도·참여라는 질문을 넓히는 읽기로 연결하세요. 공식 수상 소개와 저자의 글을 참고하되 이 장은 이들 사상의 전 과정을 대신하지 않습니다.
팀닛 게브루의 CVPR2020 FATE/CV 튜토리얼 첫 부분은 컴퓨터 비전에서 누가 이익을 얻고 누가 피해를 받는지 묻습니다. 아래에서 본문을 떠나지 않고 재생할 수 있습니다. 첫 시청에는 실제 사용 맥락과 영향 대상을 적고, 두 번째에는 현재 평가 지표가 놓치는 질문을 적으세요. 공식 튜토리얼 일정의 Part1 링크와 같은 영상입니다.
Lloyd Shapley studied allocation in cooperative games. Our averaging of two feature orders connects that tradition to an explicitly specified function-value game. Shapley and Alvin Roth’s 2012 economics prize concerned stable allocations and market design; it did not certify a modern AI explanation. Lundberg and Lee’s 2017 work is a modern ML reference connecting model explanation to additive contributions.
Amartya Sen studied welfare economics and social choice, including evaluative criteria and competing interests. Elinor Ostrom studied actual rules governing shared resources and economic cooperation. Use these connections to broaden questions about objectives, denominators, institutions and participation, rather than treating either scholar as endorsing one metric. This chapter does not replace a full treatment of their work.
Timnit Gebru’s Part 1 of the CVPR2020 FATE/CV tutorial asks who benefits and who is harmed by computer vision in practice. Watch within this page. On a first viewing, identify context and affected parties; on a second, identify questions a chosen metric misses. The player matches the official tutorial schedule’s Part 1 link.
종합 사례 연구: 수치·설명·인과·책임을 연결하기Case study synthesis: connect metrics, explanation, causality and responsibility
국가·개인·기업 중 한 사례를 골라 짧은 결정 기록지를 만드세요. 원본의 한 행을 출처·단위·결측과 함께 설명하고, 고정 점수·검증 후보·선택 비용·시험 분모를 독자가 따라갈 수 있게 적습니다. 집단별 요약 그림과 표를 붙이되 선택률0이나1, 미정의 PPV·TPR을 감추지 않습니다. 원본 다운로드와 재현 코드를 함께 제시합니다.
그 다음 같은 예측에 대해 기준을 바꾼 기여 설명 두 개를 만듭니다. 무엇이 같은지와 왜 설명이 달라지는지를 적으세요. 이어 원 자료와 양립하는 둘 이상의 인과 설명이 있을 수 있는지 논의하고, 검증할 추가 관측이나 설계를 제안합니다. 단순 점수 입력 편집을 실제 정책 효과로 발표하지 않습니다.
서로 다른 검토 역할
역할
중점 질문
수학자
분모·정확식·지원 조건과 경계 예가 맞는가
경제학자
목표·비용·자원 제약·대안과 행동 효과는 무엇인가
관리자
권한·책임·기한·수정·중단 경로가 실행 가능한가
학생·영향 당사자
설명이 이해되며 오류 정정과 이의제기가 가능한가
교수·검토자
관측·가정·검증된 결론과 남은 한계를 구별했는가
역할별로 다른 질문이 나오더라도 곧바로 한 숫자로 합칠 필요는 없습니다. 합의한 내용과 이견, 더 필요한 증거를 남깁니다. 기술자가 비용을 몰래 정하거나 관리자가 정확한 표가 있다는 이유로 모든 우려를 닫는 일을 피합니다. 반대로 수치를 무시한 구호만으로 구체적인 오류를 놓치지 않도록 산술과 원본을 함께 검토합니다.
다음 손글씨 CNN 사례에서는 실제 학습·진단·재현을 끝까지 수행합니다. 이번 장의 습관을 가져가세요. 누가 시험 대상인지, 라벨과 비용이 무엇인지, 설명의 기준은 무엇인지, 수치가 어떤 주장을 뒷받침하는지부터 적습니다. 좋은 연구 결과는 높은 점수 하나가 아니라 독자가 주장과 증거의 연결을 점검할 수 있는 결과입니다.
Choose a country, individual or company case and create a concise decision record. Explain one native row with source, units and missingness, then show the fixed score, validation candidates, costs and test denominator. Include group charts/tables without hiding selection 0/1 or undefined PPV/TPR, plus original downloads and reproduction code.
Produce two contribution explanations of the same prediction using different references. Explain what remains unchanged and why contributions differ. Discuss observationally compatible causal accounts and additional evidence or design needed to distinguish them. Do not present input editing as an estimated policy effect.
Distinct review roles
Role
Main question
Mathematician
Are denominators, identities, support conditions and boundaries correct?
Economist
What are objectives, costs, constraints, alternatives and action effects?
Manager
Are authority, responsibility, deadlines, revision and stopping workable?
Student or affected party
Is the explanation understandable, and can errors be corrected or appealed?
Instructor or reviewer
Are observations, assumptions, established conclusions and remaining limits separated?
Different questions need not be collapsed immediately into one score. Record agreements, disagreements and missing evidence. Avoid hidden technical choices of social costs or managerial closure merely because a precise table exists. Conversely, inspect arithmetic and originals so slogans do not conceal concrete errors.
The next chapter carries real-digit CNN training, diagnosis and replication end to end. Bring these habits: state the test population, labels, costs, reference and claim supported by each quantity. A useful result allows readers to inspect the connection between claims and evidence rather than merely displaying a high score.
영상·학자·함께 읽기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.
집단 비율의 분모와 예외Denominators and qualified exceptions
Barocas, Hardt and Narayanan · selected classification chapter
독립·분리·충족 기준이 각각 무엇을 조건으로 삼는지 읽습니다.Read what independence, separation and sufficiency condition on.
보고 읽은 뒤 답하기Respond after watching/reading선택률 차이0이면 PPV와 TPR/FPR도 같나요?Does zero selection-rate gap imply equal PPV and TPR/FPR?
생각을 점검하는 해설Check your reasoning
아닙니다. 분모와 베이스레이트가 다릅니다. 이 장의 두 집단·완전 분류·선택 없음 예를 각각 계산하세요.No. The denominators and base rates differ. Compute the two-group, perfect-classification and no-selection examples separately.
관측 조건과 개입·반사실 구별Distinguish conditioning, intervention and counterfactuals
Fairness and Machine Learning · selected causal chapter
구조식과 do 연산의 가정을 읽고 같은 관측 분포의 두 모형을 비교합니다.Read structural assignments and do assumptions; compare two models sharing the same observed distribution.
보고 읽은 뒤 답하기Respond after watching/readingShapley 기여가 크면 그 특성을 바꾸는 정책 효과도 큰가요?Does large Shapley credit imply a large effect from intervening on that feature?
생각을 점검하는 해설Check your reasoning
아닙니다. 함수와 기준의 설명 게임은 개입으로 바뀌는 구조법칙을 식별하지 않습니다.No. A function/reference explanation game does not identify structural laws altered by intervention.
모형 카드에 남겨야 할 질문Questions that belong in a model card
Mitchell et al.2019 · official abstract, not fullpaper claim
공식 소개·초록에서 의도한 용도·평가·한계를 문서화하는 목적을 읽습니다.Read the official introduction/abstract on documenting intended use, evaluation and limitations.
보고 읽은 뒤 답하기Respond after watching/reading문서를 잘 작성하면 그 자체로 도입 승인이 되나요?Does a well-written document itself authorize deployment?
생각을 점검하는 해설Check your reasoning
아닙니다. 검증할 주장과 미확인 사실을 드러내는 도구입니다. 제도적 권리·책임·이의 제기 절차는 별도로 검토합니다.No. It makes claims to check and unknown facts visible. Institutional rights, responsibilities and appeal processes still need review.
거버넌스의 반복 구조An iterative governance structure
NIST AI RMF1.0 · selected official core; revision status noted in reading plan
GOVERN·MAP·MEASURE·MANAGE의 상호 연결을 읽습니다.Read the relations among GOVERN, MAP, MEASURE and MANAGE.
보고 읽은 뒤 답하기Respond after watching/reading네 기능은 한 번 체크하고 끝내는 순서인가요?Are the four functions a one-pass ordered checklist?
생각을 점검하는 해설Check your reasoning
아닙니다. 맥락과 운영 변화 속에서 반복하는 활동입니다. 이 장의 유한 산술 결과는 법적 인증을 제공하지 않습니다.No. They recur as contexts and operations change. The finite calculations here do not provide legal certification.
컴퓨터 비전과 영향을 받는 사람들Computer vision and people affected by it
Timnit Gebru · CVPR2020 FATE tutorial
35절에서 학자 소개와 함께 공식 강의를 본문 안에서 재생합니다.Watch the official lecture alongside the scholar introduction in section35.
보고 읽은 뒤 답하기Respond after watching/reading이 장의 집단별 평가표는 어떤 관측 단위와 분모를 사용하나요?Which observational units and denominators are used in this chapter’s group evaluation tables?
생각을 점검하는 해설Check your reasoning
해당 사례의 원자료·평가 집단·분모를 먼저 확인하고, 관측 비교와 도입 판단을 구분해 설명하세요.Identify the case’s original observations, evaluation groups and denominators first; distinguish observed comparisons from deployment decisions.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 네 칸을 직접 세기Count the four cells
기본 네 행에서 문턱1/2를 사용합니다. A와 B의 TP·FP·TN·FN을 구하고 선택률과 정확도를 비교하세요.
At threshold 1/2, count TP,FP,TN,FN for the default A/B rows and compare selection rates with accuracy.
풀이와 확인할 이유Solution and explanation
A에서는 Y=1 점수4/5를 선택하고 Y=0 점수1/5를 미선택하므로 TP=1,TN=1,FP=FN=0입니다. B에서는 음성 점수3/5를 선택하고 양성 점수2/5를 미선택하므로 FP=1,FN=1,TP=TN=0입니다.
두 집단의 선택률은 모두1/2입니다. A 정확도는1이고 B 정확도는0입니다. 선택 비율만 같다는 사실은 같은 오류율이나 같은 선별 품질의 증거가 아닙니다.
A selects its positive score 4/5 and rejects its negative score 1/5, so TP=TN=1 and FP=FN=0. B selects its negative score 3/5 and rejects its positive score 2/5, so FP=FN=1 and TP=TN=0.
Both selection rates are 1/2, but accuracies are 1 and 0. Equal selection rates do not establish equal error rates or selection quality.
2. 같은 분자, 다른 분모Same numerator, different denominators
TP=8,FN=2,FP=12,TN=18에서 TPR·PPV·선택률을 구하세요.
For TP=8,FN=2,FP=12,TN=18, calculate TPR,PPV and selection rate.
풀이와 확인할 이유Solution and explanation
TPR=108=54,PPV=208=52,s=4020=21
TPR은 실제 양성10명 중8명, PPV는 선택20명 중8명입니다. “선택한 사람의80%가 양성”이라고 TPR을 해석하면 틀립니다. 선택한 사람 중 양성은40%입니다.
TPR=108=54,PPV=208=52,s=4020=21
TPR uses the 10 actual positives; PPV uses the 20 selected cases. Interpreting TPR as “80% of selected cases are positive” is wrong: that proportion is 40%.
3. 양성이 없는 집단A group with no positives
집단의 TP=FN=0,FP=2,TN=8입니다. TPR과 FPR은 무엇이며, TPR을0으로 채워도 될까요?
A group has TP=FN=0,FP=2,TN=8. Find TPR/FPR and explain whether TPR can be filled with zero.
풀이와 확인할 이유Solution and explanation
FPR=2/(2+8)=1/5입니다. TPR은0/(0+0)으로 미정의입니다. 실제 양성 중 얼마나 찾아냈는지 물었지만 그 분모가 없습니다.
0으로 채우면 실제 양성을 모두 놓쳤다는 뜻과 혼동됩니다. 이 집단을 포함한 전체 TPR 차이도 미정의로 두고, 표의 음성10명이라는 관측 범위를 보고해야 합니다.
FPR=1/5. TPR is 0/0 and therefore undefined: there are no actual positives to serve as a denominator.
Filling zero confuses missing support with missing every positive. An across-all-groups TPR gap requiring this group is also undefined. Report the observed 10 negatives and the missing stratum.
4. 표집 비중과 목적 비중Sampling and objective weights
원 집단 인원이900명과100명인데 각 집단에서50명씩 골랐습니다. 선택표의 무비중 전체 선택률을 원 모집단의 선택률이라고 써도 될까요?
A population has groups of 900 and 100 people, but the analysis selects 50 from each. Can its unweighted aggregate be called the population selection rate?
풀이와 확인할 이유Solution and explanation
집단별 관측이 각각 대표성을 가진다는 추가 가정이 있어도 원 모집단의 혼합 비율은9/10과1/10이고, 선택표의 혼합 비율은1/2과1/2입니다. 가령 집단별 선택률이1과0이면 선택표 전체는1/2, 원 구성으로 가중한 값은9/10입니다.
일부러 고른50명이 대표적이라는 보장 자체도 별도 문제입니다. 이 장의 균형 선택은 집단 비교를 배우기 위한 틀이며 원 조사 비중을 사용한 모집단 추정이라고 쓰지 않습니다.
Even assuming within-group representativeness, population mixture weights are 9/10 and 1/10, while selected-frame weights are 1/2 each. If group selection rates are 1 and 0, these yield 1/2 and 9/10 respectively.
Purposefully selected rows may also lack within-group representativeness. Our balanced frame teaches comparisons; it is not a survey-weighted population estimate.
5. 아주 작은 양수A very small positive rate
양성·음성 한 행씩 있고 분석 비중이 각각10⁻²⁰⁰와10²⁰⁰입니다. 양성 비율을 정확히 구하고 화면의0과 구별하세요.
One positive and one negative have weights 10⁻²⁰⁰ and 10²⁰⁰. Find exact prevalence and distinguish it from a displayed zero.
풀이와 확인할 이유Solution and explanation
π=10−200+1020010−200=1+104001>0
같은 양의 수로 분자·분모를 나누어 얻은 식이므로 정확합니다. 일반 화면의0은 작은 비영 수를 표현하지 못한 값일 수 있습니다. 표본에 양성이 없어서 생기는0/0과는 다릅니다.
π=10−200+1020010−200=1+104001>0
Dividing numerator and denominator by the same positive weight gives an exact positive fraction. A displayed zero can reflect underflow. It differs from an undefined 0/0 caused by an absent denominator.
6. 임금 결측의 해석Interpreting missing wages
NLS 원본3,613행 중 wage76이596행에서 빠졌습니다. 나머지3,017행으로 만든 결과를 전체 남성의 공정한 채용 결과라고 할 수 있나요?
In 3,613 NLS rows,596 wage76 values are missing. Does an analysis of 3,017 observed wages establish fair hiring outcomes for all men?
풀이와 확인할 이유Solution and explanation
아닙니다. 관측 시급을 이진화한 교육용 결과이며 채용 결정 자료가 아닙니다. 원 자료의 역사적 남성 코호트와 모든 남성도 다른 범위입니다. 임금 결측이 비취업을 뜻한다고 단정할 수도 없습니다.
완전 관측자만 남기는 선택이 집단별로 다르면 비교 대상이 달라집니다. 원본과 집단별 제외 수, 의도적 표본 선택, 실제로 쓰지 않은 조사 비중을 함께 밝혀야 합니다. 그것으로도 전체 채용 공정성이 식별되지는 않습니다.
No. A teaching target derived from observed hourly wages is not a hiring decision. The historical cohort differs from all men, and missing wages do not automatically imply nonemployment.
Differential complete-case selection changes who is compared. Preserve original data, exclusions by group, purposeful selection and the fact that survey weights are unused. These disclosures do not identify overall hiring fairness.
7. 행동의 좋은 면과 나쁜 면Benefits and burdens of an action
고객 이탈 예측 D=1에 대해 “두 집단의 선택률을 높이면 모두 이득”이라는 주장을 평가하세요.
Evaluate the claim that increasing selection rates D=1 in churn prediction benefits both groups.
풀이와 확인할 이유Solution and explanation
D=1이 단순한 위험 표시인지, 할인 연락인지, 서비스 제한인지 먼저 정의해야 합니다. 위험 표시는 그 자체로 고객에게 혜택을 주지 않으며 연락은 원치 않는 부담을 줄 수도 있습니다.
관측 이탈을 잘 예측하는 능력은 행동의 인과효과를 알려 주지 않습니다. 이득·부담의 분포, 동의, 비용과 비교할 대안, 실제 처치 효과에 대한 증거가 필요합니다. 선택률 산술만으로 해당 주장을 확정할 수 없습니다.
Define whether D=1 is a risk flag, an offer or a restriction. A flag is not itself a benefit, and contact may impose an unwanted burden.
Predicting observed churn does not identify an action’s causal benefit. Examine benefits, burdens, consent, costs, alternatives and treatment-effect evidence. Selection-rate arithmetic alone cannot establish the claim.
8. 선택률 식을 사건의 합으로 만들기Derive selection from disjoint events
π=1/5,t=4/5,f=1/5일 때 네 혼동 확률과 선택률을 구하세요.
For π=1/5,t=4/5,f=1/5, find all four confusion probabilities and selection rate.
풀이와 확인할 이유Solution and explanation
TP=254,FN=251,FP=254,TN=2516
네 값의 합은25/25=1입니다. 선택은 TP+FP이므로8/25입니다. 음성의 수가 양성보다 많으므로 FPR은1/5로 작아 보여도 거짓 양성 질량이 참 양성 질량과 같습니다. TPR만 보면 이 구성을 알 수 없습니다.
TP=254,FN=251,FP=254,TN=2516
The cells sum to one. Selection is TP+FP=8/25. Because negatives are more prevalent, even FPR 1/5 creates as much false-positive as true-positive mass. TPR alone does not reveal this composition.
9. 다른 베이스레이트의 PPVPPV under different base rates
두 집단 π가1/5와4/5이고 t=4/5,f=1/5입니다. PPV 차이를 정확히 계산하세요.
Groups have π=1/5 and 4/5 with t=4/5,f=1/5. Calculate the exact PPV gap.
풀이와 확인할 이유Solution and explanation
첫 집단은 (4/25)/(8/25)=1/2입니다. 둘째는 (16/25)/(17/25)=16/17입니다.
maxPPV−minPPV=1716−21=3415
약44.12퍼센트포인트 차이입니다. 두 집단의 TPR/FPR은 이미 같으므로 이 예는 해당 조건에서 equalized odds가 PPV 동등성을 보장하지 않음을 보여 줍니다. 그 자체가 어느 집단의 본질적 성질을 뜻하지는 않습니다.
The first PPV is (4/25)/(8/25)=1/2; the second is (16/25)/(17/25)=16/17.
maxPPV−minPPV=1716−21=3415
This is about 44.12 percentage points. Equalized odds holds by construction but does not ensure PPV parity under these conditions. This does not establish an intrinsic trait of either group.
10. 공통 오류율과 선택 비율Common errors and selection rates
서로 다른 두 베이스레이트에서 공통 t,f와 같은 선택률을 함께 요구하면 어떤 식이 필요한가요?
With unequal prevalences, what follows from requiring common t,f and equal selection rates?
풀이와 확인할 이유Solution and explanation
0=sa−sb=(t−f)(πa−πb)
두 번째 인자가0이 아니므로 t=f여야 합니다. 그러면 선택 확률이 관측 결과 Y에 따라 달라지지 않습니다. 이것은 독립성과 분리성의 동시 요구가 이 설정에서 결과에 대한 구별력을 제한함을 보여 줍니다.
이 결론은 이진 결정과 양의 집단 질량, 선언한 조건부 비율을 전제합니다. 사회적으로 무엇을 선택해야 하는지까지 이 곱셈식으로 정해지지는 않습니다.
0=sa−sb=(t−f)(πa−πb)
The second factor is nonzero, so t=f. Selection probability then does not depend on Y. Requiring independence and separation in this setup limits discrimination between outcome classes.
This calculation assumes a binary decision, positive group mass and the specified conditional rates. It does not determine which social objective ought to be chosen.
11. 완전 분류의 예외The perfect-classification exception
π가1/5와4/5일 때 t=1,f=0을 넣어 equalized odds·PPV 동등성·선택률 동등성을 각각 판정하세요.
For π=1/5 and 4/5 with t=1,f=0, separately evaluate equalized odds, PPV parity and selection-rate parity.
풀이와 확인할 이유Solution and explanation
TPR은 둘 다1, FPR은 둘 다0이므로 equalized odds를 만족합니다. 각 집단 양성 질량이 양수이므로 선택된 것은 모두 양성이며 PPV도 둘 다1입니다.
선택률은 각각π와 같아서1/5와4/5입니다. 선택률 동등성은 만족하지 않습니다. 어떤 기준 두 개의 동시 만족을 보여 주는 예와 모든 기준의 동시 만족을 혼동하지 않아야 합니다.
Both groups have TPR 1 and FPR 0, satisfying equalized odds. Positive prevalence gives positive selected mass, all truly positive, so PPV is one in both groups.
Selection rates equal their prevalences 1/5 and 4/5, so selection parity fails. Demonstrating agreement between two criteria is not demonstrating agreement among all criteria.
12. 아무도 선택하지 않는 정책A policy selecting nobody
t=f=0인 정책의 PPV를1로 정하면 무슨 문제가 생기나요?
What goes wrong if a policy with t=f=0 is assigned PPV 1?
풀이와 확인할 이유Solution and explanation
TP=FP=0이므로 PPV=0/0입니다. 선택한 사례가 하나도 없어 그 안의 실제 양성 비율을 정의할 수 없습니다. 1은 선택 사례가 있으며 모두 양성인 경우의 뜻과 다릅니다.
이 값을 정책 비교에서 완벽한 정밀도로 쓰면 아무에게도 자원을 주지 않는 규칙이 유리해질 수 있습니다. 분모와 미정의를 명시하고, 정책 목적·필요한 적용 범위를 별도로 정해야 합니다.
TP=FP=0 gives PPV 0/0. There is no selected population within which to define a positive fraction. This differs from selecting some cases and having all of them positive.
Calling it perfect precision can make a no-service policy look favorable. Preserve the denominator and undefined value, and separately specify the policy objective and coverage requirements.
13. PPV는 혼합의 단순 평균일까Is mixed-policy PPV a simple average?
같은100명에서 정책1은 TP=10,FP=0, 정책2는 TP=10,FP=30입니다. 각 정책을1/2확률로 골라 적용할 때 기대 표의 PPV를 계산하세요.
On the same 100 cases, policy 1 has TP 10,FP 0 and policy 2 TP 10,FP 30. Mix them with probability 1/2. Find PPV of the expected table.
풀이와 확인할 이유Solution and explanation
기대 TP는10, 기대 FP는15입니다. 따라서 기대 표의 PPV는10/25=2/5입니다. 각 정책 PPV는1과1/4이므로 그 단순 평균5/8과 다릅니다.
두 규칙의 선택 분모가10과40으로 다르기 때문입니다. 이 계산은 기대 혼동 질량의 비율이며, 유한한 한 번의 무작위 운영에서 관측될 PPV가 언제나2/5이라는 뜻은 아닙니다.
Expected TP is 10 and expected FP 15, so the expected-table PPV is 10/25=2/5. The average of individual PPVs 1 and 1/4 is 5/8, a different number.
The selected denominators are 10 and 40. This is a ratio of expected confusion masses, not a guarantee that a single finite randomized rollout realizes PPV 2/5.
14. 대리 변수와 원인의 구별Proxies versus causes
함수 f(x1,x2)=x1이고 관측에서 x1=x2입니다. x2의 직접 계수가0이면 x2는 예측에 관한 정보도 없고 인과 문제도 끝났다고 할 수 있나요?
A model uses f(x1,x2)=x1 and observed data have x1=x2. Does a zero direct coefficient for x2 imply no predictive information and settle causality?
풀이와 확인할 이유Solution and explanation
아닙니다. 함수는 두 번째 입력을 직접 사용하지 않지만 관측된 x2를 알면 x1도 알 수 있어 예측에 관한 정보를 얻습니다. 직접 함수 사용과 조건부 정보는 다릅니다.
x2를 실제로 바꾸었을 때 x1이 따라 바뀌는지는 구조적 인과 가정에 달려 있습니다. 관측의 등식만으로 어떤 개입이 가능한지 또는 어떤 경로가 정당한지 알 수 없습니다. 뒤의 조건부 Shapley와 두 인과 모형 실습이 이 차이를 수치로 보여 줍니다.
No. The function does not directly use its second input, yet observing x2 reveals x1 and therefore the prediction. Direct functional use differs from conditional information.
Whether changing x2 actually changes x1 depends on structural causal assumptions. Observational equality alone identifies neither available interventions nor legitimate pathways. The conditional-Shapley and two-SCM labs make this distinction numerical.
15. 네 연합 값과 두 기여Four coalition values and two contributions
f=1+2x1+3x2+4x1x2, x=(2,1), z=(0,0)에서 Shapley 기여를 모두 계산하세요.
For f=1+2x1+3x2+4x1x2,x=(2,1),z=(0,0), calculate both Shapley contributions.
절편1은 기준 예측에 포함됩니다. 두 기여의 합을 실제 예측16에 맞추기 위해 절편을 임의로 더하면 다른 분해가 됩니다.
The game values are 1,5,4,16. Feature 1 averages increments 4 and 12, yielding 8. Feature 2 averages 3 and 11, yielding 7.
ϕ1+ϕ2=8+7=15=f(x)−f(z)=16−1
The intercept belongs to the reference prediction. Arbitrarily adding it to the two contributions to force a sum of 16 changes the decomposition.
16. 기준만 바꾸기Change only the reference
앞 문제에서 기준을 (1,1)로 바꾸세요. 예측과 설명이 어떻게 달라지나요?
Change only the previous reference to (1,1). What changes in prediction and explanation?
풀이와 확인할 이유Solution and explanation
실제 예측은16으로 그대로이고 기준 예측은1+2+3+4=10입니다. 설명할 차이는6입니다. 두 번째 좌표는 기준과 실제가 같아 두 순서에서 모두 추가 기여0입니다.
첫 좌표의 기여는6, 둘째는0입니다. 비교 대상이 달라졌으므로 이전의8,7과 모순되지 않습니다. 기준을 임의로 고른 것인지 실제 훈련 평균 등으로 고른 것인지 문서화해야 합니다.
The actual prediction remains 16, while the reference prediction becomes 10. The difference to explain is 6. Feature 2 matches its reference, contributing zero in either order.
Contributions are 6 and 0. A changed comparison does not contradict the earlier 8 and 7. Document whether the reference is arbitrary or derived from a training frame.
17. 영계수의 조건부 정보Conditional information from a zero coefficient
동일 비중 배경 (0,0),(1,1), f=x1, x=(1,1)에서 주변 치환과 조건부 기여를 비교하세요.
With equal background (0,0),(1,1),f=x1,x=(1,1), compare marginal and conditional contributions.
풀이와 확인할 이유Solution and explanation
주변 치환에서는 (v∅,v1,v2,v12)=(1/2,1,1/2,1)이므로 기여는1/2,0입니다. 조건부에서는 X2=1도 X1을 알려 주어 값이(1/2,1,1,1)이 됩니다.
조건부 기여는1/4,1/4입니다. 함수가 두 번째 입력을 직접 사용한다는 뜻이 아니라 이 배경에서 두 번째 입력이 정보를 전달한다는 뜻입니다. 실제로 X2를 바꾸면 X1이 바뀌는지는 별도의 인과 가정입니다.
Marginal game values (1/2,1,1/2,1) give contributions 1/2 and 0. Conditioning instead gives (1/2,1,1,1), since X2=1 reveals X1.
Conditional contributions are 1/4 each. This describes information in the background, not direct use of the second input by the function. Whether intervening on X2 changes X1 is a separate causal question.
18. 미지원 조건을0으로 채우지 않기Do not fill unsupported conditioning with zero
앞 배경에서 x=(2,2)의 조건부 연합값을 요구하면 왜 문제가 생기나요?
Why is the conditional game unsupported at x=(2,2) under the previous background?
풀이와 확인할 이유Solution and explanation
X1=2 또는 X2=2를 만족하는 배경 질량은0입니다. 조건부 평균의 분모가0이므로 값이 정의되지 않습니다. 함수 f(2,2)=2를 계산할 수 있는 것과는 다른 문제입니다.
0을 채우거나 최근접 배경행을 사용하면 다른 게임을 만든 것입니다. 그런 근사 또는 모형화가 필요하다면 방법과 가정을 새로 설명해야 하며 원래의 정확 경험적 조건부 평균이라고 표시하지 않습니다.
No background mass has X1=2 or X2=2, so the conditional denominator is zero. This differs from evaluating the defined function f(2,2)=2.
Filling zero or using nearest neighbors constructs another game. Any such approximation needs an explicit method and assumptions; it is not the original exact empirical conditional mean.
19. 끝점 기울기와 전체 차이Endpoint gradients and a finite difference
기본 다항식의 x=(2,1)에서 기울기를 구하고 gradient×input과 Shapley 분해를 비교하세요.
Find the example polynomial’s gradient at (2,1), then compare gradient×input with the Shapley decomposition.
풀이와 확인할 이유Solution and explanation
∇f(2,1)=(2+4⋅1,3+4⋅2)=(6,11)
기울기×입력은12,11로 합23입니다. Shapley 기여8,7의 합15와 다릅니다. 상호작용8을 두 끝점 곱이 각각 포함하여 중복 계산했습니다.
기울기가 틀린 것이 아니라 국소 미분이라는 질문과 기준 대비 전체 차이라는 질문이 달랐습니다. 설명 도구의 이름만 바꾸어 같은 양이라고 취급하면 안 됩니다.
∇f(2,1)=(2+4⋅1,3+4⋅2)=(6,11)
Gradient×input gives 12 and 11, summing to 23 rather than the Shapley sum 15. Endpoint products count the interaction 8 twice.
The gradient is not wrong; it answers a local derivative question rather than a reference-relative finite-difference question. Different explanation tools need not represent the same quantity.
20. 단위를 바꾸면 중요도가 바뀔까Rescaling units and importance
f=2x1+3x2에서 새 좌표 u1=10x1을 쓰세요. 계수·기울기와 기준 대비 첫 좌표 기여를 비교하세요.
For f=2x1+3x2, introduce u1=10x1. Compare the coefficient/gradient and first-feature contribution relative to a correspondingly rescaled reference.
풀이와 확인할 이유Solution and explanation
같은 함수는 f=(1/5)u1+3x2입니다. 첫 좌표 기울기는2에서1/5로10분의1이 됩니다. 단위가 더 작아졌기 때문입니다.
51(u1−u1,0)=5110(x1−z1)=2(x1−z1)
기준도 같이 바꾸면 첫 좌표 기여는 유지됩니다. 계수 크기와 일관된 기준 대비 기여는 단위 변화에 대한 성질이 다릅니다.
The same function is f=(1/5)u1+3x2, so the first-coordinate gradient divides by ten from 2 to 1/5.
51(u1−u1,0)=5110(x1−z1)=2(x1−z1)
With a consistently transformed reference, the contribution stays unchanged. Coefficient magnitude and reference-relative contribution have different unit behavior.
21. 설명에서 처방으로 건너뛰기Jumping from explanation to a prescription
나이 기여가 양수라는 이유로 “나이를 줄이면 임금이 낮아지므로 나이를 늘려라”라고 처방할 수 있나요?
A positive age contribution appears in a wage score. Does it justify prescribing an increase in age to improve wages?
풀이와 확인할 이유Solution and explanation
나이 기여는 정한 모형과 기준에서 점수 차이를 분해한 값입니다. 나이를 마음대로 바꾸는 행동이 실제로 가능한지도 먼저 문제이며, 모형 입력을 바꾼 예측 차이는 실제 임금의 인과효과가 아닙니다.
시간 경과와 함께 경험·경기·건강·기회 등이 변할 수 있고 그 관계는 점수식에 들어 있지 않습니다. 가능한 행동, 처치 효과의 식별 가정, 비용과 제약을 따로 검토해야 합니다. 기여도는 그런 처방의 충분한 근거가 아닙니다.
An age contribution decomposes a score relative to a reference. Age is not freely actionable, and changing a model input does not estimate a causal effect on actual wages.
Experience, economic conditions, health and opportunities can change with time. Their relationships are not established by this score formula. Feasible actions, causal identification, costs and constraints need separate evidence.
사슬에서는 X XOR V, 공통 원인에서는 U XOR V를 사용하지만 관측에서 X=U이므로 같은 값입니다. 이 관측 확률만으로 둘을 구별할 수 없습니다.
Ordinary X=U requires U=1, and Y=0 then requires V=1. Independence gives probability(1/2)(1/4)=1/8.
The chain uses X XOR V and the fork U XOR V, but observed X=U makes them identical here. This probability cannot distinguish the structures.
23. 관측 차이는 무엇을 알려 주나What does the observational difference establish?
기본 모형에서 E[Y|X1]−E[Y|X0]를 구하고 이것이 항상 평균 개입 효과인지 판단하세요.
Compute E[Y|X1]−E[Y|X0] in the default example and decide whether it always equals an intervention effect.
풀이와 확인할 이유Solution and explanation
43−41=21
X는 Y 예측에 도움이 되는 관측 연관을 갖습니다. 사슬의 평균 개입 효과도1/2이지만 공통 원인의 평균 효과는0입니다.
같은 관측 차이가 서로 다른 구조에서 나오므로 관측 차이만으로 인과효과가 항상1/2이라고 결론 낼 수 없습니다. 어느 구조가 맞는지에 대한 추가 근거가 필요합니다.
43−41=21
X carries predictive association. The chain’s average intervention effect is also 1/2, while the fork’s is zero.
Since both structures generate the same observed difference, that difference alone does not identify an effect of 1/2. Additional evidence about structure is necessary.
24. do에서 U를 다시 뽑는가Does do recondition U?
공통 원인 모형에서 do(X=1)을 했을 때 U도1로 고정해야 한다는 주장을 평가하세요.
In the fork model, evaluate the claim that do(X=1) must also set U=1.
풀이와 확인할 이유Solution and explanation
틀립니다. do는 X:=U 대입을 X:=1로 바꾸며 U의 원래 분포를 보존합니다. 관측X=1로 조건을 걸면 U=1을 알게 되지만 대입을 강제로 바꾸는 것과는 다릅니다.
따라서 p=1/2,q=1/4에서 Y=U XOR V의 평균은1/2 그대로입니다. U를1로 제한하여 얻는3/4는 조건부 관측 평균이지 이 개입의 평균이 아닙니다.
It does not. Replacing X:=U with X:=1 preserves the prior distribution of U. Conditioning on observed X=1 would reveal U=1, which is a different operation.
At p=1/2,q=1/4, Y=U XOR V therefore retains mean 1/2. Restricting U=1 produces the observational conditional mean 3/4, not this intervention mean.
25. 뒤집힘이 절반일 때When flip probability is one half
q=1/2이면 두 구조의 평균 개입 효과는 무엇인가요? 구조가 같아졌다고 말할 수 있나요?
At q=1/2, what are the two average effects? Does agreement mean the structures are identical?
풀이와 확인할 이유Solution and explanation
사슬의 효과1−2q는0, 공통 원인의 효과도0입니다. 두 모형의 개입 평균은 모두1/2입니다.
이 특정 매개변수에서 평균 효과가 같다는 사실이 대입 구조가 같아졌다는 뜻은 아닙니다. 관측 증거로 V를 추론한 개별 대상의 반사실은 여전히 달라질 수 있습니다. 평균과 개별 구조를 구별해야 합니다.
The chain effect 1−2q is zero, as is the fork effect. Both interventional means are 1/2.
Agreement of average effects at one parameter value does not make assignments identical. After abducing a unit’s V from facts, individual counterfactuals can still differ. Separate averages from unit-level structure.
26. 같은 대상의 두 반사실Two counterfactuals for one unit
기본 p,q에서 X=0,Y=0을 관측했습니다. do(X=1) 뒤의 개별 Y를 두 모형에서 구하세요.
Under default p,q, observe X=0,Y=0. Find the unit’s Y after do(X=1) in each model.
풀이와 확인할 이유Solution and explanation
관측에서 U=X=0, V=X XOR Y=0입니다. 같은 외생 상태를 유지하며 X의 대입만 바꿉니다.
사슬에서는 Y=1 XOR0=1, 공통 원인에서는 Y=0 XOR0=0입니다. 사실과 예측이 같아 보였던 두 구조라도 같은 사람의 다른 행동 결과는 다릅니다. 이는 실제 사람에게 관측되지 않은 결과를 확인했다는 주장이 아니라 가정한 모형의 반사실 계산입니다.
Abduction gives U=X=0 and V=X XOR Y=0. Keep these fixed and change only the X assignment.
The chain gives 1 XOR 0=1; the fork gives 0 XOR 0=0. These are model-specific counterfactual calculations, not observed alternative outcomes for an actual person.
27. 관측 지지집합 밖의 행동Actions outside observed support
p=q=0인 모형에서 do(X=1)은 계산할 수 있는데 관측X=1,Y=1은 왜 거절하나요?
With p=q=0, why is do(X=1) computable while evidence X=1,Y=1 is rejected?
풀이와 확인할 이유Solution and explanation
평상시 U=V=0이므로 관측 가능한 것은 X=Y=0뿐입니다. X=1,Y=1이라는 증거는 확률0이라 그 조건으로 외생 분포를 추론할 수 없습니다.
반면 do(X=1)은 구조 대입을 바꾼 새 세계입니다. 알려진 구조를 가정하면 그 세계를 계산할 수 있습니다. 사슬은Y1, 공통 원인은Y0입니다. 관측에서 구조를 알아냈다는 뜻이 아니라 구조를 이미 가정했기 때문에 나온 답입니다.
Ordinary U=V=0 permits only observed X=Y=0. Evidence X=1,Y=1 has probability zero and cannot support conditional abduction.
do(X=1) defines a new assignment. Under a stipulated known structure it remains computable: chainY 1, forkY 0. The answer comes from assuming structure, not from learning it solely from unsupported observations.
28. 예측 설명을 인과 증거로 쓰기Using predictive explanations as causal evidence
두 모형은 관측X,Y가 같습니다. 그 표에 예측 모형을 맞추고 같은 Shapley 값을 얻었다면 구조를 구별할 수 있나요?
Both structures have the same observed X,Y. If the same predictor and Shapley values are obtained, does that distinguish the structures?
풀이와 확인할 이유Solution and explanation
아닙니다. 동일 관측 분포와 같은 함수·같은 설명 게임을 사용하면 같은 기여도가 나올 수 있습니다. 그것은 예측 함수의 질문에 대한 일치입니다.
두 구조의 do 효과와 개별 반사실은 다를 수 있습니다. 구조를 구별하려면 설명 막대의 정확성 외에 인과 가정을 정당화하는 추가 자료·설계·분야 지식이 필요합니다. 설명의 합 보존은 인과 식별의 대체물이 아닙니다.
No. Identical observations, predictor and explanation game can yield identical contributions. That agreement concerns the predictive function.
Intervention effects and individual counterfactuals can still differ. Identification requires further evidence, design or substantive justification for causal assumptions. Explanation efficiency does not substitute for causal identification.
29. 단위 비용의 후보 순위Rank candidates with unit costs
네 검증 행의 FP,FN이 후보 순서대로(2,0),(1,1),(0,1)입니다. 두 비용1일 때 평균 비용과 선택을 구하세요.
For four validation rows, candidate(FP,FN) pairs are(2,0),(1,1),(0,1). Find unit-cost mean losses and the selected candidate.
풀이와 확인할 이유Solution and explanation
(L1,L2,L3)=(42,42,41)
세 번째 후보가 유일한 최소입니다. 네 행을 공통 분모로 유지해야 합니다. 후보마다 선택한 행 수로 비용을 나누면 다른 목적이 되어 이 비교와 달라집니다.
(L1,L2,L3)=(42,42,41)
The third candidate uniquely minimizes cost. Keep all four validation rows as the common denominator. Dividing by selected counts would define another objective.
30. 목적을 바꾸면 선택도 바뀐다Changing the objective changes selection
앞 문제에서 FN 비용만4로 바꾸세요. 이 변경은 실제 연락 효과를 추정한 것인가요?
Change only FN cost to 4. Find the ranking and explain whether this estimates a contact effect.
풀이와 확인할 이유Solution and explanation
(L1,L2,L3)=(42,45,44)
첫 번째 후보가 최소입니다. 놓친 양성을 더 비싸게 보는 선언한 목적이 바뀌었습니다. 연락을 실제로 시행한 처치·반사실 자료를 사용한 것이 아니므로 연락의 인과효과를 추정한 것은 아닙니다.
(L1,L2,L3)=(42,45,44)
The first candidate now minimizes cost. This changes the declared valuation of missed positives; it uses no treatment/counterfactual evidence about actual contact effects.
31. 제약과 동률Constraints and ties
단위 비용으로 복원하고 선택률 차이0을 요구하면 왜 첫 후보가 선택되나요?
Restore unit costs and require zero selection-rate gap. Why is the first candidate chosen?
풀이와 확인할 이유Solution and explanation
세 번째 후보는 A에서1/2,B에서0을 선택하므로 차이1/2로 제약을 위반합니다. 첫 후보는 모두 선택하여 양 집단 비율1, 둘째는 각각 절반을 선택하여 양 집단 비율1/2이므로 둘 다 차이0입니다.
첫·둘째 비용은 모두1/2입니다. 미리 정한 “같은 정확 비용이면 먼저 적은 후보” 규칙 때문에 첫 후보가 선택됩니다. 이 규칙 자체도 문서에 남겨야 합니다.
Candidate 3 selects half of A and none of B, producing gap 1/2. Candidate 1 selects everyone and candidate 2 half of each group; both have gap 0.
Both feasible costs are 1/2. The prespecified earliest-listed exact tie rule selects candidate 1. Document the tie rule as part of the policy.
32. 지원되지 않은 제약An unsupported constraint
한 집단에 양성이 전혀 없는데 equalized odds 차이0을 요구했습니다. TPR을0으로 채우면 안 되는 이유를 정책 선택 관점에서 설명하세요.
A group has no positives and an equalized-odds gap 0 constraint is required. Why not fill its TPR with zero?
풀이와 확인할 이유Solution and explanation
필요한 분모가 없어 해당 집단의 TPR을 확인할 수 없습니다. 0으로 채우면 부재한 증거를 실제 성능값으로 바꾸어 제약을 통과하거나 탈락시킬 수 있습니다.
실습은 그 조건을 확인한 가능한 후보로 세지 않습니다. 전체가 불가능하면 선택 없음으로 남깁니다. 자료 수집이나 기준 변경은 별도의 명시적 판단이며 숨은 기본값으로 처리하지 않습니다.
The group’s TPR lacks a denominator. Filling zero invents a performance value that can determine feasibility without supporting evidence.
The lab does not count the candidate as verified feasible. If all fail, no policy is selected. New data or a changed criterion requires an explicit decision rather than a hidden default.
33. 시험 라벨을 뒤집는 점검A test-label-flip check
시험 행의 정답만 바꾸었는데 선택된 문턱과 모든 검증 후보 비용이 달라졌다면 어떤 문제를 의심하나요?
If changing only test labels changes the chosen threshold or validation candidate costs, what problem should be suspected?
풀이와 확인할 이유Solution and explanation
선택 과정에 시험 라벨이 들어가는 누수를 의심합니다. 점수·검증 표·후보·비용이 같으면 검증 후보 비용과 선택 문턱은 그대로여야 합니다.
시험 성적은 바뀌어야 하므로 모든 결과가 같아야 하는 것은 아닙니다. “검증 선택 불변”과 “시험 평가 변화”를 구분하는 검사가 중요합니다. 실제 사례에서도 이 구분으로 선택 경계를 점검합니다.
Suspect leakage of test labels into selection. With unchanged scores, validation rows, candidates and costs, candidate validation losses and selected threshold should be unchanged.
Test diagnostics should change, so this does not require every output to stay fixed. Separate invariant validation selection from changing held-out evaluation.
34. 인간 검토라는 이름의 한계Limits of a human-review label
자동 결정 뒤 담당자가 확인 버튼만 누릅니다. “인간이 검토하므로 책임 문제가 해결됐다”고 쓸 수 있나요?
A staff member only clicks Confirm after an automated decision. Does human review thereby solve accountability?
풀이와 확인할 이유Solution and explanation
검토자가 필요한 원 자료와 한계 설명을 읽을 수 있는지, 충분한 시간과 전문성을 갖는지, 결정을 바꾸거나 중단할 권한이 있는지 알 수 없습니다. 버튼의 존재만으로 실질적 검토가 보장되지 않습니다.
역할·정보·변경 권한·이의제기·처리 기한과 실제 수정 기록을 확인해야 합니다. 인간 판단 역시 오류가 가능하므로 그 절차의 성과와 영향을 함께 평가합니다.
A confirmation button does not establish access to evidence, expertise, time or authority to override or stop a decision.
Examine responsibilities, information, authority, appeals, response times and actual revisions. Human decisions can also err, so assess the procedure’s outcomes and impacts.
35. 문서화와 승인 구분하기Documentation versus approval
정확값·원본CSV·모형카드가 모두 있으면 운영 적합성이 자동 승인되나요?
Do exact values, original CSVs and a model card automatically approve operational use?
풀이와 확인할 이유Solution and explanation
산술과 출처를 재현하는 데 도움이 되지만 목적·측정·대표성·인과 효과·권리·운영 역량이 적절한지는 별도 문제입니다. 정확히 재현되는 잘못된 목표도 가능합니다.
의도한 사용과 금지·제한 범위, 확인된 것과 확인하지 못한 것, 담당자와 재검토 조건을 함께 남겨야 합니다. 카드나 수치 조건은 판단의 증거이지 자동 승인 표지가 아닙니다.
They support reproduction of arithmetic and provenance, but do not settle objectives, measurement, representativeness, causal benefits, rights or operating capacity. An inappropriate objective can be reproduced exactly.
Record intended use, limits, established and missing evidence, responsibility and review triggers. Documentation is evidence for judgment, not an automatic approval badge.
36. 국가의 모든 행 선택All country rows selected
기본 시험에서 국가별 선택률1,TPR1,FPR1입니다. equalized odds 차이0을 좋은 예측의 충분조건이라고 할 수 있나요?
Country test selection rates,TPR and FPR are all 1. Is zero equalized-odds gap sufficient for good prediction?
풀이와 확인할 이유Solution and explanation
모두 선택하는 규칙은 어느 집단에서도 음성을 구별하지 못합니다. 오류율은 같지만 FPR1이라는 큰 오류를 함께 가질 수 있습니다. 기본 시험의 원 양성은 총32/40이므로 정확도는4/5입니다.
PPV도 DEU·JPN의7/10과 KOR·USA의9/10으로 다릅니다. 어떤 성질이 같은지와 그 수준이 유용한지를 구분하고, 표의 기술 통계를 실제 경제 정책 판단으로 확대하지 않습니다.
Selecting everyone distinguishes no negatives. Equal error rates can include the poor value FPR 1. With 32 positives among 40 rows, accuracy is 4/5.
PPVs still differ:7/10 in DEU/JPN versus 9/10 in KOR/USA. Separate equality of a property from its usefulness, and descriptive technical results from economic-policy judgments.
37. 개인 사례의 선택률 격차Selection disparity in the individual case
The individual test selects 21/24 in code 0 and 16/24 in code 1. Find the gap and state its scope.
풀이와 확인할 이유Solution and explanation
2421−2416=245
약20.83퍼센트포인트입니다. 역사적 임금 완전 관측자에서 의도적으로 균형 선택한 시험48행과 고정 점수·검증 문턱에 관한 기술 통계입니다.
조사 비중을 반영한 모집단 추정이나 차별의 인과적 크기는 아닙니다. 원 코드의 역사적 뜻, 시급 결과와 채용 자격의 차이, 결측 선택을 함께 적어야 합니다.
2421−2416=245
The gap is about 20.83 percentage points on a purposefully balanced 48-row historical observed-wage test frame with a fixed score and validation-selected cutoff.
It is neither a survey-weighted population estimate nor a causal measure of discrimination. Preserve historical-code meaning, missingness selection and the distinction between wages and hiring qualifications.
38. 두 오류율 중 큰 격차The larger error-rate gap
개인 시험의 TPR은16/17과3/4,FPR은5/7과5/8입니다. equalized odds 차이를 계산하세요.
Individual test TPRs are 16/17,3/4 and FPRs 5/7,5/8. Compute the equalized-odds gap.
풀이와 확인할 이유Solution and explanation
ΔTPR=1716−43=6813,ΔFPR=75−85=565
13/68≈0.19118이5/56≈0.08929보다 크므로 최대 차이는13/68입니다. TPR은 실제 양성17명·8명을, FPR은 실제 음성7명·16명을 분모로 합니다.
같은24명씩이라는 집단 크기가 같다고 모든 지표의 분모도 같은 것은 아닙니다. 각 층의 관측 수를 함께 보고 작은 표의 불확실성을 기억해야 합니다.
ΔTPR=1716−43=6813,ΔFPR=75−85=565
The larger gap is 13/68≈0.19118 rather than 5/56≈0.08929. TPR denominators are 17 and 8 positives; FPR denominators are 7 and 16 negatives.
Equal group sizes of 24 do not imply equal denominators for every metric. Report stratum counts and retain small-frame uncertainty.
39. 아무도 선택하지 않은 기업 시험A company test selecting nobody
기업 시험40행에서2행이 실제 이탈이지만 모두 미선택입니다. 정확도·선택률 차이·PPV·TPR 범위를 설명하세요.
Among 40 company test rows,2 actually churn but none is selected. Describe accuracy,selection disparity,PPV and TPR support.
풀이와 확인할 이유Solution and explanation
정확도는38/40=19/20입니다. 모든 연령 집단 선택률이0이어서 차이0입니다. 그러나 선택한 행이 없어 PPV는 모두 미정의입니다.
양성이 있는 두 집단에서는 TPR0, 양성이 없는 세 집단에서는 TPR이 미정의입니다. 따라서 전체 집단을 요구하는 equalized odds 차이도 미정의입니다. 높은 정확도와 차이0이 서비스의 유용성을 자동 증명하지 않습니다.
Accuracy is 38/40=19/20 and every age-group selection rate is zero, giving selection gap 0. PPV is undefined everywhere because no cases are selected.
TPR is zero in the two groups with positives and undefined in the three without positives. Across-all-groups equalized-odds gap is therefore undefined. High accuracy and zero selection gap do not automatically establish service usefulness.
40. 설명 기준의 누수Leakage in an explanation reference
시험 입력까지 포함한 평균을 설명 기준으로 쓰면 예측 성능의 누수와 같은가요? 어떤 구별을 해야 하나요?
If a reference mean includes test inputs, is it the same as predictive-performance leakage? What distinctions matter?
풀이와 확인할 이유Solution and explanation
기준이 오직 사후 설명에만 쓰이고 점수·선택·모형을 전혀 바꾸지 않는다면 예측 성능이 자동으로 바뀌는 것은 아닙니다. 그러나 “훈련 자료 기준 설명”이라는 주장은 거짓이 되며, 배포 당시 이용 가능한 기준인지도 달라집니다.
설명을 보고 모형·문턱을 다시 고르면 시험 정보가 선택에 들어갈 수 있습니다. 이 장은 혼동을 피하려고 기준을 훈련 역할에서만 고정합니다. 설명 범위와 예측 선택 경계를 각각 문서화해야 합니다.
If the reference is purely post-hoc and never changes scores, choices or models, predictive performance need not change. But it is no longer a training-reference explanation, and availability at deployment can differ.
Using those explanations to revise models or cutoffs can introduce test information into selection. We freeze references using training-role rows and document both explanation scope and predictive-selection boundaries.
41. 영상에서 자기 사례로 질문 옮기기Transfer a video question to a case
본문 영상의 “누가 이익을 얻고 누가 피해를 받는가”를 고객 사례에 적용해 데이터가 답한 질문과 답하지 못한 질문을 나누세요.
Apply the in-page video’s benefits/harms question to the customer case. Separate questions the data answer from those they cannot answer.
풀이와 확인할 이유Solution and explanation
관측된 이탈, 불만·통화 실패 점수, 선택표에서의 오류 분포는 계산할 수 있습니다. 연령 집단별 분모와 실제 원본을 확인할 수도 있습니다.
연락이 이탈을 줄이는지, 원치 않는 연락의 부담, 고객의 동의, 할인 배분의 정당성, 새 운영 환경의 효과는 이 원 자료만으로 답하지 못합니다. 처치·당사자 의견·운영 자료와 적절한 식별·평가 설계가 더 필요합니다.
The files support descriptive churn, complaint/call-failure scores, frame-specific errors and age-group denominators.
They do not alone establish contact effects, unwanted-solicitation burdens, consent, justified offer allocation or performance in a new environment. Additional treatment evidence, affected-party input and suitable operational evaluation are needed.
42. 종합 판단 기록의 마지막 문장The final sentence of a decision record
“우리 시스템은 공정하고 설명 가능하며 인과적으로 효과가 있다”를 이 장 실제 사례의 증거에 맞게 다시 쓰세요.
Rewrite “our system is fair, explainable and causally effective” to match evidence in an actual case from this chapter.
풀이와 확인할 이유Solution and explanation
예: “선택한 보존 표에서 명시한 점수와 검증 문턱의 집단별 오류·선택 비율을 계산하고, 훈련 평균을 기준으로 한 두 입력 기여를 정확히 분해했다.” 여기까지는 실제 수행한 계산을 말합니다.
이어 “균형 선택과 결측·시간 의존성 때문에 모집단·운영 환경으로의 일반화에는 한계가 있으며, 점수 기여는 인과효과가 아니다. 실제 행동의 이익·부담·권리·책임과 중단 조건은 추가 검토가 필요하다.”라고 남깁니다. 주장과 증거를 연결하면서 미확인 결론을 제외한 문장이 더 검토 가능합니다.
For example: “On this selected retained frame, we computed group errors and selection rates for a stated score and validation-selected cutoff, and exactly decomposed two-feature contributions relative to training means.” This states performed calculations.
Then add: “Purposeful balancing, missingness and dependence limit population/operational generalization; contributions are not causal effects. Action benefits, burdens, rights, responsibility and stopping conditions need further review.” A claim tied to evidence is more reviewable than unsupported blanket approval.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.