ML-20 · MACHINE LEARNING

확률 예측·보정·Conformal의 조건Probabilistic prediction, calibration and conformal conditions

확률 한 줄의 뜻에서 실제 자료의 점수·예측 집합과 보장 조건까지From one probability statement to factual scores, prediction sets and conditions for guarantees

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

기초Foundations

80%라는 말은 무엇을 약속할까What does a forecast of eighty percent mean?

내일 비가 올 확률이 80%라는 예보를 보았습니다. 실제로 비가 오면 “맞았다”, 오지 않으면 “틀렸다”라고만 채점해도 충분할까요? 80%는 반드시 비가 온다는 말도, 내일 하루를 다섯 조각으로 나누면 네 조각 동안 비가 온다는 말도 아닙니다. 어떤 장소·시간·조건의 사건을 예측하는지 먼저 정한 뒤, 그 조건에서 사건이 일어날 가능성을 표현하는 숫자입니다.

여기서는 관심 사건이 일어나면 Y=1, 일어나지 않으면 Y=0이라고 씁니다. 고객 이탈, 연체, 어떤 기준을 넘는 경제성장 등에도 같은 부호를 쓸 수 있지만, 사건의 정의·대상·기간은 각각 달라집니다. 알고 싶은 조건부 확률 p와 자료로 만든 예측 확률 p-hat을 구분하겠습니다. 두 숫자가 같다고 미리 가정하지 않습니다.

Y∈{0,1},p=P(Y=1∣X=x),p^(x)∈[0,1]Y\in\{0,1\},\qquad p=\mathbb P(Y=1\mid X=x),\qquad \widehat p(x)\in[0,1]

가상의 모집단에서 같은 조건의 사건 확률이 정말 4/5이고, 같은 확률을 가진 100번의 사건이 독립이라고 정해 봅시다. 사건 수의 기댓값은 80이지만 실제 수가 반드시 80은 아닙니다. 분산은 100×(4/5)×(1/5)=16, 표준편차는 4입니다. 76번이나 84번이라는 결과만으로 예측이 거짓이라고 단정할 수 없습니다. 이 계산은 독립·동일 확률이라는 지정 가정을 사용하며, 서로 영향을 주는 실제 고객이나 국가에 자동 적용하지 않습니다.

반대로 100건 중 정확히 80건이 발생했다는 사실만으로 모집단 확률이 정확히 80%라고 증명되는 것도 아닙니다. 한 번의 관측값, 같은 조건에서의 확률, 여러 관측의 상대도수는 관련되지만 서로 다른 대상입니다. 이 장은 이 차이를 유지하면서 확률을 채점하고, 예측에 불확실성 집합을 붙이는 법을 배웁니다.

Suppose a forecast gives an eighty-percent chance of rain tomorrow. Is it enough to mark it simply right when rain occurs and wrong otherwise? Eighty percent does not promise rain, nor does it divide the day into five pieces with rain during four. First specify the place, period and event; the number describes the chance of that event under the stated conditions.

Write Y equal to one when the event occurs and zero otherwise. Churn, default and growth exceeding a threshold can all be coded this way, but their populations, horizons and event definitions differ. We distinguish the unknown conditional probability p from the fitted forecast p-hat. Their equality is not an assumption.

Y∈{0,1},p=P(Y=1∣X=x),p^(x)∈[0,1]Y\in\{0,1\},\qquad p=\mathbb P(Y=1\mid X=x),\qquad \widehat p(x)\in[0,1]

In a constructed population, suppose the event chance really is four-fifths and one hundred trials are independent with that same probability. The expected count is eighty, but the realized count need not be eighty. Its variance is sixteen and standard deviation four. A count of seventy-six or eighty-four alone does not disprove the forecast. This calculation uses an explicitly specified IID law; it does not automatically describe dependent customers or countries.

Conversely, eighty events in one hundred observations does not prove the population probability equals eighty percent. A single outcome, a conditional probability and an empirical relative frequency are related but different objects. We retain that distinction while scoring probabilities and constructing uncertainty sets.

기초Foundations

분류 정확도가 같은 두 예보Two forecasts with the same classification accuracy

한 가상 고객 집단에서 실제 이탈 확률이 0.6이라고 합시다. 첫 모델은 누구에게나 0.6, 둘째는 누구에게나 0.99를 예측합니다. 확률이 0.5 이상이면 “이탈”로 분류하면 두 모델은 모든 사람을 똑같이 분류합니다. 이 가상 모집단에서 두 분류 규칙의 정확도는 모두 60%입니다. 그러나 60%와 99%라는 확신의 정도는 전혀 다릅니다.

고객을 붙잡기 위한 연락 비용, 이탈했을 때의 손실, 다른 후보 고객에게 연락할 기회비용을 계산하려면 확률의 크기가 필요합니다. 똑같은 0·1 분류를 했다는 이유로 0.99를 무조건 더 좋은 모델이라고 부를 수 없습니다. 확률이 정확하게 보정되었는지는 별도로 확인해야 합니다.

Y^=1{p^≥1/2},P(Y^=Y)=θif p^≥1/2, Y∼Bernoulli(θ)\widehat Y=\mathbf1\{\widehat p\ge1/2\},\qquad \mathbb P(\widehat Y=Y)=\theta\quad\text{if }\widehat p\ge1/2,\ Y\sim\mathrm{Bernoulli}(\theta)
실제 확률 θ=0.6인 가상 법칙의 기대 성적
예측 p-hat0.5 기준 분류기대 정확도기대 Brier 손실
0.51모두 이탈0.60.2481
0.60모두 이탈0.60.2400
0.99모두 이탈0.60.3921

마지막 열은 다음 절에서 배울 제곱 확률 오차의 기댓값입니다. 숫자가 작을수록 좋습니다. 같은 정확도에서도 실제 확률에 가까운 0.6이 가장 좋고, 잘못된 과신 0.99는 훨씬 큰 손실을 받습니다. 이 표의 θ는 설명을 위해 알려져 있다고 정한 가상 값이며 실제 고객 자료의 참 확률을 우리가 안다는 뜻은 아닙니다.

뒤의 실제 이탈 사례에서는 선형 예측을 0과 1 사이로 자른 값을 사용합니다. 범위 안에 있다는 사실만으로 보정된 확률이 되지는 않습니다. 학습 성적, 확률 교정, Conformal 집합의 주변 피복, 실제 의사결정 가치를 서로 다른 질문으로 유지하겠습니다.

In a constructed customer population, let the true churn probability be 0.6. One model always predicts 0.6 and another always predicts 0.99. Classifying churn whenever the forecast is at least one-half makes their predicted labels identical. Both classification rules have sixty-percent population accuracy, yet their reported confidence differs greatly.

The probability magnitude matters when comparing retention contact costs, churn losses and the opportunity to contact other customers. Identical hard labels do not make a forecast of 0.99 inherently better. Probability calibration needs separate evaluation.

Y^=1{p^≥1/2},P(Y^=Y)=θif p^≥1/2, Y∼Bernoulli(θ)\widehat Y=\mathbf1\{\widehat p\ge1/2\},\qquad \mathbb P(\widehat Y=Y)=\theta\quad\text{if }\widehat p\ge1/2,\ Y\sim\mathrm{Bernoulli}(\theta)
Expected performance under a constructed law with theta equal to 0.6
ForecastHalf-threshold labelExpected accuracyExpected Brier loss
0.51Always churn0.60.2481
0.60Always churn0.60.2400
0.99Always churn0.60.3921

The last column is the expected squared probability error, introduced next; smaller is better. Forecasting the actual probability 0.6 is best despite equal classification accuracy. Unjustified confidence at 0.99 is penalized more heavily. The true theta is specified for this mathematical example, not known for the factual customers.

Our actual churn case clips a linear prediction into the unit interval. Merely lying in that interval does not calibrate it. Training fit, probability calibration, marginal coverage of a conformal set and decision value remain separate questions.

학부Undergraduate

Brier 손실을 행마다 계산하기Calculate Brier loss one row at a time

확률 p를 실제로 발생한 0 또는 1과 비교하여 차이를 제곱합니다. 발생한 사건에 0.8을 주었다면 손실은 (0.8−1)²=0.04입니다. 발생하지 않은 사건에 0.2를 주어도 손실은 (0.2−0)²=0.04입니다. 반대로 일어나지 않은 사건에 0.8을 주었다면 0.64로 더 큰 벌점을 받습니다.

이 장은 이진 사건의 한 성분 Brier 손실을 사용합니다. 0≤p≤1, y가 0 또는 1이면 손실도 0과 1 사이입니다. 일부 문헌은 두 클래스 벡터 (1−p,p)의 제곱 오차를 모두 더합니다. 그러면 여기 정의의 정확히 2배가 됩니다. 이름이 같더라도 정의와 정규화를 먼저 확인해야 합니다.

ℓB(p,y)=(p−y)2,R^B=∑iwi(pi−yi)2∑iwi,wi≥0, ∑iwi>0\ell_{\mathrm B}(p,y)=(p-y)^2,\qquad \widehat R_{\mathrm B}=\frac{\sum_iw_i(p_i-y_i)^2}{\sum_iw_i},\quad w_i\ge0,\ \sum_iw_i>0
구성한 두 예측과 관측의 손계산
행pyp−y(p−y)²
a1/501/51/25
b4/51−1/51/25

동일 비중이면 두 손실의 평균은 1/25=0.04입니다. 두 번째 관측만 y=0으로 바꾸면 그 행 손실은 16/25가 되어 전체 평균은 17/50=0.34가 됩니다. 관측값을 바꾸는 이 실험은 설명을 위해 구성한 것이며, 실제 자료의 라벨을 고쳐서 좋은 성적을 만들겠다는 지시가 아닙니다.

분석 비중 w를 주었다면 비중 합으로 나눕니다. 전체 비중을 같은 양수로 곱해도 평균 손실은 변하지 않습니다. 비중이 0이거나 필수 확률·라벨이 결측인 행을 분모에 넣지 않되 원행과 제외 이유는 보존합니다. 어떤 비중이 모집단을 대표하는지는 이 대수식이 별도로 증명해 주지 않습니다.

Compare a probability with the realized zero or one and square the difference. Predicting 0.8 for an event that occurs incurs loss 0.04. Predicting 0.2 for an event that does not occur also incurs 0.04. Assigning 0.8 to an event that does not occur instead incurs 0.64.

We use the one-component binary Brier loss. With a probability in the unit interval and a binary label, its value lies between zero and one. Some references add squared errors for both components of the class vector (one minus p, p). That convention is exactly twice ours. Check the definition and normalization before comparing values.

ℓB(p,y)=(p−y)2,R^B=∑iwi(pi−yi)2∑iwi,wi≥0, ∑iwi>0\ell_{\mathrm B}(p,y)=(p-y)^2,\qquad \widehat R_{\mathrm B}=\frac{\sum_iw_i(p_i-y_i)^2}{\sum_iw_i},\quad w_i\ge0,\ \sum_iw_i>0
Hand calculation for two constructed forecasts and outcomes
Rowpyp minus ySquared error
a1/501/51/25
b4/51−1/51/25

With equal analysis weights the mean loss is one twenty-fifth. Changing only the second constructed outcome to zero makes its loss sixteen twenty-fifths and the mean seventeen fiftieths. This is an explanatory thought experiment, not an instruction to alter factual labels to obtain attractive performance.

For analysis weights, divide by their sum. Multiplying every weight by the same positive number leaves the mean unchanged. Zero-weight or required-missing rows do not contribute to the denominator, while original records and reasons remain. Whether the weights represent a population is a separate statistical question.

학부Undergraduate

정직한 확률을 보상하는 이유를 도출하기Derive why an honest probability is rewarded

손실이 그럴듯해 보인다는 것과 참 확률을 말하도록 유도한다는 것은 다릅니다. 실제 사건 확률이 θ라고 알려진 가상 법칙을 고정하고, 보고할 확률 p만 바꾸어 보겠습니다. y=1일 때의 손실 (1−p)²은 θ의 비중으로, y=0일 때의 손실 p²은 1−θ의 비중으로 평균합니다.

첫 식을 전개하면 θ−2θp+p²입니다. 여기에 θ²을 더하고 빼면 다음처럼 두 부분이 됩니다. 첫 부분 θ(1−θ)는 보고한 p와 관계없는 결과의 변동성이고, 둘째 부분은 보고 확률과 실제 확률의 제곱 차이입니다.

RB(p;θ)=θ(1−p)2+(1−θ)p2=θ(1−θ)+(p−θ)2R_{\mathrm B}(p;\theta)=\theta(1-p)^2+(1-\theta) p^2=\theta(1-\theta)+(p-\theta)^2

제곱은 음수가 아니며 p=θ일 때에만 0입니다. 따라서 기대 Brier 손실을 유일하게 가장 작게 만드는 보고는 실제 확률입니다. 이런 성질을 엄밀 적정성, 영어로 strict propriety라고 부릅니다. “정직하다”는 말은 사람의 성품을 평가하는 표현이 아니라 알려진 확률 법칙 아래의 수학적 최적성을 뜻합니다.

예를 들어 θ=3/5이면 피할 수 없는 부분은 6/25=0.24입니다. p=99/100을 보고하면 추가 벌점은 (39/100)²=0.1521, 총 손실은 0.3921입니다. 실제 확률을 정확히 알아도 개별 결과가 확률적으로 흔들리기 때문에 기대 손실이 반드시 0이 되지는 않습니다.

이 증명은 모집단 기댓값에 관한 것입니다. 한 번 얻은 작은 표에서 손실이 가장 작은 숫자가 참 확률과 반드시 같다는 결론은 나오지 않습니다. 같은 표로 확률을 맞추고 좋은 성적을 보고하면 낙관적 평가가 될 수 있으므로, 훈련에 쓰지 않은 자료의 역할이 필요합니다.

An appealing-looking loss need not encourage truthful probabilities. Fix a constructed law with known event probability theta and vary only the reported p. Average loss (one minus p) squared with probability theta and loss p squared with probability one minus theta.

Expansion gives theta minus twice theta p plus p squared. Add and subtract theta squared to obtain two terms: outcome variability that does not depend on the report, and squared error between the report and the true probability.

RB(p;θ)=θ(1−p)2+(1−θ)p2=θ(1−θ)+(p−θ)2R_{\mathrm B}(p;\theta)=\theta(1-p)^2+(1-\theta) p^2=\theta(1-\theta)+(p-\theta)^2

The square is nonnegative and vanishes only at p equal to theta. Thus the unique report minimizing expected Brier loss is the true probability. This is strict propriety. Truthfulness here describes a mathematical optimum under a specified law, not an assessment of a person’s character.

For theta three-fifths, the unavoidable term is 0.24. Reporting 0.99 adds a penalty of 0.1521 and gives total expected loss 0.3921. Even knowing the probability does not remove randomness from individual outcomes, so expected loss need not be zero.

This is a population expectation argument. The best forecast on one small observed table need not equal the population probability. Fitting and evaluating on the same table can be optimistic, motivating roles for data not used in training.

학부 심화 · 선택Advanced undergraduate · optional

로그 손실은 잘못된 확신을 크게 벌한다Log loss heavily penalizes misplaced certainty

실제로 일어난 결과에 모델이 준 확률을 하나 고르고 그 자연로그에 음수를 붙입니다. y=1이면 −log p, y=0이면 −log(1−p)입니다. 일어난 결과에 높은 확률을 주면 손실이 작고, 거의 불가능하다고 했던 결과가 일어나면 매우 큰 손실을 받습니다. 자연로그를 쓰므로 단위는 정보량의 nat입니다.

p=0.8이고 y=1이면 손실은 약 0.22314입니다. 같은 p에서 y=0이면 −log 0.2≈1.60944입니다. 발생한 결과에 정확히 확률 0을 주면 로그 손실은 양의 무한대입니다. 아주 작지만 양수인 확률의 큰 유한 손실과 수학적 무한대를 구분해야 합니다.

ℓlog⁡(p,y)=−ylog⁡p−(1−y)log⁡(1−p),∂Rlog⁡∂p=p−θp(1−p)(0<p<1)\ell_{\log}(p,y)=-y\log p-(1-y)\log(1-p),\qquad \frac{\partial R_{\log}}{\partial p}=\frac{p-\theta}{p(1-p)}\quad(0<p<1)

실제 사건 확률 θ가 0과 1 사이이면 기대 손실의 미분 부호는 p−θ의 부호와 같습니다. p가 θ보다 작으면 오른쪽으로 옮길수록 기대 손실이 줄고, 크면 왼쪽으로 옮길수록 줄어듭니다. 따라서 p=θ가 유일한 최소점입니다. 끝점에서 θ=0 또는 1인 경우도 실제로 가능한 결과에 확률 1을 주는 보고가 최적입니다.

θ=0.6인 가상 법칙에서 p=0.6의 기대 로그 손실은 약 0.67301이고, p=0.99는 약 1.84810입니다. 두 모델의 0.5 기준 분류 정확도가 같아도 과신은 로그 손실에서 분명하게 드러납니다. 미분과 이 숫자는 기대 법칙의 예이며, 실제 자료에서 계산한 성적이 참 확률을 인증한다는 뜻은 아닙니다.

로그 손실은 Brier와 서로 다른 정도로 큰 실수를 벌합니다. 숫자의 단위와 규모도 다르므로 0.2와 0.3을 그대로 다른 손실 사이에서 비교하지 않습니다. 학습 목적, 실제 비용, 평가 표본을 먼저 정한 뒤 같은 정의의 성적을 비교하세요.

Select the probability assigned to the outcome that actually occurred and take its negative natural logarithm. For label one this is minus log p; for label zero it is minus log of one minus p. Likely realized outcomes receive small loss, while an outcome declared almost impossible receives large loss. Natural logarithms express the information loss in nats.

A forecast of 0.8 with label one incurs about 0.22314. The same forecast with label zero incurs about 1.60944. An actual outcome assigned probability exactly zero incurs positive infinity. Distinguish this mathematical infinity from the large finite loss of a tiny positive probability.

ℓlog⁡(p,y)=−ylog⁡p−(1−y)log⁡(1−p),∂Rlog⁡∂p=p−θp(1−p)(0<p<1)\ell_{\log}(p,y)=-y\log p-(1-y)\log(1-p),\qquad \frac{\partial R_{\log}}{\partial p}=\frac{p-\theta}{p(1-p)}\quad(0<p<1)

For a true probability strictly between zero and one, the derivative of expected loss has the sign of p minus theta. Moving toward theta decreases expected loss on either side, making theta its unique minimum. When the true law is an endpoint, assigning probability one to its possible outcome is optimal.

With theta 0.6, reporting 0.6 gives expected log loss about 0.67301, whereas reporting 0.99 gives about 1.84810. Misplaced confidence is visible even when half-threshold accuracy agrees. These are calculations under a specified law, not a certification of true probabilities from one factual score table.

Log loss and Brier penalize large mistakes differently and have different scales and units. Do not compare a number under one loss directly with a number under the other. Specify the objective, decision cost and evaluation sample before comparing like with like.

학부Undergraduate

정확한 0·아주 작은 값·없는 값을 구별하기Distinguish exact zero, a tiny value and an absent value

확률 0과 매우 작은 양수는 같은 뜻이 아닙니다. p=10의 −200승이고 관측이 y=0이면 Brier 손실은 10의 −400승입니다. 보통의 숫자 표시에서는 0처럼 보일 수 있지만 수학적으로는 양수입니다. 이 작은 차이를 끝점 확률이나 집합 포함 판정과 혼동하면 계산의 의미가 바뀝니다.

반대로 p=1인데 y=1이면 두 손실은 정확히 0입니다. p=0인데 y=1이면 Brier는 1이고 로그 손실은 양의 무한대입니다. “표시할 수 없어 0처럼 보이는 양수”, “정확한 0”, “실제로 무한인 손실”은 서로 다른 결과입니다.

p=10−200>0⇒ℓB(p,0)=10−400>0,ℓlog⁡(0,1)=+∞,ℓlog⁡(1,1)=0p=10^{-200}>0\Rightarrow \ell_{\mathrm B}(p,0)=10^{-400}>0,\qquad \ell_{\log}(0,1)=+\infty,\qquad \ell_{\log}(1,1)=0
다른 상태를 다른 말로 읽기
상태예해석
정확한 0p=1,y=1의 손실관측 결과에 확률 1
작지만 양수p=10^−200,y=0의 Brier표시 0이어도 원분수는 양수
수학적 무한p=0,y=1의 로그 손실불가능하다고 한 결과 발생
미정의평가 가능한 비중 합 0평균의 분모가 없음
결측아직 관측되지 않은 y관측값 0과 다름

평가 라벨이 아직 없으면 결과를 0으로 채워 손실을 줄이지 않습니다. 해당 행의 예측과 원 ID는 남길 수 있지만 손실·피복의 분모에서는 빠집니다. 평가 가능한 양의 비중 합이 0이면 평균 손실은 미정의입니다. 실제로 완벽하게 맞혀 평균 손실이 0인 경우와 구별합니다.

실습은 정확한 분수를 펼쳐 확인할 수 있게 하고 근삿값 표시를 별도로 제공합니다. 로그는 수치 근사이므로 정확 분수 로그라고 소개하지 않습니다. 실제 개인 자료의 원 ln 임금 결측 603행도 보존합니다. 결측 표지가 왜 생겼는지를 자료만으로 확정할 수 없다면 “그 사람은 설문에 응답하지 않았다”처럼 사유를 만들어 쓰지 않습니다.

Probability zero differs from a very small positive probability. With p equal to ten to the minus two hundred and observed label zero, Brier loss is ten to the minus four hundred. An ordinary numerical display may show zero although the mathematical loss is positive. Confusing a display limitation with an endpoint or set-membership decision changes the calculation’s meaning.

By contrast, p one with label one has exactly zero loss. Probability zero with label one has Brier loss one and infinite log loss. A positive value displayed as zero, an exact zero and a mathematically infinite loss are different outcomes.

p=10−200>0⇒ℓB(p,0)=10−400>0,ℓlog⁡(0,1)=+∞,ℓlog⁡(1,1)=0p=10^{-200}>0\Rightarrow \ell_{\mathrm B}(p,0)=10^{-400}>0,\qquad \ell_{\log}(0,1)=+\infty,\qquad \ell_{\log}(1,1)=0
Read distinct states distinctly
StateExampleMeaning
Exact zeroLoss at p one, label oneProbability one assigned to outcome
Tiny positiveBrier at p ten to minus 200, label zeroRaw fraction stays positive
Mathematical infinityLog loss at p zero, label oneA declared impossible event occurred
UndefinedZero eligible evaluation massNo mean denominator
MissingOutcome not yet observedDifferent from observed zero

Do not replace an unobserved evaluation label with zero to improve a score. Its prediction and original identity may remain, while it does not contribute to labeled-loss or coverage denominators. Zero eligible positive mass leaves mean loss undefined; this differs from a genuinely perfect observed mean loss of zero.

Labs provide expandable exact fractions and separate approximate displays. Logarithms are numerical approximations, not exact rational logarithms. We also preserve the factual person dataset’s 603 missing native log wages. A missingness marker alone does not justify inventing a reason such as survey nonresponse.

학부 심화 · 선택Advanced undergraduate · optional

교정이 잘되어도 개인을 잘 구분하지 못할 수 있다Calibration can coexist with weak discrimination

가상의 두 집단 A와 B가 같은 비중으로 있습니다. A의 사건 확률은 0.1, B는 0.9라고 알려져 있다고 합시다. 모두에게 0.5라고 보고하는 모델을 생각해 보세요. 그 모델의 p=0.5라는 예측을 받은 전체 사람 중 사건 비율의 모집단 평균은 0.5입니다. 예측 확률을 조건으로 보았을 때는 교정된 보고입니다.

하지만 그 모델은 집단의 차이를 전혀 구별하지 못합니다. A에 0.1, B에 0.9를 주는 두 번째 모델도 각 예측 확률에서 교정되어 있으면서 더 유용한 구분을 합니다. 두 모델이 모두 교정되었다는 이유로 똑같이 좋은 예측이라고 말할 수 없습니다.

P(G=A)=P(G=B)=1/2,P(Y=1∣G=A)=1/10,P(Y=1∣G=B)=9/10\mathbb P(G=A)=\mathbb P(G=B)=1/2,\quad \mathbb P(Y=1\mid G=A)=1/10,\quad \mathbb P(Y=1\mid G=B)=9/10
알려진 가상 법칙에서 두 교정된 모델
모델예측값기대 Brier정보 구분
항상 0.5두 집단 모두 0.50.25집단 구별 없음
집단별 참 확률A:0.1,B:0.90.09집단 차이를 반영

교정은 예측한 확률과 결과 빈도의 일치에 관한 것이고, 분별은 다른 위험을 구분하는 능력에 관한 것입니다. 날카로움은 예측이 얼마나 모여 있거나 극단적인지 등 정보의 집중도를 살피는 개념입니다. 참 확률과 동떨어진 0.99를 많이 내놓으면 날카로워 보일 수 있어도 좋은 교정이나 낮은 손실은 아닙니다.

같은 예측 확률을 받은 집단 전체에서 교정되었다고 모든 개인·세부 집단의 확률이 그 숫자라는 뜻은 아닙니다. 이 예에서 항상 0.5인 모델은 전체 예측 확률 기준으로 교정되어도 A와 B 각각에서는 맞지 않습니다. 뒤에서 Conformal의 전체 평균 피복과 조건부 피복도 같은 논리로 구별하겠습니다.

이 예는 집단별 확률을 안다고 정한 설명용 법칙입니다. 실제 자료에서는 집단별 표본 수와 사건 수부터 공개하고 작은 집단의 단 한 비율을 참 확률로 소개하지 않습니다. 사후적으로 문제 있는 집단만 골라 결론을 확정하는 것도 피해야 합니다.

Consider two equally common constructed groups, A and B. Suppose their true event probabilities are known to be 0.1 and 0.9. A model reporting 0.5 for everyone is calibrated when conditioning only on its forecast: among all recipients of that forecast, the population event rate is 0.5.

Yet it does not distinguish the groups. Another model reporting 0.1 for A and 0.9 for B is also calibrated at each forecast and uses more useful information. Equal calibration status does not make their predictions equally valuable.

P(G=A)=P(G=B)=1/2,P(Y=1∣G=A)=1/10,P(Y=1∣G=B)=9/10\mathbb P(G=A)=\mathbb P(G=B)=1/2,\quad \mathbb P(Y=1\mid G=A)=1/10,\quad \mathbb P(Y=1\mid G=B)=9/10
Two calibrated models under the specified constructed law
ModelForecastsExpected BrierInformation
Always one-half0.5 for both groups0.25No group distinction
True group probabilitiesA:0.1, B:0.90.09Reflects group differences

Calibration concerns agreement between forecast probabilities and outcome frequencies; discrimination concerns distinguishing different risks. Sharpness describes concentration of forecasts or predictive information. Frequent unjustified reports of 0.99 may look sharp without being calibrated or achieving low loss.

Calibration across everyone receiving the same forecast does not assign that probability to each person or subgroup. The constant model is calibrated by its forecast but not within A and B separately. Later we make the analogous distinction between marginal conformal coverage and conditional coverage.

These group probabilities are specified for explanation. In factual data, report each group’s number of observations and events before interpreting rates. A small observed subgroup rate is not a known population probability, and post hoc selection of concerning groups needs care.

학부Undergraduate

훈련·확률 교정·집합 보정·시험을 구분하기Separate training, probability calibration, set calibration and test

“보정”이라는 말이 두 가지 뜻으로 쓰여 혼란스러울 수 있습니다. 확률 교정은 0.8이라고 보고한 사건들의 확률이 실제 빈도와 맞도록 살피거나 예측 확률을 조정하는 일입니다. Conformal 보정은 미리 고정한 예측 규칙의 오차 점수를 정렬해 예측 집합의 문턱을 정하는 일입니다. 집합의 보정 문턱을 정했다고 원래의 확률 숫자까지 교정되는 것은 아닙니다.

이 장의 실제 사례는 훈련 T로 변환과 고정 ridge 예측 규칙을 만들고, 보정 C로 집합 문턱을 계산하며, 시험 E로 성적을 확인합니다. 보정이나 시험 라벨을 보고 ridge 계수를 고르지 않습니다. 별도의 확률 교정기를 학습하려면 그 학습 역할도 분리하거나 독립된 검증 설계를 더 마련해야 합니다. 같은 라벨을 여러 역할에 재사용하면서 원래 보장을 그대로 주장하지 않습니다.

T∩C=T∩E=C∩E=∅,f^←T,q^←C,evaluation←E\mathcal T\cap\mathcal C=\mathcal T\cap\mathcal E=\mathcal C\cap\mathcal E=\varnothing,\qquad \widehat f\leftarrow\mathcal T,\quad \widehat q\leftarrow\mathcal C,\quad \text{evaluation}\leftarrow\mathcal E
이 장의 새 고정 역할 분할 · 완전한 목표값 기준
실제 자료훈련Conformal 보정시험필수 목표 결측·제외
국가 16행8440
개인 3613행1496754760603
고객 3150행15747887880

먼저 원 ID의 해시로 예정 역할을 정한 뒤 필요한 값의 결측을 처리했습니다. 고객 자료의 원 14변수와 개인 자료의 원 52변수를 보존하되, 정한 두 설명변수만 사용합니다. 개인의 원 표본 비중도 지우지 않지만 이 예측 비교의 분석 비중은 1입니다. 해시로 나눴다는 사실은 국가들이 독립이거나 결측 선택이 무작위라는 증거가 아닙니다.

기본 오분류 허용 비율 α=1/5와 기울기 ridge 계수 λ=1/100은 보정·시험 성적을 보기 전에 고정한 교육용 설정입니다. 앞으로 문턱과 집합을 자세히 계산하겠습니다. 특히 국가 보정 표본은 4개뿐이므로 높은 피복 목표에서 구간이 무한히 넓어지는 상황도 숨기지 않습니다. 이미 알려진 2024년 수정 빈티지로 하는 회고적 비교를 당시 이용 가능했던 실시간 경제 예측으로 부르지 않습니다.

Calibration has two meanings that should not be merged. Probability calibration concerns whether events assigned probability 0.8 have a matching event rate, or a procedure to adjust such probabilities. Conformal calibration sorts scores from a previously fixed predictor to choose a prediction-set threshold. Calibrating that threshold does not also calibrate the original probabilities.

Our factual cases train transforms and a fixed ridge predictor on T, compute the set threshold on C and inspect held-out performance on E. Neither calibration nor test labels choose the ridge coefficient. Learning a separate probability calibrator requires another distinct fitting role or an appropriate independent validation design. Reusing labels across roles does not preserve an original guarantee automatically.

T∩C=T∩E=C∩E=∅,f^←T,q^←C,evaluation←E\mathcal T\cap\mathcal C=\mathcal T\cap\mathcal E=\mathcal C\cap\mathcal E=\varnothing,\qquad \widehat f\leftarrow\mathcal T,\quad \widehat q\leftarrow\mathcal C,\quad \text{evaluation}\leftarrow\mathcal E
New fixed roles for this chapter, after required completeness
Factual caseTrainingConformal calibrationTestRequired missing/excluded
16 country rows8440
3613 person rows1496754760603
3150 customer rows15747887880

Hash original identities into planned roles before handling required missingness. Preserve all fourteen native customer variables and fifty-two native person variables while using only the two specified predictors. Native person sample weights remain, but this prediction comparison uses unit analysis weights. A hash split does not prove countries independent or missingness selection random.

The default error tolerance alpha one-fifth and ridge coefficient lambda one-hundredth are teaching settings fixed before inspecting calibration and test performance. We derive the threshold and sets later. With only four country calibration observations, sufficiently high requested coverage legitimately gives an unbounded interval. The revised 2024 snapshot supports retrospective analysis, not a reconstruction of real-time forecasts available then.

학부 심화 · 선택Advanced undergraduate · optional

확률 교정을 조건부 평균으로 쓰기Write probability calibration as a conditional mean

모델이 내놓는 확률도 사람이나 상황에 따라 달라지는 값입니다. 이를 대문자 P로 쓰겠습니다. 같은 P=0.8을 받은 사례들을 모았을 때 모집단의 사건 확률이 0.8이라면 그 예측값에서는 교정되어 있습니다. 0·1 결과의 평균은 사건 확률과 같으므로 다음처럼 씁니다.

이 식은 개별 y가 P와 같아야 한다는 뜻이 아닙니다. y는 0 또는 1인데 P는 0.8일 수 있습니다. 예측 확률을 조건으로 묶은 모집단 평균이 그 확률과 일치한다는 뜻입니다. 실제로 발생 가능한 예측값들에 대한 성질이며 모델이 한 번도 내놓지 않는 확률의 조건부 평균까지 자료가 알려 주는 것은 아닙니다.

E[Y∣P]=Palmost surely,P=p^(X)\mathbb E[Y\mid P]=P\quad\text{almost surely},\qquad P=\widehat p(X)

또 다른 문헌에서는 “모델이 고른 클래스가 맞을 확률”을 자신감, confidence라고 부르고 그 숫자의 교정을 평가합니다. 이진 사건 확률 P가 0.2이면 모델이 고른 클래스는 보통 0이고 그 클래스의 자신감은 0.8입니다. 사건 1의 빈도와 P를 비교하는 이 장의 표와, 정답 여부와 max(P,1−P)를 비교하는 표는 서로 다른 평가입니다.

두 정의를 이름 하나로 섞으면 신뢰도 그림의 축을 잘못 읽을 수 있습니다. 실제 고객 사례의 가로축은 사건 1, 즉 이탈의 확률 예측입니다. 세로축도 이탈 빈도입니다. 모델의 정답률과 자신감 그림으로 바꾸어 설명하지 않습니다. 실제 값이 연속적인 성장률·임금인 두 회귀 사례에는 이 이진 확률 교정 표를 억지로 적용하지 않습니다.

A model’s forecast changes across people or situations, so denote that random forecast by capital P. If the population event rate among recipients of forecast 0.8 is 0.8, that forecast is calibrated. A binary outcome’s mean equals its event probability, giving the following conditional-mean definition.

The equation does not require each realized outcome to equal P: an outcome is zero or one while P may be 0.8. It concerns the population average conditional on the forecast. The property holds almost surely for forecast values that can occur; observations do not identify conditional means at values the model never reports.

E[Y∣P]=Palmost surely,P=p^(X)\mathbb E[Y\mid P]=P\quad\text{almost surely},\qquad P=\widehat p(X)

Other references evaluate confidence calibration: whether the probability assigned to the predicted class matches its correctness rate. For binary event probability 0.2, the chosen class is usually zero and its confidence is 0.8. Comparing event-one frequency with P, as we do, differs from comparing correctness with max(P, one minus P).

Merging those definitions can mislabel a reliability plot. The actual customer case places forecast churn probability on the horizontal axis and churn frequency on the vertical axis. We do not substitute predicted-label accuracy and confidence. Nor do we force this binary calibration table onto continuous growth and wage outcomes.

학부Undergraduate

고정한 구간으로 신뢰도 표 만들기Build a reliability table using fixed bins

정확히 같은 확률을 받은 관측이 많지 않을 수 있으므로, 보고된 확률을 미리 정한 구간에 모아 보겠습니다. 두 구간을 [0,1/2), [1/2,1]로 고정합니다. 0은 첫 구간에, 1/2와 1은 둘째 구간에 들어갑니다. 경계에서 어느 쪽에 넣는지까지 정해야 두 프로그램이 같은 표를 만듭니다.

