DATA-18 · DATA SCIENCE

고객 이탈의 예측 시점·누수·인수인계Churn prediction timing, leakage and handover

여덟 행의 손계산에서 실제 3,150행의 잠근 평가까지From eight hand-calculated rows to locked evaluation on 3,150 actual records

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

기초Foundations

1. 여덟 행으로 나중 결과를 묻는다1. Start with eight rows and a question about a later outcome

설명용 고객 여덟 명의 기록을 아래처럼 나눕니다. 불만 c와 상태 z는 예측할 때 사용할 두 입력 코드이고, y=1은 나중에 이탈했다는 정답입니다. 앞 네 행으로 숫자 만드는 규칙을 배우고, 다음 두 행으로 결정 문턱을 고른 뒤, 마지막 두 행은 그 선택을 잠근 다음에만 채점합니다.

여덟 행 전체가 설명용 · z의 0·1은 실제 자료의 status 1·2와 별도 코드
가정 원행역할불만 c상태 z나중 정답 y
t1학습000
t2학습010
t3학습101
t4학습111
v1검증001
v2검증110
s1시험000
s2시험111

표에 정답까지 보이는 것은 계산을 확인하기 위해서입니다. 실제 예측 순간에 그 정답을 입력으로 받는다는 뜻은 아닙니다. 어떤 단계에서 어느 열을 썼는지 기록하는 것이 이 장의 출발입니다.

마지막 실제 사례에서는 익명 통신 자료 3,150행으로 같은 절차를 직접 추적합니다. 입력의 측정 기간, 확률 적합, 문턱 선택, 시험 채점, 다음 담당자에게 넘길 설명을 하나의 경로로 연결합니다.

Divide eight illustrative customer rows as shown. Complaint c and status z are two input codes; y=1 means the customer later churned. Use four rows to fit a numerical rule, two to choose a decision threshold, and only then score the last two after locking that choice.

All eight rows are illustrative · toy status 0/1 differs from actual status codes 1/2
Assumed rowRoleComplaint cStatus zLater outcome y
t1Train000
t2Train010
t3Train101
t4Train111
v1Validation001
v2Validation110
s1Test000
s2Test111

Showing outcomes lets us check the arithmetic. It does not make those outcomes available as prediction-time inputs. Track which columns each stage actually uses.

The actual case later follows the same procedure on 3,150 anonymous telecom records. Connect input timing, probability fitting, threshold choice, test scoring and the explanation passed to another analyst.

기초Foundations

2. 학습·검증·시험에 서로 다른 일을 맡긴다2. Give training, validation and test data different jobs

학습 네 행에서 정한 확률을 검증 두 행에 적용합니다. 검증 정답을 보면 어떤 문턱이 이번 가정 벌점에 유리한지 고를 수 있습니다. 시험 두 행은 그 문턱을 다시 고르는 데 사용하지 않고 선택한 절차를 채점합니다.

정답을 영원히 숨기는 것이 아니라 사용 순서를 고정한다
역할이번에 하는 일정답을 쓰는 단계
학습네 입력 셀의 확률 적합적합
검증고정 후보 중 문턱 선택선택
시험잠근 확률·문턱 채점최종 보고

행 이름이 다르다고 다른 고객 또는 독립 표본임이 증명되는 것은 아닙니다. 지금은 서로 겹치지 않는 설명용 원행을 선언했습니다. 실제 자료의 고객 식별 정보와 시간 정보는 뒤에서 별도로 읽습니다.

시험을 본 뒤 규칙을 고쳤다면 그것은 새 학습 절차입니다. 수정 자체를 숨길 필요는 없지만, 이미 선택에 쓴 시험 점수를 손대지 않은 최종 평가처럼 이름 붙이지 않습니다.

Apply probabilities fitted on four training rows to the two validation rows. Their outcomes can help select a threshold for the assumed penalties. Score the locked choice on the last two rows without selecting it again there.

Fix the order of information use rather than hiding outcomes forever
RoleJob in this chapterWhen outcomes are used
TrainFit four input-cell probabilitiesFitting
ValidationSelect among fixed thresholdsSelection
TestScore locked probabilities and thresholdFinal reporting

Different row names do not establish different customers or independent sampling. We have declared disjoint illustrative source rows. Actual identity and calendar information require a separate reading.

Changing a rule after examining test outcomes creates a new learning procedure. Disclose that change and the test data’s new selection role.

기초Foundations

3. 한 행에 하나씩 더해 1/3과 2/3을 만든다3. Add one to each outcome count to get one third and two thirds

불만·상태 코드가 같은 학습 행끼리 묶으면 네 셀에 각각 한 행이 있습니다. 이번에는 각 셀의 이탈 개수에 1, 비이탈 개수에도 1을 더하는 규칙을 선택합니다. 이탈이 0인 셀은 (0+1)/(1+2)=1/3, 이탈이 1인 셀은 (1+1)/(1+2)=2/3입니다.

p^cz=ecz+1ncz+20≤ecz≤ncz\begin{gathered}\widehat p_{cz}=\frac{e_{cz}+1}{n_{cz}+2}\\0\le e_{cz}\le n_{cz}\end{gathered}

여기서 n은 그 셀에 실제 기여한 학습 행 수, e는 그중 y=1인 수입니다. 더한 두 개는 실제 고객 두 명이 아닙니다. 작은 셀에서 0과 1을 곧바로 확정하지 않으려고 선택한 평활 규칙입니다.

t1·t2 셀의 확률은 1/3, t3·t4 셀은 2/3입니다. 검증·시험 정답을 바꾸어도 이 단계의 계산은 바뀌지 않아야 합니다. 다음 담당자는 원 행 수와 더한 수를 따로 볼 수 있어야 합니다.

Grouping training rows by the two input codes gives one row per cell. Choose a rule adding one to both the churn and nonchurn counts. A cell with no churn gives (0+1)/(1+2)=1/3; a cell with one churn gives (1+1)/(1+2)=2/3.

p^cz=ecz+1ncz+20≤ecz≤ncz\begin{gathered}\widehat p_{cz}=\frac{e_{cz}+1}{n_{cz}+2}\\0\le e_{cz}\le n_{cz}\end{gathered}

Here n counts contributing training rows in the cell and e counts their positive outcomes. The added counts are not two observed customers. They implement a chosen smoothing rule instead of declaring a tiny cell’s probability exactly zero or one.

The t1/t2 cells receive probability 1/3 and the t3/t4 cells 2/3. Changing validation or test outcomes must leave this fitting step unchanged. Retain observed counts separately from added counts.

기초Foundations

4. 모두에게 같은 1/2을 주는 기준선4. A baseline assigns one half to every row

학습 네 행에는 이탈 2행·비이탈 2행이 있습니다. 입력 코드를 무시하고 이탈 비율 2/4=1/2을 모든 새 행에 주는 기준선을 만듭니다. 네 셀 모형과 비교할 때는 같은 기여 학습 행을 사용해 분모 차이와 모형 차이를 섞지 않습니다.

p^base=∑i∈Tyi∣T∣∣T∣≥1\begin{gathered}\widehat p_{\rm base}=\frac{\sum_{i\in T}y_i}{|T|}\\|T|\ge1\end{gathered}

T는 이번 적합에 기여한 학습 원행의 집합입니다. 실제 실습은 두 입력과 정답이 모두 가용한 같은 부분집합으로 기준선과 셀 모형을 적합합니다. 빈 집합에서는 확률을 적합한 것으로 표시하지 않습니다.

1/2은 이 네 행의 이탈 비율입니다. 미래의 모든 고객 중 정확히 절반이 이탈한다는 관측은 아닙니다. 단순 기준선도 같은 시험과 같은 벌점으로 채점하면 더 복잡한 모형이 무엇을 더했는지 이해할 수 있습니다.

Two of four training rows churn. A baseline ignores input codes and gives their fitted rate 2/4=1/2 to every new row. Compare it with the cell model on the same contributing training subset so changes in denominators do not masquerade as model differences.

p^base=∑i∈Tyi∣T∣∣T∣≥1\begin{gathered}\widehat p_{\rm base}=\frac{\sum_{i\in T}y_i}{|T|}\\|T|\ge1\end{gathered}

T contains the contributing training source rows. Our lab uses the same subset with both inputs and outcome available for both models. Empty training does not produce a fitted probability.

One half describes this training rate; it is not an observation that exactly half of all future customers will churn. Scoring a simple baseline under the same test and penalties reveals what another model adds.

기초Foundations

5. 9개월째에 알 수 있는 정보부터 고른다5. Choose information available by the prediction time

예측 시점을 9개월째 끝, 이탈을 확인할 시점을 12개월째 끝이라고 가정합니다. 1~9개월의 이용 기록으로 나중 결과를 묻는 순서입니다. 12개월 정답 y를 입력에 붙이면 답을 본 뒤 문제를 푸는 셈입니다.

예측 시간과 결과 시간은 별도 칸에 둔다
설명용 항목완료·확인 시점9개월 예측에서의 역할
1~9개월 불만 횟수9개월 끝입력 후보
10개월 새 이용량10개월 끝선언한 시점 이후
12개월 이탈 y12개월 끝나중 채점 정답

나중에야 얻을 수 있는 정보를 적합이나 선택에 흘려 넣어 평가가 실제 예측 조건보다 쉬워지는 문제를 정보 누수라고 부릅니다. 모든 상관 높은 변수가 누수인 것은 아닙니다. 사용할 순간에 무엇을 알 수 있었는지와 선언한 절차가 기준입니다.

월 번호는 이 예시의 상대 시간입니다. 원행마다 실제 달력 날짜가 없다면 9개월째 끝이 어느 해 몇 월인지 새로 알아낸 것은 아닙니다.

Assume prediction occurs at the end of month nine and the outcome is checked at the end of month twelve. Use months one through nine to ask about a later result. Appending the month-twelve target y as an input reveals the answer before solving the problem.

Record prediction time separately from outcome time
Illustrative fieldCompleted or observed byRole at month-nine prediction
Months 1–9 complaintsEnd of month 9Candidate input
Month 10 usageEnd of month 10After the declared cutoff
Month 12 churn yEnd of month 12Later scoring outcome

Information leakage occurs when fitting or selection receives information unavailable under the intended prediction or evaluation procedure, making the task easier than declared. Strong correlation alone does not make a field leakage. Its availability and information use matter.

These month numbers describe relative time. Without individual calendar dates, month nine does not identify a particular calendar year and month.

기초Foundations

6. 설명에 적힌 시점과 원행에서 확인한 시점6. A described time window differs from row-level verification

자료 설명에 입력은 처음 9개월, 결과는 12개월째라고 쓰여 있다고 합시다. 이 설명으로 예상 순서를 그릴 수 있습니다. 그러나 원행별 생성 시각이 없다면 각 값이 9개월 끝 전에 시스템에서 조회 가능했는지까지 직접 검사한 것은 아닙니다.

다음 표의 첫 줄과 둘째 줄은 같은 뜻이 아닙니다. “시점 미확인”을 관측된 지연으로 바꾸지도 않고, 문서 한 문장을 모든 원행의 완료 시각 증명으로 바꾸지도 않습니다.

무엇을 읽었고 무엇을 직접 점검했는지 기록한다
남길 설명근거 예표시
제공자가 설명한 입력 기간자료 설명의 1~9개월선언 기간
원행별 실제 이용 가능 시각타임스탬프·로그별도 확인
이 장에서 없는 달력 시각원행별 날짜 열 없음미확인

가상 실습은 개별 시점 확인 여부도 사용자가 입력하는 선언입니다. 체크를 켠 것이 새로운 원시 로그 검증을 수행한 것은 아닙니다. 실제 자료 패널은 보관된 설명과 미제공 날짜를 함께 보여 줍니다.

Suppose documentation says inputs summarize the first nine months and the outcome is measured in month twelve. It supports a described ordering. Without row timestamps, it does not directly verify that every value was queryable before the prediction cutoff.

Distinguish the two levels below. Unknown availability is neither an observed delay nor a row-level timing certificate supplied by one documentation sentence.

Record what was read and what was directly checked
Statement to retainExample evidenceLabel
Producer-described input windowDocumentation: months 1–9Declared window
Individual actual availabilityTimestamps or system logsSeparately checked
Calendar timing absent hereNo per-row date columnUnverified

The toy lab’s row-verification flag is itself a supplied declaration. Checking it does not inspect new raw system logs. The actual-data panel shows retained documentation alongside the unavailable row dates.

기초Foundations

7. 계산법을 재현하지 못한 열의 처리7. Handle a feature whose calculation is unreproduced

실제 자료에는 customer_value라는 수치 열이 있습니다. 이 장은 그 계산법을 원입력에서 재현하지 못해 두 입력 모형에서 제외합니다. 제외 이유를 이렇게 구체적으로 적으면 다음 담당자가 무엇을 추가로 확인해야 하는지 알 수 있습니다.

이름에 “고객 가치”가 들어간다고 실제 미래 이익이나 개입 수익이라고 읽지 않습니다. 반대로 계산법을 모른다는 이유만으로 그 열이 결과 이후 정보를 썼다고 증명한 것도 아닙니다. 계산식·입력 기간·시점별 이용 가능성을 확인해야 그런 판단으로 나아갈 수 있습니다.

선택 사유와 입증한 사실을 구별한다
열이번 선택선택 이유
complains선택작은 셀 모형의 첫 입력
status선택작은 셀 모형의 둘째 입력
customer_value제외계산법 미재현
churn입력 제외나중 채점할 정답

선택하지 않은 다른 11개 입력을 원자료에서 삭제하지 않습니다. 이 장의 두 변수 모형과 공개 원 13입력 표는 서로 다른 범위의 산출물입니다.

The actual source contains customer_value. This chapter excludes it from the two-input model because its calculation has not been reproduced from source inputs. An explicit reason tells the next analyst what remains to investigate.

The name does not establish future profit or intervention returns. An unreproduced calculation also does not prove post-outcome leakage. That judgment needs the formula, source periods and availability at prediction time.

Separate the choice from what its evidence establishes
FieldCurrent choiceReason
complainsSelectedFirst input in the small cell model
statusSelectedSecond input in the small cell model
customer_valueExcludedCalculation unreproduced
churnNot an inputLater scoring outcome

The other eleven input fields are retained in the source table. Our two-feature model and the public thirteen-input data have different scopes.

기초Foundations

8. 실습 A · 정보가 들어온 순서를 읽는다8. Lab A · Trace when information enters

예측 9개월·정답 12개월에서 불만 입력을 선택하고 선언한 시점 판정을 읽습니다. 다음에는 정답 열을 입력에 넣고, 10개월에 완료되는 가상 열을 선택해 두 상태가 어떻게 다른지 보세요.

이용 가능 월을 미확인으로 두면 지연으로 단정하는지, 미확인 상태로 남기는지 확인합니다. 빈 입력 목록은 기준선의 한 형태가 될 수 있지만 개별 시점 검증을 수행했다는 뜻은 아닙니다. 새 입력은 브라우저 JavaScript가 계산하며 고정 Python/R 실행기록은 별도입니다.

At prediction month nine and outcome month twelve, choose the complaint input and read the declared timing result. Then choose the target itself or an assumed field completed in month ten, comparing the different statuses.

Set availability to unknown and check that it remains unknown rather than being declared late. Empty features can describe a baseline without verifying row times. New inputs run browser JavaScript; fixed Python/R execution records remain separate.

기초Foundations

9. 누가 적합 분모에 들어갔는지 남긴다9. Record which rows contribute to fitting

설명용 t4의 정답만 미가용으로 바꾸어 봅니다. 원 학습 행은 여전히 네 개지만 두 입력과 정답이 모두 가용한 기여 행은 세 개입니다. 그중 이탈은 한 행이어서 같은 부분집합의 기준선은 1/3입니다. 미가용 정답을 0으로 채워 1/4로 만들지 않습니다.

이 경우 t4가 속한 (1, 1) 셀에는 가용 학습 정답이 없습니다. 나중 절의 평활 규칙을 쓰면 그 빈 셀을 어떻게 처리할지도 따로 정해야 합니다. 원행 수·기여 수·셀별 수를 나란히 남기면 변화의 원인을 찾을 수 있습니다.

동일한 원행 수가 동일한 적합 분모를 뜻하지 않는다
설명용 적합 기록원행기여 행기여 이탈
처음 완전한 학습442
t4 정답만 미가용431

새 조회 행의 입력 하나가 미가용이면 이 장의 셀 모형은 어느 셀인지 정하지 못합니다. 기준선은 입력을 쓰지 않으므로 여전히 확률을 줄 수 있습니다. 두 모형을 가용한 행만으로 채점하면 평가 분모도 달라질 수 있음을 다음 표에서 확인해야 합니다.

Make only t4’s outcome unavailable. Four source rows remain, but three contribute complete inputs and outcomes. One of those three churned, so their baseline rate is 1/3. Filling the missing outcome with zero would incorrectly change that to 1/4.

The (1, 1) cell now contains no usable training outcome. A smoothing rule must separately specify that boundary. Retain source counts, contributing counts and cell counts together.

Equal source counts do not imply equal fitting denominators
Illustrative fitSource rowsContributing rowsPositive outcomes
Initially complete442
Only t4 outcome unavailable431

A new row with an unavailable input cannot be assigned to a cell by this model. The input-free baseline may still predict. Scoring each model on its available predictions can therefore change the evaluation denominator as well.

기초Foundations

10. 평활 강도를 선택하면 무엇이 달라질까10. What changes with the smoothing strength?

셀의 이탈 개수 e와 전체 n에 비음수 a를 사용해 (e+a)/(n+2a)를 계산합니다. n=1, e=1에서 a=0이면 1, a=1이면 2/3, a=2이면 3/5입니다. 관측 비율을 1/2 쪽으로 당기는 선택입니다.

n>0에서 식을 둘로 나누면 관측 비율과 1/2의 가중평균으로 쓸 수 있습니다. 두 가중치는 비음수이며 합이 1입니다.

p^=e+an+2ap^=nn+2aen+2an+2a12\begin{gathered}\widehat p=\frac{e+a}{n+2a}\\\widehat p=\frac{n}{n+2a}\frac en+\frac{2a}{n+2a}\frac12\end{gathered}

큰 a가 모든 자료에서 더 좋은 예측을 보장하지는 않습니다. 강도를 시험 결과를 본 뒤 고르면 그것도 새로운 선택입니다. 실제 고정 사례는 양쪽 가상 개수를 각각 1로 미리 정한 모형만 평가합니다.

Use nonnegative a in (e+a)/(n+2a). For one positive outcome out of one row, a=0 gives one, a=1 gives 2/3 and a=2 gives 3/5. This choice pulls the observed proportion toward one half.

For n>0, rewrite it as a weighted mean of the observed rate and one half. Both weights are nonnegative and sum to one.

p^=e+an+2ap^=nn+2aen+2an+2a12\begin{gathered}\widehat p=\frac{e+a}{n+2a}\\\widehat p=\frac{n}{n+2a}\frac en+\frac{2a}{n+2a}\frac12\end{gathered}

Larger a does not guarantee better prediction on every dataset. Choosing it after seeing test results is another selection step. The actual frozen case fixes one added count for each outcome before evaluation.

기초Foundations

11. 빈 셀의 1/2은 관측 비율이 아니다11. One half in an empty cell is not an observed rate

기여 학습 행이 다른 셀에는 있지만 특정 셀은 n=e=0이라고 합시다. a=1이면 (0+1)/(0+2)=1/2입니다. 관측 고객 중 절반이 이탈했다는 뜻이 아니라, 데이터 없는 셀에 적용한 추가 개수 규칙의 결과입니다.

a=0이면 0/0이어서 그 셀 확률은 미정의입니다. 셀을 삭제하거나 관측된 0으로 바꾸지 않고 원 셀의 n=0 상태를 함께 보여 줍니다.

빈 셀과 적합 자료 전체 부재는 다른 상태
선택한 상황셀 n셀 ea이번 결과
다른 셀에는 학습 자료 있음001추가 개수만으로 1/2
다른 셀에는 학습 자료 있음000미정의
기여 학습 행 전체가 0001이번 API는 적합 확률 없음

이 장의 전체 기여 학습 집합이 비면 어느 모형도 적합했다고 표시하지 않습니다. 데이터 없이 사전 확률만 사용하는 별도 모형을 만들 수는 있지만, 현재 API가 관측 적합을 수행한 것처럼 자동 대체하지 않습니다.

Suppose some training rows contribute elsewhere, but a particular cell has n=e=0. At a=1 its value is one half. That is the added-count rule in a data-free cell, not an observed churn fraction.

At a=0 it is undefined zero over zero. Keep the empty-cell count instead of deleting it or substituting an observed zero.

An empty cell differs from absence of all fitting data
Chosen situationCell nCell eaCurrent result
Training data exist in other cells001Prior-count-only 1/2
Training data exist in other cells000Undefined
No contributing training rows anywhere001No fitted probability in this API

When the entire contributing training set is empty, this API reports neither model as fitted. A separately declared prior-only model is possible, but is not silently substituted for observed-data fitting here.

기초Foundations

12. 새 행 정답을 바꾸어도 예측은 그대로여야 한다12. Changing a query outcome must leave its prediction unchanged

학습 네 행을 고정하고 (c, z)=(0, 0)인 새 행에 정답 0을 붙여 조회합니다. 셀 확률은 1/3입니다. 같은 새 행의 정답만 1로 바꾸어도 적합 입력과 두 특징이 그대로이므로 확률은 여전히 1/3이어야 합니다. 달라지는 것은 뒤에서 계산할 채점입니다.