각 구간의 행 수와 분석 비중 합을 먼저 셉니다. 이어 평균 예측 확률과 평균 0·1 라벨을 구합니다. 두 평균이 가까운지는 점검할 수 있지만, 서로 다른 확률을 한 구간으로 묶었다는 사실을 잊지 마세요. 한 구간 안에서 양쪽의 오류가 서로 상쇄될 수 있습니다.

Wb=∑i∈Bbwi,pˉb=∑i∈BbwipiWb,yˉb=∑i∈BbwiyiWb(Wb>0)W_b=\sum_{i\in B_b}w_i,\qquad \bar p_b=\frac{\sum_{i\in B_b}w_ip_i}{W_b},\qquad \bar y_b=\frac{\sum_{i\in B_b}w_iy_i}{W_b}\quad(W_b>0)
가상 네 관측의 두 구간 요약
확률 구간원 확률·라벨행 수평균 p사건 빈도평균 p−빈도
[0,1/2)(0.1,0),(0.4,1)21/41/2−1/4
[1/2,1](0.6,0),(0.9,1)23/41/21/4

이 자료는 교정 계산을 설명하기 위해 구성한 네 행입니다. 첫 구간은 예측 평균 0.25보다 사건 빈도가 높고, 둘째는 예측 평균 0.75보다 사건 빈도가 낮습니다. 신뢰도 그림은 가로축에 평균 p, 세로축에 빈도를 놓으며, 점이 y=x 대각선에서 얼마나 떨어지는지 봅니다. 구간의 표본 수를 함께 보여 주어야 점 하나가 2행인지 2만 행인지 알 수 있습니다.

calibration 실습에서 같은 네 행을 입력하고 구간 수를 1,2,4로 바꾸어 보세요. 자료와 확률은 그대로인데 요약이 달라집니다. 이 실습은 구간표를 읽는 도구이며 입력 확률을 자동으로 다시 학습시키는 보정기는 아닙니다.

Exact repeats of a forecast may be uncommon, so group forecasts using bins chosen in advance. Fix two bins: zero inclusive to one-half exclusive, and one-half through one inclusive. Zero belongs to the first; one-half and one belong to the second. Boundary conventions matter for reproducing the same table.

Count rows and analysis weight first, then compute the mean forecast and binary-event frequency in each bin. Their agreement is informative but does not undo the coarsening of distinct probabilities. Opposing errors within one bin can cancel.

Wb=∑i∈Bbwi,pˉb=∑i∈BbwipiWb,yˉb=∑i∈BbwiyiWb(Wb>0)W_b=\sum_{i\in B_b}w_i,\qquad \bar p_b=\frac{\sum_{i\in B_b}w_ip_i}{W_b},\qquad \bar y_b=\frac{\sum_{i\in B_b}w_iy_i}{W_b}\quad(W_b>0)
Two-bin summary of four constructed observations
Probability binForecast and label pairsRowsMean pEvent frequencyMean p minus frequency
[0,1/2)(0.1,0),(0.4,1)21/41/2−1/4
[1/2,1](0.6,0),(0.9,1)23/41/21/4

These four rows are constructed to teach calibration diagnostics. The first bin has an event rate above its average forecast 0.25; the second has a rate below its average forecast 0.75. A reliability plot places mean p horizontally and frequency vertically, comparing each point with the identity line. Display counts too: a dot based on two rows differs from a dot based on twenty thousand.

In the calibration lab, enter these rows and change the bin count to one, two and four. The observations and forecasts stay fixed while the summary changes. The lab reads diagnostics; it does not automatically refit a probability calibrator.

학부Undergraduate

빈 구간과 작은 분모를 정직하게 읽기Read empty bins and small denominators honestly

어떤 구간에 관측이 하나도 없으면 평균 예측과 사건 빈도는 미정의입니다. 빈 구간을 빈도 0인 점으로 찍으면 존재하지 않는 음성 관측을 만든 셈입니다. 구간 비중이 0이라 전체 요약에 기여하지 않는 것과, 그 구간의 참 사건 확률이 0이라는 것은 다릅니다.

관측이 한 개 있고 그 결과가 1이면 경험 빈도는 1입니다. 분모가 있으므로 정의된 값이지만 모집단 확률 1의 증명은 아닙니다. 마찬가지로 세 관측이 모두 0이어도 실제 확률이 0이라고 결론낼 수 없습니다. 이미 알려진 가상 IID Bernoulli(1/2) 법칙에서도 그 일은 1/8의 확률로 생깁니다.

P(Y1=⋯=Yn=0)=(1−θ)nunder IID Bernoulli(θ)\mathbb P(Y_1=\cdots=Y_n=0)=(1-\theta)^n\quad\text{under IID Bernoulli}(\theta)
모두 0이 관측된 구간의 해석
독립 관측 수 n경험 빈도θ=1/2일 때 이 자료 확률
101/2
301/8
1001/1024
0미정의빈도를 계산할 관측이 없음

표의 마지막 확률은 지정한 독립 법칙 아래에서 계산한 값입니다. 실제 자료에 공통 충격이나 반복 관측이 있으면 같은 식을 바로 적용할 수 없습니다. 단지 행 수가 크다는 이유로 관측들이 독립이 되는 것도 아닙니다.

집단별 교정이나 피복을 보고할 때 분자·분모·결측·집단 정의를 함께 적으세요. 작은 분모의 극단적 빈도는 문제를 찾는 출발점이 될 수 있지만, 그 숫자만으로 집단 전체에 대한 확정적 서술을 만들면 안 됩니다. 통계적 불확실성과 정책적 중요성도 다른 판단입니다.

With no observations in a bin, both mean forecast and event frequency are undefined. Plotting an empty bin at frequency zero invents negative outcomes. Its zero weight in an aggregate differs from a population event probability of zero.

A single observed positive gives a defined empirical frequency of one, but does not prove a population probability of one. Three observed negatives likewise do not establish probability zero. Under a specified IID Bernoulli one-half law, three negatives occur with probability one-eighth.

P(Y1=⋯=Yn=0)=(1−θ)nunder IID Bernoulli(θ)\mathbb P(Y_1=\cdots=Y_n=0)=(1-\theta)^n\quad\text{under IID Bernoulli}(\theta)
Interpret a bin containing only observed negatives
Independent observations nEmpirical frequencyProbability of these data at theta one-half
101/2
301/8
1001/1024
0UndefinedNo observations for a frequency

The last column uses the explicitly stated independent law. Common shocks or repeated observations can invalidate that calculation for factual data. A large row count does not itself make observations independent.

When reporting subgroup calibration or coverage, include numerators, denominators, missingness and group definitions. An extreme small-sample rate can motivate investigation without becoming a definitive population claim. Statistical uncertainty and substantive policy importance are also distinct judgments.

학부 심화 · 선택Advanced undergraduate · optional

ECE가 0이면 완벽한 확률일까Does zero ECE mean perfect probabilities?

구간별 평균 예측과 사건 빈도의 절댓값 차이를 구간 비중으로 평균한 값을 ECE라고 부르겠습니다. 어떤 문헌은 다른 구간 규칙이나 제곱 오차 요약을 쓰므로 정의를 기록해야 합니다. 이 장의 값은 사건 1 확률에 대한 고정 동일 폭 구간의 절대 차이입니다.

앞의 네 행을 모두 한 구간에 넣으면 평균 예측 0.5, 사건 빈도 0.5라 ECE는 0입니다. 두 구간에서는 각각의 절대 차이가 1/4이므로 전체도 1/4입니다. 네 구간을 사용하면 각 행이 따로 들어가 평균 절대 차이는 (0.1+0.6+0.6+0.1)/4=0.35가 됩니다.

ECE⁡B=∑b:Wb>0WbW∣pˉb−yˉb∣,W=∑bWb>0\operatorname{ECE}_{\mathcal B}=\sum_{b:W_b>0}\frac{W_b}{W}\left|\bar p_b-\bar y_b\right|,\qquad W=\sum_bW_b>0
같은 네 행에서 구간 수만 바꾼 결과
동일 폭 구간 수ECE평균 Brier
1037/200=0.185
21/4=0.2537/200=0.185
47/20=0.3537/200=0.185

예측이나 관측이 변한 것이 아닙니다. 넓은 구간 안에서 반대 방향의 차이가 상쇄되어 가장 거친 표가 문제를 감췄습니다. 그렇다고 관측 한 행마다 구간을 만드는 것이 언제나 좋은 모집단 진단이라는 뜻도 아닙니다. 지나치게 세분하면 분모가 작아져 경험 빈도가 요동칩니다.

서로 다른 모델의 ECE를 비교할 때 같은 평가 프레임·구간·경계·비중을 사용하세요. 시험 성적을 좋아 보이게 만드는 구간만 사후 선택하면 공정한 비교가 아닙니다. ECE 하나로 확률 교정을 증명하거나, 수치가 낮다는 이유만으로 의사결정에 충분하다고 단정하지 않습니다.

Define ECE here as the analysis-weighted mean absolute difference between each bin’s mean forecast and event frequency. Other references use different bins or squared summaries, so state the convention. Ours concerns class-one probabilities and fixed equal-width bins.

Putting all four earlier rows in one bin gives mean forecast and frequency both 0.5, hence zero ECE. With two bins both absolute gaps are one-quarter. With four bins each row stands alone, giving mean absolute gap 0.35.

ECE⁡B=∑b:Wb>0WbW∣pˉb−yˉb∣,W=∑bWb>0\operatorname{ECE}_{\mathcal B}=\sum_{b:W_b>0}\frac{W_b}{W}\left|\bar p_b-\bar y_b\right|,\qquad W=\sum_bW_b>0
Change only the bin count for the same four rows
Equal-width binsECEMean Brier
1037/200=0.185
21/4=0.2537/200=0.185
47/20=0.3537/200=0.185

Neither forecasts nor outcomes changed. Opposing discrepancies cancelled inside the broadest bin, hiding structure. But one observation per bin is not automatically a reliable population diagnostic either: excessive subdivision creates noisy small-denominator frequencies.

Compare ECE using the same evaluation frame, bins, boundary rule and weights. Selecting bins afterward to flatter test performance is not a fair comparison. One ECE value neither proves calibration nor establishes decision sufficiency.

대학원 연결Graduate bridge

거친 구간의 Brier 분해에서 빠뜨리기 쉬운 항The terms omitted by a coarse-bin Brier decomposition

Brier 성적을 결과 변동성, 구분력, 교정 오차의 세 항으로 설명하는 식을 만날 수 있습니다. 그러나 서로 다른 예측 확률을 넓은 구간으로 묶고 그 세 항만 사용하면 실제 Brier와 맞지 않을 수 있습니다. 구간 안에서 예측 확률이 얼마나 변했는지, 그 변동이 결과와 함께 움직였는지를 더 보존해야 합니다.

각 구간에서 p−y를 평균 차이와 중심화한 나머지로 나누어 제곱해 보세요. 구간 내 평균 손실은 (평균 p−평균 y)²+Var_b(p)+Var_b(y)−2Cov_b(p,y)입니다. y가 0·1이므로 Var_b(y)=평균 y×(1−평균 y)입니다. 여기에 전체 분산 분해를 적용하면 다음 식이 됩니다. 모든 평균·분산·공분산은 같은 분석 비중을 사용한 유한 표의 값입니다.

BS=U−R+C+VP−2KP,Y,U=yˉ(1−yˉ), R=∑bπb(yˉb−yˉ)2, C=∑bπb(pˉb−yˉb)2\mathrm{BS}=U-R+C+V_P-2K_{P,Y},\quad U=\bar y(1-\bar y),\ R=\sum_b\pi_b(\bar y_b-\bar y)^2,\ C=\sum_b\pi_b(\bar p_b-\bar y_b)^2
VP=∑bπbVar⁡b(p),KP,Y=∑bπbCov⁡b(p,y),πb=Wb/WV_P=\sum_b\pi_b\operatorname{Var}_b(p),\quad K_{P,Y}=\sum_b\pi_b\operatorname{Cov}_b(p,y),\quad\pi_b=W_b/W
앞 네 행의 두 구간에서 직접 검산
항정확 값
U1/4
R0
C1/16
V_P9/400
K_(P,Y)3/40
U−R+C+V_P−2K37/200

세 항 U−R+C만 쓰면 5/16=0.3125로 잘못 나옵니다. 구간 내 보정 9/400−2×3/40=−51/400을 더해야 실제 37/200=0.185가 됩니다. 교정 오차 C가 음수라는 뜻이 아닙니다. 누락했던 예측과 결과의 공분산 항이 음의 부호로 들어간 것입니다.

동일 구간에서 예측 p가 모두 같으면 V_P와 K는 모두 0이 되어 세 항 식으로 줄어듭니다. 이 조건 없이 거친 표에 단순한 세 항 분해를 붙이지 마세요. 실습은 다섯 항과 재구성 오차를 정확 분수로 내놓아 어느 항이 성적 차이를 설명하는지 확인하도록 합니다.

You may encounter a Brier decomposition described through uncertainty, resolution and calibration error. If a bin contains different forecast probabilities, using only those three terms need not reproduce the actual Brier score. Retain both within-bin probability variation and its association with outcomes.

Within a bin, split p minus y into its mean difference and centered deviations, then square. The mean squared error becomes squared mean difference plus within-bin variance of p and y, minus twice their covariance. Binary-outcome variance is mean y times one minus mean y. Applying the total-variance identity gives the following exact finite-table relation, using the same analysis weights throughout.

BS=U−R+C+VP−2KP,Y,U=yˉ(1−yˉ), R=∑bπb(yˉb−yˉ)2, C=∑bπb(pˉb−yˉb)2\mathrm{BS}=U-R+C+V_P-2K_{P,Y},\quad U=\bar y(1-\bar y),\ R=\sum_b\pi_b(\bar y_b-\bar y)^2,\ C=\sum_b\pi_b(\bar p_b-\bar y_b)^2
VP=∑bπbVar⁡b(p),KP,Y=∑bπbCov⁡b(p,y),πb=Wb/WV_P=\sum_b\pi_b\operatorname{Var}_b(p),\quad K_{P,Y}=\sum_b\pi_b\operatorname{Cov}_b(p,y),\quad\pi_b=W_b/W
Verify the two-bin decomposition for the four earlier rows
TermExact value
U1/4
R0
C1/16
V_P9/400
K_(P,Y)3/40
U minus R plus C plus V_P minus twice K37/200

The three-term expression alone incorrectly gives 5/16. Adding within-bin correction minus 51/400 yields the actual Brier score 37/200. Calibration error C is not negative; the previously omitted covariance enters with a negative coefficient.

If every forecast within a bin is identical, both extra terms vanish and the three-term relation applies. Do not apply that simpler identity to arbitrary coarse bins without its condition. The lab reports all five terms and the reconstruction residual as exact fractions.

학부 심화 · 선택Advanced undergraduate · optional

교정기를 맞춘 표에서 다시 평가하면Evaluating a calibrator on its fitting table

한 관측만 보고 확률을 새로 맞춘다고 합시다. y=1을 보았으니 예측을 1로 고치면 그 표의 Brier는 0이 됩니다. y=0이면 예측을 0으로 고쳐 역시 손실 0을 만들 수 있습니다. 같은 자료에 맞춘 빈도표에서 “완벽하게 교정됐다”고 보고하기 쉬운 구조입니다.

그러나 실제 법칙이 독립 Bernoulli(1/2)라고 지정한 가상 실험에서는 새 결과가 이전 관측과 다를 확률이 1/2입니다. 맞춘 확률은 0 또는 1이므로 새 Brier는 서로 다를 때 1, 같을 때 0이고 기대 손실은 1/2입니다. 늘 1/2을 보고하던 모델의 기대 Brier 1/4보다 나빠졌습니다.

Yfit,Ynew∼IIDBernoulli(1/2),p^=Yfit ⇒ E[(p^−Ynew)2]=1/2Y_{\rm fit},Y_{\rm new}\overset{\rm IID}{\sim}\mathrm{Bernoulli}(1/2),\quad \widehat p=Y_{\rm fit}\ \Rightarrow\ \mathbb E[(\widehat p-Y_{\rm new})^2]=1/2

이 예는 모든 교정 방법이 나쁘다는 뜻이 아닙니다. 학습에 사용한 라벨로 같은 방법을 평가하면 성적이 낙관적일 수 있다는 뜻입니다. 교정기의 복잡도와 표본 수, 원 모델의 성질, 평가 분리를 함께 설계해야 합니다. 잘못된 확신 0 또는 1을 보고한 경우에는 새 로그 손실이 실제로 무한대가 되는 결과도 가능합니다.

확률 교정기를 학습하는 자료와 Conformal 문턱을 계산하는 자료도 구별하세요. 별도로 학습한 교정기를 포함하여 예측 규칙을 고정한 뒤 새 교환가능 보정 점수에 순위 논증을 적용할 수 있습니다. 같은 점수를 보고 확률 변환과 문턱을 반복 선택하면서 단순 split-Conformal 정리를 그대로 인용하면 안 됩니다. 실제 사례에서는 이 추가 재학습을 수행하지 않습니다.

Suppose a calibrator sees only one labeled observation. After observing one, it can set the forecast to one and achieve zero Brier on that table; after zero, it can set the forecast to zero and again score perfectly. Reusing the fitting table makes it easy to claim perfect empirical calibration.

Under a specified IID Bernoulli one-half experiment, however, a new outcome differs from the fitting outcome with probability one-half. The fitted endpoint forecast then has Brier one; otherwise it has zero. Expected future loss is one-half, worse than the constant one-half forecast’s loss one-quarter.

Yfit,Ynew∼IIDBernoulli(1/2),p^=Yfit ⇒ E[(p^−Ynew)2]=1/2Y_{\rm fit},Y_{\rm new}\overset{\rm IID}{\sim}\mathrm{Bernoulli}(1/2),\quad \widehat p=Y_{\rm fit}\ \Rightarrow\ \mathbb E[(\widehat p-Y_{\rm new})^2]=1/2

This does not condemn calibration methods. It shows why evaluating on fitting labels can be optimistic. Design calibrator complexity, sample size, the original model and held-out evaluation together. Unjustified endpoint probabilities may also produce genuinely infinite future log loss.

Distinguish calibrator-fitting data from conformal-threshold data. Once a predictor including any separately fitted calibrator is fixed, fresh exchangeable calibration scores can support the rank argument. Repeatedly selecting a probability transformation and threshold on the same scores does not preserve the basic split-conformal theorem unchanged. Our factual cases do not perform that extra refitting.

대학원 연결Graduate bridge

온도 조정과 등장회귀의 학습 다리A learning bridge to temperature scaling and isotonic regression

확률 교정의 대표 아이디어 두 가지를 작은 예로 살펴봅시다. 첫째, 0<p<1의 오즈 p/(1−p)에 로그를 취해 logit z를 만들고 양수 T로 나눈 뒤 확률로 되돌립니다. T가 커지면 이진 확률은 1/2 쪽으로 완만해지고, 작아지면 더 극단적이 됩니다. p=0.9의 오즈는 9이므로 T=2이면 새 오즈는 √9=3, 새 확률은 3/4입니다.

양수 T는 z의 부호를 바꾸지 않아 이진 0.5 기준의 분류를 유지합니다. 여러 클래스의 모든 logit에 같은 양수 온도를 쓰면 최대값의 순서도 유지합니다. 따라서 정확도는 같아도 로그 손실·Brier·교정 성적은 달라질 수 있습니다. 어떤 온도가 좋은지는 별도의 교정 학습 자료에서 정해야지 시험 라벨로 골라서는 안 됩니다.

z=log⁡p1−p,pT=11+e−z/T,T>0;p=9/10, T=2⇒pT=3/4z=\log\frac{p}{1-p},\quad p_T=\frac1{1+e^{-z/T}},\quad T>0;\qquad p=9/10,\ T=2\Rightarrow p_T=3/4

둘째, 예측 p가 커질수록 새 확률이 감소하지 않도록 하는 등장회귀, isotonic regression입니다. 작은 p 블록의 경험 빈도가 0.8인데 큰 p 블록은 0.2라면 그 두 값은 단조 증가 제약을 위반합니다. 동일 비중인 두 블록을 합쳐 0.5로 두는 것이 첫 손계산입니다. 비중이 다르면 합친 평균도 그 비중을 사용합니다.

인접 블록을 합치는 PAVA는 이런 위반이 없을 때까지 반복하는 알고리즘입니다. 같은 예측값의 행은 먼저 한 블록으로 모아야 하며, 교정 학습 표의 단조 제곱손실을 줄인다고 미래 확률이 자동으로 참이 되지는 않습니다. 이 절은 원리와 손계산을 잇는 확장 학습입니다. 현재 calibration 실습은 표의 진단을 계산하며 온도나 등장회귀를 몰래 적합하지 않습니다.

Consider two calibration ideas through small examples. First, transform an interior probability into log odds z, divide by positive temperature T and map back. Increasing T moves a binary forecast toward one-half; decreasing it makes the forecast more extreme. Probability 0.9 has odds nine, so temperature two gives odds three and probability three-quarters.

A positive temperature preserves the sign of a binary logit and thus its half-threshold label. Applying one positive temperature to all multiclass logits also preserves their argmax ordering. Accuracy can therefore stay fixed while Brier, log loss and calibration change. Choose temperature on a separate calibrator-fitting sample, not test labels.

z=log⁡p1−p,pT=11+e−z/T,T>0;p=9/10, T=2⇒pT=3/4z=\log\frac{p}{1-p},\quad p_T=\frac1{1+e^{-z/T}},\quad T>0;\qquad p=9/10,\ T=2\Rightarrow p_T=3/4

Second, isotonic regression requires an adjusted probability not to decrease as the original forecast rises. If an earlier low-forecast block has empirical event rate 0.8 and a later high-forecast block has rate 0.2, those rates violate the increasing constraint. Pooling equally weighted blocks gives rate one-half; unequal block weights require their weighted mean.

PAVA repeatedly pools adjacent violating blocks until their fitted levels are ordered. Aggregate equal original forecasts first. Improving monotone squared loss on the fitting table does not automatically recover future true probabilities. This is an optional conceptual and hand-calculation bridge: the calibration lab reports diagnostics and does not silently fit temperature or isotonic transformations.

학부 심화 · 선택Advanced undergraduate · optional

확률에서 행동으로 가려면 비용과 효과가 더 필요하다From probability to action requires cost and effectiveness

예측 확률이 높다고 반드시 행동해야 하는 것은 아닙니다. 가상의 우산 결정에서 비 피해가 5, 우산 준비 비용이 1이고 우산이 그 피해를 완전히 막는다고 정해 봅시다. 비 확률 p일 때 우산 없이 기대 피해는 5p, 우산을 들면 비용은 1입니다. 그러므로 p>1/5일 때 준비하는 것이 이 단순 모형에서는 유리합니다. 같은 확률이라도 비용과 피해 크기가 달라지면 문턱이 달라집니다.

행동이 사건 손실의 e만큼만 막는다고 알려져 있다면 피할 수 있는 기대 손실은 peL입니다. 다음 부등식에는 확률, 예방 효과, 손실, 비용이라는 서로 다른 정보가 들어 있습니다. 행동 자체의 부작용이나 상대의 반응이 있으면 모형에 그 비용·효과를 더 포함해야 합니다.

Act if p eL>c,p>ceL(eL>0)\text{Act if }p\,eL>c,\qquad p>\frac{c}{eL}\quad(eL>0)

앞의 동일 비중 두 집단에서 비 확률이 0.1과 0.9라면 낮은 집단에는 우산을 준비하지 않고 높은 집단에는 준비합니다. 기대 비용은 (0.5+1)/2=0.75입니다. 항상 p=0.5인 교정된 모델로 모두에게 준비하면 비용은 1입니다. 두 모델이 모두 전체 예측 기준으로 교정되어도 추가 구분 정보가 이 가상 결정에서는 0.25의 가치를 가집니다.

실제 고객 이탈 예측을 곧바로 연락의 경제효과로 해석하지 마세요. 이탈 위험 p와 연락이 이탈을 얼마나 바꾸는지 e는 다릅니다. 관측 자료의 분류·확률 교정·Conformal 집합만으로 행동의 인과효과를 구한 것은 아닙니다. 이후 인과 머신러닝 장에서는 이런 추가 질문을 다루며, 여기서는 가정이 알려진 작은 의사결정 모형과 실제 예측 비교를 구별합니다.

A high forecast probability does not automatically require action. In a constructed umbrella decision, suppose rain damage costs five, carrying an umbrella costs one and the umbrella completely prevents that damage. Expected loss without it is five p; its cost is one. Acting is preferable above probability one-fifth in this particular model. Different costs or damage levels change the threshold.

If an action is known to prevent fraction e of the loss, its avoided expected loss is p times e times L. The inequality uses four distinct inputs: probability, effectiveness, loss and cost. Side effects or behavioral responses require additional modeled costs and effects.

Act if p eL>c,p>ceL(eL>0)\text{Act if }p\,eL>c,\qquad p>\frac{c}{eL}\quad(eL>0)

With equally common groups at rain probabilities 0.1 and 0.9, do not prepare for the lower-risk group and prepare for the higher-risk group. Expected cost is 0.75. A calibrated constant 0.5 forecast prepares for everyone and costs one. Both forecasts can be calibrated by their report, yet additional discrimination is worth 0.25 in this constructed decision.

Do not translate actual churn forecasts directly into economic benefits from retention contact. Churn risk p differs from the effect e of contacting a customer. Classification, probability diagnostics and conformal sets alone do not identify that causal effect. A later causal-ML chapter addresses the additional questions; here we separate a fully specified toy decision from observational prediction.

기초Foundations

한 숫자 대신 가능한 결과의 집합A set of possible outcomes instead of one number

다음 시험 점수를 70점이라고 예측했다고 합시다. 이 숫자는 실제 점수가 정확히 70일 확률이 높다는 약속일까요? 평균적인 예측을 한 숫자로 요약하는 것과 미래 결과가 들어갈 범위를 제시하는 것은 다른 일입니다. 65~75점이라는 구간은 폭 10점이고, 20~100점은 훨씬 넓습니다. 둘 다 실제 점수를 포함할 수 있지만 유용성은 다를 수 있습니다.

예측 집합 C(x)는 입력 x를 받은 새 결과가 들어갈 후보들의 모음입니다. 연속 결과에서는 구간으로, 분류에서는 여러 클래스의 집합으로 나타낼 수 있습니다. 목표는 정한 조건 아래에서 미래의 정답이 그 집합에 들어가는 확률을 적어도 1−α로 만드는 것입니다. 폭이나 후보 수가 작으면 유용할 수 있지만 포함률과 함께 평가해야 합니다.

f^(x)∈R,C(x)⊆R,P{Ynew∈C(Xnew)}≥1−α\widehat f(x)\in\mathbb R,\qquad C(x)\subseteq\mathbb R,\qquad \mathbb P\{Y_{\rm new}\in C(X_{\rm new})\}\ge1-\alpha

이것은 모집단 평균이나 회귀계수 같은 고정된 모수를 위한 신뢰구간과도 구별합니다. 여기의 대상은 새로 관측될 Y입니다. 모수 추정의 불확실성뿐 아니라 새 결과 자체의 변동도 관련됩니다. 이미 자료를 본 뒤 특정 개인의 정답이 80% 확률로 이 구간에 있다고 조건부로 해석하는 것까지 단순한 주변 피복 정리가 보장하지는 않습니다.

정해진 score와 학습 규칙이 나빠도 피복을 얻는 방법은 있을 수 있습니다. 다만 아주 넓은 구간이나 모든 클래스를 포함하는 집합은 의사결정에 별 도움이 안 될 수 있습니다. “포함하느냐”와 “얼마나 좁고 상황에 맞게 달라지느냐”를 함께 묻는 것이 이 장의 출발점입니다.

Suppose a model predicts a future examination score of seventy. Does it promise that the score will equal seventy? Summarizing a prediction with one number differs from supplying a range for a future outcome. Intervals from sixty-five to seventy-five and from twenty to one hundred might both cover, yet have very different usefulness.

A prediction set C(x) lists possible outcomes for a new input x. It may be an interval for a continuous response or a collection of classes. Under stated conditions, we seek coverage probability at least one minus alpha. Narrow width or a small class set may be useful, but must be assessed alongside inclusion of the truth.

f^(x)∈R,C(x)⊆R,P{Ynew∈C(Xnew)}≥1−α\widehat f(x)\in\mathbb R,\qquad C(x)\subseteq\mathbb R,\qquad \mathbb P\{Y_{\rm new}\in C(X_{\rm new})\}\ge1-\alpha

Distinguish this from a confidence interval for a fixed parameter such as a population mean or regression coefficient. Our target is a new Y, including its own outcome variability. A simple marginal coverage theorem also does not imply that, after seeing the data, this particular individual has the stated conditional probability of falling in the displayed interval.

Coverage may be achievable even with a poor fixed predictor, but an extremely wide interval or a set containing every class may be unhelpful. Ask both whether it covers and whether its size adapts usefully to the situation.

학부 심화 · 선택Advanced undergraduate · optional

교환가능성: 자리를 바꿔도 같은 법칙인가Exchangeability: does swapping positions preserve the law?

봉투 다섯 개에 점수 하나씩이 들어 있고, 어느 봉투를 마지막 새 관측이라고 부를지 똑같은 가능성으로 정한다고 상상해 보세요. 마지막 봉투의 점수가 전체에서 가장 작을 수도, 가장 클 수도 있습니다. 이름표를 바꿔도 전체 확률 법칙이 같다는 대칭성이 순위 논증의 핵심입니다. 이를 교환가능성이라고 부릅니다.

독립·동일 분포는 교환가능성을 주는 충분한 조건입니다. 그러나 독립 자체가 반드시 필요한 것은 아닙니다. 공통 동전을 한 번 던져 모든 점수를 0 또는 모두 1로 만드는 가상 벡터는 강하게 의존하지만 위치를 바꾸어도 같은 법칙입니다. 이런 경우 동률이 많다는 점은 따로 처리해야 합니다.

(S1,…,Sn+1)=d(Sπ(1),…,Sπ(n+1))for every permutation π(S_1,\ldots,S_{n+1})\overset d=(S_{\pi(1)},\ldots,S_{\pi(n+1)})\quad\text{for every permutation }\pi

모든 위치의 주변 분포가 같다는 것만으로도 부족합니다. 확률 1/2씩 (0,1,0)과 (1,0,1)만 나오는 가상 벡터를 생각해 보세요. 각 위치만 보면 0과 1이 똑같이 나오지만, 두 번째와 세 번째 자리를 바꾼 벡터의 법칙은 원래와 다릅니다. 시간 순서에 따른 의존 구조는 주변 분포 표만으로 확인되지 않습니다.

실제 국가, 개인, 고객을 해시로 훈련·보정·시험에 나누었다는 사실은 이 대칭성을 증명하지 않습니다. 국가별 차이, 관측 선택, 결측, 시점 이동과 운영 변화가 남습니다. 반대로 “공통 충격이 있으니 어떤 교환가능성도 불가능하다”고 자동 단정하지도 않습니다. 어떤 조건에서 어느 점수 벡터의 대칭성을 가정하는지 구체적으로 적어야 합니다.

Imagine five envelopes containing scores and an equally likely choice of which envelope is called the final new observation. Its score could have any rank. The symmetry of the joint law under relabeling is central to the rank argument; it is called exchangeability.

IID observations imply exchangeability, but independence is not necessary. A constructed vector that is all zeros or all ones according to one common fair coin is highly dependent yet unchanged in law by a permutation. Its ties require separate care.

(S1,…,Sn+1)=d(Sπ(1),…,Sπ(n+1))for every permutation π(S_1,\ldots,S_{n+1})\overset d=(S_{\pi(1)},\ldots,S_{\pi(n+1)})\quad\text{for every permutation }\pi

Equal one-dimensional marginal distributions alone are insufficient. Consider a vector that is either (zero, one, zero) or (one, zero, one), each with probability one-half. Every position is marginally a fair binary outcome, but swapping the second and third positions changes the joint law. Marginal frequency tables do not reveal all temporal structure.

Hashing factual country, person or customer identities into roles does not prove this symmetry. Heterogeneity, selection, missingness, time shifts and operational change remain relevant. Conversely, a common shock does not logically rule out every exchangeable model. State precisely which score vector is assumed symmetric under which conditions.

학부 심화 · 선택Advanced undergraduate · optional

점수 규칙은 보정 결과를 보기 전에 고정하기Fix the score rule before inspecting calibration outcomes

먼저 훈련 자료로 예측 규칙 f-hat을 만듭니다. 그다음 보정 자료의 각 입력·결과 쌍에 같은 점수 함수 s를 적용합니다. 큰 점수는 예측과 결과가 더 잘 맞지 않는다는 뜻으로 정하겠습니다. 회귀에서는 절대 잔차 |y−f-hat(x)|, 이진 분류에서는 실제 클래스에 준 확률을 1에서 뺀 값이 간단한 예입니다.

학습 자료를 조건으로 예측 규칙을 고정하고, 보정 점수와 새 점수가 함께 교환가능하다는 조건이 있으면 순위 논증을 사용할 수 있습니다. 새 결과를 알기 전 입력 x만으로 예측 집합을 계산해야 합니다. 시험 라벨을 보고 문턱이나 모형을 고르면 그 라벨은 이미 계산 설계에 들어간 것입니다.

f^ fixed given training data,Si=s(Xi,Yi;f^),i∈C∪{new}\widehat f\text{ fixed given training data},\qquad S_i=s(X_i,Y_i;\widehat f),\quad i\in\mathcal C\cup\{\mathrm{new}\}

왜 분리가 필요할까요? 가상의 독립 자료에서 X는 연속이고 Y는 0 또는 1이라고 합시다. 보정행은 4개, α=1/5로 정해 유한 순위 k=4인 경우를 사용합니다. 보정 표의 X를 외워서 그 X에서는 관측 Y를 그대로 내놓고, 처음 보는 X에는 무조건 2를 예측하는 규칙을 보정 라벨로 만들었다고 해 보세요. 모든 보정 절대 잔차는 0이라 문턱도 0이지만 새 X는 거의 확실히 처음 보는 값이므로 집합 {2}가 실제 0·1 결과를 전혀 포함하지 못합니다. 원 자료가 독립이라는 사실만으로 이 누출을 구제할 수 없습니다.

이는 보정 라벨을 쓰는 모든 방법이 불가능하다는 말이 아닙니다. full Conformal이나 적절한 재표본·교차 적합 방법은 다른 대칭성 논증을 사용할 수 있습니다. 그러나 단순 split-Conformal의 고정 예측 규칙 조건을 버리고 같은 정리를 그대로 적용해서는 안 됩니다.

First fit a predictor on training data. Then apply the same score rule to every calibration input-outcome pair, with larger scores meaning poorer agreement. Absolute regression residuals and one minus the probability of the actual binary class are simple examples.

Condition on training data to fix the predictor. If calibration and future scores are jointly exchangeable under that condition, the rank argument applies. Form the future set using its input before observing its label. Choosing a model or threshold after inspecting a test label already uses that label in the procedure.

f^ fixed given training data,Si=s(Xi,Yi;f^),i∈C∪{new}\widehat f\text{ fixed given training data},\qquad S_i=s(X_i,Y_i;\widehat f),\quad i\in\mathcal C\cup\{\mathrm{new}\}

Why separate roles? In a constructed IID population, let X be continuous and Y binary. Use four calibration rows and alpha one-fifth, so the requested rank is the finite value four. Suppose a rule memorizes calibration inputs and returns their observed labels, but predicts two at every unseen input. Calibration residuals are all zero, giving threshold zero. A new input is almost surely unseen, so its singleton prediction set containing two never covers the binary outcome. IID raw data does not repair this label leakage.

This does not prohibit every method using calibration labels. Full conformal and appropriately justified resampling or cross-fitting methods may use different symmetry arguments. It does prohibit discarding a basic split-conformal assumption while citing the same theorem unchanged.

학부Undergraduate

원 ID를 보존하며 보정 점수를 정렬하기Sort calibration scores while retaining original identities

네 보정 관측의 절대 잔차가 원 순서대로 4,1,3,2라고 합시다. 크기 순서는 1,2,3,4입니다. 정렬 후 첫 번째는 최소값, 네 번째는 최대값입니다. 정렬하는 것은 점수의 순위이며 원 관측의 ID와 값 자체를 고치는 것이 아닙니다. 어떤 점수가 어느 원행에서 왔는지 장부를 유지합니다.

필요한 Y가 결측이면 그 행의 절대 잔차는 없습니다. 점수 0으로 채우면 보정 표가 실제보다 쉬웠던 것처럼 보이고 문턱이 줄어들 수 있습니다. 관측 가능한 점수만으로 n을 세되 결측 원 ID는 따로 남깁니다. 결측을 제외한 점수와 미래 점수의 교환가능성이 여전히 성립하는지는 별도 조건입니다.

Si=∣Yi−f^(Xi)∣≥0,S(1)≤⋯≤S(n)S_i=|Y_i-\widehat f(X_i)|\ge0,\qquad S_{(1)}\le\cdots\le S_{(n)}
구성한 보정 점수의 정렬
원 위치원 ID점수정렬 순위
0d44
1a11
2c33
3b22

순위는 1부터, 프로그램의 배열 위치는 0부터 시작할 수 있습니다. k번째 값을 찾을 때 배열의 k−1 위치를 사용해야 합니다. 일반적인 분위수 함수의 보간 방식과 우리가 증명할 순서통계량은 다를 수 있으므로, 함수 이름만 같다고 결과가 같다고 가정하지 않습니다.

점수의 단위도 남겨 두세요. 절대 성장률 잔차는 성장률 숫자의 단위, 로그 임금 잔차는 원 로그 임금 단위입니다. 분류 점수 1−p_true는 무차원이며 0과 1 사이입니다. 일반 순위 법칙은 음의 실수 점수도 다룰 수 있지만, 이 장의 절대 잔차·분류 집합 실습은 그 점수 정의의 허용 범위를 지킵니다.

Suppose four calibration absolute residuals appear in original order as four, one, three and two. Sorting gives one, two, three and four. The first order statistic is the minimum and the fourth is the maximum. We order score values, not rewrite original observations; retain which identity produced each score.

A missing required outcome gives no residual. Filling it with zero makes calibration appear artificially easy and may shrink the threshold. Count n using observed scores while preserving missing identities. Whether selected observed scores remain exchangeable with future scores is another assumption.

Si=∣Yi−f^(Xi)∣≥0,S(1)≤⋯≤S(n)S_i=|Y_i-\widehat f(X_i)|\ge0,\qquad S_{(1)}\le\cdots\le S_{(n)}
Sort the constructed scores without losing lineage
Original positionOriginal IDScoreSorted rank
0d44
1a11
2c33
3b22

Ranks start at one, while array positions may start at zero. The kth order statistic occupies position k minus one. A generic interpolating quantile routine can differ from the order statistic in the proof, even if its name sounds suitable.

Preserve units: absolute growth residuals use growth units, native log-wage residuals use log-wage units, and one minus the true-class probability is dimensionless. A general rank law can use negative real scores, but our absolute-residual and classification-set labs enforce their specific score ranges.

학부 심화 · 선택Advanced undergraduate · optional

n이 아니라 n+1로 올림하는 이유Why the ceiling uses n plus one

새 점수도 보정 점수와 같은 법칙의 한 자리라고 생각하면 총 자리는 n+1개입니다. 새 점수가 그중 어떤 순위일지 대칭적으로 보아 목표 포함률 1−α 이상을 확보하는 정수 k를 골라야 합니다. 그래서 (n+1)(1−α)를 올림합니다. n(1−α)를 계산하거나 가장 가까운 정수로 반올림하는 규칙은 여기의 증명과 다릅니다.

n=4,α=1/5이면 5×4/5=4이므로 k=4, 문턱은 네 점수 중 최대값입니다. 점수 1,2,3,4에서는 문턱 4입니다. 반면 n=9,α=7/10이면 10×3/10=3으로 k=3입니다. 가능한 새 순위 10개 중 앞 세 자리를 받아들이는 논리입니다.

k=⌈(n+1)(1−α)⌉,q^=S(k) (k≤n),C(x)={y:s(x,y)≤q^}k=\left\lceil(n+1)(1-\alpha)\right\rceil,\qquad \widehat q=S_{(k)}\ (k\le n),\qquad C(x)=\{y:s(x,y)\le\widehat q\}

정확한 경계 계산도 중요합니다. 일반 이진 부동소수점으로 10×(1−0.7)을 계산하면 일부 환경에서 3.0000000000000004가 되고 올림 결과가 4가 됩니다. 정확한 7/10을 사용하면 순위는 3입니다. 실습은 이 올림과 동률·포함 판정을 정확 분수로 처리합니다. 그래프에 표시한 짧은 근삿값으로 순위를 다시 결정하지 않습니다.

이 순위 선택은 필요 조건들을 갖춘 주변 피복 논증의 일부입니다. 아직 각 개인이나 조건 x마다 같은 포함률을 준다고 결론내리지 않습니다. 다음 절에서 k가 실제 보정 점수 개수보다 클 때의 처리를 먼저 살펴보겠습니다.

Treat the future score as one more exchangeable position alongside the n calibration scores. There are n plus one positions. Choose an integer rank whose accepted fraction is at least one minus alpha, which requires taking the ceiling of (n plus one) times that target. Using n instead, or rounding to the nearest integer, does not follow this proof.

With n four and alpha one-fifth, the product is four, so use the maximum of the four calibration scores. For scores one through four the threshold is four. With n nine and alpha seven-tenths, the product is exactly three: accept the first three of ten possible augmented ranks.

k=⌈(n+1)(1−α)⌉,q^=S(k) (k≤n),C(x)={y:s(x,y)≤q^}k=\left\lceil(n+1)(1-\alpha)\right\rceil,\qquad \widehat q=S_{(k)}\ (k\le n),\qquad C(x)=\{y:s(x,y)\le\widehat q\}

Boundary arithmetic matters. Ordinary binary64 evaluation of ten times (one minus 0.7) can produce 3.0000000000000004, whose ceiling is four. Exact seven-tenths gives rank three. Our lab uses exact fractions for the ceiling, ties and membership; shortened graph labels do not determine rank.

The rank choice is part of a marginal coverage argument with explicit assumptions. It does not yet promise the same coverage for each person or input condition. First consider what happens when the requested rank exceeds the number of calibration scores.

학부 심화 · 선택Advanced undergraduate · optional

문턱이 무한대가 되는 것은 계산 실패가 아니다An infinite threshold is not a calculation failure

보정 점수가 4개인데 목표 피복률이 90%라고 합시다. α=1/10이므로 k=ceil(5×9/10)=5입니다. 다섯 번째 실제 점수는 없습니다. 그렇다고 최대값을 반복해 쓰면 순위 다섯 자리 중 가장 큰 새 점수를 놓칠 가능성 1/5을 허용하여 목표 1/10보다 커질 수 있습니다. 올바른 규칙은 문턱을 수학적 양의 무한대로 두는 것입니다.

정렬할 대상에 가상의 +∞ 점수를 하나 더 놓고 n+1개를 똑같은 비중으로 생각하면 이 처리가 자연스럽습니다. +∞는 실제 관측값이라고 추가한 데이터가 아니라, 유한 표본 순위 보정을 표현하는 수학적 장치입니다. 실제 CSV에는 원 보정 점수와 별도로 그 상태를 기록합니다.

q^=Quantile⁡1−α ⁣(1n+1∑i=1nδSi+1n+1δ+∞),k=n+1⇒q^=+∞\widehat q=\operatorname{Quantile}_{1-\alpha}\!\left(\frac1{n+1}\sum_{i=1}^n\delta_{S_i}+\frac1{n+1}\delta_{+\infty}\right),\qquad k=n+1\Rightarrow\widehat q=+\infty
유한 문턱이 가능해지는 최소 보정 수
목표 1−αα최소 n그 경계의 문턱
80%1/54보정 최대값
90%1/109보정 최대값
95%1/2019보정 최대값
99%1/10099보정 최대값

조건은 α≥1/(n+1)입니다. 이 경계보다 목표가 높으면 회귀 구간은 모든 실수, 이진 분류 집합은 두 클래스가 될 수 있습니다. 이는 유효하지만 정보가 적은 결과입니다. 문턱을 큰 유한 숫자로 바꾸거나 “계산을 못 했으니 0”으로 바꾸면 원래 포함 규칙을 손상합니다.

보정 관측이 0개여도 미리 고정한 점수 규칙과 예측 중심이 있다면 k=1, 문턱 +∞라는 자명한 집합을 만들 수 있습니다. 반면 훈련 예측 규칙 자체가 없어서 중심도 정의되지 않는 상황은 다릅니다. 실제 자료 API는 그런 훈련 부재를 미정의로 남겨 임의의 중심 0을 만들지 않습니다.

Suppose only four calibration scores are available and the target is ninety-percent coverage. Alpha one-tenth gives rank five, which has no observed calibration value. Repeating the finite maximum can miss the largest future augmented rank with probability one-fifth, exceeding the intended one-tenth. The correct threshold is mathematical positive infinity.

Equivalently, append one formal infinite score and assign equal mass to all n plus one positions. This infinity is a mathematical finite-sample correction, not a fabricated factual observation. Preserve it separately from observed score values in the data ledger.

q^=Quantile⁡1−α ⁣(1n+1∑i=1nδSi+1n+1δ+∞),k=n+1⇒q^=+∞\widehat q=\operatorname{Quantile}_{1-\alpha}\!\left(\frac1{n+1}\sum_{i=1}^n\delta_{S_i}+\frac1{n+1}\delta_{+\infty}\right),\qquad k=n+1\Rightarrow\widehat q=+\infty
Minimum calibration size allowing a finite threshold
Target coverageAlphaMinimum nThreshold at that boundary
80%1/54Calibration maximum
90%1/109Calibration maximum
95%1/2019Calibration maximum
99%1/10099Calibration maximum

The condition is alpha at least one divided by n plus one. More demanding targets can yield the whole real line or both binary classes: valid but uninformative. Replacing infinity with a large finite constant, or with zero because it looks like failure, changes the procedure.

With no calibration scores, a previously fixed score rule and defined prediction center still yield the trivial infinite-threshold set. That differs from having no trained predictor or defined center. The factual-data API preserves the latter as undefined rather than inventing a zero center.

학부Undergraduate

절대 잔차 문턱을 회귀 구간으로 바꾸기Turn an absolute-residual threshold into an interval

절대값 |y−f-hat(x)|은 실제 값이 예측 중심에서 떨어진 거리입니다. 거리가 q보다 작거나 같다는 조건은 중심의 왼쪽 q부터 오른쪽 q까지라는 구간과 같습니다. 먼저 절대값 부등식을 두 방향으로 풀어 보세요. 이 과정에서 결과와 잔차 문턱의 단위가 같아야 합니다.

가상 시험 점수의 예측 중심이 70이고 보정 절대 잔차의 문턱이 6이면 구간은 [64,76]점이고 폭은 12점입니다. 실제 76점은 포함 부등호 때문에 들어가고, 77점은 들어가지 않습니다. 문턱 6을 분산이나 표준오차로 바꾸어 해석한 계산이 아닙니다.

s(x,y)=∣y−f^(x)∣,∣y−f^(x)∣≤q^  ⟺  f^(x)−q^≤y≤f^(x)+q^s(x,y)=|y-\widehat f(x)|,\quad |y-\widehat f(x)|\le\widehat q\iff \widehat f(x)-\widehat q\le y\le\widehat f(x)+\widehat q
중심 70, 문턱 6인 구성한 질의
관측 Y집합포함 여부
64[64,76]예 · 경계 포함
70[64,76]예
76[64,76]예 · 경계 포함
77[64,76]아니요
결측[64,76]포함 판정 미정의

라벨 Y를 아직 몰라도 입력으로부터 중심과 구간은 만들 수 있습니다. 다만 그 행이 정답을 포함했는지의 평가는 Y가 관측된 뒤에만 가능합니다. 따라서 평균 구간 폭의 분모인 “정의된 예측 수”와 경험 피복률의 분모인 “관측 라벨이 있는 정의된 예측 수”가 다를 수 있습니다. 실습은 두 분모를 따로 보고합니다.

같은 절대 잔차 문턱을 쓰는 단순 방식은 모든 입력에 같은 폭을 줍니다. 어려운 조건에 더 넓고 쉬운 조건에 더 좁은 구간을 원하면 정규화 잔차나 분위수 모형 같은 별도 점수 설계를 고려할 수 있지만, 그 점수도 보정 전에 고정해야 합니다. 이 장의 실제 기본 사례는 어떤 방식이 구현되어 있는지 명시하고 단순한 공통 폭을 더 복잡한 적응 구간인 것처럼 소개하지 않습니다.

An absolute residual is distance from the prediction center. Requiring that distance to be at most q is equivalent to an interval from center minus q to center plus q. Solve the two sides of the absolute-value inequality, preserving the common units of outcome and threshold.

For a constructed score prediction centered at seventy with threshold six, the interval is sixty-four through seventy-six and width twelve points. The endpoint seventy-six is included; seventy-seven is not. The threshold was not reinterpreted as a variance or standard error.

s(x,y)=∣y−f^(x)∣,∣y−f^(x)∣≤q^  ⟺  f^(x)−q^≤y≤f^(x)+q^s(x,y)=|y-\widehat f(x)|,\quad |y-\widehat f(x)|\le\widehat q\iff \widehat f(x)-\widehat q\le y\le\widehat f(x)+\widehat q
Constructed queries at center seventy and threshold six
Observed outcomeSetCovered?
64[64,76]Yes; inclusive boundary
70[64,76]Yes
76[64,76]Yes; inclusive boundary
77[64,76]No
Missing[64,76]Membership undefined

A defined predictor can supply the interval before the label arrives, but coverage is scored only after observing the label. Thus mean width can use more defined predictions than the denominator of labeled empirical coverage. The lab reports these counts separately.

A single absolute-residual threshold gives constant width across inputs. Adaptive widths require a different, pre-fixed score design such as normalized residuals or a quantile model. State which method is implemented; our simple common-width factual baseline is not presented as a more elaborate adaptive interval.

대학원 연결Graduate bridge

동률에서는 보수성이 커질 수 있다Ties can make coverage more conservative

점수가 같은 관측이 있으면 어느 한 행만 먼저 정렬했다고 그 행이 통계적으로 더 특별해지지 않습니다. 정렬 순서를 재현하기 위해 원 위치나 ID를 남기되, 집합 포함은 점수≤문턱으로 판정합니다. 문턱과 같은 점수는 모두 받아들입니다. 특정 동률 행만 임의로 버리면 다른 규칙이 됩니다.

가상의 보정·새 점수가 모두 0인 교환가능 법칙을 생각해 보세요. 보정 n=3,α=1/2이면 k=2이고 문턱은 0입니다. 새 점수도 0이라 포함률은 1입니다. 목표 1/2보다 훨씬 높지만 하한 보장과 모순은 아닙니다.

C(x)={y:s(x,y)≤q^},P{Ynew∈C(Xnew)}≥1−αC(x)=\{y:s(x,y)\le\widehat q\},\qquad \mathbb P\{Y_{\rm new}\in C(X_{\rm new})\}\ge1-\alpha

점수가 거의 확실히 모두 다르면, 대칭성 아래 새 순위가 1부터 n+1까지 균등해서 실제 주변 피복은 k/(n+1)입니다. 그러므로 1−α 이상이며 그보다 1/(n+1)보다 적게 높습니다. 동률이 있으면 포함 부등호가 여러 순위를 함께 받아들여 이 추가 상한이 그대로 성립하지 않을 수 있습니다. 앞의 모두 0인 예에서 1은 1/2+1/4보다 큽니다.

동률에 무작위 순서를 붙여 덜 보수적인 규칙을 만들 수 있지만 추가 난수와 정확한 포함 규칙을 정해야 합니다. 이 장의 기본 API는 그런 무작위 타이브레이킹을 수행했다고 주장하지 않습니다. 모든 동률과 원분수를 보존한 결정적 포함 규칙을 씁니다. 로그·확률의 짧은 화면 표시가 같다는 것과 원점수가 정확히 같다는 것도 구분합니다.

Equal scores do not make the first sorted identity statistically privileged. Retain original position or ID for reproducibility, but use score at most threshold for membership, accepting every equal score. Arbitrarily discarding some tied records creates a different procedure.

Consider an exchangeable constructed law with every calibration and future score equal to zero. With three calibration scores and alpha one-half, rank two selects zero. The future score is always included, so coverage is one. Exceeding the target by this much does not contradict a lower bound.

C(x)={y:s(x,y)≤q^},P{Ynew∈C(Xnew)}≥1−αC(x)=\{y:s(x,y)\le\widehat q\},\qquad \mathbb P\{Y_{\rm new}\in C(X_{\rm new})\}\ge1-\alpha

With almost surely distinct scores, exchangeability makes the new rank uniform across n plus one positions and marginal coverage equals k divided by n plus one. It is at least the target and less than the target plus one over n plus one. Ties can make inclusive membership accept additional ranks, so that upper bound need not apply unchanged. In the all-zero example, coverage one exceeds three-quarters.

Randomized tie rules can reduce conservatism but require explicit additional randomness and membership conventions. Our default API does not claim such randomization: it preserves exact fractions and all ties, using deterministic inclusive membership. Equal shortened displays also need not mean exactly equal raw scores.

대학원 연결Graduate bridge

주변 피복의 순위 증명을 한 걸음씩Prove marginal coverage through ranks, step by step

훈련 자료 T를 조건으로 예측·점수 규칙이 고정되어 있다고 합시다. 보정 점수 n개와 새 점수 하나가 이 조건 아래 함께 교환가능하다고 가정합니다. 먼저 점수가 거의 확실히 서로 다른 경우를 보겠습니다. 새 점수의 전체 n+1개 안 순위 R은 대칭성 때문에 각 자리에서 같은 확률 1/(n+1)을 가집니다.

k≤n이면 새 점수가 보정 점수의 k번째 값 이하라는 사건은 R≤k와 같습니다. 새 점수보다 작은 보정 점수가 k개 이상 있어야 탈락하기 때문입니다. 따라서 포함 확률은 k/(n+1)이고, k의 올림 정의가 이를 1−α 이상으로 만듭니다. k=n+1이면 문턱 +∞라 모든 점수가 포함되어 확률은 1입니다.

P{Ynew∈C(Xnew)∣T}≥kn+1≥1−α,k=⌈(n+1)(1−α)⌉\mathbb P\{Y_{\rm new}\in C(X_{\rm new})\mid\mathcal T\}\ge\frac{k}{n+1}\ge1-\alpha,\qquad k=\lceil(n+1)(1-\alpha)\rceil

동률이 있을 때는 증명을 위해 각 점수에 독립된 연속 보조 이름표를 붙여 같은 점수 안 순서만 나누어 생각할 수 있습니다. 그렇게 나눈 순위가 k 이내이면 원래의 점수≤문턱 조건도 반드시 만족합니다. 이름표 순위에서 적어도 k자리를 받아들이므로 원래의 포괄적인 포함 확률은 그보다 작지 않습니다. 보조 이름표는 증명의 장치이며 현재 실습이 숨은 난수를 사용한다는 뜻이 아닙니다.

이 조건부 부등식을 훈련 자료에 대해서도 평균하면 보통의 주변 피복 하한을 얻습니다. 그러나 이미 관측한 특정 보정 표 C까지 조건으로 고정한 뒤에도 같은 하한이 반드시 유지된다는 결론은 이 증명에서 나오지 않습니다. 새 결과만의 불확실성, 보정 문턱의 표본 변동, 입력 조건별 성능은 서로 구분해야 합니다.

핵심은 정렬 계산만이 아니라 점수 규칙의 고정과 결합 대칭성입니다. 정확한 분수 코드는 순위의 구현을 검증하지만 실제 국가·개인·기업에서 그 통계 조건이 성립한다는 증거를 대신하지 않습니다.

Condition on training data T so that the predictor and score rule are fixed. Assume the n calibration scores and one future score are jointly exchangeable under that condition. First consider almost surely distinct scores. Symmetry makes the future score’s augmented rank uniform across n plus one positions.

For k at most n, being no larger than the kth calibration score is equivalent to augmented rank at most k: exclusion requires at least k smaller calibration scores. Coverage is therefore k divided by n plus one, at least the target by the ceiling definition. Rank n plus one uses infinity and covers with probability one.

P{Ynew∈C(Xnew)∣T}≥kn+1≥1−α,k=⌈(n+1)(1−α)⌉\mathbb P\{Y_{\rm new}\in C(X_{\rm new})\mid\mathcal T\}\ge\frac{k}{n+1}\ge1-\alpha,\qquad k=\lceil(n+1)(1-\alpha)\rceil

For ties, imagine independent continuous auxiliary tags that only order equal scores. If the tagged rank is at most k, the original inclusive score-threshold condition also holds. The original rule accepts at least the k tagged ranks, yielding the same lower bound. These tags are a proof device, not hidden randomness in our implemented deterministic lab.

Averaging the conditional inequality over training data gives marginal coverage. The proof does not necessarily retain the bound after additionally fixing the particular observed calibration table. Distinguish randomness in future outcomes, sampling variation of the threshold and performance at specific inputs.

The key assumptions concern a fixed score rule and joint symmetry, not merely correct sorting. Exact fractions verify implementation; they do not establish those statistical conditions for factual countries, people or customers.

학부 심화 · 선택Advanced undergraduate · optional

작은 순열 법칙은 전수 계산할 수 있다Exhaustively check a small permutation law

점수 1,2,3,4가 든 네 봉투 중 하나를 같은 확률로 새 관측이라고 고르고, 나머지 세 봉투로 보정한다고 정합니다. α=1/4이므로 각 실험의 보정 순위는 ceil(4×3/4)=3, 즉 남은 점수의 최대값입니다. 어느 봉투를 빼는지 네 경우만 계산하면 이 유한 법칙의 피복을 정확히 알 수 있습니다.

보정 점수의 내부 순서는 문턱에 영향을 주지 않으므로 4!개 순열을 모두 새 관측처럼 세어 부풀릴 필요가 없습니다. 새 관측으로 선택되는 위치별 확률 1/4을 쓰면 충분합니다. 이 실험은 알려진 균등 선택 법칙을 구성한 것이며 실제 나라나 사람의 선택 확률이라고 소개하지 않습니다.

P(I=i)=1N,Coverage⁡=1N∑i=1N1{Si≤q^−i}\mathbb P(I=i)=\frac1N,\qquad \operatorname{Coverage}=\frac1N\sum_{i=1}^N\mathbf1\{S_i\le\widehat q_{-i}\}
가상 네 봉투의 모든 새 관측 선택
새 점수남은 보정 점수문턱포함
12,3,44예
21,3,44예
31,2,44예
41,2,33아니요

각 경우의 확률이 1/4이라 피복은 3/4입니다. 모두 0인 점수 네 개로 바꾸면 같은 새 관측 선택 법칙에서도 모든 경우가 포함되어 피복 1이 됩니다. 동률과 포괄적인 부등호가 어떤 차이를 만드는지 숫자로 확인할 수 있습니다.

ranklaw 실습은 선언한 점수 다중집합에서 이 계산을 수행합니다. 출력된 원 ID·제외한 위치·보정 ID·문턱·포함 여부를 손으로 대조하세요. 이 모형의 정확 피복이 실제 고객 자료의 피복 정리를 입증한다는 결론은 내리지 않습니다. 알려진 수학 법칙 검증과 관측적 성적은 다른 층위의 근거입니다.

Put scores one through four in four envelopes. Choose one uniformly as the future observation and calibrate using the other three. With alpha one-quarter, every leave-one-out experiment uses rank three, the maximum remaining score. Four equally weighted cases determine exact coverage.

Calibration order itself does not change the threshold, so there is no need to inflate the computation by treating every one of the twenty-four permutations as a distinct future identity. Weight each held-out position by one-quarter. This is a constructed known law, not a measured sampling probability for real countries or people.

P(I=i)=1N,Coverage⁡=1N∑i=1N1{Si≤q^−i}\mathbb P(I=i)=\frac1N,\qquad \operatorname{Coverage}=\frac1N\sum_{i=1}^N\mathbf1\{S_i\le\widehat q_{-i}\}
Every future-envelope choice in the constructed experiment
Future scoreRemaining calibration scoresThresholdCovered
12,3,44Yes
21,3,44Yes
31,2,44Yes
41,2,33No

Three of four equally likely cases cover, giving three-quarters. Replacing all four scores by zero makes every case cover, giving one. This directly shows the effect of ties and inclusive membership.

The ranklaw lab computes this declared finite experiment. Compare identities, held-out positions, calibration IDs, thresholds and inclusion with hand calculations. Its exact coverage does not prove a coverage theorem for factual customers. A known mathematical law and observational empirical performance are different evidence layers.

학부Undergraduate

정답을 모르는 분류에서 점수를 어떻게 계산할까Compute classification sets before knowing the true label

보정 표에서는 실제 y를 아니까 실제 클래스에 준 확률을 1에서 뺄 수 있습니다. 그러나 새 관측에서는 y를 모릅니다. 이때 정답을 몰래 읽는 대신 후보 클래스 0과 1을 각각 가정해 점수를 계산합니다. 사건 1 확률이 p라면 클래스 0의 점수는 p, 클래스 1의 점수는 1−p입니다. 문턱 이하인 후보를 모두 포함합니다.

p=0.1,문턱 0.2이면 클래스 0 점수 0.1은 들어가고 클래스 1 점수 0.9는 빠져 집합 {0}이 됩니다. p=0.9라면 집합 {1}입니다. p=0.5에서는 두 점수가 모두 0.5로 문턱을 넘으므로 빈 집합입니다. 문턱 0.8에서 p=0.5이면 두 후보가 모두 들어갑니다.

p^1(x)=p,p^0(x)=1−p,s(x,0)=p,s(x,1)=1−p,C(x)={j∈{0,1}:s(x,j)≤q^}\widehat p_1(x)=p,\quad\widehat p_0(x)=1-p,\quad s(x,0)=p,\quad s(x,1)=1-p,\quad C(x)=\{j\in\{0,1\}:s(x,j)\le\widehat q\}

집합에 두 클래스가 있다고 두 클래스의 확률이 각각 1/2이라는 뜻은 아닙니다. 빈 집합도 실제 결과가 존재하지 않는다는 주장이 아닙니다. 정한 예측 점수와 보정 문턱 아래에서 어떤 후보가 통과하는지의 결과입니다. 특정 x에서는 둘 다 탈락할 수 있어도 주변에서 목표 피복을 얻는 논리와 모순은 아닙니다.

실제 고객 사례에서 p는 훈련 자료만으로 적합한 선형 예측을 [0,1]로 자른 값입니다. 그 확률이 잘 교정되어 있지 않아도 점수 규칙을 먼저 고정하고 필요한 교환가능성 조건을 갖추면 Conformal 주변 피복 논증을 적용할 수 있습니다. 실제 관측 자료가 그런 조건을 갖추었다는 부분은 여전히 별도이며, 단지 코드를 실행했다고 확정하지 않습니다.

On calibration data, the true label is known, so its score is one minus its assigned probability. For a new input, do not read the unknown label. Instead consider each candidate label separately. If event-one probability is p, candidate-zero score is p and candidate-one score is one minus p. Include every candidate with score at most the threshold.

At p 0.1 and threshold 0.2, only zero passes. At p 0.9 only one passes. At p one-half neither passes that threshold, producing an empty set; with threshold 0.8, both pass.

p^1(x)=p,p^0(x)=1−p,s(x,0)=p,s(x,1)=1−p,C(x)={j∈{0,1}:s(x,j)≤q^}\widehat p_1(x)=p,\quad\widehat p_0(x)=1-p,\quad s(x,0)=p,\quad s(x,1)=1-p,\quad C(x)=\{j\in\{0,1\}:s(x,j)\le\widehat q\}

Two labels in a set do not assign them equal probabilities. An empty set does not assert that no outcome exists. These are membership results under the declared score and calibration threshold. Both candidates can fail at a particular input without contradicting a marginal coverage bound.

The actual customer baseline clips a training-only linear prediction into the unit interval. Even a miscalibrated predictor can support the conformal rank argument if the score is fixed first and the required exchangeability conditions hold. Whether the observational source satisfies those conditions remains separate from merely executing the code.

학부 심화 · 선택Advanced undergraduate · optional

빈 집합과 두 클래스 집합을 숨기지 않기Do not hide empty or two-class sets

출력 형식이 익숙하지 않다고 빈 집합을 결측으로 바꾸거나 두 클래스를 임의의 하나로 줄이면 원래 절차를 읽을 수 없게 됩니다. 빈 집합은 정의된 후보 수 0입니다. 실제 라벨이 있으면 그 행은 피복 실패입니다. 라벨이 없어서 피복을 판단할 수 없는 미정의와 구별하세요. 두 클래스를 모두 넣으면 해당 이진 라벨을 포함하지만 후보 수 2라는 비용이 있습니다.

∣C(x)∣∈{0,1,2},coverage⁡=#{i:Yi∈C(Xi)}#{i:labeled, defined evaluation prediction}|C(x)|\in\{0,1,2\},\qquad \operatorname{coverage}=\frac{\#\{i:Y_i\in C(X_i)\}}{\#\{i:\text{labeled, defined evaluation prediction}\}}
같은 입력에서 문턱이 바뀌는 구성 예
pq=0.2의 집합·크기q=0.8의 집합·크기
0.1{0},1{0},1
0.5∅,0{0,1},2
0.9{1},1{1},1

정의된 분류 집합의 평균 크기와 라벨이 있는 행의 경험 피복을 함께 보고합니다. 정답이 결측인 행에도 예측 집합 자체는 있을 수 있으므로 두 분모가 다를 수 있습니다. 평균 크기 1이라는 값도 모든 행이 단일 클래스라는 뜻은 아닙니다. 절반이 빈 집합이고 절반이 두 클래스여도 평균은 1입니다.

업무상 빈 집합에 검토를 요청하거나 최대 확률 클래스를 추가하는 후속 규칙을 만들 수는 있습니다. 집합을 확대하면 원래의 포함 성공을 잃지 않지만 후보 수와 업무 비용은 바뀝니다. 반대로 두 클래스에서 하나를 제거하면 원래 피복을 잃을 수 있습니다. 어떤 후처리를 했는지 공개하고, 수정 전 집합을 그대로 보존해야 비교할 수 있습니다.

실습은 ∅·{0}·{1}·{0,1}을 그대로 구분합니다. 화면의 “0”이 클래스 0인지 후보 수 0인지 모호하지 않도록 클래스 목록과 크기 열을 따로 보여 줍니다.

Do not turn an unfamiliar empty set into missingness or collapse two labels to an arbitrary singleton. An empty set is a defined set of size zero and counts as a coverage failure when its label is observed. Undefined coverage from an absent label is different. Including both labels covers any binary outcome but costs a set of size two.

∣C(x)∣∈{0,1,2},coverage⁡=#{i:Yi∈C(Xi)}#{i:labeled, defined evaluation prediction}|C(x)|\in\{0,1,2\},\qquad \operatorname{coverage}=\frac{\#\{i:Y_i\in C(X_i)\}}{\#\{i:\text{labeled, defined evaluation prediction}\}}
Constructed thresholds applied to the same inputs
pSet and size at q 0.2Set and size at q 0.8
0.1{0},1{0},1
0.5Empty,0{0,1},2
0.9{1},1{1},1

Report mean size among defined sets and empirical coverage among labeled defined predictions, with both denominators. A mean size of one need not mean every set is a singleton: half empty and half doubletons also average to one.

An operational rule may send empty sets to review or add the highest-probability label. Enlarging a set preserves earlier coverage successes, but changes size and workflow cost. Removing a label can lose coverage. Disclose post-processing and preserve original sets for comparison.

The lab retains empty, zero-only, one-only and both-label sets. Separate label lists from set-size columns so that class zero cannot be mistaken for zero candidates.

대학원 연결Graduate bridge

전체 90%가 작은 집단 90%를 뜻하지 않는다Ninety percent overall need not mean ninety percent in a subgroup

주변 피복은 입력이나 집단을 모두 평균한 성질입니다. 어떤 집단이 모집단의 90%이고 그 집단 피복은 100%, 나머지 10% 집단은 피복 0%인 가상 확률표를 생각해 보세요. 전체 피복은 90%입니다. 전체 숫자 하나에서 각 집단의 90%를 추론할 수 없다는 논리 반례입니다. 이 표는 특정 Conformal 실제 실행 결과라고 주장하는 자료가 아닙니다.

P(Y∈C(X))=∑gP(G=g)P(Y∈C(X)∣G=g)\mathbb P(Y\in C(X))=\sum_g\mathbb P(G=g)\mathbb P(Y\in C(X)\mid G=g)
주변 성질만으로 집단 성질을 알 수 없는 가상 법칙
집단모집단 비중집단 피복전체 기여
A9/1019/10
B1/1000
전체19/109/10

모든 x에 대해 P(Y∈C(X)|X=x)≥1−α를 요구하는 조건부 피복은 훨씬 강한 요구입니다. 아무 분포나 허용하면서 작고 유용한 집합으로 이런 강한 보장을 모두 얻을 수 있는 것처럼 소개하지 않습니다. 단순 split-Conformal의 주변 보장은 그 추가 조건을 자동으로 주지 않습니다.

미리 고정한 집단 안에서 보정하고 각 집단의 보정·미래 점수가 교환가능하다는 별도 조건을 갖추면 집단별 방식의 논증을 할 수 있습니다. 그러나 작은 집단의 보정 n이 부족하면 문턱이 +∞가 될 수 있습니다. 결과 라벨별 문턱을 쓰는 class-conditional 방식도 후보 클래스마다 문턱을 적용하는 다른 절차입니다. 현재 기본 API가 이런 추가 방식을 수행했다고 주장하지 않습니다.

실제 사례의 집단별 표는 문제를 발견하고 다음 조사 질문을 정하는 기술 통계입니다. 집단을 결과를 본 뒤 임의로 바꿨는지, 보정 수가 얼마인지, 결측이 누구에게 집중되는지까지 함께 검토해야 합니다.

Marginal coverage averages over inputs and groups. Consider a constructed probability table with ninety percent of the population covered perfectly and the other ten percent never covered. Overall coverage is ninety percent. This logical counterexample shows why an overall number cannot establish the same subgroup guarantee; it is not presented as a particular factual conformal run.