조회 API는 새 행의 정답을 적합에 사용하지 않습니다. 반면 학습 정답은 셀 확률을 만드는 데 사용합니다. “모든 정답을 전혀 사용하지 않았다”와 “새 행의 정답을 입력 특징으로 복사하지 않았다”는 다른 설명입니다.

같은 원행을 학습과 조회에 함께 넣는 선택은 기본적으로 거절됩니다. 선택적으로 허용하면 학습 내 조회라고 표시합니다. 원래 학습 행의 정답이 그 모형 적합에 들어갔다는 사실을 숨기지 않으며, 이것을 손대지 않은 시험 예측으로 바꾸지 않습니다.

Fix the four training rows and query a new row with inputs (0, 0) and outcome zero. Its cell probability is 1/3. Change only that query outcome to one: the fitted model and inputs stay fixed, so the probability remains 1/3. The later score changes.

The query API ignores new-row outcomes when fitting. Training outcomes do fit cell probabilities. Distinguish “no outcomes were ever used” from “the new outcome was not copied into prediction features”.

By default a source row cannot appear in both fitting and querying. An optional in-sample query is labeled as such. Its outcome entered the fit; calling that an untouched test prediction would conceal the data role.

기초Foundations

13. 원행 이름과 고객의 동일성을 구별한다13. Separate a source-row key from customer identity

t1과 s1이라는 서로 다른 원행 이름은 코드가 겹치지 않는다는 뜻입니다. 한 고객을 두 번 기록했는지까지 알려 주지는 않습니다. 같은 입력·같은 정답이 우연히 반복될 수도 있고, 같은 고객의 여러 시점일 수도 있습니다.

고객 번호와 날짜가 있다면 평가 질문에 맞춰 고객별 또는 시간별로 묶는 방법을 검토할 수 있습니다. 그 정보가 없는 표에서는 행 번호를 새 고객 식별자나 달력 순서로 이름 바꾸지 않습니다. 실제 자료의 원위치 번호도 같은 한계를 가집니다.

키·입력 패턴·고객·시간은 서로 다른 정보
확인한 것바로 따라오지 않는 것
학습·시험 원행 키가 다름고객이 반드시 다르다
13개 입력이 모두 같음같은 고객임이 증명되었다
LCG 우선순위가 다름실제 미래 시점이 다르다

같은 입력 패턴을 한 역할로 묶는 보수적 평가를 새로 설계할 수는 있습니다. 이 장의 보관 행 분할은 그 규칙으로 바꾸지 않았습니다. 어느 분할을 실제로 수행했는지 그대로 보고한 뒤 다른 설계와 비교해야 합니다.

Different keys t1 and s1 establish different source positions, not necessarily different customers. Repeated inputs and outcomes may arise by coincidence or from repeated records for one customer.

Customer identifiers and dates can support customer-group or time-based splits appropriate to the evaluation question. Without them, a row number is not a newly discovered customer ID or calendar order. Actual source positions retain the same limitation.

Keys, input patterns, customers and times carry different information
Checked statementWhat does not follow automatically
Different train/test row keysNecessarily different customers
All thirteen inputs equalProved same customer identity
Different LCG prioritiesDifferent actual future dates

A new evaluation could conservatively keep equal input patterns in one role. The archived row split here was not changed into that design. Report the procedure actually performed before comparing another one.

기초Foundations

14. 실제 status의 1·2를 그대로 읽는다14. Retain actual status codes one and two

설명용 표의 상태 코드는 0·1이었지만 실제 통신 자료의 status는 1·2입니다. 불만과 이탈 정답은 0·1입니다. 둘 다 두 범주라고 해서 모두 같은 숫자로 기록되어 있지는 않습니다.

두 범주의 원 코드와 설명용 코드를 명시적으로 구별
범위complainsstatuschurn
설명용 여덟 행0·10·10·1
실제 보관 3,150행0·11·20·1

셀 모형은 범주가 같은 행을 모읍니다. status 2가 1보다 두 배 크다고 계산하는 모형이 아닙니다. 실제 API는 원 1·2를 재부호화하지 않고 네 셀 (0, 1), (0, 2), (1, 1), (1, 2)를 그대로 만듭니다.

다른 응용에서 코드를 바꾼다면 원 코드→새 코드 대응표와 적용 범위를 저장하세요. 의미가 미상인 코드를 이름만 보고 “활성”·“비활성”으로 추정하지 말고 제공자 사전에서 확인한 범위만 씁니다.

The illustrative status codes are 0/1, while the actual source uses 1/2. Complaint and churn use 0/1. Two-category variables need not share the same numerical coding.

Explicitly distinguish original category codes from the toy coding
Scopecomplainsstatuschurn
Eight illustrative rows0/10/10/1
3,150 actual archived rows0/11/20/1

The cell model groups equal categories; it does not treat status two as twice status one. The actual-data API retains original codes and cells (0, 1), (0, 2), (1, 1), (1, 2).

If another application recodes values, preserve the mapping and scope. Do not infer category meanings from the code’s appearance; use the verified data dictionary.

기초Foundations

15. 복잡도와 평가 조건을 한 번에 바꾸지 않는다15. Compare models under the same evaluation conditions

기준선은 모두에게 1/2, 셀 모형은 불만에 따라 1/3 또는 2/3을 줍니다. 둘을 비교할 때 시험 행과 정답·가용 분모·채점 규칙을 같게 두어야 어느 변화가 모형 때문인지 읽기 쉽습니다.

확률을 주는 모형과 행동을 정하는 문턱도 별도 선택입니다. 같은 확률 모형에 다른 문턱을 쓰면 혼동표가 바뀔 수 있지만 Brier 점수나 순위 AUC처럼 확률·순위 자체를 읽는 점수는 문턱만 바꾼 것으로 바뀌지 않습니다. 점수의 정의는 뒤에서 하나씩 계산합니다.

예측 확률 2/3을 받은 한 행이 실제 비이탈이어도 그 한 행만으로 모형 전체를 계산 오류라고 부를 수는 없습니다. 확률은 개별 결과를 확정하는 정답표가 아니며, 어떤 집단·절차의 반복 성능을 묻는지 더 정해야 합니다.

The baseline gives one half to all rows; the cell model gives one third or two thirds here. Compare models on the same test rows, outcomes, availability denominator and scoring rule to interpret what changed.

A probability model and a decision threshold are different choices. Changing only the threshold can change the confusion matrix, while Brier scores and rank AUC remain tied to the unchanged probabilities and outcomes. We calculate these definitions later.

A single nonchurn outcome at predicted probability two thirds does not by itself establish an arithmetic failure. A probability is not a table of certain individual answers. State the population and repeated evaluation procedure behind any broader performance question.

기초Foundations

16. 실습 B · 학습 행만으로 새 행의 확률을 만든다16. Lab B · Fit on training rows and predict new rows

여덟 행 예시의 첫 네 행을 학습으로 두고 네 셀 확률 1/3, 1/3, 2/3, 2/3과 기준선 1/2을 맞춥니다. 새 행의 정답만 바꾸어도 예측이 같은지 직접 대조하세요.

평활 a를 0·1·2로 바꾸고 빈 셀 하나를 만듭니다. 관측 개수와 추가 개수를 구별한 뒤 학습 전체를 비워 보세요. 조회 입력 하나가 미가용일 때 셀 모형과 기준선의 가용 상태가 다른 이유도 설명합니다. 기본 원행 키 겹침 거절과 선택적 학습 내 조회 표시는 고객 독립성 검증과 별도입니다.

Use the first four illustrative rows to reproduce cell probabilities 1/3, 1/3, 2/3, 2/3 and baseline one half. Change only a query outcome and check that its prediction stays fixed.

Try smoothing zero, one and two; empty one cell, then remove all training contributors. Distinguish observed counts from added counts and compare cell versus baseline availability for a missing query input. Default source-key overlap rejection and optional in-sample labels do not verify customer independence.

기초Foundations

17. 1/3을 양성으로 볼지 먼저 정한다17. First decide what happens at the threshold

확률 p가 문턱 τ 이상이면 이탈 양성, 작으면 음성으로 분류한다고 정합니다. 등호를 어느 쪽에 넣는지도 규칙입니다. p=1/3, τ=1/3인 행은 이번 규칙에서 양성입니다.

y^τ(p)=1{p≥τ}0≤p≤10≤τ≤1\begin{gathered}\widehat y_\tau(p)=\mathbf1\{p\ge\tau\}\\0\le p\le1\\0\le\tau\le1\end{gathered}

검증 v1은 p=1/3, y=1이고 v2는 p=2/3, y=0입니다. τ=1/3이면 둘 다 양성이고, τ=2/3이면 v1은 음성·v2는 양성입니다. 확률 두 값은 바꾸지 않고 결정 경계만 바꾸었습니다.

양성이라는 이름은 이 장에서 “이탈로 분류했다”는 뜻입니다. 실제로 연락했다거나 연락이 고객을 남게 했다는 관측을 새로 만든 것은 아닙니다.

Classify positive when probability p is at least threshold τ and negative otherwise. Equality is part of the rule: p=1/3 is positive at τ=1/3.

y^τ(p)=1{p≥τ}0≤p≤10≤τ≤1\begin{gathered}\widehat y_\tau(p)=\mathbf1\{p\ge\tau\}\\0\le p\le1\\0\le\tau\le1\end{gathered}

Validation row v1 has p=1/3, y=1; v2 has p=2/3, y=0. At threshold 1/3 both are positive. At 2/3, v1 is negative and v2 positive. Only the decision boundary changed, not the fitted probabilities.

Positive means classified as churn here. It does not observe an actual contact or a successful retention intervention.

기초Foundations

18. 틀린 두 종류를 네 칸에서 찾는다18. Locate the two kinds of mistakes in four cells

실제 이탈을 양성으로 부르면 TP, 실제 비이탈을 양성으로 부르면 FP라고 씁니다. 실제 이탈을 음성으로 부르면 FN, 비이탈을 음성으로 부르면 TN입니다. 앞의 글자가 아니라 각 칸이 세는 내용을 먼저 읽습니다.

정답은 행, 예측은 열인 이번 혼동표
나중 정답양성 예측음성 예측
이탈 y=1TPFN
비이탈 y=0FPTN

검증 두 행을 τ=1/3으로 분류하면 TP=1, FP=1, FN=0, TN=0입니다. τ=2/3이면 TP=0, FP=1, FN=1, TN=0입니다. 네 칸 합이 같은 가용 행 수 2인지 확인하세요.

확률이나 정답 중 하나가 미가용인 행은 이번 혼동표의 가용 분모에 넣지 않습니다. 원행 수와 미가용 위치를 별도로 남깁니다. 정답 0과 정답 미관측을 같은 칸에 넣지 않습니다.

TP counts churn outcomes classified positive; FP counts nonchurn outcomes classified positive. FN counts churn outcomes classified negative and TN counts nonchurn outcomes classified negative. Read each cell’s meaning before relying on a layout convention.

This layout puts outcomes in rows and predictions in columns
Later outcomePredicted positivePredicted negative
Churn y=1TPFN
Nonchurn y=0FPTN

At threshold 1/3 the validation counts are TP=1, FP=1, FN=0, TN=0. At 2/3 they are 0, 1, 1, 0. In both cases the four counts sum to two available rows.

Rows with an unavailable probability or outcome do not enter this matched denominator. Retain source counts and unavailable positions separately; an unobserved target is not a zero target.

기초Foundations

19. FP 한 점·FN 네 점을 손으로 더한다19. Add one point per FP and four per FN

이번 선택 문제에서는 FP에 1점, FN에 4점의 벌점을 가정합니다. 검증 τ=1/3의 벌점은 1×1+4×0=1점입니다. τ=2/3은 1×1+4×1=5점입니다. 단순 오분류 개수뿐 아니라 어느 오류에 어떤 무게를 두는지 선언한 것입니다.

LV(τ)=cFPFPV(τ)LV(τ)=+cFNFNV(τ)cFP,cFN≥0\begin{gathered}L_V(\tau)=c_{FP}FP_V(\tau)\\\phantom{L_V(\tau)=}+c_{FN}FN_V(\tau)\\c_{FP},c_{FN}\ge0\end{gathered}

이 숫자는 실제 통신사의 연락 단가·이탈 손실·유지 수익을 측정한 돈이 아닙니다. “가정한 오분류 벌점”이라고 이름 붙입니다. 실제 행동의 이익을 알려면 연락 여부별 결과와 비용을 더 정해야 합니다.

같은 검증 행들에 대해 두 벌점을 같은 양수 배수로 늘리면 순위와 동률 집합은 같습니다. 두 벌점이 모두 0이면 모든 후보 벌점이 0이라 미리 정한 동률 규칙이 선택을 결정합니다.

Assume penalty one per FP and four per FN. Validation threshold 1/3 costs 1×1+4×0=one point, while threshold 2/3 costs five. This declares relative error weights rather than merely counting mistakes.

LV(τ)=cFPFPV(τ)LV(τ)=+cFNFNV(τ)cFP,cFN≥0\begin{gathered}L_V(\tau)=c_{FP}FP_V(\tau)\\\phantom{L_V(\tau)=}+c_{FN}FN_V(\tau)\\c_{FP},c_{FN}\ge0\end{gathered}

These points are not measured contact costs, churn losses or retention profits. Keep the assumed-error label. Evaluating an actual action needs additional outcomes under contact choices and actual costs.

Multiplying both penalties by the same positive factor preserves candidate ordering and ties on fixed validation rows. If both are zero, every candidate ties and the predeclared tie rule determines selection.

기초Foundations

20. 동률이면 가장 큰 문턱을 고른다20. Choose the largest threshold among tied minima

후보를 1/10, 1/3, 2/3, 9/10으로 미리 정합니다. 검증 두 행에서 벌점은 각각 1, 1, 5, 4입니다. 최솟값 1을 주는 후보는 두 개입니다. 이 장은 그중 큰 문턱 1/3을 고르는 규칙을 사용합니다.

두 검증 행의 전체 후보 비교 · 정답은 적합에는 사용하지 않음
후보 τTPFPFNTNFP+4FN
1/1011001
1/311001
2/301105
9/1000114

최소 집합을 먼저 남기고 그다음 동률 규칙으로 하나를 고릅니다. 작은 문턱 우선이나 첫 등장 우선도 별도 규칙일 수 있지만, 결과를 본 뒤 원하는 답으로 바꾸지는 않습니다.

0.5와 1/2은 정확히 같은 후보입니다. 실습은 같은 유리수를 두 번 입력하면 중복이라고 알립니다. 반면 짧은 소수 화면이 같아 보여도 원래 정확 수가 다르면 다른 후보일 수 있으므로 원 입력을 보존합니다.

Predeclare candidates 1/10, 1/3, 2/3 and 9/10. Their penalties on the two validation rows are 1, 1, 5 and 4. Two candidates attain the minimum; this chapter chooses the larger one, 1/3.

All candidates on two validation rows · their outcomes did not fit probabilities
Candidate τTPFPFNTNFP+4FN
1/1011001
1/311001
2/301105
9/1000114

Retain the full minimum set before applying the tie rule. Smallest-threshold or first-listed rules could be declared instead, but should not be switched after inspecting results.

Decimal 0.5 and fraction 1/2 are one exact candidate and are rejected as a duplicate. Distinct exact inputs can share a rounded display, so preserve the originals too.

기초Foundations

21. 검증에서 최소인 것과 미래에 최소인 것은 다르다21. A validation minimum need not be a future-risk minimum

이번 검증 벌점 1은 정해진 두 행에서 나온 합입니다. 다른 두 고객을 뽑으면 정답 구성도, 문턱 순위도 달라질 수 있습니다. 검증 자료의 최소를 계산한 뒤 모든 미래 집단에서도 최적이라고 결론내리지는 않습니다.

유한하고 비어 있지 않은 후보 집합 G와 가용 검증 행이 하나 이상 있을 때, 이 장의 선택을 다음처럼 씁니다. 먼저 최소 집합을 구하고 가장 큰 원소를 선택합니다.

MV=arg min⁡τ∈GLV(τ)τ^=max⁡MV\begin{gathered}M_V=\operatorname*{arg\,min}_{\tau\in G}L_V(\tau)\\\widehat\tau=\max M_V\end{gathered}

가용 검증 행이 0이면 모든 빈 합이 0이라는 이유로 문턱을 선택했다고 표시하지 않습니다. 실습은 평가 자료 없음 상태를 반환합니다. 후보 집합이 비었거나 확률 범위 밖인 후보는 입력 오류로 구별합니다.

적합·문턱 후보·벌점·동률 규칙·사용한 검증 원행을 함께 기록하면 “어떤 절차에서 최소였는가”가 정확해집니다.

Penalty one is a sum on two particular validation rows. Another sample can change outcomes and threshold rankings. An empirical minimum does not establish a universal future optimum.

For a finite nonempty candidate set G and at least one matched validation row, write the chosen procedure as the largest member of the empirical minimum set:

MV=arg min⁡τ∈GLV(τ)τ^=max⁡MV\begin{gathered}M_V=\operatorname*{arg\,min}_{\tau\in G}L_V(\tau)\\\widehat\tau=\max M_V\end{gathered}

With zero available validation rows, the API does not select a threshold merely because all empty sums equal zero. It reports no evaluation data. An empty grid or out-of-range candidate is a different input error.

Record the fit, candidate grid, penalties, tie rule and contributing validation positions to make the scope of the minimum explicit.

기초Foundations

22. 참확률을 안다면 두 행동의 기댓값을 비교한다22. If the true probability is known, compare expected action losses

가정으로 이탈 참확률 q를 알고 FP 벌점 1·FN 벌점 4를 쓴다고 합시다. 양성으로 부르면 비이탈 때만 1점을 내므로 기대 벌점은 1−q입니다. 음성으로 부르면 이탈 때 4점을 내므로 4q입니다.

R(+∣q)=1−qR(−∣q)=4q1−q≤4q  ⟺  q≥1/5\begin{gathered}R(+\mid q)=1-q\\R(-\mid q)=4q\\1-q\le4q\iff q\ge1/5\end{gathered}

q=1/5에서는 두 행동이 동률입니다. 양성 쪽에 등호를 둔 규칙은 이때 한 최적 행동을 고릅니다. 일반 비음수 벌점의 합이 양수이면 같은 비교로 문턱 c_FP/(c_FP+c_FN)을 얻습니다. 둘 다 0이면 어느 행동도 기대 벌점 0이고 이 분수는 정의하지 않습니다.

앞서 고른 검증 문턱 1/3과 다른 숫자라고 모순은 아닙니다. 지금 q는 알고 있다고 가정한 참확률이며, 앞에서는 작은 학습 자료에서 적합한 점수와 유한 검증 표를 사용했습니다. 둘을 같은 대상으로 바꾸지 않습니다.

Assume the true churn probability q is known, with FP penalty one and FN penalty four. A positive decision pays one only for nonchurn, giving expected loss 1−q. A negative decision pays four for churn, giving 4q.

R(+∣q)=1−qR(−∣q)=4q1−q≤4q  ⟺  q≥1/5\begin{gathered}R(+\mid q)=1-q\\R(-\mid q)=4q\\1-q\le4q\iff q\ge1/5\end{gathered}

At q=1/5 both actions tie; assigning equality to positive selects one optimum. For general nonnegative penalties with positive sum, the threshold is c_FP/(c_FP+c_FN). If both vanish, every action has zero expected penalty and the fraction is undefined.

A different number from validation-selected 1/3 is not a contradiction. Here q is assumed known truth. Earlier we used fitted probabilities and a finite validation table. They are different decision problems.

기초Foundations

23. 같은 분류를 주는 문턱도 여럿이다23. Different thresholds can give the same classifications

검증 확률이 1/3·2/3뿐이면 τ=1/10과 1/3은 둘 다 두 행을 양성으로 만듭니다. τ를 바꾸어도 어떤 p≥τ 비교도 바뀌지 않으면 네 칸과 벌점은 그대로입니다. 그래서 후보가 다르다고 서로 다른 분류 결과가 생기는 것은 아닙니다.

그러나 경계의 등호를 생략하면 계산이 달라집니다. p=1/3에서 τ=1/3은 양성이지만 그보다 조금 큰 문턱은 음성입니다. 반올림 확률로 먼저 바꾼 뒤 비교하면 작은 차이가 사라질 수 있습니다.

모든 확률이 1인 행은 허용 문턱 [0, 1] 아래에서 항상 양성입니다. 항상 음성을 내는 별도 규칙을 비교하고 싶다면 그 규칙을 따로 선언해야 합니다. 후보 밖 행동을 임계값 API가 수행한 것처럼 보고하지 않습니다.

정확한 유리수와 화면 근삿값을 함께 보여 주는 이유는 비교 경계를 보존하기 위해서입니다. 아주 작은 확률을 0으로 바꾸거나 1에 가까운 수를 먼저 1로 바꾸면 로그손실과 경계 판정도 달라질 수 있습니다.

With validation probabilities only 1/3 and 2/3, thresholds 1/10 and 1/3 both predict positive for both rows. If no comparison p≥τ changes, confusion counts and penalties stay fixed. Distinct candidates need not create distinct classifiers.

Equality matters: a score 1/3 is positive at that threshold but negative just above it. Rounding probabilities before comparison can erase a real boundary difference.

A row with probability one remains positive under every allowed threshold in [0, 1]. An always-negative classifier, if desired, must be declared separately instead of being attributed to a threshold this API did not allow.

Retain exact rational values alongside approximate displays. Prematurely turning a tiny probability into zero or a near-one probability into one can alter log loss and boundary comparisons.

기초Foundations

24. 실습 C · 후보 전체와 동률 집합을 비교한다24. Lab C · Inspect every candidate and the full tie set