P(Y∈C(X))=∑gP(G=g)P(Y∈C(X)∣G=g)\mathbb P(Y\in C(X))=\sum_g\mathbb P(G=g)\mathbb P(Y\in C(X)\mid G=g)
A constructed law separating marginal and group coverage
GroupPopulation massGroup coverageOverall contribution
A9/1019/10
B1/1000
Overall19/109/10

Pointwise conditional coverage at every x is substantially stronger. Do not suggest that arbitrary distributions permit universally small useful sets with that stronger guarantee for free. The basic split-conformal marginal result does not provide it automatically.

A separately justified groupwise method can calibrate within fixed groups under within-group exchangeability. Small group calibration samples may force infinite thresholds. Class-conditional thresholds also define another procedure, applying each candidate class’s threshold separately. Our basic API does not claim to implement these extensions.

Factual subgroup tables are descriptive diagnostics for identifying further questions. Examine whether groups were chosen after outcomes, their calibration counts and the distribution of missingness.

학부 심화 · 선택Advanced undergraduate · optional

집단별 표에는 분모와 효율을 함께 넣기Report subgroup denominators and efficiency together

실제 표에서 “피복 100%”를 보았을 때 먼저 몇 건 중 몇 건인지 묻겠습니다. 1건 중 1건과 1000건 중 1000건은 같은 비율이지만 근거의 양은 다릅니다. 또한 구간을 모든 실수로 만들거나 이진 집합에 두 클래스를 모두 넣어도 피복은 높아집니다. 그 성적과 함께 폭·집합 크기·무한 구간 수를 보고해야 합니다.

이 장의 표는 전체 원행 수, 정의된 예측 수, 라벨이 있어 평가 가능한 수, 포함된 수를 분리합니다. 집합 크기·폭은 정답이 없어도 계산할 수 있으나 피복은 라벨이 필요합니다. m_g=0이면 피복 비율은 미정의이지 0%가 아닙니다.

coverage⁡^g=cgmg(mg>0),size⁡‾g=∑i∈Dg∣C(Xi)∣∣Dg∣\widehat{\operatorname{coverage}}_g=\frac{c_g}{m_g}\quad(m_g>0),\qquad \overline{\operatorname{size}}_g=\frac{\sum_{i\in D_g}|C(X_i)|}{|D_g|}

개인 사례의 집단은 원 교육 연수 12년 이하와 초과, 고객은 원 통화 실패 0회와 양수로 미리 정합니다. 국가의 집단은 훈련 자료의 평균 GDPpc 이하와 초과입니다. 국가 그룹 경계도 시험 결과에서 고르지 않습니다. 이런 교육용 구분이 정책적으로 가장 적절하거나 인과적으로 식별된 위험 집단이라는 뜻은 아닙니다.

관측자 선택과 분모도 살피세요. 개인 원 ln 임금 결측자는 피복 평가에서 빠집니다. 그 사람들의 구간 예측이 남아 있어도 결과를 알지 못해 성공 여부를 확인할 수 없습니다. 전체 원자료 행을 보존하는 것이 이런 선택을 눈에 보이게 합니다. 하나의 평균 성적에 결측·빈 집단·넓은 집합을 숨기지 않는 보고 습관을 익히세요.

When a factual table reports one hundred percent coverage, first ask how many successes out of how many evaluated cases. One out of one and a thousand out of a thousand share a percentage but differ in evidence. The whole real line or both binary labels can also produce high coverage, so report width, set size and unbounded intervals alongside it.

Our tables distinguish original rows, defined predictions, labeled scored predictions and covered outcomes. Sizes and widths do not require labels, but coverage does. With no scored labels, the coverage ratio is undefined rather than zero percent.

coverage⁡^g=cgmg(mg>0),size⁡‾g=∑i∈Dg∣C(Xi)∣∣Dg∣\widehat{\operatorname{coverage}}_g=\frac{c_g}{m_g}\quad(m_g>0),\qquad \overline{\operatorname{size}}_g=\frac{\sum_{i\in D_g}|C(X_i)|}{|D_g|}

Predeclare schooling at most twelve years versus more for people, and zero versus positive call failures for customers. Country groups use the training-mean GDP per capita boundary, not a threshold chosen from test outcomes. These teaching groups are not claimed as uniquely appropriate policy categories or causally identified risk strata.

Inspect observation selection too. Missing native person log wages cannot be scored for coverage. Predictions may remain, but success is unknown without outcomes. Preserving every original record makes this selection visible. Report missingness, empty groups and broad sets instead of concealing them in one average.

대학원 연결Graduate bridge

순서·관측 선택·분포 변화가 남기는 질문Questions raised by order, selection and distribution change

극단적인 가상 변화로 보정 시점의 점수는 모두 0, 미래 점수는 항상 1이라고 합시다. 유한 순위 k≤n의 문턱은 0이라 미래 결과를 전혀 포함하지 못합니다. 정렬 코드는 정확해도 보정·미래 점수의 교환가능성이 없으므로 하한 정리의 적용 조건이 사라졌습니다. 변화의 원인을 검사하지 않고 “Conformal이니 분포와 무관하게 항상 유효하다”고 말하면 안 됩니다.

S1=⋯=Sn=0,Snew=1,k≤n⇒q^=0⇒coverage=0S_1=\cdots=S_n=0,\quad S_{\rm new}=1,\quad k\le n\Rightarrow\widehat q=0\Rightarrow\text{coverage}=0

실제 경제 지표에는 시간·국가 차이와 공통 충격이 있고, 당시 발표 시점과 수정 빈티지도 다릅니다. 이 장은 2023년 특징과 2024년 성장률의 보존된 수정 자료를 쓰는 회고적 비교입니다. 과거 예측 시점에 알 수 있었던 빈티지와 발표 지연을 재구성한 것이 아닙니다. 임의의 행 분할을 실제 미래 예측 검증으로 바꾸어 부르지 않습니다.

개인 임금은 관측된 원 ln 임금의 선택과 결측, 고객 자료는 단일 자료의 변수·관측 기간과 대상 선정 범위가 남습니다. 다음 해의 다른 사업자나 아직 임금이 관측되지 않은 사람에게 같은 점수 법칙이 유지되는지는 새 질문입니다. 공통 충격이 언제나 교환가능성을 부정하는 것은 아니지만, 그 존재와 이질성을 무시한 채 조건이 자동 성립한다고 말해서도 안 됩니다.

시간 순서 분할·집단 분할·새 운영 시점의 감시는 현실적인 평가 설계가 될 수 있습니다. 그러나 이름만 바꿔 분할했다고 독립성이나 교환가능성이 증명되지는 않습니다. 실제 적용 대상·실패 가능성·재평가 기준을 보고서에 남겨야 합니다.

Consider an extreme constructed shift: every calibration score is zero and the future score is always one. With a finite rank, threshold zero never covers the future score. Correct sorting cannot restore the missing exchangeability assumption. Saying conformal is distribution-free does not remove its conditions.

S1=⋯=Sn=0,Snew=1,k≤n⇒q^=0⇒coverage=0S_1=\cdots=S_n=0,\quad S_{\rm new}=1,\quad k\le n\Rightarrow\widehat q=0\Rightarrow\text{coverage}=0

Economic indicators involve time, country heterogeneity, common shocks and revisions. Our preserved 2023 features and revised 2024 growth outcomes support a retrospective comparison. We have not reconstructed release lags and vintages available at an actual forecasting date. A row split is not automatically a prospective forecasting evaluation.

Person wages retain outcome observation selection and missingness; customer records retain the scope of one dataset, its variables, periods and sample construction. Stability for another operator next year or for people without observed wages is another question. A common shock need not logically preclude exchangeability, but conditions cannot simply be assumed while ignoring dependence and heterogeneity.

Temporal or grouped splits and operational monitoring can support realistic evaluation. Their names alone prove neither independence nor exchangeability. Report the target application, possible failures and criteria for reevaluation.

대학원 연결Graduate bridge

가중 Conformal은 임의의 비중을 넣는 것과 다르다Weighted conformal is not arbitrary weighting

학습과 적용 대상의 X 분포만 달라지고 X를 조건으로 한 Y 법칙은 그대로라는 특별한 변화 모형이 있습니다. 이를 covariate shift라고 부릅니다. 적용 분포 Q_X가 학습 분포 P_X에 대해 절대연속이고 밀도비 w(x)를 안다는 조건 아래에서는 점수들의 비중을 조정하는 Conformal 확장이 가능합니다.

이때 단순히 옛 점수의 평균이나 분위수에 임의의 분석 비중을 주는 것이 아닙니다. 새 입력 x의 비중도 분모에 들어가고 그 새 입력 몫은 +∞ 점수에 놓입니다. 알려진 밀도비와 변하지 않은 조건부 결과 법칙을 사용하여 목표 분포에 맞는 순위 논증을 새로 구성하는 것입니다.

w(x)=dQXdPX(x),PY∣X=QY∣X,πi(x)=w(Xi)∑jw(Xj)+w(x),πnew(x)=w(x)∑jw(Xj)+w(x)w(x)=\frac{dQ_X}{dP_X}(x),\quad P_{Y\mid X}=Q_{Y\mid X},\quad \pi_i(x)=\frac{w(X_i)}{\sum_jw(X_j)+w(x)},\quad \pi_{\rm new}(x)=\frac{w(x)}{\sum_jw(X_j)+w(x)}

밀도비를 추정한 경우 추정 오차를 무시한 채 “알려진 비중”일 때의 정확한 유한 표본 보장을 그대로 부여하지 않습니다. 새 대상이 원자료에 전혀 없는 영역에 있다면 필요한 절대연속성·겹침 조건도 실패할 수 있습니다. Y|X 자체가 변한 상황은 X의 비중만 바꿔 일반적으로 해결되지 않습니다.

이 장의 Brier·신뢰도 평균은 선언한 분석 비중을 다룰 수 있지만, 현재 순위·집합 API는 단위 개수의 교환가능 보정 표를 사용합니다. 원 표본 비중이나 임의 중요도를 넣은 가중 Conformal을 구현했다고 주장하지 않습니다. 실제 세 사례도 분석 비중 1의 기본 split-Conformal 비교이며, 이 확장은 논문 조건을 읽고 다음 연구 설계를 준비하는 대학원 학습 다리입니다.

다음 실제 사례에서는 모든 원행과 원 단위를 보존하면서 이 기본 방법의 문턱·피복·폭·집합 크기를 계산합니다. 실무적으로 중요한 것은 가장 강한 보장처럼 표현하는 것이 아니라 어떤 계산을 수행했고 어떤 조건은 검증되지 않았는지 독자가 알 수 있도록 만드는 일입니다.

Covariate shift is a particular model: only the distribution of X changes while the conditional law of Y given X remains invariant. If the target covariate law is absolutely continuous with respect to the source law and its density ratio is known, weighted conformal extensions can adjust score weights.

This is not arbitrary analysis weighting of an old empirical quantile. The future input’s weight appears in the denominator and places its mass at positive infinity. Known likelihood ratios and an invariant conditional outcome law support a new target-distribution argument.

w(x)=dQXdPX(x),PY∣X=QY∣X,πi(x)=w(Xi)∑jw(Xj)+w(x),πnew(x)=w(x)∑jw(Xj)+w(x)w(x)=\frac{dQ_X}{dP_X}(x),\quad P_{Y\mid X}=Q_{Y\mid X},\quad \pi_i(x)=\frac{w(X_i)}{\sum_jw(X_j)+w(x)},\quad \pi_{\rm new}(x)=\frac{w(x)}{\sum_jw(X_j)+w(x)}

Estimated ratios introduce error; do not automatically attach the exact known-ratio finite-sample guarantee while ignoring it. Targets in regions absent from the source may violate absolute continuity or overlap. Changes in Y given X are not generally repaired by weighting X alone.

Our Brier and reliability means permit declared analysis weights, but the rank and set APIs use unit-count exchangeable calibration scores. They do not implement weighted conformal using native sample weights or arbitrary importance values. The three factual cases use unit analysis weights and the basic split procedure. This section is a graduate bridge to reading the extension’s assumptions.

Next we preserve all actual rows and units while calculating thresholds, empirical coverage, widths and set sizes. Sound reporting identifies both what was computed and which conditions remain unverified, rather than attaching the strongest-sounding guarantee.

대학원 연결Graduate bridge

국가: 수정 빈티지 성장률에 구간 붙이기Countries: intervals for revised-vintage GDP growth

첫 실제 사례는 보존된 World Bank WDI의 16개국 자료입니다. 설명변수는 2023년 실질 1인당 GDP를 10000으로 나눈 값과 같은 해 CPI 연간 상승률을 10으로 나눈 값, 결과는 2024년 실질 총GDP 성장률입니다. GDPpc는 2015년 불변 미국달러이고 CPI 특징은 지수 수준이 아니라 연간 상승률입니다. 1인당 GDP와 총GDP 성장률도 서로 다른 지표입니다. 원 지표명·국가·연도·단위를 원 48행에 남겼습니다.

새 역할 분할은 훈련 8개국·보정 4개국·시험 4개국입니다. 훈련 평균과 범위로 두 특징을 변환하고 절편을 규제하지 않는 ridge 계수 λ=1/100으로 예측 규칙을 먼저 고정합니다. 보정과 시험 성장률로 이 계수를 고르지 않습니다. 그 뒤 보정 절대 잔차 네 개를 정렬합니다.

실제 국가 기본 결과 · α=1/5
양결과
보정 점수 수 n4
순위 ceil((n+1)(1−α))4
절대 잔차 문턱약 3.4743234%p
공통 구간 폭약 6.9486468%p
시험 관측 피복4/4=100%

네 점수의 최대값이 문턱입니다. 시험 4개국이 모두 들어간 것은 관측된 기술값이며, 모집단의 모든 나라나 다음 해에 100% 피복한다는 증거가 아닙니다. 넓은 공통 구간과 작은 시험 분모를 함께 보아야 합니다. 목표를 90%로 바꾸면 보정 n=4에서는 순위 5라 문턱이 +∞가 됩니다. 이 수학적 결과를 숨기지 않습니다.

이 자료는 수정된 과거 빈티지의 회고적 비교입니다. 2023년 말에 실제로 공개되어 있던 지표와 발표 시차를 재구성한 실시간 예측이 아닙니다. 선정된 16개국의 이질성과 공통 충격을 해시 분할이 제거했다는 주장도 하지 않습니다. 아래의 원행·계수·보정 점수·구간·그림에서 계산 자체와 남은 가정을 함께 읽으세요.

WDI 원 지표 48행 · 국가별 변환·역할 · World Bank 지표 정의

핵심 계산표와 전체 원행 장부

기본 α=1/5·λ=1/100을 고정한 전체 자료의 결과입니다. 핵심 표는 짧게 읽고, 원분수는 숫자를 펼쳐 확인하세요. 전체 행 장부는 처음 10행을 표시하고 페이지로 모두 조회하며 완전 CSV도 제공합니다. 원 변수 전체는 아래 원자료 파일에 보존됩니다.

원행과 현재 역할의 분모
원행과 현재 역할의 분모
rolerows
train8
calibration4
test4
excluded0
unused0
all originals16
훈련에서 정한 변환·원 단위 기울기
훈련에서 정한 변환·원 단위 기울기
featuretrainingMeantrainingRangetransformedSlopenativeSlope
g
3.14634423146344158969451/1000000000000000
6.37469926374699189145993/1000000000000000
-1.8928111-49843982707749920357775153702515438846997675046008798503528750045191118975211/26333310136384639480593231416750894893246183862721089507137275296000000000000
-0.29692556-977379112896373177537995668317036450246546728194213418977978375/3291663767048079935074153927093861861655772982840136188392159412
pi
0.485383023883064131488387/8000000000000000
0.3196510839956385220619/125000000000000
-0.56869312-393266081107428725114595586026474780228070238470098127038290210762286681/691526001480689061990368472078542407910876677067255501763058700000000000
-1.7791059-86120858798665184486784703907565705346276352047944680158616250/48406820103648234339325793045497968553761367394707885123414109
기본 설정과 보정 문턱
기본 설정과 보정 문턱
quantityvalue
alpha
0.21/5
ridge
0.011/100
calibrationScores4
quantileRank4
threshold
3.47432345718152229972812188932571551531194659329640952700742357031888048160853407728081/1645831883524039967537076963546930930827886491420068094196079706000000000000000
transformedIntercept
3.1433205314332053243593/100000000000000
nativeIntercept
4.9410983116174530849124972511361810793898924305864236388546344543446605934236863916069/23511884050343428107672528050670441868969807020286687059943995800000000000000
역할·선언 집단의 피복·효율
역할·선언 집단의 피복·효율
rolegroupdefinedPredictionsscoredLabelscoveredRowscoveragemeanIntervalWidth
testall4441
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
testGDPpc-above-training-mean2221
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
testGDPpc-at-most-training-mean2221
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
trainall8881
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
trainGDPpc-above-training-mean5551
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
trainGDPpc-at-most-training-mean3331
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
calibrationall4441
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
calibrationGDPpc-above-training-mean2221
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
calibrationGDPpc-at-most-training-mean2221
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
국가 · 모든 보정 점수와 문턱
국가 · 모든 보정 점수와 문턱 · 문턱은 점수 전체에서 계산 · α=1/5

원본 벡터 확대 · 전체 정확 좌표

국가 · 역할·집단별 경험 피복
국가 · 역할·집단별 경험 피복 · 각 점은 고정 집단의 기술값 · 조건부 보장 아님

원본 벡터 확대 · 전체 정확 좌표

국가 · 시험 구간과 실제 결과
국가 · 시험 구간과 실제 결과 · 전체 시험 4행의 구간은 CSV에 보존

원본 벡터 확대 · 전체 정확 좌표

국가 · 모든 관측 시험값과 중심 예측
국가 · 모든 관측 시험값과 중심 예측 · 모든 시험 행 · 구간 피복과 점 예측은 다른 평가

원본 벡터 확대 · 전체 정확 좌표

모든 보정 점수 · 원 ID·정확 순위
모든 보정 점수 · 원 ID·정확 순위
rankidscore
1VNM:2024
2.789188773448572307951975063883453775813268835942124226344787273974572416997194876697/26333310136384639480593231416750894893246183862721089507137275296000000000000
2DEU:2024
3.06158745038858125349472135518754095845561814944249057730586537991417622526582788957851/1645831883524039967537076963546930930827886491420068094196079706000000000000000
3ZAF:2024
3.15447791483354363414232043347083549908703945217763875499173721668733186216713368225431/470237681006868562153450561013408837379396140405733741198879916000000000000000
4JPN:2024
3.47432345718152229972812188932571551531194659329640952700742357031888048160853407728081/1645831883524039967537076963546930930827886491420068094196079706000000000000000

4 전체 행 · 처음 10행

모든 열·전체 행 CSV

모든 원행의 예측 · 제외·결측도 보존
모든 원행의 예측 · 제외·결측도 보존
idsourceRowplannedRoleroleactualYpredictionloweruppercovered
AUS:2024AUStesttest
1.37340775493630934639/4000000000000
2.1082784346987174422289705606673378180783364760399591396056069340395794876441890200733/164583188352403996753707696354693093082788649142006809419607970600000000000000
-1.366045-2248280485749915132865837769723361011725645038740181663627930099396434505720751/1645831883524039967537076963546930930827886491420068094196079706000000000000000
5.58260181312574853456529892142757904762718329561948123808757578633692285275038901390773/235118840503434281076725280506704418689698070202866870599439958000000000000000
1
BRA:2024BRAtesttest
3.4193152170965758250953/50000000000000
3.84806962533310249354620484344359559113124008462705404253910199020058799357096020555357/658332753409615987014830785418772372331154596568027237678431882400000000000000
0.373746191230246786827478043856654692503230723654245115868066281036517900463773287320623/3291663767048079935074153927093861861655772982840136188392159412000000000000000
7.3223933443265100959818114226705842661144194424686989524433672737724299015312416890421/470237681006868562153450561013408837379396140405733741198879916000000000000000
1
CAN:2024CANtraintrain
2.0462661204626605401701/100000000000000
2.9001049954617013723648820858106714659698124459794677253224376379089788103037992445591/329166376704807993507415392709386186165577298284013618839215941200000000000000
-0.57421853-472533580677284042321018989116352018515333783217310237568219553822831722750063/822915941762019983768538481773465465413943245710034047098039853000000000000000
6.37442832622809324647764073305776281207421320407153584741716059731834247169010842489009/411457970881009991884269240886732732706971622855017023549019926500000000000000
1
CHN:2024CHNtesttest
4.9583038495830378788091/100000000000000
4.52863711490675070027401559469410885332899654289074355234763747703758452611958212732091/329166376704807993507415392709386186165577298284013618839215941200000000000000
1.0543137123944508583156829172463062509521686579695058819505455820493158207066975423741/117559420251717140538362640253352209344849035101433435299719979000000000000000
8.00296051646440947513727498284953247274461616346876591109320136943835038902580558923567/205728985440504995942134620443366366353485811427508511774509963250000000000000
1
DEU:2024DEUcalibrationcalibration
-0.4958519-247925948630183/500000000000000
2.5657355844553852666495041665211175089611536734881108344667611078007872185964803645091/329166376704807993507415392709386186165577298284013618839215941200000000000000
-0.90858792-747691483320168490303257838041568487827617705488702150820924343615514694751313/822915941762019983768538481773465465413943245710034047098039853000000000000000
6.040058938831724583223778895541513386637704464859556618844064111023153941760458695131/6429030795015781123191706888855198948546431607109640992953436351562500000000
1
FRA:2024FRAtraintrain
1.190468119046798275883/100000000000000
2.9054003956360095874071150631135960528784173991918767031785081969412990946957453309841/329166376704807993507415392709386186165577298284013618839215941200000000000000
-0.56892308-234087937650614108944222937221818447342511779385454236796205773356516535294719/411457970881009991884269240886732732706971622855017023549019926500000000000000
6.37972375249976354671583971044125677087557764644617393929833883439476501447820337138643/822915941762019983768538481773465465413943245710034047098039853000000000000000
1
GBR:2024GBRtraintrain
1.0802772108027716858781/100000000000000
2.309775380150135202301038927636763896999795574979687392742914146678774504394472002983/164583188352403996753707696354693093082788649142006809419607970600000000000000
-1.1645484-61827447675800058053425932663264409792898196089461716631132267842480925409621/53091351081420644114099256888610675187996338432905422393421926000000000000000
5.78409849519653581995822578208939190501192615079437826628171498498675793204798127757911/1645831883524039967537076963546930930827886491420068094196079706000000000000000
1
IDN:2024IDNtraintrain
5.0325748503257477088519/100000000000000
4.16378532741156229777021045711715361208621665019589232831719871527827632945587165141757/658332753409615987014830785418772372331154596568027237678431882400000000000000
0.68946188324210955562782978670490528997245572348380608393873520510766009772318430036089/470237681006868562153450561013408837379396140405733741198879916000000000000000
7.638108725142085608830729606423719909105497643757228069560084071702914261049642641164947/3291663767048079935074153927093861861655772982840136188392159412000000000000000
1
IND:2024INDtraintrain
7.0992789354963946588259/50000000000000
3.869852547649002545564648979056323101460795299010647759579540490292043418495932659957/658332753409615987014830785418772372331154596568027237678431882400000000000000
0.395526591301940552782198867030138512444914657835771333396412988387684120770772847843623/3291663767048079935074153927093861861655772982840136188392159412000000000000000
7.344173424174549472673447622760424718569693295154335144199382416515236313414186478755947/3291663767048079935074153927093861861655772982840136188392159412000000000000000
1
JPN:2024JPNcalibrationcalibration
-0.24008424-7502632376303/31250000000000
3.23423921064602787912775491895509851315680787117001228964327039684519011699027810461341/329166376704807993507415392709386186165577298284013618839215941200000000000000
-0.24008424-7502632376303/31250000000000
6.70856265520583084768344824205060404054799297457323548761188777727241553327996230017393/822915941762019983768538481773465465413943245710034047098039853000000000000000
1

16 전체 행 · 처음 10행

모든 열·전체 행 CSV

원자료 전체: actual48-country-revised-original-2023-2024.csv · derived16-country-features-and-roles.csv

구간 그림은 원행 순서로 먼저 나오는 시험 ID만 표시합니다. 국가 4행은 전부, 개인은 전체 760시험 중 처음 12행이며 관측 성적을 보고 고른 행이 아닙니다. 관측 대 중심 그림과 보정 점수 곡선은 해당 역할의 모든 행을 사용합니다. 그림 축의 짧은 숫자와 원분수는 다른 표시이며 원 CSV에서 모든 포함 판정을 확인할 수 있습니다.

The first factual case uses the preserved World Bank WDI snapshot for sixteen countries. Predictors are 2023 real GDP per capita divided by ten thousand and annual CPI inflation divided by ten; the response is 2024 real total-GDP growth. GDP per capita uses constant 2015 US dollars, while CPI is annual inflation rather than an index level. Per-capita GDP and total-GDP growth are distinct indicators. Preserve native names, countries, years and units in forty-eight source rows.

The new split assigns eight countries to training, four to calibration and four to test. Learn feature means and ranges from training alone, then fix ridge coefficient one-hundredth with an unpenalized intercept. Calibration and test growth do not select that coefficient. Sort the four calibration absolute residuals afterward.

Actual country baseline at alpha one-fifth
QuantityResult
Calibration scores n4
Adjusted rank4
Absolute-residual thresholdAbout 3.4743234 percentage points
Common interval widthAbout 6.9486468 percentage points
Observed test coverage4/4=100%

The calibration maximum is the threshold. Four covered test countries describe the observed sample, not guaranteed perfect coverage for every country or next year. Inspect the broad common width and small denominator together. A ninety-percent target would require rank five and an infinite threshold with only four calibration scores.

This is retrospective revised-vintage analysis, not reconstructed forecasts using releases available at the end of 2023. A hash split does not remove purposive country selection, heterogeneity or common shocks. Read the actual rows, coefficients, scores, intervals and figures alongside the assumptions that remain unverified.

Forty-eight native WDI rows · Country transforms and roles · Official indicator definition

Core calculation tables and complete row ledgers

These full-source results fix alpha one-fifth and ridge one-hundredth. Read concise core tables and expand raw fractions. Complete ledgers initially show ten rows with paging; full CSVs preserve every field. All native variables remain in the factual downloads.

Original records and role denominators
Original records and role denominators
rolerows
train8
calibration4
test4
excluded0
unused0
all originals16
Training-only transformations and native slopes
Training-only transformations and native slopes
featuretrainingMeantrainingRangetransformedSlopenativeSlope
g
3.14634423146344158969451/1000000000000000
6.37469926374699189145993/1000000000000000
-1.8928111-49843982707749920357775153702515438846997675046008798503528750045191118975211/26333310136384639480593231416750894893246183862721089507137275296000000000000
-0.29692556-977379112896373177537995668317036450246546728194213418977978375/3291663767048079935074153927093861861655772982840136188392159412
pi
0.485383023883064131488387/8000000000000000
0.3196510839956385220619/125000000000000
-0.56869312-393266081107428725114595586026474780228070238470098127038290210762286681/691526001480689061990368472078542407910876677067255501763058700000000000
-1.7791059-86120858798665184486784703907565705346276352047944680158616250/48406820103648234339325793045497968553761367394707885123414109
Declared settings and calibration threshold
Declared settings and calibration threshold
quantityvalue
alpha
0.21/5
ridge
0.011/100
calibrationScores4
quantileRank4
threshold
3.47432345718152229972812188932571551531194659329640952700742357031888048160853407728081/1645831883524039967537076963546930930827886491420068094196079706000000000000000
transformedIntercept
3.1433205314332053243593/100000000000000
nativeIntercept
4.9410983116174530849124972511361810793898924305864236388546344543446605934236863916069/23511884050343428107672528050670441868969807020286687059943995800000000000000
Coverage and efficiency by role and declared group
Coverage and efficiency by role and declared group
rolegroupdefinedPredictionsscoredLabelscoveredRowscoveragemeanIntervalWidth
testall4441
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
testGDPpc-above-training-mean2221
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
testGDPpc-at-most-training-mean2221
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
trainall8881
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
trainGDPpc-above-training-mean5551
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
trainGDPpc-at-most-training-mean3331
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
calibrationall4441
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
calibrationGDPpc-above-training-mean2221
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
calibrationGDPpc-at-most-training-mean2221
6.94864685718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000
Countries: all calibration scores and threshold
Countries: all calibration scores and threshold · Threshold uses every calibration score; alpha one-fifth

Enlarge original vector · Complete exact coordinates

Countries: empirical coverage by role and group
Countries: empirical coverage by role and group · Descriptive fixed-group rates, not conditional guarantees

Enlarge original vector · Complete exact coordinates

Countries: test intervals and observed outcomes
Countries: test intervals and observed outcomes · All 4 test intervals remain in the complete CSV

Enlarge original vector · Complete exact coordinates

Countries: every labeled test outcome and prediction
Countries: every labeled test outcome and prediction · Every test row; interval coverage differs from point accuracy

Enlarge original vector · Complete exact coordinates

All calibration scores, identities and ranks
All calibration scores, identities and ranks
rankidscore
1VNM:2024
2.789188773448572307951975063883453775813268835942124226344787273974572416997194876697/26333310136384639480593231416750894893246183862721089507137275296000000000000
2DEU:2024
3.06158745038858125349472135518754095845561814944249057730586537991417622526582788957851/1645831883524039967537076963546930930827886491420068094196079706000000000000000
3ZAF:2024
3.15447791483354363414232043347083549908703945217763875499173721668733186216713368225431/470237681006868562153450561013408837379396140405733741198879916000000000000000
4JPN:2024
3.47432345718152229972812188932571551531194659329640952700742357031888048160853407728081/1645831883524039967537076963546930930827886491420068094196079706000000000000000

4 total rows; first ten shown

Complete CSV, every column and row

Every original-row prediction, retaining excluded and missing records
Every original-row prediction, retaining excluded and missing records
idsourceRowplannedRoleroleactualYpredictionloweruppercovered
AUS:2024AUStesttest
1.37340775493630934639/4000000000000
2.1082784346987174422289705606673378180783364760399591396056069340395794876441890200733/164583188352403996753707696354693093082788649142006809419607970600000000000000
-1.366045-2248280485749915132865837769723361011725645038740181663627930099396434505720751/1645831883524039967537076963546930930827886491420068094196079706000000000000000
5.58260181312574853456529892142757904762718329561948123808757578633692285275038901390773/235118840503434281076725280506704418689698070202866870599439958000000000000000
1
BRA:2024BRAtesttest
3.4193152170965758250953/50000000000000
3.84806962533310249354620484344359559113124008462705404253910199020058799357096020555357/658332753409615987014830785418772372331154596568027237678431882400000000000000
0.373746191230246786827478043856654692503230723654245115868066281036517900463773287320623/3291663767048079935074153927093861861655772982840136188392159412000000000000000
7.3223933443265100959818114226705842661144194424686989524433672737724299015312416890421/470237681006868562153450561013408837379396140405733741198879916000000000000000
1
CAN:2024CANtraintrain
2.0462661204626605401701/100000000000000
2.9001049954617013723648820858106714659698124459794677253224376379089788103037992445591/329166376704807993507415392709386186165577298284013618839215941200000000000000
-0.57421853-472533580677284042321018989116352018515333783217310237568219553822831722750063/822915941762019983768538481773465465413943245710034047098039853000000000000000
6.37442832622809324647764073305776281207421320407153584741716059731834247169010842489009/411457970881009991884269240886732732706971622855017023549019926500000000000000
1
CHN:2024CHNtesttest
4.9583038495830378788091/100000000000000
4.52863711490675070027401559469410885332899654289074355234763747703758452611958212732091/329166376704807993507415392709386186165577298284013618839215941200000000000000
1.0543137123944508583156829172463062509521686579695058819505455820493158207066975423741/117559420251717140538362640253352209344849035101433435299719979000000000000000
8.00296051646440947513727498284953247274461616346876591109320136943835038902580558923567/205728985440504995942134620443366366353485811427508511774509963250000000000000
1
DEU:2024DEUcalibrationcalibration
-0.4958519-247925948630183/500000000000000
2.5657355844553852666495041665211175089611536734881108344667611078007872185964803645091/329166376704807993507415392709386186165577298284013618839215941200000000000000
-0.90858792-747691483320168490303257838041568487827617705488702150820924343615514694751313/822915941762019983768538481773465465413943245710034047098039853000000000000000
6.040058938831724583223778895541513386637704464859556618844064111023153941760458695131/6429030795015781123191706888855198948546431607109640992953436351562500000000
1
FRA:2024FRAtraintrain
1.190468119046798275883/100000000000000
2.9054003956360095874071150631135960528784173991918767031785081969412990946957453309841/329166376704807993507415392709386186165577298284013618839215941200000000000000
-0.56892308-234087937650614108944222937221818447342511779385454236796205773356516535294719/411457970881009991884269240886732732706971622855017023549019926500000000000000
6.37972375249976354671583971044125677087557764644617393929833883439476501447820337138643/822915941762019983768538481773465465413943245710034047098039853000000000000000
1
GBR:2024GBRtraintrain
1.0802772108027716858781/100000000000000
2.309775380150135202301038927636763896999795574979687392742914146678774504394472002983/164583188352403996753707696354693093082788649142006809419607970600000000000000
-1.1645484-61827447675800058053425932663264409792898196089461716631132267842480925409621/53091351081420644114099256888610675187996338432905422393421926000000000000000
5.78409849519653581995822578208939190501192615079437826628171498498675793204798127757911/1645831883524039967537076963546930930827886491420068094196079706000000000000000
1
IDN:2024IDNtraintrain
5.0325748503257477088519/100000000000000
4.16378532741156229777021045711715361208621665019589232831719871527827632945587165141757/658332753409615987014830785418772372331154596568027237678431882400000000000000
0.68946188324210955562782978670490528997245572348380608393873520510766009772318430036089/470237681006868562153450561013408837379396140405733741198879916000000000000000
7.638108725142085608830729606423719909105497643757228069560084071702914261049642641164947/3291663767048079935074153927093861861655772982840136188392159412000000000000000
1
IND:2024INDtraintrain
7.0992789354963946588259/50000000000000
3.869852547649002545564648979056323101460795299010647759579540490292043418495932659957/658332753409615987014830785418772372331154596568027237678431882400000000000000
0.395526591301940552782198867030138512444914657835771333396412988387684120770772847843623/3291663767048079935074153927093861861655772982840136188392159412000000000000000
7.344173424174549472673447622760424718569693295154335144199382416515236313414186478755947/3291663767048079935074153927093861861655772982840136188392159412000000000000000
1
JPN:2024JPNcalibrationcalibration
-0.24008424-7502632376303/31250000000000
3.23423921064602787912775491895509851315680787117001228964327039684519011699027810461341/329166376704807993507415392709386186165577298284013618839215941200000000000000
-0.24008424-7502632376303/31250000000000
6.70856265520583084768344824205060404054799297457323548761188777727241553327996230017393/822915941762019983768538481773465465413943245710034047098039853000000000000000
1

16 total rows; first ten shown

Complete CSV, every column and row

Complete factual source: actual48-country-revised-original-2023-2024.csv · derived16-country-features-and-roles.csv

Regression interval figures retain original-row order: all four country tests, or the first twelve of 760 person tests, selected without inspecting outcomes. Observed-versus-center plots and calibration curves use every row of their stated role. Short axis labels are displays; complete CSVs retain the exact membership calculation.

대학원 연결Graduate bridge

개인: 원 로그 임금과 결측을 보존한 구간People: intervals retaining native log wages and missingness

둘째 실제 사례는 Card 공개 자료의 NLS 원 3613행·52변수입니다. 설명변수는 원 ed76 교육 연수와 age76 나이이고 결과는 원 lwage76입니다. 원시 wage76에 새로 로그를 취한 값으로 바꾸지 않습니다. 원 로그 임금에는 표본의 기존 절단·변환이 반영되어 있으므로 원 코드북과 읽기 규칙을 함께 보존합니다.

원 ln 임금의 결측은 603행입니다. 원시 임금의 결측 수와 같다고 가정하지 않으며, 결측을 설문 미응답이라는 사유로 단정하지 않습니다. 원 표본 비중 변수도 보존하지만 이 교육용 비교는 분석 비중 1을 사용합니다. 해시로 예정 역할을 정한 뒤 필수 결측을 처리하여 훈련 1496행·보정 754행·시험 760행이 남습니다.

실제 개인 기본 결과 · 원 로그 임금 단위
양결과
원행3613
필수 목표 결측·제외603
보정 n와 순위 k754,604
절대 잔차 문턱약 0.49632780
공통 구간 폭약 0.99265560
시험 경험 피복603/760≈79.3421%

여기서 포함된 시험 603명은 결과가 관측된 시험 760명 중의 분자입니다. 원자료에서 로그 임금이 결측인 603행과는 다른 집합이며 우연히 같은 숫자입니다. 분모와 집합을 적지 않고 “603명”만 쓰면 결과를 오독하기 쉽습니다.

관측 피복 약 79.34%는 목표 80%와 정확히 같지 않습니다. 유한 시험 표본에서 경험 비율이 목표와 일치할 필요는 없고, 이 관측 자료에서 교환가능성이 입증된 것도 아닙니다. 교육·나이의 계수를 교육 정책의 인과 수익으로 바꾸어 읽지 않습니다. 결측 임금 집단이나 다른 연도·인구로 옮길 때는 관측 선택과 분포 변화라는 추가 문제가 남습니다.

원 52변수·새 역할 CSV · Card 공개 자료와 코드북 안내

핵심 계산표와 전체 원행 장부

기본 α=1/5·λ=1/100을 고정한 전체 자료의 결과입니다. 핵심 표는 짧게 읽고, 원분수는 숫자를 펼쳐 확인하세요. 전체 행 장부는 처음 10행을 표시하고 페이지로 모두 조회하며 완전 CSV도 제공합니다. 원 변수 전체는 아래 원자료 파일에 보존됩니다.

원행과 현재 역할의 분모
원행과 현재 역할의 분모
rolerows
train1496
calibration754
test760
excluded603
unused0
all originals3613
훈련에서 정한 변환·원 단위 기울기
훈련에서 정한 변환·원 단위 기울기
featuretrainingMeantrainingRangetransformedSlopenativeSlope
ed76
13.19719319743/1496
17
0.6183089811681551658342002299/18892741470572000000
0.036371116687150097549529547/18892741470572000000
age76
28.18582921083/748
10
0.3522480633274657261441799757/94463707352860000000
0.03522480633274657261441799757/944637073528600000000
기본 설정과 보정 문턱
기본 설정과 보정 문턱
quantityvalue
alpha
0.21/5
ridge
0.011/100
calibrationScores754
quantileRank604
threshold
0.4963278468849642691146248783/944637073528600000000
transformedIntercept
6.272476923459063567/3740000000
nativeIntercept
4.79963994533917811082178566933/944637073528600000000
역할·선언 집단의 피복·효율
역할·선언 집단의 피복·효율
rolegroupdefinedPredictionsscoredLabelscoveredRowscoveragemeanIntervalWidth
trainall149614961187
0.79344921187/1496
0.9926556468849642691146248783/472318536764300000000
trainschooling-at-most12758758582
0.76781003291/379
0.9926556468849642691146248783/472318536764300000000
trainschooling-over12738738605
0.8197832605/738
0.9926556468849642691146248783/472318536764300000000
calibrationall754754604
0.80106101302/377
0.9926556468849642691146248783/472318536764300000000
calibrationschooling-at-most12368368290
0.78804348145/184
0.9926556468849642691146248783/472318536764300000000
calibrationschooling-over12386386314
0.8134715157/193
0.9926556468849642691146248783/472318536764300000000
testall760760603
0.79342105603/760
0.9926556468849642691146248783/472318536764300000000
testschooling-at-most12363363278
0.76584022278/363
0.9926556468849642691146248783/472318536764300000000
testschooling-over12397397325
0.8186398325/397
0.9926556468849642691146248783/472318536764300000000
excludedall60300—
0.9926556468849642691146248783/472318536764300000000
excludedschooling-at-most1231700—
0.9926556468849642691146248783/472318536764300000000
excludedschooling-over1228600—
0.9926556468849642691146248783/472318536764300000000
개인 · 모든 보정 점수와 문턱
개인 · 모든 보정 점수와 문턱 · 문턱은 점수 전체에서 계산 · α=1/5

원본 벡터 확대 · 전체 정확 좌표

개인 · 역할·집단별 경험 피복
개인 · 역할·집단별 경험 피복 · 각 점은 고정 집단의 기술값 · 조건부 보장 아님

원본 벡터 확대 · 전체 정확 좌표

개인 · 시험 구간과 실제 결과
개인 · 시험 구간과 실제 결과 · 전체 시험 760행의 구간은 CSV에 보존

원본 벡터 확대 · 전체 정확 좌표

개인 · 모든 관측 시험값과 중심 예측
개인 · 모든 관측 시험값과 중심 예측 · 모든 시험 행 · 구간 피복과 점 예측은 다른 평가

원본 벡터 확대 · 전체 정확 좌표

모든 보정 점수 · 원 ID·정확 순위
모든 보정 점수 · 원 ID·정확 순위
rankidscore
1person-row:346
5.4025401e-0510206879328684837/188927414705720000000
2person-row:2982
0.0031032861732869782937337787/236159268382150000000
3person-row:2383
0.003783870922339904790384057/5903981709553750000
4person-row:2375
0.00401494123792662258998485319/944637073528600000000
5person-row:3294
0.0041691892492296333039486163/118079634191075000000
6person-row:705
0.00441040852083117703130689029/472318536764300000000
7person-row:1596
0.00441040852083117703130689029/472318536764300000000
8person-row:1504
0.00570880092696372504204428559/472318536764300000000
9person-row:2941
0.0070839715669178207896429121/94463707352860000000
10person-row:833
0.0074658786705254571505967827/94463707352860000000

754 전체 행 · 처음 10행

모든 열·전체 행 CSV

모든 원행의 예측 · 제외·결측도 보존
모든 원행의 예측 · 제외·결측도 보존
idsourceRowplannedRoleroleactualYpredictionloweruppercovered
person-row:11traintrain
6.3062753630627529/100000000
6.0757571717423175725790762667/118079634191075000000
5.57942935270535763115179852553/944637073528600000000
6.57208496208235048497472350119/944637073528600000000
1
person-row:22calibrationcalibration
6.1758673617586727/100000000
6.18716311461155903917706222143/236159268382150000000
5.69083535375773972979678639789/944637073528600000000
6.68349091262694651672394227471/188927414705720000000
1
person-row:33testtest
6.5806391329031957/50000000
6.43373676077546216500917486871/944637073528600000000
5.9374089701087071726221404761/118079634191075000000
6.93006453273197929596031867827/472318536764300000000
1
person-row:44testtest
5.5214609138036523/25000000
6.1507922905133055396674205611/472318536764300000000
5.65446425341416468102202162439/944637073528600000000
6.64711981255823150696898932001/188927414705720000000
0
person-row:55traintrain
6.5916737659167373/100000000
6.43373676077546216500917486871/944637073528600000000
5.9374089701087071726221404761/118079634191075000000
6.93006453273197929596031867827/472318536764300000000
1
person-row:66traintrain
6.214608162146081/10000000
6.15193831162269791681876617763/188927414705720000000
5.6556105166953103616194901251/29519908547768750000
6.64826613140099300550264668799/472318536764300000000
1
person-row:77testtest
6.3368257633682573/100000000
6.61673863125208294252167275607/472318536764300000000
6.12041085781566945813188302431/944637073528600000000
7.11306646719266231195480799997/944637073528600000000
1
person-row:88traintrain
6.410174940063593/6250000
6.33035492989943969974330721393/472318536764300000000
5.83402715511038297257515194003/944637073528600000000
6.82668276448737582639807691569/944637073528600000000
1
person-row:99calibrationcalibration
6.0520892605208917/100000000
6.22238795877898272932266688329/944637073528600000000
5.72606012704524315120560219773/472318536764300000000
6.7187157793343489452926617139/118079634191075000000
1
person-row:1010calibrationcalibration
6.244166962441669/10000000
6.25761272955586465096854244043/472318536764300000000
5.76128495442323287502562239303/944637073528600000000
6.75394056380022572884854736869/944637073528600000000
1

3613 전체 행 · 처음 10행

모든 열·전체 행 CSV

원자료 전체: actual3613-NLS-original52-fields-and-conformal-frame.csv

구간 그림은 원행 순서로 먼저 나오는 시험 ID만 표시합니다. 국가 4행은 전부, 개인은 전체 760시험 중 처음 12행이며 관측 성적을 보고 고른 행이 아닙니다. 관측 대 중심 그림과 보정 점수 곡선은 해당 역할의 모든 행을 사용합니다. 그림 축의 짧은 숫자와 원분수는 다른 표시이며 원 CSV에서 모든 포함 판정을 확인할 수 있습니다.

The second factual case uses all 3613 NLS records and fifty-two native variables from Card’s public archive. Predictors are native schooling years ed76 and age age76; the response is native lwage76. Do not replace it with a newly computed logarithm of raw wage76. Retain the codebook and reader, including the native outcome’s trimming and transformation.

There are 603 missing native log wages, not automatically the same missingness count as raw wages. Missingness alone does not establish survey nonresponse. Native sample weights remain, but this teaching comparison uses unit analysis weights. Planned hash roles followed by required completeness leave 1496 training, 754 calibration and 760 test records.

Actual person baseline in native log-wage units
QuantityResult
Original records3613
Required missing/excluded603
Calibration n and rank k754,604
Absolute-residual thresholdAbout 0.49632780
Common interval widthAbout 0.99265560
Empirical test coverage603/760, about 79.3421%

The 603 covered test outcomes are a numerator among 760 observed test labels. They are a different set from the 603 missing native log wages; equality of those counts is coincidental. Identities and denominators prevent a misleading report of only “603 people.”

Observed coverage need not equal the nominal eighty percent exactly. Finite test variation remains, and exchangeability is not established for this source. Schooling and age coefficients do not become causal policy returns. Transport to missing-wage groups, other years or other populations adds observation-selection and distribution-shift questions.

All native variables and new roles · Official public data archive

Core calculation tables and complete row ledgers

These full-source results fix alpha one-fifth and ridge one-hundredth. Read concise core tables and expand raw fractions. Complete ledgers initially show ten rows with paging; full CSVs preserve every field. All native variables remain in the factual downloads.

Original records and role denominators
Original records and role denominators
rolerows
train1496
calibration754
test760
excluded603
unused0
all originals3613
Training-only transformations and native slopes
Training-only transformations and native slopes
featuretrainingMeantrainingRangetransformedSlopenativeSlope
ed76
13.19719319743/1496
17
0.6183089811681551658342002299/18892741470572000000
0.036371116687150097549529547/18892741470572000000
age76
28.18582921083/748
10
0.3522480633274657261441799757/94463707352860000000
0.03522480633274657261441799757/944637073528600000000
Declared settings and calibration threshold
Declared settings and calibration threshold
quantityvalue
alpha
0.21/5
ridge
0.011/100
calibrationScores754
quantileRank604
threshold
0.4963278468849642691146248783/944637073528600000000
transformedIntercept
6.272476923459063567/3740000000
nativeIntercept
4.79963994533917811082178566933/944637073528600000000
Coverage and efficiency by role and declared group
Coverage and efficiency by role and declared group
rolegroupdefinedPredictionsscoredLabelscoveredRowscoveragemeanIntervalWidth
trainall149614961187
0.79344921187/1496
0.9926556468849642691146248783/472318536764300000000
trainschooling-at-most12758758582
0.76781003291/379
0.9926556468849642691146248783/472318536764300000000
trainschooling-over12738738605
0.8197832605/738
0.9926556468849642691146248783/472318536764300000000
calibrationall754754604
0.80106101302/377
0.9926556468849642691146248783/472318536764300000000
calibrationschooling-at-most12368368290
0.78804348145/184
0.9926556468849642691146248783/472318536764300000000
calibrationschooling-over12386386314
0.8134715157/193
0.9926556468849642691146248783/472318536764300000000
testall760760603
0.79342105603/760
0.9926556468849642691146248783/472318536764300000000
testschooling-at-most12363363278
0.76584022278/363
0.9926556468849642691146248783/472318536764300000000
testschooling-over12397397325
0.8186398325/397
0.9926556468849642691146248783/472318536764300000000
excludedall60300—
0.9926556468849642691146248783/472318536764300000000
excludedschooling-at-most1231700—
0.9926556468849642691146248783/472318536764300000000
excludedschooling-over1228600—
0.9926556468849642691146248783/472318536764300000000
People: all calibration scores and threshold
People: all calibration scores and threshold · Threshold uses every calibration score; alpha one-fifth

Enlarge original vector · Complete exact coordinates

People: empirical coverage by role and group
People: empirical coverage by role and group · Descriptive fixed-group rates, not conditional guarantees

Enlarge original vector · Complete exact coordinates

People: test intervals and observed outcomes
People: test intervals and observed outcomes · All 760 test intervals remain in the complete CSV

Enlarge original vector · Complete exact coordinates

People: every labeled test outcome and prediction
People: every labeled test outcome and prediction · Every test row; interval coverage differs from point accuracy

Enlarge original vector · Complete exact coordinates

All calibration scores, identities and ranks
All calibration scores, identities and ranks
rankidscore
1person-row:346
5.4025401e-0510206879328684837/188927414705720000000
2person-row:2982
0.0031032861732869782937337787/236159268382150000000
3person-row:2383
0.003783870922339904790384057/5903981709553750000
4person-row:2375
0.00401494123792662258998485319/944637073528600000000
5person-row:3294
0.0041691892492296333039486163/118079634191075000000
6person-row:705
0.00441040852083117703130689029/472318536764300000000
7person-row:1596
0.00441040852083117703130689029/472318536764300000000
8person-row:1504
0.00570880092696372504204428559/472318536764300000000
9person-row:2941
0.0070839715669178207896429121/94463707352860000000
10person-row:833
0.0074658786705254571505967827/94463707352860000000

754 total rows; first ten shown

Complete CSV, every column and row

Every original-row prediction, retaining excluded and missing records
Every original-row prediction, retaining excluded and missing records
idsourceRowplannedRoleroleactualYpredictionloweruppercovered
person-row:11traintrain
6.3062753630627529/100000000
6.0757571717423175725790762667/118079634191075000000
5.57942935270535763115179852553/944637073528600000000
6.57208496208235048497472350119/944637073528600000000
1
person-row:22calibrationcalibration
6.1758673617586727/100000000
6.18716311461155903917706222143/236159268382150000000
5.69083535375773972979678639789/944637073528600000000
6.68349091262694651672394227471/188927414705720000000
1
person-row:33testtest
6.5806391329031957/50000000
6.43373676077546216500917486871/944637073528600000000
5.9374089701087071726221404761/118079634191075000000
6.93006453273197929596031867827/472318536764300000000
1
person-row:44testtest
5.5214609138036523/25000000
6.1507922905133055396674205611/472318536764300000000
5.65446425341416468102202162439/944637073528600000000
6.64711981255823150696898932001/188927414705720000000
0
person-row:55traintrain
6.5916737659167373/100000000
6.43373676077546216500917486871/944637073528600000000
5.9374089701087071726221404761/118079634191075000000
6.93006453273197929596031867827/472318536764300000000
1
person-row:66traintrain
6.214608162146081/10000000
6.15193831162269791681876617763/188927414705720000000
5.6556105166953103616194901251/29519908547768750000
6.64826613140099300550264668799/472318536764300000000
1
person-row:77testtest
6.3368257633682573/100000000
6.61673863125208294252167275607/472318536764300000000
6.12041085781566945813188302431/944637073528600000000
7.11306646719266231195480799997/944637073528600000000
1
person-row:88traintrain
6.410174940063593/6250000
6.33035492989943969974330721393/472318536764300000000
5.83402715511038297257515194003/944637073528600000000
6.82668276448737582639807691569/944637073528600000000
1
person-row:99calibrationcalibration
6.0520892605208917/100000000
6.22238795877898272932266688329/944637073528600000000
5.72606012704524315120560219773/472318536764300000000
6.7187157793343489452926617139/118079634191075000000
1
person-row:1010calibrationcalibration
6.244166962441669/10000000
6.25761272955586465096854244043/472318536764300000000
5.76128495442323287502562239303/944637073528600000000
6.75394056380022572884854736869/944637073528600000000
1

3613 total rows; first ten shown

Complete CSV, every column and row

Complete factual source: actual3613-NLS-original52-fields-and-conformal-frame.csv

Regression interval figures retain original-row order: all four country tests, or the first twelve of 760 person tests, selected without inspecting outcomes. Observed-versus-center plots and calibration curves use every row of their stated role. Short axis labels are displays; complete CSVs retain the exact membership calculation.

대학원 연결Graduate bridge

기업: 실제 고객 이탈의 빈 집합도 결과다Company: empty sets are part of the actual churn result

셋째 사례는 UCI Iranian Churn의 3150개 원 고객 행과 14변수입니다. 원 통화 실패 수와 사용 시간만 예측 변수로 쓰고, 이탈 표지 Churn을 결과로 둡니다. Status와 Customer Value는 예측 입력에서 제외합니다. 원 자료의 초기 9개월 요약과 이후 이탈 관측이라는 시점 설명도 유지합니다. 자료가 한 운영 환경에서 어떻게 선정되었는지와 새 환경의 일반화는 별도 문제입니다.

공식 설명의 Charge Amount 범위와 다르게 원 값 10인 7행이 있어도 삭제하거나 9로 고치지 않습니다. 해당 열은 여기 예측 변수로 쓰지 않지만 원 14변수 CSV와 출처 장부에 그대로 남습니다. 새 역할은 훈련 1574·보정 788·시험 788행입니다. 선형 ridge 예측은 [0,1]로 잘라 p를 만들되 이것만으로 확률이 교정됐다고 주장하지 않습니다.

실제 고객 기본 결과 · α=1/5
양결과
보정 순위ceil(789×4/5)=632
1−p_true 문턱약 0.24105437
시험 빈 집합81/788
시험 단일 클래스 집합707/788
시험 두 클래스 집합0/788
시험 경험 피복610/788≈77.4112%
평균 집합 크기707/788≈0.89720812

문턱이 1/2보다 작아서 두 클래스가 동시에 들어가는 경우는 없습니다. 빈 집합 81행을 미정의로 빼면 실패를 숨기므로 시험 피복의 분모 788에 포함합니다. 단일 클래스 707행 중 실제 정답을 담은 것은 610행입니다. 평균 크기 0.897을 높은 정확도처럼 읽지 마세요. 크기와 피복은 다른 지표입니다.

관측 피복 77.41%가 목표 80%보다 낮다고 해서 시험 결과를 보며 α나 λ를 고쳐 같은 표에서 “보장 회복”을 선언하지 않습니다. 현재 설정과 결과를 그대로 보고하고, 유한 표본·선정·의존·확률모형 오류를 구분하여 다음 독립 평가를 설계해야 합니다.

모든 원 고객 변수·역할 · UCI 원자료·기간·이용 조건

핵심 계산표와 전체 원행 장부

기본 α=1/5·λ=1/100을 고정한 전체 자료의 결과입니다. 핵심 표는 짧게 읽고, 원분수는 숫자를 펼쳐 확인하세요. 전체 행 장부는 처음 10행을 표시하고 페이지로 모두 조회하며 완전 CSV도 제공합니다. 원 변수 전체는 아래 원자료 파일에 보존됩니다.

원행과 현재 역할의 분모
원행과 현재 역할의 분모
rolerows
train1574
calibration788
test788
excluded0
unused0
all originals3150
훈련에서 정한 변환·원 단위 기울기
훈련에서 정한 변환·원 단위 기울기
featuretrainingMeantrainingRangetransformedSlopenativeSlope
CallFailure
7.58449815969/787
36
0.229717823119232212560992600/13578538011302480357
0.006381050786645339237805350/13578538011302480357
SecondsUse
4434.07883489620/787
16980
-0.4268854-5796479639472254730/13578538011302480357
-2.5140483e-05-682742007004977/27157076022604960714
기본 설정과 보정 문턱
기본 설정과 보정 문턱
quantityvalue
alpha
0.21/5
ridge
0.011/100
calibrationScores788
quantileRank632
threshold
0.241054376546331827239041581/27157076022604960714
transformedIntercept
0.15374841121/787
nativeIntercept
0.216826232944183164802406491/13578538011302480357
역할·선언 집단의 피복·효율
역할·선언 집단의 피복·효율
rolegroupdefinedPredictionsscoredLabelscoveredRowscoveragemeanSetSize
calibrationall788788632
0.80203046158/197
0.9213198363/394
calibrationpositive-call-failures600600485
0.8083333397/120
0.89666667269/300
calibrationzero-call-failures188188147
0.78191489147/188
1
trainall157415741246
0.79161372623/787
0.90851334715/787
trainpositive-call-failures12271227966
0.78728606322/409
0.88264059361/409
trainzero-call-failures347347280
0.80691643280/347
1
testall788788610
0.77411168305/394
0.89720812707/788
testpositive-call-failures621621475
0.76489533475/621
0.8695652220/23
testzero-call-failures167167135
0.80838323135/167
1
시험 집합 크기별 전체 개수
시험 집합 크기별 전체 개수
setSizetestRows
081
1707
20
확률 점수와 다섯 구간 ECE
확률 점수와 다섯 구간 ECE
metricvalueunit
train:ECE
0.0635112252714802394192609457761/42745237659580208163836
dimensionless
train:Brier
0.11637063135087181370894397069609576551987110584189/1160835668725536259206518614811454855538904
squared probability
train:meanLogLoss
0.372719260.372719259918892998534249765772984565008906831525470366930400
nats
calibration:ECE
0.0803881181720287708050516098671/21399775905812709042632
dimensionless
calibration:Brier
0.1145416666566498757282022884321210250738147051815/581155341140865674875944516182608911159248
squared probability
calibration:meanLogLoss
0.365204850.365204845992933860700837151075318322651331840807523505895789
nats
test:ECE
0.065172097174333533598964429575/2674971988226588630329
dimensionless
test:Brier
0.1235323517947871943694995266728523002248011393587/145288835285216418718986129045652227789812
squared probability
test:meanLogLoss
0.3876130.387612999511795023934934273607542440677729443019261584357481
nats
빈 구간까지 보존한 신뢰도
빈 구간까지 보존한 신뢰도
rolebinrowsmeanPfrequencyY1gap
train01004
0.117969163216512270276271064667/27265704326695380556856
0.0637450216/251
0.0542241411478459404829553578971/27265704326695380556856
train1570
0.232411181798808271330313564151/7739766666442413803490
0.312280789/285
-0.079869526-41211432978768529293/515984444429494253566
train20———
train30———
train40———
calibration0510
0.11574031801507961977471733111/6925054385764264982070
0.05098039213/255
0.064759921149488657894535747943/2308351461921421660690
calibration1278
0.229070951729409385441564696103/7549667134284179078492
0.338129547/139
-0.10905855-823355760683301611013/7549667134284179078492
calibration20———
calibration30———
calibration40———
test0498
0.11614682130899629112150106258/1127018654938105869631
0.0722891576/83
0.0438576649428401044335224116/1127018654938105869631
test1290
0.23270863183270891793298844205/787555204655543860706
0.3344827697/290
-0.10177413-200381864064923186802/1968888011638859651765
test20———
test30———
test40———
고객 · 모든 보정 점수와 문턱
고객 · 모든 보정 점수와 문턱 · 문턱은 점수 전체에서 계산 · α=1/5

원본 벡터 확대 · 전체 정확 좌표

고객 · 역할·집단별 경험 피복
고객 · 역할·집단별 경험 피복 · 각 점은 고정 집단의 기술값 · 조건부 보장 아님

원본 벡터 확대 · 전체 정확 좌표

고객 · 다섯 확률 구간의 신뢰도
고객 · 다섯 확률 구간의 신뢰도 · 빈 구간은 미정의로 보존 · 그림의 0점으로 채우지 않음

원본 벡터 확대 · 전체 정확 좌표

고객 · 시험 집합 크기별 행 수
고객 · 시험 집합 크기별 행 수 · 788개 라벨 분모 유지 · 0행인 두 클래스도 표시

원본 벡터 확대 · 전체 정확 좌표

모든 보정 점수 · 원 ID·정확 순위
모든 보정 점수 · 원 ID·정확 순위
rankidscore
1customer-row:210
2customer-row:650
3customer-row:710
4customer-row:2590
5customer-row:2710
6customer-row:3210
7customer-row:4210
8customer-row:5130
9customer-row:5150
10customer-row:6090

788 전체 행 · 처음 10행

모든 열·전체 행 CSV

모든 원행의 예측 · 제외·결측도 보존
모든 원행의 예측 · 제외·결측도 보존
idsourceRowplannedRoleroleactualYpredictionsetLabelscovered
customer-row:11calibrationcalibration0
0.158010722145554593398974546/13578538011302480357
01
customer-row:22traintrain0
0.208831552835627185688615148/13578538011302480357
01
customer-row:33calibrationcalibration0
0.218967135946506971177711401/27157076022604960714
01
customer-row:44traintrain0
0.175096992377561084477013268/13578538011302480357
01
customer-row:55testtest0
0.17580824774436742268735121/27157076022604960714
01
customer-row:66calibrationcalibration0
0.192112465217212716392742507/27157076022604960714
01
customer-row:77traintrain0
0.183018892485128953487755031/13578538011302480357
01
customer-row:88testtest0
0.0706243841917951755937386727/27157076022604960714
01
customer-row:99traintrain0001
customer-row:1010traintrain0
0.14798434018820917306616727/27157076022604960714
01

3150 전체 행 · 처음 10행

모든 열·전체 행 CSV

원자료 전체: actual3150-churn-original14-fields-and-conformal-frame.csv

빈 확률 구간은 그림에서 점을 만들지 않고 원 신뢰도 표에는 0행·미정의로 남깁니다. 반면 크기 2 집합의 0개는 정의된 개수로 표시합니다. 빈 집합 81개는 실제 시험 피복 분모에 포함합니다. 두 종류의 0과 결측을 혼동하지 마세요.

The third case preserves all 3150 Iranian Churn customer records and fourteen native variables. Predict using call-failure count and usage seconds, with native Churn as the response. Exclude Status and Customer Value as inputs. Retain the documented initial nine-month summaries and later churn horizon. Source selection and transfer to another operational setting remain separate questions.

Seven native Charge Amount values are ten despite the documented range; do not delete them or rewrite them as nine. The variable is not a predictor here but remains in the complete factual CSV and ledger. The new split has 1574 training, 788 calibration and 788 test rows. Clip ridge linear outputs to the unit interval without claiming that clipping calibrates probabilities.

Actual customer baseline at alpha one-fifth
QuantityResult
Calibration rankCeiling of 789 times four-fifths:632
One-minus-true-class thresholdAbout 0.24105437
Empty test sets81/788
Singleton test sets707/788
Both-label test sets0/788
Empirical test coverage610/788, about 77.4112%
Mean set size707/788, about 0.89720812

The threshold below one-half prevents both classes from entering together. Empty sets are defined failures, not missing predictions, so all 788 labeled tests remain in the coverage denominator. Of 707 singleton sets, 610 contain the truth. Mean size 0.897 is not a classification accuracy.

Do not adjust alpha or ridge after seeing the test shortfall and claim to have restored a guarantee on the same table. Preserve the declared settings and observed result. Distinguish finite-sample variation, selection, dependence and probability-model error when designing the next independent evaluation.

All native customer variables and roles · Official UCI source and timing

Core calculation tables and complete row ledgers

These full-source results fix alpha one-fifth and ridge one-hundredth. Read concise core tables and expand raw fractions. Complete ledgers initially show ten rows with paging; full CSVs preserve every field. All native variables remain in the factual downloads.

Original records and role denominators
Original records and role denominators
rolerows
train1574
calibration788
test788
excluded0
unused0
all originals3150
Training-only transformations and native slopes
Training-only transformations and native slopes
featuretrainingMeantrainingRangetransformedSlopenativeSlope
CallFailure
7.58449815969/787
36
0.229717823119232212560992600/13578538011302480357
0.006381050786645339237805350/13578538011302480357
SecondsUse
4434.07883489620/787
16980
-0.4268854-5796479639472254730/13578538011302480357
-2.5140483e-05-682742007004977/27157076022604960714
Declared settings and calibration threshold
Declared settings and calibration threshold
quantityvalue
alpha
0.21/5
ridge
0.011/100
calibrationScores788
quantileRank632
threshold
0.241054376546331827239041581/27157076022604960714
transformedIntercept
0.15374841121/787
nativeIntercept
0.216826232944183164802406491/13578538011302480357
Coverage and efficiency by role and declared group
Coverage and efficiency by role and declared group
rolegroupdefinedPredictionsscoredLabelscoveredRowscoveragemeanSetSize
calibrationall788788632
0.80203046158/197
0.9213198363/394
calibrationpositive-call-failures600600485
0.8083333397/120
0.89666667269/300
calibrationzero-call-failures188188147
0.78191489147/188
1
trainall157415741246
0.79161372623/787
0.90851334715/787
trainpositive-call-failures12271227966
0.78728606322/409
0.88264059361/409
trainzero-call-failures347347280
0.80691643280/347
1
testall788788610
0.77411168305/394
0.89720812707/788
testpositive-call-failures621621475
0.76489533475/621
0.8695652220/23
testzero-call-failures167167135
0.80838323135/167
1
Complete test counts by set size
Complete test counts by set size
setSizetestRows
081
1707
20
Probability scores and five-bin ECE
Probability scores and five-bin ECE
metricvalueunit
train:ECE
0.0635112252714802394192609457761/42745237659580208163836
dimensionless
train:Brier
0.11637063135087181370894397069609576551987110584189/1160835668725536259206518614811454855538904
squared probability
train:meanLogLoss
0.372719260.372719259918892998534249765772984565008906831525470366930400
nats
calibration:ECE
0.0803881181720287708050516098671/21399775905812709042632
dimensionless
calibration:Brier
0.1145416666566498757282022884321210250738147051815/581155341140865674875944516182608911159248
squared probability
calibration:meanLogLoss
0.365204850.365204845992933860700837151075318322651331840807523505895789
nats
test:ECE
0.065172097174333533598964429575/2674971988226588630329
dimensionless
test:Brier
0.1235323517947871943694995266728523002248011393587/145288835285216418718986129045652227789812
squared probability
test:meanLogLoss
0.3876130.387612999511795023934934273607542440677729443019261584357481
nats
Reliability retaining empty bins
Reliability retaining empty bins
rolebinrowsmeanPfrequencyY1gap
train01004
0.117969163216512270276271064667/27265704326695380556856
0.0637450216/251
0.0542241411478459404829553578971/27265704326695380556856
train1570
0.232411181798808271330313564151/7739766666442413803490
0.312280789/285
-0.079869526-41211432978768529293/515984444429494253566
train20———
train30———
train40———
calibration0510
0.11574031801507961977471733111/6925054385764264982070
0.05098039213/255
0.064759921149488657894535747943/2308351461921421660690
calibration1278
0.229070951729409385441564696103/7549667134284179078492
0.338129547/139
-0.10905855-823355760683301611013/7549667134284179078492
calibration20———
calibration30———
calibration40———
test0498
0.11614682130899629112150106258/1127018654938105869631
0.0722891576/83
0.0438576649428401044335224116/1127018654938105869631
test1290
0.23270863183270891793298844205/787555204655543860706
0.3344827697/290
-0.10177413-200381864064923186802/1968888011638859651765
test20———
test30———
test40———
Customers: all calibration scores and threshold
Customers: all calibration scores and threshold · Threshold uses every calibration score; alpha one-fifth

Enlarge original vector · Complete exact coordinates

Customers: empirical coverage by role and group
Customers: empirical coverage by role and group · Descriptive fixed-group rates, not conditional guarantees

Enlarge original vector · Complete exact coordinates

Customers: reliability in five probability bins
Customers: reliability in five probability bins · Empty bins stay undefined, never plotted as zero

Enlarge original vector · Complete exact coordinates

Customers: test counts by prediction-set size
Customers: test counts by prediction-set size · Retain 788 labeled tests, including zero doubletons

Enlarge original vector · Complete exact coordinates

All calibration scores, identities and ranks
All calibration scores, identities and ranks
rankidscore
1customer-row:210
2customer-row:650
3customer-row:710
4customer-row:2590
5customer-row:2710
6customer-row:3210
7customer-row:4210
8customer-row:5130
9customer-row:5150
10customer-row:6090

788 total rows; first ten shown

Complete CSV, every column and row

Every original-row prediction, retaining excluded and missing records
Every original-row prediction, retaining excluded and missing records
idsourceRowplannedRoleroleactualYpredictionsetLabelscovered
customer-row:11calibrationcalibration0
0.158010722145554593398974546/13578538011302480357
01
customer-row:22traintrain0
0.208831552835627185688615148/13578538011302480357
01
customer-row:33calibrationcalibration0
0.218967135946506971177711401/27157076022604960714
01
customer-row:44traintrain0
0.175096992377561084477013268/13578538011302480357
01
customer-row:55testtest0
0.17580824774436742268735121/27157076022604960714
01
customer-row:66calibrationcalibration0
0.192112465217212716392742507/27157076022604960714
01
customer-row:77traintrain0
0.183018892485128953487755031/13578538011302480357
01
customer-row:88testtest0
0.0706243841917951755937386727/27157076022604960714
01
customer-row:99traintrain0001
customer-row:1010traintrain0
0.14798434018820917306616727/27157076022604960714
01

3150 total rows; first ten shown

Complete CSV, every column and row

Complete factual source: actual3150-churn-original14-fields-and-conformal-frame.csv

Empty probability bins have no plotted point and retain zero rows with undefined frequencies. Zero doubleton sets are a defined count and are plotted as zero. All 81 empty sets remain in the test coverage denominator. Distinguish these zeros from missing values.

대학원 연결Graduate bridge

원행에서 계수·문턱·포함까지 검산하기Audit original rows through coefficients, thresholds and membership

재현의 첫 단위는 예쁜 요약 숫자가 아니라 원 ID·원 값·역할입니다. 국가 원 지표 48행에서 선택 연도와 단위를 확인하고, 개인과 고객의 원 변수 열을 유지합니다. 새 해시는 ML20|kind|analyticalID의 UTF-8 값으로 정하며, 정렬 순위의 나머지 0은 시험,1은 보정,2·3은 훈련입니다. 역할을 정한 뒤 결측으로 적격성을 나눕니다.