검증 p=(1/3, 2/3), y=(1, 0), 후보 1/10·1/3·2/3·9/10, FP 벌점 1·FN 벌점 4에서 벌점 1·1·5·4를 확인합니다. 최소 후보 둘과 큰 문턱 우선 규칙으로 선택된 1/3을 구별하세요.

FN 벌점을 1·4·10으로 바꾸고 어느 비교가 달라지는지 손으로 예측합니다. 벌점을 모두 0으로 바꾸면 후보 전체가 최소가 되는지도 봅니다. 정답 또는 확률을 모두 미가용으로 둔 경우에는 자료 없는 선택을 만들어 내지 않습니다.

For validation probabilities (1/3, 2/3), outcomes (1, 0), candidates 1/10, 1/3, 2/3, 9/10 and FP/FN penalties one/four, check penalties 1, 1, 5, 4. Distinguish both minimizing candidates from the selected larger threshold 1/3.

Try FN penalties one, four and ten, predicting changes by hand first. Set both penalties to zero and inspect the full tie set. With no matched probabilities/outcomes, the lab does not manufacture a data-based selection.

기초Foundations

25. 선택을 잠근 뒤 마지막 두 행을 채점한다25. Score the last two rows after locking the choice

학습으로 정한 확률과 검증에서 고른 τ=1/3을 잠급니다. 시험 s1의 p=1/3, y=0은 FP, s2의 p=2/3, y=1은 TP입니다. 따라서 정확도는 1/2이고 가정 벌점은 1입니다.

이 표의 정답은 적합·문턱 선택 이후에 채점용으로 사용
설명용 시험 행고정 p나중 yτ=1/3 예측채점
s11/30양성FP
s22/31양성TP

시험을 본 뒤 τ를 2/3으로 고치면 s1은 TN, s2는 TP가 되어 이 두 행의 정확도가 1로 보입니다. 이 변화가 틀린 산술인 것은 아닙니다. 다만 이제 시험 정답을 문턱 선택에 사용했으므로 앞서 잠근 절차의 최종 평가와 다릅니다.

재설계한 절차를 평가하려면 새로 정한 평가 계획과 그에 맞는 자료가 필요합니다. 두 행의 좋아진 점수를 손대지 않은 미래 성능 증거처럼 다시 쓰지 않습니다.

Lock the fitted probabilities and validation-selected threshold 1/3. Test s1 has p=1/3, y=0 and is an FP; s2 has p=2/3, y=1 and is a TP. Accuracy is one half and the assumed penalty one.

Test outcomes enter scoring after fitting and threshold choice
Illustrative test rowFixed pLater yDecision at 1/3Score cell
s11/30PositiveFP
s22/31PositiveTP

After seeing test outcomes, changing the threshold to 2/3 makes s1 a TN and s2 a TP, raising accuracy on these two rows to one. That arithmetic is valid, but it now uses test outcomes for selection and evaluates a different procedure.

Evaluating the redesigned procedure needs a new declared evaluation plan and suitable data. Do not reuse the improved two-row score as untouched future-performance evidence.

기초Foundations

26. 정확도·정밀도·재현율의 분모를 읽는다26. Read the denominators of accuracy, precision and recall

네 칸 합이 양의 가용 수 N일 때 정확도는 맞은 두 칸의 비율입니다. 양성으로 분류한 수가 양수일 때 정밀도는 그중 실제 이탈의 비율입니다. 실제 이탈 수가 양수일 때 재현율은 그중 양성으로 찾은 비율입니다.

accuracy=(TP+TN)/Nprecision=TP/(TP+FP)recall=TP/(TP+FN)\begin{gathered}\mathrm{accuracy}=(TP+TN)/N\\\mathrm{precision}=TP/(TP+FP)\\\mathrm{recall}=TP/(TP+FN)\end{gathered}

분모가 0인 비율은 미정의입니다. 아무도 양성으로 부르지 않았다고 정밀도 0 또는 1을 자동으로 넣지 않습니다. 실제 이탈이 한 행도 없으면 재현율을 이 표에서 계산할 수 없습니다. N=0이면 정확도와 평균 점수도 없습니다.

특이도 TN/(TN+FP)는 실제 비이탈 중 음성으로 부른 비율이며 비이탈 분모가 필요합니다. 각 점수의 분모와 원행 수를 함께 쓰면 왜 어떤 점수만 비어 있는지 설명할 수 있습니다.

For positive matched count N, accuracy is the proportion in the two correct cells. With at least one predicted positive, precision is the share of predicted positives that truly churned. With at least one true churn outcome, recall is the share classified positive.

accuracy=(TP+TN)/Nprecision=TP/(TP+FP)recall=TP/(TP+FN)\begin{gathered}\mathrm{accuracy}=(TP+TN)/N\\\mathrm{precision}=TP/(TP+FP)\\\mathrm{recall}=TP/(TP+FN)\end{gathered}

A zero denominator gives an undefined ratio. No predicted positives does not automatically supply precision zero or one. With no actual churn outcomes, recall is undefined. With N=0, accuracy and mean scores are undefined too.

Specificity TN/(TN+FP) uses the actual nonchurn denominator. Reporting denominators and source counts explains why one score may be unavailable while another is defined.

기초Foundations

27. 정확도가 조금 높아도 가정 벌점은 클 수 있다27. Slightly higher accuracy can accompany a larger assumed penalty

실제 고정 시험 630행에는 이탈 89행·비이탈 541행이 있습니다. 훈련 비율 기준선에 검증에서 고른 9/10 문턱을 쓰면 모두 음성이므로 맞은 수는 541입니다. 두 입력 셀 모형은 TP=84, FP=86, FN=5, TN=455라 맞은 수는 539입니다.

같은 시험 행·같은 정답 · 벌점 단위는 가정한 점수
잠근 실제 모형맞은 수/가용 수FPFN가정 FP+4FN
기준선541/630089356
셀 모형539/630865106

정확도만 보면 기준선이 2행 더 맞습니다. 그러나 FN에 4점을 둔 목적에서는 셀 모형의 벌점이 250점 작습니다. 어떤 지표가 다른 지표를 대신하는지 먼저 선언해야 하는 이유입니다.

기준선의 양성 예측은 0행이라 정밀도는 미정의이고, 셀 모형의 정밀도는 84/170, 재현율은 84/89입니다. 이 차이를 실제 연락 프로그램의 이익이나 개인별 유지 성공으로 바꾸어 말하지 않습니다.

The fixed actual test has 630 rows: 89 churn and 541 nonchurn. The training-rate baseline at validation-selected threshold 9/10 predicts all negative and gets 541 correct. The cell model has TP=84, FP=86, FN=5, TN=455, giving 539 correct.

Same test rows and outcomes · penalties are assumed points
Locked actual modelCorrect/availableFPFNAssumed FP+4FN
Baseline541/630089356
Cell model539/630865106

Accuracy favors the baseline by two rows, while the specified error objective favors the cell model by 250 points. State the objective before treating one metric as a substitute for another.

Baseline precision is undefined because no row is predicted positive. Cell precision is 84/170 and recall 84/89. These differences do not measure actual contact profits or individual retention success.

기초Foundations

28. 확률을 결과와 얼마나 멀리 두었는지 제곱한다28. Square the distance between a probability and its outcome

설명용 시험에서 p=(1/3, 2/3), y=(0, 1)입니다. 제곱 차이는 둘 다 1/9이라 평균 Brier 점수는 1/9입니다. 문턱을 1/3에서 2/3으로 바꾸어도 p와 y는 같아 이 점수는 그대로입니다.

BS=1N∑i=1N(pi−yi)2N≥1\begin{gathered}\mathrm{BS}=\frac1N\sum_{i=1}^{N}(p_i-y_i)^2\\N\ge1\end{gathered}

Y가 0·1이고 참확률 q를 가진다는 가정에서, 하나의 고정 예측 p의 기대 제곱손실은 다음처럼 분해됩니다. p, q는 [0, 1]에 둡니다.

E[(p−Y)2]=(p−q)2+q(1−q)\begin{gathered}E[(p-Y)^2]=(p-q)^2+q(1-q)\end{gathered}

q(1−q)는 p를 바꾸어도 같습니다. 따라서 기대 점수는 p=q에서 유일하게 최소입니다. 이것은 참확률을 보고하라는 점수의 성질이지, 작은 시험 점수가 적합 p를 이미 참확률로 인증했다는 뜻은 아닙니다.

On the illustrative test, p=(1/3, 2/3) and y=(0, 1). Both squared errors equal 1/9, so mean Brier score is 1/9. Changing only the threshold leaves this probability score unchanged.

BS=1N∑i=1N(pi−yi)2N≥1\begin{gathered}\mathrm{BS}=\frac1N\sum_{i=1}^{N}(p_i-y_i)^2\\N\ge1\end{gathered}

Assume binary Y has true probability q and take a fixed prediction p, both in [0, 1]. Expected squared loss decomposes as follows:

E[(p−Y)2]=(p−q)2+q(1−q)\begin{gathered}E[(p-Y)^2]=(p-q)^2+q(1-q)\end{gathered}

The second term is unchanged by p, so the unique expected-score minimum is p=q. This property rewards reporting the true probability; a small finite test score does not certify that a fitted probability is already true.

기초Foundations

29. 일어난 사건에 준 확률의 로그를 읽는다29. Read the log probability assigned to the observed event

정답이 1이면 일어난 사건에 준 확률은 p, 정답이 0이면 1−p입니다. 그 확률을 r이라고 쓰면 한 행의 자연로그 손실은 −log r입니다. r=1이면 손실 0, r=0이면 일어난 사건을 불가능하다고 했으므로 양의 무한대입니다.