다음으로 훈련 자료만 사용한 평균·범위를 검산합니다. 범위가 0인 열은 척도 1을 사용하고, 절편을 포함한 변환 좌표에서 고정 ridge 이차식을 풉니다. 양수 λ와 양수 완전 훈련 비중이 있는 현재 기본 사례의 최소화 계수는 유일합니다. 보정 결과로 더 좋아 보이는 변환이나 계수를 골라 끼우지 않습니다.

f^(x)=θ0+θ1x1−xˉ1,Ts1,T+θ2x2−xˉ2,Ts2,T,sj=max⁡Txj−min⁡Txj or 1\widehat f(x)=\theta_0+\theta_1\frac{x_1-\bar x_{1,\mathcal T}}{s_{1,\mathcal T}}+\theta_2\frac{x_2-\bar x_{2,\mathcal T}}{s_{2,\mathcal T}},\quad s_j=\max_{\mathcal T}x_j-\min_{\mathcal T}x_j\ \text{or }1

고객에서 최소화한 이차 기준은 자르기 전 선형 예측의 반 평균제곱손실+ridge입니다. 이후 확률 진단과 집합 점수는 [0,1]로 자른 p로 계산합니다. 따라서 그 최소 목적함수 값을 그대로 Brier나 로그 손실이라고 부르면 안 됩니다. 보고서에 어느 단계의 예측을 평가했는지 적어야 합니다.

실제 자료 실습에서는 자료 종류·미리 정한 α·λ를 바꾸고 다시 계산할 수 있습니다. 결과가 마음에 들 때까지 시험 표를 반복해서 골랐다면 그 시험 표는 이미 선택 과정에 쓰인 것입니다. 계산 도구가 가능하게 하는 조작과 통계적으로 정당한 평가 설계를 구별하세요. 원분수·원행·제외 이유·보정 점수 전체를 남겨 다른 사람이 같은 포함 판정을 할 수 있게 합니다.

Reproducibility begins with original identities, values and roles, not attractive summary numbers. Check source years and units in forty-eight country indicator rows, retaining all person and customer variables. SHA256 of UTF-8 ML20|kind|analyticalID orders identities: rank modulo four assigns zero to test, one to calibration and two or three to training. Handle required missingness after planned roles.

Audit training-only means and ranges next. Replace a constant feature range by one and solve the declared ridge quadratic in transformed coordinates including an intercept. Positive ridge and training mass give a unique optimizer for our baseline. Do not substitute transformations or coefficients selected from calibration performance.

f^(x)=θ0+θ1x1−xˉ1,Ts1,T+θ2x2−xˉ2,Ts2,T,sj=max⁡Txj−min⁡Txj or 1\widehat f(x)=\theta_0+\theta_1\frac{x_1-\bar x_{1,\mathcal T}}{s_{1,\mathcal T}}+\theta_2\frac{x_2-\bar x_{2,\mathcal T}}{s_{2,\mathcal T}},\quad s_j=\max_{\mathcal T}x_j-\min_{\mathcal T}x_j\ \text{or }1

For customers, the fitted objective is half mean squared error of the unclipped linear predictor plus ridge. Probability diagnostics and conformal scores afterward use clipped p. The minimum training criterion is therefore not simply the displayed Brier or log loss. State which stage’s prediction was evaluated.

The factual lab permits changing dataset and predeclared alpha or ridge. Repeatedly inspecting test results to select pleasing settings uses that test in selection. Distinguish available tool operations from a justified statistical design. Retain fractions, every identity, exclusion reasons and all calibration scores so another reader can reproduce membership.

대학원 연결Graduate bridge

회귀 구간의 폭과 놓친 정도를 같이 읽기Read interval width together with the severity of misses

포함 성공만 세면 실제 값이 구간을 0.01만큼 벗어난 경우와 100만큼 벗어난 경우가 같은 실패입니다. 폭만 줄이면 관측을 거의 포함하지 못하는 점 집합이 좋아 보일 수 있습니다. 범위를 넓히는 비용과 놓치는 비용을 함께 계산하는 보조 점수를 정의해 보겠습니다. 아래의 구간 점수는 폭에 양쪽 바깥 거리의 벌점을 더합니다. 이는 학습을 위한 별도 손계산이며 현재 기본 API의 피복률과 같은 지표가 아닙니다.

IS⁡α(L,U;y)=(U−L)+2α(L−y)1{y<L}+2α(y−U)1{y>U}\operatorname{IS}_{\alpha}(L,U;y)=(U-L)+\frac2\alpha(L-y)\mathbf1\{y<L\}+\frac2\alpha(y-U)\mathbf1\{y>U\}
가상 α=1/5의 구간 점수
구간y폭바깥 벌점점수
[−2,2]0404
[−2,2]341014
[−4,4]3808

좁은 구간이 관측 3을 놓치면 점수 14,더 넓은 구간이 포함하면 8입니다. 반면 y=0에서는 좁은 구간이 더 낮은 점수를 받습니다. 어떤 평가 기준을 선택할지는 의사결정과 보고 목적에 맞추어 미리 정해야 합니다. 구간을 보고 난 뒤 가장 유리한 지표만 선택하지 않습니다.

개인 사례의 구간은 로그 단위에서 대칭입니다. 양끝을 지수 변환하면 exp(lwage76)라는 변환 결과를 위한 비대칭 구간이 됩니다. 단조 변환이므로 그 변환된 결과의 포함 사건은 같지만, 이것을 원시 wage76와 동일한 변수라고 하려면 기존 절단·변환 정의를 추가로 확인해야 합니다. 원 로그 단위의 폭 0.99266을 임금 금액의 폭이라고 쓰지 않습니다.

비대칭 의사결정 비용이 있으면 아래쪽과 위쪽 오류에 다른 벌점이나 다른 점수 설계가 필요할 수 있습니다. 그 비용 설계와 Conformal의 주변 포함률 조건은 서로 연결할 수 있지만 같은 개념은 아닙니다.

Coverage alone treats a miss by 0.01 like a miss by one hundred. Width alone can favor a nearly useless singleton. Define an auxiliary interval score that trades width against distances outside each endpoint. The following is an additional hand calculation, not the same metric as the basic API’s coverage.

IS⁡α(L,U;y)=(U−L)+2α(L−y)1{y<L}+2α(y−U)1{y>U}\operatorname{IS}_{\alpha}(L,U;y)=(U-L)+\frac2\alpha(L-y)\mathbf1\{y<L\}+\frac2\alpha(y-U)\mathbf1\{y>U\}
Constructed interval scores at alpha one-fifth
IntervalOutcomeWidthOutside penaltyScore
[−2,2]0404
[−2,2]341014
[−4,4]3808

At outcome three the narrow interval scores fourteen while the wider covering interval scores eight. At outcome zero the narrower interval is preferable. Choose evaluation criteria to match the decision and reporting purpose before inspecting results, rather than selecting only a favorable metric afterward.

Person intervals are symmetric in native log units. Exponentiating endpoints gives an asymmetric interval for exp(lwage76). Monotonicity preserves inclusion of that transformed outcome, but identifying it with raw wage76 requires checking existing trimming and transformation definitions. A log width of 0.99266 is not a wage-amount width.

Asymmetric decision costs may motivate unequal penalties or another score design. Such costs can inform a procedure but are not the same concept as marginal conformal coverage.

대학원 연결Graduate bridge

고객의 확률 진단과 집합 진단을 따로 읽기Read customer probability diagnostics separately from set diagnostics

실제 고객 시험 자료에서 한 성분 Brier는 약 0.12353235,평균 로그 손실은 약 0.38761300 nat입니다. 고정 5구간의 사건 1 확률 ECE는 약 0.06517210입니다. 이것은 현재 단일 자료·선정·역할·모형에 대한 성적이며 모든 미래 고객의 확률 교정 정도를 보장하는 숫자가 아닙니다.

같은 시험 자료의 집합 피복은 610/788,평균 크기는 707/788입니다. Brier는 각 확률과 실제 0·1 오차를 제곱하고, ECE는 구간의 평균 차이를 요약하며, 집합 피복은 문턱을 통과한 후보에 실제 라벨이 들어갔는지를 셉니다. 서로 다른 질문이므로 한 숫자가 좋아 보인다고 나머지도 좋다고 결론낼 수 없습니다.

실제 시험 고객의 서로 다른 평가
평가값·정의
한 성분 Brier약 0.12353235
평균 로그 손실약 0.38761300 nat
5구간 ECE약 0.06517210
집합 피복610/788
빈 집합81/788
평균 집합 크기707/788

신뢰도 그림에서 점 하나의 위치만 보지 말고 그 구간에 몇 고객·몇 사건이 들어갔는지 읽으세요. 빈 구간의 빈도는 미정의로 두고, 코드는 거친 구간 Brier 분해의 구간 내 분산과 공분산도 유지합니다. 소수점 몇 자리의 ECE 차이를 실질적 우열로 단정하기 전에 같은 표본·구간·평가 시점인지 확인합니다.

실무상 빈 집합은 추가 검토 대기열에 보낼 수도 있습니다. 그렇다면 검토 처리량과 오류 비용을 별도로 평가해야 합니다. 모든 고객에게 무조건 두 클래스를 넣어 피복을 높이면 후보 수와 검토 부담이 커집니다. 운영 판단을 숨겨 통계적 성공처럼 포장하지 않고 원 집합과 후속 행동을 나누어 기록합니다.

On the actual customer test split, one-component Brier is about 0.12353235 and mean log loss about 0.38761300 nats. Fixed five-bin event-probability ECE is about 0.06517210. These describe one selected dataset, role split and model, not guaranteed calibration for all future customers.

The same test has set coverage 610/788 and mean size 707/788. Brier squares individual probability errors, ECE aggregates bin-mean discrepancies and set coverage checks whether threshold-accepted candidates contain the observed label. A favorable result under one metric does not establish favorable results under the others.

Different evaluations on the actual test customers
EvaluationValue or definition
One-component BrierAbout 0.12353235
Mean log lossAbout 0.38761300 nats
Five-bin ECEAbout 0.06517210
Set coverage610/788
Empty sets81/788
Mean set size707/788

Read each reliability point with its customer and event counts. Empty-bin frequency remains undefined, and the coarse-bin Brier identity retains within-bin variance and covariance. Before interpreting tiny ECE differences, check that sample, bins and evaluation timing match.

A workflow may send empty sets to additional review, whose capacity and costs need separate evaluation. Including both labels for everyone can raise coverage while increasing set size and review burden. Preserve the original statistical sets separately from subsequent operational decisions.

대학원 연결Graduate bridge

시험 라벨을 바꾸어 누출을 검사하기Change test labels to audit leakage

독립 평가의 원칙을 말로만 쓰지 말고 계산의 의존 관계를 확인합시다. 일반 predict 실습에서 보정 점수·α·예측 중심을 고정하고 새 질의의 y만 바꾸어 보세요. 문턱과 집합은 그대로이고 포함 판정·관측 피복만 달라져야 합니다. 새 정답이 문턱을 정하는 데 들어가지 않았다는 기본 점검입니다.

실제 자료 프로그램도 별도의 가상 라벨 사본에서 같은 점검을 수행했습니다. 원 CSV는 그대로 두고 국가 시험 성장률 4개에는 100을 더하고, 개인 시험 로그 임금 760개에는 10을 더하며, 고객 시험 788개의 0·1 이탈 표지는 뒤집었습니다. 이 값들은 시험 설계를 공격하기 위해 구성한 가상 값이며 실제 관측이나 새 실적이 아닙니다.

가상 시험 라벨 사본에서 확인한 의존 관계
항목실제 확인 결과
원 실제 CSV변경 없음
훈련 계수 CSV원 실행과 바이트 동일
보정 점수 CSV원 실행과 바이트 동일
적격성·역할 CSV원 실행과 바이트 동일
모든 6779행의 예측 규칙·문턱·집합변경 없음
시험 y·포함 판정·시험 성적의도대로 달라질 수 있음

이 검사는 계산의 라벨 누출을 찾는 근거이지, 실제 관측의 교환가능성·대표성·인과성을 입증하는 검사가 아닙니다. 시험 라벨을 바꾸어도 결과가 같아야 하는 항목과 달라져야 하는 항목을 구별해야 합니다. 시험 손실까지 그대로라면 시험 라벨을 아예 읽지 않는 다른 버그일 수도 있습니다.

연습할 때는 반드시 새 폴더의 사본을 사용하고 가상 값이라는 표시를 유지하세요. 원문 자료를 덮어쓰거나 가상 결과를 실제 사례의 관측 성적에 합치지 않습니다. 데이터 실습의 목적은 성적을 좋아 보이게 만드는 것이 아니라 어떤 정보가 어떤 계산에 들어가는지 이해하는 데 있습니다.

Audit the dependency structure rather than merely declaring test independence. In the generic prediction lab, fix calibration scores, alpha and query centers, then change only query labels. Thresholds and sets must remain fixed while coverage decisions and empirical scores may change. This checks that future labels do not determine their own threshold.

We also ran the actual-source program on clearly hypothetical test-label copies. Original CSVs stayed unchanged. Add one hundred to four country test growth labels, ten to 760 observed person test log wages, and flip 788 binary customer test labels. These are constructed adversarial audit values, not actual observations or a new performance dataset.

Observed dependencies in the hypothetical-label audit
ItemAudit result
Canonical factual CSVsUnchanged
Training coefficient CSVByte-identical to baseline
Calibration score CSVByte-identical to baseline
Eligibility and roles CSVByte-identical to baseline
Rules, thresholds and sets for all 6779 recordsUnchanged
Test labels, inclusion and test scoresMay change as intended

This checks computational label leakage, not factual exchangeability, representativeness or causality. Distinguish outputs that must stay invariant from those that should respond to changed labels. If test loss never changes, the program may instead be ignoring test labels entirely.

Practice only on separate copies and retain the hypothetical label. Do not overwrite source originals or merge artificial results into factual empirical performance. The goal is understanding information flow, not manufacturing attractive scores.

대학원 연결Graduate bridge

실제로 계산한 것과 정리가 요구하는 것을 대조하기Match computed evidence with theorem assumptions

현재 사례에서 확인할 수 있는 것은 원자료의 행·단위·결측, 지정한 역할, 훈련 전용 변환·고정 ridge, 보정 점수의 정확 순위, 모든 원행 예측과 포함 판정입니다. 서로 다른 언어의 같은 계산을 대조하고 시험 라벨 의존 관계를 점검할 수도 있습니다. 이런 검증은 중요하지만 증명한 대상이 무엇인지 정확하게 이름 붙여야 합니다.

계산 결과만으로 실제 보정·미래 관측의 교환가능성을 확인하지는 못합니다. 국가의 미래 시점, 결측 임금 집단, 다른 통신 사업자에게 그대로 옮겨도 같은 조건인지 추가 근거가 필요합니다. 현재 근거가 약한 부분을 “분포무관”이라는 한 단어로 덮지 않습니다.

근거를 서로 다른 칸에 놓기
확인 항목현재 범위
원자료·변환·분모보존 원문과 전체 CSV로 재현
정렬·포함·실행정확 유한 계산과 수치 대응 비교
관측 피복·폭·집합 크기현재 고정 분할의 기술값
교환가능성·대상 전이관측 계산만으로 입증되지 않음
개인·집단 조건부 보장기본 주변 정리가 자동 제공하지 않음
연락·정책의 인과효과현재 예측 비교의 추정 대상 아님

또한 예측 규칙이 하나로 정해져 있다는 것과 경제적 계수가 자료만으로 유일하게 식별되었다는 것은 다릅니다. λ=0의 랭크 부족 입력에서는 실습이 자유 좌표를 0으로 둔 RREF 대표를 실행 규칙으로 정할 수 있습니다. 이것이 특정 예측을 정의하더라도 다른 최소해의 계수·질의 예측이 같은지의 식별 정보는 별도로 보고합니다. 기본 실제 사례의 양수 ridge 해와 혼동하지 않습니다.

좋은 보고서는 성공과 한계를 같은 수준의 문장으로 기록합니다. 다음 재현·읽기·종합 과제에서는 누가 원자료를 다시 열더라도 같은 핵심 표를 만들고, 동시에 어떤 적용 주장은 아직 하지 못하는지 알 수 있도록 정리하겠습니다.

Current evidence can establish preserved rows, units and missingness; declared roles; training-only transforms and fixed ridge; exact calibration ranks; and every original-row prediction and membership decision. Cross-language reproduction and test-label dependency checks add useful evidence. Name the object verified by each check.

These calculations do not establish exchangeability between actual calibration and future observations. New periods, missing-wage groups and another operator require additional evidence. Do not conceal such gaps under the single phrase distribution-free.

Keep evidence in distinct categories
CheckCurrent scope
Source, transformations and denominatorsReproducible originals and complete CSVs
Sorting, membership and executionExact finite algebra and numerical counterparts
Coverage, widths and sizesDescriptive values of the fixed split
Exchangeability and target transportNot established by the observed computation
Pointwise or subgroup guaranteesNot automatic from the basic marginal theorem
Causal policy or retention effectsNot estimated by this prediction comparison

A fixed executed predictor also differs from data identification of economic coefficients. For rank-deficient zero-ridge input, the lab may define its algorithm by the RREF representative with free coordinates zero. That produces a deterministic prediction without establishing coefficient or query invariance across every minimizer; report that information separately. The positive-ridge factual baseline is a different case.

A good report states successes and limitations with equal precision. The reproduction, reading and capstone tasks next aim to let another reader rebuild the core tables while understanding which application claims are still unsupported.

대학원 연결Graduate bridge

손계산 한 행을 전체 CSV와 연결하기Connect a hand calculation to the complete CSV

컴퓨터 출력 전체를 먼저 읽으려 하면 길을 잃기 쉽습니다. 먼저 국가 시험 한 행을 골라 원 ID, 예정 역할, 두 특징, 실제 성장률을 한 줄에 적으세요. 훈련 평균과 범위로 특징을 바꾼 뒤 절편과 두 기울기의 곱을 더하면 중심 예측이 됩니다. 그 행의 실제 결과를 이 계산에 넣지 않았는지 먼저 확인합니다.

다음은 보정 점수 표입니다. 국가에서는 보정 네 행의 절대 잔차를 작은 순서로 적어 네 번째를 고릅니다. 같은 문턱을 모든 시험 중심의 양쪽에 더하고 빼세요. 시험 결과가 양끝을 포함한 구간 안에 있는지 판단한 후에야 피복 분자에 더합니다. 순서가 반대이면 시험 결과에 맞추어 구간을 움직이는 다른 절차가 됩니다.

한 행 검산에서 전체 장부로
검산 대상읽을 표확인 질문
원 값·역할원 4개 CSV예정 역할과 제외 이유가 보존됐나?
변환·계수training-coefficients훈련 행만 변환·적합에 쓰였나?
정렬·순위calibration-scores점수 수와 n+1 올림을 확인했나?
중심·양끝·집합row-predictions원 ID에 같은 예측이 연결되는가?
피복·효율role-group-coverage라벨 분모와 예측 분모를 구분했나?
확률 진단reliability-bins·study-metrics빈 구간·확률 끝점을 숨기지 않았나?

개인 사례에서도 같은 절차를 따르되 단위가 원 로그 임금이라는 점을 유지합니다. 고객은 양끝 구간 대신 후보 0의 점수 p, 후보 1의 점수 1−p를 문턱과 비교합니다. CSV의 집합 문자열이 비어 있다는 이유만으로 결측이라고 바꾸지 마세요. 빈 집합과 예측 불능은 서로 다른 결과입니다.

아래 사례의 핵심 표는 읽기 쉬운 요약입니다. 전체 원 변수·모든 보정 점수·모든 행의 예측은 CSV에서 확인할 수 있습니다. 표를 요약한 것이 분석 표본을 줄였다는 뜻은 아닙니다. 그림에 일부 시험 구간만 그릴 때도 선택 규칙과 전체 행 수를 함께 적어야 합니다.

Reading every computer output first can be overwhelming. Begin with one country test identity, its planned role, two features and observed growth. Transform features using training means and ranges, multiply by the fitted slopes, and add the intercept. Check first that this row’s observed outcome did not enter its predicted center.

Next sort the four country calibration absolute residuals and select the fourth. Apply that common threshold around each test center. Only then compare the held-out outcome with the inclusive endpoints and count coverage. Moving an interval after seeing its own test outcome defines a different procedure.

From one checked row to the full ledger
ObjectTableQuestion
Original values and rolesFour factual CSVsAre planned roles and exclusions preserved?
Transforms and coefficientstraining-coefficientsWere only training rows used for fitting?
Scores and rankscalibration-scoresWere n and the adjusted ceiling checked?
Centers and setsrow-predictionsDoes each original identity retain its prediction?
Coverage and efficiencyrole-group-coverageAre label and prediction denominators distinct?
Probability diagnosticsreliability-bins and study-metricsAre empty bins and probability endpoints retained?

Repeat for people while retaining native log-wage units. For customers compare candidate-zero score p and candidate-one score one minus p with the threshold. An empty set string is not a missing prediction; emptiness and inability to predict are different outcomes.

Core case tables summarize the complete analysis rather than reducing its sample. Complete native variables, all calibration scores and every original-row prediction remain downloadable. A figure showing only selected test intervals must also state its selection rule and the complete test count.

대학원 연결Graduate bridge

Python과 R로 같은 원자료부터 재현하기Reproduce from the same factual inputs in Python and R

재현 파일은 완성된 예측 CSV를 입력으로 다시 읽는 답안 확인기가 아닙니다. 네 원자료·역할 CSV에서 훈련 변환과 ridge를 다시 맞추고, 보정 점수·문턱·시험 집합을 새로 만듭니다. 입력 폴더와 새 출력 폴더를 구분하고 원본을 덮어쓰지 마세요. 기본값은 α=1/5,λ=1/100입니다.

Python 실행 예는 python reproduce-probability-conformal.py --inputs INPUTS --out NEW_OUTPUT --alpha 1/5 --ridge 1/100입니다. R 실행 예는 Rscript reproduce-probability-conformal.R INPUTS NEW_OUTPUT 1/5 1/100입니다. 파일을 받은 뒤 실제 경로로 INPUTS와 NEW_OUTPUT을 바꾸세요. 기존 결과 폴더가 아니라 비어 있는 새 경로를 쓰는 이유는 이전 산출물과 새 산출물을 섞지 않기 위해서입니다.

Python 경로는 유리수로 변환·계수·점수·순위를 계산하고 로그는 명시적으로 수치 근사합니다. base R 경로는 수치 선형대수로 대응 계산을 하며 포함 판정에 10^-12 허용오차를 둡니다. 원분수와 R의 부동소수 결과가 문자까지 같아야 한다고 요구하지 말고, 원 ID·역할·누락·순위·집합 및 정한 수치 허용오차를 분리해 비교하세요.

특히 이 R 프로그램은 출처 CSV에 보존된 splitRank와 예정 역할을 검산하지만 SHA256 자체를 다시 구현하는 프로그램은 아닙니다. R의 α 입력도 작은 분수·짧은 소수 범위로 제한합니다. 웹의 일반 정확 입력 계약과 동일한 무한 정밀도 계산기라고 소개하지 않습니다. 입력 토큰을 읽는 범위, 알고리즘, 비교 허용오차를 밝히는 것이 재현의 일부입니다.

실행 뒤 일곱 표를 차례로 비교하세요. 먼저 행 수·ID·역할, 다음 훈련 계수와 보정 점수, 마지막 피복·진단입니다. 차이를 발견하면 같은 역할·같은 단위·같은 결측 규칙인지 먼저 찾고, 그 뒤 반올림과 허용오차를 보세요. 성적이 비슷하다는 것만으로 원행이 일치한다고 결론내리지 않습니다.

독립 실행 Python · base R 대응 구현

The reproduction programs do not read completed prediction tables as answers. Starting from four factual input-and-role CSVs, they refit training transforms and ridge, then rebuild calibration scores, thresholds and test sets. Keep input and fresh output folders separate. Defaults are alpha one-fifth and ridge one-hundredth.

Run python reproduce-probability-conformal.py --inputs INPUTS --out NEW_OUTPUT --alpha 1/5 --ridge 1/100, or Rscript reproduce-probability-conformal.R INPUTS NEW_OUTPUT 1/5 1/100, replacing the placeholders with actual paths. A fresh destination prevents old and new artifacts from being mixed.

Python uses rational arithmetic for transforms, coefficients, scores and ranks, with explicitly approximate logarithms. The base-R counterpart uses numerical linear algebra and a membership tolerance of one trillionth. Compare identities, roles, missingness, ranks and sets separately from numerical tolerances rather than demanding identical decimal strings.

The R program checks preserved splitRank and planned roles but does not independently implement SHA256. Its alpha syntax accepts restricted small fractions and short decimals. It is not an arbitrary-precision implementation of the web API’s general numeric-input contract. Input scope, algorithms and tolerance policy belong in the reproduction account.

Compare the seven outputs in order: counts and identities, training coefficients and scores, then coverage and diagnostics. Investigate roles, units and missingness before attributing discrepancies to rounding. Similar overall performance alone does not establish matching original rows.

Standalone Python program · Base-R numerical counterpart

대학원 연결Graduate bridge

정확한 분수·근사 로그·무한·미정의의 계약Contracts for exact fractions, approximate logs, infinity and undefined values

화면의 0은 두 가지를 뜻할 수 있습니다. 수학적으로 정확한 0일 수도 있고, 양수지만 표시 정밀도보다 작아서 0으로 보일 수도 있습니다. 잘못된 끝점 확률의 로그 손실 +∞는 큰 유한 수가 넘친 것과도 다릅니다. 프로그램은 원분수와 비영·표시 한계 표지를 유지하고, 기본 표에는 짧은 근삿값과 필요한 설명을 보여 주어야 합니다.

가중 로그 손실에서 이 차이가 실제 오류를 만들 수 있습니다. 매우 작은 정규화 비중을 먼저 0으로 반올림한 뒤 로그 손실을 곱하면, 곱하거나 합친 뒤에는 표시할 수 있었을 작은 양수까지 잃습니다. 예를 들어 양수 비중과 유한 로그 인자는 수학적으로 양수인 항을 만듭니다. 이 구현은 민감한 계산에서 유한 로그의 컴퓨터 값을 정확한 이진 유리수로 분해하고 정확 비중과 곱해 합친 후 마지막에 표시값으로 투영합니다. 이것이 실수 로그 자체가 정확해졌다는 뜻은 아닙니다.

또한 관측이 없어서 평균을 정하지 못하는 경우와 손실 평균이 정확히 0인 경우를 구분합니다. 보정 점수가 없거나 k=n+1이면 문턱 +∞를 수학적 규칙대로 사용합니다. 회귀에서는 전 실수 구간, 이진 분류에서는 두 클래스가 됩니다. 이 결과를 빈 배열·0 폭·오류 없음으로 바꾸지 않습니다.

비슷하게 보이는 출력의 다른 뜻
상태뜻
정확 0정의된 양이 수학적으로 0
양수·표시 0원 비영 값은 남고 표시 범위가 부족함
수학적 +∞끝점 로그 또는 순위 규칙이 무한을 요구함
유한 값 표시 넘침수학적 값은 유한하나 숫자 표시 범위 밖
미정의필요한 분모·라벨·모형이 없어 해당 양을 정하지 않음
빈 예측 집합정의된 집합에 후보가 없음; 관측 정답을 담지 못함

순위 올림과 집합 포함에는 정확 유리수 비교를 사용합니다. 반면 로그·원 그림의 축 위치·기본 짧은 숫자는 근사 표시입니다. 반올림된 p가 같아 보인다는 이유만으로 두 원 확률이 같다고 추정하지 마세요. 실습의 정확값 펼치기와 원 CSV는 이 차이를 확인하는 도구입니다.

A displayed zero may be mathematically zero or a positive value below display precision. Genuine infinite endpoint log loss also differs from a large finite quantity overflowing a numeric display. Preserve exact fractions and nonzero or display-limit flags while showing readable short approximations by default.

Weighted log loss makes the distinction operational. Rounding a tiny normalized weight to zero before multiplication can erase a product or sum that would be representable after the operation. For sensitive terms this implementation decomposes the finite computer logarithm into its exact binary rational, combines it with exact weights and projects the final sum only afterward. This does not turn the real logarithm into an exact quantity.

An undefined mean with no eligible observations differs from a defined mean of zero. No calibration scores, or adjusted rank n plus one, require a mathematically infinite threshold. That yields the whole real line in regression and both labels in binary classification, rather than zero width or an empty result.

Different meanings behind superficially similar outputs
StateMeaning
Exact zeroA defined quantity is mathematically zero
Positive, displayed as zeroA nonzero original survives beyond display precision
Mathematical infinityAn endpoint or rank rule requires infinity
Finite display overflowThe mathematical value is finite but outside display range
UndefinedA necessary denominator, label or predictor is absent
Empty prediction setA defined set contains no candidate and misses any observed truth

Adjusted ranks and set membership use rational comparisons. Logarithms, plot positions and short decimal labels are numerical displays. Equal rounded probabilities do not establish equal original probabilities. Expand exact values and consult the CSVs to inspect that difference.

대학원 연결Graduate bridge

연구자를 통해 보는 확률 평가의 질문Research contributions behind probability evaluation

학자 소개의 목적은 이름을 외우는 데 있지 않습니다. 서로 다른 연구 질문을 구분하는 데 있습니다. Glenn W. Brier의 1950년 확률 예보 검증 연구는 사건 발생 여부만 맞혔는가가 아니라 제출한 확률 전체를 어떻게 평가할 것인가를 묻습니다. 이 장은 이진 사건의 한 성분 제곱 손실을 쓰므로, 모든 범주를 합하는 표기와 배율이 다를 수 있음을 함께 적었습니다.

Tilmann Gneiting과 Adrian E. Raftery의 2007년 적정 점수 연구는 예측 분포를 정직하게 보고할 유인을 수학적으로 설명합니다. 진짜 확률 θ 아래 기대 Brier를 전개한 S4의 등식은 그 질문의 작은 예입니다. 정직한 확률 보고를 유도하는 성질이, 특정 모델이 이미 그 확률을 학습했다는 증거는 아닙니다.

Chuan Guo와 공동저자의 2017년 연구는 현대 신경망의 자신감과 실제 정답 빈도가 어긋날 수 있음을 다룹니다. 다만 그 논문의 최대 확률 자신감 교정과 이 장의 class-one 확률 교정은 조건부 사건이 다릅니다. 같은 “calibration”이라는 단어 뒤에서 무엇에 조건을 거는지 확인하는 습관이 필요합니다.

Anastasios N. Angelopoulos와 Stephen Bates의 입문 글은 고정 예측기·보정 점수·순위를 연결해 예측 집합의 피복 논증을 설명합니다. Ryan J. Tibshirani, Rina Foygel Barber, Emmanuel J. Candès, Aaditya Ramdas의 2019년 가중 방법은 알려진 공변량 밀도비와 불변한 조건부 결과 법칙이라는 조건을 추가해 이동 문제를 다룹니다. 아무 관측 비중이나 대입하면 같은 정리가 된다는 뜻이 아닙니다.

읽은 뒤 “어떤 대상을 평가했나, 어떤 법칙 아래 보장했나, 실제 적용에 무엇이 더 필요한가”라는 세 질문을 각 연구에 붙여 보세요. 이 소개는 해당 논문의 기여를 요약하며 현재 소속·직책이나 모든 후속 연구를 대신하지 않습니다.

Research biographies are useful when they distinguish questions rather than ask learners to memorize names. Glenn W. Brier’s 1950 work on probability-forecast verification asks how to assess the submitted probability, beyond whether the eventual event label was guessed correctly. Our one-component binary squared score may differ by a constant factor from notation summing every category.

Tilmann Gneiting and Adrian E. Raftery’s 2007 treatment of proper scores formalizes incentives for honest predictive distributions. The expected-Brier identity derived earlier is a small instance. A scoring rule encouraging honesty does not establish that a fitted model has learned the true probability.

Chuan Guo and coauthors’ 2017 work addresses gaps between neural-network confidence and empirical correctness. Its maximum-class-confidence target differs from the class-one probability calibration used here. Always identify the event and conditioning variable behind the word calibration.

The introductory text by Anastasios N. Angelopoulos and Stephen Bates connects a fixed predictor, calibration scores and ranks to prediction-set coverage. The 2019 weighted method of Ryan J. Tibshirani, Rina Foygel Barber, Emmanuel J. Candès and Aaditya Ramdas addresses shift under known covariate density ratios and an invariant conditional outcome law. Arbitrary observation weights do not inherit that theorem.

For each contribution ask what was evaluated, under which law the result holds, and what additional evidence an application needs. These are accounts of the cited research contributions, not assertions about current appointments or comprehensive biographies.

학부 심화 · 선택Advanced undergraduate · optional

본문 영상: 예측 집합의 순위 논증을 따라가기In-page video: follow the rank argument for prediction sets

저자 Anastasios N. Angelopoulos의 A Tutorial on Conformal Prediction을 본문에서 재생하며 학습합니다. 공식 Distribution-Free Uncertainty Quantification 워크숍의 튜토리얼 목록에서 연결된 영상입니다. 영상의 설명을 듣기 전에 종이 위에 보정 점수 [1,2,3],α=1/4를 적고 이 장의 순위 k=3과 문턱 3을 먼저 구하세요. 정확한 재생 구간을 확인하지 않은 타임스탬프는 붙이지 않았습니다.

첫 번째 시청 질문은 “훈련으로 고정한 예측 함수가 순위 논증에서 어떤 역할을 하는가”입니다. 두 번째는 “시험값을 모르는 상태에서 예측 집합을 어떻게 만들 수 있는가”입니다. 세 번째는 “주변 피복이라는 문장이 각 개인의 조건부 피복과 왜 다른가”입니다. 한 문장씩 답한 뒤 S25의 증명을 다시 읽으세요.

영상 속 예가 이해되면 이 장의 실제 개인 사례를 돌아보세요. 문턱을 계산할 수 있다는 것과 결측·선정·미래 분포의 조건이 충족되었다는 것은 다릅니다. 영상의 일반 그림을 자료별 조건 확인의 대체물로 쓰지 않습니다. 플레이어가 제공하지 않는 자막 언어나 재생 허용 상태도 추정하지 마세요.

공식 워크숍 튜토리얼 출처 · 동반 입문 글

Study Anastasios N. Angelopoulos’s A Tutorial on Conformal Prediction in the player below, linked by the official Distribution-Free Uncertainty Quantification workshop tutorial page. Before watching, write calibration scores [1,2,3] and alpha one-quarter on paper, then calculate adjusted rank three and threshold three. No precise timestamps are supplied without direct verification of their playback segments.

First ask what role the training-fixed prediction function plays in the rank proof. Next ask how a prediction set can be constructed before its test outcome is known. Finally explain why marginal coverage differs from individual conditional coverage. Write one answer to each and return to the proof in section twenty-five.

Then revisit the factual person case. Computable thresholds do not establish assumptions about missingness, selection or future distributions. General tutorial diagrams cannot replace source-specific condition checks. Do not infer unavailable caption languages or embedding permissions.

Official workshop tutorial listing · Companion introductory reading

대학원 연결Graduate bridge

선택 읽기: 정의·증명·실험을 나누어 읽기Selected reading: separate definitions, proofs and experiments

논문 한 편을 처음부터 끝까지 같은 속도로 읽을 필요는 없습니다. 지금의 학습 목표에 해당하는 정의와 증명 부분을 정해 읽고, 어떤 부분을 아직 읽지 않았는지 기록하세요. 아래는 이 장과 직접 연결되는 선택 읽기입니다. 링크의 논문 전체를 읽었다는 뜻이 아닙니다.

추천 읽기와 확인할 질문
자료선택 부분·질문
Gneiting·Raftery 2007범주형 적정 점수: 기대 점수의 최소자가 왜 진짜 확률인가?
Guo 등 2017확률 교정 정의·reliability·ECE: 최대 자신감과 class-one은 같은가?
Angelopoulos·Bates 입문 글분할 절차·순위 증명·주변 피복: 동률과 무한 문턱은 어떻게 처리하는가?
Tibshirani 등 2019가중 순위·새 입력의 ∞질량: 밀도비와 조건부 불변성은 어디 쓰이나?

2007 적정 점수 논문 · 2017 신경망 교정 논문 · Conformal 입문 글 · 2019 공변량 이동의 가중 방법

읽기 메모는 세 칸이면 충분합니다. “정의”,“결과를 성립시키는 조건”,“우리 자료에서 확인한 것”을 분리하세요. 예를 들어 알려진 밀도비는 논문 조건이고, 이 장의 해시 분할은 계산 규칙입니다. 둘을 같은 칸에 적으면 없는 보장을 만들어내기 쉽습니다.

확장 독자는 적정 구간 점수의 분위수 해석과 조건부 피복의 가능·불가능 범위를 이어 공부할 수 있습니다. 이 장의 S37은 구간 점수의 직접 계산이며, 거기서 모든 동시·조건부 최적성을 증명했다고 확대하지 않습니다. 추가 문헌을 읽을 때도 무엇을 보였는지를 좁혀 적으세요.

Do not read every page of every paper at the same speed. Select definitions and arguments matching the current learning question, and record which parts remain unread. The following targeted readings connect directly to this chapter; listing them is not a claim to have read every page.

Readings and questions
SourceSelected focus
Gneiting and Raftery, 2007Categorical proper scores: why does the true probability minimize expectation?
Guo and coauthors, 2017Calibration, reliability and ECE: is maximum confidence the class-one probability?
Angelopoulos and Bates, introductionSplit procedure, rank proof and marginal coverage: how are ties and infinity handled?
Tibshirani and coauthors, 2019Weighted ranks and new-point infinity mass: where do known ratios and invariance enter?

Proper scoring rules · Neural-network calibration · Conformal introduction · Weighted covariate-shift method

Use three note columns: definition, conditions supporting the result, and what was actually checked for our source. A known density ratio is a theorem condition; a deterministic hash split is a computation rule. Putting them in the same category can manufacture an unsupported guarantee.

Advanced readers can continue to quantile interpretations of interval scores and limits of conditional-coverage claims. Section thirty-seven calculates an interval score directly; it does not prove every simultaneous or conditional optimality property. Keep extension claims equally specific.

대학원 연결Graduate bridge

실무 미니 프로젝트: 같은 틀·다른 대상Practical mini-project: one framework, different targets

국가 팀은 수정 빈티지의 회고적 GDP 성장률 구간을 연구 메모로 만듭니다. 원 국가와 연도·단위를 확인하고, 보정 네 나라에서 왜 α=1/10이면 유한 구간을 만들지 못하는지 손으로 설명하세요. 실제 발표 시차를 확보하지 못했다면 결과를 실시간 예측이라고 부르지 않습니다. 향후 운영안을 제안할 때는 지표 공개일과 개정 빈티지의 별도 장부를 먼저 요구하세요.

개인 팀은 원 로그 임금의 결측과 관측 시험 집단을 구분하는 보고서를 만듭니다. 교육 수준 두 집단의 라벨 수·피복·폭을 비교하고, 집단별 경험 차이가 조건부 보장의 증명도 인과 교육 수익도 아니라는 문장을 포함하세요. 같은 603이라는 두 숫자가 다른 집합임을 원 ID로 확인하는 검산을 한 줄 적습니다.

기업 팀은 고객의 확률 진단과 예측 집합을 나란히 제시합니다. 빈 집합·단일·두 클래스 개수, 피복 분모, 평균 크기, Brier·로그·구간 ECE를 함께 읽습니다. 어떤 기준으로 사람에게 검토를 요청할 것인지 비용 가정을 제안하되, 실제 연락의 이탈 감소 효과가 이 자료에서 추정됐다고 쓰지 않습니다.

세 팀 모두 처음에 α와 λ를 선언하고 고정된 시험 결과를 보고합니다. 대안을 시험 결과로 골랐다면 그 사실과 새 평가 계획을 적으세요. 마지막에는 원 CSV·실행 방법·핵심 표·원본 그림을 묶고, 동료가 임의의 ID 세 개를 골라 중심·문턱·포함을 재현하게 합니다. 상대 팀에게 높은 점수를 받는 것보다 자료 정의와 계산이 그대로 전달되는 것이 목표입니다.

The country team writes a retrospective revised-vintage GDP-growth interval memo. Check countries, years and units, then explain by hand why four calibration countries cannot yield finite thresholds at alpha one-tenth. Without historical release information, do not label the exercise real-time forecasting. An operational proposal should first request a ledger of release dates and revised vintages.

The person team separates missing native log wages from the labeled test population. Compare denominators, coverage and width across the two declared schooling groups. State that observed group differences prove neither conditional coverage nor causal schooling returns. Verify by original identities why two equal counts of 603 represent different sets.

The company team presents probability diagnostics alongside prediction sets: empty, singleton and doubleton counts, coverage denominator, average size, Brier, logarithmic loss and binned ECE. Propose review actions with explicit cost assumptions without claiming that this dataset estimates causal retention effects.

Every team declares alpha and ridge before examining the fixed test result. If alternatives were selected using test performance, disclose that choice and plan fresh evaluation. Deliver factual CSVs, execution instructions, core tables and original figures. Let peers choose three identities and reproduce centers, thresholds and membership. Faithful transfer of definitions and computations matters more than an attractive score.

대학원 연결Graduate bridge

조건을 적은 최종 예측 보고서Finish a prediction report that states its conditions

완성 보고서는 여섯 질문에 답합니다. 무엇을 언제 예측하는가? 어떤 원 자료를 어떤 단위로 읽었는가? 어떤 정보로 변환·모형·설정을 정했는가? 보정 점수와 순위가 어떤 집합을 만드는가? 시험 분모와 관측 성적은 무엇인가? 그리고 어떤 적용 조건은 아직 확인하지 못했는가? 긴 설명을 이 여섯 질문에 연결하면 처음 읽는 사람도 계산을 따라갈 수 있습니다.

최종 보고서의 읽기 순서
칸필수 내용
대상·시점단위·라벨 시점·예측에 이용 가능한 정보
출처·선택원 ID·결측·예정 역할·분모
고정 규칙훈련 변환·λ·α·점수·포함 부등호
결과관측 피복과 폭·크기·확률 진단
재현원 CSV·코드·한 행 검산·수치 허용오차
적용 조건교환가능성·이동·선정·조건부·인과 한계

집합이 넓거나 비어 있다는 이유로 결과를 삭제하지 마세요. 그것이 선택한 점수·α·자료에서 나온 결과입니다. 전체 예측을 열어 보고 원인이 작은 보정 표본인지, 낮은 문턱인지, 모형의 확률 분포인지 조사하세요. 그 다음 수정 절차와 평가 계획을 분리해 제안합니다.

이 장의 마지막 질문은 “예측기를 믿어도 되나”라는 한마디가 아닙니다. 어떤 손실과 분모에서 계산이 맞는지, 어떤 법칙 아래 피복 논증이 성립하는지, 어떤 대상에 옮기려면 증거가 더 필요한지를 구체적으로 말할 수 있는가입니다. 그 구분을 유지하면 다음 장의 분포 강건성과 인과 머신러닝에서도 예측 성적을 적용 주장으로 성급하게 바꾸지 않을 수 있습니다.

A complete report answers six questions. What is predicted, and when? Which original data and units were used? What information selected transforms, models and settings? Which scores and ranks define the set? What are the test denominator and observed results? Which application conditions remain unchecked? Organizing around these questions lets a new reader follow the computation.

Reading order for the final report
FieldRequired content
Target and timingUnits, label horizon and information available at prediction
Source and selectionOriginal identities, missingness, planned roles and denominators
Fixed ruleTraining transforms, ridge, alpha, scores and inclusive comparison
ResultsObserved coverage, widths or sizes and probability diagnostics
ReproductionFactual CSVs, code, one checked row and tolerance policy
Application conditionsExchangeability, shift, selection, conditional and causal limitations

Do not delete wide or empty sets because they look unattractive. They are outputs of the declared scores, alpha and source. Inspect complete predictions to distinguish a small calibration sample, low threshold and probability-model behavior. Then propose a modified procedure and a separate evaluation plan.

The closing task is more precise than asking whether a predictor can be trusted. Explain under which loss and denominator computation is correct, under which joint law the coverage proof applies, and what additional evidence transport requires. That discipline carries into causal machine learning and distributional robustness without converting prediction performance into unsupported application claims.

영상·학자·함께 읽기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.

저자 튜토리얼 · Conformal 예측Author tutorial: conformal prediction

Anastasios N. Angelopoulos; official DFUQ workshop tutorial listing, 2021

고정 예측기·보정 점수·순위와 주변 피복을 연결합니다.Connect a fixed predictor, calibration scores, ranks and marginal coverage.

본문에서 영상 재생Play the video in the chapter

보고 읽은 뒤 답하기Respond after watching/reading 관측 점수 정렬만으로 미래 교환가능성이 입증되나요?Does sorting observed scores establish future exchangeability?

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

아닙니다. 정확 계산과 공동 법칙의 조건은 다른 근거입니다.No. Exact computation and assumptions about the joint law require different evidence.

Gneiting·Raftery · 적정 점수Gneiting and Raftery: proper scoring rules

JASA, 2007

범주형 점수의 정의와 Brier·로그 예를 읽습니다.Read categorical-score definitions and Brier/log examples.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 적정성은 현재 모델이 정확하다는 증거인가요?Does propriety establish that a fitted model is correct?

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

점수 규칙의 기대 최소 성질이며 학습 성공의 증명이 아닙니다.It concerns the rule’s expected optimum, not proof of learning success.

Guo 등 · 신경망 확률 교정Guo and coauthors: neural-network calibration

ICML, 2017

최대 자신감과 class-one 확률, ECE의 구간 의존성을 구별합니다.Distinguish maximum confidence, class-one probabilities and bin-dependent ECE.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 두 교정 정의는 같은 조건부 사건인가요?Are the two calibration definitions the same conditional event?

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

아닙니다. 어떤 확률·사건을 조건으로 삼는지 적어야 합니다.No. State the probability and event used in conditioning.

Angelopoulos·Bates · Conformal 입문Angelopoulos and Bates: conformal introduction

Authors manuscript, v6, 2022

분할·순위 논증·동률·주변 피복을 선택 읽기합니다.Read selected split, rank, tie and marginal-coverage passages.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 동률이면 무동률 상한도 그대로 성립하나요?Do no-tie upper bounds automatically persist with ties?

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

하한은 유지되지만 보수적 동률로 상한을 넘을 수 있습니다.The lower guarantee survives; conservative ties can exceed the no-tie upper bound.

Tibshirani 등 · 공변량 이동Tibshirani and coauthors: covariate shift

NeurIPS, 2019

알려진 밀도비·불변한 조건부 법칙·새 입력 무한 질량을 확인합니다.Inspect known ratios, invariant conditional outcomes and new-point infinity mass.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 아무 표본 비중이나 같은 정리를 주나요?Does any sample weight inherit the theorem?

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

아닙니다. 비중의 정의와 필요한 분포 조건을 확인해야 합니다.No. Check weight definitions and distributional conditions.

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

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

1. 80건을 꼭 보아야 할까Must we observe exactly eighty events?

동일 확률 4/5인 독립 사건을 100번 관측한다고 정했습니다. 사건 수의 평균·분산·표준편차를 구하고, 관측 80건이 참 확률 4/5의 증명인지 설명하세요.

Under one hundred independent trials with probability four-fifths, find the event count mean, variance and standard deviation. Does observing eighty prove that probability?

풀이와 확인할 이유Solution and explanation

평균은 100×4/5=80, 분산은 100×4/5×1/5=16, 표준편차는 4입니다. 실제 수가 80일 필요는 없고, 80이 나와도 다른 확률에서 우연히 같은 수가 나올 수 있습니다. 이 계산의 독립·동일 확률 가정을 실제 의존 자료에 자동 적용하지 않습니다.

The mean is eighty, variance sixteen and standard deviation four. The count need not equal its mean, and a count of eighty could also arise under another probability. The stated IID assumptions do not automatically describe dependent factual data.

2. 정확도가 같은 모델의 기대 손실Expected losses with identical hard labels

실제 확률 θ=0.6인 가상 집단에서 항상 p=0.6과 p=0.99를 보고합니다. 0.5 기준 정확도와 기대 Brier 차이를 구하세요.

For a constructed population with true probability 0.6, compare constant reports 0.6 and 0.99. Find half-threshold accuracy and the difference in expected Brier loss.

풀이와 확인할 이유Solution and explanation

두 규칙 모두 항상 사건 발생으로 분류하므로 정확도는 0.6입니다. 기대 Brier는 θ(1−θ)+(p−θ)²이므로 각각 0.24와 0.3921입니다. 손실 차이 0.1521은 (0.99−0.6)²입니다. 정확도는 보고 확률의 과신 정도를 구별하지 못합니다.

Both always predict the event and have accuracy 0.6. Expected Brier losses are 0.24 and 0.3921, using theta times one minus theta plus squared reporting error. Their difference 0.1521 is the squared gap between 0.99 and 0.6. Accuracy misses this overconfidence.

3. 가중 평균의 분모The weighted-mean denominator

두 행은 (p,y,w)=(1/10,0,1),(7/10,1,3)입니다. 평균 Brier와 모든 비중을 10배 했을 때의 값을 구하세요.

Two rows have (p, y, w)=(one-tenth, zero, one) and (seven-tenths, one, three). Find mean Brier and its value after multiplying all weights by ten.

풀이와 확인할 이유Solution and explanation

가중 손실합은 1×1/100+3×9/100=28/100입니다. 비중 합 4로 나누면 7/100=0.07입니다. 비중을 10배 하면 분자와 분모가 모두 10배라 결과는 같습니다. 행 수 2로 나누어 0.14라고 하면 지정한 가중 평균이 아닙니다.

The weighted loss sum is 28/100. Dividing by total weight four gives 7/100. Scaling every weight by ten scales numerator and denominator equally, leaving the result unchanged. Dividing by the row count two would give 0.14 and is not the declared weighted mean.

4. 두 클래스 정의의 배율The two-class normalization factor

y=1,p=4/5일 때 한 성분 Brier와 벡터(1−p,p)의 두 성분 제곱 오차합을 각각 구하세요.

For label one and p four-fifths, calculate one-component Brier and the squared error summed over both components of (one minus p, p).

풀이와 확인할 이유Solution and explanation

한 성분은 (4/5−1)²=1/25입니다. 두 성분의 실제 벡터는 (0,1)이므로 (1/5−0)²+(4/5−1)²=2/25입니다. 두 값은 같은 예측을 채점하지만 정확히 2배 차이가 납니다. 다른 논문의 숫자를 비교할 때 이 정의를 확인해야 합니다.

One-component Brier is 1/25. The observed vector is (zero, one), so the two-component sum is 2/25. These score the same prediction but differ by a factor of two. Check this convention before comparing reported numbers.

5. 엄밀 적정성의 제곱 항The square behind strict propriety

θ(1−p)²+(1−θ)p²을 전개하고 θ(1−θ)+(p−θ)²과 같음을 보이세요. 끝점 θ=0,1도 설명하세요.

Expand theta times (one minus p) squared plus (one minus theta) p squared and obtain the propriety identity. Include theta zero and one.

풀이와 확인할 이유Solution and explanation

전개한 값은 θ−2θp+p²입니다. 오른쪽은 θ−θ²+p²−2θp+θ²로 같아집니다. p와 무관한 첫 항을 빼면 (p−θ)²만 남아 p=θ에서만 최소입니다. θ=0이면 p², θ=1이면 (1−p)²이므로 허용 끝점에서 같은 유일성 결론이 성립합니다.

Expansion gives theta minus twice theta p plus p squared. Expanding the proposed right-hand side gives the same expression. Only squared reporting error depends on p, uniquely minimized at theta. At the endpoints the losses become p squared or (one minus p) squared, retaining uniqueness on the unit interval.

6. 로그 손실의 두 결과Two outcomes under log loss

p=4/5일 때 y=1과 y=0의 로그 손실을 쓰고, 왜 p=0,y=1은 단순히 “아주 큰 유한 값”이 아닌지 설명하세요.

Write the log losses for both binary outcomes at p four-fifths. Why is p zero with label one not merely a very large finite value?

풀이와 확인할 이유Solution and explanation

각각 −log(4/5)≈0.22314와 −log(1/5)≈1.60944입니다. p=0,y=1은 발생한 결과에 확률 0을 준 것이므로 −log0을 확장 실수에서 +∞로 정의합니다. 양수 p를 0으로 반올림해서 이 무한 손실을 만들면 안 되며, 반대로 진짜 0을 임의의 작은 양수로 바꿔 유한한 점수로 숨겨도 안 됩니다.

The losses are minus log(4/5), about 0.22314, and minus log(1/5), about 1.60944. An observed event with probability exactly zero has positive-infinite loss in the extended real line. Do not create infinity by rounding a positive probability to zero or hide genuine zero probability by silently replacing it with an epsilon.

7. 아주 작은 값의 의미The meaning of a tiny value

p=10^−200,y=0의 Brier가 화면에 0처럼 보입니다. 원값·정의 여부·로그 손실의 끝점 상태를 어떻게 구별해야 하나요?

Brier for p ten to minus 200 and label zero displays as zero. Distinguish its raw value, definedness and the endpoint status of log loss.

풀이와 확인할 이유Solution and explanation

원 Brier는 정확한 양수 10^−400이며 정의되어 있습니다. 표시 범위 아래의 비영 값이라고 남겨야 합니다. 관측 결과의 확률은 1−10^−200>0이므로 로그 손실도 작지만 유한한 양수입니다. 확률 0인 결과가 관측되어 생기는 +∞나, 평가 분모가 0인 미정의와는 다릅니다.

Raw Brier is the defined positive value ten to minus 400. Preserve its nonzero-underflow status. The observed outcome has positive probability one minus ten to minus 200, so log loss is finite and positive. This differs from an impossible observed outcome’s infinity and from an undefined mean with zero evaluation mass.

8. 좋은 교정과 정보의 구분Separate calibration from information

동일 비중 두 집단의 실제 사건 확률이 0.1과 0.9입니다. 항상 0.5인 모델과 집단별 참 확률인 모델의 기대 Brier를 계산하세요.

Two equally common groups have event probabilities 0.1 and 0.9. Compare expected Brier for a constant 0.5 model and the true group-probability model.

풀이와 확인할 이유Solution and explanation

항상 0.5이면 실제 y가 어느 쪽이든 손실은 0.25입니다. 집단별 참 확률을 쓰면 각 집단의 기대 손실은 θ(1−θ)=0.09이므로 전체도 0.09입니다. 두 모델 모두 예측 확률을 조건으로는 교정되지만 두 번째가 집단 차이를 구분합니다. 첫 모델의 전체 교정은 집단별 교정을 뜻하지 않습니다.

A constant 0.5 incurs 0.25 whichever binary outcome occurs. The correct group probabilities have expected loss theta times one minus theta, 0.09 in either group and overall. Both are calibrated by their forecast, while only the second distinguishes the groups. Overall calibration of the first does not imply groupwise calibration.

9. 결측을 음성으로 채우면Replacing missing labels with negatives

시험행 10개 중 라벨을 관측한 6개가 있고 그중 예측 집합이 참값을 포함한 것은 5개입니다. 나머지 4개를 y=0으로 채워 피복률을 계산해도 될까요?

Of ten test records, six have observed labels and five of these are covered. May the other four be assigned label zero to calculate coverage?

풀이와 확인할 이유Solution and explanation

안 됩니다. 관측 가능한 라벨·정의된 집합 기준의 경험 피복은 5/6이며, 원행 수 10·라벨 결측 4를 함께 공개합니다. 결측을 음성으로 만들면 원자료와 포함 판정이 바뀝니다. 5/6은 관측된 선택 표본의 기술값이지 결측 개인이나 미래의 조건부 피복을 보장하는 숫자가 아닙니다.

No. Empirical coverage among labeled, defined predictions is five-sixths; report ten original records and four missing labels alongside it. Imputing negative labels changes the observations and membership decisions. Five-sixths describes the observed selection, not guaranteed coverage for missing individuals or future conditional outcomes.

10. 같은 라벨을 세 번 쓰면Using the same labels three times

시험 성적을 보고 λ를 골랐고, 같은 시험 라벨의 잔차로 Conformal 문턱을 정한 뒤 같은 표에서 높은 피복을 보고했습니다. 어떤 역할이 섞였나요?

A researcher chooses lambda using test performance, uses those test residuals to choose a conformal threshold, and reports high coverage on the same table. Which roles were mixed?

풀이와 확인할 이유Solution and explanation

모형 선택·집합 보정·최종 평가를 같은 라벨에 맡겼습니다. 시험 자료가 더 이상 독립된 최종 평가 역할을 하지 못하고, 고정된 학습 규칙 뒤 새 보정·미래 점수의 교환가능성을 사용하는 원래 순위 논증을 그대로 적용할 수 없습니다. 별도의 훈련·선택·보정·시험 설계나 그 재사용을 정당화하는 다른 정리가 필요합니다. 높은 표 안 피복만으로 보장을 되살릴 수는 없습니다.

Model selection, set calibration and final evaluation all reused the same labels. The test set no longer serves independent final evaluation, and the original rank argument for a fixed predictor with fresh exchangeable calibration/future scores cannot be invoked unchanged. Use separated roles or a different theorem that justifies reuse. High in-table coverage does not restore the original guarantee.

11. 사건 확률과 정답 자신감Event probability versus classification confidence

예측한 사건 1 확률은 0.2이고 0.5 기준으로 클래스 0을 골랐습니다. 사건 확률 교정 그림과 정답 자신감 교정 그림의 가로축을 각각 쓰세요.

Forecast event-one probability is 0.2, so a half-threshold classifier chooses zero. Give the horizontal coordinates for event-probability calibration and predicted-label confidence calibration.

풀이와 확인할 이유Solution and explanation

사건 확률 그림은 p=0.2를 사용하고 세로축은 y=1의 빈도입니다. 자신감 그림은 선택 클래스 0의 확률 1−p=0.8을 사용하고 세로축은 예측 클래스의 정답률입니다. 둘은 다른 질문이므로 축과 정의를 바꾸어 쓰면 안 됩니다.

Event-probability calibration uses horizontal value 0.2 and vertical event-one frequency. Confidence calibration uses the chosen class probability 0.8 and vertical classification correctness. They answer different questions and must not be relabeled interchangeably.

12. 두 구간의 ECEECE for two bins

(p,y)=(0.1,0),(0.4,1),(0.6,0),(0.9,1)을 동일 비중 두 구간 [0,0.5),[0.5,1]에 넣어 평균 예측·빈도·ECE를 구하세요.

Place the four pairs (0.1,0), (0.4,1), (0.6,0), (0.9,1) in two equal-width bins with unit weights. Find mean forecasts, frequencies and ECE.

풀이와 확인할 이유Solution and explanation

첫 구간 평균 p는 (0.1+0.4)/2=0.25, 빈도는 1/2입니다. 둘째는 0.75와 1/2입니다. 절대 차이는 모두 1/4이고 각 구간 비중은 1/2이므로 ECE=1/4입니다. 원 Brier는 (0.01+0.36+0.36+0.01)/4=0.185입니다.

The bin mean forecasts are 0.25 and 0.75; both event frequencies are one-half. Each absolute gap is one-quarter and each bin weight one-half, so ECE is one-quarter. Raw Brier remains 0.185.

13. 빈 구간의 점을 찍지 않기Do not plot an invented empty-bin point

다섯 확률 구간 중 세 번째의 관측 비중 합이 0입니다. 빈도를 0으로 두고 y=x 선 아래에 점을 그리면 무엇이 잘못되나요?

The third of five probability bins has zero observation weight. What is wrong with setting its frequency to zero and plotting it below the identity line?

풀이와 확인할 이유Solution and explanation

빈도는 분자와 분모가 모두 0인 평균이므로 미정의입니다. 빈 구간의 비중이 전체 ECE에서 0인 것과 그 구간의 사건 확률이 0인 것은 다릅니다. 점을 생략하고 행 수·비중 0과 미정의를 표시해야 합니다.

The frequency has no denominator and is undefined. Zero bin weight in ECE does not establish zero event probability. Omit the point and explicitly display zero rows or weight and undefined frequency.

14. 구간을 바꾼다고 Brier가 바뀌지 않는다Changing bins does not change Brier

연습문제 12의 같은 네 행에서 구간 수 1과 4의 ECE를 구하고 원 Brier가 유지되는 이유를 설명하세요.

For the same four rows in exercise twelve, find ECE with one and four equal-width bins. Why does raw Brier stay fixed?

풀이와 확인할 이유Solution and explanation

한 구간은 평균 p와 평균 y가 모두 1/2이라 ECE=0입니다. 네 구간에서는 각 관측이 따로 들어가 절대 차이 평균이 (0.1+0.6+0.6+0.1)/4=0.35입니다. 원 Brier는 행별 제곱 오차의 평균이라 구간 재표시와 무관하게 0.185입니다. ECE가 0이라는 한 요약은 완벽한 확률의 증명이 아닙니다.

One bin gives both means one-half and ECE zero. Four bins isolate the rows, giving mean absolute gap 0.35. Raw Brier averages the original squared errors and stays 0.185 regardless of display bins. Zero under one ECE summary does not prove perfect probabilities.

15. 다섯 항 분해를 수치로 검산하기Numerically verify the five-term identity

두 구간의 U=1/4,R=0,C=1/16,V_P=9/400,K=3/40입니다. Brier를 재구성하고 세 항만 썼을 때의 오차를 구하세요.

For two bins, use U one-quarter, R zero, C one-sixteenth, V nine-four-hundredths and K three-fortieths. Reconstruct Brier and the error from retaining only three terms.

풀이와 확인할 이유Solution and explanation

U−R+C=5/16=125/400입니다. 추가 항 V−2K=9/400−60/400=−51/400입니다. 따라서 전체는 74/400=37/200=0.185이고, 세 항만 쓰면 51/400만큼 과대 계산합니다. 두 항은 같은 구간 안의 확률 변동과 결과 공분산을 보존합니다.

The three terms give 5/16, or 125/400. The correction is 9/400 minus 60/400, equal to minus 51/400. Total Brier is 74/400, or 37/200. Omitting the correction overstates it by 51/400. The extra terms preserve within-bin forecast variation and covariance with outcomes.

16. 한 구간의 가중 ECEWeighted ECE in one bin

(p,y,w)=(1/4,0,2),(3/4,1,1)을 한 구간으로 묶습니다. 평균 p,평균 y,ECE,Brier를 구하세요.

Put (p,y,w)=(one-quarter,zero,two) and (three-quarters,one,one) in one bin. Find mean p, mean y, ECE and Brier.

풀이와 확인할 이유Solution and explanation

비중 합은 3입니다. 평균 p는 (2/4+3/4)/3=5/12, 평균 y는 1/3=4/12이므로 ECE=1/12입니다. 두 행의 Brier는 각각 1/16이므로 가중 평균도 1/16입니다. ECE와 Brier는 정의와 단위가 다른 성적이므로 같은 숫자여야 할 이유가 없습니다.

Total weight is three. Mean p is 5/12 and mean y is 1/3, so ECE is 1/12. Each row has Brier 1/16, giving the same weighted mean. ECE and Brier measure different quantities and need not agree.

17. 세 번 모두 0이어도Even after three negatives

고정된 가상 IID Bernoulli(1/2) 법칙에서 세 관측이 모두 0일 확률을 구하고, 빈도 0을 참 확률 0이라고 부르면 안 되는 이유를 설명하세요.

Under a specified IID Bernoulli one-half law, find the probability of three negatives. Why is their empirical zero not a true probability of zero?

풀이와 확인할 이유Solution and explanation

확률은 (1/2)³=1/8입니다. 실제 확률이 1/2이어도 0,0,0이 나올 수 있으므로 경험 빈도 0은 참 확률 0의 증명이 아닙니다. 사건들이 독립이 아니라면 이 1/8 계산에도 추가 가정이 필요합니다.

The probability is one-eighth. Thus a zero empirical frequency can occur even when the true probability is one-half. It does not prove probability zero. Without independence, even the one-eighth calculation needs a different justification.

18. 한 라벨로 만든 완벽한 교정Perfect empirical calibration from one label

독립인 Y_fit,Y_new가 각각 Bernoulli(1/2)이고 p-hat=Y_fit입니다. 맞춘 표와 새 표의 기대 Brier를 비교하세요.

Let independent fitting and new labels each be Bernoulli one-half, and report the fitting label as the probability. Compare fitting and expected new Brier.

풀이와 확인할 이유Solution and explanation

맞춘 표의 손실은 항상 0입니다. 새 라벨이 이전과 다를 확률은 1/2이고 그때 제곱 오차는 1이므로 새 기대 Brier는 1/2입니다. 처음부터 항상 1/2을 예측한 모델의 새 Brier 1/4보다 나쁩니다. 같은 라벨에서 만든 낮은 성적은 새 표의 정확성을 보장하지 않습니다.

Fitting loss is always zero. The new label differs with probability one-half and then squared error is one, giving expected new Brier one-half. A constant one-half forecast instead incurs one-quarter. Low error on reused labels does not guarantee new-sample quality.

19. 온도를 높이면 언제나 좋은가Does increasing temperature always help?

p=0.9의 logit에 T=2를 적용한 확률을 구하세요. 참 확률 θ가 0.75일 때와 0.9일 때 기대 Brier 변화가 같은 방향인가요?

Apply temperature two to the logit of probability 0.9. Compare expected Brier changes when the true probability is 0.75 or 0.9.

풀이와 확인할 이유Solution and explanation

오즈 9의 제곱근은 3이므로 새 확률은 3/4입니다. θ=0.75이면 원 손실은 0.1875+0.15²=0.21이고 새 손실은 0.1875로 개선됩니다. θ=0.9이면 원 손실 0.09가 새로 0.09+0.15²=0.1125가 되어 악화됩니다. 온도는 항상 좋거나 나쁜 것이 아니라 별도 학습·검증이 필요한 조정입니다.

Taking the square root of odds nine gives odds three and probability 0.75. At true probability 0.75, expected Brier improves from 0.21 to 0.1875. At true probability 0.9, it worsens from 0.09 to 0.1125. Temperature adjustment needs separate fitting and evaluation rather than a universal improvement claim.

20. 행동의 문턱에는 인과 가정도 있다A decision threshold also needs an effect assumption

우산 비용 c=1,비 피해 L=5,예방 비율 e=1인 가상 모형의 문턱을 구하세요. 실제 이탈 확률만 알아도 고객 연락의 이익을 같은 방식으로 계산할 수 있나요?

Find the action threshold for constructed umbrella cost one, rain loss five and prevention fraction one. Does knowing actual churn risk suffice to calculate retention-contact benefit?

풀이와 확인할 이유Solution and explanation

알려진 가상 모형에서는 p>1/5이면 준비합니다. 실제 연락에서는 예방 효과 e가 별도로 필요하며 단순 이탈 예측이 그 인과효과를 주지는 않습니다. 연락 비용·효과·부작용과 위험 확률을 구별해야 합니다. Conformal 집합의 피복도 연락이 손실을 얼마나 줄이는지 증명하지 않습니다.

In the specified toy model, act above probability one-fifth. Actual retention contact additionally requires its causal effectiveness e, which a churn-risk prediction does not identify. Separate contact cost, effect, side effects and risk. Coverage of a conformal set does not prove the loss reduction caused by contact.

21. 예측 구간의 대상The target of a prediction interval

새 학생의 점수를 위한 구간과 모집단 평균 점수를 위한 신뢰구간은 같은 대상인가요? 주변 피복 80%가 특정 학생 조건부 확률 80%를 뜻하는지도 설명하세요.

Do a prediction interval for a new student and a confidence interval for a population mean target the same object? Does eighty-percent marginal coverage imply the same conditional probability for this student?

풀이와 확인할 이유Solution and explanation

새 점수는 미래 결과 자체이고 모집단 평균은 분포의 고정된 모수라 대상이 다릅니다. 새 결과의 개별 변동도 예측 구간에 관련됩니다. 주변 피복은 보정·미래 관측의 무작위성에 걸친 성질이며 모든 입력 x나 자료를 본 뒤의 각 개인 조건부 확률을 그대로 보장하지 않습니다.

A future outcome and a fixed distributional mean are different targets. Prediction concerns the new outcome’s individual variability as well. Marginal coverage averages over calibration and future randomness; it does not automatically provide the same conditional probability at every input or for an individual after conditioning on observed data.

22. 같은 주변 분포가 충분한가Are identical marginals sufficient?

각각 확률 1/2로 (0,1,0),(1,0,1)인 벡터가 교환가능한지 두 번째·세 번째 자리를 바꾸어 확인하세요.

A vector equals (0,1,0) or (1,0,1), each with probability one-half. Check exchangeability by swapping its second and third positions.

풀이와 확인할 이유Solution and explanation

교환 후 가능한 벡터는 (0,0,1),(1,1,0)으로 바뀝니다. 원래 그 두 벡터의 확률은 0이므로 결합 법칙이 같지 않아 교환가능하지 않습니다. 각 위치의 주변 분포가 Bernoulli(1/2)라는 사실은 유지되지만 모든 순열 대칭성을 주지 않습니다.

After the swap, the possible vectors are (0,0,1) and (1,1,0), which originally had probability zero. The joint law changes, so the vector is not exchangeable. Every coordinate’s Bernoulli one-half marginal is insufficient for permutation symmetry.

23. 독립이 아니어도 교환가능할 수 있다Exchangeability without independence

공통 공정 동전 Z를 한 번 뽑고 S₁=…=S₅=Z로 둡니다. 이 점수들은 독립인가요? 교환가능한가요?

Draw one fair binary Z and set all five scores equal to it. Are the scores independent or exchangeable?

풀이와 확인할 이유Solution and explanation

서로 같은 공통 값이라 독립이 아닙니다. 예를 들어 첫 값이 1이면 나머지도 모두 1입니다. 그러나 어떤 순열을 적용해도 같은 벡터가 되어 교환가능합니다. 동률이 많으므로 서로 다른 점수에서의 균등 순위 등식 대신 포함 규칙의 보수적 하한을 사용해야 합니다.

They are not independent: learning the first value determines every other value. Yet every permutation leaves the vector unchanged, so it is exchangeable. The ties require the conservative inclusive-rank argument rather than a distinct-score rank equality.

24. 정확한 순위와 배열 위치Exact rank and array position

점수가 원 순서 4,1,3,2이고 n=4,α=1/5입니다. k,문턱,정렬 배열에서 읽을 위치를 쓰세요.

Scores appear as four, one, three and two. With n four and alpha one-fifth, give k, threshold and the zero-based sorted-array position.