ri={piyi=11−piyi=0ℓi=−log⁡ri\begin{gathered}r_i=\begin{cases}p_i&y_i=1\\1-p_i&y_i=0\end{cases}\\\ell_i=-\log r_i\end{gathered}

앞의 설명용 시험 두 행은 r=2/3을 주므로 평균 손실은 log(3/2)입니다. 맞혔다는 이진 채점만으로 보이지 않는 확률의 크기를 읽습니다. 한 사건에 확률 0을 주면 다른 행의 좋은 점수로 그 무한대를 상쇄할 수 없습니다.

참확률 0<q<1, 고정 p∈(0, 1)에서 기대손실은 −q log p−(1−q)log(1−p)이고 그 미분은 (p−q)/(p(1−p))입니다. 따라서 p=q에서 유일 최소입니다. q=0 또는 1이면 해당 끝점 예측이 손실 0의 최소이며, 발생 확률 0인 항을 0×무한대로 억지 계산하지 않습니다.

극소 r이나 1에 가까운 r은 입력을 먼저 반올림하지 않고 보수 확률과 로그를 안정적으로 계산해야 합니다. 실습은 정확 확률·수치 로그 근사·표시 underflow를 구별하며 유리수 확률의 정확성이 로그 자체의 유리수 정확성을 뜻하지는 않습니다.

For outcome one the observed event receives probability p; for outcome zero it receives 1−p. Call that r. Its natural-log loss is −log r: zero at r=1 and positive infinity at r=0, when an observed event was assigned impossibility.

ri={piyi=11−piyi=0ℓi=−log⁡ri\begin{gathered}r_i=\begin{cases}p_i&y_i=1\\1-p_i&y_i=0\end{cases}\\\ell_i=-\log r_i\end{gathered}

Both illustrative test rows assign r=2/3, giving mean loss log(3/2). This retains probability information absent from a correct/incorrect count. Other good rows cannot cancel a positive-infinite loss.

For true 0<q<1 and fixed p in (0, 1), expected loss is −q log p−(1−q)log(1−p), with derivative (p−q)/(p(1−p)). Its unique minimum is p=q. At q=0 or one, the matching endpoint prediction minimizes loss at zero; do not force an impossible outcome’s zero-weight term into zero times infinity.

Compute tiny probabilities and near-one complements before rounding. The lab separates exact probabilities, approximate numerical logarithms and display underflow. An exact rational input does not make its logarithm an exact rational output.

기초Foundations

30. 양성·음성 한 쌍씩 순서를 비교한다30. Compare the rankings of positive–negative pairs

실제 이탈 행의 점수가 실제 비이탈 행보다 큰지 한 쌍씩 비교합니다. 크면 1, 같으면 1/2, 작으면 0을 주고 모든 양성·음성 쌍으로 평균내는 것이 이 장의 ROC AUC 정의입니다. 실제 양성·음성이 각각 하나 이상 있어야 분모가 양수입니다.

h(a,b)=1{a>b}+121{a=b}W=∑i:yi=1∑j:yj=0h(pi,pj)AUC=W/(N+N−)\begin{gathered}h(a,b)=\mathbf1\{a>b\}+\tfrac12\mathbf1\{a=b\}\\W=\sum_{i:y_i=1}\sum_{j:y_j=0}h(p_i,p_j)\\\mathrm{AUC}=W/(N_+N_-)\end{gathered}

설명용 시험은 이탈 점수 2/3이 비이탈 점수 1/3보다 커 AUC=1입니다. 하지만 문턱 1/3의 정확도는 1/2였습니다. 순위가 완벽하다고 그 문턱의 분류가 모두 맞는 것은 아닙니다. 모두에게 같은 확률을 주는 기준선은 두 정답 범주가 있으면 모든 쌍이 동률이라 AUC=1/2입니다.

엄격 증가 변환은 점수의 순서·동률을 보존하므로 AUC도 같습니다. 그 숫자를 확률로 사용한 Brier·로그손실까지 보존되는 것은 아닙니다. 순위와 확률의 보정은 다른 질문입니다.

Compare each actual churn score with each actual nonchurn score: one for higher, one half for tied and zero for lower. Their mean is the ROC AUC definition here. Both outcome groups must be nonempty.

h(a,b)=1{a>b}+121{a=b}W=∑i:yi=1∑j:yj=0h(pi,pj)AUC=W/(N+N−)\begin{gathered}h(a,b)=\mathbf1\{a>b\}+\tfrac12\mathbf1\{a=b\}\\W=\sum_{i:y_i=1}\sum_{j:y_j=0}h(p_i,p_j)\\\mathrm{AUC}=W/(N_+N_-)\end{gathered}

The illustrative test has positive score 2/3 above negative score 1/3, giving AUC one. Yet accuracy at threshold 1/3 was one half. Perfect ranking does not imply perfect classification at a chosen threshold. A constant-score baseline has AUC one half when both outcome groups exist.

A strictly increasing score transformation preserves order and ties, hence AUC. It need not preserve Brier or log loss when the new values are used as probabilities. Ranking and probability calibration ask different questions.

기초Foundations

31. 답을 복사하면 점수는 완벽해 보인다31. Copying the target can make a score look perfect

잘못된 절차로 예측 확률 p를 나중 정답 y와 똑같이 놓아 봅니다. 문턱 1/2이면 y=1은 양성, y=0은 음성이라 모든 행을 맞힙니다. Brier와 로그손실도 0이고 두 정답 범주가 있으면 AUC=1입니다.

이 산술은 정답을 복사했기 때문에 나온 결과입니다. 예측 순간에 모를 y를 입력으로 사용했으므로 새로운 예측 모형의 시험 성능으로 보고할 수 없습니다. 점수가 좋아 보인다는 이유로 정보 경로 점검을 생략할 수 없는 작은 반례입니다.

유효 모형과 분리한 target-copy 예시 · 유지 프로그램 관측 아님
실제 시험 630행에서 별도 실행한 잘못된 복사 진단값
TP89
FP0
FN0
TN541
절차 판정정답을 입력에 사용한 무효 진단

이 예시는 모든 누수가 이처럼 완벽한 점수를 낸다는 뜻은 아닙니다. 일부 정보만 나중에 들어왔거나 측정 시점이 섞인 경우에는 덜 극적인 점수에서도 절차가 달라질 수 있습니다.

As an invalid procedure, set probability p equal to the later target y. At threshold one half, every row is correct. Brier and log losses are zero, and AUC is one when both outcome classes exist.

The arithmetic follows from copying the answer. Because y was unavailable at prediction time, this is not test performance for a new predictive model. Good-looking scores do not replace information-flow checks.

Target-copy example separated from valid models · no retention program observed
Invalid copy diagnostic on actual 630 test rowsValue
TP89
FP0
FN0
TN541
Protocol judgmentInvalid target-as-input diagnostic

Not every leak produces perfect scores. Partial later information or mixed measurement timing can change the protocol even with less dramatic numbers.

기초Foundations

32. 실습 D · 같은 확률의 다른 채점을 비교한다32. Lab D · Compare scores of the same probabilities

p=(1/3, 2/3), y=(0, 1)에서 문턱 1/3과 2/3을 비교합니다. 혼동표는 바뀌지만 Brier=1/9, 로그손실=log(3/2), AUC=1은 그대로인지 확인하세요.

실제 정답이 한 범주뿐인 입력, 양성 예측이 없는 입력, 관측 사건에 확률 0을 준 입력을 각각 만듭니다. 미정의 비율·무한 로그손실·정확 0인 손실을 서로 다른 상태로 읽습니다. 매우 작은 비영 확률의 정확 입력도 확인하되, 브라우저가 새 Python/R을 실행했다고 부르지 않습니다.

With probabilities (1/3, 2/3) and outcomes (0, 1), compare thresholds 1/3 and 2/3. Confusion counts change while Brier 1/9, log loss log(3/2) and AUC one stay fixed.

Try one-class outcomes, no predicted positives, and an observed event assigned probability zero. Distinguish undefined ratios, infinite log loss and exact zero loss. Inspect tiny nonzero exact inputs as well. Live calculations are JavaScript, not newly executed Python/R.

기초Foundations

33. 다음 담당자에게 열두 가지를 넘긴다33. Pass twelve concrete items to the next analyst

다음 담당자가 “왜 이 행에 양성이 붙었나요?”라고 묻는다고 합시다. 확률 하나만 전달하면 어떤 시점·자료·문턱을 사용했는지 다시 찾아야 합니다. 아래 열두 항목을 짧은 문장으로 채우면 재계산할 경로가 남습니다.

값뿐 아니라 숫자를 만든 절차를 함께 전달
항목설명용 답의 일부
예측 대상나중 이탈 y=1
예측 시점입력을 닫는 9개월째 끝
입력 특징c, z 두 코드
출처·단위원 기록과 코드 사전
분할학습 4·검증 2·시험 2
확률 적합셀 양쪽 개수에 1 추가
문턱 선택검증 벌점·큰 문턱 동률 우선
시험 보고잠근 τ=1/3의 결과
비용 가정FP 1점·FN 4점
공개·개인정보공유 가능한 필드와 범위
점검 계획새 결과가 언제 도착하는가
담당·남은 질문누가 언제 무엇을 확인하는가

내용을 모두 적었다고 사실 확인이나 배포 준비가 자동 완료되는 것은 아닙니다. 예를 들어 원행별 시각이 없다는 항목도 다음 담당자가 알아야 하는 중요한 인수인계 내용입니다.

Suppose the next analyst asks why one row was classified positive. A probability alone leaves its timing, source and threshold unexplained. Twelve short fields preserve the route needed to reproduce the decision.

Pass the numerical procedure as well as its output
ItemPart of an illustrative answer
TargetLater churn y=1
Prediction timeEnd of month-nine input window
FeaturesCodes c and z
Source and unitsSource records and code dictionary
Split4 train / 2 validation / 2 test
Probability fitOne added count per outcome
Threshold choiceValidation penalty; largest-threshold ties
Test reportLocked threshold 1/3
Cost assumptionsFP one point / FN four points
Privacy and sharingFields and permitted scope
MonitoringWhen new outcomes arrive
Owner and open issuesWho checks what and when

Supplying every field is text completeness, not independent verification or deployment readiness. Missing row-level times are themselves useful handover information.

기초Foundations

34. 누구의 어느 시점 결과를 묻는지 적는다34. Specify whose outcome at which time is predicted

“고객 이탈”이라는 말만으로는 질문이 완성되지 않습니다. 현재 가입자 모두인지, 일정 기간 이용한 사람인지, 어느 날짜 이후까지 이탈을 확인하는지 정해야 합니다. 9개월째 입력을 가진 원행의 12개월째 결과와 다음 달 신규 가입자의 결과는 다른 질문일 수 있습니다.

분석 결과를 연결할 대상과 집계 범위를 추정 대상이라고 부릅니다. 이 장에서 바로 계산한 것은 선언한 보관 시험 행의 채점입니다. 앞으로 들어올 고객의 평균 손실을 묻는다면 그 고객 집단과 정보 이용 절차를 추가로 정해야 합니다.

R(P,f)=EP[ℓ(f(X),Y)]\begin{gathered}R(P,f)=E_P[\ell(f(X),Y)]\end{gathered}

여기서는 분포 P 아래의 새 입력 X·결과 Y, 고정 예측 규칙 f와 손실 ℓ를 말합니다. 이 일반식이 원자료가 미래 분포 P를 이미 알려 준다는 뜻은 아닙니다. 같은 말 “성능” 아래 서로 다른 대상을 섞지 않도록 이름을 붙인 것입니다.

“Customer churn” alone is incomplete. Specify eligible customers, available history and the outcome horizon. A month-twelve outcome for a row with month-nine inputs can differ from next-month churn among new subscribers.

An estimand names the quantity about the population and procedure that you want to learn. Our direct calculation scores declared archived test rows. Asking about future customers’ mean loss additionally requires their population and information-use procedure.

R(P,f)=EP[ℓ(f(X),Y)]\begin{gathered}R(P,f)=E_P[\ell(f(X),Y)]\end{gathered}

The expression uses new inputs X/outcomes Y from a distribution P, a fixed predictor f and a loss ℓ. It names a target; it does not establish that the source data reveal a future P.

기초Foundations

35. 적합 결과와 문턱의 짝을 함께 저장한다35. Save the fitted probabilities together with their threshold

학습 셀의 개수·확률, 검증 후보·벌점·선택 문턱, 시험 채점 코드를 같은 버전 묶음으로 저장합니다. τ=1/3이라는 숫자만 남기면 어떤 확률 모형에 적용할지 모릅니다. 코드·입력 해시와 역할 원행 목록도 함께 남깁니다.

학습과 검증을 합쳐 확률을 다시 적합하면 네 셀의 개수와 확률이 바뀔 수 있습니다. 예전 문턱을 그대로 쓰는 절차, 새로 고르는 절차, 재적합하지 않는 절차는 각각 다른 전체 알고리즘입니다. 이전 시험 점수가 어느 절차에 해당하는지 밝힙니다.

재적합 후에도 과거 시험 절차가 같았다고 가정하지 않는다
저장할 짝설명
훈련 원행·코드·평활확률을 다시 만드는 입력
확률 모형·문턱새 행 분류 규칙
시험 원행·채점 정의공표 점수의 계산 범위

해시는 파일의 바이트 동일성을 비교하는 도구입니다. 그 바이트가 참인 측정인지, 올바른 시점 정보인지, 미래에 잘 맞는지까지 증명하지는 않습니다.

Save cell counts/probabilities, validation candidates/penalties/threshold and test scoring code as one versioned bundle. Threshold 1/3 alone does not identify its fitted probability model. Retain code/input hashes and role-specific source positions.

Combining training and validation for a refit can change counts and probabilities. Retaining the old threshold, selecting a new one or avoiding refitting define different whole procedures. State which procedure produced the reported test score.

A refit need not preserve the procedure evaluated earlier
Pair to preservePurpose
Training rows / code / smoothingRecreate fitted probabilities
Fitted model / thresholdClassify a new row
Test rows / score definitionsReproduce the reported evaluation

A hash compares file bytes. It does not verify measurement truth, information timing or future predictive accuracy.

기초Foundations

36. 새 결과가 늦게 도착하는 점검 계획36. Plan monitoring when outcomes arrive late

9개월 시점에 예측했다면 12개월 결과를 즉시 채점할 수는 없습니다. 언제 어떤 정답을 수집할지, 결과 미확인 행을 어떻게 남길지 계획합니다. 미도착 정답을 비이탈 0으로 채우면 새 채점 분모와 오류가 달라집니다.

입력 코드의 새 범주, 미가용 비율, 예측 확률 분포를 먼저 볼 수 있어도 정답 기반 정확도·보정·손실은 결과가 있어야 계산됩니다. 입력 분포가 바뀌었다는 관찰과 성능이 나빠졌다는 관찰을 구별합니다.

새 자료로 다시 적합하거나 문턱을 바꿀 조건과 담당자를 기록합니다. 같은 시험 결과를 반복해서 보며 가장 좋아지는 버전만 고르면 시험 자료도 선택에 사용한 것입니다. 변경 후 평가 역할을 다시 명시합니다.

점검은 실제 서비스 운영 계획의 일부가 될 수 있지만, 이번 로컬 문서가 외부 시스템을 변경하거나 자동 연락을 실행하지는 않습니다.

A month-nine prediction cannot immediately be scored against its month-twelve outcome. Plan when labels arrive and how unresolved rows remain marked. Filling delayed outcomes with nonchurn zeros changes denominators and errors.

New input codes, missingness rates and score distributions may be observable first. Accuracy, calibration and outcome-based loss require labels. Input drift and observed performance deterioration are separate findings.

Record triggers and ownership for refitting or threshold changes. Repeatedly inspecting the same test to keep only the best version uses it for selection. Declare its changed role.

A monitoring plan can inform real operations, but the local brief here neither changes an external system nor contacts customers.

기초Foundations

37. 공개 원행과 전달할 정보를 따로 고른다37. Separate public source rows from information to hand over

모형을 재계산하려면 셀별 개수와 적합 규칙만으로 충분할 때도 있고, 원행별 오류를 점검하려면 더 상세한 자료가 필요할 때도 있습니다. 목적별로 필요한 필드를 고르고 원자료의 공개 조건·출처·보관 범위를 함께 남깁니다.

이번 통신 표에 고객 ID 열이 없다는 사실은 모든 사람의 재식별이 불가능하다는 수학적 증명이 아닙니다. 많은 특징이 같은 행도 있을 수 있고 매우 드문 입력 조합도 있을 수 있습니다. 원위치 번호를 새 인물 신원으로 만들지 않습니다.

인수인계 문서에는 외부로 넘길 원행의 범위와 이유, 집계로 바꾼 경우의 분모, 이용하지 않은 필드를 적을 수 있습니다. 로컬 텍스트를 완성한 것과 실제 정보 공개·접근권 설정·익명성 점검을 완료한 것은 다른 일입니다.

실습은 공개 자료를 새 개인 연락처와 연결하거나 메시지를 보내지 않습니다. 이 기능 설명은 실제 자료 공유가 적절한지 자동으로 판정하는 도구라는 뜻도 아닙니다.

Cell counts and the fit rule may suffice to recreate a model, while row-level error review may need more detail. Select fields for a stated purpose and retain source terms, provenance and retention scope.

Absence of a customer-ID column is not a mathematical anonymity guarantee. Some input patterns repeat and others may be rare. A source position is not a newly established personal identity.

A handover can specify which row-level fields would be shared and why, the denominators of aggregate substitutes and excluded fields. Completing local text differs from carrying out disclosure, access configuration or an anonymity assessment.

The lab does not link rows to new contact details or send messages. It also does not automatically adjudicate the appropriateness of an actual data release.

기초Foundations

38. 누가 이탈할지와 연락하면 달라질지는 다른 질문38. Who will churn differs from what contact would change

설명용 네 사람에게 연락하지 않았을 때 관측한 이탈은 (0, 0, 1, 1)이라고 합시다. 첫 세계에서는 연락해도 결과가 모두 그대로입니다. 둘째 세계에서는 연락하면 네 사람 모두 비이탈이 됩니다. 두 세계의 “연락하지 않은 관측 표”는 완전히 같습니다.

Y(0)은 무연락, Y(1)은 연락 결과 · 두 반사실 세계는 별도 가정
가정한 원행관측 Y(0)세계 A의 미관측 Y(1)세계 B의 미관측 Y(1)
a000
b000
c110
d110

평균 연락 효과 Y(1)−Y(0)은 세계 A에서 0, 세계 B에서 −1/2입니다. 관측 자료만 쓰는 예측 모형과 채점은 두 세계에서 같아도 실제 연락 효과는 다를 수 있습니다. 하나의 관측과 함께 가능한 다른 행동 결과를 비교하는 설명을 반사실 비교라고 합니다.

이번 실제 통신 자료에는 이 두 연락 상태의 결과를 나눌 실험이나 그러한 가정이 주어지지 않았습니다. 따라서 이탈 분류 오류 5행을 “연락해서 놓친 다섯 명” 또는 “연락하면 살릴 다섯 명”이라고 바꾸지 않습니다.

Suppose four people’s observed no-contact churn outcomes are (0, 0, 1, 1). In world A, contact changes none. In world B, contact makes all four nonchurn. The observed no-contact table is identical in both worlds.

Y(0): no contact; Y(1): contact · two separately assumed counterfactual worlds
Assumed rowObserved Y(0)Unobserved Y(1), world AUnobserved Y(1), world B
a000
b000
c110
d110

Mean contact effects Y(1)−Y(0) are zero in A and negative one half in B. Prediction and scoring from observed data can agree while intervention effects differ. Comparing possible outcomes under different actions is a counterfactual comparison.

The actual telecom data do not supply a contact experiment or assumptions identifying these alternatives. Five churn rows classified negative are not automatically five people missed by a contact program or five preventable churns.

기초Foundations

39. 실제 행동의 문턱에는 다른 가정이 필요하다39. An action-value threshold needs different assumptions

새 설명용 의사결정에서는 무연락 이탈 확률 q, 그중 연락으로 이탈을 막을 비율 r, 한 건을 막은 가치 V, 연락 비용 C를 알고 있다고 가정합니다. 연락이 추가 이탈을 만들지 않고 다른 편익·비용이 없다는 조건도 둡니다. 기대 순이익을 q r V−C로 정하면 행동 비교가 가능합니다.

Δ(q)=qrV−C0≤q,r≤1V,C≥0\begin{gathered}\Delta(q)=qrV-C\\0\le q,r\le1\\V,C\ge0\end{gathered}

예를 들어 r=1/2, V=10, C=1이면 연락의 기대 순이익은 5q−1이므로 q≥1/5에서 연락이 약하게 유리합니다. q=1/5에서는 두 행동이 동률입니다. rV=0이면 C>0일 때 연락이 불리하고 C=0이면 모두 동률입니다.

숫자 문턱이 앞의 FP=1·FN=4와 같게 나온 것은 이 선택한 수의 결과입니다. 오분류 벌점을 실제 개입 수익으로 자동 해석하지 않습니다. 이번 실제 자료는 q, r, V, C를 이 행동 모형의 참값으로 추정하지 않았으며, 모형 구현 API도 이 인과효과를 새로 계산하지 않습니다.

For a new assumed decision, suppose you know no-contact churn probability q, prevention fraction r among would-be churns, value V per prevented churn and contact cost C. Also assume contact induces no additional churn and no other benefits or costs. Define incremental expected gain as qrV−C.

Δ(q)=qrV−C0≤q,r≤1V,C≥0\begin{gathered}\Delta(q)=qrV-C\\0\le q,r\le1\\V,C\ge0\end{gathered}

At r=1/2, V=10 and C=1, gain is 5q−1, so contact is weakly preferable at q≥1/5, with a tie at equality. If rV=0, contact is worse when C>0 and tied when C=0.

Its numerical match to the earlier FP-one/FN-four threshold follows from these chosen assumptions. Error penalties do not automatically measure intervention returns. Our actual data do not estimate these decision quantities as truth, and the APIs do not identify a new causal contact effect.

기초Foundations

40. 실습 E · 값과 미해결 질문을 문장으로 남긴다40. Lab E · Record values and open questions in a local brief

예측 대상·시점·특징·출처·분할·확률 적합·문턱·시험·벌점·공개 범위·점검·담당의 열두 칸을 자신의 문장으로 채웁니다. 설명용 여덟 행과 실제 3,150행 중 어느 절차인지 먼저 적으세요.

한 칸을 비우면 미작성 항목으로 남는지 확인합니다. 모든 칸을 채워도 “외부 발송 완료”나 “성능 검증 완료”로 바뀌지 않습니다. 원행별 날짜 미제공, 고객 식별 미확인, 실제 연락 효과 미추정도 다음 담당자가 확인할 구체적 질문으로 쓸 수 있습니다.

Write twelve fields in your own words: target, time, features, source, split, probability fit, threshold, test, costs, sharing, monitoring and owner. Begin by specifying whether you describe the eight-row example or the actual 3,150-row procedure.

Leave one field blank and check its unspecified status. Filling every field does not become external delivery or performance verification. Missing individual dates, unknown customer identity and unestimated contact effects can be concrete questions for the next analyst.

기초Foundations

41. 실제 3,150행의 역할을 다시 만든다41. Recreate roles for the actual 3,150 source rows

실제 익명 통신 자료의 3,150행에는 이탈 495행이 있습니다. 이 장 저자가 고른 LCG 우선순위로 원행을 정렬해 처음 1,890행을 학습, 다음 630행을 검증, 마지막 630행을 시험에 둡니다. 제공자가 발표한 원 분할은 아닙니다.

원행은 모두 남김 · 실제 고객·달력별 독립 분할이라는 보장 없음
고정 역할원행 수이탈 수비이탈 수
학습18903111579
검증63095535
시험63089541

초기 상태 u₀=9173, a=1664525, c=1013904223으로 다음 정수 상태를 만듭니다. 원행 순서대로 상태를 하나씩 부여한 뒤 그 값을 오름차순 정렬합니다. 첫 원행의 우선순위는 3397690160이고 이 고정 표에서 검증 역할입니다.

uj=(auj−1+c) mod 232\begin{gathered}u_j=(au_{j-1}+c)\bmod 2^{32}\end{gathered}

시드와 알고리즘을 저장하면 같은 원 순서에서 역할을 재현할 수 있습니다. 이것이 실제 시간 순서나 독립 고객 표집을 새로 입증하는 것은 아닙니다. 원행 순서를 바꾸어 다시 상태를 부여하면 다른 절차가 됩니다.

The 3,150 actual anonymous telecom rows contain 495 churn outcomes. Sort source positions by the author’s LCG priorities: first 1,890 train, next 630 validation and last 630 test. This is not a publisher-provided split.

Every source row retained · no claim of customer-independent or calendar-future splitting
Fixed roleSource rowsChurnNonchurn
Train18903111579
Validation63095535
Test63089541

Use initial state 9173, a=1664525 and c=1013904223. Assign one state to each original position in order, then sort priorities ascending. The first source row has priority 3397690160 and validation role in this fixed table.

uj=(auj−1+c) mod 232\begin{gathered}u_j=(au_{j-1}+c)\bmod 2^{32}\end{gathered}

Saving the seed and rule reproduces roles for the same source order; it does not establish a calendar ordering or independent customer sample. Reordering before assigning priorities changes the procedure.

기초Foundations

42. 실제 네 셀은 11/340에서 80/91까지다42. Read the four actual training-cell probabilities

불만·상태 두 원 코드를 사용해 학습 1,890행만 셉니다. 불만 0·상태 1 셀은 1,358행 중 이탈 43행입니다. 양쪽 개수에 각각 1을 더하면 (43+1)/(1358+2)=11/340입니다. 나머지 셀도 같은 계산을 합니다.

같은 학습 집합에서 만든 네 적합 확률 · 실제 status 1·2 보존
complainsstatus학습 행 n이탈 e(e+1)/(n+2)
0113584311/340
02389153154/391
11543637/56
12897980/91

원 개수 합은 1,890, 이탈 합은 311이어서 기준선은 311/1890입니다. 검증·시험 행의 정답을 이 합에 더하지 않습니다. 실제 API는 저장된 예측 요약을 입력으로 복사하지 않고 원 선택 필드와 원행 위치에서 역할·셀을 다시 계산합니다.

첫 원행의 불만 0·상태 1은 이 모형에서 확률 11/340을 받습니다. 그 원행은 검증에 있으므로 그 정답은 이 확률 적합에 들어가지 않았습니다. 학습 역할 원행을 조회한 경우에는 해당 정답이 적합에 사용된 사실을 별도로 표시합니다.

Count only the 1,890 training rows using original complaint/status codes. The complaint-zero/status-one cell has 43 churn outcomes among 1,358 rows. Adding one per outcome gives (43+1)/(1358+2)=11/340. Apply the same calculation to the other cells.

Four fitted probabilities from the same training subset · original status 1/2 retained
complainsstatusTraining nChurn e(e+1)/(n+2)
0113584311/340
02389153154/391
11543637/56
12897980/91

Counts total 1,890 and churn counts 311, giving baseline 311/1890. Neither validation nor test outcomes enter those sums. The actual API reconstructs roles and fits from source fields/positions rather than copying stored prediction summaries.

Source row one receives 11/340 from its complaint-zero/status-one inputs. Its validation outcome was held out of fitting. A queried training row is instead labeled as having contributed its outcome to the fit.

기초Foundations

43. 실제 검증 여섯 후보를 고른 뒤 시험을 잠근다43. Select from six actual validation candidates, then lock the test

실제 후보는 1/10, 1/5, 3/10, 1/2, 7/10, 9/10이고 벌점은 FP+4FN입니다. 아래 값은 검증 630행에서 계산한 합입니다. 기준선은 1/5 이상인 다섯 후보가 380점으로 동률이어서 가장 큰 9/10을 고릅니다. 셀 모형은 앞 세 후보가 158점으로 동률이어서 3/10을 고릅니다.

전체 후보·최소 집합·큰 문턱 우선 규칙을 함께 읽는다
후보 τ기준선 검증 벌점셀 모형 검증 벌점
1/10535158
1/5380158
3/10380158
1/2380230
7/10380269
9/10380380

그 두 문턱을 고정한 뒤 같은 시험 630행을 채점합니다. 기준선의 가정 벌점은 356, 셀 모형은 106입니다. 시험 행에서 다시 후보를 골라 보고한 값은 아닙니다. 정답 열을 복사한 무효 진단의 0점은 이 두 유효 모형과 분리합니다.

문턱 선택 자료와 채점 자료가 원행상 분리되었다는 것은 이 고정 알고리즘의 기록입니다. 고객 식별자나 실제 날짜가 없어 새 고객·미래 달력으로 일반화되는 평가인지는 별도 질문으로 남습니다.

Use actual candidates 1/10, 1/5, 3/10, 1/2, 7/10, 9/10 and penalty FP+4FN on 630 validation rows. Five baseline candidates tie at 380; choose the largest, 9/10. The first three cell-model candidates tie at 158; choose 3/10.

Read all candidates, minimum sets and the largest-threshold tie rule together
Candidate τBaseline validation penaltyCell validation penalty
1/10535158
1/5380158
3/10380158
1/2380230
7/10380269
9/10380380

Lock both thresholds before scoring the same 630 test rows. Test penalties are 356 for baseline and 106 for cells. These were not selected again on test outcomes. Keep the invalid target-copy diagnostic’s zero penalty separate.

Separation by source-row roles describes this archived algorithm. Without customer IDs or individual dates it does not establish a new-customer or future-calendar evaluation.

기초Foundations

44. 입력 패턴 126개가 역할을 가로지른다44. One hundred twenty-six input patterns cross roles

모형에 쓴 두 열뿐 아니라 정답을 제외한 원 13입력 전체를 비교합니다. 실제 3,150행에서 서로 다른 13입력 패턴은 2,836개입니다. 그중 126개는 둘 이상의 역할에 등장하고, 그 패턴들에 속한 원행은 386행입니다. 13입력이 같아도 이탈 결과가 다른 패턴은 전체에서 14개입니다.

입력 tuple을 직접 비교 · 같은 고객 여부를 가정하지 않음
검사한 수값
원행3150
13입력 패턴2836
역할을 가로지른 패턴126
그 패턴들에 속한 원행386
서로 다른 결과를 가진 패턴14

같은 입력이 반복된다는 사실은 평가 질문을 다시 살필 계기입니다. 그러나 같은 13입력이면 반드시 같은 고객이라는 증거도, 다른 입력이면 반드시 다른 고객이라는 증거도 없습니다. 원위치 번호와 실제 인물 신원을 구별합니다.

패턴을 묶어 분할한 새 평가를 추가한다면 훈련·검증·시험 셀과 문턱을 모두 그 새 분할 아래 다시 정해야 합니다. 여기서는 보관된 행 분할의 실제 중첩을 그대로 공개합니다.

Compare all thirteen original inputs excluding the target, not just the model’s two features. Among 3,150 actual rows there are 2,836 distinct input patterns. Of these, 126 occur in multiple roles, containing 386 source rows. Fourteen patterns across the full data contain differing outcomes.

Compare input tuples directly · do not assume customer identity
Audit quantityValue
Source rows3150
Thirteen-input patterns2836
Cross-role patterns126
Rows in those patterns386
Patterns with differing outcomes14

Repeated inputs motivate revisiting the evaluation question, but neither equal nor unequal inputs prove customer identity or distinctness. A source position remains different from a verified person.

A new pattern-grouped evaluation would require refitting cells and reselecting thresholds under its new split. Here we disclose the archived row split’s actual overlap.

심화Extension

45. 고르고 채점한 자료의 차이를 기댓값으로 본다45. Use expectations to separate selection from evaluation

심화 설명용으로 두 후보의 검증 손실이 같은 확률 1/2로 (0, 2) 또는 (2, 0)이라고 가정합니다. 각 후보의 기대 손실은 1인데, 매번 작은 쪽을 고른 검증 손실은 항상 0입니다. 선택 후 같은 자료에 보고한 작은 손실이 왜 낙관적일 수 있는지 보여 주는 작은 표입니다.

별도로 선언한 유한법칙 · 실제 검증 자료의 표집법칙을 추정한 표 아님
가정 검증 상태확률후보 A 손실후보 B 손실고른 검증 손실
첫 상태1/2020
둘째 상태1/2200
E[min⁡jLj]≤min⁡jE[Lj]\begin{gathered}E[\min_j L_j]\le\min_j E[L_j]\end{gathered}

유한 후보들의 손실이 적분 가능하면 각 후보에 대해 min L≤L_j를 평균내어 이 부등식을 얻습니다. 매번 엄격한 차이가 난다는 뜻은 아닙니다.

또 다른 정리에는 추가 조건이 있습니다. 학습·검증 정보 D로 고른 고정 규칙 f_D에 대해, 시험 N≥1행이 D와 독립인 같은 분포 P의 iid 쌍이고 손실 기대값이 유한하다면 시험 평균의 조건부 기대는 그 규칙의 P 위험과 같습니다.

E[R^test∣D]=R(P,fD)\begin{gathered}E[\widehat R_{\rm test}\mid D]=R(P,f_D)\end{gathered}

이는 조건부 독립성과 기대값의 선형성에서 나옵니다. 실제 보관 행 분할은 그런 iid·새 고객·미래 분포 조건을 자료만으로 입증하지 않으므로, 이 정리를 가정 없이 붙인 불확실성 보증으로 읽지 않습니다.

For an advanced finite example, let validation losses of two candidates be (0, 2) or (2, 0), each with probability one half. Each candidate has expected loss one, but the selected minimum validation loss is always zero. The table illustrates possible optimism from selecting and reporting on the same data.

A separately specified finite law · not an estimated sampling law for the actual rows
Assumed validation stateProbabilityCandidate A lossCandidate B lossSelected loss
First1/2020
Second1/2200
E[min⁡jLj]≤min⁡jE[Lj]\begin{gathered}E[\min_j L_j]\le\min_j E[L_j]\end{gathered}

For finitely many integrable losses, take expectations of the pointwise inequality min L≤L_j for each candidate. The inequality need not be strict.

A different statement requires additional assumptions. Given training/validation information D, suppose N≥1 test pairs are iid from P and independent of D, and the loss of selected rule f_D has finite expectation. Then:

E[R^test∣D]=R(P,fD)\begin{gathered}E[\widehat R_{\rm test}\mid D]=R(P,f_D)\end{gathered}

Conditional independence and linearity of expectation give this equality. The archived row split does not itself establish iid new customers or a future P, so the theorem is not an assumption-free uncertainty guarantee for the source data.

기초Foundations

46. 실습 F · 원행·고정 선택·실제 실행을 이어 읽는다46. Lab F · Connect source rows, frozen choices and actual executions

첫 패널에서는 실제 자료 설명의 처음 9개월 입력·12개월 정답과 없는 원행별 날짜를 읽습니다. 개인 패널에서는 원위치 1~3,150 중 한 행의 원 13입력·정답·재계산 역할·고정 확률을 확인합니다. 회사 패널에서는 기준선·셀 모형·명시적으로 무효인 정답 복사 진단을 구별합니다.

고정 참고 프로그램은 실제로 실행한 Python 16개·R 16개, 합계 32개이며 그중 두 개는 정답을 입력에 넣으려는 절차를 명시적으로 거절합니다. 성공 예제 30개 중 28개에는 실제 SVG가 있고 나머지 두 개는 로컬 인수인계 항목을 출력한 텍스트 예제입니다. 브라우저 새 입력은 JavaScript입니다.

아래 두 짧은 설명 코드는 시험 p=(1/3, 2/3), y=(0, 1)의 Brier 점수를 직접 확인합니다. Python은 정확 분수 1/9, base R은 binary64 근삿값을 출력합니다. 원코드의 줄바꿈과 숫자는 다운로드와 함께 보존합니다.

from fractions import Fraction as Q
p = [Q(1, 3), Q(2, 3)]
y = [0, 1]
score = sum((a-b)**2 for a, b in zip(p, y)) / len(y)
print(score)
options(digits=17)
p <- c(1/3, 2/3)
y <- c(0, 1)
print(mean((p-y)^2))

Read the source-described first-nine-month inputs, month-twelve outcome and unavailable individual dates in the first panel. Inspect one source position among 1–3,150 with its original thirteen inputs, target, recomputed role and fixed probabilities. In the company panel distinguish baseline, cells and the explicitly invalid target-copy diagnostic.

Fixed references comprise sixteen Python and sixteen R programs actually executed, including two intentional target-as-input rejections. Of thirty successful examples, twenty-eight have actual SVG outputs; the other two print a local handover summary. New browser inputs run JavaScript.

The two short examples below check Brier score for probabilities (1/3, 2/3) and outcomes (0, 1). Python prints exact fraction 1/9; base R prints a binary64 approximation. Preserve the original code and line breaks with downloads.

from fractions import Fraction as Q
p = [Q(1, 3), Q(2, 3)]
y = [0, 1]
score = sum((a-b)**2 for a, b in zip(p, y)) / len(y)
print(score)
options(digits=17)
p <- c(1/3, 2/3)
y <- c(0, 1)
print(mean((p-y)^2))
기초Foundations

47. 실제 사례 · 시점·원행·선택의 경로47. Actual cases · Timing, source rows and the path of selection

자료의 범위 · 어느 나라의 몇 월 고객을 예측하나요?

이번 장은 UCI가 공개한 Iranian Churn의 실제 익명 고객 3,150행을 사용합니다. 국가라는 제목의 이 첫 사례는 국가별 이탈률 비교가 아니라 자료가 어디에서 왔고 누구를 설명하는지 확인하는 단계입니다. 제공자 설명은 이란의 한 통신회사 데이터베이스를 말하지만 회사명·고객 실명·전국 표집틀은 공개하지 않습니다. 이 3,150행의 비율을 이란 전체 국민이나 모든 통신사의 이탈률로 바꾸지 않습니다. 원 ZIP의 14열과 공통 보관본을 셀별로 대조하고, 입력 13개와 목표 Churn 1개를 분리했습니다.

공식 설명에 따르면 입력은 첫 9개월을 집계하고 목표는 12개월 끝의 이탈 상태이며, 그 사이 3개월은 계획 간격입니다. 그러나 실제 행에는 달력 시작일·입력 도착 시각·고객별 관측 종료일이 없습니다. “첫 9개월에 집계되었다”는 자료 설명과 “운영 예측 순간에 이 값이 실제로 도착해 있었다”는 검증은 다릅니다. 추가 시각 기록 없이 시간외 성능을 확인했다고 말하지 않습니다. 2020년 기탁일이나 2026년 다운로드일도 고객의 관측 연도가 아닙니다.

자료 설명의 시간과 이번 선택 · 행별 도착 시각은 확인되지 않음
원 변수코드·값자료 설명의 월이번 장의 의미
Complains0/11–9불만 없음/있음
Status1/21–9활성/비활성 코드
Customer Value계산값1–9계산식 미공개 · 이번 모형 제외
Churn0/112평가할 정답 · 입력 제외

Complains와 Status 두 코드만 사용하는 작은 모형을 택했습니다. 숫자 2가 1의 두 배라는 양적 뜻은 부여하지 않습니다. Customer Value는 제공자가 첫 9개월 입력이라고 설명하지만 계산식을 재현할 수 없어 제외합니다. 이 선택만으로 그 열을 사후 정보나 입증된 누수라고 단정하지 않습니다. Charge Amount도 0~9 순서 코드이며 실제 통화 금액으로 계산하지 않습니다. 모든 행과 원 필드는 내려받는 자료에 남깁니다.

저자가 선언한 원행 분할 · 공개자의 원래 분할이 아님
역할행 수이탈 정답 수해당 역할 내 이탈 비율
학습18903110.164550
검증·임계값 선택630950.150794
고정 후 평가630890.141270
먼저 생각한 뒤 풀이 보기: 실제 이탈 정답이 495개라면 고객 한 명의 이탈확률도 495/3150인가요?

495/3150은 보관된 행의 기술적 비율입니다. 조건·표집·시간이 다른 한 고객의 알려진 확률이라는 뜻은 아닙니다. 이번 기준선조차 평가 정답을 섞지 않으려고 학습 1,890행의 311/1890만 사용합니다.

먼저 생각한 뒤 풀이 보기: Status가 비활성 코드이므로 반드시 12개월 정답을 복사한 열인가요?

원 설명은 이 열도 첫 9개월 입력으로 분류합니다. 의미가 비슷하다는 의심과 확인된 시간 누수는 구별합니다. 실제 운영 사용에는 코드 정의·효력 시점·도착 지연을 더 확인해야 하며, 이번 자료만으로 그것을 인증하지 않습니다.

익명 고객 기록 · 학습한 확률과 관측한 정답을 분리하기

원행마다 고정 난수식으로 우선순위를 하나 만들고, 작은 순서대로 1,890행·630행·630행을 학습·검증·평가로 배정합니다. 초기값 9173과 점화식·정렬 순서를 CSV와 Python·R에 모두 공개했습니다. 이 순서는 저자가 계산을 재현하기 위해 정한 것으로, 고객의 실제 발생 순서나 공개자가 정한 고객 구분이 아닙니다. 학습·검증·평가에서 이탈 수가 다른 것도 관측한 분할 결과이지 의도적으로 같은 비율을 맞춘 결과가 아닙니다.

si=(1664525si−1+1013904223) mod 232,s0=9173p^cs=ecs+1ncs+2\begin{aligned}s_i&=(1664525s_{i-1}+1013904223)\\&\qquad\bmod 2^{32},\quad s_0=9173\\\widehat p_{cs}&=\frac{e_{cs}+1}{n_{cs}+2}\end{aligned}

네 코드 집단마다 학습 행 수 n과 이탈 수 e를 세고 (e+1)/(n+2)를 확률 예측값으로 사용합니다. 양쪽에 가상 관측 하나씩을 더하는 Beta(1,1) 평활화를 택한 것입니다. 이는 실제 고객 두 명을 더 관측했다는 뜻이 아닙니다. 완전히 0 또는 1인 확률을 피하는 이번 모형의 선택이며, 알려진 모집단 확률이나 이미 검증된 보정 확률이 아닙니다. 평가 행의 Churn은 예측 입력으로 읽지 않습니다. 학습 행 자신의 정답은 집단 적합에는 기여하므로 학습 행의 성능을 외부 평가라고 부르지 않습니다.

학습 자료에서만 적합한 네 집단 · 소수는 반올림
불만 코드상태 코드학습 행 n이탈 e예측 확률 (e+1)/(n+2)
011358430.032353
023891530.393862
1154360.660714
1289790.879121

입력 13개가 정확히 같은지 따로 감사하면 서로 다른 패턴은 2,836개이고, 역할을 가로질러 등장하는 패턴은 126개·해당 기록은 386개입니다. 같은 입력인데 정답이 다른 패턴도 14개 있습니다. 입력값 일치는 같은 고객의 재측정이라는 증거가 아닙니다. 반대로 원행이 다르다고 서로 독립인 새 고객임을 보장하지도 않습니다. 패턴은 확인용이며 이 감사에서 고객을 합치거나 지우지 않았습니다.

먼저 생각한 뒤 풀이 보기: 동일한 네 집단 확률을 공유하는 고객은 모두 같은 사람인가요?

아닙니다. 두 코드만 쓴 모형이 여러 행에 같은 값을 배정한 것입니다. 예측값의 일치와 원 고객의 동일성은 다른 질문입니다. 13개 입력 전체의 일치도 확인된 식별자를 대신하지 않습니다.

먼저 생각한 뒤 풀이 보기: 가상 관측을 더했으니 원래 이탈 총수 495도 바뀌나요?

495는 원 기록의 정답 합계로 유지됩니다. 가상 개수는 확률 계산의 분자·분모에만 쓰는 모형 선택입니다. 원자료의 빈도표에 실제 고객처럼 합쳐 넣지 않습니다.

기업 인수인계 · 점수·결정·개입 효과는 다른 결과

확률을 계산한 뒤 얼마부터 이탈로 분류할지 정해야 합니다. 이번에는 0.1·0.2·0.3·0.5·0.7·0.9 여섯 임계값만 비교하고, 예측 확률이 임계값 이상이면 양성으로 정합니다. 거짓 양성 FP 하나에 1, 거짓 음성 FN 하나에 4를 주는 가정 점수 FP+4FN을 검증 630행에서 최소화합니다. 동률이면 가장 큰 임계값을 고릅니다. 1과 4는 수업에서 선택한 라벨 오류 벌점이며 실제 원화 비용·고객 가치·접촉으로 막을 수 있는 손실이 아닙니다.

y^i(t)=1{p^i≥t}t∗=arg⁡min⁡t∈T{FPV(t)+4FNV(t)}Brier⁡=1n∑i(p^i−yi)2\begin{aligned}\widehat y_i(t)&=\mathbf1\{\widehat p_i\ge t\}\\t^*&=\arg\min_{t\in\mathcal T}\{FP_V(t)+4FN_V(t)\}\\\operatorname{Brier}&=\frac1n\sum_i(\widehat p_i-y_i)^2\end{aligned}
검증 자료에서 선택한 규칙 · 평가 정답은 선택에 쓰지 않음
모형선택 임계값검증 FP검증 FN가정 점수
학습 이탈률 기준선9/10095380
불만·상태 네 집단 모형3/108618158

학습 적합과 임계값을 그대로 고정한 뒤 마지막 630행을 평가합니다. 두 모형을 같은 행·같은 정답으로 비교하며, 이 점수를 보고 임계값을 다시 고르면 그 자료는 더 이상 손대지 않은 최종 평가가 아닙니다. 확률 점수 Brier는 작을수록 좋고, ROC AUC는 양성·음성 쌍에서 양성의 점수가 더 큰 비율에 동률의 절반을 더한 값입니다. AUC와 분류 임계값은 다른 질문이며 어느 하나도 확률 보정이나 개입 효과를 자동 인증하지 않습니다.

동일한 보관 평가 630행 · 실제 정답과 고정 규칙의 대조
모형TPFPFNTN정확도재현율
학습 이탈률 기준선00895410.8587300.000000
불만·상태 네 집단 모형848654550.8555560.943820
확률 점수와 분모 · 소수는 반올림, 미정의 값은 보존
모형정밀도Brier로그손실ROC AUC
학습 이탈률 기준선미정의 · 양성예측 00.1218550.4093140.500000
불만·상태 네 집단 모형0.4941180.0574730.1976870.930092

누수의 차이를 직접 보려면 별도의 잘못된 예를 비교합니다. 평가 Churn을 그대로 예측값에 복사하면 FP=FN=0, 정확도=AUC=1, Brier=로그손실=0이 됩니다. 정답을 읽었기 때문에 완벽해진 것이므로 운영 가능한 모형이 아닙니다. 이 예는 학습·검증 선택에 섞지 않습니다. 반면 Customer Value나 Status에 대한 의심은 원 시각·계산식 증거를 더 확인해야 하며, 단지 점수가 좋다는 이유로 같은 복사 누수라고 단정하지 않습니다.

다음 담당자가 알아야 할 인수인계 요약 · 전체 12항목은 CSV
항목이번 보고서가 말하는 범위
목표·시점12개월 이탈; 달력일 미제공
입력 계약첫 9개월 설명; 행별 도착 시각 미확인
분할·식별원행 분할; 같은 고객·독립성 미인증
적합·선택학습 확률; 검증 임계값; 평가 고정
성과·개입내부 평가; 미래 성능·접촉 효과 미확인
출처·재현UCI·CC BY4.0·원본 지문·Python/R
먼저 생각한 뒤 풀이 보기: 재현율 84/89이면 연락한 고객 중84/89를 붙잡을 수 있나요?

아닙니다. 재현율은 기록된 실제 이탈 89명 가운데 84명을 양성으로 분류했다는 뜻입니다. 연락 여부·처치 전후의 잠재 결과·연락 비용은 이 자료에서 식별하지 않았습니다. 유지 정책의 효과를 알려면 적절한 실험이나 추가 식별 가정이 필요합니다.

먼저 생각한 뒤 풀이 보기: 기준선 정밀도를0으로 채워야 그래프가 깔끔하지 않나요?

양성예측이 없어 TP+FP=0입니다. 0/0은 이 정의에서 미정의이므로 빈 값과 이유를 유지합니다. 재현율0이나 정확도541/630과는 다른 상태입니다. 정의되지 않은 지표를 계산 가능한0으로 바꾸면 비교의 뜻이 달라집니다.

먼저 생각한 뒤 풀이 보기: 최종 점수가 좋으니 지금 바로 이란 전국에 배포해도 검증된 건가요?

이번 결과는 같은 보관 자료 안에서 선언한 원행 분할을 평가한 것입니다. 시간외·새 고객·다른 기업·현재 국가 표본으로 검증하지 않았습니다. 실제 배포에는 시각·코드·허용 목적·모니터링·개입 설계 등 이 보고서에 없는 근거가 더 필요합니다. 계산이 재현된 것과 운영 성과가 확인된 것을 구별합니다.

Source scope · Which population and prediction time are actually recorded?

Use 3,150 actual anonymous customer rows from the UCI Iranian Churn dataset. This source-scope case is not a national churn-rate comparison: first ask where records came from and whom they describe. The provider identifies one Iranian telecom database, without naming the firm, customers or a national sampling frame. A proportion in these rows is not a rate for all Iranian residents or telecom firms. Compare all fourteen original ZIP columns with the retained copy and separate thirteen inputs from the Churn target.

Official documentation describes inputs aggregated over the first nine months and the target at month twelve, leaving a three-month planning gap. Individual rows do not supply calendar start dates, input-arrival timestamps or customer-specific observation end dates. A stated aggregation window differs from verifying that a field had actually arrived at an operational prediction moment. Without additional time records this exercise cannot certify out-of-time performance. The 2020 donation date and the 2026 download date are not observation years.

Documented windows and chosen use · per-row arrival times are unverified
Source variableCode/valueDocumented monthsMeaning in this chapter
Complains0/11–9No complaint/complaint
Status1/21–9Active/non-active codes
Customer Valuecalculated1–9Formula unavailable; excluded here
Churn0/112Outcome for evaluation; excluded from inputs

Choose a small model using only Complains and Status. These are category codes: status 2 is not twice status 1 as a measured quantity. Exclude Customer Value because its calculation cannot be reproduced, while preserving the producer’s first-nine-month description. This does not prove that the field is post-outcome information or leakage. Charge Amount is also an ordinal 0–9 code, not an observed currency amount. Retain every source row and field in the download.

Author-declared row split · not a publisher-supplied split
RoleRowsRecorded churn outcomesWithin-role churn fraction
Training18903110.164550
Validation/threshold choice630950.150794
Held-out evaluation630890.141270
Think first, then reveal: Do 495 recorded churns imply a known probability of 495/3150 for a customer?

That fraction describes retained rows. It is not automatically a known probability for someone with a different context, selection mechanism or time. Even the baseline uses only 311/1890 training outcomes, preserving held-out evaluation labels.

Think first, then reveal: Does a non-active Status code necessarily copy the month-twelve target?

The provider classifies it as a first-nine-month input. A concern based on meaning is not verified temporal leakage. Operational use needs code definitions, effective dates and arrival delays; this archive alone does not certify those conditions.

Anonymous customer records · Separate fitted probabilities from observed outcomes

Give each original row one priority from a fixed recurrence, sort priorities and assign 1,890/630/630 rows to training/validation/evaluation. Publish seed 9173, the recurrence and ordering in CSV and Python/R. This is an author-chosen reproducibility rule, not customer chronology or a publisher-supplied customer grouping. Different event counts across roles are observed split results; no stratification forces equal proportions.

si=(1664525si−1+1013904223) mod 232,s0=9173p^cs=ecs+1ncs+2\begin{aligned}s_i&=(1664525s_{i-1}+1013904223)\\&\qquad\bmod 2^{32},\quad s_0=9173\\\widehat p_{cs}&=\frac{e_{cs}+1}{n_{cs}+2}\end{aligned}

For each code cell, count training rows n and churns e and predict (e+1)/(n+2). This chosen Beta(1,1) smoothing adds one pseudo-count to each outcome; it does not observe two extra customers. It avoids probabilities of exactly zero/one in this model but is neither known population truth nor certified calibration. A held-out row’s Churn is not read as a prediction input. A training row’s label does contribute to fitting its cell, so training-row performance is not external evaluation.

Four cells fitted only on training data · decimals rounded
Complaint codeStatus codeTraining rows nChurns ePredicted (e+1)/(n+2)
011358430.032353
023891530.393862
1154360.660714
1289790.879121

A separate audit finds 2,836 distinct exact thirteen-input patterns. Of these, 126 cross split roles, involving 386 records; 14 patterns have differing outcomes. Matching inputs do not prove repeated measurements of one customer. Distinct row positions also do not prove independent new customers. This is an audit, without merging or deleting customers by pattern.

Think first, then reveal: Are customers sharing a fitted cell probability necessarily the same person?

No. A two-code model assigns the same value to multiple records. Equality of predictions is different from source identity. Even agreement on all thirteen inputs cannot replace a verified identifier.

Think first, then reveal: Do the pseudo-counts change the source total of 495 churns?

No. Keep 495 as the sum of source outcomes. Pseudo-counts affect a model’s probability formula, not the observed frequency table.

Prediction handover · Scores, decisions and intervention effects are different results

After fitting probabilities, choose a classification threshold. Compare only 0.1, 0.2, 0.3, 0.5, 0.7 and 0.9; predict positive at or above the threshold. On 630 validation rows, minimize the assumed label-error penalty FP+4FN, breaking ties toward the largest threshold. Penalties 1 and 4 are classroom choices, not observed currency costs, customer value or losses preventable by contacting customers.

y^i(t)=1{p^i≥t}t∗=arg⁡min⁡t∈T{FPV(t)+4FNV(t)}Brier⁡=1n∑i(p^i−yi)2\begin{aligned}\widehat y_i(t)&=\mathbf1\{\widehat p_i\ge t\}\\t^*&=\arg\min_{t\in\mathcal T}\{FP_V(t)+4FN_V(t)\}\\\operatorname{Brier}&=\frac1n\sum_i(\widehat p_i-y_i)^2\end{aligned}
Validation-selected rules · evaluation labels excluded from selection
ModelSelected thresholdValidation FPValidation FNAssumed penalty
Training-rate baseline9/10095380
Complaint/status four-cell model3/108618158

Freeze probability fitting and thresholds before evaluating the final 630 rows. Compare both models on the same records/outcomes. Retuning after seeing these scores would reuse the final evaluation data. Smaller Brier scores are better; ROC AUC counts positive–negative pairs ordered correctly plus half the tied pairs. AUC and a classification threshold answer different questions. Neither certifies calibration or intervention effects.

Same 630 retained evaluation rows · source outcomes versus frozen rules
ModelTPFPFNTNAccuracyRecall
Training-rate baseline00895410.8587300.000000
Complaint/status four-cell model848654550.8555560.943820
Probability scores and denominators · rounded decimals, undefined preserved
ModelPrecisionBrierLog lossROC AUC
Training-rate baselineUndefined · no predicted positives0.1218550.4093140.500000
Complaint/status four-cell model0.4941180.0574730.1976870.930092

Keep one separately labeled invalid demonstration: copy each evaluation Churn into its prediction. Then FP=FN=0, accuracy=AUC=1 and Brier=log loss=0. It is perfect because it reads the answer, not because it can operate at prediction time. Never include it in training or threshold selection. Concerns about Customer Value or Status instead need evidence about timing/formulas; a good score alone does not prove the same target-copy leakage.

Handover summary · all twelve items are downloadable
ItemScope of this report
Prediction target/timeMonth-twelve churn; calendar dates unavailable
Input contractFirst-nine-month description; per-row arrivals unverified
Split/identityRow split; identity/independence unverified
Fit/selectionTraining probabilities; validation thresholds; frozen evaluation
Performance/actionInternal evaluation; future performance/contact effects unknown
Source/reproductionUCI/CC BY4.0/source hashes/Python/R
Think first, then reveal: Does recall 84/89 mean contact would retain 84/89 customers?

No. It means 84 of 89 recorded churn outcomes were classified positive. Contact decisions, potential outcomes under alternative actions and contact costs are not identified here. Retention effectiveness needs suitable experiments or further identification assumptions.

Think first, then reveal: Should baseline precision be filled with zero for a cleaner plot?

There are no predicted positives, so TP+FP=0. Preserve undefined 0/0 and its reason. This differs from recall zero or accuracy 541/630; replacing an undefined quantity with a measured zero changes the comparison.

Think first, then reveal: Does a good held-out score validate immediate nationwide deployment?

This evaluates a declared row split within one retained archive. It does not validate future times, verified new customers, other firms or a current national population. Operational use needs evidence beyond this report, including timing, codes, intended uses, monitoring and intervention design. Reproducible arithmetic differs from demonstrated operational benefit.

기초Foundations

48. 더 읽기 · 정보 경로와 결정 문턱48. Further reading · Information flow and decision thresholds

scikit-learn 공식 문서의 §12.2에서는 예측 순간에 없는 정보를 모형 작성에 쓰는 누수, 학습에서만 전처리를 적합하고 다른 자료에는 같은 변환을 적용하는 범위를 읽습니다. §3.3에서는 확률·점수를 학습하는 문제와 결정을 내리는 문제를 나누고, §3.3.1.2에서는 이미 적합한 모형의 문턱을 같은 적합 자료에서 조정하는 위험을 읽습니다. 이 장은 그 라이브러리를 실행하거나 자동 교차검증을 수행했다고 주장하지 않습니다.

참고자료의 StatQuest 혼동행렬 영상은 이 페이지의 표준 플레이어에서 봅니다. 먼저 TP·FP·FN·TN이 세는 대상을 자신의 말로 적고 실제 시험 네 칸을 다시 채우세요. Berkeley의 Breiman 공식 소개는 예측 연구를 읽는 출발점이며 이 네 셀 모형을 랜덤포리스트로 이름 붙이는 근거는 아닙니다.

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

Read official scikit-learn §12.2 for prediction-time information, training-only preprocessing fits and consistent transformations. In §3.3 separate probability/score learning from decisions; §3.3.1.2 discusses threshold tuning of a fitted model on separate data. These references do not imply that this chapter executed scikit-learn or automatic cross-validation.

Use the page’s standard reference player for the StatQuest confusion-matrix video. State the meaning of all four cells before filling the actual test table. Berkeley’s official Breiman profile introduces prediction research; it does not turn this four-cell model into a random forest.

Python · R · Inputs, units, transformations and sources

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

자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.

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

결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.

영상·학자·함께 읽기Videos, thinkers and guided reading

본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.

StatQuest · 혼동행렬을 네 칸으로 읽기StatQuest · Read the four cells of a confusion matrix

StatQuest with Josh Starmer · Machine Learning Fundamentals

네 칸이 무엇을 세는지 확인한 뒤 이번 630행 결과를 직접 채웁니다. 행·열의 표기 관례보다 실제 정답과 예측의 정의를 먼저 적습니다.Identify what each cell counts, then fill the four cells for the 630-row evaluation. State actual-outcome and prediction meanings before relying on a display convention.

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

보고 읽은 뒤 답하기Respond after watching/reading FN5는 연락해서5명을 놓쳤다는 관측인가요?Does FN=5 observe five customers missed by an actual contact program?

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

고정 분류가 실제 이탈5행을 음성으로 예측했다는 뜻이며 실제 접촉 효과는 관측하지 않았습니다.It counts five churn rows classified negative; actual contact effects are unobserved.

레오 브라이먼 · 예측 결과를 어떻게 확인할까Leo Breiman · How should prediction be checked?

University of California, Berkeley · official faculty memorial page

공식 소개의 분류·예측 연구에서 출발해, 모형이 무엇을 출력하고 어느 자료로 그 출력을 확인하는지 질문합니다. 이번 네 집단 모형을 랜덤포리스트라고 부르지 않습니다.Use the official account of classification/prediction research to ask what a model outputs and which data check it. The present four-cell model is not a random forest.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 복잡한 모형이면 평가 정답을 적합에 써도 되나요?May a sophisticated model fit using its evaluation labels?

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

복잡도와 관계없이 평가 선택에 들어간 정보와 손대지 않은 평가의 역할을 구별합니다.Regardless of complexity, separate information used for fitting/selection from held-out evaluation.

scikit-learn 공식 · 예측 시점 정보와 누수Official scikit-learn · Prediction-time information and leakage

scikit-learn User Guide · Common pitfalls · §12.2

§12.2의 시점 정보·학습/평가 분리와 전처리 적합 원칙을 읽습니다. 이 장의 계산은 Python 표준 라이브러리·base R이며 scikit-learn을 실제 실행했다고 주장하지 않습니다.Read §12.2 on prediction-time information, held-out data and fitting preprocessing. Calculations here use Python stdlib/base R; this is not a claim to have executed scikit-learn.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 평가자료 평균을 쓰는 전처리는 정답 열을 안 읽어도 누수가 될 수 있나요?Can preprocessing with evaluation means leak information without reading target labels?

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

평가 분포 정보가 적합에 들어가므로 선언한 검증 절차를 어길 수 있습니다. 어디까지 적합에 사용했는지 기록합니다.It lets evaluation-distribution information influence fitting and may violate the declared evaluation protocol. Record what data fitted each transformation.

scikit-learn 공식 · 확률 적합과 임계값 선택의 분리Official scikit-learn · Separate probability fitting from threshold choice

scikit-learn User Guide · §3.3 and §3.3.1.2

확률 예측과 결정 규칙을 나누는 도입, 이미 적합한 모형의 임계값을 새 검증 자료에서 고르는 주의사항을 읽습니다. 자동 교차검증 대신 이번 명시적 세 역할 절차를 추적합니다.Read the probability/decision distinction and the warning about choosing a fitted model’s threshold on separate validation data. Trace this explicit three-role procedure rather than assuming automatic cross-validation was run.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 평가 결과를 보고 가장 좋은 임계값을 고른 뒤 같은 점수를 최종 성능이라 써도 되나요?May the best threshold selected on evaluation results be reported with that same final score?

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

그 자료가 선택에 쓰였으므로 별도 최종 평가와 같지 않습니다. 선택과 보고의 자료 역할을 드러내야 합니다.Those data have been used for selection, so they are not an untouched final evaluation. Disclose each data role.

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

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

1. 여덟 행의 세 역할Three roles for eight rows

설명용 표를 학습 4행·검증 2행·시험 2행으로 나눕니다. 확률은 학습 정답으로 적합하고 문턱은 검증 벌점으로 고른다고 정했습니다. 각 역할의 일과 시험 정답을 선택에 쓰지 않는 이유를 설명하세요.

Divide eight illustrative rows into four training, two validation and two test rows. Fit probabilities using training outcomes and select a threshold using validation penalties. State each role and explain why test outcomes do not select the threshold.

풀이와 확인할 이유Solution and explanation

학습은 확률 적합, 검증은 문턱 선택, 시험은 그 선택을 잠근 뒤 채점입니다. 시험을 보고 문턱을 고치면 그 자료가 선택에도 들어가므로 손대지 않은 시험 평가와 달라집니다. 합계는 8행이며 서로 다른 원행이라는 선언만으로 고객 독립성은 증명되지 않습니다.

Training fits probabilities, validation chooses the threshold and test scores the locked choice. Retuning on test changes that dataset into selection information. Counts sum to eight; disjoint source positions alone do not establish independent customers.

2. 실제 원행의 이탈 비율Churn fraction in the retained source

보관 통신 표는 3,150행이며 이탈 정답 y=1은 495행입니다. 표 전체의 이탈 비율을 기약분수로 구하고 이 수를 국가 전체 미래 이탈 확률이라고 부를 수 있는지 쓰세요.

An archived telecom table has 3,150 rows, including 495 outcomes y=1. Reduce its churn fraction and discuss whether it is a national future churn probability.

풀이와 확인할 이유Solution and explanation

495/3150=11/70입니다. 이것은 이 보관 표의 비율입니다. 국가 전체의 표집·대표성·미래 분포를 추가로 주지 않았으므로 그 집단의 미래 참확률로 바꾸지 않습니다. 원 3,150행과 분모를 함께 보고합니다.

The fraction is 11/70. It describes this retained table. No national sampling, representativeness or future-distribution condition was supplied. Report the source denominator rather than renaming it a future population truth.

3. 이탈 0인 한 행의 평활Smooth one nonchurn training row

한 셀의 기여 학습 행 n=1, 이탈 e=0입니다. 각 결과 개수에 a=1을 더해 p=(e+a)/(n+2a)를 계산하세요. 추가한 두 개가 관측 고객인지도 쓰세요.

A cell has n=1 contributing training row and e=0 churn outcomes. Use a=1 in p=(e+a)/(n+2a). Are the two added counts observed customers?

풀이와 확인할 이유Solution and explanation

p=1/3입니다. 원 고객은 한 행이고 추가한 두 개는 평활 규칙의 가상 개수입니다. 실제 고객 세 명 중 한 명이 이탈했다고 관측한 것이 아닙니다.

The fitted probability is 1/3. There is one observed row; the added counts implement smoothing. They are not two additional customers or an observed one-out-of-three rate.

4. 이탈 1인 한 행의 평활Smooth one churn training row

한 셀의 n=1, e=1, a=1이고 p=(e+a)/(n+2a)입니다. p와 관측 이탈 비율 e/n을 비교하세요.

For n=1, e=1 and a=1, compare p=(e+a)/(n+2a) with the observed fraction e/n.

풀이와 확인할 이유Solution and explanation

관측 비율은 1, 평활 확률은 2/3입니다. 두 숫자의 계산 규칙이 다릅니다. 작은 관측 셀을 1/2 방향으로 당긴 선택이며 미래 정답을 확정한 것은 아닙니다.

The observed fraction is one and the smoothed probability 2/3. These use different rules. Smoothing pulls the tiny cell toward one half without determining a future individual outcome.

5. 같은 부분집합의 기준선Baseline on the same contributing subset

완전한 학습 네 행의 정답이 (0, 0, 1, 1)입니다. 입력을 무시하는 기준선 p_base=이탈 수/기여 행 수를 구하고 네 셀 모형과 비교할 때 같은 기여 집합을 쓰는 이유를 쓰세요.

Four complete training outcomes are (0, 0, 1, 1). Compute the input-free baseline rate and explain using the same contributing subset as a four-cell model.

풀이와 확인할 이유Solution and explanation

p_base=2/4=1/2입니다. 같은 집합을 사용하면 적합 분모를 바꾼 효과와 모형을 바꾼 효과를 섞지 않습니다. 기준선도 같은 평가 행과 점수로 채점해야 비교 범위를 읽기 쉽습니다.

The baseline is one half. Matching the fitting subset avoids mixing a denominator change with a model change. Compare scores on the same evaluation rows and definitions as well.

6. 평활을 1에서 2로Change smoothing from one to two

n=e=1인 셀에서 p(a)=(e+a)/(n+2a)입니다. a=1과 2의 확률과 p(2)−p(1)을 구하세요.

A cell has n=e=1 and p(a)=(e+a)/(n+2a). Find p(1), p(2) and their difference p(2)−p(1).

풀이와 확인할 이유Solution and explanation

p(1)=2/3, p(2)=3/5이며 차이는 −1/15입니다. 둘 다 같은 원행 한 개에서 계산한 다른 평활 강도입니다. 더 낮아졌다는 사실만으로 미래 예측이 더 좋아졌다고 판단하지 않습니다.

They are 2/3 and 3/5, giving difference −1/15. Only the smoothing rule changed. A lower prediction does not by itself establish better future performance.

7. 열 행의 가중평균 표현A weighted representation for ten rows

n=10, e=2, a=1에서 p=(e+a)/(n+2a)를 구하고 p=[n/(n+2a)](e/n)+[2a/(n+2a)](1/2)와 맞는지 확인하세요.

Take n=10, e=2 and a=1. Compute p=(e+a)/(n+2a), then verify the weighted representation using weights n/(n+2a) and 2a/(n+2a) on e/n and one half.

풀이와 확인할 이유Solution and explanation

p=3/12=1/4입니다. 가중치는 5/6과 1/6이고 (5/6)(1/5)+(1/6)(1/2)=1/4입니다. 두 가중치는 합 1이며 관측 비율 1/5과 1/2 사이에 있습니다.

The probability is one quarter. Weights 5/6 and 1/6 give (5/6)(1/5)+(1/6)(1/2)=1/4, between the observed fraction one fifth and one half.

8. 빈 셀과 가상 개수An empty cell and added counts

다른 셀에는 기여 학습 자료가 있지만 현재 셀은 n=e=0입니다. p=(e+a)/(n+2a)에서 a=1과 0을 비교하고 왜 관측 비율이 아닌지 쓰세요.

Training data contribute in other cells, but one cell has n=e=0. Compare a=1 and a=0 in p=(e+a)/(n+2a), and explain the absence of an observed rate.

풀이와 확인할 이유Solution and explanation

a=1은 1/2이고 추가 개수만의 결과입니다. a=0은 0/0으로 미정의입니다. 이 셀의 관측 행 수는 두 경우 모두 0이어서 절반이 이탈했다는 관측은 없습니다.

At a=1 the added counts alone give one half. At a=0 the expression is undefined zero over zero. The observed cell count remains zero in both cases.

9. 미가용 정답을 0으로 바꾸지 않는다Do not turn an unavailable outcome into zero

학습 네 행의 두 입력은 모두 가용하고 정답은 (0, 0, 1, 미가용)입니다. 두 모형에 같은 완전 부분집합을 쓰는 규칙에서 원행 수·기여 수·기준선 이탈 확률을 구하세요.

Four training rows have complete input features but outcomes (0, 0, 1, unavailable). Both models use the same complete contributing subset. Find source count, contributing count and baseline rate.

풀이와 확인할 이유Solution and explanation

원행은 4, 기여 행은 3, 기여 이탈은 1이라 기준선은 1/3입니다. 미가용을 0으로 바꾸면 다른 분모와 값 1/4가 되므로 같은 계산이 아닙니다. 미가용 원행은 삭제하지 않고 기여 제외 상태를 남깁니다.

There are four source rows and three contributors, one positive, giving baseline 1/3. Filling the missing target with zero would instead produce 1/4. Retain the original row and its excluded-from-fit status.

10. 조회 정답만 바꾼다Change only the query outcome

고정 학습 모형이 새 입력에 p=1/3을 줍니다. 조회 정답을 0에서 1로 바꾸어도 적합에는 사용하지 않습니다. 예측 확률과 한 행의 제곱손실 (p−y)²는 각각 어떻게 되나요?

A fixed training fit gives a new input probability 1/3. Change the query outcome from zero to one without fitting on it. What happens to the probability and squared loss (p−y)²?

풀이와 확인할 이유Solution and explanation

확률은 1/3 그대로입니다. 손실은 1/9에서 4/9로 바뀝니다. 예측을 만드는 단계와 정답으로 채점하는 단계가 다르기 때문입니다. 정답을 바꿀 때 확률도 바뀌면 선언한 조회 경로를 다시 확인해야 합니다.

The probability stays 1/3 while loss rises from 1/9 to 4/9. Prediction and outcome-based scoring are different stages. A changed probability would require checking the declared information path.

11. 예측 시점의 세 항목Three fields at the prediction cutoff

예측은 9개월 끝, 정답 확인은 12개월 끝입니다. 후보 열은 8개월에 완료되는 입력 a, 10개월에 완료되는 입력 b, 12개월 정답 y입니다. 예측 입력으로 쓸 수 있다는 선언·늦은 입력·정답 입력을 구별하세요.

Prediction is at the end of month nine and outcomes at the end of month twelve. Candidate a is an input completed in month eight, b in month ten and y the month-twelve target. Classify their declared information roles.

풀이와 확인할 이유Solution and explanation

a는 선언한 시점 안의 입력 후보, b는 시점 이후 입력, y는 나중 정답이라 입력으로 쓰면 정답을 미리 사용합니다. 이 선언만으로 원행별 시스템 이용 가능 시각을 직접 검증한 것은 아닙니다.

a is a declared timely candidate, b is after the cutoff and y is the later target, invalid as an input. These declarations do not independently verify actual row-level availability.

12. 미확인 시각은 늦었다는 관측이 아니다Unknown timing is not an observed delay

제공자 설명은 입력 1~9개월·정답 12개월이라고 합니다. 원행별 날짜·시스템 로그는 없습니다. 무엇을 읽어 알았고 무엇을 아직 확인하지 못했는지 두 문장으로 쓰세요.

Producer documentation describes months 1–9 inputs and month-twelve outcomes. No row dates or system logs are available. State what is known from the description and what remains unverified.

풀이와 확인할 이유Solution and explanation

제공자가 설명한 상대 기간과 명목상 3개월 간격을 읽었습니다. 그러나 각 원행의 실제 달력 시각과 예측 순간의 조회 가능성은 직접 확인하지 못했습니다. 미확인을 관측 지연이나 개별 시점 검증으로 바꾸지 않습니다.

The described relative windows give a nominal three-month gap. Individual calendar times and actual query availability remain unverified. Unknown timing is neither an observed delay nor a row-level certificate.

13. CustomerValue 제외의 뜻Meaning of excluding CustomerValue

어떤 표의 customer_value 계산식을 원입력에서 재현하지 못해 이번 두 특징 모형에서 제외했습니다. 이것만으로 결과 이후 정보를 썼다는 누수가 증명되나요? 다음 확인 항목도 쓰세요.

A customer_value formula cannot be reproduced from source inputs and is excluded from the current two-feature model. Does this prove post-outcome leakage? State what to examine next.

풀이와 확인할 이유Solution and explanation

증명되지 않습니다. 제외 이유는 계산법 미재현입니다. 계산식·그 입력의 측정 기간·예측 시점 이용 가능성을 더 확인해야 합니다. 반대로 이름만으로 실제 수익이나 안전한 시점 정보라고 단정하지도 않습니다.

No. Unreproduced calculation is the exclusion reason. Examine its formula, source periods and prediction-time availability. Its name alone establishes neither profit nor timing safety.

14. 두 범주의 다른 원 코드Different source codes for two categories

설명용 status는 0·1, 실제 표의 status는 1·2입니다. 셀 n=10, e=3, a=1의 확률은(e+a)/(n+2a)입니다. 범주 이름을 일관되게 바꾸면 확률이 달라지는지, 원 코드를 왜 남기는지 설명하세요.

Toy status uses 0/1 and the actual table uses 1/2. A cell has n=10, e=3, a=1 and probability (e+a)/(n+2a). Would consistent category renaming change the probability? Why retain source codes?

풀이와 확인할 이유Solution and explanation

확률은 4/12=1/3이며 동일 범주 대응과 같은 행 구성을 유지하면 이름만의 변경으로 달라지지 않습니다. 원 코드·새 코드 대응을 남겨야 서로 다른 셀을 합치거나 의미를 뒤바꾼 오류를 찾을 수 있습니다. 실제 실습은 1·2를 그대로 보존합니다.

It remains one third if the same rows map to the same category. Preserve any mapping to detect merged or swapped categories. The actual lab retains original codes one and two.

15. 다른 원행 이름이 주지 않는 결론What distinct source keys do not establish

학습 원행 키는 t1, 시험 원행 키는 s1로 다릅니다. 고객 ID와 날짜는 미제공입니다. 두 행이 독립 고객의 미래 자료라는 결론이 따라오는지 설명하세요.

Training key t1 and test key s1 differ, but customer IDs and dates are unavailable. Does this establish independent customers evaluated in the future?

풀이와 확인할 이유Solution and explanation

따라오지 않습니다. 키가 다른 원위치라는 정보만 있습니다. 같은 고객의 다른 기록인지, 다른 고객인지, 시간 순서가 무엇인지는 별도 정보가 필요합니다. 원행 분리와 고객·시점 분리를 구별합니다.

No. It establishes distinct source positions. Customer identity, repeated records and calendar ordering require additional information. Row-role separation differs from customer/time separation.

16. 학습 내 조회와 정답 복사In-sample queries versus copying a target

한 원행이 학습에 포함되어 셀 확률 적합에 정답을 기여했습니다. 같은 원행을 허용된 학습 내 조회로 다시 예측하되 정답 자체를 입력 특징으로 복사하지 않았습니다. 손대지 않은 시험 예측인지와 두 정보 사용을 구별하세요.

A row’s outcome contributed to fitting cell probabilities. Query the same row in an explicitly allowed in-sample mode, without copying its target as a feature. Is this an untouched test prediction? Distinguish the two information uses.

풀이와 확인할 이유Solution and explanation

손대지 않은 시험 예측은 아닙니다. 그 정답은 적합에 사용되었고 학습 내 조회임을 표시해야 합니다. 다만 정답을 그대로 특징으로 복사했다는 별도 주장도 자동으로 따라오지는 않습니다. 적합 기여와 직접 복사를 각각 기록합니다.

No. Its outcome contributed to fitting and the query must be labeled in-sample. That fact does not automatically mean direct target copying occurred. Record fitting contribution and direct copying separately.

17. 적합 자료 전체가 없을 때No contributing fitting data

기여 학습 행 전체가 0입니다. 이 장 API는 데이터 적합을 수행했다고 표시하지 않는다고 정했습니다. a=1이라는 입력만으로 네 셀과 기준선을 적합 확률로 채워도 되는지 설명하세요.

There are no contributing training rows. The API explicitly reports no observed-data fit. Does a=1 alone justify filling all cells and the baseline as fitted probabilities?

풀이와 확인할 이유Solution and explanation

이번 계약에서는 채우지 않습니다. 다른 셀에 자료가 있는 상태의 빈 셀 1/2과 전체 적합 자료 부재는 다릅니다. 별도의 사전 모형은 선언할 수 있지만 현재 API가 실제 관측을 적합한 것으로 바꾸지 않습니다.

Not under this contract. A prior-filled empty cell within an otherwise fitted model differs from absence of all fitting data. A separate prior-only model could be declared, but is not silently substituted here.

18. 평활 확률의 범위Range of a smoothed probability

정수 0≤e≤n, a≥0, n+2a>0에서 p=(e+a)/(n+2a)입니다. 0≤p≤1을 증명하세요.

Assume integer counts 0≤e≤n, a≥0 and n+2a>0. Prove that p=(e+a)/(n+2a) belongs to [0, 1].

풀이와 확인할 이유Solution and explanation

분자는 비음수입니다. 또 e+a≤n+a≤n+2a이고 분모가 양수이므로 나누면 상한 1을 얻습니다. 분모 양수 조건이 없으면 n=e=a=0의 0/0을 포함하므로 필요합니다.

The numerator is nonnegative and e+a≤n+a≤n+2a. Division by the positive denominator gives the bound. Without that condition, n=e=a=0 would leave undefined zero over zero.

19. 평활의 가중평균 항등식Weighted smoothing identity

n>0, 0≤e≤n, a≥0입니다. (e+a)/(n+2a)=[n/(n+2a)](e/n)+[2a/(n+2a)](1/2)을 증명하고 두 가중치의 합을 구하세요.

For n>0, 0≤e≤n, a≥0, prove the weighted representation of (e+a)/(n+2a) using weights n/(n+2a) and 2a/(n+2a) on e/n and one half. Find their sum.

풀이와 확인할 이유Solution and explanation

오른쪽 첫 항은 e/(n+2a), 둘째는 a/(n+2a)이므로 합이 왼쪽입니다. 가중치 합은(n+2a)/(n+2a)=1입니다. n>0은 e/n이 정의되는 조건이고 각 가중치도 비음수입니다.

The terms simplify to e/(n+2a) and a/(n+2a). Their sum is the smoothed probability; the two nonnegative weights sum to one. Positive n is required for e/n.

20. 다른 가용 예측 분모Different prediction-availability denominators

시험 원행 3개 모두 정답은 가용입니다. 셀 모형은 입력 미가용 때문에 두 행에만 확률이 있고 기준선은 세 행 모두에 확률이 있습니다. 각 채점 분모를 쓰고 공정한 비교에 무엇을 더 보고할지 설명하세요.

All three test outcomes are available. Missing inputs leave cell predictions on only two rows, while the baseline predicts all three. State scoring denominators and what else to report.

풀이와 확인할 이유Solution and explanation

셀 모형의 공동 가용 분모는 2, 기준선은 3입니다. 원행 3과 제외 위치를 보고하고 같은 두 행으로도 비교할 수 있습니다. 서로 다른 집합의 점수 차이를 모두 모형의 우열로 바꾸면 안 됩니다.

The matched denominators are two and three. Retain the original count and excluded positions, and consider a comparison on the same two rows. A score gap across different evaluation sets is not purely a model difference.

21. 문턱의 등호Equality at a threshold

검증 확률은(1/3, 2/3), 정답은(1, 0)입니다. p≥τ를 양성으로 두고 τ=1/3과 2/3에서 TP, FP, FN, TN을 구하세요.

Validation probabilities are (1/3, 2/3) and outcomes (1, 0). Positive means p≥τ. Find TP, FP, FN, TN at thresholds 1/3 and 2/3.

풀이와 확인할 이유Solution and explanation

τ=1/3은 둘 다 양성이어서(1, 1, 0, 0)입니다. τ=2/3은 첫 행 음성·둘째 양성이어서(0, 1, 1, 0)입니다. 등호가 양성이므로 둘째 행은 두 경우 모두 양성입니다.

The counts are (1, 1, 0, 0) at 1/3 and (0, 1, 1, 0) at 2/3. Equality belongs to positive, so the second row is positive in both cases.

22. 네 행의 네 칸Four rows in four cells

p=(1/10, 2/5, 3/5, 9/10), y=(0, 1, 0, 1), τ=1/2이고 양성은 p≥τ입니다. 네 칸, 정확도, FP+4FN을 구하세요.

Use p=(1/10, 2/5, 3/5, 9/10), y=(0, 1, 0, 1), threshold one half and positive p≥τ. Find confusion counts, accuracy and FP+4FN.

풀이와 확인할 이유Solution and explanation

순서대로 TN, FN, FP, TP라 각 칸은 1입니다. 정확도는 2/4=1/2이고 벌점은 1+4=5입니다. 네 칸 합 4와 평가 원행 수가 같은지 확인합니다.

Rows are TN, FN, FP, TP respectively, one per cell. Accuracy is one half and penalty five. The four counts sum to the four evaluated rows.

23. 전체 최소 후보 집합The complete minimum set

검증 p=(1/3, 2/3), y=(1, 0), 양성 p≥τ, 벌점 FP+4FN입니다. 후보 G={1/10, 1/3, 2/3, 9/10}의 벌점을 모두 구하고 최소 집합·가장 큰 최소 문턱을 쓰세요.

Use validation p=(1/3, 2/3), y=(1, 0), positive p≥τ and penalty FP+4FN. Evaluate G={1/10, 1/3, 2/3, 9/10}, finding the minimum set and its largest threshold.

풀이와 확인할 이유Solution and explanation

벌점은 1, 1, 5, 4입니다. 최소 집합은{1/10, 1/3}, 큰 문턱 우선 선택은 1/3입니다. 최소값 1과 선택된 문턱 1/3은 다른 종류의 수입니다.

Penalties are 1, 1, 5, 4. The minimum set is {1/10, 1/3}; the largest-threshold rule selects 1/3. Minimum penalty one differs from the selected threshold.

24. 후보 순서를 뒤집는다Reverse candidate order

고정 후보 1/10과 1/3이 같은 최소 벌점을 주고 다른 후보는 더 크다고 합시다. 동률 규칙은 가장 큰 문턱입니다. 후보 배열 순서를 뒤집으면 선택이 달라지나요? 첫 등장 규칙과도 비교하세요.

Candidates 1/10 and 1/3 tie for minimum penalty and all other candidates cost more. The declared tie rule chooses the largest threshold. Does reversing the candidate array change the choice? Compare a first-listed rule.

풀이와 확인할 이유Solution and explanation

최소 집합이 그대로이므로 가장 큰 1/3은 바뀌지 않습니다. 첫 등장 규칙이라면 배열 순서가 선택에 영향을 줄 수 있습니다. 어떤 동률 규칙을 사용했는지 미리 고정해 보고합니다.

The largest minimum remains 1/3 regardless of order. A first-listed rule can change with order. Preserve the rule declared before inspecting outcomes.

25. 벌점이 모두 0Both penalties are zero

가용 검증 행이 하나 이상이고 후보는 1/10, 1/2, 9/10입니다. FP와 FN의 벌점을 모두 0으로 둡니다. 최소 후보 집합과 큰 문턱 우선 선택을 쓰세요.

At least one matched validation row is available and candidates are 1/10, 1/2, 9/10. Set both FP and FN penalties to zero. Find the minimizing set and largest-threshold selection.

풀이와 확인할 이유Solution and explanation

모든 후보의 총벌점은 0이므로 전체 후보가 최소 집합입니다. 큰 문턱 우선으로 9/10을 고릅니다. 이는 가정 벌점이 모든 오류를 같게 무벌점으로 둔 결과이지 미래 성능의 유일 최적이라는 뜻은 아닙니다.

Every candidate has zero penalty and the rule chooses 9/10. The result follows from the assumed zero-cost objective, not a uniquely optimal future classifier.

26. 벌점을 같은 양수로 배율 변경Scale both penalties positively

유한 비어 있지 않은 후보집합 G에서 L(τ)=aFP(τ)+bFN(τ), a, b≥0입니다. 두 벌점을 같은 λ>0배 하면 최소 집합이 보존됨을 증명하세요.

For finite nonempty G let L(τ)=aFP(τ)+bFN(τ), a, b≥0. Prove that multiplying both penalties by the same λ>0 preserves the minimum set.

풀이와 확인할 이유Solution and explanation

새 손실은 λL(τ)입니다. 양수배는 두 후보 사이의 작음·같음·큼을 모두 보존하므로 argmin 집합도 같습니다. 따라서 동일한 큰 문턱 우선 규칙의 선택도 같습니다. λ=0에는 모든 후보 동률이 될 수 있어 같은 주장을 그대로 하지 않습니다.

The new loss is λL. Positive scaling preserves all orderings and ties, hence the full argmin and its largest member. At λ=0 all candidates can tie, so the same invariance need not hold.

27. 알려진 참확률의 동률A tie under known true probability

이탈 참확률 q를 안다고 가정합니다. 양성 기대 벌점은 1−q, 음성은 4q입니다. q=1/5와 q=1/4에서 두 행동을 비교하세요.

Assume true churn probability q is known. Positive expected loss is 1−q and negative loss 4q. Compare actions at q=1/5 and q=1/4.

풀이와 확인할 이유Solution and explanation

q=1/5에서는 둘 다 4/5로 동률입니다. q=1/4에서는 양성 3/4, 음성 1이라 양성이 유리합니다. 이것은 참확률을 안다는 가정 아래의 비교이며 적합 점수를 이미 참확률로 정한 것은 아닙니다.

At one fifth both cost four fifths. At one quarter positive costs three quarters and negative one, so positive is preferable. This comparison assumes known truth, not a certified fitted score.

28. 다른 벌점의 이론 문턱A theoretical threshold for different penalties

참확률 q∈[0, 1]을 알고 FP벌점 2, FN벌점 3이라고 가정합니다. 양성·음성 기대 벌점을 써서 양성이 약하게 유리한 범위와 동률점을 구하세요.

Assume known q∈[0, 1], FP penalty two and FN penalty three. Derive the range where positive is weakly preferable and the tie point.

풀이와 확인할 이유Solution and explanation

양성은 2(1−q), 음성은 3q입니다. 2−2q≤3q에서 q≥2/5이며 그 점에서 두 기대 벌점은 6/5로 같습니다. 이론적 행동 비교는 어떤 유한 검증 표에서 고른 문턱과 별도 대상입니다.

Compare 2(1−q) with 3q. Positive is weakly preferable at q≥2/5; both cost 6/5 at equality. This known-probability decision differs from an empirical validation minimum.

29. 이론 문턱의 0/0 경계The zero-over-zero threshold boundary

알려진 q∈[0, 1]에서 FP·FN벌점이 모두 0입니다. 일반 문턱식 c_FP/(c_FP+c_FN)을 계산해 0으로 채워도 되나요? 실제 기대 벌점을 비교하세요.

For known q∈[0, 1], both FP and FN penalties are zero. May c_FP/(c_FP+c_FN) be filled with zero? Compare expected action losses directly.

풀이와 확인할 이유Solution and explanation

분수는 0/0이라 미정의입니다. 그러나 양성·음성 기대 벌점은 모두 0이므로 모든 q에서 두 행동이 동률입니다. 식의 미정의와 의사결정 집합을 구별해야 합니다.

The fraction is undefined, but both actions have zero expected loss at every q. Distinguish an undefined formula from the well-defined set of tied actions.

30. 가용 검증이 없는 선택Selection with no available validation rows

후보 G={0, 1}은 있지만 모든 검증 행에서 확률 또는 정답이 미가용입니다. 이번 API는 가용 행 0이면 선택 결과 없음으로 둡니다. 빈 합이 0이라는 사실과 이 정책을 구별하세요.

Candidates are {0, 1}, but every validation row lacks a probability or outcome. This API reports no selected threshold with zero contributors. Distinguish that policy from an empty sum being zero.

풀이와 확인할 이유Solution and explanation

각 빈 합은 대수적으로 0이라 형식적 argmin은 G가 될 수 있습니다. 그러나 데이터가 기여하지 않은 선택을 수행했다고 표시하지 않기로 한 계약이므로 API는 선택 문턱을 미정의로 둡니다. 후보 오류와 평가 자료 부재도 구별합니다.

Algebraic empty sums can make every candidate a formal minimum. The API instead declines to label a data-free choice as validation selection. This is a declared reporting policy, different from an invalid candidate grid.

31. 잠근 시험과 사후 문턱Locked test versus retrospective tuning

학습으로 고정한 시험 확률은 p=(1/3, 2/3), 정답은 y=(0, 1)입니다. 검증에서 고른 τ=1/3을 잠그고 p≥τ를 양성으로 둡니다. 혼동표·정확도·FP+4FN을 구하고, 시험을 본 뒤 τ=2/3으로 바꾼 결과와 평가 역할을 비교하세요.

Fixed test probabilities are (1/3, 2/3), outcomes (0, 1), and validation-selected threshold 1/3 with positive p≥τ. Find confusion counts, accuracy and FP+4FN. Compare retuning to 2/3 after seeing test outcomes.

풀이와 확인할 이유Solution and explanation

잠근 결과는 TP=1, FP=1, FN=0, TN=0이며 정확도는 1/2, 벌점은 1입니다. τ=2/3에서는 TP=1, TN=1로 정확도 1·벌점 0이지만 시험 정답을 선택에 쓴 새 절차입니다. 산술이 맞더라도 손대지 않은 시험 보고와 같은 뜻은 아닙니다.

The locked result is TP=1, FP=1, FN=0, TN=0, accuracy one half and penalty one. Threshold 2/3 gives TP=1, TN=1 and zero penalty, but now uses test outcomes for selection. Correct arithmetic does not make it the original untouched evaluation.

32. 모두 음성인 실제 기준선The actual all-negative baseline

시험 630행에서 TP=0, FP=0, FN=89, TN=541입니다. 정확도·정밀도·재현율·특이도와 FP+4FN을 구하세요. 각각의 분모도 쓰세요.

A 630-row test has TP=0, FP=0, FN=89, TN=541. Find accuracy, precision, recall, specificity and FP+4FN, naming their denominators.

풀이와 확인할 이유Solution and explanation

정확도는 541/630입니다. 정밀도는 분모 TP+FP=0이어서 미정의입니다. 재현율은 0/89=0, 특이도는 541/541=1이며 벌점은 356입니다. 양성을 한 번도 내지 않았다는 사실을 정밀도 0이나 1로 바꾸지 않습니다.

Accuracy is 541/630. Precision is undefined because TP+FP=0. Recall is zero out of 89 and specificity one out of 541. Penalty is 356. No predicted positives does not supply precision zero or one.

33. 실제 셀 모형의 비율Ratios for the actual cell model

시험 630행의 네 칸은 TP=84, FP=86, FN=5, TN=455입니다. 정확도·정밀도·재현율·벌점 FP+4FN을 구하세요.

On 630 test rows, counts are TP=84, FP=86, FN=5, TN=455. Find accuracy, precision, recall and FP+4FN.

풀이와 확인할 이유Solution and explanation

맞은 수는 539라 정확도는 539/630입니다. 정밀도는 84/170=42/85, 재현율은 84/89, 벌점은 86+20=106입니다. 이들은 분류 정답을 비교한 값이며 실제 연락 성과나 유지 수익은 아닙니다.

Accuracy is 539/630, precision 42/85, recall 84/89 and penalty 106. These compare predictions with outcomes rather than measuring contact effects or retention profits.

34. 정확도와 벌점의 다른 순위Different rankings by accuracy and penalty

같은 시험 630행에서 기준선은 맞은 수 541·벌점 356, 셀 모형은 맞은 수 539·벌점 106입니다. 정확도 차이와 벌점 감소를 구하고 하나의 모형이 모든 목적에서 우월한지 설명하세요.

On the same 630 test rows the baseline gets 541 correct with penalty 356; cells get 539 correct with penalty 106. Compute the accuracy difference and penalty reduction. Is one model superior for every objective?

풀이와 확인할 이유Solution and explanation

기준선 정확도는 2/630=1/315만큼 높고 셀 모형의 벌점은 250 작습니다. 정확도와 가정 비용 목적이 다르므로 순위가 다를 수 있습니다. 가정 벌점 106을 실제 이익 106으로 바꾸지 않고 선택 목적을 보고합니다.

Baseline accuracy exceeds cells by 1/315. Cell penalty is 250 lower. Different objectives can rank models differently. Report the specified objective without renaming assumed penalty points as actual profit.

35. 두 행의 Brier 점수Brier score for two rows

p=(1/3, 2/3), y=(0, 1)이고 평균 Brier 점수는 [(p₁−y₁)²+(p₂−y₂)²]/2입니다. 값을 구하고 문턱만 바꾸면 달라지는지 쓰세요.

For p=(1/3, 2/3) and y=(0, 1), compute the mean squared probability error. Does changing only the threshold alter it?

풀이와 확인할 이유Solution and explanation

각 항은 1/9라 평균은 1/9입니다. 문턱이 식에 없고 p, y가 고정되어 있으므로 문턱만 바꾸어도 같습니다. 혼동표가 달라지는 것과 모순이 아닙니다.

Both errors are 1/9, so the mean is 1/9. The threshold does not appear and p, y stay fixed. An unchanged Brier score can accompany a changed confusion matrix.

36. 기대 제곱손실의 최소Minimum expected squared probability loss

Y∼Bernoulli(q), q=3/4라고 가정합니다. 고정 예측 p의 기대손실은 E[(p−Y)²]=(p−q)²+q(1−q)입니다. p=1/2와 p=3/4를 비교하세요.

Assume Y is Bernoulli with q=3/4 and expected loss (p−q)²+q(1−q). Compare fixed predictions p=1/2 and 3/4.

풀이와 확인할 이유Solution and explanation

p=1/2에서는 1/16+3/16=1/4, p=3/4에서는 3/16입니다. 차이 1/16은 (p−q)²입니다. 기대손실의 최소 성질이며 유한 자료에서 한 번 더 낮은 점수를 받았다고 참확률을 알아낸 것은 아닙니다.

Losses are 1/4 and 3/16. Their difference 1/16 is the squared probability miss. This is an expected-score property, not a claim that one finite low score reveals the true probability.

37. 관측 사건의 자연로그Natural log of the observed event

시험 확률은 p=(1/3, 2/3), 정답은 y=(0, 1)입니다. 관측 사건 확률은 y=1이면 p, y=0이면 1−p입니다. 두 행의 평균 자연로그 손실을 구하세요.

Test probabilities are (1/3, 2/3), outcomes (0, 1). Use event probability p for y=1 and 1−p for y=0. Find mean natural-log loss.

풀이와 확인할 이유Solution and explanation

두 행 모두 관측 사건에 2/3을 주어 손실은 각각 −log(2/3)=log(3/2)입니다. 평균도 같습니다. 이는 자연로그의 실수값이며 1/9인 Brier 점수와 다른 척도입니다.

Both observed events receive 2/3. Each loss and their mean equal log(3/2), a real logarithm on a different scale from Brier score 1/9.

38. 불가능하다고 한 사건An event assigned impossibility

두 행에서 (p, y)=(0, 1), (1, 1)입니다. 자연로그 손실 −log r에서 각 행과 평균의 상태를 쓰세요. 좋은 두 번째 행이 첫 행의 손실을 상쇄하나요?

Two rows have (p, y)=(0, 1) and (1, 1). State each natural-log loss and their mean. Can the second row cancel the first?

풀이와 확인할 이유Solution and explanation

첫 행 r=0은 양의 무한대, 둘째 r=1은 정확 0입니다. 평균은 양의 무한대이며 0이 상쇄하지 않습니다. 관측된 사건에 확률 0을 준 것과 확실한 사건에 확률 1을 준 것을 구별합니다.

Losses are positive infinity and exact zero; the mean remains positive infinity. An observed event assigned probability zero cannot be offset by another perfect probability.

39. 극소 확률의 유한 로그Finite logs of tiny nonzero probabilities

정확 입력 p=10^(−2000)>0입니다. y=1과 y=0의 관측 사건 확률과 로그손실 상태를 구별하세요. binary64 표시 p가 0이면 무한 손실이라고 해야 하나요?

Let exact p=10^(−2000)>0. Distinguish observed-event probabilities and log losses for y=1 and y=0. If p displays as binary64 zero, must loss be infinite?

풀이와 확인할 이유Solution and explanation

y=1이면 손실은 2000 log(10)으로 유한합니다. y=0이면 −log(1−10^(−2000))>0으로 역시 유한하나 표시값은 0으로 underflow될 수 있습니다. 입력 표시를 정확 0으로 대체하면 다른 문제가 되므로 정확 확률과 표시 상태를 보존합니다.

For y=1 loss is finite 2000 log(10). For y=0 it is finite positive −log(1−10^(−2000)), possibly displaying as zero. Preserve the exact probability and display-underflow state rather than changing the input to mathematical zero.

40. 동률 절반을 주는 AUCAUC with half credit for ties

실제 양성 두 행의 점수는 (4/5, 2/5), 음성 두 행은 (3/5, 2/5)입니다. 양성 점수가 크면 1, 같으면 1/2, 작으면 0을 주어 네 쌍의 평균 AUC를 구하세요.

Positive scores are (4/5, 2/5); negative scores are (3/5, 2/5). Give one for a higher positive score, one half for a tie and zero for lower. Find the mean over four pairs.

풀이와 확인할 이유Solution and explanation

쌍 점수는 1, 1, 0, 1/2이며 합 5/2를 4로 나누어 AUC=5/8입니다. 같은 2/5의 쌍을 승리나 패배로 임의 처리하지 않고 선언한 절반 동률 규칙을 씁니다.

Pair scores 1, 1, 0, 1/2 sum to 5/2, giving AUC 5/8. The equal 2/5 pair follows the declared half-tie convention.

41. 같은 점수의 AUCAUC of constant scores

평가 정답에 양성과 음성이 각각 하나 이상 있으며 모든 행의 예측 확률은 같은 상수 p∈[0, 1]입니다. 동률에 절반을 주는 AUC와 예측 확률의 참값 여부를 설명하세요.

Both outcome classes are present and every score equals one constant p∈[0, 1]. Find half-tie AUC and explain whether it establishes the true probability.

풀이와 확인할 이유Solution and explanation

모든 양성·음성 쌍이 동률이므로 AUC는 1/2입니다. 어느 상수인지와 관계없이 순위가 같다는 뜻입니다. 이 결과만으로 p가 실제 이탈 확률과 같다는 보정 성질은 알 수 없습니다.

Every positive–negative pair ties, giving AUC one half. This ranking result holds for any constant and does not establish that it equals the true churn rate.

42. 정답이 한 범주뿐인 AUCAUC with only one outcome class

평가 세 행의 정답은 모두 0이고 확률은 (1/5, 1/2, 4/5)입니다. AUC를 양성·음성 쌍 점수의 합/(N₊N₋)으로 정의하면 값은 무엇인가요? Brier 점수는 계산 가능한지도 쓰세요.

Three outcomes are all zero and scores are (1/5, 1/2, 4/5). AUC divides pair scores by N₊N₋. What is its value, and is Brier score defined?

풀이와 확인할 이유Solution and explanation

N₊=0이므로 AUC 분모가 0이라 미정의입니다. 이를 0 또는 1/2로 채우지 않습니다. Brier는 세 확률 제곱의 평균으로 정의되어 (1/25+1/4+16/25)/3=31/100입니다.

AUC is undefined because N₊=0. Do not fill it with zero or one half. Brier remains defined as the mean squared score, 31/100.

43. 순위를 보존해도 확률 점수는 바뀐다Preserve ranks but change probability scores

시험 p=(1/3, 2/3), y=(0, 1)입니다. 모든 확률에 엄격 증가 변환 g(p)=p²를 적용합니다. 쌍별 AUC와 Brier 점수를 전후 비교하세요.

For p=(1/3, 2/3), y=(0, 1), apply strictly increasing transformation g(p)=p². Compare pairwise AUC and Brier score before and after.

풀이와 확인할 이유Solution and explanation

양성 점수가 계속 더 크므로 AUC는 전후 모두 1입니다. 원 Brier는 1/9, 변환 후는 [(1/9)²+(4/9−1)²]/2=13/81입니다. 순위 보존이 확률 손실 보존을 뜻하지 않습니다.

AUC stays one because the positive score stays higher. Brier changes from 1/9 to 13/81. Ranking invariance is not probability-score invariance.

44. 완벽한 정답 복사 진단A perfect target-copy diagnostic

시험 630행의 이탈은 89행이고 비이탈은 541행입니다. 잘못된 절차로 p=y를 복사한 뒤 문턱 1/2로 분류합니다. 네 칸·Brier·로그손실·AUC와 절차 판정을 쓰세요.

Among 630 test rows, 89 churn and 541 do not. An invalid procedure copies p=y and classifies at one half. Find confusion counts, Brier, log loss and AUC, then judge the protocol.

풀이와 확인할 이유Solution and explanation

TP=89, FP=FN=0, TN=541입니다. Brier와 로그손실은 0, 두 정답 범주가 있으므로 AUC는 1입니다. 그러나 나중 정답을 입력으로 썼기 때문에 무효 진단입니다. 완벽한 수치를 새 예측 모형의 유효 성능으로 보고할 수 없습니다.

Counts are TP=89, FP=FN=0, TN=541. Brier and log losses are zero and AUC is one. The protocol is invalid because it uses the later target as an input. Perfect scores do not make it a valid new predictor.

45. 열두 칸 중 여덟 칸Eight of twelve handover fields

로컬 인수인계 문서는 열두 항목이고 여덟 항목만 작성했습니다. 나머지 수와 문서 상태를 쓰세요. 모든 칸을 채우면 사실 확인·배포 준비도 완료되나요?

A local handover has twelve items and eight are filled. State the number missing and document status. Does completing all fields verify claims or deployment readiness?

풀이와 확인할 이유Solution and explanation

미작성은 네 항목입니다. 여덟 항목이 있는 불완전한 로컬 초안입니다. 열두 항목이 모두 있어도 텍스트 완성 상태일 뿐, 각 주장 검증·실제 외부 전달·운영 준비가 자동 완료되는 것은 아닙니다.

Four are missing; it is an incomplete local brief. Twelve supplied texts would establish completeness only, not independent verification, actual external delivery or operational readiness.

46. 서로 다른 예측 간격Different prediction gaps

정답 시점은 12개월 끝입니다. 예측 시점이 9개월 끝 또는 10개월 끝일 때 명목 간격을 구하세요. 10개월에 완료되는 입력을 9개월 예측에 쓰는 것과도 구별하세요.

The target is at the end of month twelve. Find nominal gaps from prediction at the end of month nine or ten. Distinguish using a month-ten input for the earlier prediction.

풀이와 확인할 이유Solution and explanation

간격은 각각 3개월과 2개월입니다. 10개월 입력은 9개월 예측 시점 이후라 그 선언과 맞지 않습니다. 예측 시점 자체를 10개월로 바꾸면 다른 문제이며, 원행별 달력 날짜가 없으면 실제 연·월은 새로 알 수 없습니다.

The gaps are three and two months. A month-ten input falls after the month-nine cutoff. Moving the prediction itself to month ten changes the question; missing row dates still prevent identifying actual calendar months.

47. 같은 관측과 다른 연락 효과Same observations, different contact effects

네 사람 모두 연락하지 않았고 관측 Y(0)=(0, 0, 1, 1)입니다. 세계 A는 Y(1)=Y(0), 세계 B는 Y(1)=(0, 0, 0, 0)이라고 가정합니다. 평균 Y(1)−Y(0)을 비교하고 관측 예측 점수만으로 세계를 구별할 수 있는지 쓰세요.

All four people were uncontacted and observed Y(0)=(0, 0, 1, 1). Assume world A has Y(1)=Y(0), while world B has all-zero Y(1). Compare mean effects and whether observed predictive scores distinguish the worlds.

풀이와 확인할 이유Solution and explanation

평균 효과는 A에서 0, B에서 −1/2입니다. 두 세계의 관측 입력·Y(0)은 같아 그 자료로 만든 예측과 점수도 같을 수 있습니다. 따라서 관측 예측 성능만으로 연락 효과를 유일하게 정하지 못합니다.

Mean effects are zero in A and −1/2 in B. Observed inputs and Y(0) coincide, so fitted predictions and scores may coincide. Predictive performance alone does not identify the contact effect.

48. 별도 행동 가정의 순이익Net gain under separate action assumptions

연락이 추가 이탈을 만들지 않는 가정 아래 무연락 이탈 확률 q=3/10, 예방 비율 r=1/2, 예방 가치 V=10, 연락 비용 C=1입니다. 추가 기대 순이익 Δ=qrV−C와 연락 문턱을 구하세요.

Assume contact induces no additional churn. Let no-contact q=3/10, prevention fraction r=1/2, value V=10 and cost C=1. Compute Δ=qrV−C and the weakly preferred-contact threshold.

풀이와 확인할 이유Solution and explanation

Δ=(3/10)(1/2)10−1=1/2입니다. rV=5이므로 연락이 약하게 유리한 범위는 q≥1/5입니다. 이는 주어진 인과·비용 가정의 계산이며 실제 자료가 그 예방 비율이나 가치를 추정해 준 것은 아닙니다.

Gain is one half and contact is weakly preferable at q≥1/5 because rV=5. These are conditional causal/cost assumptions, not quantities identified by the archived prediction data.

49. 예방 가치가 0일 때Zero prevention value

추가 기대 순이익은 Δ=qrV−C이고 q, r∈[0, 1], V, C≥0입니다. rV=0에서 C>0인 경우와 C=0인 경우를 비교하세요. 문턱 C/(rV)로 나누어야 하나요?

Let Δ=qrV−C with q, r∈[0, 1], V, C≥0. At rV=0 compare positive C and zero C. Must you divide by rV?

풀이와 확인할 이유Solution and explanation

C>0이면 Δ=−C<0이라 연락이 불리합니다. C=0이면 Δ=0이라 두 행동이 동률입니다. 분모 0의 문턱을 만들 필요 없이 원래 행동 차이를 비교하면 됩니다.

Positive cost gives negative gain; zero cost ties both actions. Compare the original gain instead of inventing a threshold with zero denominator.

50. 재적합 후 같은 숫자 문턱The same numerical threshold after a refit

학습 자료로 적합한 네 셀 확률에 검증 문턱 3/10을 골라 시험을 채점했습니다. 이후 학습과 검증을 합쳐 확률을 다시 적합하고 문턱 숫자만 3/10으로 유지합니다. 이전 시험 보고가 자동으로 같은 전체 절차의 점수인가요?

Fit cells on training data, select threshold 3/10 on validation, then score test. Later refit on training plus validation but retain numerical threshold 3/10. Is the old test report automatically a score of the same whole procedure?

풀이와 확인할 이유Solution and explanation

아닙니다. 적합 원행과 확률이 바뀔 수 있어 같은 문턱 숫자도 다른 분류 규칙에 적용됩니다. 재적합 여부·선택 방식까지 포함한 새 절차를 선언하고 어느 버전이 기존 시험을 만들었는지 남겨야 합니다.

No. Changed fitting data can change probabilities and classifications at the same threshold. Declare the refit/selection procedure and retain which model version generated the earlier test report.

51. 실제 네 셀의 합과 기준선Actual cell totals and the baseline

네 학습 셀의 (n, e)는 (1358, 43), (389, 153), (54, 36), (89, 79)입니다. 양쪽 개수에 1을 더하는 첫 셀 확률과 전체 학습 행·이탈 수·같은 집합 기준선 e_total/n_total을 구하세요.

Training cells have (n, e)=(1358, 43), (389, 153), (54, 36), (89, 79). Add one per outcome in each cell. Find the first cell probability, total observed rows/events and the baseline on that subset.

풀이와 확인할 이유Solution and explanation

첫 셀은 44/1360=11/340입니다. 원 학습 행은 1890, 이탈은 311, 기준선은 311/1890입니다. 평활의 가상 개수를 원 전체 고객 수에 더해 새로운 관측 분모로 보고하지 않습니다.

The first probability is 11/340. Observed totals are 1,890 rows and 311 events, giving baseline 311/1890. Added smoothing counts are not additional source customers.

52. 실제 기준선의 검증 동률Actual baseline validation ties

기준선의 후보 1/10, 1/5, 3/10, 1/2, 7/10, 9/10에 대한 검증 벌점은 535, 380, 380, 380, 380, 380입니다. 큰 문턱 우선으로 고를 값과 최소 후보 수를 구하세요.

Baseline candidates 1/10, 1/5, 3/10, 1/2, 7/10, 9/10 have validation penalties 535, 380, 380, 380, 380, 380. Apply the largest-threshold tie rule and count minimizing candidates.

풀이와 확인할 이유Solution and explanation

최소값은 380이고 후보 다섯 개가 동률입니다. 그중 가장 큰 9/10을 고릅니다. 이 후보 선택에는 시험 정답을 사용하지 않았다는 절차 조건도 함께 남깁니다.

Five candidates attain minimum 380. Select the largest, 9/10, and retain that this choice used validation rather than test outcomes.

53. 실제 셀 모형의 검증 동률Actual cell-model validation ties

셀 모형의 후보 1/10, 1/5, 3/10, 1/2, 7/10, 9/10에 대한 검증 벌점은 158, 158, 158, 230, 269, 380입니다. 최소 집합과 큰 문턱 우선 선택을 쓰세요.

Cell-model candidates 1/10, 1/5, 3/10, 1/2, 7/10, 9/10 have validation penalties 158, 158, 158, 230, 269, 380. Find the minimum set and its largest threshold.

풀이와 확인할 이유Solution and explanation

최소 집합은 {1/10, 1/5, 3/10}, 선택은 3/10입니다. 시험 벌점 106은 그 문턱을 잠근 뒤 다른 역할의 630행에서 채점한 결과이며 이 표의 최소값 158과 다릅니다.

The set is {1/10, 1/5, 3/10} and selection 3/10. The separate locked test penalty 106 was evaluated on 630 other-role rows; it is not the validation minimum 158.

54. LCG의 첫 우선순위First LCG priority

시드 u₀=9173, a=1664525, c=1013904223이고 u₁=(au₀+c) mod2^32입니다. 첫 상태를 구하세요. 이 값으로 정렬한 원행 분할이 실제 달력 시간 순서임을 뜻하는지도 쓰세요.

Use seed 9173, multiplier 1664525, increment 1013904223 and u₁=(a u₀+c) mod 2^32. Find u₁ and state whether the resulting source-row split establishes calendar order.

풀이와 확인할 이유Solution and explanation

정수 계산 1664525×9173+1013904223=16282592048에서 2^32를 세 번 빼면 3397690160입니다. 이는 재현 가능한 저자 우선순위이며 고객 날짜를 관측한 것은 아닙니다.

The exact sum is 16282592048; subtracting three times 4294967296 gives 3397690160. It is a reproducible author priority, not an observed customer date or future-time ordering.

55. 패턴 수와 사람 수Pattern counts versus customer counts

3,150행에서 서로 다른 13입력 패턴은 2,836개, 여러 역할에 걸친 패턴은 126개이고 그 원행은 386행입니다. 결과가 다른 패턴은 전체 14개입니다. 이 수로 같은 고객 수 또는 독립 고객 수를 유일하게 구할 수 있나요?

There are 3,150 rows and 2,836 distinct thirteen-input patterns. Of these, 126 cross roles and contain 386 rows. Fourteen patterns overall have differing outcomes. Do these determine identical or independent customer counts?

풀이와 확인할 이유Solution and explanation

구할 수 없습니다. 패턴과 행은 각각 다른 셈이고, 입력 일치는 고객 동일성의 증거가 아닙니다. 14개는 같은 입력과 다른 결과가 존재함을 보이지만 고객 식별자를 새로 제공하지는 않습니다. 관측한 패턴 중첩을 그대로 보고합니다.

No. Patterns, rows and customer identities are different units. Equal inputs do not prove identity; differing outcomes do not supply identifiers. Report the observed pattern overlap without inventing customer counts.

56. 선택 후 검증 손실의 기대값Expected loss after validation selection

별도 유한법칙에서 두 후보 손실(L_A, L_B)는 확률 1/2로(0, 2), 확률 1/2로(2, 0)입니다. 각 기대 손실·E[min(L_A,L_B)]·min(E[L_A],E[L_B])를 구하세요.

Under a separate finite law, (L_A, L_B) equals (0, 2) or (2, 0), each with probability one half. Find each expected loss, expected minimum and minimum expected loss.

풀이와 확인할 이유Solution and explanation

각 기대 손실은 1, 선택한 최소 손실은 매번 0이라 그 기대도 0입니다. 따라서 0<1입니다. 같은 검증 상태에서 고르고 보고한 손실의 낙관성을 보여 주지만 실제 표의 표집법칙을 이 두 상태라고 추정한 것은 아닙니다.

Each candidate has expected loss one. The selected minimum is always zero, so its expectation is zero versus minimum expected loss one. This illustrates selection optimism without assigning that law to the actual source data.

57. 독립 시험 평균의 조건부 기대Conditional expectation of an independent test mean

학습·검증 정보 D로 예측규칙 f_D를 골랐습니다. 고정 N≥1개의 시험쌍은 D와 독립인 분포 P의 iid이며 손실 기대값은 유한합니다. R(P,f_D)=E_P[ℓ(f_D(X), Y)]일 때 시험 평균의 D조건부 기대를 유도하세요.

Select predictor f_D from training/validation information D. Fixed N≥1 test pairs are iid from P and independent of D; the loss expectation is finite. With R(P,f_D)=E_P[ℓ(f_D(X), Y)], derive the conditional expectation of test mean given D.

풀이와 확인할 이유Solution and explanation

D를 조건으로 두면 f_D는 고정입니다. 각 시험쌍의 손실 기대는 R(P, f_D)이므로 합의 기대를 N으로 나누면 같은 값입니다. 실제 원행 분할이 이 독립·동일분포 조건을 자동 보장하는 것은 아니며 조건이 없을 때 같은 등식을 무조건 붙이지 않습니다.

Conditioning on D fixes the selected predictor. Each independent test loss has mean R(P,f_D); linearity and division by N give that same conditional mean. The actual row split does not itself establish these assumptions.

58. 추가 iid 가정의 유한 점수 경계A finite bound under additional iid assumptions

고정 모형의 시험 Brier손실 Z_i∈[0, 1]이 iid라고 추가 가정하고 N=100입니다. Var(Z_i)≤1/4와 독립성을 사용해 평균의 분산 상계를 구하세요. P(|평균−기대|≥ε)≤Var(평균)/ε²를 ε=1/10에 적용하세요.

Assume iid test Brier losses Z_i∈[0, 1] for a fixed model and N=100. Use Var(Z_i)≤1/4 to bound the mean variance. Apply P(|mean−expectation|≥ε)≤Var(mean)/ε² at ε=1/10.

풀이와 확인할 이유Solution and explanation

평균 분산은 Var(Z_i)/100≤1/400입니다. 따라서 확률 상계는(1/400)/(1/100)=1/4입니다. 제곱 편차의 비음수 기댓값으로 얻는 이 부등식은 추가 iid 가정 아래의 설명이며 이번 실제 자료에 자동 적용한 신뢰구간이 아닙니다.

Mean variance is at most 1/400, giving probability bound 1/4. This illustrative squared-deviation bound requires the added iid assumptions. It is not an automatically applied confidence interval for the actual rows.

59. 정답을 안 읽어도 달라지는 전처리Preprocessing can change without target labels

선언한 순수 학습 적합 절차에서 훈련 입력은(0, 2), 시험 입력은 100입니다. 훈련 평균만 쓰는 중심과 전체 세 입력 평균을 쓰는 중심을 구하세요. 정답 열을 안 읽었어도 같은 평가 절차인지 쓰세요.

A declared training-only procedure has inputs (0, 2) and test input 100. Compare centering at the training mean versus the mean of all three. Are these the same protocol despite not reading target labels?

풀이와 확인할 이유Solution and explanation

중심은 각각 1과 34입니다. 시험 입력의 분포 정보가 두 번째 적합에 들어가므로 선언한 훈련 전용 절차와 다릅니다. 별도 transductive 절차를 선언할 수는 있지만 같은 순수 학습 평가였다고 숨기지 않습니다. 어느 쪽 점수가 반드시 높다고 단정하는 문제도 아닙니다.

Centers are one and 34. The second fit uses test-input distribution information and changes the declared training-only protocol. A separately declared transductive procedure is possible; no universal score ordering follows merely from this difference.

60. 실제 결과를 한 문단으로 인수인계Handover the actual result in one paragraph

익명 통신 원행 3,150개를 저자 LCG로 1890/630/630에 나눴습니다. 훈련 셀모형·검증 문턱 3/10을 고정한 시험의 TP/FP/FN/TN은 84/86/5/455입니다. 벌점은 FP+4FN이며 고객 ID·원행 날짜·실제 연락효과 자료는 없습니다. 이 범위를 보존하는 보고 문단을 쓰세요.

Split 3,150 anonymous source rows by author LCG into 1890/630/630. Fit cells on training and select threshold 3/10 on validation. Locked test counts are 84/86/5/455 with penalty FP+4FN. Customer IDs, row dates and contact-effect data are unavailable. Write a scope-preserving report.

풀이와 확인할 이유Solution and explanation

“고정 보관 원행의 저자 분할에서 학습으로 셀 확률을 적합하고 검증으로 문턱 3/10을 골랐다. 잠근 시험 630행의 네 칸은 84/86/5/455이고 가정 벌점은 106이다. 이는 내부 보관행 평가이며 독립 새 고객·미래 달력 성능과 실제 연락 수익은 확인하지 않았다.”처럼 자료·선택·채점·남은 질문을 함께 씁니다.

For example: “We fitted cell probabilities on the declared training rows and selected 3/10 on validation. The locked 630-row test had counts 84/86/5/455 and assumed penalty 106. This is an internal archived-row evaluation; independent new-customer or future-calendar performance and actual contact returns remain unestablished.” State procedure and open questions together.

자료와 출처Data and sources

실습에 추가한 실제 입력과 출처Additional observed lab inputs and provenance

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

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

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