풀이와 확인할 이유Solution and explanation

k=ceil(5×4/5)=4입니다. 정렬은 1,2,3,4이며 네 번째 값 4를 문턱으로 씁니다. 0부터 시작하는 배열에서는 위치 k−1=3입니다. 원행 순서를 점수 순서와 혼동하거나 배열 위치 4를 읽으면 잘못됩니다.

Rank is four. Sort to one, two, three, four and use the fourth value, four. Its zero-based array position is three. Confusing original order or one-based ranks with array positions gives the wrong procedure.

25. 소수 올림의 한 칸 오류A one-rank error from floating-point rounding

n=9,α=7/10일 때 정확한 k를 구하세요. 일반 계산값 10×(1−0.7)=3.0000000000000004에 올림을 적용하면 왜 다른가요?

For n nine and alpha seven-tenths, find exact k. Why does taking a ceiling of the binary64 value 3.0000000000000004 give another result?

풀이와 확인할 이유Solution and explanation

정확한 식은 10×3/10=3이라 k=3입니다. 근삿값은 3보다 아주 조금 커서 올림이 4입니다. 수학적 목표를 바꾼 것이 아니라 표시 계산의 오차가 경계 판정을 바꾼 것입니다. 실습은 α의 원분수로 정수 순위를 결정합니다.

Exact multiplication gives three, so k is three. The approximate value is slightly above three and its ceiling is four. Numerical error changed a boundary decision rather than the intended statistical target. The lab uses the original rational alpha to determine the rank.

26. 고작 네 점수로 90%를 요구하면Requesting ninety percent from four scores

보정 점수 1,2,3,4에 n=4,α=1/10입니다. 문턱을 4로 두는 대신 무엇을 해야 하며 회귀 집합은 어떻게 되나요?

With calibration scores one through four and alpha one-tenth, what replaces threshold four, and what is the regression set?

풀이와 확인할 이유Solution and explanation

k=ceil(5×9/10)=5라 실제 보정 순위를 넘어섭니다. 문턱은 수학적 +∞이고 정의된 예측 중심의 회귀 집합은 모든 실수입니다. 최대값을 반복하면 가장 큰 새 순위를 빠뜨릴 수 있는 확률 1/5이 목표 1/10보다 크므로 원래 보장을 주지 못합니다.

Rank five exceeds the four observed scores, so use mathematical positive infinity and the whole real line around a defined predictor. Repeating the finite maximum can miss the largest augmented rank with probability one-fifth, greater than the desired one-tenth.

27. 90% 유한 문턱의 최소 nMinimum n for a finite ninety-percent threshold

일반 split-Conformal 순위 규칙에서 목표 90%의 문턱이 유한할 수 있으려면 n이 적어도 얼마인가요? 경계를 포함해 설명하세요.

Under the basic split-conformal rank rule, how many calibration scores are needed for a potentially finite ninety-percent threshold? Include the boundary.

풀이와 확인할 이유Solution and explanation

α=1/10이고 유한 조건은 α≥1/(n+1)이므로 n+1≥10,즉 n≥9입니다. n=9에서는 k=ceil(10×9/10)=9라 최대 보정 점수가 문턱입니다. 더 많은 관측이 자동으로 좁고 좋은 구간이나 교환가능성을 보장하는 것은 아닙니다.

Require one-tenth at least one divided by n plus one, giving n at least nine. At nine, rank nine uses the calibration maximum. More observations alone do not guarantee narrow intervals or exchangeability.

28. 경계 포함과 결측 분모Inclusive boundaries and missing-label denominators

중심 70,문턱 6의 구간에 Y=64,76,77,결측 네 질의가 있습니다. 정의된 구간 수,평가 가능한 수,경험 피복,평균 폭을 구하세요.

At center seventy and threshold six, four queries have outcomes sixty-four, seventy-six, seventy-seven and missing. Find defined interval count, scored count, empirical coverage and mean width.

풀이와 확인할 이유Solution and explanation

구간은 모두 [64,76]으로 정의되어 4개이고 폭은 모두 12점입니다. 라벨이 있는 3개 중 경계 64,76의 2개가 포함되므로 경험 피복은 2/3입니다. 결측을 실패나 성공으로 넣지 않습니다. 평균 폭의 분모 4와 피복 분모 3을 따로 공개해야 합니다.

All four intervals are defined with width twelve. Of three labeled queries, the inclusive endpoints sixty-four and seventy-six are covered, giving coverage two-thirds. Missing labels are neither successes nor failures. Report the width denominator four separately from coverage denominator three.

29. 동률의 보수적 피복Conservative coverage with ties

보정 3개와 새 점수가 모두 0이며 α=1/2입니다. k,문턱,피복을 구하고 서로 다른 점수에서의 추가 상한과 비교하세요.

All three calibration scores and the future score are zero; alpha is one-half. Find rank, threshold and coverage, then compare the distinct-score upper bound.

풀이와 확인할 이유Solution and explanation

k=ceil(4×1/2)=2,문턱은 0이고 새 점수도 포함되어 피복은 1입니다. 하한 1/2는 만족하지만 서로 다른 점수에서의 1/2+1/4=3/4 상한보다 큽니다. 동률이 있는 이 법칙에 그 상한을 그대로 적용하지 않습니다.

Rank two selects zero and always includes the new zero score, giving coverage one. The lower target one-half holds, but one exceeds the distinct-score upper bound three-quarters. That upper bound cannot be carried over unchanged to this tied law.

30. 보정 점수를 외운 규칙A rule memorizing calibration outcomes

보정 4행·α=1/5이고 연속 X와 이진 Y의 독립 자료입니다. 보정 X에는 관측 Y를 출력하고 새 X에는 2를 출력하는 규칙을 보정 라벨로 만들었습니다. 보정 잔차 0의 구간이 왜 실패하나요?

With four calibration rows and alpha one-fifth, consider IID continuous X and binary Y. A rule memorizes calibration outcomes at their inputs and predicts two at unseen inputs. Why do its zero-residual intervals fail?

풀이와 확인할 이유Solution and explanation

새 X가 이전 입력과 정확히 같을 확률은 0이므로 새 예측은 거의 확실히 2입니다. 보정 잔차가 모두 0이라 문턱도 0인 집합 {2}는 실제 0·1 결과를 전혀 포함하지 못합니다. 보정·새 점수의 대칭성을 깨뜨린 원인은 보정 라벨로 점수 규칙을 만들었다는 것이며 원자료의 독립성만으로 고쳐지지 않습니다.

A new continuous input is almost surely unseen, so its prediction is two. Zero calibration residuals produce the singleton set containing two, which never covers a binary outcome. Fitting the score rule on calibration labels broke the calibration/future score symmetry; IID raw observations do not repair that leakage.

31. 서로 다른 점수의 순위 증명The rank argument with distinct scores

훈련을 조건으로 n개 보정 점수와 새 점수가 교환가능하고 거의 확실히 모두 다릅니다. k≤n에서 포함 확률이 k/(n+1)인 이유를 설명하세요.

Conditional on training, n calibration scores and one future score are exchangeable and almost surely distinct. Explain coverage k divided by n plus one for k at most n.

풀이와 확인할 이유Solution and explanation

새 점수의 전체 순위는 대칭성으로 1부터 n+1까지 균등합니다. 보정의 k번째 값 이하라는 사건은 새 순위가 k 이내라는 사건과 같으므로 확률은 k/(n+1)입니다. k를 올림으로 고르면 목표 하한을 만족합니다. 특정 보정 표까지 조건으로 고정한 개별 피복 하한을 이 식이 자동 보장하지는 않습니다.

The new augmented rank is uniform by symmetry. Being at most the kth calibration value is equivalent to having augmented rank at most k, with probability k divided by n plus one. The ceiling ensures the target lower bound. This does not automatically remain a coverage bound after fixing the observed calibration table.

32. 네 봉투의 정확 피복Exact coverage for four envelopes

점수 1,2,3,4 중 새 관측을 균등 선택하고 남은 3개로 α=1/4 보정합니다. 네 경우의 포함과 전체 피복을 구하세요.

Choose a future score uniformly from one through four and calibrate on the other three at alpha one-quarter. Find inclusion in every case and total coverage.

풀이와 확인할 이유Solution and explanation

k=3입니다. 새 점수가 1,2,3이면 남은 최대값 4 이하라 포함됩니다. 새 점수 4이면 남은 최대값 3을 넘어 탈락합니다. 각 확률 1/4이므로 전체 피복은 3/4입니다. 이는 지정한 봉투 법칙의 결과이며 실제 원자료 선택 법칙의 증명이 아닙니다.

Rank is three. Future scores one, two and three are below the remaining maximum four and cover; future four exceeds the remaining maximum three and fails. Equal weights give coverage three-quarters. This verifies the declared envelope law, not the factual-source sampling law.

33. 분류 후보 점수의 방향The direction of binary candidate scores

사건 1 확률 p=0.1,문턱 q=0.2입니다. 클래스 0과 1의 점수·포함을 각각 쓰세요.

With event-one probability 0.1 and threshold 0.2, give each binary candidate’s score and membership.

풀이와 확인할 이유Solution and explanation

클래스 0 확률은 0.9라 점수는 1−0.9=0.1입니다. 클래스 1 점수는 1−0.1=0.9입니다. 따라서 집합은 {0}입니다. 새 관측의 실제 라벨을 몰라도 두 후보를 가정해 계산할 수 있습니다.

Candidate zero has probability 0.9 and score 0.1; candidate one has score 0.9. Only zero passes, so the set is zero-only. Compute both candidate scores without observing the future label.

34. 빈 집합은 결측이 아니다An empty set is not missingness

p=0.5,q=0.2와 p=0.5,q=0.8의 집합·크기를 비교하세요. 첫 경우에서 y=1을 관측하면 피복 평가에 어떻게 넣나요?

Compare sets and sizes at p one-half with thresholds 0.2 and 0.8. How is an observed label one scored in the first case?

풀이와 확인할 이유Solution and explanation

두 후보 점수는 모두 0.5입니다. 첫 집합은 ∅,크기 0이고 둘째는 {0,1},크기 2입니다. 첫 경우는 정의된 예측이며 관측 라벨이 포함되지 않아 피복 실패로 셉니다. 결측으로 빼면 실패를 숨기며 피복 분모가 잘못됩니다.

Both candidate scores are one-half. The first set is empty with size zero; the second contains both labels with size two. The first is a defined prediction and its observed label is not covered. Excluding it as missing would conceal a failure and corrupt the coverage denominator.

35. 평균 후보 수 1의 두 모습Two ways to average one candidate

모든 관측이 단일 클래스인 경우와, 절반은 빈 집합·절반은 두 클래스인 경우의 평균 집합 크기를 비교하고 왜 같은 지표만으로 충분하지 않은지 설명하세요.

Compare mean set size when every set is a singleton with half empty and half containing both labels. Why is mean size alone insufficient?

풀이와 확인할 이유Solution and explanation

두 경우 모두 평균 크기 1입니다. 그러나 빈 집합이 있는 후자는 라벨이 있으면 그 행의 피복을 반드시 실패하고, 두 클래스 행은 항상 포함합니다. 분포·빈 집합 비율·라벨 있는 피복·업무 후속 비용을 함께 봐야 합니다. 평균 크기 하나가 같은 절차라는 뜻은 아닙니다.

Both average one label, yet their behavior differs. Labeled empty sets always fail coverage, while both-label sets always cover. Inspect the size distribution, empty-set fraction, labeled coverage and workflow cost, not just one mean.

36. 주변 90%와 집단 0%Ninety percent marginal with zero in a subgroup

가상 집단 A 비중 0.9·피복 1,B 비중 0.1·피복 0입니다. 전체 피복을 구하고 이 표가 어떤 추론을 반박하는지 쓰세요.

Constructed groups have masses 0.9 and 0.1 and coverage one and zero. Find marginal coverage and the inference this table refutes.

풀이와 확인할 이유Solution and explanation

전체는 0.9×1+0.1×0=0.9입니다. 주변 하한만으로 모든 집단의 같은 하한을 얻는다는 추론을 반박합니다. 특정 실제 Conformal 실행의 관측치라고 주장한 표는 아니며, 추가 집단별 보장에는 그에 맞는 절차와 조건이 필요합니다.

Marginal coverage is 0.9. The table refutes deriving an identical bound for every group from a marginal bound alone. It is a logical constructed example, not claimed as an observed conformal run. Group guarantees need an appropriate procedure and assumptions.

37. 분모 0과 폭의 분모Zero coverage denominator and width denominators

집단에 원행 5개·정의된 구간 5개가 있지만 라벨이 모두 결측입니다. 경험 피복과 평균 폭은 각각 어떤 상태일 수 있나요?

A group has five original rows and five defined intervals, but no observed labels. What can be said about empirical coverage and mean width?

풀이와 확인할 이유Solution and explanation

라벨 있는 평가 수가 0이라 경험 피복은 미정의입니다. 그러나 구간 양끝이 정의되어 있으므로 평균 폭은 계산할 수 있습니다. 하나라도 수학적으로 무한 구간이면 기본 산술평균 폭도 무한대일 수 있습니다. 원행 5·예측 5·평가 0을 함께 공개합니다.

Empirical coverage is undefined because no labels can be scored. Width can still be computed from defined intervals; an unbounded interval can make its arithmetic mean infinite. Report all three counts: five originals, five predictions and zero scored labels.

38. 분포 변화는 올바른 코드를 이길 수 있다Distribution change can defeat correct code

보정 점수는 모두 0이고 새 점수는 항상 1입니다. n=4,α=1/5에서 문턱과 새 포함률을 구하고 왜 정리와 모순이 아닌지 설명하세요.

All calibration scores are zero and the future score is always one. At n four and alpha one-fifth, find threshold and future coverage. Why is this no contradiction?

풀이와 확인할 이유Solution and explanation

k=4,문턱 0이므로 새 점수 1은 들어가지 않아 피복은 0입니다. 점수의 결합 법칙이 위치에 따라 달라 교환가능성이 없습니다. 정리의 가정이 성립하지 않으므로 하한과 모순이 아니며 정렬 코드의 정확성만으로 고칠 수 없습니다.

Rank four selects zero and the future one is excluded, giving coverage zero. Scores have different laws by position, violating exchangeability. A theorem with a failed assumption has not been contradicted; correct sorting alone cannot fix the shift.

39. 새 입력의 비중을 빠뜨리지 않기Do not omit the new input’s weight

알려진 밀도비 w로 가중 Conformal을 읽고 있습니다. 보정 점수에 w_i/Σw_j만 주고 새 입력 몫을 생략해도 일반 식과 같나요?

In a known-density-ratio weighted conformal construction, may calibration weights be normalized using only their own sum, omitting the future input mass?

풀이와 확인할 이유Solution and explanation

일반적으로 같지 않습니다. 분모는 보정 비중 합+w(x)이고 새 입력 비중 w(x)/분모를 +∞에 놓습니다. 이 몫을 생략하면 다른 분위수 법칙입니다. 알려진 비중·조건부 Y|X 불변·절대연속성 같은 조건도 함께 필요하며 임의 분석 비중과 구분해야 합니다.

Not generally. Normalize by calibration weight sum plus w(x), and place the future-input share at positive infinity. Omitting it changes the quantile law. Known ratios, invariant Y given X and absolute continuity are substantive conditions, distinct from arbitrary analysis weights.

40. 비중이 있다고 자동 보장은 아니다Weights do not automatically create a guarantee

Brier 평가에 표본 비중을 썼고 확률이 [0,1]에 있습니다. 이것만으로 가중 Conformal과 집단별 조건부 피복을 보장했다고 말할 수 있나요?

Brier evaluation uses sample weights and predictions lie in the unit interval. Does this establish weighted conformal or subgroup conditional coverage?

풀이와 확인할 이유Solution and explanation

아닙니다. 가중 평균 성적은 선언한 비중에 대한 기술값입니다. 가중 Conformal의 점수 비중·새 입력의 무한대 질량·분포 변화 조건과 같다는 근거가 필요하고, 주변 피복은 집단별 조건부 보장과도 다릅니다. [0,1] 범위는 확률의 허용 범위일 뿐 교정이나 교환가능성의 증명이 아닙니다.

No. A weighted mean score describes the declared weights. A weighted-conformal theorem requires its own score measure, future infinity mass and distributional conditions; marginal coverage also differs from subgroup conditional coverage. The unit interval is a probability range, not proof of calibration or exchangeability.

41. 국가의 4/4를 어떻게 읽을까How should country coverage four out of four be read?

국가 보정 n=4,α=1/5에서 문턱 3.4743234028%p입니다. 순위·폭·시험 4/4의 의미를 설명하세요.

Country calibration n is four, alpha one-fifth and threshold about 3.4743234028 percentage points. Explain the rank, width and meaning of four covered test countries.

풀이와 확인할 이유Solution and explanation

k=4이고 공통 폭은 문턱의 2배 약 6.9486468056%p입니다. 시험 4/4는 작은 관측 표의 기술값이며 모든 국가·미래 시점 100% 보장의 증거가 아닙니다. 수정 빈티지와 국가 선정·교환가능성 조건도 별도로 남습니다.

Rank is four and common width twice the threshold, about 6.9486468056 percentage points. Four out of four describes a small observed test sample, not perfect future-country coverage. Revised vintages, country selection and exchangeability remain separate issues.

42. 개인 사례의 같은 숫자 603The two different counts of 603 in the person case

개인 원행 3613,결측 603,시험 760,포함 603입니다. 두 603이 같은 집합인지와 시험 피복 분모를 설명하세요.

There are 3613 original people, 603 missing outcomes, 760 labeled tests and 603 covered tests. Are the two counts of 603 the same set?

풀이와 확인할 이유Solution and explanation

원 결측 603행과 관측된 시험 760행 중 포함된 603행은 다른 집합입니다. 경험 피복은 603/760≈0.79342105이고, 결측을 성공이나 실패로 넣지 않습니다. 모든 원행과 예정 역할을 보존해 이 선택을 드러내야 합니다.

The 603 missing native outcomes differ from the 603 covered observations among 760 labeled tests. Empirical coverage is 603/760, about 0.79342105. Missing labels are neither covered successes nor failures; retain all original records and planned roles to expose selection.

43. 임금 구간의 단위Units of the wage interval

원 ln 임금의 구간 폭이 0.99265560입니다. 이를 0.99원 또는 0.99센트라고 적어도 되나요? 양끝을 지수 변환하면 어떤 대상이 되나요?

A native log-wage interval has width about 0.99265560. May it be called that many currency units? What do exponentiated endpoints target?

풀이와 확인할 이유Solution and explanation

안 됩니다. 폭은 원 로그 임금 단위입니다. 지수 변환한 양끝은 exp(lwage76)라는 변환 결과의 구간을 만들고 로그 단위의 대칭성이 금액 단위의 대칭성을 뜻하지 않습니다. 원시 wage76와 동일한 변수인지에는 기존 절단·변환 정의 확인이 필요합니다.

No. It is a width in native log-wage units. Exponentiated endpoints form an interval for exp(lwage76), generally asymmetric on that scale. Equating that transformed response to raw wage76 requires checking existing trimming and transformation definitions.

44. 고객 집합의 분모를 검산하기Audit customer-set denominators

시험 788개 중 빈 집합 81,단일 클래스 707,포함 성공 610입니다. 평균 크기와 피복,단일 클래스 오답 수를 구하세요.

Among 788 tests there are 81 empty sets, 707 singletons and 610 coverage successes. Find mean size, coverage and the number of wrong singletons.

풀이와 확인할 이유Solution and explanation

두 클래스 집합은 없으므로 평균 크기는 707/788≈0.89720812입니다. 피복은 610/788≈0.77411168입니다. 단일 클래스 오답은 707−610=97개이고 전체 실패 178개는 빈 집합 81+오답 97입니다. 빈 집합을 분모에서 빼면 보고한 절차의 피복이 아닙니다.

With no doubletons, mean size is 707/788, about 0.89720812. Coverage is 610/788, about 0.77411168. There are 97 wrong singletons; total failures are 81 empty sets plus 97 wrong singletons. Removing empties from the denominator changes the reported procedure.

45. 자르기 전 손실과 BrierUnclipped training loss versus Brier

고객 선형 예측을 ridge로 맞춘 뒤 [0,1]로 잘랐습니다. 원 최소 이차 목적함수를 자른 확률의 Brier라고 불러도 될까요?

A ridge linear customer predictor is clipped afterward into the unit interval. Is its minimum quadratic training objective the Brier score of the clipped probabilities?

풀이와 확인할 이유Solution and explanation

아닙니다. 적합 기준은 자르기 전 선형 예측의 반 평균제곱손실에 기울기 규제를 더한 값입니다. Brier는 자른 p와 라벨의 제곱 차이 평균이며 규제 항도 없습니다. 정의·예측 단계·분모를 맞추어 따로 계산해야 합니다.

No. The fitted criterion uses half mean squared errors of the unclipped linear predictions plus a slope penalty. Brier uses clipped probabilities, lacks that penalty and does not include the half factor. Match definitions, prediction stages and denominators separately.

46. 구간 점수의 손계산Calculate an interval score by hand

α=1/5인 S37 구간 점수에서 [−2,2],y=3과 [−4,4],y=3을 비교하세요. 좁은 구간이 항상 좋나요?

Using the interval score in section thirty-seven at alpha one-fifth, compare intervals [−2,2] and [−4,4] when the outcome is three. Is narrower always better?

풀이와 확인할 이유Solution and explanation

첫 폭 4에 바깥 거리 1의 벌점 2/α=10을 더해 14입니다. 둘째는 폭 8,바깥 벌점 0이라 8입니다. 이 관측에서는 더 넓은 구간 점수가 작습니다. y=0이라면 좁은 구간이 더 좋으므로 포함·폭·놓친 거리를 함께 평가해야 합니다.

The first scores width four plus outside penalty ten, totaling fourteen. The second scores eight with no outside penalty. Wider is preferable for this outcome, while the narrow interval would be preferable at outcome zero. Evaluate width, inclusion and miss severity jointly.

47. 시험 라벨을 바꿨을 때 유지되는 것What stays fixed when test labels change?

원자료 사본에서 관측된 시험 y만 바꾸고 X·역할·훈련·보정은 유지했습니다. 계수·문턱·집합과 시험 피복 중 무엇이 변해야 하나요?

Change only observed test labels in a separate copy, keeping features, roles, training and calibration fixed. Which of coefficients, threshold, sets and test coverage should respond?

풀이와 확인할 이유Solution and explanation

학습 계수·보정 문턱·예측 집합은 유지되어야 합니다. 시험 피복과 시험 손실은 새 가상 라벨에 따라 달라질 수 있습니다. 성적까지 불변이어야 한다고 요구하면 라벨을 평가에 쓰지 않는 버그를 놓칠 수 있습니다. 가상 사본의 결과를 원 관측 성적과 합치지 않습니다.

Coefficients, calibration thresholds and prediction sets must remain fixed. Test coverage and loss may change with the hypothetical labels. Demanding invariant scores too could hide a bug that ignores evaluation labels. Keep hypothetical-copy results separate from factual performance.

48. 해시 분할이 보장하지 않는 것What a hash split does not guarantee

원 ID 해시로 역할을 나눴고 모든 계산을 정확히 재현했습니다. 이것이 나라·고객의 독립성,교환가능성,정책 인과효과를 증명하나요?

Roles are assigned by identity hashes and every calculation reproduces exactly. Does this prove independence, exchangeability or causal policy effects?

풀이와 확인할 이유Solution and explanation

아닙니다. 해시는 재현 가능한 역할 규칙이고 정확 계산은 그 규칙의 산술 결과를 확인합니다. 관측의 공동 법칙과 미래 대상 전이,결측 선택,인과효과는 별도 근거가 필요합니다. 계산 검증과 통계적·인과적 적용 조건을 다른 칸에 보고해야 합니다.

No. Hashing defines reproducible roles and exact computation verifies their arithmetic consequences. Joint laws, future transport, missingness selection and causal effects need additional evidence. Report implementation checks separately from statistical and causal application conditions.

49. 목표와 관측 성적이 다를 때When nominal and observed coverage differ

실제 고객 피복이 약 77.41%로 목표 80%보다 낮습니다. 같은 시험 자료에서 α를 바꾸어 80%를 넘긴 후 원래 독립 시험이라고 보고해도 되나요?

Actual customer coverage is about 77.41 percent against an eighty-percent target. May alpha be tuned on that same test until it exceeds eighty and then reported as the original independent test?

풀이와 확인할 이유Solution and explanation

안 됩니다. 시험 성적이 설정 선택에 들어가 원래의 역할이 바뀝니다. 고정 설정의 관측 성적을 보고하고 유한 표본 변동과 미검증 교환가능성·선정·모형 문제를 구별해야 합니다. 수정한 절차는 선택에 사용하지 않은 새 평가나 재사용을 정당화하는 별도 방법이 필요합니다.

No. Test performance has entered parameter selection, changing its role. Report the fixed baseline and distinguish finite-sample variation from unverified exchangeability, selection and model issues. A modified procedure needs fresh evaluation not used for selection or another justified reuse method.

50. 예측 규칙과 식별을 구분하기Separate a predictor convention from identification

λ=0·랭크 부족에서 자유 좌표를 0으로 둔 대표를 예측 규칙으로 고정했습니다. Conformal에 쓸 규칙이 정해졌다는 사실은 모든 계수·질의 예측이 유일하다는 뜻인가요?

At zero ridge with deficient rank, fix the RREF representative having free coordinates zero as the predictor. Does a fixed rule imply all coefficients and query predictions are identified?

풀이와 확인할 이유Solution and explanation

아닙니다. 이는 실행할 한 함수를 정한 것이며 다른 최소해의 계수와 질의 예측이 같다는 주장이 아닙니다. 영공간과 질의 불변성을 별도로 확인합니다. 고정 함수에 대한 Conformal 순위 논증에는 추가 교환가능성 조건이 필요하고,계수의 경제적 인과 해석은 또 다른 문제입니다.

No. It defines one executed function without establishing equality across all minimizing coefficients or query predictions. Inspect nullspace and query invariance separately. Conformal reasoning for the fixed function still needs exchangeability, and economic causal interpretation is another question.

51. 한 행 검산의 순서Order a one-row audit

시험 성장률을 읽기 전에 국가 구간의 중심과 문턱을 만들려면 어떤 표를 어떤 순서로 읽어야 하나요?

Which tables should be read, and in what order, to construct a country interval before examining its test growth?

풀이와 확인할 이유Solution and explanation

원 X·역할을 먼저 확인하고 훈련 평균·범위·계수로 중심을 계산합니다. 보정 네 행의 잔차와 순위로 문턱을 정한 뒤 중심±문턱을 만듭니다. 마지막에 시험 y를 읽어 포함 여부를 평가합니다. 시험 y로 중심·문턱을 다시 고르면 원 절차가 아닙니다.

Check original features and roles, then use training transforms and coefficients for the center. Obtain the threshold from calibration residuals and the adjusted rank. Form center plus or minus threshold before checking test inclusion. Refitting either quantity from that test outcome changes the procedure.

52. 서로 다른 재현 방식Different arithmetic in reproduction

Python 원분수와 R의 짧은 소수 표기가 다릅니다. 무엇을 먼저 비교해야 하며 모든 문자열의 동일성을 요구해도 되나요?

Python rational strings differ from R decimal displays. What should be compared first, and must all strings match?

풀이와 확인할 이유Solution and explanation

원 ID·행 수·역할·결측·점수 순위·집합을 먼저 맞춥니다. 수치는 선언한 허용오차로 비교하되 정확 원분수는 따로 보존합니다. R의 수치 QR·포함 허용오차와 제한된 α 입력 범위를 적어야 합니다. 동일 문자열 요구도 성적만 비교하는 요구도 충분하지 않습니다.

Align identities, counts, roles, missingness, score ranks and sets first. Compare numerical results under the declared tolerance while preserving exact fractions separately. State R’s numerical QR, membership tolerance and restricted alpha syntax. Neither identical strings nor similar aggregate performance alone is an adequate criterion.

53. 작은 비중의 손실Loss with a tiny positive weight

양수 정규화 비중이 화면에서 0으로 보입니다. 여기에 유한 양수 로그 손실을 곱할 때 원 항을 0이라고 해도 되나요?

A positive normalized weight displays as zero. May its product with a finite positive log loss be declared mathematically zero?

풀이와 확인할 이유Solution and explanation

안 됩니다. 수학적 항은 양수이고 최종 합은 표시 가능할 수도 있습니다. 비중을 먼저 0으로 투영하면 그 정보를 잃습니다. 민감 경로는 유한 컴퓨터 로그 인자의 정확 이진 값과 원 비중을 곱하고 합친 뒤 마지막에 표시합니다. 로그 실수 자체는 여전히 근사입니다.

No. The term is positive, and the final sum may be representable. Projecting the coefficient to zero first loses information. A sensitive path combines exact weights with the finite computer logarithm’s exact binary value before final projection. The real logarithm remains approximate.

54. 무한과 미정의Infinity versus undefined

보정 n=0에서 문턱이 +∞이고 시험 라벨도 없습니다. 회귀 구간과 경험 피복을 각각 어떻게 보고하나요?

With no calibration scores the threshold is infinite, and no test labels are observed. How are a regression interval and empirical coverage reported?

풀이와 확인할 이유Solution and explanation

정의된 중심이 있으면 예측 구간은 전 실수이며 폭은 +∞입니다. 라벨 분모가 0이므로 경험 피복은 미정의입니다. 구간의 무한성과 피복 미정의는 서로 다른 양이며 0%나 100%로 채우지 않습니다. 중심 자체가 없으면 예측도 별도 미정의입니다.

Given a defined center, the prediction interval is the whole real line with infinite width. Empirical coverage is undefined because the label denominator is zero. These are different quantities and should not be filled with zero or one hundred percent. An absent center makes the prediction separately undefined.

55. 좋은 점수 규칙과 좋은 모델A proper rule versus a good model

Brier가 엄밀 적정 점수이므로 현재 자른 ridge 확률은 참 확률이라고 결론내릴 수 있나요?

Since Brier is strictly proper, may the current clipped ridge probabilities be declared the true probabilities?

풀이와 확인할 이유Solution and explanation

아닙니다. 엄밀 적정성은 참 확률 θ 아래 기대 점수의 유일 최소자가 θ라는 규칙의 성질입니다. 유한 자료·제한 모형·추정 오차가 있는 현재 학습기가 그 최소자를 학습했다는 결론은 아닙니다. 별도 확률 진단과 평가 설계가 필요합니다.

No. Strict propriety identifies the unique expected-score minimizer under the true probability. It does not establish that a finite-sample learner in a restricted model class reached that minimizer. Probability diagnostics and a suitable evaluation design remain necessary.

56. 영상으로부터 남길 세 문장Three statements to retain from the video

예측 함수 고정,시험값 미사용,주변 피복이라는 세 표현을 각 한 문장으로 설명하세요.

Explain a fixed predictor, unused test outcomes and marginal coverage in one sentence each.

풀이와 확인할 이유Solution and explanation

훈련 자료로 정한 함수를 보정·시험 전에 고정합니다. 보정 점수로 문턱을 정하고 시험 y를 모르면서 후보 포함을 판단합니다. 교환가능성 아래 무작위 자료와 새 관측을 함께 평균낸 피복이며 모든 x·개인의 조건부 피복은 아닙니다.

Fix the training-based predictor before calibration and test. Derive a threshold from calibration scores and determine candidate membership without the test outcome. The guarantee averages over the random data and new observation under exchangeability; it is not coverage conditional on every feature value or person.

57. 가중 읽기의 조건 찾기Locate the conditions in weighted reading

관측 가중치 열이 존재하면 알려진 밀도비 가중 Conformal의 피복 정리를 그대로 적용해도 되나요?

Does the mere presence of an observation-weight column justify a known-density-ratio weighted-conformal theorem?

풀이와 확인할 이유Solution and explanation

안 됩니다. 목표와 기준 X 분포 사이의 밀도비,절대연속성,불변한 Y|X 및 새 입력의 무한 질량을 포함한 순위 구성 등을 확인해야 합니다. 임의 중요도·표본 비중은 그 밀도비와 같지 않을 수 있습니다. 이 장의 실제 기본 집합은 단위 비중의 비가중 방법입니다.

No. Check the covariate density ratio, absolute continuity, invariant conditional outcomes and the weighted rank construction including new-point infinity mass. Arbitrary importance or sample weights need not equal that ratio. The factual baseline here uses an unweighted set procedure.

58. 국가 미니 프로젝트의 실행 가능 목표A feasible country mini-project target

보정 네 나라로 90% 목표를 요구하자 +∞가 나왔습니다. 계산 오류라고 지우는 대신 무엇을 보고·계획해야 하나요?

A ninety-percent target with four calibration countries yields infinity. What should be reported and planned instead of deleting it as a bug?

풀이와 확인할 이유Solution and explanation

k=ceil(5×0.9)=5가 n+1이므로 규칙대로 무한 문턱임을 보고합니다. 더 낮은 목표를 시험 보고 고르지 않고 목적에 맞춰 사전 정하거나,유효한 보정 자료를 늘리는 설계를 제안합니다. 더 많은 자료도 교환가능성이나 발표 빈티지 문제를 자동 해결하지 않습니다.

Report rank five, equal to n plus one, and the required infinite threshold. Select an application-appropriate target in advance or propose a design with more valid calibration data rather than choosing from test performance. More observations alone do not settle exchangeability or release-vintage issues.

59. 기업 행동의 인과효과Causal effects of company actions

예측 집합이 {1}인 고객에게 연락하면 이탈이 줄어든다고 현재 자료만으로 말할 수 있나요?

Does a singleton churn set containing label one establish that contacting that customer reduces churn?

풀이와 확인할 이유Solution and explanation

아닙니다. 집합은 고정 점수·문턱의 예측 결과이고 연락 여부의 잠재 결과 차이를 추정한 것이 아닙니다. 연락 효과와 비용을 평가하려면 별도 실험 또는 정당한 인과 설계가 필요합니다. 예측 위험·행동 효과·의사결정 비용을 분리해 보고합니다.

No. The set is a predictive output under fixed scores and a threshold, not an estimate of a treatment contrast for contact. Assessing contact effects requires an experiment or another justified causal design. Separate predicted risk, action effects and decision costs.

60. 한 문장의 과장 고치기Repair an overclaimed report sentence

“해시 분할 후 시험 피복 80%를 얻었으므로 모든 미래 고객에게 80% 보장하고 연락의 효과도 확인했다”를 정확한 보고로 고치세요.

Repair: “After a hash split we observed eighty-percent coverage, guaranteeing eighty percent for every future customer and establishing the effect of contact.”

풀이와 확인할 이유Solution and explanation

“선언한 원자료·분할·설정에서 관측 시험 라벨의 경험 피복을 보고한다. 해시 분할은 교환가능성·미래 전이 또는 각 고객 조건부 피복을 입증하지 않는다. 연락 효과는 추정하지 않았다.” 실제 고객 기본 성적은 610/788≈77.41%이므로 원 관측 숫자도 그대로 적어야 합니다.

“We report empirical coverage among observed test labels under the declared data, split and settings. Hashing establishes neither exchangeability, future transport nor individual conditional coverage. Contact effects were not estimated.” For this factual customer baseline retain the actual figure, 610/788 or about 77.41 percent, rather than substituting eighty.

자료와 출처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