ML-13 · MACHINE LEARNING

중첩 교차검증·모형 선택의 불확실성Nested CV and model-selection uncertainty

연습 시험과 최종 시험에서 실제 중앙값 파이프라인·중첩 선택·위험의 해석까지From practice and final exams to actual median pipelines, nested selection and risk interpretation

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

학부 심화 · 선택Advanced undergraduate · optional

연습시험으로 공부법을 고르면 누가 최종시험을 보나Who gives the final exam after practice chooses a study method?

수학 공부법 두 가지를 비교한다고 해 봅시다. 연습시험을 보며 더 잘 맞히는 방법을 고르는 것은 자연스럽습니다. 그런데 그 연습시험의 최고 점수를 곧바로 “새 시험에서도 받을 점수”라고 발표하면, 시험지를 여러 번 들여다본 효과까지 공부법의 실력으로 셀 수 있습니다. 모형의 학습과 공부법의 선택을 평가 대상 안에 함께 넣는 것이 이 장의 출발점입니다.

예측 모형에도 같은 세 층이 있습니다. 주어진 설정으로 숫자를 맞추는 적합, 여러 설정 중 하나를 고르는 선택, 그 선택 과정 전체를 새 관측으로 확인하는 평가입니다. 안쪽 교차검증은 설정을 고르고 바깥쪽 교차검증은 그 고르는 절차를 평가합니다. 마지막에는 모든 자료로 다시 적합할 수 있지만, 그 마지막 모형을 만들어 낸 자료가 새 시험지가 되는 것은 아닙니다.

실제 자료도 계속 사용합니다. 국가에서는 2024년의 관측 지표로 기대수명 80년 이상 여부를 구분하고, 개인에서는 원 1976년 임금 구분을, 기업에서는 원 이탈 표적을 예측합니다. 먼저 네 장의 작은 카드로 계산을 따라간 뒤 전체 자료의 접힘·분모·예측을 같은 방식으로 읽겠습니다.

Imagine comparing two ways of studying mathematics. Choosing a method using practice exams is sensible. Calling the best practice score your expected mark on a new exam also credits the advantage of repeatedly inspecting those practice questions. This chapter evaluates studying and choosing a study method as one procedure.

Prediction has three corresponding layers: fitting numbers under a configuration, selecting a configuration, and evaluating that entire selection process on held-out observations. Inner cross-validation chooses; outer cross-validation assesses the choosing procedure. You may subsequently refit with all observations, but the data used for that final refit do not become a new test.

We keep using real observations: 2024 country indicators and a life-expectancy class, native 1976 individual wages, and the original company churn target. Start with four small cards, then read the actual folds, denominators and predictions in exactly the same way.

학부 심화 · 선택Advanced undergraduate · optional

관측 하나·적합된 모형 하나·학습 절차 하나One observation, one fitted model and one learning procedure

관측 한 장을 z=(x,y)라고 쓰겠습니다. x는 결과를 구분하는 데 사용할 정보이고 y는 확인할 표적입니다. 자료 D로 이미 적합한 모형을 f_D라고 하면, 그 모형이 새로운 z에서 받을 손실을 생각할 수 있습니다. 이때 D는 고정하고 새 관측만 바뀝니다. 반대로 새로운 훈련 자료를 받을 때마다 모형을 고르는 절차 자체를 비교할 수도 있습니다. 그때에는 훈련 자료도 바뀌므로 다른 질문입니다.

아래 두 식에서 기대값 기호는 알려지지 않은 모집단 법칙에 대한 평균입니다. 이번 표의 유한 평균을 이 식의 정답이라고 선언하는 기호가 아닙니다. 첫 식은 주어진 적합 결과의 위험이고, 둘째 식은 훈련 크기 m인 자료에서 선택·적합을 수행하는 절차 A의 위험입니다. IID 표집과 새 관측의 독립성 같은 조건은 이후 교차검증과 연결할 때 따로 확인합니다.

R(fD)=EZ ⁣[ℓ(fD,Z)∣D],Rm(A)=EDm,Z ⁣[ℓ(A(Dm),Z)]R(f_D)=\mathbb{E}_{Z}\!\left[\ell(f_D,Z)\mid D\right],\qquad R_m(A)=\mathbb{E}_{D_m,Z}\!\left[\ell(A(D_m),Z)\right]

N개 자료를 K등분하면 한 바깥 적합에는 대략 N(K−1)/K개가 사용됩니다. 그 절차를 평가한 값과 N개 전부로 적합한 특정 모형의 미래 위험은 같은 대상으로 자동 변환되지 않습니다. 실제 보고서에는 표적·손실·관측 단위·훈련 크기·선택 규칙을 함께 적어 두세요.

Write one observation as z=(x,y): predictors and a target. For a model already fitted on D, ask how it will perform on a new observation while holding D fixed. Alternatively, compare a learning procedure that receives a new training dataset, selects a configuration and fits a model. The latter also varies the training sample.

The expectations below average under an unknown population law. They do not declare a finite table’s average to be that population answer. The first risk is conditional on the fitted data; the second evaluates a selection-and-fitting procedure A at training size m. Conditions such as IID sampling and independence of a new observation must be stated when connecting them to CV.

R(fD)=EZ ⁣[ℓ(fD,Z)∣D],Rm(A)=EDm,Z ⁣[ℓ(A(Dm),Z)]R(f_D)=\mathbb{E}_{Z}\!\left[\ell(f_D,Z)\mid D\right],\qquad R_m(A)=\mathbb{E}_{D_m,Z}\!\left[\ell(A(D_m),Z)\right]

Splitting N observations into K folds trains each outer fit on roughly N(K−1)/K observations. Its procedure-level assessment does not automatically become the future risk of a particular model refitted on all N. Record the target, loss, observational unit, training size and selection rule together.

학부 심화 · 선택Advanced undergraduate · optional

확률 예측의 채점표: 같은 Brier와 같은 질량A score sheet with the same Brier loss and analytical mass

이 장의 표적은 0 또는 1이고 모형의 답 p는 표적이 1일 확률입니다. Brier 손실은 (p−y)²입니다. 정답이 1인데 3/4를 제시하면 손실은 1/16이고, 정답이 0인데 같은 확률을 제시하면 9/16입니다. 숫자 3/4만 보지 말고 어떤 관측의 어떤 표적과 비교했는지 함께 보세요.

평균을 낼 때는 분석 질량 w를 사용합니다. 실제 세 사례에서는 모든 행의 질량을 1로 두므로 보통의 행 평균입니다. 일반 실습에서는 다른 질량도 넣을 수 있으며, 그 경우 분모는 행 개수 대신 총질량입니다. 손실식에 1/2을 붙인 다른 관례와 섞지 않습니다.

ℓ(pi,yi)=(pi−yi)2,R^=∑i∈Iwi(pi−yi)2∑i∈Iwi\ell(p_i,y_i)=(p_i-y_i)^2,\qquad \widehat R=\frac{\sum_{i\in I}w_i(p_i-y_i)^2}{\sum_{i\in I}w_i}

필요한 입력이나 표적이 관측되지 않은 행은 비교하는 모든 후보에서 같은 방식으로 제외합니다. 결측은 예측 실패를 0점으로 처리하는 표지가 아닙니다. 원행은 남기고, 사용한 ID와 총질량을 결과 옆에 기록하면 다른 사람들이 같은 대상을 평가했는지 확인할 수 있습니다.

Targets are zero or one and a prediction p is a probability of target one. Brier loss is (p−y)². Predicting three quarters when the target is one costs 1/16; the same probability against target zero costs 9/16. Read the observation and target alongside its probability.

Average using analytical mass w. Each actual case uses unit mass, so its score is an ordinary row average. The generic lab also allows unequal masses, in which case total mass replaces row count in the denominator. We use no extra one-half factor.

ℓ(pi,yi)=(pi−yi)2,R^=∑i∈Iwi(pi−yi)2∑i∈Iwi\ell(p_i,y_i)=(p_i-y_i)^2,\qquad \widehat R=\frac{\sum_{i\in I}w_i(p_i-y_i)^2}{\sum_{i\in I}w_i}

A missing required predictor or target excludes the row on the same common frame for every candidate. Missing is not a zero penalty. Retain the source row and report scored IDs and mass, so others can verify that comparisons assess the same observations.

학부 심화 · 선택Advanced undergraduate · optional

네 카드로 배우는 전처리·칸 확률·새 예측Four cards: preprocessing, cell probabilities and new predictions

카드의 X를 0, 2, 8, 10, 표적을 차례로 0, 0, 1, 1이라고 합시다. X의 훈련 중앙값 5를 기준으로 “5보다 큰가?”라는 새 구분을 만듭니다. 낮은 칸에는 음성 두 장, 높은 칸에는 양성 두 장이 들어갑니다. 각 표적 범주에 α=1을 더하면 낮은 칸의 확률은 1/4, 높은 칸은 3/4입니다.

이것은 X를 Y에 대한 중앙값 회귀로 맞춘 것이 아닙니다. X의 위치를 요약해 구분을 만들고, 그 구분 안에서 이진 확률을 학습하는 작은 파이프라인입니다. 중앙값과 두 칸의 확률이 모두 훈련에서 정해지며, α와 사용할 특징 번호는 미리 선언한 설정입니다.

훈련 카드 전체
ID원 X표적 YX>5
a000
b200
c811
d1011
p^c=sc+αmc+2α,p^unseen=s+αm+2α\widehat p_c=\frac{s_c+\alpha}{m_c+2\alpha},\qquad \widehat p_{\mathrm{unseen}}=\frac{s+\alpha}{m+2\alpha}

새 X=5는 엄격한 “보다 큼”을 만족하지 않으므로 낮은 칸에, X=6은 높은 칸에 들어갑니다. 새 관측을 예측하는 순간에 중앙값을 5.5로 바꾸면 앞서 적합한 파이프라인과 다른 계산이 됩니다. 훈련에 없던 범주 칸에는 전체 훈련의 평활화 확률을 사용합니다.

Take four cards with X values zero, two, eight and ten, and targets zero, zero, one and one. Their training median is five. The constructed question “greater than five?” puts two negatives in the lower cell and two positives in the upper cell. Adding alpha one per target class gives probabilities one quarter and three quarters.

This is not median regression of Y on X. It summarizes the location of X, constructs a bin, and learns a binary probability inside each bin. Both the median and cell probabilities come from training, while alpha and predictor indices are declared configurations.

All training cards
IDNative XTarget YX>5
a000
b200
c811
d1011
p^c=sc+αmc+2α,p^unseen=s+αm+2α\widehat p_c=\frac{s_c+\alpha}{m_c+2\alpha},\qquad \widehat p_{\mathrm{unseen}}=\frac{s+\alpha}{m+2\alpha}

A new X of five belongs to the lower cell because the comparison is strict; six belongs to the upper cell. Changing the median to 5.5 while predicting a query would change the fitted pipeline. An unseen categorical cell uses the declared smoothed global training probability.

학부 심화 · 선택Advanced undergraduate · optional

중앙값은 왜 그 위치인가: 질량과 절대편차Why that median? Mass and absolute deviations

중앙값은 작은 순서로 놓았을 때 가운데에 놓이는 값이라는 설명부터 시작할 수 있습니다. 질량이 있으면 단순히 행 두 개를 세는 대신 누적 질량을 셉니다. 이 장은 총질량의 절반에 처음 도달한 값을 사용하되, 정확히 절반에서 멈추면 그 값과 다음 값의 중간을 택합니다. 같은 값이 반복되어도 이 규칙은 그대로입니다.

이 선택은 가중 절대편차 합을 최소로 하는 중앙값 집합 안에 있습니다. 왼쪽에 놓인 질량과 오른쪽에 놓인 질량 중 어느 쪽도 전체의 절반을 넘지 않으면, 조금 움직여 한쪽의 거리를 줄일 때 다른 쪽의 거리가 더 큰 총질량만큼 늘어나는 상황을 피할 수 있습니다. 중앙값이 유일하지 않은 구간에서는 중간값을 택한다는 재현 규칙도 필요합니다.

t∈arg⁡min⁡u∑iwi∣xi−u∣⟺∑xi<twi≤W2, ∑xi>twi≤W2,W=∑iwi>0t\in\arg\min_u\sum_i w_i|x_i-u|\quad\Longleftrightarrow\quad \sum_{x_i<t}w_i\leq \frac W2,\ \sum_{x_i>t}w_i\leq \frac W2,\quad W=\sum_iw_i>0

예를 들어 X=0,10에 질량 1,1을 주면 [0,10]의 모든 값이 절대편차를 똑같이 최소화하고 여기서는 5를 택합니다. 질량이 1,3이면 10을 택합니다. 이 중앙값 규칙으로 X를 구분하더라도 예측 평가의 손실은 여전히 Brier입니다. 전처리의 위치 요약과 표적 예측의 채점 목적을 구별하세요.

Begin with the median as a middle ordered value. With analytical masses, accumulate mass instead of counting rows. Our reproducible rule chooses the first value reaching half the total mass; at an exact half boundary it uses the midpoint with the next ordered value. Repeated values follow the same rule.

This choice belongs to the minimizers of weighted absolute deviations. At a median, neither the mass strictly to the left nor strictly to the right exceeds half. Moving a little should not decrease distance to a greater mass than the mass whose distance increases. When a whole interval minimizes the objective, a deterministic midpoint rule is still needed.

t∈arg⁡min⁡u∑iwi∣xi−u∣⟺∑xi<twi≤W2, ∑xi>twi≤W2,W=∑iwi>0t\in\arg\min_u\sum_i w_i|x_i-u|\quad\Longleftrightarrow\quad \sum_{x_i<t}w_i\leq \frac W2,\ \sum_{x_i>t}w_i\leq \frac W2,\quad W=\sum_iw_i>0

For X values zero and ten with masses one and one, every point in [0,10] minimizes absolute deviations and our rule chooses five. With masses one and three it chooses ten. Using this median to preprocess X does not change the prediction loss from Brier to absolute loss. Distinguish the preprocessing summary from the target-scoring objective.

학부 심화 · 선택Advanced undergraduate · optional

교차검증 장부: 한 행은 한 번 바깥에서 채점한다A CV ledger: each row is scored outside its fit once

K겹 교차검증에서는 자료의 각 행에 접힘 번호를 미리 붙입니다. 한 접힘을 채점용으로 남기고 나머지로 전처리와 모형을 처음부터 적합합니다. 다음 접힘을 채점할 때는 앞 모형을 조금 수정하는 것이 아니라 그 접힘을 제외한 훈련 범위로 다시 적합합니다. 사용 가능한 각 행은 한 번만 보유 예측을 받습니다.

네 카드를 하나씩 남기는 K=4 예를 계산해 봅시다. 첫 두 채점에서는 훈련 중앙값이 8이어서 낮은 칸에 양성과 음성이 섞여 확률 1/2가 나옵니다. 뒤 두 채점의 훈련 중앙값은 2이고 높은 칸 확률은 2/3입니다. 표의 손실을 더해 4로 나누면 13/72입니다.

훈련 안에서 전처리한 네 번의 채점
보유 X훈련 중앙값예측 확률표적Brier
081/201/4
281/201/4
822/311/9
1022/311/9
R^pooled=∑kWkR^k∑kWk,R^macro=1K∑kR^k\widehat R_{\rm pooled}=\frac{\sum_k W_k\widehat R_k}{\sum_kW_k},\qquad \widehat R_{\rm macro}=\frac1K\sum_k\widehat R_k

접힘마다 사용 질량이 같으면 두 평균이 같습니다. 질량이 다르면 먼저 접힘별 평균을 낸 뒤 똑같이 평균하는 것과 모든 행을 한꺼번에 평균하는 것이 달라집니다. 실제 NLS 자료는 결측을 원위치에 남기므로 접힘별 사용 행 수가 같지 않을 수 있습니다. 어떤 평균을 선택 기준으로 썼는지 보고해야 합니다.

Assign a fold label to every observation before K-fold CV. Hold one fold for scoring and fit preprocessing and the predictor from scratch on its complement. For the next fold, refit using its own complement instead of updating the previous model. Each eligible row receives one out-of-fold prediction.

For four leave-one-out fits of our cards, the first two training medians are eight. Their lower cells mix one positive and one negative, giving probability one half. The last two medians are two, and their upper-cell probabilities are two thirds. Summing the four losses and dividing by four gives 13/72.

Four evaluations with fold-fitted preprocessing
Held XTraining medianPredictionTargetBrier
081/201/4
281/201/4
822/311/9
1022/311/9
R^pooled=∑kWkR^k∑kWk,R^macro=1K∑kR^k\widehat R_{\rm pooled}=\frac{\sum_k W_k\widehat R_k}{\sum_kW_k},\qquad \widehat R_{\rm macro}=\frac1K\sum_k\widehat R_k

Equal scored masses make these means equal. Otherwise, averaging fold means equally differs from pooling every scored row. Actual NLS exclusions retain source positions, so eligible fold sizes need not match. State which criterion selects the model.

학부 심화 · 선택Advanced undergraduate · optional

전처리를 먼저 해 놓으면 평가 대상도 달라진다Preprocessing first changes the evaluated procedure

전체 네 X로 중앙값 5를 먼저 구하고, 그 구분을 고정한 채 하나씩 보유한다면 어떻게 될까요? 각 낮은 칸의 훈련에는 음성 한 장, 높은 칸에는 양성 한 장이 있어 네 손실이 모두 1/9이 됩니다. 앞 절의 13/72보다 낮습니다. 바뀐 것은 채점식이 아니라 중앙값이 알 수 있는 자료의 범위입니다.

모든 X를 미리 볼 수 있는 전이적 예측 문제라면 전체 X를 사용하는 별도 절차를 명시해 연구할 수 있습니다. 아직 도착하지 않은 새 관측을 예측하는 귀납적 절차를 평가하면서 같은 계산을 조용히 끼워 넣으면, 원래 질문과 다른 절차를 평가하게 됩니다. 표적 Y를 직접 쓰지 않았다는 이유만으로 전처리 범위가 무관해지는 것은 아닙니다.

이번 예의 점수가 낮아진 방향을 일반 법칙으로 외우지 마세요. 자료와 변환에 따라 실현된 차이의 부호는 달라질 수 있습니다. 중요한 검산은 “이 접힘의 전처리 ID가 정확히 이 접힘의 훈련 ID와 같은가?”입니다. 실습의 preprocessScope="allX"는 이러한 차이를 드러내는 별도 대조이며, 중첩 평가에는 기본값인 접힘 내부 적합만 사용합니다.

Suppose we first estimate median five from all four X values, keep that bin fixed and then hold out one card at a time. Each lower training cell has one negative and each upper training cell one positive, so every loss is 1/9. This is lower than 13/72. The scoring rule did not change; the information available to preprocessing did.

A transductive problem that legitimately observes every prediction covariate in advance may specify a separate all-X procedure. Quietly using it to assess an inductive procedure for as-yet-unseen observations changes the research question. Avoiding direct use of held-out Y does not make the preprocessing scope irrelevant.

Do not memorize the direction of this example’s change as a universal law. A realized difference can have either sign. Check whether each transformer’s fitting IDs equal that fold’s training IDs. The lab’s preprocessScope="allX" is a labeled contrast; nested assessment uses fold-specific preprocessing.

학부 심화 · 선택Advanced undergraduate · optional

실습 A: 적합 ID와 질의 ID를 나누어 보기Lab A: separate fitting IDs from query IDs

먼저 네 카드의 ID를 a,b,c,d로 두고 X=5와 6인 두 질의 행을 추가하세요. 질의의 표적은 아직 모른다면 null로 둡니다. 적합 ID를 네 훈련 카드로 명시하고 질의 ID를 따로 고르면, 중앙값 5와 확률 1/4·3/4가 어떤 범위에서 나왔는지 결과에 남습니다.

질의 X를 6에서 600으로 바꿔도 훈련 중앙값과 칸 확률은 바뀌지 않아야 합니다. 새로운 값은 어느 칸에 들어가는지만 바꿉니다. 다음에는 X=10인 훈련 카드의 질량을 3으로 바꾸어 보세요. 전처리 중앙값과 확률이 함께 달라질 수 있으며, 이는 실제 적합 자료의 질량을 바꾼 결과입니다.

실제 국가의 첫 바깥 접힘도 같은 원리입니다. 일정 A의 첫 보유 국가는 AUS·DEU·IND·SGP이며, 나머지 12개 국가에서 배운 GDP 중앙값은 약 25,083.77의 2015년 불변 USD입니다. 낮은 칸의 확률은 1/8, 높은 칸은 3/4입니다. 이때 채점은 13/256입니다. 앞 장의 고정 25,000 구분과 이 장의 훈련 중앙값은 서로 다른 설계임을 확인하세요.

Name the training cards a, b, c and d, then add two queries at X values five and six. Use null for an unknown query target. Explicit fitting and query ID lists show that median five and probabilities one quarter and three quarters came only from the four fitting cards.

Changing the second query from six to six hundred should not alter the training median or cell probabilities. It only determines its assigned cell. Next increase the training mass at X ten to three. The median and fitted probabilities may both change because you changed the fitting data’s mass.

The first actual country outer fold follows the same logic. Schedule A holds AUS, DEU, IND and SGP; its twelve remaining countries give a GDP median of about 25,083.77 constant-2015 US dollars. Lower and upper probabilities are 1/8 and 3/4, and the held-out Brier is 13/256. The previous chapter’s fixed 25,000 cutoff and this training median are distinct designs.

학부 심화 · 선택Advanced undergraduate · optional

설정과 적합된 숫자를 분리해서 적기Write down configurations separately from fitted numbers

모형의 숫자가 모두 같은 층에서 결정되는 것은 아닙니다. 네 카드의 중앙값5와 칸의 양성 질량은 주어진 훈련 자료에서 계산한 값입니다. 반면 사용할 특징 번호, 평활화 α, 후보 목록, 채점 기준은 학습 절차를 정의하는 설정입니다. α를 여러 개 시험한다면 그 선택도 평가할 절차 안으로 들어갑니다.

선형 회귀의 정규화 강도, 나무의 깊이, 이웃 수, 특징 목록도 같은 관점에서 볼 수 있습니다. 이 장의 여섯 API는 훈련 중앙값과 범주 칸 확률을 사용하는 작고 완전히 읽을 수 있는 파이프라인을 구현합니다. 모든 모형 계열을 구현했다고 부르지는 않으며, 다른 계열에도 적용할 평가 순서를 배우는 데 사용합니다.

어떤 규칙은 데이터에서 적합하지 않고 선언합니다. GDP를 2015년 불변 달러로 읽는 단위, 범주 특징의 열 번호, 기대수명80년이라는 연구 표적이 그 예입니다. 선언한 과학적 질문과 훈련에서 배운 수치를 구별하면 어느 단계에서 무엇을 다시 계산해야 하는지가 분명해집니다.

Not every model number is decided at the same level. Median five and cell-positive mass are fitted from the current training data. Predictor indices, smoothing alpha, candidate lists and scoring criteria define the learning procedure. If several alpha values are tried, choosing alpha also belongs inside that procedure.

Regularization strength, tree depth, neighbour count and feature lists can be viewed similarly. Our six APIs implement a small, fully inspectable pipeline using training medians and categorical-cell probabilities. They do not implement every model family; they make the evaluation sequence transferable to other families.

Some rules are declared rather than learned: reading GDP in constant 2015 dollars, identifying categorical columns, or defining the scientific life-expectancy target at eighty years. Distinguishing the question from fitted quantities clarifies what must be recomputed at each stage.

학부 심화 · 선택Advanced undergraduate · optional

후보 목록·평가 범위·동률 규칙부터 고정하기Fix the candidates, scoring frame and tie rule first

후보 j의 점수를 구하는 동안 다른 후보와 다른 사람을 채점하면, 점수 차이에 모형과 사람의 차이가 함께 들어갑니다. 이 장에서는 필요한 X와 Y가 모두 관측되고 질량이 양수인 공통 범위를 먼저 정합니다. 그 범위와 접힘 번호를 고정한 뒤 모든 후보의 전처리와 적합을 같은 순서로 진행합니다.

후보 선택은 정확한 pooled Brier가 가장 작은 위치를 고릅니다. 동률은 먼저 선언한 후보입니다. “먼저”가 무엇인지도 결과에 남겨야 하며, 구현이 임의로 특징 수가 적은 후보를 선호하거나 마지막 후보를 덮어쓰면 다른 절차가 됩니다. 단순한 모형을 우선하려면 그 순서나 별도 규칙을 먼저 선언하세요.

j^=min⁡{j:R^j=min⁡hR^h}\hat j=\min\left\{j:\widehat R_j=\min_h\widehat R_h\right\}

실제 사례의 후보는 특징 부분집합을 크기·번호 순으로 나열한 α=1 모형들 뒤에 전체 특징의 α=0 모형을 하나 더 둡니다. 국가·개인은9개, 기업은17개입니다. 이 후보 목록은 점수를 본 뒤 늘린 것이 아니며, 다른 탐색 범위가 필요하면 새 절차로 기록할 수 있습니다.

Scoring different people for different candidates mixes a model difference with a population difference. We first fix a common frame with observed required X and Y and positive analytical mass. Every candidate then uses that same frame and fold assignment.

Selection takes the earliest candidate attaining the exact minimum pooled Brier. “Earliest” must be recorded. An implementation that silently prefers fewer predictors or overwrites a tie with the last candidate changes the procedure. Declare a simplicity preference through the order or another explicit rule.

j^=min⁡{j:R^j=min⁡hR^h}\hat j=\min\left\{j:\widehat R_j=\min_h\widehat R_h\right\}

Actual studies enumerate alpha-one feature subsets by cardinality and index order, then append a full-feature alpha-zero candidate. This gives nine country/person candidates and seventeen company candidates. The grid is fixed before scores; a different search space can be documented as a different procedure.

학부 심화 · 선택Advanced undergraduate · optional

점수가 가장 작은 후보가 무엇을 이겼나What did the minimum-scoring candidate actually beat?

네 카드에서 빈 특징 모형은 전역 양성 확률만 예측합니다. 한 행을 남겼을 때 훈련 표적 세 개에는 양성2개 또는1개가 있습니다. α=1의 확률은 각각3/5 또는2/5이고, 남긴 표적에 대한 손실은 어느 쪽이나9/25입니다. 따라서 빈 특징 후보의 CV 점수는9/25입니다.

중앙값 구분을 쓴 후보의 점수13/72는 이보다 낮아 그 후보가 선택됩니다. 선택은 이 후보 목록·이 접힘·이 손실에서 비교를 이겼다는 뜻입니다. 검증 점수가 낮다는 사실만으로 데이터 생성 법칙 전체에서 최적이거나 다른 지역·시기에서 최적이라는 결론이 나오지는 않습니다.

네 카드의 같은 보유 범위에서 비교
후보특징보유 Brier선택
0없음9/25아니오
1훈련 중앙값 구분 X13/72예

선택 뒤 네 행 전부로 다시 적합하면 중앙값5와 확률1/4·3/4를 얻게 됩니다. 이 최종 적합과 앞의 세 행짜리 CV 적합을 구별해서 보관하세요. CV의 보유 예측을 마지막 전체 자료 모형의 예측으로 덮어쓰면 원래의 평가를 재현할 수 없습니다.

The four-card empty-feature model predicts only a global positive probability. Leaving one row out gives either two or one positive among three fitting targets. With alpha one, probabilities are three fifths or two fifths; either gives held loss 9/25. The empty candidate’s CV risk is therefore 9/25.

The median-bin candidate scores 13/72 and is selected. It wins within this list, fold plan and loss. The comparison alone does not establish a population optimum or performance in another region or period.

Comparison on the same held-out frame
CandidatePredictorsOOF BrierSelected
0None9/25No
1Fold-trained median bin13/72Yes

Refitting all four rows afterwards gives median five and probabilities one quarter and three quarters. Preserve that final fit separately from the three-row CV fits. Replacing OOF predictions with final-model predictions destroys the original assessment.

학부 심화 · 선택Advanced undergraduate · optional

가장 작은 추정값은 왜 낙관적일 수 있나Why can the smallest estimated risk be optimistic?

후보마다 참위험이 같더라도 추정 점수에는 오차가 있을 수 있습니다. 두 후보의 고정 참위험을 각각1/2이라고 놓고, 각 추정 점수는0 또는1을 같은 확률로 받는다고 가정해 봅시다. 두 추정 오차가 독립인 작은 가정 실험에서는 네 점수쌍이 같은 확률로 나오고, 선택한 최솟값의 평균은1/4입니다. 선택된 후보의 참위험1/2보다 낮습니다.

다음 부등식은 고정된 유한 후보들의 참위험 R_j가 상수이고 각 추정량이 그 상수에 대해 불편향이라는 조건에서 읽습니다. 각 자료에서 최솟값은 어느 한 후보의 추정값보다 크지 않으므로 기대값도 그렇습니다. 선택된 상수 참위험은 후보 중 최솟값보다 작을 수 없습니다. 이 논리 자체에는 후보 오차의 독립성이 필요하지 않습니다.

E[min⁡jR^j]≤min⁡jE[R^j]=min⁡jRj≤E[Rj^]\mathbb E[\min_j\widehat R_j]\leq\min_j\mathbb E[\widehat R_j]=\min_jR_j\leq\mathbb E[R_{\hat j}]

자료에 따라 적합된 후보의 참위험 자체가 달라지는 문제는 더 세심한 조건부·절차 위험의 질문입니다. 위 식을 아무 CV 점수에나 붙여 불편향 또는 편향 크기를 증명했다고 해석하지 않습니다. 또한 아래 가정 실험은 실제 국가·임금·고객 자료의 관측 결과가 아닙니다.

Even candidates with the same true risk can have noisy estimated scores. Suppose each fixed risk is one half and each estimate is zero or one with equal probability. If the two estimation errors are independent in this small assumed experiment, four equally likely score pairs make the selected minimum average one quarter. The selected candidate’s true risk remains one half.

Read the inequality below for a fixed finite list with constant true risks and unbiased estimates of those constants. Pointwise, a minimum cannot exceed any individual estimate. The selected constant true risk cannot be smaller than the best constant risk. Independence of candidate errors is not required for this inequality.

E[min⁡jR^j]≤min⁡jE[R^j]=min⁡jRj≤E[Rj^]\mathbb E[\min_j\widehat R_j]\leq\min_j\mathbb E[\widehat R_j]=\min_jR_j\leq\mathbb E[R_{\hat j}]

If fitted candidates’ true risks themselves vary with training data, the conditional and procedure-level questions need more care. The displayed result does not certify arbitrary CV estimates or quantify their bias. This assumed experiment is not an empirical result for our countries, wages or customers.

학부 심화 · 선택Advanced undergraduate · optional

탐색 예산과 평가 재사용을 기록하기Record the search budget and evaluation reuse

같은 후보 점수들을 유지한 채 후보를 하나 더 추가하면, 보고하는 최솟값은 커질 수 없습니다. 새 후보가 실제로 더 좋은 모형이어서일 수도 있고, 추정 오차가 우연히 유리해서일 수도 있습니다. 후보 개수·탐색 순서·중단 규칙을 기록해야 서로 다른 실험의 최고 점수를 읽을 수 있습니다.

안쪽 검증을 보고 특징 수나 α를 정하는 일은 학습 절차 안에 포함시킬 수 있습니다. 바깥 평가를 보고 후보를 바꾸어 다시 바깥 최고 점수를 고르면, 그 바깥 값도 새 선택 기준이 됩니다. 평가에 사용한 자료를 여러 번 보았다는 사실은 “바깥”이라는 이름만으로 사라지지 않습니다.

기계적인 횟수 제한 하나가 모든 선택 편향을 해결하는 것은 아닙니다. 목적은 실제로 운영할 탐색 과정을 재현하고, 그 전체를 무엇으로 확인했는지 밝히는 것입니다. 새 외부 평가가 불가능하면 재사용한 점수와 사후에 변경한 절차를 구별해 기술하는 편이 결과를 이해하는 데 도움이 됩니다.

Keeping existing scores fixed while adding a candidate cannot raise the reported minimum. The addition may be a better predictor or merely have favorable estimation error. Candidate count, search order and stopping rules are part of interpreting competing best scores.

You can include choosing feature count or alpha by inner validation within the learning procedure. If outer scores then change the candidate grid and you choose the best new outer result, those outer scores have become another selection criterion. Calling them outer does not erase repeated inspection.

No mechanical trial limit solves every selection problem. Reproduce the search process that will actually be used and state how that whole process was assessed. When new external assessment is unavailable, distinguish reused scores from changes made after inspecting them.

학부 심화 · 선택Advanced undergraduate · optional

재적합할 파이프라인의 경계 그리기Draw the boundary of the pipeline to be refitted

전처리가 모형 앞에 있다는 이유로 평가 밖에 놓이는 것은 아닙니다. 훈련 평균으로 결측을 채우기, 훈련 표준편차로 표준화하기, 훈련 표적으로 특징을 고르기, 보정 곡선이나 임계값을 고르기 등 자료에서 배운 단계는 적절한 훈련 범위 안에서 다시 배워야 합니다. 어느 단계가 X만 쓰고 어느 단계가 Y도 쓰는지 그려 보세요.

반대로 정의가 고정된 단위 변환은 훈련 자료에서 평균을 추정하는 일과 다릅니다. 센트를 달러로 나누는 규칙, 알려진 범주 열의 해석, 연구 질문으로 정한 표적을 자동으로 누출이라고 부르면 무엇을 적합했는지가 흐려집니다. 데이터로 그 변환이나 표적 경계를 고른 경우에는 선택 단계가 다시 생깁니다.

단계를 적합 범위에 연결하기
단계자료에서 배운 것인가이 장에서의 위치
명목 센트÷100아니오·단위 규칙선언된 입력 해석
X 훈련 중앙값예·훈련 X각 적합의 훈련 안
범주 칸의 양성 확률예·훈련 X,Y각 적합의 훈련 안
후보 번호 선택예·안쪽 보유 손실안쪽 CV 안

이 장의 명시적 median-cell 파이프라인은 이 경계의 작은 실례입니다. 결측 대치·확률 보정·모든 종류의 특징 학습을 이 엔진이 구현했다고 주장하지 않습니다. 다른 모형으로 확장할 때도 바깥 ID를 어느 단계가 볼 수 있는지부터 정하면 같은 평가 원칙을 사용할 수 있습니다.

A step is not outside evaluation merely because it precedes the predictor. Learning an imputation mean, a standardization scale, target-based feature choices, a calibration curve or a decision threshold requires the appropriate training scope. Draw which steps use X alone and which also use Y.

A fixed unit conversion differs from estimating a mean from data. Dividing cents by one hundred, interpreting a known categorical column and declaring a scientific target are input definitions. If their rule or cutoff was chosen from inspected scores, an additional selection step arises.

Connect steps to fitting scopes
StepLearned from data?Scope here
Nominal cents divided by100No: unit definitionDeclared input interpretation
Training-X medianYes: training XInside each fit
Cell-positive probabilityYes: training X,YInside each fit
Candidate indexYes: inner-held lossesInside inner CV

The explicit median-cell pipeline is one small implementation of this boundary. It does not implement every imputer, calibrator or representation learner. When extending to another model, first specify which steps may see the outer-held identities.

학부 심화 · 선택Advanced undergraduate · optional

공통 분모와 빈 접힘은 구현 선택이기도 하다Common denominators and empty folds are implementation choices

후보 A가 한 특징만 쓰고 후보 B가 네 특징을 쓰면, 결측을 후보마다 다르게 제거하기 쉽습니다. 이 장은 전체 선언 X와 표적이 관측된 공통 범위를 사용합니다. 이는 이 비교를 정의한 설계입니다. 다른 모집단이나 결측 처리 전략을 비교하려면 그 범위와 목표도 함께 바꾸어 설명해야 합니다.

접힘이 비어 있는 경우도 구별합니다. 양성과 음성이 모두 있어야만 Brier를 계산할 수 있는 것은 아닙니다. 표적이 전부0이어도 양의 학습·평가 질량이 있으면 확률과 Brier가 정의될 수 있습니다. 반면 사용할 평가 행이 전혀 없으면 평균의 분모가0입니다. 이 엔진의 CV는 각 선언 접힘에 사용 가능한 평가 행이 있는지 먼저 검사하며, 빈 접힘을 몰래 건너뛰지 않습니다.

표적이 없는 원행, 질량0인 행, 잘못 적힌 숫자도 같은 상태가 아닙니다. 앞의 둘은 명시된 범위 규칙에 따라 남기거나 제외할 수 있지만, 숫자 칸의 malformed는 잘못된 입력으로 거부합니다. 제외될 예정인 행이라고 해서 그 안의 잘못된 숫자를 조용히 받아들이지 않습니다.

Candidates using different feature counts can accidentally delete different missing rows. We define the comparison on a common frame with every declared X and target observed. This is an explicit design choice. Comparing another missingness strategy or target population also requires redefining and reporting that scope.

Distinguish an empty fold from a single-class fold. Brier does not require both classes in every fold. An all-zero target frame can have a defined probability fit and loss when its training and scoring masses are positive. No eligible evaluation observations, however, give a zero denominator. Our CV checks that every declared fold has usable scoring observations instead of silently skipping empty folds.

Missing targets, zero-mass rows and malformed numeric values are also different. The first two have explicit retention and eligibility rules. A token such as malformed in a numeric field is an invalid input, even if that row would later be excluded.

학부 심화 · 선택Advanced undergraduate · optional

실습 B: 같은 접힘의 전처리 범위와 평균 비교Lab B: compare preprocessing scopes and means on the same folds

네 카드의 접힘 번호를0,1,2,3으로 두고, 후보 특징을0 하나로 정하세요. 먼저 fold로 계산하여 중앙값8,8,2,2와 pooled13/72를 확인합니다. 다음에 allX 대조를 선택하면 각 적합이 같은 중앙값5를 쓰고 점수는1/9이 됩니다. 결과의 전처리 ID와 적합 ID를 비교해 차이가 생긴 이유를 직접 설명하세요.

이어서 한 행의 질량을9로 바꿔 보세요. 질량을 바꾸면 중앙값, 칸 확률, 접힘별 채점 질량이 달라질 수 있습니다. pooled와 macro를 같은 값으로 덮어쓰지 말고 서로 다른 열에서 확인하세요. 표적이나 입력을 바꾸면서도 기존 접힘 벡터의 행 순서가 맞는지 다시 읽어야 합니다.

실제 국가·개인·기업 사례의 접힘은 뒤의 전체 사례와 실습 F에서 같은 정의로 재현합니다. A와 B는 명시된 고정 일정이며, 다른 일정 두 번을 계산했다고 새 모집단 표본 두 개가 생기는 것은 아닙니다. 다음 단계에서는 같은 평가 장부로 여러 후보를 고른 뒤 그 선택까지 바깥에서 평가하겠습니다.

Use fold labels zero, one, two and three for the cards and predictor zero alone. Under fold, inspect medians eight, eight, two and two and pooled risk 13/72. The allX contrast uses median five for each fit and scores 1/9. Compare preprocessing and fitting IDs to explain the change.

Next set one row’s mass to nine. Medians, cell probabilities and scoring masses can all change. Read pooled and macro in separate columns. After editing observations, also check that the fold vector still aligns with their row order.

Full actual studies and Lab F use the same definitions. Schedules A and B are fixed, explicit assignments; running two schedules does not create two fresh population samples. We next use this ledger to choose candidates and assess that choosing step outside it.

학부 심화 · 선택Advanced undergraduate · optional

안쪽 선택을 바깥 평가 안에 넣기Place inner selection inside outer assessment

이제 바깥 평가를 한 겹 더 둡니다. 먼저 가정한 여덟 카드로 계산을 모두 확인하겠습니다. 원 X는0부터7이고, 표적은0,0,0,1,0,1,1,1입니다. 이는 이번 절의 작은 가정 자료이며 실제 국가·임금·고객 관측으로 꾸민 수치가 아닙니다. 바깥 접힘0은 짝수 위치, 접힘1은 홀수 위치를 보유합니다.

각 바깥 훈련 범위에서는 두 안쪽 접힘으로 후보를 고릅니다. 후보0은 빈 특징·α=1, 후보1은 X의 훈련 중앙값 구분·α=1, 후보2는 같은 구분·α=4입니다. 바깥 점수를 보기 전에 후보를 고정합니다. 안쪽에서 이기는 α가 두 바깥 범위에서 다를 수 있다는 점을 따라가세요.

가정한 여덟 관측 카드
ID원 X바깥 접힘표적
a0000
a1110
a2200
a3311
a4400
a5511
a6601
a7711

Add an outer assessment layer and follow every calculation on eight assumed cards. Native X runs from zero to seven and targets are 0,0,0,1,0,1,1,1. These are explicitly constructed teaching observations, not claimed empirical country, wage or customer records. Outer fold zero holds even positions and fold one holds odd positions.

Two inner folds within each outer-training frame choose among three declared candidates: an empty-feature alpha-one baseline, a training-median X bin with alpha one, and the same bin with alpha four. Fix the grid before inspecting outer scores. Follow why different outer frames can select different smoothing.

Eight assumed observation cards
IDNative XOuter foldTarget
a0000
a1110
a2200
a3311
a4400
a5511
a6601
a7711
학부 심화 · 선택Advanced undergraduate · optional

ID 장부로 세 층을 연결하기Connect the three layers with an identity ledger

바깥 접힘0을 평가할 때 보유 ID는 a0,a2,a4,a6입니다. 안쪽 선택은 나머지 a1,a3,a5,a7만 사용합니다. 안쪽 접힘0은 a1,a5를 보유하고 a3,a7로 적합하며, 안쪽 접힘1은 그 반대로 합니다. 이 두 안쪽 점수를 비교해 후보 하나를 고르면, 같은 바깥 훈련 네 행 전부로 다시 적합하고 처음 남긴 짝수 네 행을 채점합니다.

바깥 접힘1에서는 역할을 바꾸어 a0,a2,a4,a6에서 안쪽 선택을 수행합니다. 안쪽 접힘0은 a0,a4를, 안쪽 접힘1은 a2,a6을 보유합니다. 바깥 보유 행의 표적을 선택에 넣지 않는다는 말은 이 ID 장부로 검산할 수 있습니다.

바깥0의 안쪽 장부
단계적합 ID채점 ID
안쪽0a3,a7a1,a5
안쪽1a1,a5a3,a7
선택 뒤 재적합a1,a3,a5,a7아직 없음
바깥 채점앞 모형 고정a0,a2,a4,a6

For outer fold zero, hold IDs a0,a2,a4,a6. Inner selection uses only a1,a3,a5,a7. Inner fold zero holds a1,a5 and fits a3,a7; inner fold one reverses those roles. Compare the two inner scores to choose a candidate, refit it on all four outer-training rows, and only then score the originally held even rows.

For outer fold one, perform inner selection on a0,a2,a4,a6. Inner fold zero holds a0,a4, and inner fold one holds a2,a6. This identity ledger makes the exclusion of outer-held targets verifiable.

The inner ledger for outer zero
StepFitting IDsScoring IDs
Inner0a3,a7a1,a5
Inner1a1,a5a3,a7
Refit after selectiona1,a3,a5,a7None yet
Outer assessmentFreeze that fitted modela0,a2,a4,a6
학부 심화 · 선택Advanced undergraduate · optional

선택·재적합·평가를 수식으로 구별하기Distinguish selection, refitting and assessment in equations

바깥 접힘 o의 훈련 범위를 T_o, 안쪽 보유 범위를 V_{o,k}라고 하겠습니다. 후보의 중앙값과 칸 확률은 T_o에서 V_{o,k}를 제외한 범위로 적합합니다. 안쪽 선택 뒤에는 선택한 설정으로 T_o 전체를 다시 적합합니다. 바깥 보유 범위는 이 모든 적합에서 빠져 있습니다.

j^o=arg⁡min⁡jR^inner,o(j),f^o=Aj^o(To),ℓi=ℓ(f^o,zi)(i∈Vo)\hat j_o=\arg\min_j\widehat R_{{\rm inner},o}(j),\qquad \hat f_o=A_{\hat j_o}(T_o),\qquad \ell_i=\ell(\hat f_o,z_i)\quad(i\in V_o)

수식의 argmin에 동률이 있으면 앞서 선언한 규칙을 적용합니다. 구현은 바깥 보유 위치의 안쪽 접힘 표지를 null로 요구합니다. 이는 원 X나 Y의 결측을 뜻하는 표지가 아니라 “이 행은 이 안쪽 실험의 참가자가 아니다”라는 구조 표지입니다.

다른 바깥 접힘으로 이동하면 앞서 보유한 행이 그 새 범위의 훈련에 들어갈 수 있습니다. 이 사실이 누출이라는 뜻은 아닙니다. 어느 특정 채점의 모형을 적합할 때 그 채점 행이 들어갔는지를 따져야 합니다.

Write T_o for outer-training observations and V_{o,k} for an inner-held set. Fit candidate medians and probabilities on T_o excluding V_{o,k}. After selection, refit the chosen configuration on all T_o. The outer-held set remains outside every one of these fits.

j^o=arg⁡min⁡jR^inner,o(j),f^o=Aj^o(To),ℓi=ℓ(f^o,zi)(i∈Vo)\hat j_o=\arg\min_j\widehat R_{{\rm inner},o}(j),\qquad \hat f_o=A_{\hat j_o}(T_o),\qquad \ell_i=\ell(\hat f_o,z_i)\quad(i\in V_o)

Apply the declared tie rule when argmin is not unique. The implementation requires null inner-fold markers at outer-held positions. That is a structural marker saying the row does not participate in this inner experiment, not a missing native X or Y.

An observation held in one outer fold can train a different fold. This is not itself leakage. Ask whether the model producing a particular scored prediction used that scored observation.

학부 심화 · 선택Advanced undergraduate · optional

같은 후보 목록에서 선택이 달라지는 여덟 카드Eight cards where the same grid selects different candidates

바깥0의 안쪽 후보 점수를 계산해 봅시다. 빈 특징 후보는9/32, α=1의 중앙값 후보는5/18, α=4의 중앙값 후보는41/162입니다. 마지막 값이 가장 작아 후보2를 고릅니다. 예를 들어 안쪽0의 훈련 두 행 a3,a7은 모두 양성입니다. 각 중앙값 칸의 훈련 질량은1이므로 α=4의 확률은5/9입니다. 보유 표적0,1의 평균 제곱 손실은41/162가 됩니다.

바깥1에서는 α=1의 후보가7/36으로 이깁니다. 여기서 α=4의 점수는73/324입니다. 같은 후보 목록을 사용해도 훈련 자료가 달라지면 안쪽에서 선택하는 설정이 달라질 수 있습니다. 어떤 α 하나가 전체 자료에서 이겼다고 모든 바깥 접힘에 그것을 먼저 넣으면 이 평가 절차와 달라집니다.

각 바깥 훈련 범위의 전체 안쪽 기준
바깥 범위빈 특징 α1중앙값 α1중앙값 α4선택 후보
09/325/1841/1622
19/327/3673/3241

Compute the inner scores for outer zero: the empty-feature candidate gives 9/32, median alpha one gives 5/18, and median alpha four gives 41/162. The last is smallest, selecting candidate two. For example, inner-zero fitting rows a3,a7 are both positive. Each median cell has mass one, so alpha four predicts 5/9; against held targets zero and one, average squared loss is 41/162.

Outer one instead chooses alpha one with score 7/36; alpha four gives 73/324. The same grid can select different settings from different training frames. Preselecting one alpha using all data and inserting it into every outer fold evaluates another procedure.

Complete inner criteria for each outer-training frame
Outer frameEmpty alpha1Median alpha1Median alpha4Selected candidate
09/325/1841/1622
19/327/3673/3241
학부 심화 · 선택Advanced undergraduate · optional

선택한 후보를 바깥 훈련 전체로 다시 적합하기Refit the selected candidate on all outer-training observations

바깥0에서 후보2를 골랐으므로 홀수 네 행 전부로 α=4 모형을 적합합니다. 중앙값은4입니다. 낮은 칸의 두 표적은0,1이라 확률1/2, 높은 칸은1,1이라3/5입니다. 이제 짝수 보유 행을 채점하면 세 음성의 손실1/4과 한 양성의 손실4/25를 얻어 평균91/400입니다.

바깥1의 최종 훈련 중앙값은3입니다. α=1에서 낮은 칸0,0의 확률은1/4, 높은 칸0,1의 확률은1/2입니다. 홀수 보유 네 행의 평균 손실은9/32입니다. 아래 표의 X=3과4는 서로 다른 적합 경계 위에 놓이므로 엄격한 > 규칙까지 확인해야 합니다.

안쪽 선택 뒤 바깥 적합·채점
바깥선택 α중앙값낮은 확률높은 확률바깥 Brier
0441/23/591/400
1131/41/29/32

After outer zero chooses candidate two, fit alpha four on all odd rows. Median is four; the lower cell has targets zero and one and probability one half, while the upper has two positives and probability three fifths. Scoring even held rows gives three negative losses of one quarter and one positive loss of 4/25, averaging 91/400.

Outer one has final training median three. At alpha one, its lower targets zero,zero give probability one quarter, and its upper targets zero,one give one half. Odd-row held loss averages 9/32. X values three and four sit on different fitting boundaries, so the strict greater-than rule matters.

Outer fitting and scoring after inner selection
OuterChosen alphaMedianLower probabilityUpper probabilityOuter Brier
0441/23/591/400
1131/41/29/32
학부 심화 · 선택Advanced undergraduate · optional

바깥 보유 예측을 합쳐 절차를 채점하기Pool outer-held predictions to score the procedure

바깥 두 접힘은 각4행이므로 pooled와 macro가 같습니다. 두 보유 손실을 합치면 중첩 점수는407/1600입니다. 한편 같은 바깥 접힘을 후보 선택에도 재사용하여 전체 후보의 CV 최솟값을 보고하면 후보2의193/800을 얻게 됩니다. 둘의 차이는21/1600입니다.

R^nested=12(91400+932)=4071600,R^reused min=193800\widehat R_{\rm nested}=\frac12\left(\frac{91}{400}+\frac9{32}\right)=\frac{407}{1600},\qquad \widehat R_{\rm reused\ min}=\frac{193}{800}

이는 여덟 카드의 실현된 비교입니다. 중첩 점수가 언제나 더 크다는 정리가 아닙니다. 실제 기업 자료의 일정B에서는 반대 부호가 나타나고, NLS 일정A에서는 두 값이 정확히 같습니다. 그 관측도 그대로 읽어야 절차와 불확실성을 배울 수 있습니다.

각 행에 저장하는 보유 예측은 그 행을 제외한 바깥 적합에서 나옵니다. 따로 전체 자료에 다시 적합한 결과와 배열을 섞지 않으면, 같은 ID가 어떤 모델에서 채점되었는지 나중에도 추적할 수 있습니다.

Both outer folds have four rows, so pooled and macro coincide. Their combined nested score is 407/1600. Reusing those folds to select one global candidate and reporting the minimum gives candidate two’s 193/800. The realized difference is 21/1600.

R^nested=12(91400+932)=4071600,R^reused min=193800\widehat R_{\rm nested}=\frac12\left(\frac{91}{400}+\frac9{32}\right)=\frac{407}{1600},\qquad \widehat R_{\rm reused\ min}=\frac{193}{800}

This is the realized eight-card comparison, not a theorem that nested risk must be higher. Actual company schedule B has the opposite sign; NLS schedule A has exact equality. Preserve those observations to understand the procedures and uncertainty.

Every stored outer-held prediction comes from a fit excluding that observation. Keeping it separate from a full-data refit makes its model and identity traceable.

학부 심화 · 선택Advanced undergraduate · optional

평가 후 전체 자료로 적합하는 마지막 단계The final full-data fit after assessment

평가를 끝낸 뒤 새 업무에 사용할 모형이 필요하면, 선언한 선택 규칙을 전체 자료에 적용하고 선택한 설정을 전체 자료로 적합합니다. 여덟 카드에서는 전체 CV가 후보2를 고릅니다. 최종 중앙값은3.5이고 낮은 칸의 양성1/4·높은 칸의 양성3/4에 α=4를 적용해 확률5/12와7/12를 얻습니다.

중첩 점수는 네 행의 바깥 훈련 범위에서 안쪽 선택까지 수행한 절차를 채점한 값입니다. 최종 여덟 행 모형의 특정 모집단 위험을 정확히 측정한 값으로 바뀌는 것은 아닙니다. 더 큰 훈련 크기의 성능으로 옮기려면 학습 곡선·안정성·표집 조건 같은 별도의 논의가 필요합니다.

운영 모형의 설정·중앙값·칸 확률을 보관하고, 평가 자료판·접힘·보유 예측도 별도로 보관하세요. 이 장의 결과 구조에서 nonnestedSelection.finalFit는 전체 자료의 마지막 적합이고 outer의 모형은 평가용 적합입니다.

After assessment, a model for deployment can apply the declared selection rule to all available observations and refit the winner there. The eight-card full CV chooses candidate two. Its final median is 3.5. Applying alpha four to one positive among four lower observations and three among four upper observations gives probabilities 5/12 and 7/12.

The nested score assesses a procedure that selects internally within four-row outer-training sets. It does not turn into an exact measurement of the particular eight-row model’s population risk. Transporting to another training size needs learning-curve, stability and sampling considerations.

Preserve operational settings, median and cell probabilities separately from assessment vintage, folds and held predictions. The result’s nonnestedSelection.finalFit is the last all-data fit; models inside outer are assessment fits.

학부 심화 · 선택Advanced undergraduate · optional

실습 C: 안쪽 선택을 한 범위씩 분리해 계산하기Lab C: calculate inner selection one training scope at a time

실습 C에서는 먼저 바깥0의 훈련 네 행 a1,a3,a5,a7만 넣으세요. 이 네 행 순서의 안쪽 접힘은0,1,0,1입니다. 세 후보를 선언하면 α=4의 후보2가41/162로 선택되어야 합니다. 전체 여덟 행용 접힘 벡터를 네 행 입력에 그대로 붙이지 않도록 길이와 ID를 확인하세요.

다음에는 바깥1의 훈련 a0,a2,a4,a6을 넣고 같은 안쪽 번호0,1,0,1을 사용하세요. 후보1의7/36이 최소입니다. 후보마다 각 안쪽 중앙값·훈련 질량·미관측 칸 대체 확률을 펼쳐 손으로 확인할 수 있습니다.

이 화면의 마지막 전체 적합은 현재 입력한 네 행 전체의 적합입니다. 바깥 보유 네 행을 이 선택 화면에 섞지 않습니다. 이후 실습 D에서는 여덟 행과 바깥·안쪽 장부 전체를 한꺼번에 넣어 같은 선택을 두 번 수행하고 원래 보유 예측을 합칠 것입니다.

In Lab C, first enter only outer-zero fitting rows a1,a3,a5,a7. Their aligned inner folds are zero,one,zero,one. With the three declared candidates, alpha-four candidate two should win at 41/162. Check lengths and identities rather than attaching an eight-row assignment to a four-row input.

Then enter outer-one fitting rows a0,a2,a4,a6 with the same aligned inner numbers. Candidate one should win at 7/36. Expand each candidate’s fitted medians, masses and unseen-cell fallback to verify them manually.

The final refit here uses all four currently entered rows. Do not mix the outer-held rows into this selection screen. Lab D will accept the entire eight-row outer/inner ledger, repeat the two choices and pool their original held predictions.

학부 심화 · 선택Advanced undergraduate · optional

겹치지 않는 채점 행과 의존하는 점수Disjoint scoring rows and dependent scores

접힘마다 보유 행이 겹치지 않으면 점수도 독립일까요? 채점 행만 보면 그렇게 느낄 수 있지만, 그 점수를 만든 훈련 자료가 겹칩니다. 한 행은 다른 접힘의 훈련에 들어가고, 여러 모형이 같은 관측의 영향을 받습니다. 보유 점수들이 어떤 확률 법칙에서 얼마나 함께 움직이는지는 별도 질문입니다.

유한한 두 번째 모멘트가 있으면 평균의 분산은 다음처럼 전개됩니다. 접힘 Brier는0과1 사이이므로 그 모멘트는 존재합니다. 문제는 공분산 항을 어떤 근거로 알거나 추정하느냐입니다. 공분산이 항상 양수라고 가정해서도 안 됩니다.

Var⁡ ⁣(1K∑kLk)=1K2{∑kVar⁡(Lk)+2∑k<ℓCov⁡(Lk,Lℓ)}\operatorname{Var}\!\left(\frac1K\sum_k L_k\right)=\frac1{K^2}\left\{\sum_k\operatorname{Var}(L_k)+2\sum_{k<\ell}\operatorname{Cov}(L_k,L_\ell)\right\}

공분산을0으로 놓는 공식은 독립 또는 적어도 무상관 같은 전제가 있을 때 해석할 수 있습니다. 각 접힘의 표준편차를 계산할 수 있다는 사실만으로 그 전제가 확인되지는 않습니다. 이 장은 그 항을 숨기지 않는 유한 행렬 계산부터 시작합니다.

Are fold scores independent when their held observations do not overlap? The scoring sets are disjoint, but their fitting data overlap. A row held in one fold trains another, and multiple fitted models depend on common observations. How scores co-vary under a sampling law is a separate question.

With finite second moments, the variance of the macro mean expands as below. Fold Brier is bounded between zero and one, so those moments exist. The challenge is knowing or estimating covariances; do not assume they are always positive.

Var⁡ ⁣(1K∑kLk)=1K2{∑kVar⁡(Lk)+2∑k<ℓCov⁡(Lk,Lℓ)}\operatorname{Var}\!\left(\frac1K\sum_k L_k\right)=\frac1{K^2}\left\{\sum_k\operatorname{Var}(L_k)+2\sum_{k<\ell}\operatorname{Cov}(L_k,L_\ell)\right\}

Dropping covariance terms needs assumptions such as uncorrelatedness. Being able to calculate a fold-score spread does not verify those assumptions. We start with finite matrix calculations that keep the terms visible.

학부 심화 · 선택Advanced undergraduate · optional

같이 움직이는 점수와 반대로 움직이는 점수Scores that move together or in opposite directions

먼저 관측이 아니라 확률 법칙을 가정한 예를 보겠습니다. Z가 확률1/2로0 또는1이고 두 접힘 점수가 L1=L2=Z라면, 각각의 분산과 공분산은 모두1/4입니다. 평균도 Z이므로 분산은1/4입니다. 공분산을 지운 대각 항만 더하면1/8이 되어 다릅니다.

반대로 L1=Z, L2=1−Z라면 평균은 항상1/2입니다. 각 점수의 분산은 여전히1/4이지만 공분산은−1/4이므로 평균의 분산은0입니다. 이 경우에는 공분산을 빼버린1/8이 실제보다 큽니다.

L1=L2=Z:Var⁡(Lˉ)=14,L1=Z, L2=1−Z:Var⁡(Lˉ)=0.\begin{aligned}L_1=L_2=Z&:\quad \operatorname{Var}(\bar L)=\tfrac14,\\L_1=Z,\ L_2=1-Z&:\quad \operatorname{Var}(\bar L)=0.\end{aligned}

둘은 의존 구조의 역할을 보여 주는 가정 예입니다. 두 실제 분할 결과를 보고 바로 이러한 모집단 법칙을 알았다고 할 수는 없습니다. 다음의 R−1 표본 공분산과 지금의 알려진 확률 법칙의 공분산도 구별해야 합니다.

First assume a probability law, rather than calling two observed outcomes a population. Let Z be zero or one with equal probabilities. If both fold scores equal Z, each variance and their covariance are one quarter. Their mean is Z, so its variance is one quarter. Keeping only diagonal variance terms would give one eighth.

If L1=Z and L2=1−Z, their mean is always one half. Individual variances remain one quarter, but covariance is negative one quarter and mean variance is zero. The diagonal-only one-eighth contrast now overstates it.

L1=L2=Z:Var⁡(Lˉ)=14,L1=Z, L2=1−Z:Var⁡(Lˉ)=0.\begin{aligned}L_1=L_2=Z&:\quad \operatorname{Var}(\bar L)=\tfrac14,\\L_1=Z,\ L_2=1-Z&:\quad \operatorname{Var}(\bar L)=0.\end{aligned}

These assumed laws illustrate dependence. Two real split results do not identify either population law. Also distinguish these known population covariances from the R−1 sample covariance calculated next.

학부 심화 · 선택Advanced undergraduate · optional

반복×접힘 행렬을 직접 중심화하기Center a repeat-by-fold matrix explicitly

R번의 계산에서 K개 접힘 점수를 행렬 A의 한 행씩 저장했다고 합시다. 모든 열이 관측된 반복 행만 공통으로 남기고, 각 열 평균을 뺀 곱을 합해 R−1로 나누면 유한 표본 공분산 행렬을 얻습니다. 여기서 “표본 공분산식”이라고 계산하는 것과, 그 행들이 독립 표본이라서 모집단 공분산의 불편 추정량이라고 부르는 것은 다릅니다.

Skℓ=1R−1∑r=1R(Ark−Aˉ⋅k)(Arℓ−Aˉ⋅ℓ),smacro2=1K2∑k,ℓSkℓS_{k\ell}=\frac1{R-1}\sum_{r=1}^{R}(A_{rk}-\bar A_{\cdot k})(A_{r\ell}-\bar A_{\cdot\ell}),\qquad s^2_{\rm macro}=\frac1{K^2}\sum_{k,\ell}S_{k\ell}

오른쪽 등식은 각 행의 동일가중 접힘 평균을 구한 뒤 그 행 평균들의 표본분산식을 계산한 결과와 정확히 같습니다. R≥2에서 성립하는 대수적 검산입니다. 행이 어떤 확률 표집으로 생겼는지 몰라도 유한 숫자들의 등식은 확인할 수 있습니다.

한 행에 결측 점수가 있으면 이 엔진은 그 행 전체를 공분산 계산에서 제외합니다. 열 쌍마다 다른 행을 쓰면 하나의 공통 중심화 행렬에서 나온 공분산이라는 구조가 깨질 수 있습니다. 사용할 반복이 하나뿐이면 R−1 분산은 미정의이지0이 아닙니다.

Store K fold scores per row in a matrix with R repetitions. Keep a common set of rows observed in every column, center each column and divide summed products by R−1. Computing this finite sample-covariance formula differs from calling it an unbiased population estimate, which would require additional sampling assumptions.

Skℓ=1R−1∑r=1R(Ark−Aˉ⋅k)(Arℓ−Aˉ⋅ℓ),smacro2=1K2∑k,ℓSkℓS_{k\ell}=\frac1{R-1}\sum_{r=1}^{R}(A_{rk}-\bar A_{\cdot k})(A_{r\ell}-\bar A_{\cdot\ell}),\qquad s^2_{\rm macro}=\frac1{K^2}\sum_{k,\ell}S_{k\ell}

The right expression exactly equals the sample variance of the equally weighted fold mean in each row. This is an algebraic check for R at least two, independent of how the finite numbers were collected.

If any fold loss is missing, this engine excludes that repeat row as a whole. Pair-specific row deletion need not preserve a covariance matrix built from one common centered frame. With one complete repeat, the R−1 variance is undefined, not zero.

대학원 연결Graduate bridge

보편적인 분산 공식의 한계와 추가 가정Limits of a universal variance formula and additional assumptions

Bengio와 Grandvalet의 연구는 K겹 CV 오차의 의존 구조에서 모든 허용 분포에 두루 불편향인 일반 분산 추정 공식을 만들 수 없다는 문제를 다룹니다. 접힘들이 나누어져 있다는 사실만으로 분산 추정의 전제가 채워지지 않는 이유를 읽을 수 있습니다. 이 결과를 모든 특별한 모형이나 추가 자료에서도 분산을 추정할 수 없다는 뜻으로 확대하지 않습니다.

이 장의 공분산 API는 다른 약속을 합니다. 입력한 유한 반복 행렬의 공분산·평균·등식 잔차를 정확히 계산합니다. 독립 신규 자료를 여러 번 모았는지, 알려진 상관 모형을 가정했는지, 같은 자료의 분할만 바꾸었는지에 따라 통계적 해석은 달라집니다. 하나의 계산 결과로 그 조건을 대신 확인할 수 없습니다.

원문 읽기에서는 저자들이 설정한 IID 관측·대칭 학습 절차와 CV 오차 모멘트 구조를 먼저 확인하세요. 이 장의 짧은 설명은 그 정리 전체의 증명을 대체하지 않습니다.

Bengio·Grandvalet 원문

Bengio and Grandvalet study why the dependence structure of K-fold CV errors prevents a general variance formula from being unbiased across all admissible distributions. This is not a claim that variance is unestimable under every special model or with additional data.

Our API makes a finite computational promise instead: exact covariance, means and identity residual for the supplied repeat matrix. Interpretation changes with independently collected datasets, a known dependence model, or repeated splits of the same observations. A calculation cannot verify those conditions for you.

In the primary paper, first identify IID observations, symmetric learning procedures and the CV-error moment structure. This short discussion does not replace their full proof.

Bengio and Grandvalet primary paper

학부 심화 · 선택Advanced undergraduate · optional

실제 자료의 반복은 새 사람을 만든 것이 아니다Repeating actual-data splits does not create new people

실제 NLS 자료에서는 같은3,017명을 두 고정 일정으로 나눕니다. 일정A의 바깥 사용 행 수는758,756,743,760이고 B는753,763,747,754입니다. 각각의 pooled와 macro가 조금 다른 이유도 이 질량 차이에서 확인할 수 있습니다. 어떤 행이 결측 때문에 제외되었는지도 원위치에 남아 있습니다.

두 일정의 macro 점수는 약0.22443808과0.22599068입니다. 이 두 수의 R−1 표본분산식은 약1.20529×10⁻⁶입니다. 이는 이 두 일정의 평균 점수가 얼마나 떨어져 있는지 나타내는 기술량입니다. 같은 사람을 다시 나눈 두 행을 독립된 신규 모집단 표본으로 바꾸어 주는 수가 아닙니다.

같은 NLS 관측의 두 고정 일정
일정사용 행pooled Brier 근사macro Brier 근사
A30170.224449390.22443808
B30170.225992310.22599068

또한 위 공분산 등식은 동일가중 macro에 대한 것입니다. 접힘별 질량이 일정마다 달라지는 pooled 평균의 분산으로 자동 이름을 바꾸지 않습니다. 이 차이는 유한 대수 단계에서도 중요합니다.

The actual NLS study partitions the same 3,017 people under two fixed schedules. Eligible outer counts are 758,756,743,760 for A and 753,763,747,754 for B. Unequal masses explain why pooled and macro scores differ slightly; missing exclusions keep their original positions.

Macro scores are approximately 0.22443808 and 0.22599068. Their two-row R−1 sample variance is about 1.20529×10⁻⁶. It describes the separation of these two fixed-schedule averages. It does not turn repeated partitions of the same people into independent new population samples.

Two fixed schedules of the same NLS observations
ScheduleEligible rowsApproximate pooled BrierApproximate macro Brier
A30170.224449390.22443808
B30170.225992310.22599068

The covariance identity concerns an equally weighted macro mean. It does not automatically become a variance formula for pooled risks whose fold masses change between schedules. The distinction matters even in finite algebra.

학부 심화 · 선택Advanced undergraduate · optional

선택 빈도는 최적 모형의 확률과 다르다Selection frequency is not a probability of optimality

실제 국가에서는 일정A의 네 바깥 선택이4,1,1,6이고, B는4,1,4,1입니다. 여덟 번의 선택 중 후보1이4번, 후보4가3번, 후보6이1번입니다. 이는 어느 후보가 이 유한 훈련 범위들에서 자주 선택되었는지 보여 줍니다. 모집단에서 후보1이 최적일 확률이1/2이라는 뜻은 아닙니다.

NLS에서는 후보7이 여덟 중7번, 후보8이1번 선택됩니다. 반면 기업에서는 일정A가 후보16을 네 번, B가 후보9를 한 번·14를 세 번 선택합니다. 같은 표적과 후보 목록에서도 관측 범위·전처리·검증 자료가 달라지며 선택이 바뀔 수 있습니다.

선택 빈도와 함께 후보 간 손실 차이, 각 접힘의 양성 수, 배운 중앙값도 보세요. 빈도가 높아도 후보 사이 점수가 거의 같을 수 있고, 하나의 중요한 집단에서만 선택이 바뀔 수도 있습니다. 다음 장에서는 불균형과 집단별 손실을 더 세밀하게 읽습니다.

Actual country outer choices are 4,1,1,6 under A and 4,1,4,1 under B. Candidate one appears four times, four appears three times and six once. These are frequencies in eight finite training scopes, not a one-half population probability that candidate one is optimal.

For NLS, candidate seven is selected seven times and eight once. Company A selects sixteen four times; B selects nine once and fourteen three times. Even with fixed targets and grids, different training scopes, preprocessing and validation frames can change choices.

Read loss gaps, class counts and fitted medians alongside frequencies. A frequent winner can be nearly tied, while an important subgroup can drive one change. The next chapter examines imbalance and group-specific losses more closely.

학부 심화 · 선택Advanced undergraduate · optional

짝지은 비교와 반복 단위의 확인Paired comparisons and the unit of repetition

두 후보를 비교할 때 같은 보유 행·같은 접힘에서 손실 차이를 구하면 어떤 평가 범위가 차이를 만들었는지 읽기 쉽습니다. 여덟 카드의 후보1과2를 고정해 비교하면 바깥0에서는 후보1이 더 좋고 바깥1에서는 후보2가 더 좋습니다. 두 차이를 평균하면 후보2의 작은 전역 우위3/3200이 됩니다.

같은 바깥 범위에서 후보1−후보2
범위후보1 Brier후보2 Brier차이
013/6491/400−39/1600
19/3251/20021/800

짝지었다는 사실만으로 두 접힘 차이가 독립이 되지는 않습니다. 두 숫자에 t검정이나 정규 근사를 자동 적용하기 전에 어떤 반복·표집·교환가능성 전제가 필요한지 따로 검토해야 합니다. 여기서는 전역 평균, 부호와 범위를 기술합니다.

실제 비교도 동일한 ID의 보유 예측을 나란히 저장해 두면 같은 원칙으로 읽을 수 있습니다. 알고리즘 이름 두 개의 최종 점수만 남기는 것보다 손실이 어디에서 달라졌는지 확인하기 쉽습니다.

Comparing losses on the same held rows and folds makes the source of a difference easier to inspect. Fix candidates one and two in the eight-card example. Candidate one wins outer zero, while candidate two wins outer one. The mean paired difference is candidate two’s small global advantage of 3/3200.

Candidate one minus two on the same outer frame
FrameCandidate 1 BrierCandidate 2 BrierDifference
013/6491/400−39/1600
19/3251/20021/800

Pairing alone does not make fold differences independent. A t-test or normal approximation needs a separately justified sampling, repetition or exchangeability argument. Here we describe the mean, signs and scopes.

Store paired held predictions with their IDs for actual studies too. This exposes where losses differ more clearly than two final algorithm scores alone.

학부 심화 · 선택Advanced undergraduate · optional

실습 D: 한 번에 중첩하고 ID로 경계를 검산하기Lab D: run the nested ledger and audit its boundaries

실습 D에 여덟 카드와 두 바깥 접힘을 넣고, 각 바깥 보유 위치에 null인 안쪽 벡터를 입력하세요. 후보 순서는 빈 특징 α1, 중앙값 α1, 중앙값 α4입니다. 바깥 선택2,1과 전체407/1600을 먼저 확인한 뒤 각 안쪽 후보 표와 바깥 중앙값4,3을 펼쳐 보세요.

범위 검산도 해 봅시다. 바깥0 보유 Y만 바꾸면 그 바깥의 안쪽 선택·적합은 유지되어야 하지만 보유 손실은 달라질 수 있습니다. 바깥1은 그 행을 훈련에 쓰므로 그쪽 결과까지 같아야 한다고 요구하지 않습니다.

이번에는 바깥0 보유 X를 바꾸고 그 바깥의 배운 중앙값이 유지되는지 확인하세요. 최종 전체 적합은 평가 이후 모든 입력을 사용하므로 바뀔 수 있습니다. 현재 실습의 전체 결과 구조와 고정 Python·R 보관 예제는 서로 다른 입력의 계산으로 구분해 읽습니다.

Enter the eight cards, two outer folds and per-outer inner vectors with null at outer-held positions. Declare candidates in order: empty alpha one, median alpha one, median alpha four. Check outer choices two and one and risk 407/1600, then inspect all inner criteria and outer medians four and three.

Audit scopes by editing only outer-zero held targets. Its inner choice and fitting must remain fixed, while held loss can change. Outer one trains on those rows, so its result need not remain unchanged.

Now edit outer-zero held X and verify that its fitted median stays fixed. The final all-data fit occurs after assessment and may change. Read live result structures separately from archived Python/R studies, which retain their own fixed inputs.

대학원 연결Graduate bridge

고정된 한 모형과 반복 가능한 학습 절차A fitted model versus a repeatable learning procedure

시험을 치른 학생 한 명의 실력과, 같은 수업을 다른 학생들에게 반복했을 때의 평균 성과는 다른 질문입니다. 학습 자료 D를 고정한 예측기 f_D의 위험은, 그 모형을 그대로 둔 채 앞으로 만날 독립 관측의 손실을 평균한 것입니다. 알고리즘 위험은 자료 D 자체도 다시 뽑아 적합했을 때 그 위험을 평균합니다.

R(fD)=EZ∼P[ℓ(fD,Z)∣D],Rm(A)=EDm∼Pm[R(A(Dm))]R(f_D)=\mathbb E_{Z\sim P}[\ell(f_D,Z)\mid D],\qquad {\cal R}_m({\cal A})=\mathbb E_{D_m\sim P^m}[R({\cal A}(D_m))]

조건부라는 말은 관측한 자료를 바꾸지 않고 생각한다는 뜻입니다. 중첩 평가에서 각 바깥 적합은 전체보다 작은 훈련 범위를 씁니다. IID 자료와 사전에 고정한 독립적인 분할이라면 바깥 보유 점수의 기대값은 해당 훈련 크기의 선택·적합 절차 위험과 연결할 수 있습니다. 서로 다른 접힘이 의존한다는 문제와 각 보유 행이 자기 적합에서 제외되었다는 성질은 양립합니다.

그러나 지금의 실제 국가·개인·기업 자료가 바로 그 IID 법칙을 충족한다고 확인한 것은 아닙니다. 전체 자료 최종 모형의 조건부 위험이나 다른 훈련 크기의 절차 위험이라고 이름을 바꾸려면 추가 논증이 필요합니다.

One student’s present proficiency and average outcomes from repeating a course with new students are different questions. Conditional risk fixes the observed fitting data D and averages loss on a new independent observation. Algorithmic risk also averages over newly drawn training datasets.

R(fD)=EZ∼P[ℓ(fD,Z)∣D],Rm(A)=EDm∼Pm[R(A(Dm))]R(f_D)=\mathbb E_{Z\sim P}[\ell(f_D,Z)\mid D],\qquad {\cal R}_m({\cal A})=\mathbb E_{D_m\sim P^m}[R({\cal A}(D_m))]

Conditioning means keeping the observed data fixed in this question. Every outer fit uses fewer rows than the final fit. Under IID data and a predeclared data-independent partition, expected outer held loss connects to the selection-and-fitting procedure at that training size. Dependence across folds can coexist with exclusion of a held row from its own fit.

These actual country, person and company studies do not establish that IID law. Renaming their finite scores as conditional risk of the all-data model, or algorithmic risk at another sample size, needs additional reasoning.

대학원 연결Graduate bridge

전체 분산으로 두 변동을 분리하기Separate two sources with total variance

두 종류의 훈련 자료가 같은 확률로 생겨서, 절차가 확률 예측0 또는1을 출력한다고 가정해 봅시다. 새로운 Y는 훈련 자료와 독립이고 양성 확률은1/4입니다. 예측0의 Brier 위험은1/4, 예측1은3/4이므로 절차 평균은1/2입니다. 실제로 예측0을 얻은 사람에게 “당신의 모형 위험은 반드시1/2”라고 말하면 두 질문을 섞습니다.

EDR(fD)=12,Var⁡DR(fD)=116\mathbb E_D R(f_D)=\tfrac12,\qquad \operatorname{Var}_D R(f_D)=\tfrac1{16}

독립 시험 관측 n개를 모아 현재 모형을 채점한다고 합시다. 각 경우 시험 손실은 Bernoulli 변수이고 조건부 분산은3/16입니다. 시험 평균의 전체 분산에는 시험 표집의 변동뿐 아니라 훈련 자료가 만든 위험 차이도 들어갑니다.

Var⁡(R^test)=ED[Var⁡(R^test∣D)]+Var⁡D[R(fD)]=316n+116\operatorname{Var}(\widehat R_{\rm test})=\mathbb E_D[\operatorname{Var}(\widehat R_{\rm test}\mid D)]+\operatorname{Var}_D[R(f_D)]=\frac3{16n}+\frac1{16}

이것은 설명을 위해 정한 확률 모형의 계산입니다. 시험 자료를 많이 모으면 첫 항은 줄지만, 새 훈련 자료를 뽑는 실험의 두 번째 항까지 사라지지는 않습니다. 한 번 적합한 모형의 위험을 정밀하게 측정하는 목표와 학습 절차의 변동을 측정하는 목표를 구별할 수 있습니다.

Assume two equiprobable training-dataset types make a procedure predict zero or one. A new target is independent of training data and positive with probability one quarter. Brier risks are one quarter and three quarters, so procedure-average risk is one half. This does not make the risk of the actually fitted zero predictor one half.

EDR(fD)=12,Var⁡DR(fD)=116\mathbb E_D R(f_D)=\tfrac12,\qquad \operatorname{Var}_D R(f_D)=\tfrac1{16}

Now collect n independent test observations for the current model. In either training case, each test loss is Bernoulli with conditional variance three sixteenths. Total variance of its mean contains both test sampling and training-induced risk variability.

Var⁡(R^test)=ED[Var⁡(R^test∣D)]+Var⁡D[R(fD)]=316n+116\operatorname{Var}(\widehat R_{\rm test})=\mathbb E_D[\operatorname{Var}(\widehat R_{\rm test}\mid D)]+\operatorname{Var}_D[R(f_D)]=\frac3{16n}+\frac1{16}

This is a deliberately assumed probability model. More independent test observations reduce the first term, but not variability from drawing a new training set. Precisely measuring one fitted model and characterizing a learning procedure are different goals.

대학원 연결Graduate bridge

독립 시험 자료가 있을 때의 유한 표본 상한A finite-sample bound with independent test data

훈련·선택·전처리를 끝낸 모형을 고정하고, 같은 모집단에서 독립 신규 시험 관측 n개를 얻었다고 합시다. 예측 확률이0~1이고 Y가0/1이면 Brier 손실도0~1입니다. 이 조건에서는 Hoeffding 부등식으로 시험 평균과 그 고정 모형 위험 사이의 편차를 제한할 수 있습니다.

Pr⁡{∣R^test−R(fD)∣≥ε∣D}≤2e−2nε2\Pr\{|\widehat R_{\rm test}-R(f_D)|\ge\varepsilon\mid D\}\le 2e^{-2n\varepsilon^2}

예를 들어 n=200, ε=0.1이면 오른쪽은2e⁻⁴≈0.03663입니다. 분포를 세세하게 정하지 않은 보수적인 상한이지 실제 실패 확률이 그 값이라는 뜻은 아닙니다. 시험 점수0.2가 나왔다면 ±0.1 구간을 위험의 가능한 범위0~1과 교차할 수 있습니다.

같은 시험 표를 보며 모형을 바꿨거나, 손실들이 가구·시간 등에 따라 의존하면 이 고정 모형·독립 시험 논증을 그대로 쓸 수 없습니다. 이 장의 중첩 CV 결과에 n을 전체 행 수로 넣어 위 공식을 자동 적용하지 않습니다.

Telgarsky 강의: Hoeffding 부등식과 균등 편차

Fix the model after all training, selection and preprocessing, then collect n independent new test observations from the same population. Binary-target Brier lies in [0,1]. Hoeffding’s inequality then bounds deviation of the test mean from that fitted model’s risk.

Pr⁡{∣R^test−R(fD)∣≥ε∣D}≤2e−2nε2\Pr\{|\widehat R_{\rm test}-R(f_D)|\ge\varepsilon\mid D\}\le 2e^{-2n\varepsilon^2}

For n=200 and epsilon 0.1, the bound is 2e⁻⁴, approximately 0.03663. It is a conservative upper bound, not the exact failure probability. A test score of 0.2 gives a plus/minus 0.1 interval, intersected with [0,1].

Revising models after inspecting this test table, or dependence within households or time, breaks the direct fixed-model independent-test argument. Do not insert the full sample size into this formula for our nested CV scores.

Telgarsky: Hoeffding inequality and uniform deviations

대학원 연결Graduate bridge

지수 모멘트·Markov·시험 수의 연결Exponential moments, Markov and test-size planning

부등식의 핵심을 짧게 따라갑시다. 고정 모형의 시험 손실을 U_i라 하면, 범위 길이가1인 변수의 중심화 지수 모멘트는 exp(λ²/8) 이하입니다. 시험 관측의 조건부 독립성으로 합의 지수 모멘트가 곱으로 분리됩니다. 음이 아닌 지수에 Markov 부등식을 쓰면 다음 상한이 나옵니다.

Pr⁡{∑i(Ui−E[Ui∣D])≥nε∣D}≤exp⁡(−λnε+nλ2/8)\Pr\{\textstyle\sum_i(U_i-\mathbb E[U_i\mid D])\ge n\varepsilon\mid D\}\le \exp(-\lambda n\varepsilon+n\lambda^2/8)

λ=4ε에서 오른쪽이 exp(−2nε²)이 됩니다. 반대쪽 꼬리에도 같은 논증을 쓰고 두 사건의 확률을 더하면 앞 절의 양측 상한입니다. 이 짧은 전개에서 독립성이 사용된 위치를 찾는 것이 중요합니다. CV의 서로 다른 적합을 공유하는 점수에서는 같은 곱 분리를 근거 없이 넣을 수 없습니다.

δ의 실패 확률 상한과 오차 폭 ε를 먼저 정하면, 아래 식으로 충분한 독립 시험 수를 계획할 수 있습니다. ε=0.1, δ=0.05라면 최소 정수185가 이 상한을 만족합니다. 최선의 필요 표본 수를 구한 것은 아닙니다.

n≥log⁡(2/δ)2ε2n\ge\frac{\log(2/\delta)}{2\varepsilon^2}

Here is the argument’s key step. Write test losses as U_i. A centered variable with range length one has exponential moment at most exp(lambda²/8). Conditional independence factors the moment of the sum. Markov’s inequality applied to its nonnegative exponential gives the display below.

Pr⁡{∑i(Ui−E[Ui∣D])≥nε∣D}≤exp⁡(−λnε+nλ2/8)\Pr\{\textstyle\sum_i(U_i-\mathbb E[U_i\mid D])\ge n\varepsilon\mid D\}\le \exp(-\lambda n\varepsilon+n\lambda^2/8)

Setting lambda=4 epsilon gives exp(−2n epsilon²). Applying the argument to the other tail and adding probabilities gives the two-sided bound. Identify where independence entered; sharing fitted models across CV scores does not justify the same factorization.

Planning epsilon and failure bound delta gives a sufficient independent-test count. With epsilon 0.1 and delta 0.05, the smallest integer satisfying this bound is 185. This is not an optimal necessary sample size.

n≥log⁡(2/δ)2ε2n\ge\frac{\log(2/\delta)}{2\varepsilon^2}
대학원 연결Graduate bridge

고정 유한 후보 전체를 동시에 보장하는 방법A simultaneous guarantee for a fixed finite family

독립 훈련 자료로 이미 적합한 M개 예측기를 같은 신규 검증 자료에서 비교하는 경우를 생각합시다. 각 모형을 고정했을 때의 편차 사건에 앞 부등식을 쓰고 M개 사건의 확률을 더하면, 모든 모형의 오차가 동시에 ε 이하일 조건을 얻습니다. 모형 간 손실이 서로 독립일 필요는 없습니다. 시험 행에 대한 조건과 고정된 유한 목록이 핵심입니다.

Pr⁡{max⁡1≤j≤M∣R^j−Rj∣≥ε∣Dtrain}≤2Me−2nε2\Pr\{\max_{1\le j\le M}|\widehat R_j-R_j|\ge\varepsilon\mid D_{\rm train}\}\le2M e^{-2n\varepsilon^2}

그 동시 사건에서 경험 손실 최소 모형 ĵ는 R_ĵ≤min_j R_j+2ε를 만족합니다. 첫 ε는 선택 모형의 경험값에서 실제값으로, 두 번째는 실제 최선 모형의 실제값에서 경험값으로 이동하면서 생깁니다. 이는 같은 검증으로 선택하는 행위를 전혀 다룰 수 없다는 뜻이 아니라, 목록 전체에 대한 보장이 필요하다는 예입니다.

n=200,M=10,δ=0.05에서는 충분한 ε가 약0.12239로 커집니다. 결과를 보고 끝없이 늘린 목록이나, 같은 검증 자료가 적합에도 들어간 모형에 이 고정 목록 논증을 그대로 적용하지 않습니다. 여기서도 CV 전체에 대한 새 정리를 증명한 것은 아닙니다.

ε=log⁡(2M/δ)2n\varepsilon=\sqrt{\frac{\log(2M/\delta)}{2n}}

Consider M predictors already fitted using independent training data and compared on one new validation set. Add the fixed-model deviation bounds across M events to obtain a simultaneous guarantee. Losses across models need not be independent; conditions on test rows and the fixed finite family matter.

Pr⁡{max⁡1≤j≤M∣R^j−Rj∣≥ε∣Dtrain}≤2Me−2nε2\Pr\{\max_{1\le j\le M}|\widehat R_j-R_j|\ge\varepsilon\mid D_{\rm train}\}\le2M e^{-2n\varepsilon^2}

On that simultaneous event, empirical minimizer j-hat satisfies R_j-hat ≤ min R_j+2 epsilon: one deviation moves the winner’s empirical risk to true risk, and another moves the true best model’s risk to its empirical value. Selection on validation can thus be studied using a family-wide guarantee.

With n=200, M=10 and delta 0.05, sufficient epsilon grows to approximately 0.12239. An adaptively expanded family or models fitted on that validation set require another argument. This is not a new universal CV theorem.

ε=log⁡(2M/δ)2n\varepsilon=\sqrt{\frac{\log(2M/\delta)}{2n}}
학부 심화 · 선택Advanced undergraduate · optional

새 행·새 집단·미래라는 서로 다른 질문New rows, new groups and the future

학교마다20명씩 여섯 학교에서 자료를 모았다면, 무작위로 학생 행을 나눈 결과는 이미 본 학교의 다른 학생에 가까운 질문일 수 있습니다. 처음 보는 학교에 적용하려면 학교 전체를 보유하는 설계가 필요할 수 있습니다. 120행이라는 표기만으로120개의 독립 학교를 관측한 것이 되지는 않습니다.

미래 수요를 예측하는 기업이라면 예측 시점에 알 수 있던 특징, 결과가 확정된 시점, 훈련에 쓸 수 있는 과거를 맞춰야 합니다. 같은 연도의 GDP와 기대수명을 비교하는 이 장의 국가 사례는 그 자체로 미래 예측이 아닙니다. SHA256 순서로 나눈 회사 행도 시계열 분할이나 새 통신사 검증을 구현한 것이 아닙니다.

집단·시간·공간 구조를 어떤 목표에 맞게 나눌지는 ML15에서 더 다룹니다. 여기서는 “분할 A/B를 바꾸기”와 “평가 대상을 바꾸는 설계”를 구별하고, 지원하지 않는 일반화 목표를 보고서에 보태지 않는 연습을 합니다.

Six schools with twenty students each give 120 rows, not 120 independent schools. Splitting student rows can assess another student from an already represented school. Applying the system to a new school may require holding out whole schools.

Future-demand prediction also needs features available at prediction time, outcome availability and permissible training history aligned. Our same-year GDP and life-expectancy example is not prospective forecasting. SHA256 company-row partitions implement neither time validation nor evaluation on a new telecom provider.

ML15 develops group, temporal and spatial assessment. Here distinguish changing fixed schedules A/B from redesigning the generalization target, and keep unsupported targets out of the report.

학부 심화 · 선택Advanced undergraduate · optional

연구 계획서와 평가 장부를 함께 쓰기Write an analysis plan and an assessment ledger

작은 분석 계획서를 먼저 써 봅시다. 예를 들어 “1976년 관측된 이 자료의 완전 행에서 임금500센트/시간 이상 여부를 구분하며, 중앙값·부분집합·α 선택을 포함한 절차를 두 고정 일정으로 기술한다”라고 적습니다. 이 한 문장에 시점, 표적, 포함 범위, 절차와 반복 범위가 들어갑니다. 인과 효과나 모든 노동시장으로의 수송은 아직 주장하지 않습니다.

실행 전 계획과 실행 후 보고
항목계획에 적을 것결과에서 대조할 것
단위·표적누구의 언제 결과인가관측 수·양성 수·제외 ID
절차특징·중앙값·후보·동률 규칙각 범위에서 배운 값·선택
평가바깥·안쪽 분할·주 손실pooled/macro·보유 예측
민감도미리 정한 A/B와 대안전체 후보 손실·선택 빈도
추론필요한 표집·의존 가정가정과 단순 기술량의 구분

계산 예산과 사람이 결과를 보고 내린 수정도 기록하세요. 결과를 본 뒤 α4를 새로 넣었다면 그 탐색을 평가 밖의 과거로 지울 수 없습니다. 최종 전체 적합을 배포한다면 어떤 최종 후보가 어떤 전체 자료로 선택되었는지도 바깥 평가 모형들과 구별해 남깁니다.

Write a short analysis plan first. For example: “Describe a pipeline for wage at least 500 nominal cents per hour among complete 1976 records, including median preprocessing, feature subsets and alpha selection, under two fixed schedules.” The sentence states time, target, inclusion, procedure and repeat scope. It does not claim a causal effect or transport to all labor markets.

Before execution and after execution
ItemPredeclareAudit in results
Unit and targetWhose outcome, at what timeRows, positives, excluded IDs
ProcedureFeatures, medians, candidates, tiesFitted values and choices by scope
AssessmentOuter/inner schedules, primary lossPooled/macro and held predictions
SensitivityDeclared A/B and alternativesAll criteria and selection frequencies
InferenceSampling and dependence assumptionsSeparate assumptions from descriptions

Record computation budgets and human revisions after seeing results. Adding alpha four after inspection is part of search history. If deploying a final all-data fit, record its full-frame tuning and fitting separately from outer assessment models.

학부 심화 · 선택Advanced undergraduate · optional

실습 E: 공분산 등식과 해석 범위를 따로 검산하기Lab E: audit a covariance identity and its interpretation

실습 E의 반복×접힘 행렬에 [[1/5,2/5],[3/10,1/10],[null,1/5]]를 넣습니다. 세 번째 행은 완전하지 않아 제외됩니다. 남은 두 행의 macro 평균은3/10,1/5이고, 공분산 합을4로 나눈 값과 직접 구한 표본분산은 모두1/200입니다.

두 행의 공분산 행렬을 펼쳐 음의 비대각 항을 확인하고, 행내 단순 값1/100과 반복 macro 분산1/200을 비교하세요. 이어 두 번째 행도 불완전하게 바꾸면 완전 반복 하나만 남아 분산이 미정의가 되는지 확인합니다. 미정의를0으로 바꾸지 않습니다.

마지막으로 같은 행렬을 독립 신규 자료 실험, 동일 자료의 고정 분할, 의도적으로 만든 연습 숫자라는 세 맥락으로 설명해 보세요. 수치가 같아도 표집 해석은 달라집니다. 이 실습은 유한 대수와 그 해석을 분리해 말하는 훈련입니다.

In Lab E enter [[1/5,2/5],[3/10,1/10],[null,1/5]]. The third row is incomplete and excluded. Remaining macro means are 3/10 and 1/5. Summing covariance entries and dividing by four matches their direct sample variance, 1/200.

Inspect negative off-diagonal terms and compare within-row naive values of 1/100 with between-repeat macro variance 1/200. Make the second row incomplete too: one complete repeat remains and variance becomes undefined, not zero.

Explain the same matrix as independent new-dataset experiments, fixed partitions of one dataset, and constructed practice numbers. Arithmetic can agree while sampling interpretations differ. This lab trains you to state both.

학부 심화 · 선택Advanced undergraduate · optional

국가 사례:16국의 중앙값도 평가 범위 안에서 배운다Country case: learn medians inside each assessment scope

첫 사례는2024년의 선택된16개 국가입니다. World Bank 원관측64개에서 국가별 실질1인당 GDP, 총 GDP 연간 증가율, CPI 상승률과 기간 기대수명을 연결했습니다. 앞의 세 변수를 X로, 기대수명이80년 이상인지 여부를 Y로 정했습니다. 16개 중 양성은8개입니다. 같은 해의 국가 간 관계를 읽는 교육용 단면이며 세계 대표 표본이나 미래 기대수명 예측 실험은 아닙니다.

원 GDP를 미리 하나의 구간으로 자르지 않습니다. 각 안쪽·바깥 훈련 범위에서 중앙값을 새로 배웁니다. 부분집합8개에 α1을 붙이고, 전체 특징의 α0 후보를 마지막에 둬9개를 비교합니다. 후보1은 GDP만, 후보4는 GDP와 증가율, 후보6은 증가율과 CPI를 쓰는 조합입니다. 동률이면 이 선언 순서의 앞 후보를 선택합니다.

국가의 실제 중첩 평가
일정바깥 선택 인덱스중첩 pooled Brier같은 전체 CV의 최소값
A4,1,1,6691/3072 ≈ 0.2249349073/576 ≈ 0.12673611
B4,1,4,1461/4608 ≈ 0.100043401/16 = 0.0625

A의 첫 바깥 보유 국가는 AUS·DEU·IND·SGP입니다. GDP만 쓰는 α1 후보를 고정하면 훈련12국의 GDP 중앙값은 약25,083.7670이고, 아래 셀 확률은1/8·위 셀은3/4입니다. 이 네 국가의 고정 후보 점수13/256을 중첩 선택 결과의 같은 접힘 점수와 구분해 읽으세요. 전자는 후보를 고정한 손계산, 후자는 안쪽 선택까지 수행한 절차입니다.

아래 전체 사례에서16국의 원값·중앙값·모든 후보 점수·보유 예측을 확인하세요. 같은 자료인데 두 일정의 점수가 다른 이유를 특정 국가의 예측과 훈련 셀 구성에서 추적할 수 있습니다. 한 국가만 빠져도 작은 셀의 분자·분모가 크게 달라질 수 있습니다.

국가 전체 사례: 원행에서 중첩 평가까지

1. 원관측·표적·예정 분할의 연결

다음 원행 표는 필요한 특징·원결과·표적·포함 여부를 전부 보존합니다. 원결과 그림의 빈 위치는 원결측이며0으로 채우지 않았습니다. 원위치는 시간 축이 아닙니다. 국가·개인·회사 원필드 전체는 연결 CSV에도 남아 있습니다.

원관측 결과와 보존한 결측
원관측 결과와 보존한 결측 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG
전체 원행 16개 펼치기
전체 분석 원행·제외 행 보존
내부 ID원행원 IDGDP·2015년 불변 USD/인총 GDP 증가·연간%CPI·연간%기대수명·년Y사용바깥A바깥B
AUS:20241AUS
≈ 61486.3861486.38147544
≈ 1.3734081.37340773365975
≈ 3.1665673.16656665428797
≈ 83.0512283.0512195121951
1102
BRA:20242BRA
≈ 9566.7459566.74518687619
≈ 3.4193153.41931516501906
≈ 4.3674644.36746407652336
76.0230113
CAN:20243CAN
≈ 45061.3945061.3864587285
≈ 2.0462662.04626605401701
≈ 2.3815842.38158383281173
≈ 82.1080582.1080487804878
1122
CHN:20244CHN
≈ 13119.1113119.1076099516
≈ 4.9583044.95830378788091
≈ 0.21812890.218128938439177
78.0170131
DEU:20245DEU
≈ 44027.7644027.7631554469
≈ -0.4958519-0.495851897260366
≈ 2.2564982.2564981433876
≈ 80.7926880.7926829268293
1101
FRA:20246FRA
≈ 39683.439683.3953489029
≈ 1.1904681.19046798275883
≈ 1.9974261.99742599742599
≈ 82.9804982.9804878048781
1110
GBR:20247GBR
≈ 47900.9747900.9680144146
≈ 1.0802771.08027716858781
≈ 3.2715733.2715729463592
≈ 81.3868581.3868536585366
1123
IDN:20248IDN
≈ 4367.9474367.94741847938
≈ 5.0325755.03257477088519
≈ 2.1815132.18151273615188
71.2880130
IND:20249IND
≈ 2366.8332366.8328910323
≈ 7.0992797.09927893176518
≈ 4.9530364.9530355097366
72.2350102
JPN:202410JPN
≈ 37976.6437976.6371788298
≈ -0.2400842-0.240084236041696
≈ 2.7385372.7385368163524
≈ 84.0363484.0363414634146
1110
KOR:202411KOR
≈ 37048.4337048.4264001496
≈ 2.0036112.00361101838986
≈ 2.3217432.32174328643542
≈ 83.6292783.6292682926829
1120
MEX:202412MEX
≈ 10284.0310284.0336925726
≈ 1.3505761.35057631384696
≈ 4.7222564.72225588452931
75.2640132
SGP:202413SGP
≈ 68129.768129.6960402288
≈ 5.3435125.3435120192366
≈ 2.3895112.38951123595017
≈ 83.3463483.3463414634146
1103
USA:202414USA
≈ 66856.5166856.5131698371
≈ 2.7931872.79318715363841
≈ 2.9495252.94952520485207
≈ 78.8902478.890243902439
0111
VNM:202415VNM
≈ 4012.5084012.50779921084
≈ 7.0395527.03955197123018
≈ 3.6210933.62109273885843
74.7360123
ZAF:202416ZAF
≈ 5715.4755715.47531469148
≈ 0.53484350.534843531905139
≈ 4.3611524.36115246518962
66.3120131

2. 후보 목록과 전체·안쪽 선택 기준

빈 특징도 후보이며 전처리는 같은 공통 범위에서 배웁니다. 아래 목록은 결과를 보기 전에 고정했습니다. 전체 CV 최소값은 재사용 선택 기준이고, 바깥 보유 손실과 별도입니다. 각 안쪽 범위의 모든 후보 기준과 접힘별 손실까지 펼칠 수 있습니다.

선언 후보 전체·정확 동률은 앞 인덱스
후보특징 번호α이름
0미정의·결측1subset--alpha1
101subset-0-alpha1
211subset-1-alpha1
321subset-2-alpha1
40,11subset-0,1-alpha1
50,21subset-0,2-alpha1
61,21subset-1,2-alpha1
70,1,21subset-0,1,2-alpha1
80,1,20full-alpha0
전체 CV의 모든 후보·재사용 선택 기준
전체 CV의 모든 후보·재사용 선택 기준 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 90
전체·안쪽 모든 후보의 pooled와 macro
일정선택 범위후보특징α사용 행pooledmacro선택
Aouter-0-inner0미정의·결측11277/30077/3000
Aouter-0-inner101121/91/90
Aouter-0-inner2111213/7213/720
Aouter-0-inner32112133/432133/4320
Aouter-0-inner40,1112247/2700247/27001
Aouter-0-inner50,21121909/108001909/108000
Aouter-0-inner61,211285/43285/4320
Aouter-0-inner70,1,21127267/432007267/432000
Aouter-0-inner80,1,201219/12819/1280
Aouter-1-inner0미정의·결측112
≈ 0.28022823931/2940300
≈ 0.2804717824671/2940300
0
Aouter-1-inner101123376/33075
≈ 0.09105152722767/7938000
1
Aouter-1-inner21112133163/529200
≈ 0.24247681924781/7938000
0
Aouter-1-inner3211249859/13230026129/735000
Aouter-1-inner40,11122753/243006379/607500
Aouter-1-inner50,21122897/162003173/202500
Aouter-1-inner61,211212109/43200113/4320
Aouter-1-inner70,1,2112959/48601106/60750
Aouter-1-inner80,1,20123049/1881613421/940800
Aouter-2-inner0미정의·결측1123557/1306817381/653400
Aouter-2-inner1011228223/17640075983/4961251
모든 후보×접힘 기준 펼치기

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 288
모든 후보의 훈련·검증 질량과 손실
일정선택 범위후보접힘훈련 행검증 행검증 양성손실 합Brier
Aouter-0-inner0084226/2513/50
Aouter-0-inner0184111/4
Aouter-0-inner0284226/2513/50
Aouter-0-inner108425/185/72
Aouter-0-inner118417/97/36
Aouter-0-inner128425/185/72
Aouter-0-inner2084225/3625/144
Aouter-0-inner218417/97/36
Aouter-0-inner2284225/3625/144
Aouter-0-inner3084267/3667/144
Aouter-0-inner3184110/95/18
Aouter-0-inner3284213/1813/72
Aouter-0-inner4084252/22513/225
Aouter-0-inner41841143/225143/900
Aouter-0-inner4284252/22513/225
Aouter-0-inner5084226/2513/50
Aouter-0-inner51841187/225187/900
Aouter-0-inner528421/41/16
Aouter-0-inner6084210/95/18
Aouter-0-inner6184113/1613/64

3. 배운 중앙값·셀 확률·한 행의 완전 풀이

A의 첫 바깥 훈련12국에서 GDP 중앙값은 약25,083.7670, 성장률 중앙값은 약2.02494입니다. 안쪽 선택은 후보4, GDP와 성장률 조합을 고릅니다. AUS는 GDP가 중앙값보다 크고 성장률은 작아서 셀(1,0)에 들어갑니다. 그 훈련 셀의4국이 모두 양성이므로 α1 확률은(4+1)/(4+2)=5/6입니다. AUS의 Y=1이므로 보유 Brier는1/36입니다. 앞서 GDP만 고정했을 때의 확률3/4와 구별할 수 있습니다.

첫 특징의 바깥 훈련 중앙값
첫 특징의 바깥 훈련 중앙값 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG

이 구현에서 같은 훈련 범위의 중앙값은 후보 부분집합과 무관하므로 아래는 범위×특징 중복을 한 번으로 줄였습니다. 범주 특징은 중앙값이 미정의인 것이 아니라 중앙값 변환을 적용하지 않는 열이며 원범주를 보존합니다.

모든 구별되는 훈련 중앙값 펼치기

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 126
전체 훈련 범위×특징의 변환
일정적합 범위특징원범주 보존훈련 행정확 중앙값·범주 열은 미적용
Aouter-0-inner-fold-0008
≈ 23666.23236662300463611/10000000000
Aouter-0-inner-fold-0108
≈ 2.419727241972660382771/100000000000000
Aouter-0-inner-fold-0208
≈ 2.66555526655545188319/10000000000000
Aouter-0-inner-fold-1008
≈ 25547.87255478723943907/10000000000
Aouter-0-inner-fold-1108
≈ 1.270522254104429660579/200000000000000
Aouter-0-inner-fold-1208
≈ 3.00505515025274406779/5000000000000
Aouter-0-inner-fold-2008
≈ 25083.77125418835025253/5000000000
Aouter-0-inner-fold-2108
≈ 2.398399479679817202827/200000000000000
Aouter-0-inner-fold-2208
≈ 2.844031568806202120447/200000000000000
Aouter-0-refit0012
≈ 25083.77125418835025253/5000000000
Aouter-0-refit1012
≈ 2.024939404987707240687/200000000000000
Aouter-0-refit2012
≈ 2.844031568806202120447/200000000000000
Aouter-1-inner-fold-0007
≈ 10284.0351420168462863/5000000000
Aouter-1-inner-fold-0107
≈ 2.046266204626605401701/100000000000000
Aouter-1-inner-fold-0207
≈ 2.381584238158383281173/100000000000000
Aouter-1-inner-fold-1009
≈ 13119.1132797769024879/2500000000
Aouter-1-inner-fold-1109
≈ 2.046266204626605401701/100000000000000
Aouter-1-inner-fold-1209
≈ 3.2715734089466182949/1250000000000
Aouter-1-inner-fold-2008
≈ 40538.09162152379111193/4000000000
Aouter-1-inner-fold-2108
≈ 1.688509337701875204961/200000000000000
모든 후보 적합 셀·전체훈련 대체 확률 펼치기

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 1011
모든 적합의 셀 분자·분모·확률
일정적합 범위후보셀행 질량양성확률미관측 셀의 전체훈련 대체
Aouter-0-inner-fold-00(constant)832/52/5
Aouter-0-inner-fold-10(constant)841/21/2
Aouter-0-inner-fold-20(constant)832/52/5
Aouter-0-inner-fold-010401/62/5
Aouter-0-inner-fold-011432/32/5
Aouter-0-inner-fold-111445/61/2
Aouter-0-inner-fold-110401/61/2
Aouter-0-inner-fold-210401/62/5
Aouter-0-inner-fold-211432/32/5
Aouter-0-inner-fold-021401/62/5
Aouter-0-inner-fold-020432/32/5
Aouter-0-inner-fold-121411/31/2
Aouter-0-inner-fold-120432/31/2
Aouter-0-inner-fold-221401/62/5
Aouter-0-inner-fold-220432/32/5
Aouter-0-inner-fold-031401/62/5
Aouter-0-inner-fold-030432/32/5
Aouter-0-inner-fold-130432/31/2
Aouter-0-inner-fold-131411/31/2
Aouter-0-inner-fold-231411/32/5

4. 바깥 보유 예측 전체와 점수의 연결

두 일정의 바깥 보유 확률
두 일정의 바깥 보유 확률 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG
각 바깥 접힘의 중첩 손실
각 바깥 접힘의 중첩 손실 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 46
모든 일정의 행 수·선택·점수·최종 적합
일정양값단위
Aouter0SelectedCandidate4candidate index
Aouter0Rows4rows
Aouter0Brier1/12dimensionless
Aouter1SelectedCandidate1candidate index
Aouter1Rows4rows
Aouter1Brier13/64dimensionless
Aouter2SelectedCandidate1candidate index
Aouter2Rows4rows
Aouter2Brier13/256dimensionless
Aouter3SelectedCandidate6candidate index
Aouter3Rows4rows
Aouter3Brier9/16dimensionless
AretainedRows16rows
AeligibleRows16rows
AexcludedRows0rows
ApositiveRows8rows
AcandidateCount9candidates
AnestedPooledBrier691/3072dimensionless
AnestedMacroBrier691/3072dimensionless
AnonnestedMinimumBrier73/576dimensionless

원행마다 A/B의 보유 접힘·선택·확률·행 손실을 나란히 둡니다. 같은 ID는 각 일정에서 한 번 보유 채점되며, 제외 행의 빈 확률·손실은0이 아닙니다. 각 일정의 사용 행 손실을 모두 더해 사용 행 수로 나누면 pooled입니다. 접힘 평균 네 개를 같은 비중으로 평균하면 macro입니다.

전체 원행의 두 일정 보유 예측 펼치기
모든 원행의 보유 예측 A/B
ID원행사용YA접힘A후보A확률A손실B접힘B후보B확률B손실
AUS:2024111045/61/36245/61/36
BRA:2024210111/81/64311/41/16
CAN:2024311213/41/16245/61/36
CHN:2024410363/49/16111/41/16
DEU:2024511045/61/36117/81/64
FRA:2024611117/81/64045/61/36
GBR:2024711213/41/16313/41/16
IDN:2024810363/49/16041/61/36
IND:2024910041/61/36241/61/36
JPN:20241011117/81/64045/61/36
KOR:20241111213/41/16045/61/36
MEX:20241210363/49/16241/21/4
SGP:20241311041/21/4313/41/16
USA:20241410117/849/64117/849/64
VNM:20241510211/81/64311/41/16
ZAF:20241610363/49/16111/41/16
각 선택된 안쪽·전체 CV·최종 적합 범위의 처음4행 미리보기

이 표만은 명시된 미리보기입니다. 모든 행은 computed-selected-predictions.csv에 있습니다. 최종 전체 적합의 훈련 손실을 독립 시험 점수라고 이름 붙이지 않습니다.

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 134
각 범위의 처음4행·전체 행 수가4미만이면 모두
일정역할범위접힘후보ID사용확률행 손실
Aselected-inner-heldouter-0-inner04CHN:202411/51/25
Aselected-inner-heldouter-0-inner04GBR:202414/51/25
Aselected-inner-heldouter-0-inner04JPN:202414/51/25
Aselected-inner-heldouter-0-inner04ZAF:202411/31/9
Aselected-inner-heldouter-0-inner14BRA:202411/51/25
Aselected-inner-heldouter-0-inner14IDN:202411/51/25
Aselected-inner-heldouter-0-inner14KOR:202412/31/9
Aselected-inner-heldouter-0-inner14USA:202412/34/9
Aselected-inner-heldouter-0-inner24CAN:202414/51/25
Aselected-inner-heldouter-0-inner24FRA:202414/51/25
Aselected-inner-heldouter-0-inner24MEX:202411/31/9
Aselected-inner-heldouter-0-inner24VNM:202411/51/25
Aselected-inner-heldouter-1-inner01AUS:202414/51/25
Aselected-inner-heldouter-1-inner01CHN:202414/516/25
Aselected-inner-heldouter-1-inner01GBR:202414/51/25
Aselected-inner-heldouter-1-inner01SGP:202414/51/25
Aselected-inner-heldouter-1-inner11DEU:202415/61/36
Aselected-inner-heldouter-1-inner11IDN:202411/71/49
Aselected-inner-heldouter-1-inner11KOR:202415/61/36
Aselected-inner-heldouter-1-inner21CAN:202415/61/36

5. 같은 자료 두 일정의 기술 공분산

두 고정 일정의 접힘 공분산·추론 아님
두 고정 일정의 접힘 공분산·추론 아님 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG
4×4 공분산과 macro 분산 등식
접힘k접힘ℓ표본 공분산macro 반복 분산공분산 합/16−직접 분산
001/648
≈ 0.0077989431324801/169869312
0
01-1/1536
≈ 0.0077989431324801/169869312
0
02-25/27648
≈ 0.0077989431324801/169869312
0
031/72
≈ 0.0077989431324801/169869312
0
10-1/1536
≈ 0.0077989431324801/169869312
0
119/32768
≈ 0.0077989431324801/169869312
0
1225/65536
≈ 0.0077989431324801/169869312
0
13-3/512
≈ 0.0077989431324801/169869312
0
20-25/27648
≈ 0.0077989431324801/169869312
0
2125/65536
≈ 0.0077989431324801/169869312
0
22625/1179648
≈ 0.0077989431324801/169869312
0
23-25/3072
≈ 0.0077989431324801/169869312
0
301/72
≈ 0.0077989431324801/169869312
0
31-3/512
≈ 0.0077989431324801/169869312
0
32-25/3072
≈ 0.0077989431324801/169869312
0
331/8
≈ 0.0077989431324801/169869312
0

두 행은 같은 원관측의 A/B입니다. 위 표는 R−1=1로 중심화한 유한 행렬 계산이며, 잔차0은 대수적 등식의 검산입니다. 새 표본의 표준오차·신뢰구간 또는 네 접힘의 독립성을 증명하는 값이 아닙니다.

6. 원자료·계산 CSV·코드와 직접 해볼 일

제공자의 원 설명 · Python · R

Python은 원사실 CSV 세 개의 원열만 읽어 표적·일정·후보를 다시 만들고 Fraction으로 계산했습니다. R은 같은 정의의 이진 부동소수점 재현이며 수치 최소에서1e−12 안의 첫 후보를 선택합니다. 이 실제 여섯 일정의 모든 선택·손실은 정확 Python과 일치했지만, R이 모든 가능한 근접 동률에서 정확 유리수 결정을 한다고 주장하지 않습니다.

직접 해 봅시다. ① 한 원행의 변환을 훈련 중앙값과 비교하세요. ② 그 행이 자기 바깥 훈련에서 빠졌는지 원접힘과 ID로 확인하세요. ③ 한 셀 확률과 행 손실을 손으로 구하세요. ④ 한 안쪽 범위의 모든 후보 기준에서 선택 인덱스를 다시 찾으세요. ⑤ A/B 차이와 최종 전체 적합을 다른 문장으로 설명하세요.

The first study uses sixteen selected countries in 2024. Sixty-four retained World Bank indicator records connect constant-price GDP per capita, total annual GDP growth, CPI inflation and period life expectancy. The first three form X; Y indicates life expectancy at least eighty years. Eight of sixteen targets are positive. This is an educational same-year cross-section, not a representative world sample or a future forecasting experiment.

Every inner/outer fitting frame learns its own medians. Eight feature subsets with alpha one precede a full-feature alpha-zero candidate. Candidate one uses GDP, four GDP and growth, and six growth and CPI; earliest declared exact ties win.

Actual nested country assessment
ScheduleOuter choice indicesNested pooled BrierMinimum full-frame CV
A4,1,1,6691/3072 ≈ 0.2249349073/576 ≈ 0.12673611
B4,1,4,1461/4608 ≈ 0.100043401/16 = 0.0625

A’s first outer holdout is AUS, DEU, IND and SGP. Fixing the GDP-only alpha-one candidate gives a twelve-country training median near 25,083.7670, with low/high cell probabilities 1/8 and 3/4. Its held score 13/256 is a fixed-candidate calculation, distinct from the corresponding nested score after inner selection.

Use the full case below to inspect all sixteen native values, fitted medians, candidate criteria and held predictions. Trace schedule differences to individual predictions and training-cell composition; removing one country can strongly change a small cell’s numerator and denominator.

Country full case: native rows through nested assessment

1. Native observations, targets and planned partitions

The complete analytical row table retains required predictors, native outcomes, constructed targets and eligibility. Missing plot slots are native missing observations, not zeros. Source position is not time. Linked CSVs retain all native fields.

Native outcomes and retained missing slots
Native outcomes and retained missing slots · Point data match the tables below. Enlarge vector original · High-resolution PNG
Expand every native row: 16
All analytical native rows, including exclusions
Internal IDSource rowNative IDGDPpc constant 2015 USDTotal GDP growth annual%CPI annual%Life expectancy yearsYEligibleOuterAOuterB
AUS:20241AUS
≈ 61486.3861486.38147544
≈ 1.3734081.37340773365975
≈ 3.1665673.16656665428797
≈ 83.0512283.0512195121951
1102
BRA:20242BRA
≈ 9566.7459566.74518687619
≈ 3.4193153.41931516501906
≈ 4.3674644.36746407652336
76.0230113
CAN:20243CAN
≈ 45061.3945061.3864587285
≈ 2.0462662.04626605401701
≈ 2.3815842.38158383281173
≈ 82.1080582.1080487804878
1122
CHN:20244CHN
≈ 13119.1113119.1076099516
≈ 4.9583044.95830378788091
≈ 0.21812890.218128938439177
78.0170131
DEU:20245DEU
≈ 44027.7644027.7631554469
≈ -0.4958519-0.495851897260366
≈ 2.2564982.2564981433876
≈ 80.7926880.7926829268293
1101
FRA:20246FRA
≈ 39683.439683.3953489029
≈ 1.1904681.19046798275883
≈ 1.9974261.99742599742599
≈ 82.9804982.9804878048781
1110
GBR:20247GBR
≈ 47900.9747900.9680144146
≈ 1.0802771.08027716858781
≈ 3.2715733.2715729463592
≈ 81.3868581.3868536585366
1123
IDN:20248IDN
≈ 4367.9474367.94741847938
≈ 5.0325755.03257477088519
≈ 2.1815132.18151273615188
71.2880130
IND:20249IND
≈ 2366.8332366.8328910323
≈ 7.0992797.09927893176518
≈ 4.9530364.9530355097366
72.2350102
JPN:202410JPN
≈ 37976.6437976.6371788298
≈ -0.2400842-0.240084236041696
≈ 2.7385372.7385368163524
≈ 84.0363484.0363414634146
1110
KOR:202411KOR
≈ 37048.4337048.4264001496
≈ 2.0036112.00361101838986
≈ 2.3217432.32174328643542
≈ 83.6292783.6292682926829
1120
MEX:202412MEX
≈ 10284.0310284.0336925726
≈ 1.3505761.35057631384696
≈ 4.7222564.72225588452931
75.2640132
SGP:202413SGP
≈ 68129.768129.6960402288
≈ 5.3435125.3435120192366
≈ 2.3895112.38951123595017
≈ 83.3463483.3463414634146
1103
USA:202414USA
≈ 66856.5166856.5131698371
≈ 2.7931872.79318715363841
≈ 2.9495252.94952520485207
≈ 78.8902478.890243902439
0111
VNM:202415VNM
≈ 4012.5084012.50779921084
≈ 7.0395527.03955197123018
≈ 3.6210933.62109273885843
74.7360123
ZAF:202416ZAF
≈ 5715.4755715.47531469148
≈ 0.53484350.534843531905139
≈ 4.3611524.36115246518962
66.3120131

2. Candidates and full/inner selection criteria

The empty subset is a candidate and preprocessing uses the same common frame. The family was fixed before scores. Full-CV minima are reused selection criteria, separate from outer held losses. Expand every inner candidate criterion and fold loss.

Every declared candidate; earliest exact tie wins
CandidateFeature indicesAlphaName
0Undefined / missing1subset--alpha1
101subset-0-alpha1
211subset-1-alpha1
321subset-2-alpha1
40,11subset-0,1-alpha1
50,21subset-0,2-alpha1
61,21subset-1,2-alpha1
70,1,21subset-0,1,2-alpha1
80,1,20full-alpha0
Every full-CV candidate: reused selection criteria
Every full-CV candidate: reused selection criteria · Point data match the tables below. Enlarge vector original · High-resolution PNG

View every row here, twenty at a time.

1–20 / 90
Pooled and macro criteria for every full/inner candidate
ScheduleSelection scopeCandidateFeaturesAlphaRowsPooledMacroSelected
Aouter-0-inner0Undefined / missing11277/30077/3000
Aouter-0-inner101121/91/90
Aouter-0-inner2111213/7213/720
Aouter-0-inner32112133/432133/4320
Aouter-0-inner40,1112247/2700247/27001
Aouter-0-inner50,21121909/108001909/108000
Aouter-0-inner61,211285/43285/4320
Aouter-0-inner70,1,21127267/432007267/432000
Aouter-0-inner80,1,201219/12819/1280
Aouter-1-inner0Undefined / missing112
≈ 0.28022823931/2940300
≈ 0.2804717824671/2940300
0
Aouter-1-inner101123376/33075
≈ 0.09105152722767/7938000
1
Aouter-1-inner21112133163/529200
≈ 0.24247681924781/7938000
0
Aouter-1-inner3211249859/13230026129/735000
Aouter-1-inner40,11122753/243006379/607500
Aouter-1-inner50,21122897/162003173/202500
Aouter-1-inner61,211212109/43200113/4320
Aouter-1-inner70,1,2112959/48601106/60750
Aouter-1-inner80,1,20123049/1881613421/940800
Aouter-2-inner0Undefined / missing1123557/1306817381/653400
Aouter-2-inner1011228223/17640075983/4961251
Expand all candidate-by-fold criteria

View every row here, twenty at a time.

1–20 / 288
Training/validation mass and loss for every candidate
ScheduleSelection scopeCandidateFoldTraining rowsValidation rowsValidation positivesLoss sumBrier
Aouter-0-inner0084226/2513/50
Aouter-0-inner0184111/4
Aouter-0-inner0284226/2513/50
Aouter-0-inner108425/185/72
Aouter-0-inner118417/97/36
Aouter-0-inner128425/185/72
Aouter-0-inner2084225/3625/144
Aouter-0-inner218417/97/36
Aouter-0-inner2284225/3625/144
Aouter-0-inner3084267/3667/144
Aouter-0-inner3184110/95/18
Aouter-0-inner3284213/1813/72
Aouter-0-inner4084252/22513/225
Aouter-0-inner41841143/225143/900
Aouter-0-inner4284252/22513/225
Aouter-0-inner5084226/2513/50
Aouter-0-inner51841187/225187/900
Aouter-0-inner528421/41/16
Aouter-0-inner6084210/95/18
Aouter-0-inner6184113/1613/64

3. Fitted medians, cell probabilities and a complete worked row

A’s first outer fit has twelve training countries, with GDP median about 25,083.7670 and growth median about 2.02494. Inner selection chooses candidate four, GDP plus growth. AUS has above-median GDP and below-median growth, entering cell (1,0). All four training countries in this cell are positive, so alpha one gives (4+1)/(4+2)=5/6 and AUS held Brier is 1/36. This differs from probability 3/4 when GDP alone was fixed.

Outer-training medians of the first feature
Outer-training medians of the first feature · Point data match the tables below. Enlarge vector original · High-resolution PNG

Medians depend on the fitting frame, not the candidate subset in this implementation, so the next table deduplicates frame-by-feature rows. A categorical feature does not receive a median transform; preserve its native numeric category.

Expand every distinct fitted-frame median

View every row here, twenty at a time.

1–20 / 126
Transformers for every fitting frame and feature
ScheduleFit scopeFeatureCategorical retainedFit rowsExact median; inapplicable for categories
Aouter-0-inner-fold-0008
≈ 23666.23236662300463611/10000000000
Aouter-0-inner-fold-0108
≈ 2.419727241972660382771/100000000000000
Aouter-0-inner-fold-0208
≈ 2.66555526655545188319/10000000000000
Aouter-0-inner-fold-1008
≈ 25547.87255478723943907/10000000000
Aouter-0-inner-fold-1108
≈ 1.270522254104429660579/200000000000000
Aouter-0-inner-fold-1208
≈ 3.00505515025274406779/5000000000000
Aouter-0-inner-fold-2008
≈ 25083.77125418835025253/5000000000
Aouter-0-inner-fold-2108
≈ 2.398399479679817202827/200000000000000
Aouter-0-inner-fold-2208
≈ 2.844031568806202120447/200000000000000
Aouter-0-refit0012
≈ 25083.77125418835025253/5000000000
Aouter-0-refit1012
≈ 2.024939404987707240687/200000000000000
Aouter-0-refit2012
≈ 2.844031568806202120447/200000000000000
Aouter-1-inner-fold-0007
≈ 10284.0351420168462863/5000000000
Aouter-1-inner-fold-0107
≈ 2.046266204626605401701/100000000000000
Aouter-1-inner-fold-0207
≈ 2.381584238158383281173/100000000000000
Aouter-1-inner-fold-1009
≈ 13119.1132797769024879/2500000000
Aouter-1-inner-fold-1109
≈ 2.046266204626605401701/100000000000000
Aouter-1-inner-fold-1209
≈ 3.2715734089466182949/1250000000000
Aouter-1-inner-fold-2008
≈ 40538.09162152379111193/4000000000
Aouter-1-inner-fold-2108
≈ 1.688509337701875204961/200000000000000
Expand every candidate fitting cell and global fallback

View every row here, twenty at a time.

1–20 / 1011
Cell numerators, denominators and probabilities for every fit
ScheduleFit scopeCandidateCellRow massPositivesProbabilityGlobal-training unseen fallback
Aouter-0-inner-fold-00(constant)832/52/5
Aouter-0-inner-fold-10(constant)841/21/2
Aouter-0-inner-fold-20(constant)832/52/5
Aouter-0-inner-fold-010401/62/5
Aouter-0-inner-fold-011432/32/5
Aouter-0-inner-fold-111445/61/2
Aouter-0-inner-fold-110401/61/2
Aouter-0-inner-fold-210401/62/5
Aouter-0-inner-fold-211432/32/5
Aouter-0-inner-fold-021401/62/5
Aouter-0-inner-fold-020432/32/5
Aouter-0-inner-fold-121411/31/2
Aouter-0-inner-fold-120432/31/2
Aouter-0-inner-fold-221401/62/5
Aouter-0-inner-fold-220432/32/5
Aouter-0-inner-fold-031401/62/5
Aouter-0-inner-fold-030432/32/5
Aouter-0-inner-fold-130432/31/2
Aouter-0-inner-fold-131411/31/2
Aouter-0-inner-fold-231411/32/5

4. Every outer held prediction and its score

Outer held probabilities under two schedules
Outer held probabilities under two schedules · Point data match the tables below. Enlarge vector original · High-resolution PNG
Nested loss in each outer fold
Nested loss in each outer fold · Point data match the tables below. Enlarge vector original · High-resolution PNG

View every row here, twenty at a time.

1–20 / 46
All schedules: counts, selections, scores and final fitting
ScheduleQuantityValueUnit
Aouter0SelectedCandidate4candidate index
Aouter0Rows4rows
Aouter0Brier1/12dimensionless
Aouter1SelectedCandidate1candidate index
Aouter1Rows4rows
Aouter1Brier13/64dimensionless
Aouter2SelectedCandidate1candidate index
Aouter2Rows4rows
Aouter2Brier13/256dimensionless
Aouter3SelectedCandidate6candidate index
Aouter3Rows4rows
Aouter3Brier9/16dimensionless
AretainedRows16rows
AeligibleRows16rows
AexcludedRows0rows
ApositiveRows8rows
AcandidateCount9candidates
AnestedPooledBrier691/3072dimensionless
AnestedMacroBrier691/3072dimensionless
AnonnestedMinimumBrier73/576dimensionless

Each native row has side-by-side held fold, choice, probability and loss for A/B. Eligible IDs are held once per schedule. Empty probability/loss on exclusions is not zero. Summing eligible losses and dividing by eligible count gives pooled risk; equally averaging four fold risks gives macro.

Expand both schedules’ held predictions for every native row
A/B held predictions for every native row
IDSource rowEligibleYA foldA choiceA probabilityA lossB foldB choiceB probabilityB loss
AUS:2024111045/61/36245/61/36
BRA:2024210111/81/64311/41/16
CAN:2024311213/41/16245/61/36
CHN:2024410363/49/16111/41/16
DEU:2024511045/61/36117/81/64
FRA:2024611117/81/64045/61/36
GBR:2024711213/41/16313/41/16
IDN:2024810363/49/16041/61/36
IND:2024910041/61/36241/61/36
JPN:20241011117/81/64045/61/36
KOR:20241111213/41/16045/61/36
MEX:20241210363/49/16241/21/4
SGP:20241311041/21/4313/41/16
USA:20241410117/849/64117/849/64
VNM:20241510211/81/64311/41/16
ZAF:20241610363/49/16111/41/16
First four rows per selected inner/full-CV/final-fit frame

This table is an explicitly bounded preview. Every row remains in computed-selected-predictions.csv. Final all-data training loss is not an independent test score.

View every row here, twenty at a time.

1–20 / 134
First four rows per frame, or all when fewer
ScheduleRoleScopeFoldCandidateIDEligibleProbabilityRow loss
Aselected-inner-heldouter-0-inner04CHN:202411/51/25
Aselected-inner-heldouter-0-inner04GBR:202414/51/25
Aselected-inner-heldouter-0-inner04JPN:202414/51/25
Aselected-inner-heldouter-0-inner04ZAF:202411/31/9
Aselected-inner-heldouter-0-inner14BRA:202411/51/25
Aselected-inner-heldouter-0-inner14IDN:202411/51/25
Aselected-inner-heldouter-0-inner14KOR:202412/31/9
Aselected-inner-heldouter-0-inner14USA:202412/34/9
Aselected-inner-heldouter-0-inner24CAN:202414/51/25
Aselected-inner-heldouter-0-inner24FRA:202414/51/25
Aselected-inner-heldouter-0-inner24MEX:202411/31/9
Aselected-inner-heldouter-0-inner24VNM:202411/51/25
Aselected-inner-heldouter-1-inner01AUS:202414/51/25
Aselected-inner-heldouter-1-inner01CHN:202414/516/25
Aselected-inner-heldouter-1-inner01GBR:202414/51/25
Aselected-inner-heldouter-1-inner01SGP:202414/51/25
Aselected-inner-heldouter-1-inner11DEU:202415/61/36
Aselected-inner-heldouter-1-inner11IDN:202411/71/49
Aselected-inner-heldouter-1-inner11KOR:202415/61/36
Aselected-inner-heldouter-1-inner21CAN:202415/61/36

5. Descriptive covariance of two schedules of the same data

Fold covariance of two fixed schedules: descriptive
Fold covariance of two fixed schedules: descriptive · Point data match the tables below. Enlarge vector original · High-resolution PNG
The complete 4×4 covariance and macro variance identity
Fold kFold lSample covarianceMacro repeat varianceCovariance sum/16 minus direct variance
001/648
≈ 0.0077989431324801/169869312
0
01-1/1536
≈ 0.0077989431324801/169869312
0
02-25/27648
≈ 0.0077989431324801/169869312
0
031/72
≈ 0.0077989431324801/169869312
0
10-1/1536
≈ 0.0077989431324801/169869312
0
119/32768
≈ 0.0077989431324801/169869312
0
1225/65536
≈ 0.0077989431324801/169869312
0
13-3/512
≈ 0.0077989431324801/169869312
0
20-25/27648
≈ 0.0077989431324801/169869312
0
2125/65536
≈ 0.0077989431324801/169869312
0
22625/1179648
≈ 0.0077989431324801/169869312
0
23-25/3072
≈ 0.0077989431324801/169869312
0
301/72
≈ 0.0077989431324801/169869312
0
31-3/512
≈ 0.0077989431324801/169869312
0
32-25/3072
≈ 0.0077989431324801/169869312
0
331/8
≈ 0.0077989431324801/169869312
0

The two rows are schedules A/B of the same observations. This centers a finite matrix with R−1=1. Zero residual checks algebra, not new-sample standard error, a confidence interval or independence of four folds.

6. Sources, computed CSVs, code and checks to try

Provider documentation · Python · R

Python consumes only native columns of three factual CSVs, reconstructs targets/schedules/candidates and uses Fraction arithmetic. R is a binary64 counterpart retaining the first candidate within 1e−12 of the numerical minimum. All choices/criteria for these six actual studies match exact Python here; R is not a universal exact-rational near-tie decision engine.

Try five checks: compare a native row with fitted medians; use IDs/folds to exclude it from its own outer fit; calculate its cell probability and loss; locate the winner among every inner candidate; then explain A/B sensitivity separately from final all-data fitting.

학부 심화 · 선택Advanced undergraduate · optional

개인 사례: 결측·원 ID·반복 선택을 함께 읽기Person case: read exclusions, native IDs and repeated choices

두 번째 사례는 Card가 공개한 NLS 원자료3,613행입니다. 52개 원필드와 결측을 그대로 보존하고, 1976년 교육 연수 ed76·나이 age76·대학 근접 지표 nearc4를 X로 씁니다. 마지막 변수는 범주로 처리합니다. wage76이 시간당 명목500센트 이상이면 Y=1로 정했습니다. 교육이 임금을 얼마나 올리는지 추정하는 인과 모형은 아닙니다.

X와 Y가 모두 있는3,017행을 같은 공통 범위로 씁니다. 그중 양성은1,733행이고, 나머지596개 원행은 제외 사유·원위치·예정 접힘과 함께 남깁니다. 원조사 가중치가 파일에 있어도 이 교육 실습의 분석 질량은 모두1입니다. 빈 특징 후보만 더 많은 행을 쓸 수 있게 허용하지 않습니다.

NLS 고정 일정 비교
일정중첩 pooled 근사macro 근사바깥 선택
A0.224449390.224438087,7,7,7
B0.225992310.225990688,7,7,7

후보7은 전체 특징 α1, 후보8은 전체 특징 α0입니다. A에서는 전체 CV 최소값과 중첩 pooled가 실제로 같습니다. 모든 바깥 선택이 같은 후보라는 관측과 함께 읽을 수 있지만, 이것만으로 선택 편향이 언제나 없다고 결론내리지는 않습니다. B에서는 한 바깥 범위가 α0를 고릅니다.

개인 사례 표에서 원자료1행의 원 ID가2라는 점을 확인하세요. 화면 행 번호·원 ID·내부 문자열 식별자는 다른 역할입니다. 단위도 현재의 달러 임금이 아니라 이 원자료에 기록된1976년 명목 센트/시간입니다. 원자료의 사회·시대적 범위는 모형을 현대 노동시장에 적용하는 질문과 따로 검토해야 합니다.

개인 전체 사례: 원행에서 중첩 평가까지

1. 원관측·표적·예정 분할의 연결

다음 원행 표는 필요한 특징·원결과·표적·포함 여부를 전부 보존합니다. 원결과 그림의 빈 위치는 원결측이며0으로 채우지 않았습니다. 원위치는 시간 축이 아닙니다. 국가·개인·회사 원필드 전체는 연결 CSV에도 남아 있습니다.

원관측 결과와 보존한 결측
원관측 결과와 보존한 결측 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG
전체 원행 3613개 펼치기

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 3613
전체 분석 원행·제외 행 보존
내부 ID원행원 ID교육·년나이·년nearc4 원범주원임금·명목 센트/시간Y사용바깥A바깥B
person:11272905481103
person:223122704810111
person:334123407211122
person:445112712500131
person:556123417291100
person:667122615001113
person:778183315651122
person:889142916081130
person:9910122814250100
person:101011122915151112
person:11111292812250121
person:121213122614000131
person:131314112414170100
person:141415113012170112
person:151516163118941123
person:161617142413000133
person:17171811341미정의·결측미정의·결측000
person:181819123413460110
person:191920142916581123
person:202022102615751132

2. 후보 목록과 전체·안쪽 선택 기준

빈 특징도 후보이며 전처리는 같은 공통 범위에서 배웁니다. 아래 목록은 결과를 보기 전에 고정했습니다. 전체 CV 최소값은 재사용 선택 기준이고, 바깥 보유 손실과 별도입니다. 각 안쪽 범위의 모든 후보 기준과 접힘별 손실까지 펼칠 수 있습니다.

선언 후보 전체·정확 동률은 앞 인덱스
후보특징 번호α이름
0미정의·결측1subset--alpha1
101subset-0-alpha1
211subset-1-alpha1
321subset-2-alpha1
40,11subset-0,1-alpha1
50,21subset-0,2-alpha1
61,21subset-1,2-alpha1
70,1,21subset-0,1,2-alpha1
80,1,20full-alpha0
전체 CV의 모든 후보·재사용 선택 기준
전체 CV의 모든 후보·재사용 선택 기준 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 90
전체·안쪽 모든 후보의 pooled와 macro
일정선택 범위후보특징α사용 행pooledmacro선택
Aouter-0-inner0미정의·결측12259
≈ 0.2441584405374226287501999945/1660291941245673314736
≈ 0.24415553064359081797246548605431/12550852352828499586701264
0
Aouter-0-inner1012259
≈ 0.2385782612559148693109069126056659213/2567540234461956222123657843750
≈ 0.238588369461860188092723553250406564023967/291136916274808105966428784663593750
0
Aouter-0-inner2112259
≈ 0.23578612005270183317826568921536427/8504616158057926612318813200
≈ 0.235765227360015828979573180929058706907/964350115774039015641273455802000
0
Aouter-0-inner3212259
≈ 0.24024132998335478360486705126497407/12480516868493114779216636044
≈ 0.240221123172700706236011982465340398233/512747450077438991300389448521500
0
Aouter-0-inner40,112259
≈ 0.2282775172444656646267433433012647357757043022686516950281/755416768793518194847288825343110891132088323687500
≈ 0.2282772118507311877150867959186663929578919551856833985047643/519137852941518479302776201158136779031022137419437500
0
Aouter-0-inner50,212259
≈ 0.236015382194258717646822589019251218115822476969164513779/348258127494517548823389445972902636544630344614400
≈ 0.23600879319858620946110022464105109698350165985387040802648669/39489467758093327365284703260376834943491283769726784000
0
Aouter-0-inner61,212259
≈ 0.23172164912822542453534739075848727876064866273529/21201401135039713312043295476007547683798000
≈ 0.231683816878209720248408676193074287782017476723422217/72850182305159002161860746434514991718251910000
0
Aouter-0-inner70,1,212259
≈ 0.2257963930812767668845653653076544011705743928492819742159419513349881/4122356498168372286381177053981063359331244306317039386960320000
≈ 0.22578531529580111777765437104410925337336854090595390604366407078285902859/6774487963978700456734336838729876425880015419163995755905860800000
1
Aouter-0-inner80,1,202259
≈ 0.2258471363086138474847419155098412536429193176218826512063/1607663381631517388699958799321314676696707171840000
≈ 0.22583713417190721764862766361765507885117853408941366656456631/15131218862348161440150753656265646157987719279756800000
0
Aouter-1-inner0미정의·결측12261
≈ 0.24526291638812288047686892143/6681860965232834667776
≈ 0.245266612925655080760203827453827/52700422575856876136321280
0
Aouter-1-inner1012261
≈ 0.2387752350442721849192472514144707259541/1467668116512554776463691935560400
≈ 0.238815552886746088292296288492923322094111/2315125392275454942504905926380152400
0
Aouter-1-inner2112261
≈ 0.23623542857740212466703067408754063743/12097004544736679386454751068800
≈ 0.23622279834781028544474094620307944657311/41633513106177991622994537572275200
0
Aouter-1-inner3212261
≈ 0.2412662162427453357751464805609/673229147756158789754490
≈ 0.2412548111797992935517649119226311/463402232228841299731208592
0
Aouter-1-inner40,112261
≈ 0.22882191049290102054090820755796207995778285927/4585620018995727976576003889581601817600
≈ 0.228843215914867460764786681692112999328611149609/69544852035101066924719669780518852864000
0
Aouter-1-inner50,212261
≈ 0.2359168573484504052340162968917031931810868176017/2430876083390781713386176987472181888148480
≈ 0.235942421262573255570849776952801584125055831771817/90117661791161133664763093803590573137817600
0
Aouter-1-inner61,212261
≈ 0.2328599395065646746889765619697280254331678301331/1696580617579302500757771519120520083840000
≈ 0.2328305242768063653917523465411687139126352475199227/1042681550928833314822505245623236268345600000
0
Aouter-1-inner70,1,212261
≈ 0.226525939180767193534714013568885123145168480013880803/172963712331857551958571214574283756413374711200
≈ 0.226541884284666686707371214819247948047656728493055540841/372049076159247053930204578544678880754079363028000
1
Aouter-1-inner80,1,202261
≈ 0.226539231577855135547739698192739643885146326761822292968591562788465405603/139392433459494086519783790219205642413066060943678559347427353783200
≈ 0.22655643512237154617719221436497909914182541249838304000050281094302631724607/15502707349723300750227700967944029562666780930958607047104857311952000
0
Aouter-2-inner0미정의·결측12274
≈ 0.2450007212990265952069573663/869345707080769899300
≈ 0.24498863397956249656786340263243/13869855659742513436430100
0
Aouter-2-inner1012274
≈ 0.239173795492395487455471331/399259645885176178752
≈ 0.239190913712669400624270305448055/57329394424737446174918976
0
모든 후보×접힘 기준 펼치기

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 288
모든 후보의 훈련·검증 질량과 손실
일정선택 범위후보접힘훈련 행검증 행검증 양성손실 합Brier
Aouter-0-inner001504755451
≈ 182.2278103324811/567009
≈ 0.2413613103324811/428091795
Aouter-0-inner011514745428
≈ 182.1365418596329/2298256
≈ 0.2444785418596329/1712200720
Aouter-0-inner021500759427
≈ 187.1895105575067/564001
≈ 0.246626535191689/142692253
Aouter-0-inner101504755451
≈ 178.6108267972433595/1500314642
≈ 0.236570653594486719/226547510942
Aouter-0-inner111514745428
≈ 179.390256785403976096/316546890625
≈ 0.240792256785403976096/235827433515625
Aouter-0-inner121500759427
≈ 180.947221219175165/117267241
≈ 0.238402121219175165/89005835919
Aouter-0-inner201504755451
≈ 180.551913544236044279/75015732100
≈ 0.239141613544236044279/56636877735500
Aouter-0-inner211514745428
≈ 172.3924528870646553/3067830544
≈ 0.2313992528870646553/2285533755280
Aouter-0-inner221500759427
≈ 179.6964175014446105/973944972
≈ 0.2367542175014446105/739224233748
Aouter-0-inner301504755451
≈ 178.856410838641122151/60599668900
≈ 0.236895910838641122151/45752750019500
Aouter-0-inner311514745428
≈ 177.23221033658081/5832225
≈ 0.23789561033658081/4345007625
Aouter-0-inner321500759427
≈ 186.61641823231087903/9769938649
≈ 0.24587151823231087903/7415383434591
Aouter-0-inner401504755451
≈ 174.48148493614033529348/48679184840209
≈ 0.23110128493614033529348/36752784554357795
Aouter-0-inner411514745428
≈ 169.42315032272663342064/88726283208369
≈ 0.227413415032272663342064/66101080990234905
Aouter-0-inner421500759427
≈ 171.774513299441083414899235961/77423857241347562500
≈ 0.22631684433147027804966411987/19588235882060933312500
Aouter-0-inner501504755451
≈ 175.9357614013051479603643706/3489985943174265649
≈ 0.2330274614013051479603643706/2634939387096570564995
Aouter-0-inner511514745428
≈ 175.66551818424638369807399/10351631944420900
≈ 0.23579261818424638369807399/7711965798593570500
Aouter-0-inner521500759427
≈ 181.557577475898986801683/426729365337600
≈ 0.239206177475898986801683/323887588291238400
Aouter-0-inner601504755451
≈ 177.4487196276648859372855/1106103676710769
≈ 0.235031439255329771874571/167021655183326119
Aouter-0-inner611514745428
≈ 167.352621047631025588721/125768176578000
≈ 0.224634421047631025588721/93697291550610000

3. 배운 중앙값·셀 확률·한 행의 완전 풀이

원자료1행·원 id2는 교육7년, 나이29년, 대학 근접0, 임금548센트/시간입니다. A의 바깥0 선택은 전체 특징 α1이고 교육·나이 중앙값은13년·28년입니다. 따라서 변환은(0,1,0)이고, 같은 훈련 셀198명 중 양성89명이어서 확률은(89+1)/(198+2)=9/20입니다. Y=1이므로 이 보유 행 손실은(9/20−1)²=121/400입니다. 원행 자신은 이 셀의198명에 들어가지 않습니다.

첫 특징의 바깥 훈련 중앙값
첫 특징의 바깥 훈련 중앙값 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG

이 구현에서 같은 훈련 범위의 중앙값은 후보 부분집합과 무관하므로 아래는 범위×특징 중복을 한 번으로 줄였습니다. 범주 특징은 중앙값이 미정의인 것이 아니라 중앙값 변환을 적용하지 않는 열이며 원범주를 보존합니다.

모든 구별되는 훈련 중앙값 펼치기

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 126
전체 훈련 범위×특징의 변환
일정적합 범위특징원범주 보존훈련 행정확 중앙값·범주 열은 미적용
Aouter-0-inner-fold-000150413
Aouter-0-inner-fold-010150428
Aouter-0-inner-fold-0211504미정의·결측
Aouter-0-inner-fold-100151413
Aouter-0-inner-fold-110151428
Aouter-0-inner-fold-1211514미정의·결측
Aouter-0-inner-fold-200150013
Aouter-0-inner-fold-210150028
Aouter-0-inner-fold-2211500미정의·결측
Aouter-0-refit00225913
Aouter-0-refit10225928
Aouter-0-refit212259미정의·결측
Aouter-1-inner-fold-000149912
Aouter-1-inner-fold-010149928
Aouter-1-inner-fold-0211499미정의·결측
Aouter-1-inner-fold-100152112
Aouter-1-inner-fold-110152128
Aouter-1-inner-fold-1211521미정의·결측
Aouter-1-inner-fold-200150213
Aouter-1-inner-fold-210150227
모든 후보 적합 셀·전체훈련 대체 확률 펼치기

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 1200
모든 적합의 셀 분자·분모·확률
일정적합 범위후보셀행 질량양성확률미관측 셀의 전체훈련 대체
Aouter-0-inner-fold-00(constant)1504855428/753428/753
Aouter-0-inner-fold-10(constant)1514878879/1516879/1516
Aouter-0-inner-fold-20(constant)1500879440/751440/751
Aouter-0-inner-fold-010896451226/449428/753
Aouter-0-inner-fold-01160840481/122428/753
Aouter-0-inner-fold-110873445446/875879/1516
Aouter-0-inner-fold-111641433434/643879/1516
Aouter-0-inner-fold-2108654589/17440/751
Aouter-0-inner-fold-211635421422/637440/751
Aouter-0-inner-fold-020896428429/898428/753
Aouter-0-inner-fold-021608427214/305428/753
Aouter-0-inner-fold-12160841483/122879/1516
Aouter-0-inner-fold-120906464465/908879/1516
Aouter-0-inner-fold-22090846493/182440/751
Aouter-0-inner-fold-221592415208/297440/751
Aouter-0-inner-fold-030476225113/239428/753
Aouter-0-inner-fold-0311028630631/1030428/753
Aouter-0-inner-fold-130481240241/483879/1516
Aouter-0-inner-fold-131103363871/115879/1516
Aouter-0-inner-fold-23048322946/97440/751

4. 바깥 보유 예측 전체와 점수의 연결

두 일정의 바깥 보유 확률
두 일정의 바깥 보유 확률 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG
각 바깥 접힘의 중첩 손실
각 바깥 접힘의 중첩 손실 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 46
모든 일정의 행 수·선택·점수·최종 적합
일정양값단위
Aouter0SelectedCandidate7candidate index
Aouter0Rows758rows
Aouter0Brier
≈ 0.2234068138094686845421133042024017481267/618130993250555862896463803452800
dimensionless
Aouter1SelectedCandidate7candidate index
Aouter1Rows756rows
Aouter1Brier
≈ 0.2217289215017986771259610861218150069/969733735120429247229140880000
dimensionless
Aouter2SelectedCandidate7candidate index
Aouter2Rows743rows
Aouter2Brier
≈ 0.22318881864793136611233141525892515232959/8355227402512877401502019763200000
dimensionless
Aouter3SelectedCandidate7candidate index
Aouter3Rows760rows
Aouter3Brier
≈ 0.229427816443046431077291251912905152147/71669811876451309447524795606500
dimensionless
AretainedRows3613rows
AeligibleRows3017rows
AexcludedRows596rows
ApositiveRows1733rows
AcandidateCount9candidates
AnestedPooledBrier
≈ 0.2244494272704386492205283428530361120620927616920796876115885119378076102162303984509662466995960697/1214992762412339721830594292255453112828780045372946778443742007273544387741817264087014400000
dimensionless
AnestedMacroBrier
≈ 0.2244381101808241121775645832671513225346863369979554051791903191140955326426496356614092142115078027043/453613943542628609411110190144194670484913456329977718222634959260468384428150501975619481600000
dimensionless
AnonnestedMinimumBrier
≈ 0.2244494272704386492205283428530361120620927616920796876115885119378076102162303984509662466995960697/1214992762412339721830594292255453112828780045372946778443742007273544387741817264087014400000
dimensionless

원행마다 A/B의 보유 접힘·선택·확률·행 손실을 나란히 둡니다. 같은 ID는 각 일정에서 한 번 보유 채점되며, 제외 행의 빈 확률·손실은0이 아닙니다. 각 일정의 사용 행 손실을 모두 더해 사용 행 수로 나누면 pooled입니다. 접힘 평균 네 개를 같은 비중으로 평균하면 macro입니다.

전체 원행의 두 일정 보유 예측 펼치기

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 3613
모든 원행의 보유 예측 A/B
ID원행사용YA접힘A후보A확률A손실B접힘B후보B확률B손실
person:1111079/20121/4003784/19311881/37249
person:2210179/2281/4841793/2628649/68644
person:33112753/1153844/132252796/1939409/37249
person:441037254/51164516/26112117209/42543681/180625
person:551107227/33912544/11492108229/34112544/116281
person:661117122/25517689/6502537253/51669169/266256
person:77112749/61144/37212731/3736/1369
person:881137251/2951936/870250837/4336/1849
person:991007247/49761009/24700908248/51161504/261121
person:10101117227/34914884/1218012756/85841/7225
person:11111027277/41976729/17556117139/20919321/43681
person:12121037254/51164516/26112117209/42543681/180625
person:13131007247/49761009/24700908248/51161504/261121
person:14141017227/34951529/1218012756/853136/7225
person:1515112749/61144/372137235/2832304/80089
person:16161037236/40355696/16240937107/20011449/40000
person:17170미정의·결측07미정의·결측미정의·결측08미정의·결측미정의·결측
person:18181017227/34951529/12180108229/34152441/116281
person:1919112749/61144/372137235/2832304/80089
person:20201137254/51166049/26112127251/51067081/260100
각 선택된 안쪽·전체 CV·최종 적합 범위의 처음4행 미리보기

이 표만은 명시된 미리보기입니다. 모든 행은 computed-selected-predictions.csv에 있습니다. 최종 전체 적합의 훈련 손실을 독립 시험 점수라고 이름 붙이지 않습니다.

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 136
각 범위의 처음4행·전체 행 수가4미만이면 모두
일정역할범위접힘후보ID사용확률행 손실
Aselected-inner-heldouter-0-inner07person:4180/1736400/29929
Aselected-inner-heldouter-0-inner07person:7143/5049/2500
Aselected-inner-heldouter-0-inner07person:101154/2275329/51529
Aselected-inner-heldouter-0-inner07person:161148/26321904/69169
Aselected-inner-heldouter-0-inner17person:2179/1866241/34596
Aselected-inner-heldouter-0-inner17person:8181/97256/9409
Aselected-inner-heldouter-0-inner17person:11140/811600/6561
Aselected-inner-heldouter-0-inner17person:141150/23322500/54289
Aselected-inner-heldouter-0-inner27person:3129/641225/4096
Aselected-inner-heldouter-0-inner27person:61175/32622801/106276
Aselected-inner-heldouter-0-inner27person:121175/32630625/106276
Aselected-inner-heldouter-0-inner27person:151165/194841/37636
Aselected-inner-heldouter-1-inner07person:1149/1134096/12769
Aselected-inner-heldouter-1-inner07person:41125/27315625/74529
Aselected-inner-heldouter-1-inner07person:71191/2311600/53361
Aselected-inner-heldouter-1-inner07person:131125/27315625/74529
Aselected-inner-heldouter-1-inner17person:51127/2076400/42849
Aselected-inner-heldouter-1-inner17person:8191/110361/12100
Aselected-inner-heldouter-1-inner17person:11126/57676/3249
Aselected-inner-heldouter-1-inner17person:170미정의·결측미정의·결측

5. 같은 자료 두 일정의 기술 공분산

두 고정 일정의 접힘 공분산·추론 아님
두 고정 일정의 접힘 공분산·추론 아님 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG
4×4 공분산과 macro 분산 등식
접힘k접힘ℓ표본 공분산macro 반복 분산공분산 합/16−직접 분산
00
≈ 3.089493e-05192626840569218471546072885060887780677267707748676589516318028380695388197113027224755352552499575822925120003592937169/6234901535183985138084074448249138338895132774075845348205082205057358520902910425461278504878428970197075174360699719680000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
01
≈ 2.530516e-0515348359078621963448711680595419142676470502362141019028542317376193213687395950334955537834659658154802420913/606530881150678374965800291867612093910775374688094560526264467911714682165756080861094466912974426292735488000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
02
≈ 1.628693e-053807573999038189874060951080891304442156069922595387256778230572374787435631596687461294079033882303033024827216899/233781022267809689409137903242196257694647292577952934776947161218038630915889885760298655567065246666323024117760000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
03
≈ -4.807807e-05-11286712594711485816448111789064720517492901154800367757362761162524546466938820254714428640817959265719278521/234758021691321710556664264176809298926745698648940196680302279819829206340736817389848932161819177173615052800000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
10
≈ 2.530516e-0515348359078621963448711680595419142676470502362141019028542317376193213687395950334955537834659658154802420913/606530881150678374965800291867612093910775374688094560526264467911714682165756080861094466912974426292735488000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
11
≈ 2.072673e-051222945492487932017961168010144978347761163058185699780677525939839516621447455340474381535684435601/59003291024476877710220512025180496241235544216848991601432984595569645772495083425409889671180800000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
12
≈ 1.334016e-05303384579132225967334580833459115320064886255509154289462476967631961393815578326459159025658259000073123/22742205090527824293363249624205369386907562902527415642662031233191780112434009841668838485554876416000000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
13
≈ -3.937938e-05-899316612414600495222488235939331374219323938437855819748155403548269606011817970837140339177176217/22837247541139510591273240560928480598323505232154429428779609265983645092106348711534632148724480000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
20
≈ 1.628693e-053807573999038189874060951080891304442156069922595387256778230572374787435631596687461294079033882303033024827216899/233781022267809689409137903242196257694647292577952934776947161218038630915889885760298655567065246666323024117760000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
21
≈ 1.334016e-05303384579132225967334580833459115320064886255509154289462476967631961393815578326459159025658259000073123/22742205090527824293363249624205369386907562902527415642662031233191780112434009841668838485554876416000000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
22
≈ 8.586002e-0675262718919703732440012626535324866689505071027624672738576937864479030067933741742764602420096817202841420729/8765746510056050592112685850453420684218350505351147422827059912835880585404360915523882407982252531384320000000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
23
≈ -2.534539e-05-223099715923532967334992386873931289215615005744959539652092577303322391889106023553543208754690947276091/8802379634523983523928312810688581228601560929134349124774248220197693806288662400620115076717302169600000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
30
≈ -4.807807e-05-11286712594711485816448111789064720517492901154800367757362761162524546466938820254714428640817959265719278521/234758021691321710556664264176809298926745698648940196680302279819829206340736817389848932161819177173615052800000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
31
≈ -3.937938e-05-899316612414600495222488235939331374219323938437855819748155403548269606011817970837140339177176217/22837247541139510591273240560928480598323505232154429428779609265983645092106348711534632148724480000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
32
≈ -2.534539e-05-223099715923532967334992386873931289215615005744959539652092577303322391889106023553543208754690947276091/8802379634523983523928312810688581228601560929134349124774248220197693806288662400620115076717302169600000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
33
≈ 7.481813e-05661329858389296681118189345172761141759675345531946509912063514590330359281710707470771596063102689/8839165853289902775841471411113860309344256887275842235102811107198332490373914067712502115164288000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0

두 행은 같은 원관측의 A/B입니다. 위 표는 R−1=1로 중심화한 유한 행렬 계산이며, 잔차0은 대수적 등식의 검산입니다. 새 표본의 표준오차·신뢰구간 또는 네 접힘의 독립성을 증명하는 값이 아닙니다.

6. 원자료·계산 CSV·코드와 직접 해볼 일

제공자의 원 설명 · Python · R

Python은 원사실 CSV 세 개의 원열만 읽어 표적·일정·후보를 다시 만들고 Fraction으로 계산했습니다. R은 같은 정의의 이진 부동소수점 재현이며 수치 최소에서1e−12 안의 첫 후보를 선택합니다. 이 실제 여섯 일정의 모든 선택·손실은 정확 Python과 일치했지만, R이 모든 가능한 근접 동률에서 정확 유리수 결정을 한다고 주장하지 않습니다.

직접 해 봅시다. ① 한 원행의 변환을 훈련 중앙값과 비교하세요. ② 그 행이 자기 바깥 훈련에서 빠졌는지 원접힘과 ID로 확인하세요. ③ 한 셀 확률과 행 손실을 손으로 구하세요. ④ 한 안쪽 범위의 모든 후보 기준에서 선택 인덱스를 다시 찾으세요. ⑤ A/B 차이와 최종 전체 적합을 다른 문장으로 설명하세요.

The person study retains all 3,613 rows and 52 native fields from Card’s public NLS data. Predictors are 1976 schooling ed76, age age76 and categorical college-proximity flag nearc4. Y indicates wage76 at least 500 nominal cents per hour. This is not a causal schooling-return model.

A common 3,017-row complete frame contains 1,733 positives. Retain the other 596 rows with exclusions, native positions and planned folds. Native survey weights are stored, while analytical mass is one. The empty-feature candidate does not gain extra eligible observations.

Fixed NLS schedules
ScheduleApproximate nested pooledApproximate macroOuter choices
A0.224449390.224438087,7,7,7
B0.225992310.225990688,7,7,7

Candidate seven is full-feature alpha one, and eight full-feature alpha zero. Under A, nonnested minimum and nested pooled risk really coincide, alongside unchanged outer choices. This does not establish absence of selection bias in general. Under B, one outer scope selects alpha zero.

Native source row one has original ID two. Distinguish screen row, native ID and internal string identity. Wages are recorded 1976 nominal cents per hour, not present dollars. Historical and social transport to a modern labor market is a separate question.

Person full case: native rows through nested assessment

1. Native observations, targets and planned partitions

The complete analytical row table retains required predictors, native outcomes, constructed targets and eligibility. Missing plot slots are native missing observations, not zeros. Source position is not time. Linked CSVs retain all native fields.

Native outcomes and retained missing slots
Native outcomes and retained missing slots · Point data match the tables below. Enlarge vector original · High-resolution PNG
Expand every native row: 3613

View every row here, twenty at a time.

1–20 / 3613
All analytical native rows, including exclusions
Internal IDSource rowNative IDSchooling yearsAge yearsNative nearc4Native nominal cents/hourYEligibleOuterAOuterB
person:11272905481103
person:223122704810111
person:334123407211122
person:445112712500131
person:556123417291100
person:667122615001113
person:778183315651122
person:889142916081130
person:9910122814250100
person:101011122915151112
person:11111292812250121
person:121213122614000131
person:131314112414170100
person:141415113012170112
person:151516163118941123
person:161617142413000133
person:17171811341Undefined / missingUndefined / missing000
person:181819123413460110
person:191920142916581123
person:202022102615751132

2. Candidates and full/inner selection criteria

The empty subset is a candidate and preprocessing uses the same common frame. The family was fixed before scores. Full-CV minima are reused selection criteria, separate from outer held losses. Expand every inner candidate criterion and fold loss.

Every declared candidate; earliest exact tie wins
CandidateFeature indicesAlphaName
0Undefined / missing1subset--alpha1
101subset-0-alpha1
211subset-1-alpha1
321subset-2-alpha1
40,11subset-0,1-alpha1
50,21subset-0,2-alpha1
61,21subset-1,2-alpha1
70,1,21subset-0,1,2-alpha1
80,1,20full-alpha0
Every full-CV candidate: reused selection criteria
Every full-CV candidate: reused selection criteria · Point data match the tables below. Enlarge vector original · High-resolution PNG

View every row here, twenty at a time.

1–20 / 90
Pooled and macro criteria for every full/inner candidate
ScheduleSelection scopeCandidateFeaturesAlphaRowsPooledMacroSelected
Aouter-0-inner0Undefined / missing12259
≈ 0.2441584405374226287501999945/1660291941245673314736
≈ 0.24415553064359081797246548605431/12550852352828499586701264
0
Aouter-0-inner1012259
≈ 0.2385782612559148693109069126056659213/2567540234461956222123657843750
≈ 0.238588369461860188092723553250406564023967/291136916274808105966428784663593750
0
Aouter-0-inner2112259
≈ 0.23578612005270183317826568921536427/8504616158057926612318813200
≈ 0.235765227360015828979573180929058706907/964350115774039015641273455802000
0
Aouter-0-inner3212259
≈ 0.24024132998335478360486705126497407/12480516868493114779216636044
≈ 0.240221123172700706236011982465340398233/512747450077438991300389448521500
0
Aouter-0-inner40,112259
≈ 0.2282775172444656646267433433012647357757043022686516950281/755416768793518194847288825343110891132088323687500
≈ 0.2282772118507311877150867959186663929578919551856833985047643/519137852941518479302776201158136779031022137419437500
0
Aouter-0-inner50,212259
≈ 0.236015382194258717646822589019251218115822476969164513779/348258127494517548823389445972902636544630344614400
≈ 0.23600879319858620946110022464105109698350165985387040802648669/39489467758093327365284703260376834943491283769726784000
0
Aouter-0-inner61,212259
≈ 0.23172164912822542453534739075848727876064866273529/21201401135039713312043295476007547683798000
≈ 0.231683816878209720248408676193074287782017476723422217/72850182305159002161860746434514991718251910000
0
Aouter-0-inner70,1,212259
≈ 0.2257963930812767668845653653076544011705743928492819742159419513349881/4122356498168372286381177053981063359331244306317039386960320000
≈ 0.22578531529580111777765437104410925337336854090595390604366407078285902859/6774487963978700456734336838729876425880015419163995755905860800000
1
Aouter-0-inner80,1,202259
≈ 0.2258471363086138474847419155098412536429193176218826512063/1607663381631517388699958799321314676696707171840000
≈ 0.22583713417190721764862766361765507885117853408941366656456631/15131218862348161440150753656265646157987719279756800000
0
Aouter-1-inner0Undefined / missing12261
≈ 0.24526291638812288047686892143/6681860965232834667776
≈ 0.245266612925655080760203827453827/52700422575856876136321280
0
Aouter-1-inner1012261
≈ 0.2387752350442721849192472514144707259541/1467668116512554776463691935560400
≈ 0.238815552886746088292296288492923322094111/2315125392275454942504905926380152400
0
Aouter-1-inner2112261
≈ 0.23623542857740212466703067408754063743/12097004544736679386454751068800
≈ 0.23622279834781028544474094620307944657311/41633513106177991622994537572275200
0
Aouter-1-inner3212261
≈ 0.2412662162427453357751464805609/673229147756158789754490
≈ 0.2412548111797992935517649119226311/463402232228841299731208592
0
Aouter-1-inner40,112261
≈ 0.22882191049290102054090820755796207995778285927/4585620018995727976576003889581601817600
≈ 0.228843215914867460764786681692112999328611149609/69544852035101066924719669780518852864000
0
Aouter-1-inner50,212261
≈ 0.2359168573484504052340162968917031931810868176017/2430876083390781713386176987472181888148480
≈ 0.235942421262573255570849776952801584125055831771817/90117661791161133664763093803590573137817600
0
Aouter-1-inner61,212261
≈ 0.2328599395065646746889765619697280254331678301331/1696580617579302500757771519120520083840000
≈ 0.2328305242768063653917523465411687139126352475199227/1042681550928833314822505245623236268345600000
0
Aouter-1-inner70,1,212261
≈ 0.226525939180767193534714013568885123145168480013880803/172963712331857551958571214574283756413374711200
≈ 0.226541884284666686707371214819247948047656728493055540841/372049076159247053930204578544678880754079363028000
1
Aouter-1-inner80,1,202261
≈ 0.226539231577855135547739698192739643885146326761822292968591562788465405603/139392433459494086519783790219205642413066060943678559347427353783200
≈ 0.22655643512237154617719221436497909914182541249838304000050281094302631724607/15502707349723300750227700967944029562666780930958607047104857311952000
0
Aouter-2-inner0Undefined / missing12274
≈ 0.2450007212990265952069573663/869345707080769899300
≈ 0.24498863397956249656786340263243/13869855659742513436430100
0
Aouter-2-inner1012274
≈ 0.239173795492395487455471331/399259645885176178752
≈ 0.239190913712669400624270305448055/57329394424737446174918976
0
Expand all candidate-by-fold criteria

View every row here, twenty at a time.

1–20 / 288
Training/validation mass and loss for every candidate
ScheduleSelection scopeCandidateFoldTraining rowsValidation rowsValidation positivesLoss sumBrier
Aouter-0-inner001504755451
≈ 182.2278103324811/567009
≈ 0.2413613103324811/428091795
Aouter-0-inner011514745428
≈ 182.1365418596329/2298256
≈ 0.2444785418596329/1712200720
Aouter-0-inner021500759427
≈ 187.1895105575067/564001
≈ 0.246626535191689/142692253
Aouter-0-inner101504755451
≈ 178.6108267972433595/1500314642
≈ 0.236570653594486719/226547510942
Aouter-0-inner111514745428
≈ 179.390256785403976096/316546890625
≈ 0.240792256785403976096/235827433515625
Aouter-0-inner121500759427
≈ 180.947221219175165/117267241
≈ 0.238402121219175165/89005835919
Aouter-0-inner201504755451
≈ 180.551913544236044279/75015732100
≈ 0.239141613544236044279/56636877735500
Aouter-0-inner211514745428
≈ 172.3924528870646553/3067830544
≈ 0.2313992528870646553/2285533755280
Aouter-0-inner221500759427
≈ 179.6964175014446105/973944972
≈ 0.2367542175014446105/739224233748
Aouter-0-inner301504755451
≈ 178.856410838641122151/60599668900
≈ 0.236895910838641122151/45752750019500
Aouter-0-inner311514745428
≈ 177.23221033658081/5832225
≈ 0.23789561033658081/4345007625
Aouter-0-inner321500759427
≈ 186.61641823231087903/9769938649
≈ 0.24587151823231087903/7415383434591
Aouter-0-inner401504755451
≈ 174.48148493614033529348/48679184840209
≈ 0.23110128493614033529348/36752784554357795
Aouter-0-inner411514745428
≈ 169.42315032272663342064/88726283208369
≈ 0.227413415032272663342064/66101080990234905
Aouter-0-inner421500759427
≈ 171.774513299441083414899235961/77423857241347562500
≈ 0.22631684433147027804966411987/19588235882060933312500
Aouter-0-inner501504755451
≈ 175.9357614013051479603643706/3489985943174265649
≈ 0.2330274614013051479603643706/2634939387096570564995
Aouter-0-inner511514745428
≈ 175.66551818424638369807399/10351631944420900
≈ 0.23579261818424638369807399/7711965798593570500
Aouter-0-inner521500759427
≈ 181.557577475898986801683/426729365337600
≈ 0.239206177475898986801683/323887588291238400
Aouter-0-inner601504755451
≈ 177.4487196276648859372855/1106103676710769
≈ 0.235031439255329771874571/167021655183326119
Aouter-0-inner611514745428
≈ 167.352621047631025588721/125768176578000
≈ 0.224634421047631025588721/93697291550610000

3. Fitted medians, cell probabilities and a complete worked row

Native row one, original id two, has seven schooling years, age twenty-nine, college proximity zero and wage 548 cents/hour. A outer zero selects all features with alpha one; schooling/age medians are thirteen/twenty-eight. Transformation (0,1,0) enters a training cell with 198 people and 89 positives. Its probability is (89+1)/(198+2)=9/20. Target one gives held loss 121/400. The held person is not one of those 198 fitting people.

Outer-training medians of the first feature
Outer-training medians of the first feature · Point data match the tables below. Enlarge vector original · High-resolution PNG

Medians depend on the fitting frame, not the candidate subset in this implementation, so the next table deduplicates frame-by-feature rows. A categorical feature does not receive a median transform; preserve its native numeric category.

Expand every distinct fitted-frame median

View every row here, twenty at a time.

1–20 / 126
Transformers for every fitting frame and feature
ScheduleFit scopeFeatureCategorical retainedFit rowsExact median; inapplicable for categories
Aouter-0-inner-fold-000150413
Aouter-0-inner-fold-010150428
Aouter-0-inner-fold-0211504Undefined / missing
Aouter-0-inner-fold-100151413
Aouter-0-inner-fold-110151428
Aouter-0-inner-fold-1211514Undefined / missing
Aouter-0-inner-fold-200150013
Aouter-0-inner-fold-210150028
Aouter-0-inner-fold-2211500Undefined / missing
Aouter-0-refit00225913
Aouter-0-refit10225928
Aouter-0-refit212259Undefined / missing
Aouter-1-inner-fold-000149912
Aouter-1-inner-fold-010149928
Aouter-1-inner-fold-0211499Undefined / missing
Aouter-1-inner-fold-100152112
Aouter-1-inner-fold-110152128
Aouter-1-inner-fold-1211521Undefined / missing
Aouter-1-inner-fold-200150213
Aouter-1-inner-fold-210150227
Expand every candidate fitting cell and global fallback

View every row here, twenty at a time.

1–20 / 1200
Cell numerators, denominators and probabilities for every fit
ScheduleFit scopeCandidateCellRow massPositivesProbabilityGlobal-training unseen fallback
Aouter-0-inner-fold-00(constant)1504855428/753428/753
Aouter-0-inner-fold-10(constant)1514878879/1516879/1516
Aouter-0-inner-fold-20(constant)1500879440/751440/751
Aouter-0-inner-fold-010896451226/449428/753
Aouter-0-inner-fold-01160840481/122428/753
Aouter-0-inner-fold-110873445446/875879/1516
Aouter-0-inner-fold-111641433434/643879/1516
Aouter-0-inner-fold-2108654589/17440/751
Aouter-0-inner-fold-211635421422/637440/751
Aouter-0-inner-fold-020896428429/898428/753
Aouter-0-inner-fold-021608427214/305428/753
Aouter-0-inner-fold-12160841483/122879/1516
Aouter-0-inner-fold-120906464465/908879/1516
Aouter-0-inner-fold-22090846493/182440/751
Aouter-0-inner-fold-221592415208/297440/751
Aouter-0-inner-fold-030476225113/239428/753
Aouter-0-inner-fold-0311028630631/1030428/753
Aouter-0-inner-fold-130481240241/483879/1516
Aouter-0-inner-fold-131103363871/115879/1516
Aouter-0-inner-fold-23048322946/97440/751

4. Every outer held prediction and its score

Outer held probabilities under two schedules
Outer held probabilities under two schedules · Point data match the tables below. Enlarge vector original · High-resolution PNG
Nested loss in each outer fold
Nested loss in each outer fold · Point data match the tables below. Enlarge vector original · High-resolution PNG

View every row here, twenty at a time.

1–20 / 46
All schedules: counts, selections, scores and final fitting
ScheduleQuantityValueUnit
Aouter0SelectedCandidate7candidate index
Aouter0Rows758rows
Aouter0Brier
≈ 0.2234068138094686845421133042024017481267/618130993250555862896463803452800
dimensionless
Aouter1SelectedCandidate7candidate index
Aouter1Rows756rows
Aouter1Brier
≈ 0.2217289215017986771259610861218150069/969733735120429247229140880000
dimensionless
Aouter2SelectedCandidate7candidate index
Aouter2Rows743rows
Aouter2Brier
≈ 0.22318881864793136611233141525892515232959/8355227402512877401502019763200000
dimensionless
Aouter3SelectedCandidate7candidate index
Aouter3Rows760rows
Aouter3Brier
≈ 0.229427816443046431077291251912905152147/71669811876451309447524795606500
dimensionless
AretainedRows3613rows
AeligibleRows3017rows
AexcludedRows596rows
ApositiveRows1733rows
AcandidateCount9candidates
AnestedPooledBrier
≈ 0.2244494272704386492205283428530361120620927616920796876115885119378076102162303984509662466995960697/1214992762412339721830594292255453112828780045372946778443742007273544387741817264087014400000
dimensionless
AnestedMacroBrier
≈ 0.2244381101808241121775645832671513225346863369979554051791903191140955326426496356614092142115078027043/453613943542628609411110190144194670484913456329977718222634959260468384428150501975619481600000
dimensionless
AnonnestedMinimumBrier
≈ 0.2244494272704386492205283428530361120620927616920796876115885119378076102162303984509662466995960697/1214992762412339721830594292255453112828780045372946778443742007273544387741817264087014400000
dimensionless

Each native row has side-by-side held fold, choice, probability and loss for A/B. Eligible IDs are held once per schedule. Empty probability/loss on exclusions is not zero. Summing eligible losses and dividing by eligible count gives pooled risk; equally averaging four fold risks gives macro.

Expand both schedules’ held predictions for every native row

View every row here, twenty at a time.

1–20 / 3613
A/B held predictions for every native row
IDSource rowEligibleYA foldA choiceA probabilityA lossB foldB choiceB probabilityB loss
person:1111079/20121/4003784/19311881/37249
person:2210179/2281/4841793/2628649/68644
person:33112753/1153844/132252796/1939409/37249
person:441037254/51164516/26112117209/42543681/180625
person:551107227/33912544/11492108229/34112544/116281
person:661117122/25517689/6502537253/51669169/266256
person:77112749/61144/37212731/3736/1369
person:881137251/2951936/870250837/4336/1849
person:991007247/49761009/24700908248/51161504/261121
person:10101117227/34914884/1218012756/85841/7225
person:11111027277/41976729/17556117139/20919321/43681
person:12121037254/51164516/26112117209/42543681/180625
person:13131007247/49761009/24700908248/51161504/261121
person:14141017227/34951529/1218012756/853136/7225
person:1515112749/61144/372137235/2832304/80089
person:16161037236/40355696/16240937107/20011449/40000
person:17170Undefined / missing07Undefined / missingUndefined / missing08Undefined / missingUndefined / missing
person:18181017227/34951529/12180108229/34152441/116281
person:1919112749/61144/372137235/2832304/80089
person:20201137254/51166049/26112127251/51067081/260100
First four rows per selected inner/full-CV/final-fit frame

This table is an explicitly bounded preview. Every row remains in computed-selected-predictions.csv. Final all-data training loss is not an independent test score.

View every row here, twenty at a time.

1–20 / 136
First four rows per frame, or all when fewer
ScheduleRoleScopeFoldCandidateIDEligibleProbabilityRow loss
Aselected-inner-heldouter-0-inner07person:4180/1736400/29929
Aselected-inner-heldouter-0-inner07person:7143/5049/2500
Aselected-inner-heldouter-0-inner07person:101154/2275329/51529
Aselected-inner-heldouter-0-inner07person:161148/26321904/69169
Aselected-inner-heldouter-0-inner17person:2179/1866241/34596
Aselected-inner-heldouter-0-inner17person:8181/97256/9409
Aselected-inner-heldouter-0-inner17person:11140/811600/6561
Aselected-inner-heldouter-0-inner17person:141150/23322500/54289
Aselected-inner-heldouter-0-inner27person:3129/641225/4096
Aselected-inner-heldouter-0-inner27person:61175/32622801/106276
Aselected-inner-heldouter-0-inner27person:121175/32630625/106276
Aselected-inner-heldouter-0-inner27person:151165/194841/37636
Aselected-inner-heldouter-1-inner07person:1149/1134096/12769
Aselected-inner-heldouter-1-inner07person:41125/27315625/74529
Aselected-inner-heldouter-1-inner07person:71191/2311600/53361
Aselected-inner-heldouter-1-inner07person:131125/27315625/74529
Aselected-inner-heldouter-1-inner17person:51127/2076400/42849
Aselected-inner-heldouter-1-inner17person:8191/110361/12100
Aselected-inner-heldouter-1-inner17person:11126/57676/3249
Aselected-inner-heldouter-1-inner17person:170Undefined / missingUndefined / missing

5. Descriptive covariance of two schedules of the same data

Fold covariance of two fixed schedules: descriptive
Fold covariance of two fixed schedules: descriptive · Point data match the tables below. Enlarge vector original · High-resolution PNG
The complete 4×4 covariance and macro variance identity
Fold kFold lSample covarianceMacro repeat varianceCovariance sum/16 minus direct variance
00
≈ 3.089493e-05192626840569218471546072885060887780677267707748676589516318028380695388197113027224755352552499575822925120003592937169/6234901535183985138084074448249138338895132774075845348205082205057358520902910425461278504878428970197075174360699719680000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
01
≈ 2.530516e-0515348359078621963448711680595419142676470502362141019028542317376193213687395950334955537834659658154802420913/606530881150678374965800291867612093910775374688094560526264467911714682165756080861094466912974426292735488000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
02
≈ 1.628693e-053807573999038189874060951080891304442156069922595387256778230572374787435631596687461294079033882303033024827216899/233781022267809689409137903242196257694647292577952934776947161218038630915889885760298655567065246666323024117760000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
03
≈ -4.807807e-05-11286712594711485816448111789064720517492901154800367757362761162524546466938820254714428640817959265719278521/234758021691321710556664264176809298926745698648940196680302279819829206340736817389848932161819177173615052800000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
10
≈ 2.530516e-0515348359078621963448711680595419142676470502362141019028542317376193213687395950334955537834659658154802420913/606530881150678374965800291867612093910775374688094560526264467911714682165756080861094466912974426292735488000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
11
≈ 2.072673e-051222945492487932017961168010144978347761163058185699780677525939839516621447455340474381535684435601/59003291024476877710220512025180496241235544216848991601432984595569645772495083425409889671180800000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
12
≈ 1.334016e-05303384579132225967334580833459115320064886255509154289462476967631961393815578326459159025658259000073123/22742205090527824293363249624205369386907562902527415642662031233191780112434009841668838485554876416000000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
13
≈ -3.937938e-05-899316612414600495222488235939331374219323938437855819748155403548269606011817970837140339177176217/22837247541139510591273240560928480598323505232154429428779609265983645092106348711534632148724480000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
20
≈ 1.628693e-053807573999038189874060951080891304442156069922595387256778230572374787435631596687461294079033882303033024827216899/233781022267809689409137903242196257694647292577952934776947161218038630915889885760298655567065246666323024117760000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
21
≈ 1.334016e-05303384579132225967334580833459115320064886255509154289462476967631961393815578326459159025658259000073123/22742205090527824293363249624205369386907562902527415642662031233191780112434009841668838485554876416000000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
22
≈ 8.586002e-0675262718919703732440012626535324866689505071027624672738576937864479030067933741742764602420096817202841420729/8765746510056050592112685850453420684218350505351147422827059912835880585404360915523882407982252531384320000000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
23
≈ -2.534539e-05-223099715923532967334992386873931289215615005744959539652092577303322391889106023553543208754690947276091/8802379634523983523928312810688581228601560929134349124774248220197693806288662400620115076717302169600000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
30
≈ -4.807807e-05-11286712594711485816448111789064720517492901154800367757362761162524546466938820254714428640817959265719278521/234758021691321710556664264176809298926745698648940196680302279819829206340736817389848932161819177173615052800000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
31
≈ -3.937938e-05-899316612414600495222488235939331374219323938437855819748155403548269606011817970837140339177176217/22837247541139510591273240560928480598323505232154429428779609265983645092106348711534632148724480000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
32
≈ -2.534539e-05-223099715923532967334992386873931289215615005744959539652092577303322391889106023553543208754690947276091/8802379634523983523928312810688581228601560929134349124774248220197693806288662400620115076717302169600000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0
33
≈ 7.481813e-05661329858389296681118189345172761141759675345531946509912063514590330359281710707470771596063102689/8839165853289902775841471411113860309344256887275842235102811107198332490373914067712502115164288000000
≈ 1.205288e-0650724431959960832723022283166610308143370369118362966241598489374872384361759798093827159703826588507893318739062602541458900237319287104523017174888049779839145536762119065271644533877817535936970780247920834859322455338028451503379127998739954523418885964396261048185610904934316297432081/42084919547790667310811511177848204747894139748053019516984249807364647360828141556152623384537628091746152697180403358385885561642913380199628405103667237147196593258387353718795749515574886935602840979048590180888042790257346014674462415897605137132655897438423709328790366201871073280000000000
0

The two rows are schedules A/B of the same observations. This centers a finite matrix with R−1=1. Zero residual checks algebra, not new-sample standard error, a confidence interval or independence of four folds.

6. Sources, computed CSVs, code and checks to try

Provider documentation · Python · R

Python consumes only native columns of three factual CSVs, reconstructs targets/schedules/candidates and uses Fraction arithmetic. R is a binary64 counterpart retaining the first candidate within 1e−12 of the numerical minimum. All choices/criteria for these six actual studies match exact Python here; R is not a universal exact-rational near-tie decision engine.

Try five checks: compare a native row with fitted medians; use IDs/folds to exclude it from its own outer fit; calculate its cell probability and loss; locate the winner among every inner candidate; then explain A/B sensitivity separately from final all-data fitting.

학부 심화 · 선택Advanced undergraduate · optional

기업 사례: 음의 실현 차이도 숨기지 않기Company case: retain a negative realized contrast

세 번째 사례는 UCI Iranian Churn의3,150행·14개 원필드입니다. 통화 실패 수, 불만 지표, 가입 개월 수, 사용 초를 X로 쓰고 불만 지표는 범주로 둡니다. Y는 원 Churn 값입니다. 양성은495행이며 이 실습의 선택 특징과 표적에는 결측이 없어3,150행을 모두 씁니다.

제공자 설명상 특징은 첫9개월을 요약하고 이탈은12개월 말에 기록해 그 사이3개월을 둡니다. 그렇다고 파일의 행 순서가 시간 순서라는 뜻은 아닙니다. 생성한 내부 ID도 제공자의 실제 고객 ID가 아닙니다. 새 통신사·새 시기의 성능을 검증한 결과로 확대하지 않습니다.

기업의 실제 중첩 평가
일정중첩 pooled 근사전체 CV 최소 근사바깥 선택
A0.09158671460.089445840716,16,16,16
B0.08764762980.08766704799,14,14,14

일정B에서는 중첩 점수가 전체 CV 최소값보다 아주 조금 작습니다. 차이는 약−0.00001942이며 실제 유한 결과를 그대로 남깁니다. 선택 최소값의 기대 낙관성에 관한 조건부 정리를, 모든 실현 자료에서 중첩 점수가 더 커야 한다는 규칙으로 바꾸면 안 됩니다.

회사 후보는4특징의16개 부분집합 α1과 전체 α0를 합한17개입니다. 원 Charge Amount에는 제공 설명의0~9 범위 밖인10이 일곱 행에 있으나 이 실습의 X에는 쓰지 않습니다. 그 행을 몰래 삭제하거나9로 바꾸지 않고 보존합니다. 아래 사례에서 일정별 양성 수와 작은 셀·미관측 셀의 훈련 전체 확률 대체까지 읽어 보세요.

기업 전체 사례: 원행에서 중첩 평가까지

1. 원관측·표적·예정 분할의 연결

다음 원행 표는 필요한 특징·원결과·표적·포함 여부를 전부 보존합니다. 원결과 그림의 빈 위치는 원결측이며0으로 채우지 않았습니다. 원위치는 시간 축이 아닙니다. 국가·개인·회사 원필드 전체는 연결 CSV에도 남아 있습니다.

원관측 결과와 보존한 결측
원관측 결과와 보존한 결측 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG
전체 원행 3150개 펼치기

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 3150
전체 분석 원행·제외 행 보존
내부 ID원행원 ID통화 실패·회불만 원범주가입·개월이용·초원 이탈Y사용바깥A바깥B
customer:11미정의·결측8038437000103
customer:22미정의·결측003931800113
customer:33미정의·결측10037245300122
customer:44미정의·결측10038419800130
customer:55미정의·결측3038239300102
customer:66미정의·결측11038377500110
customer:77미정의·결측4038236000123
customer:88미정의·결측13037911500131
customer:99미정의·결측70381377300102
customer:1010미정의·결측7038451500112
customer:1111미정의·결측6038591800120
customer:1212미정의·결측9038223800131
customer:1313미정의·결측250381514000101
customer:1414미정의·결측4038309500111
customer:1515미정의·결측90371548500123
customer:1616미정의·결측3037650000130
customer:1717미정의·결측003787511101
customer:1818미정의·결측203871000113
customer:1919미정의·결측0037011123
customer:2020미정의·결측3037750800132

2. 후보 목록과 전체·안쪽 선택 기준

빈 특징도 후보이며 전처리는 같은 공통 범위에서 배웁니다. 아래 목록은 결과를 보기 전에 고정했습니다. 전체 CV 최소값은 재사용 선택 기준이고, 바깥 보유 손실과 별도입니다. 각 안쪽 범위의 모든 후보 기준과 접힘별 손실까지 펼칠 수 있습니다.

선언 후보 전체·정확 동률은 앞 인덱스
후보특징 번호α이름
0미정의·결측1subset--alpha1
101subset-0-alpha1
211subset-1-alpha1
321subset-2-alpha1
431subset-3-alpha1
50,11subset-0,1-alpha1
60,21subset-0,2-alpha1
70,31subset-0,3-alpha1
81,21subset-1,2-alpha1
91,31subset-1,3-alpha1
102,31subset-2,3-alpha1
110,1,21subset-0,1,2-alpha1
120,1,31subset-0,1,3-alpha1
130,2,31subset-0,2,3-alpha1
141,2,31subset-1,2,3-alpha1
150,1,2,31subset-0,1,2,3-alpha1
160,1,2,30full-alpha0
전체 CV의 모든 후보·재사용 선택 기준
전체 CV의 모든 후보·재사용 선택 기준 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 170
전체·안쪽 모든 후보의 pooled와 macro
일정선택 범위후보특징α사용 행pooledmacro선택
Aouter-0-inner0미정의·결측12362
≈ 0.1232342142606958587/1157202880706
≈ 0.1232344112326860117455/911489809086084
0
Aouter-0-inner1012362
≈ 0.12295271211374060587638623270297583495/9852357242401327431343427910048
≈ 0.122952826504433062014926058847604850567/215565850198230229131816782351952
0
Aouter-0-inner2112362
≈ 0.0918299970227878784687089/764759737681996896
≈ 0.09183085110633312905703974439/1204751075059906351488
0
Aouter-0-inner3212362
≈ 0.12280221038325394573233852027/8455267247833275083604
≈ 0.1228022817854106729626048448097/6659929782405536675801256
0
Aouter-0-inner4312362
≈ 0.10888561617530973153299806215953/14855327905500766662745200
≈ 0.10888631274082802570815447178719511/11701042420699068734760472800
0
Aouter-0-inner50,112362
≈ 0.09013972062198767876912175751323481456209331781713953/22877807160226238615349892650352656242264016384
≈ 0.09014056406085028749854290187853571644668337330424407077/4505019912338250392064223547779033197897168716544
0
Aouter-0-inner60,212362
≈ 0.12255663201853621600005103392187451965755347556466980552401174479/26125500712919747488276430719136579146348074199813881247725
≈ 0.12255661260995915406907248107926333971759935847107657705622708260051/10289089343853593727777026779672013787309040836236099072225325
0
Aouter-0-inner70,312362
≈ 0.108463915073480460537475508732177559717386630139/138972340310178325917336710913151813080000
≈ 0.10846492968244824579444992295751249234698973709883/27365960206625407457956773484247430924780000
0
Aouter-0-inner81,212362
≈ 0.0903284989975307347865304255873498643/996090070162319985510447648768
≈ 0.0903287970870766745497575343456914839913/784586664121401836918988787556352
0
Aouter-0-inner91,312362
≈ 0.083264366063942780679849961264107790824125301/72827595267294870544362372596560158720
≈ 0.083265654776438167413552256552574865808731258223/57363848650192020834855535402191822766080
0
Aouter-0-inner102,312362
≈ 0.108956224005987937232669281138680697885994402035719743/220327027600721122953181860765941776784409314100
≈ 0.10895679454400733167466575815470172303563690805719167683/86772096610130911553442072424955581196133875483700
0
Aouter-0-inner110,1,212362
≈ 0.0892188125023939830687550681668395348164458936279443538905189/280478296161993446685737701900746742753156806807168000
≈ 0.089219182239840625118948635948033629678316981338672545242430511/25104923346158476241653887825219310051019943520847040000
0
Aouter-0-inner120,1,312362
≈ 0.0825151825089939358699291256460097593629424442178792688011/304064517593941155520964971237795783361361502896000
≈ 0.0825164119762796731642661136558465721168034634733542358218293/239501399203625958395333894203573008246716982459744000
0
Aouter-0-inner130,2,312362
≈ 0.1084378266237269710193747805414602639880371301962349085299123905346236914979/2455208129614989390221170946406215007234209901095163402306747264000000
≈ 0.108438652426935194862880215963398941574940770086292510358050429247984961850863/483471227613096960292760527976130188619709570943132564009613618624000000
0
Aouter-0-inner141,2,312362
≈ 0.0823445937298049111253606364886550401030055484693/452950829331549824227339895986684566360000
≈ 0.082345358757344798622429282437136054970450695372591/713548284119229329704141068252798528202080000
0
Aouter-0-inner150,1,2,312362
≈ 0.081971955387450844023123053022872041640898618143448752361708778013/65723103774441629155459673479620887028601111738393907404800
≈ 0.08197271385777578496295839702689104083918174597509698597614336380389/4706170865715798203048254476148230022643655344227012397875200
0
Aouter-0-inner160,1,2,302362
≈ 0.081880915062058753747560894806632883294093169186531779468768171077/61822208662439334456904562180947564274476479441129613440000
≈ 0.08188171996813118723544090726916705171494457830370826367269820774431/12173818893500336970614766828076116957092157785021118719040000
1
Aouter-1-inner0미정의·결측12362
≈ 0.14039292599408509653/18515246091296
≈ 0.1403922682485634176453/4861278981792448
0
Aouter-1-inner1012362
≈ 0.1404508151004956385355218472303305896777155/1075144790066046020681788370922432596
≈ 0.140450159470463734100278362309790783951417583/423427704759652097376334768601464082772
0
Aouter-1-inner2112362
≈ 0.100552823228444065314321910263347135/231007388881926215458645697952
≈ 0.1005517285876038181457064520600296881/2843074293358247130490021991277
0
모든 후보×접힘 기준 펼치기

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 544
모든 후보의 훈련·검증 질량과 손실
일정선택 범위후보접힘훈련 행검증 행검증 양성손실 합Brier
Aouter-0-inner001575787116
≈ 98.91969246006239/2486929
≈ 0.1256921246006239/1957213123
Aouter-0-inner011575787111
≈ 95.36251237159799/2486929
≈ 0.1211722237159799/1957213123
Aouter-0-inner02157478811319069/19719069/155236
Aouter-0-inner101575787116
≈ 98.9221638250238302115/386670061584
≈ 0.125695238250238302115/304309338466608
Aouter-0-inner111575787111
≈ 94.8364636756096671353/387573482916
≈ 0.120503836756096671353/305020331054892
Aouter-0-inner121574788113
≈ 96.655694149886986313/42934740849
≈ 0.12265954149886986313/33832575789012
Aouter-0-inner201575787116
≈ 72.9875635184961597/482067936
≈ 0.092741535184961597/379387465632
Aouter-0-inner211575787111
≈ 73.14989979533781/13390776
≈ 0.09294776979533781/10538540712
Aouter-0-inner221574788113
≈ 70.764999125497325/128954976
≈ 0.089803289125497325/101616521088
Aouter-0-inner301575787116
≈ 98.633031056438773008/10710801049
≈ 0.12532791056438773008/8429400425563
Aouter-0-inner311575787111
≈ 94.6848225283524112/267028281
≈ 0.120311125283524112/210151257147
Aouter-0-inner321574788113
≈ 96.7409410777413457/111404886
≈ 0.122767710777413457/87787050168
Aouter-0-inner401575787116
≈ 88.7156114891244540/1295051187
≈ 0.1127263114891244540/1019205284169
Aouter-0-inner411575787111
≈ 83.946954076808895975/48564107858
≈ 0.1066674076808895975/38219952884246
Aouter-0-inner421574788113
≈ 84.525184094517628159/48441393800
≈ 0.10726554094517628159/38171818314400
Aouter-0-inner501575787116
≈ 72.1122127184886437391775/1763708364054784
≈ 0.09162922127184886437391775/1388038482511115008
Aouter-0-inner511575787111
≈ 71.36463118741396560584486/1663868997687341
≈ 0.09067933118741396560584486/1309464901179937367
Aouter-0-inner521574788113
≈ 69.43315229168795430249/3300567336603
≈ 0.08811314229168795430249/2600847061243164
Aouter-0-inner601575787116
≈ 98.4789812124258635426627949951/123115190191202713156
≈ 0.125132112124258635426627949951/96891654680476535253772
Aouter-0-inner611575787111
≈ 94.3677848263019138004314940657/511435337973174268900
≈ 0.119908248263019138004314940657/402499610984888149624300

3. 배운 중앙값·셀 확률·한 행의 완전 풀이

원1행은 통화 실패8회·불만0·가입38개월·사용4,370초이고 이탈0입니다. A 바깥0은 전체 특징 α0를 선택합니다. 연속 특징의 중앙값은 통화 실패6회·가입35개월·이용3,065초여서 셀은(1,0,1,1)입니다. 훈련449행 중 양성7행인 셀의 확률은7/449이고, Y=0의 보유 손실은49/201601입니다. 이 값은 해당 셀과 범위의 경험 확률이며 원고객에 대한 인과 개입 효과가 아닙니다.

첫 특징의 바깥 훈련 중앙값
첫 특징의 바깥 훈련 중앙값 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG

이 구현에서 같은 훈련 범위의 중앙값은 후보 부분집합과 무관하므로 아래는 범위×특징 중복을 한 번으로 줄였습니다. 범주 특징은 중앙값이 미정의인 것이 아니라 중앙값 변환을 적용하지 않는 열이며 원범주를 보존합니다.

모든 구별되는 훈련 중앙값 펼치기

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 168
전체 훈련 범위×특징의 변환
일정적합 범위특징원범주 보존훈련 행정확 중앙값·범주 열은 미적용
Aouter-0-inner-fold-00015756
Aouter-0-inner-fold-0111575미정의·결측
Aouter-0-inner-fold-020157535
Aouter-0-inner-fold-03015753065
Aouter-0-inner-fold-10015756
Aouter-0-inner-fold-1111575미정의·결측
Aouter-0-inner-fold-120157535
Aouter-0-inner-fold-13015753085
Aouter-0-inner-fold-20015746
Aouter-0-inner-fold-2111574미정의·결측
Aouter-0-inner-fold-220157435
Aouter-0-inner-fold-23015743030
Aouter-0-refit0023626
Aouter-0-refit112362미정의·결측
Aouter-0-refit20236235
Aouter-0-refit3023623065
Aouter-1-inner-fold-00015746
Aouter-1-inner-fold-0111574미정의·결측
Aouter-1-inner-fold-020157435
Aouter-1-inner-fold-03015742885
모든 후보 적합 셀·전체훈련 대체 확률 펼치기

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 3122
모든 적합의 셀 분자·분모·확률
일정적합 범위후보셀행 질량양성확률미관측 셀의 전체훈련 대체
Aouter-0-inner-fold-00(constant)1575224225/1577225/1577
Aouter-0-inner-fold-10(constant)1575229230/1577230/1577
Aouter-0-inner-fold-20(constant)157422757/39457/394
Aouter-0-inner-fold-010826136137/828225/1577
Aouter-0-inner-fold-0117498889/751225/1577
Aouter-0-inner-fold-111760100101/762230/1577
Aouter-0-inner-fold-110815129130/817230/1577
Aouter-0-inner-fold-210817135136/81957/394
Aouter-0-inner-fold-2117579231/25357/394
Aouter-0-inner-fold-0201465138139/1467225/1577
Aouter-0-inner-fold-0211108687/112225/1577
Aouter-0-inner-fold-120146514047/489230/1577
Aouter-0-inner-fold-1211108945/56230/1577
Aouter-0-inner-fold-220146214047/48857/394
Aouter-0-inner-fold-2211128744/5757/394
Aouter-0-inner-fold-0317398629/247225/1577
Aouter-0-inner-fold-030836138139/838225/1577
Aouter-0-inner-fold-131739945/39230/1577
Aouter-0-inner-fold-13083613568/419230/1577
Aouter-0-inner-fold-2317428629/24857/394

4. 바깥 보유 예측 전체와 점수의 연결

두 일정의 바깥 보유 확률
두 일정의 바깥 보유 확률 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG
각 바깥 접힘의 중첩 손실
각 바깥 접힘의 중첩 손실 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 46
모든 일정의 행 수·선택·점수·최종 적합
일정양값단위
Aouter0SelectedCandidate16candidate index
Aouter0Rows788rows
Aouter0Brier
≈ 0.1088798828143588730062174816556069565/7606037893324311080473646308608
dimensionless
Aouter1SelectedCandidate16candidate index
Aouter1Rows788rows
Aouter1Brier
≈ 0.072027876146152636110879785916249986171099/85330201358736058690478778349593600
dimensionless
Aouter2SelectedCandidate16candidate index
Aouter2Rows787rows
Aouter2Brier
≈ 0.113431447990451069458568436874296855997131352557/423078923163501699541556006919460531649200
dimensionless
Aouter3SelectedCandidate16candidate index
Aouter3Rows787rows
Aouter3Brier
≈ 0.07201067113713588888659419607059207273069203639/1579121440204335897082811388091730137800
dimensionless
AretainedRows3150rows
AeligibleRows3150rows
AexcludedRows0rows
ApositiveRows495rows
AcandidateCount17candidates
AnestedPooledBrier
≈ 0.09158671190424068822535171730671962566116099841428557094485930933513867862161425452708198316841246563547/2079166936797206855468543103796986368663279055789755832744713344208100027108850228754428575358464
dimensionless
AnestedMacroBrier
≈ 0.0915874393725045147897027076866413247785733872442449742382065430846537338591559409286258496738896506653771553/1023339564171752868777737950062161808289479750890755411279071784675173397152155652748755085380955238400
dimensionless
AnonnestedMinimumBrier
≈ 0.0894458424286282206777073434897035894654058519457423708551861813275565545001040690319/271519413576820242902459672205395399369076992056342125331520846304643512000000
dimensionless

원행마다 A/B의 보유 접힘·선택·확률·행 손실을 나란히 둡니다. 같은 ID는 각 일정에서 한 번 보유 채점되며, 제외 행의 빈 확률·손실은0이 아닙니다. 각 일정의 사용 행 손실을 모두 더해 사용 행 수로 나누면 pooled입니다. 접힘 평균 네 개를 같은 비중으로 평균하면 macro입니다.

전체 원행의 두 일정 보유 예측 펼치기

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 3150
모든 원행의 보유 예측 A/B
ID원행사용YA접힘A후보A확률A손실B접힘B후보B확률B손실
customer:11100167/44949/20160131411/617121/380689
customer:221011624/91576/828131489/4277921/182329
customer:331021626/131676/1716121415/82225/6724
customer:441031617/447289/199809091/381/1444
customer:551001656/2833136/8008921415/82225/6724
customer:66101161/281/784091/381/1444
customer:771021651/2872601/8236931489/4277921/182329
customer:881031617/447289/19980911415/613225/375769
customer:99100167/44949/20160121413/604169/364816
customer:1010101161/281/78421413/604169/364816
customer:11111021600091/381/1444
customer:12121031623/123529/1512911492/4338464/187489
customer:1313100167/44949/20160111415/613225/375769
customer:1414101160011415/613225/375769
customer:1515102168/45364/20520931411/617121/380689
customer:16161031600091/381/1444
customer:17171101656/28351529/8008911492/433116281/187489
customer:18181011624/91576/828131489/4277921/182329
customer:19191121651/28755696/8236931489/427114244/182329
customer:2020103160021413/604169/364816
각 선택된 안쪽·전체 CV·최종 적합 범위의 처음4행 미리보기

이 표만은 명시된 미리보기입니다. 모든 행은 computed-selected-predictions.csv에 있습니다. 최종 전체 적합의 훈련 손실을 독립 시험 점수라고 이름 붙이지 않습니다.

전체 행을 이 표에서20개씩 볼 수 있습니다.

1–20 / 136
각 범위의 처음4행·전체 행 수가4미만이면 모두
일정역할범위접힘후보ID사용확률행 손실
Aselected-inner-heldouter-0-inner016customer:412/1534/23409
Aselected-inner-heldouter-0-inner016customer:7117/90289/8100
Aselected-inner-heldouter-0-inner016customer:1012/1534/23409
Aselected-inner-heldouter-0-inner016customer:16100
Aselected-inner-heldouter-0-inner116customer:215/2425/576
Aselected-inner-heldouter-0-inner116customer:817/29549/87025
Aselected-inner-heldouter-0-inner116customer:11100
Aselected-inner-heldouter-0-inner116customer:14100
Aselected-inner-heldouter-0-inner216customer:314/2516/625
Aselected-inner-heldouter-0-inner216customer:611/981/9604
Aselected-inner-heldouter-0-inner216customer:1214/2516/625
Aselected-inner-heldouter-0-inner216customer:1511/981/9604
Aselected-inner-heldouter-1-inner016customer:1110/301100/90601
Aselected-inner-heldouter-1-inner016customer:4110/301100/90601
Aselected-inner-heldouter-1-inner016customer:717/2649/676
Aselected-inner-heldouter-1-inner016customer:13110/301100/90601
Aselected-inner-heldouter-1-inner116customer:5116/61256/3721
Aselected-inner-heldouter-1-inner116customer:8113/294169/86436
Aselected-inner-heldouter-1-inner116customer:11100
Aselected-inner-heldouter-1-inner116customer:17116/612025/3721

5. 같은 자료 두 일정의 기술 공분산

두 고정 일정의 접힘 공분산·추론 아님
두 고정 일정의 접힘 공분산·추론 아님 · 점 자료는 아래 표와 일치합니다. 벡터 원본 확대 · 고해상도 PNG
4×4 공분산과 macro 분산 등식
접힘k접힘ℓ표본 공분산macro 반복 분산공분산 합/16−직접 분산
00
≈ 0.00034674917028024449904145322262506208873563422264003143293347240800418372123253058384089/20268329636046460247691796000657094617573932696140775770467105449461176310906880000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
01
≈ -0.0002391262-938358814751676178229849493390297030171482358732697132846816362533254755806854089961075553923112533/3924116242696219737563949137170010281969203240848477989533603755428854637782252210221899529232384000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
02
≈ 0.0002159415451064094438442189413255529142803891954586655370537287697349057328228135689494053935460539/2088825562546786651569157055501963074977657492652810274639816861352926011282125925892628480000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
03
≈ -0.0001161028-47051108003759253187678209817182641790841626953944161048981919983500164148495255739319042335479/405253699062876737266016884408067445075469637255230498616850705305838986029999697669414558392320000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
10
≈ -0.0002391262-938358814751676178229849493390297030171482358732697132846816362533254755806854089961075553923112533/3924116242696219737563949137170010281969203240848477989533603755428854637782252210221899529232384000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
11
≈ 0.0001649069125286596752545423650765477157511665981551759463859782297452009999626294772690413310012243770361997567583257346359228001/759741358202814614671104034357325128773782608092025999797552782436218778137640685772640848491631749398459057898291200000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
12
≈ -0.0001489182-2589657847408727325831337885551241223334190881207051696759497838904685777083284542318633678968137515913527496869/17389797877253912566246498169346117327259282695590619789420886581366922125689980237082576352348375962278244352000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
13
≈ 8.00672e-05458594022336203584641916956815518683163003044188440816574696847884587899008054034619351956247040353229547013677964499/5727614142688457872344412543102906870080451735193268703027924949065285049229406618881470537079041541964937663950848000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
20
≈ 0.0002159415451064094438442189413255529142803891954586655370537287697349057328228135689494053935460539/2088825562546786651569157055501963074977657492652810274639816861352926011282125925892628480000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
21
≈ -0.0001489182-2589657847408727325831337885551241223334190881207051696759497838904685777083284542318633678968137515913527496869/17389797877253912566246498169346117327259282695590619789420886581366922125689980237082576352348375962278244352000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
22
≈ 0.000134479753527894766679038977863907026642484706323623079878624713700146998073333884419114876870774523398309095161/398036867345343320989034883101594056845604237438260036493085670202437787352621253320965752370441583185920000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
23
≈ -7.230422e-05-9479079482566873383020285112560137289937116767101668728450860021573080677775236632772731269561238951862785631/131099947613572259452657021763985369257942933734624144423328207638712831340125343098377513092207482476825006080000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
30
≈ -0.0001161028-47051108003759253187678209817182641790841626953944161048981919983500164148495255739319042335479/405253699062876737266016884408067445075469637255230498616850705305838986029999697669414558392320000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
31
≈ 8.00672e-05458594022336203584641916956815518683163003044188440816574696847884587899008054034619351956247040353229547013677964499/5727614142688457872344412543102906870080451735193268703027924949065285049229406618881470537079041541964937663950848000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
32
≈ -7.230422e-05-9479079482566873383020285112560137289937116767101668728450860021573080677775236632772731269561238951862785631/131099947613572259452657021763985369257942933734624144423328207638712831340125343098377513092207482476825006080000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
33
≈ 3.8875e-051678619124261794552073806722809383076280380971896022253094058359944879226252807583285544685084894330729333341093001/43179910390987720019074142089973658354385835450547532514930039424940670606713985796434597222932833639033702546001920000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0

두 행은 같은 원관측의 A/B입니다. 위 표는 R−1=1로 중심화한 유한 행렬 계산이며, 잔차0은 대수적 등식의 검산입니다. 새 표본의 표준오차·신뢰구간 또는 네 접힘의 독립성을 증명하는 값이 아닙니다.

6. 원자료·계산 CSV·코드와 직접 해볼 일

제공자의 원 설명 · Python · R

Python은 원사실 CSV 세 개의 원열만 읽어 표적·일정·후보를 다시 만들고 Fraction으로 계산했습니다. R은 같은 정의의 이진 부동소수점 재현이며 수치 최소에서1e−12 안의 첫 후보를 선택합니다. 이 실제 여섯 일정의 모든 선택·손실은 정확 Python과 일치했지만, R이 모든 가능한 근접 동률에서 정확 유리수 결정을 한다고 주장하지 않습니다.

직접 해 봅시다. ① 한 원행의 변환을 훈련 중앙값과 비교하세요. ② 그 행이 자기 바깥 훈련에서 빠졌는지 원접힘과 ID로 확인하세요. ③ 한 셀 확률과 행 손실을 손으로 구하세요. ④ 한 안쪽 범위의 모든 후보 기준에서 선택 인덱스를 다시 찾으세요. ⑤ A/B 차이와 최종 전체 적합을 다른 문장으로 설명하세요.

The company study uses all 3,150 rows and fourteen native fields of UCI Iranian Churn. Predictors are call failures, categorical complaints, subscription months and usage seconds. The target is native Churn. There are 495 positives and all rows have the required fields.

The provider describes first-nine-month features and end-of-twelve-month churn, separated by three months. File row order is not thereby time order, and generated IDs are not native customer identities. These results do not validate a new provider or future period.

Actual nested company assessment
ScheduleApproximate nested pooledApproximate full-CV minimumOuter choices
A0.09158671460.089445840716,16,16,16
B0.08764762980.08766704799,14,14,14

Under B, nested risk is slightly lower than the full-CV minimum: a realized difference around −0.00001942. Retain that result. Expected minimum-selection optimism under stated conditions does not require every realized nested score to be larger.

Sixteen feature subsets with alpha one plus full-feature alpha zero give seventeen candidates. Seven native Charge Amount values are ten despite the provider’s documented zero-to-nine range; that feature is unused here and those rows remain unchanged. Read class counts, small cells and training-global fallback for unseen cells in the full study.

Company full case: native rows through nested assessment

1. Native observations, targets and planned partitions

The complete analytical row table retains required predictors, native outcomes, constructed targets and eligibility. Missing plot slots are native missing observations, not zeros. Source position is not time. Linked CSVs retain all native fields.

Native outcomes and retained missing slots
Native outcomes and retained missing slots · Point data match the tables below. Enlarge vector original · High-resolution PNG
Expand every native row: 3150

View every row here, twenty at a time.

1–20 / 3150
All analytical native rows, including exclusions
Internal IDSource rowNative IDFailures countNative complaintsTenure monthsUsage secondsNative churnYEligibleOuterAOuterB
customer:11Undefined / missing8038437000103
customer:22Undefined / missing003931800113
customer:33Undefined / missing10037245300122
customer:44Undefined / missing10038419800130
customer:55Undefined / missing3038239300102
customer:66Undefined / missing11038377500110
customer:77Undefined / missing4038236000123
customer:88Undefined / missing13037911500131
customer:99Undefined / missing70381377300102
customer:1010Undefined / missing7038451500112
customer:1111Undefined / missing6038591800120
customer:1212Undefined / missing9038223800131
customer:1313Undefined / missing250381514000101
customer:1414Undefined / missing4038309500111
customer:1515Undefined / missing90371548500123
customer:1616Undefined / missing3037650000130
customer:1717Undefined / missing003787511101
customer:1818Undefined / missing203871000113
customer:1919Undefined / missing0037011123
customer:2020Undefined / missing3037750800132

2. Candidates and full/inner selection criteria

The empty subset is a candidate and preprocessing uses the same common frame. The family was fixed before scores. Full-CV minima are reused selection criteria, separate from outer held losses. Expand every inner candidate criterion and fold loss.

Every declared candidate; earliest exact tie wins
CandidateFeature indicesAlphaName
0Undefined / missing1subset--alpha1
101subset-0-alpha1
211subset-1-alpha1
321subset-2-alpha1
431subset-3-alpha1
50,11subset-0,1-alpha1
60,21subset-0,2-alpha1
70,31subset-0,3-alpha1
81,21subset-1,2-alpha1
91,31subset-1,3-alpha1
102,31subset-2,3-alpha1
110,1,21subset-0,1,2-alpha1
120,1,31subset-0,1,3-alpha1
130,2,31subset-0,2,3-alpha1
141,2,31subset-1,2,3-alpha1
150,1,2,31subset-0,1,2,3-alpha1
160,1,2,30full-alpha0
Every full-CV candidate: reused selection criteria
Every full-CV candidate: reused selection criteria · Point data match the tables below. Enlarge vector original · High-resolution PNG

View every row here, twenty at a time.

1–20 / 170
Pooled and macro criteria for every full/inner candidate
ScheduleSelection scopeCandidateFeaturesAlphaRowsPooledMacroSelected
Aouter-0-inner0Undefined / missing12362
≈ 0.1232342142606958587/1157202880706
≈ 0.1232344112326860117455/911489809086084
0
Aouter-0-inner1012362
≈ 0.12295271211374060587638623270297583495/9852357242401327431343427910048
≈ 0.122952826504433062014926058847604850567/215565850198230229131816782351952
0
Aouter-0-inner2112362
≈ 0.0918299970227878784687089/764759737681996896
≈ 0.09183085110633312905703974439/1204751075059906351488
0
Aouter-0-inner3212362
≈ 0.12280221038325394573233852027/8455267247833275083604
≈ 0.1228022817854106729626048448097/6659929782405536675801256
0
Aouter-0-inner4312362
≈ 0.10888561617530973153299806215953/14855327905500766662745200
≈ 0.10888631274082802570815447178719511/11701042420699068734760472800
0
Aouter-0-inner50,112362
≈ 0.09013972062198767876912175751323481456209331781713953/22877807160226238615349892650352656242264016384
≈ 0.09014056406085028749854290187853571644668337330424407077/4505019912338250392064223547779033197897168716544
0
Aouter-0-inner60,212362
≈ 0.12255663201853621600005103392187451965755347556466980552401174479/26125500712919747488276430719136579146348074199813881247725
≈ 0.12255661260995915406907248107926333971759935847107657705622708260051/10289089343853593727777026779672013787309040836236099072225325
0
Aouter-0-inner70,312362
≈ 0.108463915073480460537475508732177559717386630139/138972340310178325917336710913151813080000
≈ 0.10846492968244824579444992295751249234698973709883/27365960206625407457956773484247430924780000
0
Aouter-0-inner81,212362
≈ 0.0903284989975307347865304255873498643/996090070162319985510447648768
≈ 0.0903287970870766745497575343456914839913/784586664121401836918988787556352
0
Aouter-0-inner91,312362
≈ 0.083264366063942780679849961264107790824125301/72827595267294870544362372596560158720
≈ 0.083265654776438167413552256552574865808731258223/57363848650192020834855535402191822766080
0
Aouter-0-inner102,312362
≈ 0.108956224005987937232669281138680697885994402035719743/220327027600721122953181860765941776784409314100
≈ 0.10895679454400733167466575815470172303563690805719167683/86772096610130911553442072424955581196133875483700
0
Aouter-0-inner110,1,212362
≈ 0.0892188125023939830687550681668395348164458936279443538905189/280478296161993446685737701900746742753156806807168000
≈ 0.089219182239840625118948635948033629678316981338672545242430511/25104923346158476241653887825219310051019943520847040000
0
Aouter-0-inner120,1,312362
≈ 0.0825151825089939358699291256460097593629424442178792688011/304064517593941155520964971237795783361361502896000
≈ 0.0825164119762796731642661136558465721168034634733542358218293/239501399203625958395333894203573008246716982459744000
0
Aouter-0-inner130,2,312362
≈ 0.1084378266237269710193747805414602639880371301962349085299123905346236914979/2455208129614989390221170946406215007234209901095163402306747264000000
≈ 0.108438652426935194862880215963398941574940770086292510358050429247984961850863/483471227613096960292760527976130188619709570943132564009613618624000000
0
Aouter-0-inner141,2,312362
≈ 0.0823445937298049111253606364886550401030055484693/452950829331549824227339895986684566360000
≈ 0.082345358757344798622429282437136054970450695372591/713548284119229329704141068252798528202080000
0
Aouter-0-inner150,1,2,312362
≈ 0.081971955387450844023123053022872041640898618143448752361708778013/65723103774441629155459673479620887028601111738393907404800
≈ 0.08197271385777578496295839702689104083918174597509698597614336380389/4706170865715798203048254476148230022643655344227012397875200
0
Aouter-0-inner160,1,2,302362
≈ 0.081880915062058753747560894806632883294093169186531779468768171077/61822208662439334456904562180947564274476479441129613440000
≈ 0.08188171996813118723544090726916705171494457830370826367269820774431/12173818893500336970614766828076116957092157785021118719040000
1
Aouter-1-inner0Undefined / missing12362
≈ 0.14039292599408509653/18515246091296
≈ 0.1403922682485634176453/4861278981792448
0
Aouter-1-inner1012362
≈ 0.1404508151004956385355218472303305896777155/1075144790066046020681788370922432596
≈ 0.140450159470463734100278362309790783951417583/423427704759652097376334768601464082772
0
Aouter-1-inner2112362
≈ 0.100552823228444065314321910263347135/231007388881926215458645697952
≈ 0.1005517285876038181457064520600296881/2843074293358247130490021991277
0
Expand all candidate-by-fold criteria

View every row here, twenty at a time.

1–20 / 544
Training/validation mass and loss for every candidate
ScheduleSelection scopeCandidateFoldTraining rowsValidation rowsValidation positivesLoss sumBrier
Aouter-0-inner001575787116
≈ 98.91969246006239/2486929
≈ 0.1256921246006239/1957213123
Aouter-0-inner011575787111
≈ 95.36251237159799/2486929
≈ 0.1211722237159799/1957213123
Aouter-0-inner02157478811319069/19719069/155236
Aouter-0-inner101575787116
≈ 98.9221638250238302115/386670061584
≈ 0.125695238250238302115/304309338466608
Aouter-0-inner111575787111
≈ 94.8364636756096671353/387573482916
≈ 0.120503836756096671353/305020331054892
Aouter-0-inner121574788113
≈ 96.655694149886986313/42934740849
≈ 0.12265954149886986313/33832575789012
Aouter-0-inner201575787116
≈ 72.9875635184961597/482067936
≈ 0.092741535184961597/379387465632
Aouter-0-inner211575787111
≈ 73.14989979533781/13390776
≈ 0.09294776979533781/10538540712
Aouter-0-inner221574788113
≈ 70.764999125497325/128954976
≈ 0.089803289125497325/101616521088
Aouter-0-inner301575787116
≈ 98.633031056438773008/10710801049
≈ 0.12532791056438773008/8429400425563
Aouter-0-inner311575787111
≈ 94.6848225283524112/267028281
≈ 0.120311125283524112/210151257147
Aouter-0-inner321574788113
≈ 96.7409410777413457/111404886
≈ 0.122767710777413457/87787050168
Aouter-0-inner401575787116
≈ 88.7156114891244540/1295051187
≈ 0.1127263114891244540/1019205284169
Aouter-0-inner411575787111
≈ 83.946954076808895975/48564107858
≈ 0.1066674076808895975/38219952884246
Aouter-0-inner421574788113
≈ 84.525184094517628159/48441393800
≈ 0.10726554094517628159/38171818314400
Aouter-0-inner501575787116
≈ 72.1122127184886437391775/1763708364054784
≈ 0.09162922127184886437391775/1388038482511115008
Aouter-0-inner511575787111
≈ 71.36463118741396560584486/1663868997687341
≈ 0.09067933118741396560584486/1309464901179937367
Aouter-0-inner521574788113
≈ 69.43315229168795430249/3300567336603
≈ 0.08811314229168795430249/2600847061243164
Aouter-0-inner601575787116
≈ 98.4789812124258635426627949951/123115190191202713156
≈ 0.125132112124258635426627949951/96891654680476535253772
Aouter-0-inner611575787111
≈ 94.3677848263019138004314940657/511435337973174268900
≈ 0.119908248263019138004314940657/402499610984888149624300

3. Fitted medians, cell probabilities and a complete worked row

Native row one has eight failures, complaints zero, tenure thirty-eight months, usage 4,370 seconds and churn zero. A outer zero selects full-feature alpha zero. Continuous medians are six failures, thirty-five months and 3,065 seconds, yielding cell (1,0,1,1). Seven positives among 449 fitting rows give probability 7/449 and held loss 49/201601. This is a frame-specific empirical model probability, not an intervention effect for a native customer.

Outer-training medians of the first feature
Outer-training medians of the first feature · Point data match the tables below. Enlarge vector original · High-resolution PNG

Medians depend on the fitting frame, not the candidate subset in this implementation, so the next table deduplicates frame-by-feature rows. A categorical feature does not receive a median transform; preserve its native numeric category.

Expand every distinct fitted-frame median

View every row here, twenty at a time.

1–20 / 168
Transformers for every fitting frame and feature
ScheduleFit scopeFeatureCategorical retainedFit rowsExact median; inapplicable for categories
Aouter-0-inner-fold-00015756
Aouter-0-inner-fold-0111575Undefined / missing
Aouter-0-inner-fold-020157535
Aouter-0-inner-fold-03015753065
Aouter-0-inner-fold-10015756
Aouter-0-inner-fold-1111575Undefined / missing
Aouter-0-inner-fold-120157535
Aouter-0-inner-fold-13015753085
Aouter-0-inner-fold-20015746
Aouter-0-inner-fold-2111574Undefined / missing
Aouter-0-inner-fold-220157435
Aouter-0-inner-fold-23015743030
Aouter-0-refit0023626
Aouter-0-refit112362Undefined / missing
Aouter-0-refit20236235
Aouter-0-refit3023623065
Aouter-1-inner-fold-00015746
Aouter-1-inner-fold-0111574Undefined / missing
Aouter-1-inner-fold-020157435
Aouter-1-inner-fold-03015742885
Expand every candidate fitting cell and global fallback

View every row here, twenty at a time.

1–20 / 3122
Cell numerators, denominators and probabilities for every fit
ScheduleFit scopeCandidateCellRow massPositivesProbabilityGlobal-training unseen fallback
Aouter-0-inner-fold-00(constant)1575224225/1577225/1577
Aouter-0-inner-fold-10(constant)1575229230/1577230/1577
Aouter-0-inner-fold-20(constant)157422757/39457/394
Aouter-0-inner-fold-010826136137/828225/1577
Aouter-0-inner-fold-0117498889/751225/1577
Aouter-0-inner-fold-111760100101/762230/1577
Aouter-0-inner-fold-110815129130/817230/1577
Aouter-0-inner-fold-210817135136/81957/394
Aouter-0-inner-fold-2117579231/25357/394
Aouter-0-inner-fold-0201465138139/1467225/1577
Aouter-0-inner-fold-0211108687/112225/1577
Aouter-0-inner-fold-120146514047/489230/1577
Aouter-0-inner-fold-1211108945/56230/1577
Aouter-0-inner-fold-220146214047/48857/394
Aouter-0-inner-fold-2211128744/5757/394
Aouter-0-inner-fold-0317398629/247225/1577
Aouter-0-inner-fold-030836138139/838225/1577
Aouter-0-inner-fold-131739945/39230/1577
Aouter-0-inner-fold-13083613568/419230/1577
Aouter-0-inner-fold-2317428629/24857/394

4. Every outer held prediction and its score

Outer held probabilities under two schedules
Outer held probabilities under two schedules · Point data match the tables below. Enlarge vector original · High-resolution PNG
Nested loss in each outer fold
Nested loss in each outer fold · Point data match the tables below. Enlarge vector original · High-resolution PNG

View every row here, twenty at a time.

1–20 / 46
All schedules: counts, selections, scores and final fitting
ScheduleQuantityValueUnit
Aouter0SelectedCandidate16candidate index
Aouter0Rows788rows
Aouter0Brier
≈ 0.1088798828143588730062174816556069565/7606037893324311080473646308608
dimensionless
Aouter1SelectedCandidate16candidate index
Aouter1Rows788rows
Aouter1Brier
≈ 0.072027876146152636110879785916249986171099/85330201358736058690478778349593600
dimensionless
Aouter2SelectedCandidate16candidate index
Aouter2Rows787rows
Aouter2Brier
≈ 0.113431447990451069458568436874296855997131352557/423078923163501699541556006919460531649200
dimensionless
Aouter3SelectedCandidate16candidate index
Aouter3Rows787rows
Aouter3Brier
≈ 0.07201067113713588888659419607059207273069203639/1579121440204335897082811388091730137800
dimensionless
AretainedRows3150rows
AeligibleRows3150rows
AexcludedRows0rows
ApositiveRows495rows
AcandidateCount17candidates
AnestedPooledBrier
≈ 0.09158671190424068822535171730671962566116099841428557094485930933513867862161425452708198316841246563547/2079166936797206855468543103796986368663279055789755832744713344208100027108850228754428575358464
dimensionless
AnestedMacroBrier
≈ 0.0915874393725045147897027076866413247785733872442449742382065430846537338591559409286258496738896506653771553/1023339564171752868777737950062161808289479750890755411279071784675173397152155652748755085380955238400
dimensionless
AnonnestedMinimumBrier
≈ 0.0894458424286282206777073434897035894654058519457423708551861813275565545001040690319/271519413576820242902459672205395399369076992056342125331520846304643512000000
dimensionless

Each native row has side-by-side held fold, choice, probability and loss for A/B. Eligible IDs are held once per schedule. Empty probability/loss on exclusions is not zero. Summing eligible losses and dividing by eligible count gives pooled risk; equally averaging four fold risks gives macro.

Expand both schedules’ held predictions for every native row

View every row here, twenty at a time.

1–20 / 3150
A/B held predictions for every native row
IDSource rowEligibleYA foldA choiceA probabilityA lossB foldB choiceB probabilityB loss
customer:11100167/44949/20160131411/617121/380689
customer:221011624/91576/828131489/4277921/182329
customer:331021626/131676/1716121415/82225/6724
customer:441031617/447289/199809091/381/1444
customer:551001656/2833136/8008921415/82225/6724
customer:66101161/281/784091/381/1444
customer:771021651/2872601/8236931489/4277921/182329
customer:881031617/447289/19980911415/613225/375769
customer:99100167/44949/20160121413/604169/364816
customer:1010101161/281/78421413/604169/364816
customer:11111021600091/381/1444
customer:12121031623/123529/1512911492/4338464/187489
customer:1313100167/44949/20160111415/613225/375769
customer:1414101160011415/613225/375769
customer:1515102168/45364/20520931411/617121/380689
customer:16161031600091/381/1444
customer:17171101656/28351529/8008911492/433116281/187489
customer:18181011624/91576/828131489/4277921/182329
customer:19191121651/28755696/8236931489/427114244/182329
customer:2020103160021413/604169/364816
First four rows per selected inner/full-CV/final-fit frame

This table is an explicitly bounded preview. Every row remains in computed-selected-predictions.csv. Final all-data training loss is not an independent test score.

View every row here, twenty at a time.

1–20 / 136
First four rows per frame, or all when fewer
ScheduleRoleScopeFoldCandidateIDEligibleProbabilityRow loss
Aselected-inner-heldouter-0-inner016customer:412/1534/23409
Aselected-inner-heldouter-0-inner016customer:7117/90289/8100
Aselected-inner-heldouter-0-inner016customer:1012/1534/23409
Aselected-inner-heldouter-0-inner016customer:16100
Aselected-inner-heldouter-0-inner116customer:215/2425/576
Aselected-inner-heldouter-0-inner116customer:817/29549/87025
Aselected-inner-heldouter-0-inner116customer:11100
Aselected-inner-heldouter-0-inner116customer:14100
Aselected-inner-heldouter-0-inner216customer:314/2516/625
Aselected-inner-heldouter-0-inner216customer:611/981/9604
Aselected-inner-heldouter-0-inner216customer:1214/2516/625
Aselected-inner-heldouter-0-inner216customer:1511/981/9604
Aselected-inner-heldouter-1-inner016customer:1110/301100/90601
Aselected-inner-heldouter-1-inner016customer:4110/301100/90601
Aselected-inner-heldouter-1-inner016customer:717/2649/676
Aselected-inner-heldouter-1-inner016customer:13110/301100/90601
Aselected-inner-heldouter-1-inner116customer:5116/61256/3721
Aselected-inner-heldouter-1-inner116customer:8113/294169/86436
Aselected-inner-heldouter-1-inner116customer:11100
Aselected-inner-heldouter-1-inner116customer:17116/612025/3721

5. Descriptive covariance of two schedules of the same data

Fold covariance of two fixed schedules: descriptive
Fold covariance of two fixed schedules: descriptive · Point data match the tables below. Enlarge vector original · High-resolution PNG
The complete 4×4 covariance and macro variance identity
Fold kFold lSample covarianceMacro repeat varianceCovariance sum/16 minus direct variance
00
≈ 0.00034674917028024449904145322262506208873563422264003143293347240800418372123253058384089/20268329636046460247691796000657094617573932696140775770467105449461176310906880000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
01
≈ -0.0002391262-938358814751676178229849493390297030171482358732697132846816362533254755806854089961075553923112533/3924116242696219737563949137170010281969203240848477989533603755428854637782252210221899529232384000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
02
≈ 0.0002159415451064094438442189413255529142803891954586655370537287697349057328228135689494053935460539/2088825562546786651569157055501963074977657492652810274639816861352926011282125925892628480000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
03
≈ -0.0001161028-47051108003759253187678209817182641790841626953944161048981919983500164148495255739319042335479/405253699062876737266016884408067445075469637255230498616850705305838986029999697669414558392320000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
10
≈ -0.0002391262-938358814751676178229849493390297030171482358732697132846816362533254755806854089961075553923112533/3924116242696219737563949137170010281969203240848477989533603755428854637782252210221899529232384000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
11
≈ 0.0001649069125286596752545423650765477157511665981551759463859782297452009999626294772690413310012243770361997567583257346359228001/759741358202814614671104034357325128773782608092025999797552782436218778137640685772640848491631749398459057898291200000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
12
≈ -0.0001489182-2589657847408727325831337885551241223334190881207051696759497838904685777083284542318633678968137515913527496869/17389797877253912566246498169346117327259282695590619789420886581366922125689980237082576352348375962278244352000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
13
≈ 8.00672e-05458594022336203584641916956815518683163003044188440816574696847884587899008054034619351956247040353229547013677964499/5727614142688457872344412543102906870080451735193268703027924949065285049229406618881470537079041541964937663950848000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
20
≈ 0.0002159415451064094438442189413255529142803891954586655370537287697349057328228135689494053935460539/2088825562546786651569157055501963074977657492652810274639816861352926011282125925892628480000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
21
≈ -0.0001489182-2589657847408727325831337885551241223334190881207051696759497838904685777083284542318633678968137515913527496869/17389797877253912566246498169346117327259282695590619789420886581366922125689980237082576352348375962278244352000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
22
≈ 0.000134479753527894766679038977863907026642484706323623079878624713700146998073333884419114876870774523398309095161/398036867345343320989034883101594056845604237438260036493085670202437787352621253320965752370441583185920000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
23
≈ -7.230422e-05-9479079482566873383020285112560137289937116767101668728450860021573080677775236632772731269561238951862785631/131099947613572259452657021763985369257942933734624144423328207638712831340125343098377513092207482476825006080000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
30
≈ -0.0001161028-47051108003759253187678209817182641790841626953944161048981919983500164148495255739319042335479/405253699062876737266016884408067445075469637255230498616850705305838986029999697669414558392320000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
31
≈ 8.00672e-05458594022336203584641916956815518683163003044188440816574696847884587899008054034619351956247040353229547013677964499/5727614142688457872344412543102906870080451735193268703027924949065285049229406618881470537079041541964937663950848000000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
32
≈ -7.230422e-05-9479079482566873383020285112560137289937116767101668728450860021573080677775236632772731269561238951862785631/131099947613572259452657021763985369257942933734624144423328207638712831340125343098377513092207482476825006080000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0
33
≈ 3.8875e-051678619124261794552073806722809383076280380971896022253094058359944879226252807583285544685084894330729333341093001/43179910390987720019074142089973658354385835450547532514930039424940670606713985796434597222932833639033702546001920000
≈ 7.757825e-06196025388216698232945727756123681067332485415518955442571768861239928153257342839208878631628914906357787725662224503836195767794825273780852617246826542033958734554214234149796555755030584084174526470467179382147994009463050477352494164718524478053026425592966386006975217143842352398873998416761/25268085800303924190384757997532538682961590886794371700293560204601639413974015261065321032784582641783403203499280302152307927773813611983325275659520819048579819505754747150318367646830607286755659054253069204614823219543311701343160792458824629093436394723056166960155027100725149773607731200000000
0

The two rows are schedules A/B of the same observations. This centers a finite matrix with R−1=1. Zero residual checks algebra, not new-sample standard error, a confidence interval or independence of four folds.

6. Sources, computed CSVs, code and checks to try

Provider documentation · Python · R

Python consumes only native columns of three factual CSVs, reconstructs targets/schedules/candidates and uses Fraction arithmetic. R is a binary64 counterpart retaining the first candidate within 1e−12 of the numerical minimum. All choices/criteria for these six actual studies match exact Python here; R is not a universal exact-rational near-tie decision engine.

Try five checks: compare a native row with fitted medians; use IDs/folds to exclude it from its own outer fit; calculate its cell probability and loss; locate the winner among every inner candidate; then explain A/B sensitivity separately from final all-data fitting.

학부 심화 · 선택Advanced undergraduate · optional

원자료에서 ID·결측·접힘을 다시 구성하기Reconstruct native identities, missingness and folds

재현의 첫 단계는 모형 파일이 아니라 원자료의 열과 행입니다. 국가에서는 네 지표 코드의 연도·국가·단위를 맞춘 후 원16국을 정해진 순서로 연결합니다. NLS는 원 ZIP의 코드북 열 위치로52개 값을 읽고, SAS 읽기문의 변수 순서와도 대조합니다. Churn은 원 CSV의 헤더와14필드를 그대로 남깁니다. 이번 장은 보관한 원본을 다시 읽어 만들었으며 새로 내려받은 최신 자료라고 부르지 않습니다.

일정A는 원행 위치를 사용합니다. 일정B는 SHA256 키의 정렬 순서에 기반합니다. 원결측 행에도 먼저 일정이 부여되므로 제외된 행을 제거한 뒤 남은 순번으로 다시 접힘을 만들면 다른 실험이 됩니다. 같은 해 국가의 ISO 코드, NLS 원 ID, 생성 회사 ID의 역할을 구분해 추적해야 합니다.

Aouter(i)=(sourceRow⁡i−1) mod 4,Ainner(i)=(sourceRow⁡i−1) mod 3A_{\rm outer}(i)=(\operatorname{sourceRow}_i-1)\bmod4,\qquad A_{\rm inner}(i)=(\operatorname{sourceRow}_i-1)\bmod3

바깥 보유 위치의 안쪽 라벨은 null입니다. 이것은 X나 Y의 결측과 다른 구조 표시로, 그 행을 안쪽 평가에서 쓰지 않는다는 뜻입니다. 다른 바깥 반복에서는 같은 행이 훈련에 들어갈 수 있습니다. 각 범위의 fit IDs를 공개한 이유도 여기에 있습니다.

B의 키 문자열은 ML13-B-outer|ID와 ML13-B-inner-o|ID입니다. 안쪽 키의 o는 해당 바깥 접힘 번호로 바꾸고, 그 바깥 보유 위치를 제외한 원행 전체를 정렬해 순번을3으로 나눕니다. 해시가 난수처럼 보인다고 독립 확률 표집 법칙을 가정하지 않습니다.

Reproduction begins with native rows and fields, not a fitted model. Join four country indicators by country, year and units in the declared sixteen-country order. Read 52 NLS values at codebook field positions and cross-check the SAS variable order. Preserve the Churn CSV header and fourteen fields. This chapter reopens retained originals; it does not label them a new latest-data download.

A uses native positions; B sorts explicit SHA256 keys. Assign schedules before exclusions. Renumbering complete rows first creates another experiment. Trace ISO codes, native NLS IDs and generated company identities according to their separate roles.

Aouter(i)=(sourceRow⁡i−1) mod 4,Ainner(i)=(sourceRow⁡i−1) mod 3A_{\rm outer}(i)=(\operatorname{sourceRow}_i-1)\bmod4,\qquad A_{\rm inner}(i)=(\operatorname{sourceRow}_i-1)\bmod3

An inner label is null at an outer-held position. This is a structural exclusion from inner assessment, distinct from missing X or Y. The row can train a different outer model; explicit fit IDs document that boundary.

B keys are ML13-B-outer|ID and ML13-B-inner-o|ID, with o replaced by the outer-fold index. For each inner schedule, sort all native non-outer-held positions and reduce rank modulo three. Hash-like ordering is not an IID sampling law.

학부 심화 · 선택Advanced undergraduate · optional

원사실 CSV에서 끝까지 재현하는 Python·RReproduce from factual CSVs with Python and R

공개 Python 코드는 원사실 CSV 세 개만 입력으로 읽고, 특징·표적·예정 접힘·후보 목록을 다시 만듭니다. 웹 엔진이나 이미 적합된 모형 JSON, 이 장의 계산 결과 CSV를 답으로 가져오지 않습니다. 분수 산술로 각 훈련 범위의 중앙값, 셀 분자·분모, 모든 후보의 손실을 계산하는 순서가 본문의 장부와 같습니다.

R 코드는 같은 원입력과 정의를 사용하는 별도의 수치 재현입니다. 기본 R의 실수 산술은 Python의 임의정밀 분수와 동일한 수 체계가 아니므로, 근삿값·허용오차·동률 근처의 비교 범위를 명시해 읽습니다. 웹의 정확한 분수와 R의 화면 소수 표기를 같은 증명으로 취급하지 않습니다.

명령은 코드와 세 CSV를 같은 내려받기 구조에 두고 실행합니다. 실행 결과의 metrics·candidate/fold 기준·셀·보유 예측·제외 사유 표를 서로 연결해 보세요. 자기 행의 바깥 적합 ID에 자기 ID가 없는지도 직접 확인할 수 있습니다.

python ml13-study.py --out my-ml13-python

Rscript ml13-study.R --out my-ml13-r

원본 그림은 같은 수치로 다시 그린 정적 보관본이고 웹 그래프는 작은 화면에서도 축·표기를 읽도록 그립니다. 그래프만 보지 말고 점 자료 표와 단위를 함께 확인하세요. 원분수 전체는 펼치기에서 읽고 기본 표에서는 필요한 자릿수의 근삿값을 사용합니다.

코드 두 개를 같은 폴더에 두고 터미널의 현재 폴더를 그 코드 폴더로 옮기세요. 아래 원사실 CSV 세 개는 그 아래 ml13-sources 폴더에 둡니다. Python 코드와 R 코드를 실행하면 새 출력 폴더에 모든 계산 표가 생깁니다.

The public Python study reads only three factual CSV files and reconstructs features, targets, planned schedules and candidates. It does not import the web engine, fitted model JSON or computed answers. Fraction arithmetic follows the chapter’s ledger: fold medians, cell numerators/denominators and every candidate’s loss.

The R study independently implements the same definitions with native floating-point arithmetic. Read its approximation, tolerance and near-tie scope explicitly; base-R decimals and Python arbitrary-precision fractions are not the same number system or proof.

Keep code and factual CSVs in their supplied download structure. Link metrics to candidate/fold criteria, cells, held predictions and exclusions. Check that each held row’s ID is absent from the fit that predicts it.

python ml13-study.py --out my-ml13-python

Rscript ml13-study.R --out my-ml13-r

Original static figures retain the same point data; responsive web redraws make axes and labels readable on small screens. Inspect point tables and units too. Full fractions belong in explicit disclosures, with readable approximations in default tables.

Put both programs in one folder and open a terminal there. Place the three factual CSVs below in its ml13-sources subfolder. Run the Python program and R program to create every computed table in separate output folders.

학부 심화 · 선택Advanced undergraduate · optional

질문으로 만나는 연구자와 본문 영상Researchers through their questions, and an embedded video

학자는 이름을 외우는 목록보다 질문을 구별하는 길잡이로 만나면 좋습니다. Cawley와 Talbot의2010년 연구는 모형 선택 기준에도 과적합할 수 있음을 묻습니다. Bengio와 Grandvalet의2004년 연구는 CV 오차 사이의 의존과 일반 분산 추정의 한계를 다룹니다. Bates·Hastie·Tibshirani의 연구는 무엇의 위험을 추정하는지와 불확실성을 구분해 묻습니다. 마지막 연구의 특수 선형모형 결과나 별도 분산용 중첩 절차를 이 장의 두 일정 기술 분산과 동일시하지 않습니다.

처음 읽을 때는 각 원문의 초록과 가정·정의부터 보세요. “누구를 고정했는가, 어떤 자료를 새로 뽑는가, 손실의 단위는 무엇인가”를 한 문장씩 적습니다. 모두 같은 이름의 CV를 다뤄도 추정 대상과 알고리즘은 다를 수 있습니다.

Cawley·Talbot(2010) · Bengio·Grandvalet(2004) · Bates·Hastie·Tibshirani

본문 영상은 MIT The Analytics Edge의 Video 6: Cross-Validation입니다. CV로 튜닝하는 기본 흐름을 보고, 본문의 여덟 카드에 왜 별도의 바깥 평가가 필요한지 설명해 보세요. 이 영상이 이 장의 모든 중첩·분산 이론을 강의한다고 가정하지 않습니다. 재생은 아래 본문 플레이어에서 할 수 있습니다.

시청 질문: 같은 CV 표에서 후보를 고른 뒤 그 최소값만 최종 성적으로 쓰면 어떤 선택이 평가에 섞일까요? 답: 그 표의 우연한 변동을 이용한 후보 선택까지 포함되므로, 고정 후보의 점수와 선택 절차의 독립 평가를 구분해야 합니다.

Meet scholars through their questions. Cawley and Talbot (2010) examine overfitting to model-selection criteria. Bengio and Grandvalet (2004) study dependent CV errors and limits of general variance estimation. Bates, Hastie and Tibshirani distinguish risk estimands and uncertainty. Their special linear-model results and separate variance-oriented nested procedure are not the two-schedule descriptive variance here.

Begin primary reading with abstracts, assumptions and definitions. Write what remains fixed, what is newly sampled and the loss unit. A shared name, CV, need not imply identical estimands or algorithms.

Cawley and Talbot (2010) · Bengio and Grandvalet (2004) · Bates, Hastie and Tibshirani

The embedded resource is MIT The Analytics Edge, Video 6: Cross-Validation. Watch the basic tuning workflow, then explain the extra outer assessment in our eight-card example. The introductory video does not cover every nested-variance result in this chapter.

Viewing question: what choice enters assessment when you select candidates and report only the minimum of the same CV table? Answer: selection uses that table’s accidental variation; distinguish a fixed-candidate score from independent assessment of the selection procedure.

학부 심화 · 선택Advanced undergraduate · optional

실습 F: 실제 자료에서 선택·평가·최종 적합을 대조하기Lab F: compare actual selection, assessment and final fitting

실습 F에서 국가·개인·기업과 일정A/B를 선택하고 계산을 시작합니다. 입력을 바꾸기 전 현재 자료의 행 수·양성 수·분할별 사용 수를 읽으세요. 전체 결과는 바깥 접힘별 안쪽 후보 선택, 바깥 재적합, 보유 예측, 평가 후 전체 재선택을 구분해 보여 줍니다.

먼저 국가의 두 일정을 비교해 후보 인덱스와 점수가 어떻게 달라지는지 추적합니다. 이어 NLS의 A에서 동일한 전체 CV 최소값과 중첩 값, 기업 B의 음의 실현 차이를 확인하세요. 이 셋을 한 가지 편향 보정 상수로 정리하지 말고 실제 선택·예측 장부로 설명합니다.

실제 자료는 읽기 전용입니다. 값 교란 실험은 앞의 작은 카드 입력에서 하세요. 고정 Python·R 보관 코드는 각자의 명시 입력으로 계산된 재현본이며, 언어를 바꾼다고 현재 입력을 몰래 다시 적합하지 않습니다. 큰 출력은 표 페이지·요약·원분수 펼치기로 나눠 읽고 원본 그림도 확대할 수 있습니다.

In Lab F choose a country, person or company study and schedule A/B, then calculate. Read row counts, positives and fold eligibility first. The result separates per-outer inner selection, outer refitting, held predictions and post-assessment full-frame retuning.

Start with both country schedules. Then inspect equality of nested/full-CV scores for NLS A and the negative realized company-B contrast. Explain them through actual selections and prediction ledgers rather than one universal bias-correction constant.

Actual data are read-only; perturb the small card examples instead. Archived Python/R programs have explicit fixed inputs and do not silently refit current inputs on language changes. Use table pages, summaries and exact-fraction disclosures to navigate large outputs; original figures retain enlargement.

학부 심화 · 선택Advanced undergraduate · optional

평가를 한 문장 이상으로 설명하기Explain assessment in more than one score

이제 “모형 성능은 몇 점인가”보다 조금 더 긴 문장을 쓸 수 있어야 합니다. 어떤 관측·손실·선택 목록·훈련 크기를 평가했는지, 중앙값이 어디에서 배워졌는지, 각 보유 예측이 자기 자료를 보지 않았는지 설명해 보세요. 그리고 중첩 점수·최종 전체 적합·반복 민감도가 각각 다른 결과라는 점을 구분합니다.

자기 점검 프로젝트로 세 자료 중 하나를 골라 한 페이지 보고서를 만드세요. 원자료 세 행을 손으로 해석하고, 한 바깥 접힘의 후보 표를 다시 계산하며, 그 범위의 중앙값·한 셀 확률·한 보유 손실을 연결합니다. 다음 페이지에는 A/B 차이, 누락 행, 단위와 일반화 한계를 적습니다. 원문 파일을 열지 않아도 다른 사람이 핵심을 따라갈 수 있도록 표·그림·짧은 풀이를 함께 남깁니다.

다음 ML14에서는 확률 예측 평가를 불균형 표적·오류 비용·집단별 결과와 연결합니다. 중첩 분할을 했다는 사실이 그 선택들을 자동 해결하지는 않습니다. 이번 장의 범위 장부 위에 새로운 손실·선택 절차를 올리고 다시 평가해야 합니다.

You should now be able to write more than “the model scored this much.” State observations, loss, candidate family and training size; explain where medians were learned and how held predictions exclude their own data. Separate nested assessment, the final all-data fit and repeated-schedule sensitivity.

Choose one actual study for a short project. Interpret three native records, reconstruct one outer candidate table, and connect its median, one cell probability and one held loss. Then document A/B differences, exclusions, units and generalization limits. Include tables, figures and short worked steps so another reader can follow the essentials without opening raw files.

ML14 connects probability assessment to imbalance, error costs and group-specific outcomes. Nesting alone does not decide those questions. Add the new loss and selection steps to the ledger, then assess the resulting procedure.

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

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

교차검증의 흐름 · MIT The Analytics EdgeCross-validation workflow: MIT The Analytics Edge

MIT OpenCourseWare · 15.071 Spring 2017 · English · graduate course resource

기본 CV 튜닝 흐름을 여덟 카드의 안쪽 선택·바깥 평가와 대조합니다.Compare the basic CV tuning workflow with inner selection and outer assessment in the eight-card study.

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

보고 읽은 뒤 답하기Respond after watching/reading 같은 CV 최소값만 최종 성적으로 쓰면 어떤 선택이 평가에 섞이나요?What choice enters assessment when only the minimum of the same CV table is reported?

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

그 표의 우연한 변동을 이용한 선택이 섞입니다. 고정 후보 점수와 선택 절차의 독립 평가를 구분해야 합니다.Selection uses that table’s accidental variation. Distinguish a fixed-candidate score from independent assessment of selection.

원문 읽기 · 모형 선택 기준의 과적합Primary reading: overfitting a model-selection criterion

Gavin C. Cawley and Nicola L. C. Talbot · JMLR 2010 · selected opening

처음 두 PDF 쪽의 선택 기준 변동과 평가 편향 질문을 읽고 고정 후보와 선택 절차를 구분합니다.Read the opening two PDF pages on criterion variability and assessment bias; separate fixed candidates from selection procedures.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 각 후보의 점수만 불편향이면 최소값도 불편향인가요?Does unbiased scoring of each fixed candidate make the minimum unbiased?

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

아닙니다. 고정 위험에 대한 조건을 둔 최소값의 기대 부등식과 본문의 두 후보 예를 확인합니다.No. Check the stated fixed-risk expectation inequality and the two-candidate constructed example.

원문 읽기 · CV 분산의 보편 공식 한계Primary reading: limits of a universal CV-variance formula

Yoshua Bengio and Yves Grandvalet · JMLR 2004 · selected definitions and theorem discussion

서두와 위험 정의, 4절의 모멘트 구조·정리 조건을 읽습니다. 전체17쪽을 읽었다고 주장하지 않습니다.Read opening definitions and selected Section 4 moment/theorem conditions; this is not a claim of reading all seventeen pages.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 보편 공식의 한계가 특별 모형·추가 자료의 불확실성 추정도 모두 금지하나요?Does the universal-formula limitation rule out uncertainty estimation under special models or additional data?

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

그렇지 않습니다. 정리의 범위와 추가 가정이 있는 별도 문제를 구분합니다.No. Separate the theorem’s scope from problems with explicit additional assumptions.

대학원 읽기 · 무엇의 예측 위험을 추정하는가Graduate reading: which prediction risk is estimated?

Stephen Bates, Trevor Hastie and Robert Tibshirani · selected abstract, introduction and definitions

고정 자료 모형 위험과 훈련 자료를 평균한 위험을 구분하고, 해당 논문의 분산용 중첩 절차를 이 장의 튜닝 중첩과 구별합니다.Distinguish fitted-data conditional risk from training-set averaged risk, and their variance-oriented nesting from this chapter’s tuning nesting.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 두 고정 분할의 macro 분산이 그 논문의 신뢰구간 알고리즘인가요?Is the macro variance of our two fixed schedules that paper’s confidence-interval algorithm?

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

아닙니다. 이 장은 동일 자료 분할의 유한 기술량을 계산하며 그 추론 알고리즘을 구현했다고 주장하지 않습니다.No. This chapter calculates a finite descriptive split quantity, not that inferential algorithm.

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

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

1. 두 가지 시험의 역할Two kinds of exam

연습시험 점수로 공부법 A와 B 중 하나를 고른 뒤, 그 최고 점수로 새 시험 성능을 보고했습니다. 무엇을 추가로 평가해야 하나요?

After choosing study method A or B by practice scores, you report the best practice score as new-exam performance. What additional assessment is needed?

풀이와 확인할 이유Solution and explanation

선택한 공부법의 적합뿐 아니라 “연습시험을 보고 공부법을 고르는 절차” 전체를 별도의 보유 관측으로 평가해야 합니다. 중첩 교차검증에서는 안쪽에서 선택하고 바깥 보유 접힘에서 그 선택 결과를 채점합니다.

평가 이후 모든 자료로 마지막 모형을 적합할 수 있으나, 그 마지막 자료에 대한 훈련 점수는 새 독립 시험의 점수가 아닙니다.

Assess the whole procedure that inspects practice scores and chooses a method, using held-out observations. Nested CV chooses internally and scores the chosen result on each outer-held fold.

You may later fit a final model on all observations. Its training score is not the mark from a new independent exam.

2. 같은 확률의 두 손실Two losses for the same probability

p=3/4일 때 y=1과 y=0의 Brier를 각각 계산하고 어떤 쪽이 큰지 설명하세요.

For p=3/4, calculate Brier at y=1 and y=0 and explain which is larger.

풀이와 확인할 이유Solution and explanation
(3/4−1)2=1/16,(3/4−0)2=9/16(3/4-1)^2=1/16,\qquad (3/4-0)^2=9/16

높은 양성 확률을 주었는데 실제 음성인 두 번째 경우의 손실이 더 큽니다. 같은 예측 숫자라도 정답과 연결해야 채점할 수 있으며, 여기에는 1/2을 추가로 곱하지 않습니다.

(3/4−1)2=1/16,(3/4−0)2=9/16(3/4-1)^2=1/16,\qquad (3/4-0)^2=9/16

A high positive probability is more costly when the actual target is zero. A prediction must be paired with its target; our Brier convention adds no one-half multiplier.

3. 평활화한 두 칸Two smoothed cells

낮은 칸은 질량2·양성0, 높은 칸은 질량2·양성2입니다. α=1에서 각 확률과 같은 네 훈련 행의 평균 Brier를 구하세요.

The lower cell has mass two with zero positives; the upper has mass two with two positives. At alpha one, find both probabilities and the average Brier on these four fitting rows.

풀이와 확인할 이유Solution and explanation
plow=0+12+2=14,phigh=2+12+2=34,R^train=116p_{\rm low}=\frac{0+1}{2+2}=\frac14,\quad p_{\rm high}=\frac{2+1}{2+2}=\frac34,\quad \widehat R_{\rm train}=\frac1{16}

네 행의 손실이 각각 1/16이므로 평균도 같습니다. 훈련에 이미 사용한 자료의 점수이며, 이 수만으로 새 관측의 위험을 알 수는 없습니다.

plow=0+12+2=14,phigh=2+12+2=34,R^train=116p_{\rm low}=\frac{0+1}{2+2}=\frac14,\quad p_{\rm high}=\frac{2+1}{2+2}=\frac34,\quad \widehat R_{\rm train}=\frac1{16}

Each fitting-row loss is 1/16, so its mean is also 1/16. This uses the fitting observations and alone does not identify future risk.

4. 엄격한 경계의 질의A query exactly on a strict boundary

훈련 중앙값5, 낮은 확률1/4·높은 확률3/4입니다. X=5와 X=6의 예측을 구하세요. 질의를 추가한 뒤 중앙값을 다시 구해야 하나요?

Training median is five and lower/upper probabilities are 1/4 and 3/4. Predict at X five and six. Should adding queries refit the median?

풀이와 확인할 이유Solution and explanation

이 장의 구분은 X>5이므로 X=5의 확률은 1/4, X=6은 3/4입니다. 경계의 등호가 어느 쪽에 들어가는지 정하지 않으면 구현 두 개가 다른 답을 줄 수 있습니다.

질의는 훈련 범위를 바꾸지 않습니다. 질의만 바꿨을 때 훈련 중앙값이 변하면 평가 중 전처리를 다시 학습한 것입니다.

The split is X>5, giving 1/4 at five and 3/4 at six. Specify which side includes equality, or two implementations can disagree.

Queries do not change the fitting scope. A changed training median after editing only queries means preprocessing was refitted during prediction.

5. 질량이 있는 중앙값A median with analytical mass

X=0,10에 각각 질량1,3을 둡니다. 이 장의 가중 중앙값과 최소 절대편차 합을 구하세요. 보통의 두 행 중앙값5와 왜 다른가요?

Place masses one and three at X zero and ten. Find our weighted median and its absolute-deviation objective. Why does it differ from the ordinary two-row median five?

풀이와 확인할 이유Solution and explanation

총질량은 4이고 절반은 2입니다. 0까지 누적 질량은 1, 10까지는 4이므로 가중 중앙값은 10입니다.

1∣0−10∣+3∣10−10∣=10,1∣0−5∣+3∣10−5∣=201|0-10|+3|10-10|=10,\qquad 1|0-5|+3|10-5|=20

두 행을 같은 무게로 센 계산과 질량1·3을 사용한 계산은 목적함수가 다릅니다. 원자료의 분석 질량과 행 개수를 혼동하지 않아야 합니다.

Total mass is four and half is two. Cumulative mass is one at zero and four at ten, so the weighted median is ten.

1∣0−10∣+3∣10−10∣=10,1∣0−5∣+3∣10−5∣=201|0-10|+3|10-10|=10,\qquad 1|0-5|+3|10-5|=20

Equal row weights and masses one and three define different objectives. Distinguish analytical mass from row count.

6. 네 보유 손실의 합Summing four held-out losses

본문의 네 보유 손실1/4,1/4,1/9,1/9를 평균하세요. 훈련 전체의 1/16과 어떤 점에서 다른가요?

Average the held-out losses 1/4, 1/4, 1/9 and 1/9. How does this differ from the all-fitting score 1/16?

풀이와 확인할 이유Solution and explanation
14(14+14+19+19)=1372\frac14\left(\frac14+\frac14+\frac19+\frac19\right)=\frac{13}{72}

각 손실의 모형과 중앙값은 해당 행을 제외한 세 행으로 적합되었습니다. 1/16은 네 행 전부로 적합한 뒤 그 네 행에서 다시 채점한 값입니다. 관측별 적합 범위와 훈련 크기가 모두 다릅니다.

14(14+14+19+19)=1372\frac14\left(\frac14+\frac14+\frac19+\frac19\right)=\frac{13}{72}

Each loss uses a predictor and median fitted without that observation, on three rows. The 1/16 score fits all four and scores those same four. Both fitting scope and training size differ.

7. 접힘 평균과 모든 행 평균Fold means versus pooling every row

첫 접힘은 질량1·평균 손실1/4이고 둘째는 질량3·평균 손실0입니다. pooled와 macro를 각각 구하세요.

The first fold has mass one and mean loss 1/4; the second has mass three and mean loss zero. Find pooled and macro risk.

풀이와 확인할 이유Solution and explanation
Rpooled=1(1/4)+3(0)1+3=116,Rmacro=1/4+02=18R_{\rm pooled}=\frac{1(1/4)+3(0)}{1+3}=\frac1{16},\qquad R_{\rm macro}=\frac{1/4+0}{2}=\frac18

pooled는 평가 질량 한 단위에 같은 비중을 주고, macro는 접힘 하나에 같은 비중을 줍니다. 단위 질량 사례에서는 전자가 모든 행의 보유 손실 평균입니다. 두 값 중 하나를 조용히 다른 이름으로 대체하면 선택 순위도 달라질 수 있습니다.

Rpooled=1(1/4)+3(0)1+3=116,Rmacro=1/4+02=18R_{\rm pooled}=\frac{1(1/4)+3(0)}{1+3}=\frac1{16},\qquad R_{\rm macro}=\frac{1/4+0}{2}=\frac18

Pooled risk weights each unit of evaluation mass equally; macro weights folds equally. With unit row masses the former averages every OOF loss. Silently replacing one with the other can change the model ranking.

8. 전처리 범위가 만든 차이A difference caused by preprocessing scope

전체 X의 중앙값5를 먼저 사용한 네 보유 손실은 모두1/9입니다. 접힘 내부 적합13/72와의 차이를 구하고, 이 차이가 언제나 같은 부호라고 말할 수 있는지 설명하세요.

Using the all-X median five gives four losses of 1/9. Compute its difference from fold-fitted 13/72 and explain whether this sign is universal.

풀이와 확인할 이유Solution and explanation
1372−19=572\frac{13}{72}-\frac19=\frac5{72}

이 예에서는 all-X 점수가 5/72만큼 더 낮습니다. 보유 X가 전처리에 들어간 별도 절차를 계산했기 때문입니다. 이것은 이 자료의 실현 차이이며, 모든 자료·전처리에 대해 그 차이가 양수라는 증명은 아닙니다. 어떤 절차와 관측 정보 조건을 평가할 것인지 먼저 정해야 합니다.

1372−19=572\frac{13}{72}-\frac19=\frac5{72}

The all-X score is lower by 5/72 in this example. It evaluates a different procedure that observes held covariates during preprocessing. This realized result does not prove the same sign for every dataset and transformation. First specify the procedure and information available at prediction time.

9. 실제 국가의 한 접힘을 채점하기Score one actual country fold

일정A의 첫 보유 AUS·DEU·IND·SGP의 표적은1,1,0,1입니다. 훈련에서 배운 GDP 구분 확률이 높은 칸3/4·낮은 칸1/8이고 IND만 낮은 칸일 때 평균 Brier를 구하세요.

Targets for held AUS, DEU, IND and SGP in schedule A are 1,1,0,1. The fold-trained GDP-bin probabilities are 3/4 high and 1/8 low, with only IND low. Calculate mean Brier.

풀이와 확인할 이유Solution and explanation
(3/4−1)2+(3/4−1)2+(1/8−0)2+(3/4−1)24=13256\frac{(3/4-1)^2+(3/4-1)^2+(1/8-0)^2+(3/4-1)^2}{4}=\frac{13}{256}

중앙값은 나머지 12개 국가의 원 GDP에서 배운 약25,083.77불변 USD입니다. 낮은 칸 6개 모두 음성, 높은 칸 6개 중5개 양성이므로 α=1에서 각각1/8과3/4가 됩니다. 자료의 단위·훈련 ID·확률 분모·표적을 함께 읽은 계산입니다.

(3/4−1)2+(3/4−1)2+(1/8−0)2+(3/4−1)24=13256\frac{(3/4-1)^2+(3/4-1)^2+(1/8-0)^2+(3/4-1)^2}{4}=\frac{13}{256}

The median, about 25,083.77 constant-2015 USD, is learned from the other twelve countries. All six lower-cell countries are negative, while five of six upper-cell countries are positive, giving 1/8 and 3/4 at alpha one. The calculation connects units, fitting IDs, probability denominators and targets.

10. 사용 불가 행을 평균에 0으로 넣으면What happens if an excluded row is scored as zero?

같은 관측 조건을 만족하는 세 행의 보유 손실 합이3/4이고, 다른 한 행의 필수 X가 결측입니다. 그 행을 원자료에 보존하면서 올바른 평균과 0손실로 넣었을 때의 평균을 비교하세요.

Three complete rows have total OOF loss 3/4 and a fourth row has missing required X. Retain the source row and compare the correct mean with treating it as zero loss.

풀이와 확인할 이유Solution and explanation
Religible=3/43=14,Rfalse zero=3/4+04=316R_{\rm eligible}=\frac{3/4}{3}=\frac14,\qquad R_{\rm false\ zero}=\frac{3/4+0}{4}=\frac3{16}

두 번째 값은 예측하지 못한 행을 오류가 없었던 행처럼 세어 성능을 부풀립니다. 원행을 보존한다는 것은 분모에 억지로 넣는다는 뜻이 아닙니다. 같은 제외 규칙을 모든 후보에 적용하고, 사용3행·제외1행·분모3을 명시하면 됩니다.

Religible=3/43=14,Rfalse zero=3/4+04=316R_{\rm eligible}=\frac{3/4}{3}=\frac14,\qquad R_{\rm false\ zero}=\frac{3/4+0}{4}=\frac3{16}

The second number counts an unpredicted case as an error-free prediction and improves the score artificially. Retaining a native row does not force it into a scoring denominator. Apply the same eligibility rule to every candidate and report three used rows, one exclusion and mass three.

11. 설정인가 적합 결과인가Configuration or fitted quantity?

사용 특징[0], α=1, 훈련 중앙값5, 칸의 양성 질량2를 설정과 적합 결과로 분류하세요.

Classify predictor subset [0], alpha one, training median five and cell-positive mass two as configurations or fitted quantities.

풀이와 확인할 이유Solution and explanation

특징[0]과 α=1은 이 파이프라인을 지정하는 설정입니다. 훈련 중앙값5와 양성 질량2는 그 설정과 현재 훈련 자료에서 계산한 적합 결과입니다.

후보를 비교하여 α나 특징 목록도 고른다면, 그 선택 과정은 별도 평가 대상의 일부가 됩니다. 설정이라는 이름은 자료를 보지 않았다는 보증이 아닙니다.

Subset [0] and alpha one configure the pipeline. Median five and positive mass two are fitted quantities computed under that configuration from the current training data.

If comparisons choose alpha or features, that search also belongs to the assessed procedure. Calling something a configuration does not guarantee it was chosen without inspecting data.

12. 두 후보의 정확 비교An exact comparison of two candidates

네 카드의 빈 특징 CV는9/25, 중앙값 특징 CV는13/72입니다. 선택 후보와 차이를 구하세요.

Empty-feature CV is 9/25 and median-feature CV is 13/72. Select a candidate and calculate their difference.

풀이와 확인할 이유Solution and explanation
925−1372=3231800>0\frac9{25}-\frac{13}{72}=\frac{323}{1800}>0

작은 손실을 선택하므로 중앙값 특징 후보를 고릅니다. 이 차이는 같은 접힘·같은 사용 행에서 계산한 두 추정 기준의 차이입니다. 두 모집단 위험 사이의 알려진 차이라고 바꾸어 말할 수는 없습니다.

925−1372=3231800>0\frac9{25}-\frac{13}{72}=\frac{323}{1800}>0

Select the smaller loss, hence the median-feature candidate. The difference compares two estimated criteria on the same folds and observations. It is not an identified difference between their population risks.

13. 동률에서 이름순인가 선언순인가Alphabetical or declared order in a tie?

후보 B와 A를 이 순서로 선언했고 정확 CV 점수가 같습니다. 엔진은 무엇을 선택하나요? A가 더 단순해 보이면 자동으로 바꾸어도 되나요?

Candidates B then A are declared in that order and have identical exact CV scores. Which is selected, and may an implementation switch automatically because A appears simpler?

풀이와 확인할 이유Solution and explanation

이 장의 규칙은 먼저 선언한 후보이므로 B를 선택합니다. 이름의 사전순이나 구현자가 나중에 판단한 단순성이 기준이 아닙니다.

단순한 후보를 우선하려면 후보 순서를 A,B로 선언하거나 명시적 보조 기준을 설계하고 전체 평가에서 그 규칙을 유지해야 합니다. 동률 규칙도 재현할 절차의 일부입니다.

Choose B under the earliest-declaration rule. Alphabetical order and an implementer’s later simplicity judgment are not the declared criterion.

To prefer a simpler candidate, declare A first or specify a secondary rule and retain it throughout assessment. Tie handling is part of the reproducible procedure.

14. 두 개의 불편향 점수에서 최솟값 고르기Selecting the minimum of two unbiased scores

고정 참위험이 각각1/2인 두 후보의 추정 점수가 독립적으로0 또는1을 같은 확률로 받습니다. 선택한 점수의 기대값과 참위험 대비 편향을 구하세요.

Two candidates have fixed true risk 1/2; their scores independently take zero or one with equal probabilities. Find the expected selected score and its bias relative to selected true risk.

풀이와 확인할 이유Solution and explanation
가정한 네 점수쌍
점수쌍확률최솟값
(0,0)1/40
(0,1)1/40
(1,0)1/40
(1,1)1/41
E[min⁡(R^1,R^2)]=14,14−12=−14\mathbb E[\min(\widehat R_1,\widehat R_2)]=\frac14,\qquad \frac14-\frac12=-\frac14

각 후보의 점수는 불편향이지만, 유리한 오차를 골라 보고한 최솟값은 여기서 낙관적입니다. 이는 명시한 가정 분포의 계산이며 실제 자료에서 관측한 편향 크기는 아닙니다.

Four assumed score pairs
PairProbabilityMinimum
(0,0)1/40
(0,1)1/40
(1,0)1/40
(1,1)1/41
E[min⁡(R^1,R^2)]=14,14−12=−14\mathbb E[\min(\widehat R_1,\widehat R_2)]=\frac14,\qquad \frac14-\frac12=-\frac14

Individual unbiasedness does not prevent the reported minimum from selecting favorable error. This quantifies the stated assumed distribution, not an observed bias in our real datasets.

15. 점수 오차가 완전히 같이 움직이면When score errors move together perfectly

앞 문제에서 두 점수가 항상 같아 (0,0) 또는(1,1)이 각각 확률1/2로만 발생한다면 기대 최솟값은 무엇인가요?

If scores always agree, giving only (0,0) or (1,1) with probability 1/2 each, what is the expected minimum?

풀이와 확인할 이유Solution and explanation
E[min⁡(R^1,R^2)]=12(0)+12(1)=12\mathbb E[\min(\widehat R_1,\widehat R_2)]=\tfrac12(0)+\tfrac12(1)=\tfrac12

이 경우 최솟값의 낙관 편향은0입니다. 후보 수가 같아도 오차의 의존 구조에 따라 선택의 효과가 달라집니다. 일반적인 최솟값 부등식에 독립성이 필요하지 않다는 말과, 독립·완전 동행 예의 수치가 같다는 말은 다릅니다.

E[min⁡(R^1,R^2)]=12(0)+12(1)=12\mathbb E[\min(\widehat R_1,\widehat R_2)]=\tfrac12(0)+\tfrac12(1)=\tfrac12

The selected minimum has zero optimism in this case. The same number of candidates can behave differently under another error-dependence structure. Independence is unnecessary for the general inequality; that does not make the independent and perfectly correlated numerical examples identical.

16. 후보 추가의 단조성과 실제 성능Monotonic score improvement versus true improvement

기존 점수를 그대로 둔 채 후보를 추가하면 보고하는 최소 검증 손실은 증가할 수 있나요? 선택된 참위험도 반드시 줄어드나요?

Keeping existing scores unchanged, can adding a candidate raise the minimum validation loss? Must selected true risk also fall?

풀이와 확인할 이유Solution and explanation

보고하는 최솟값은 증가할 수 없습니다. 기존 후보의 최솟값을 여전히 선택할 수 있기 때문입니다.

참위험은 반드시 줄지 않습니다. 새 후보의 낮은 추정 점수가 유리한 오차에서 나왔을 수 있습니다. 기존 점수까지 새로운 분할이나 재학습으로 바뀐 실험이라면 처음의 단조성 주장 자체도 같은 조건으로 적용되지 않습니다.

The reported minimum cannot increase because the old minimum remains available.

True risk need not decrease: a new low estimate can reflect favorable error. If the experiment also changes existing scores through another split or refit, even the pointwise monotonicity statement no longer applies under its original conditions.

17. 단위 변환과 배운 변환 구별하기A fixed unit conversion versus a learned transform

원 임금 센트를100으로 나누는 일과 모든 관측의 평균·표준편차로 X를 표준화한 뒤 CV하는 일은 같은 전처리인가요?

Is dividing native wage cents by one hundred equivalent, for evaluation scope, to standardizing X with the full sample’s mean and standard deviation before CV?

풀이와 확인할 이유Solution and explanation

센트를 달러로 바꾸는100은 정의된 단위 변환이며 현재 표본에서 추정한 숫자가 아닙니다. 전체 표본의 평균·표준편차는 데이터를 요약해 배운 값입니다.

귀납적 새 관측 절차를 평가한다면 뒤의 값은 각 훈련 접힘에서 다시 추정해야 합니다. 단위나 표적 변환을 어떤 평가 점수를 본 뒤 골랐다면 그 선택에는 별도의 범위 설명이 필요합니다.

One hundred is a fixed cents-to-dollars definition, not a fitted sample quantity. A full-sample mean and standard deviation are learned summaries.

For inductive prediction of new observations, fit the latter within each training fold. Choosing a unit or target transformation after inspecting scores introduces a separate selection question.

18. 후보마다 다른 분모의 함정The trap of candidate-specific denominators

공통 사용3행에서 A와 B의 오류 수가 각각1입니다. 네 번째 행은 B에 필요한 X가 결측인데 A에만 오류0으로 추가하면 비교가 어떻게 바뀌나요?

On three common rows, A and B each have one error. A fourth row lacks a required B predictor, but is added only to A with zero error. How does the comparison change?

풀이와 확인할 이유Solution and explanation
RA=RB=13on the common frame,RA,changed=14R_A=R_B=\frac13\quad\hbox{on the common frame},\qquad R_{A,\rm changed}=\frac14

A가 좋아 보이는 이유에 사용한 사람의 차이가 들어갑니다. 공통 범위라는 설계에서는 둘 다3행을 사용해야 합니다. 다른 정보 가용성·다른 모집단을 의도적으로 비교하려면 그것이 다른 질문임을 밝히고 각 범위를 보고하세요.

RA=RB=13on the common frame,RA,changed=14R_A=R_B=\frac13\quad\hbox{on the common frame},\qquad R_{A,\rm changed}=\frac14

A now looks better partly because it scores a different set of people. Our common-frame design uses three for both. If different information availability or populations are intended, identify the changed question and report each scope.

19. 한 가지 표적만 있는 접힘A fold with only one target class

훈련 질량2·양성 질량0·α=0의 빈 특징 모형을 표적0인 양의 질량 보유 행에서 채점합니다. 확률과 Brier가 미정의인가요?

An empty-feature model has training mass two, zero positive mass and alpha zero. Score a positive-mass held row with target zero. Are probability and Brier undefined?

풀이와 확인할 이유Solution and explanation
p^=02=0,(0−0)2=0\widehat p=\frac0{2}=0,\qquad (0-0)^2=0

두 값 모두 정의됩니다. 한 클래스만 있다는 사실과 분모가0이라는 사실은 다릅니다. 이 장에서는 각 접힘의 사용 질량이 양수인지 확인하며, 다른 성능 지표가 어떤 조건에서 미정의가 되는지는 다음 장에서 더 구별합니다.

p^=02=0,(0−0)2=0\widehat p=\frac0{2}=0,\qquad (0-0)^2=0

Both are defined. Having one target class differs from having zero denominator. We require positive eligible fold mass; the next chapter distinguishes the conditions needed by other performance measures.

20. 보유 X를 바꾸어 경계 검산하기Audit the boundary by changing held X

네 카드의 첫 행 X=0을100으로 바꾸고 첫 행을 보유합니다. 접힘 내부 훈련 중앙값과 전체 X 중앙값은 각각 어떻게 바뀌나요? 보유 손실도 그대로여야 하나요?

Change the first card’s X from zero to one hundred and hold that row out. How do the fold-training and all-X medians change? Must held loss remain unchanged?

풀이와 확인할 이유Solution and explanation

첫 접힘의 훈련 X는 여전히2,8,10이므로 중앙값8이 그대로입니다. 전체 X는2,8,10,100이 되어 중앙값이5에서9로 바뀝니다.

정상적인 접힘 내부 적합에서도 보유 예측과 손실은 바뀔 수 있습니다. 질의 X가 달라졌기 때문입니다. 바뀌지 않아야 하는 것은 그 접힘의 훈련 범위·배운 전처리·적합 모형이며, 새 질의에 대한 답 자체가 아닙니다.

Training X for the first fold remains two, eight and ten, so its median stays eight. Full-sample X becomes two, eight, ten and one hundred, changing its median from five to nine.

Even the correct fold-fitted procedure can change held prediction and loss because the query changed. Its training scope, learned preprocessing and fitted model should stay fixed, not necessarily the answer to a new query.

21. 세 층의 ID를 쓰기Write the identities at all three layers

바깥0에서 a0,a2,a4,a6을 보유합니다. 안쪽0은 a1,a5, 안쪽1은 a3,a7을 보유한다면 각각의 적합 ID는 무엇인가요?

Outer zero holds a0,a2,a4,a6; inner zero holds a1,a5 and inner one holds a3,a7. List the fitting IDs at each inner step.

풀이와 확인할 이유Solution and explanation

바깥 훈련은 a1,a3,a5,a7입니다. 안쪽0은 그중 a1,a5를 제외한 a3,a7로 적합하고, 안쪽1은 a1,a5로 적합합니다.

안쪽에서 고른 설정은 바깥 훈련 네 행 전부로 다시 적합합니다. 원래 짝수 네 보유 행은 그 마지막 바깥 모형을 채점할 때 처음 사용합니다.

Outer training is a1,a3,a5,a7. Inner zero fits a3,a7, while inner one fits a1,a5.

Refit the chosen configuration on all four outer-training rows. Use the originally held even rows only when scoring that outer model.

22. 바깥0의 안쪽 승자The inner winner for outer zero

바깥0의 세 기준9/32,5/18,41/162에서 어느 후보를 고르나요? 마지막 두 후보의 차이도 구하세요.

Which candidate wins among 9/32, 5/18 and 41/162? Also compare the last two.

풀이와 확인할 이유Solution and explanation
518−41162=281>0\frac5{18}-\frac{41}{162}=\frac2{81}>0

41/162가9/32보다도 작으므로 후보2, 중앙값 구분·α=4를 고릅니다. 이는 바깥0의 훈련 범위 안에서 얻은 선택입니다. 바깥 손실을 먼저 보고 이 후보를 골랐다고 바꾸어 기술하면 순서가 달라집니다.

518−41162=281>0\frac5{18}-\frac{41}{162}=\frac2{81}>0

Because 41/162 is also smaller than 9/32, select candidate two: the median bin with alpha four. This choice occurs inside outer-zero training. Choosing after seeing outer loss would change the order of the procedure.

23. 바깥1의 다른 선택A different choice for outer one

바깥1의 기준은9/32,7/36,73/324입니다. 선택 후보와 α=4 후보 대비 차이를 계산하세요.

Outer-one criteria are 9/32, 7/36 and 73/324. Select a candidate and calculate the difference against alpha four.

풀이와 확인할 이유Solution and explanation
73324−736=5162>0\frac{73}{324}-\frac7{36}=\frac5{162}>0

7/36이 가장 작으므로 후보1, α=1을 고릅니다. 같은 후보 목록이라도 다른 훈련 범위에서 같은 α가 선택된다는 보장은 없습니다. 바깥0의 선택을 바깥1에 그대로 재사용하지 않습니다.

73324−736=5162>0\frac{73}{324}-\frac7{36}=\frac5{162}>0

The minimum is 7/36, selecting candidate one with alpha one. The same candidate grid does not guarantee the same choice in another training frame. Do not reuse outer zero’s selection in outer one.

24. 경계 위의 바깥 음성An outer negative on the threshold

바깥0의 최종 중앙값4, 낮은 확률1/2·높은 확률3/5입니다. X=4·Y=0의 확률과 Brier는 무엇인가요?

Outer zero has final median four and lower/upper probabilities 1/2 and 3/5. Predict and score X four, Y zero.

풀이와 확인할 이유Solution and explanation
4>4 is false,p=12,(p−0)2=144>4\ \hbox{is false},\qquad p=\frac12,\qquad (p-0)^2=\frac14

전체 여덟 X의 중앙값3.5를 여기 끼우면 그 행을 높은 칸으로 보내는 다른 모형이 됩니다. 바깥 훈련에서 배운 경계와 엄격한 비교 규칙을 함께 지켜야 합니다.

4>4 is false,p=12,(p−0)2=144>4\ \hbox{is false},\qquad p=\frac12,\qquad (p-0)^2=\frac14

Inserting the full eight-row median 3.5 would send this row to the upper cell under another fit. Preserve both the outer-training threshold and its strict comparison rule.

25. 바깥 두 손실을 합치기Combine the two outer losses

바깥 접힘은 각각4행이고 Brier가91/400,9/32입니다. 중첩 pooled와 macro를 구하세요.

Both outer folds have four rows and Brier 91/400 and 9/32. Calculate nested pooled and macro risk.

풀이와 확인할 이유Solution and explanation
Rpooled=Rmacro=91/400+9/322=4071600R_{\rm pooled}=R_{\rm macro}=\frac{91/400+9/32}{2}=\frac{407}{1600}

두 접힘의 사용 질량이 같기 때문에 이 예에서는 같습니다. 같은 식을 사용 질량이 다른 실제 접힘에 무조건 적용해서는 안 되며, 그때 pooled는 각 질량으로 가중해야 합니다.

Rpooled=Rmacro=91/400+9/322=4071600R_{\rm pooled}=R_{\rm macro}=\frac{91/400+9/32}{2}=\frac{407}{1600}

Equality follows from equal scored masses in this example. With unequal actual fold masses, pooled risk instead weights each fold by its mass.

26. 재사용한 최솟값과의 차이Compare against the reused minimum

전체 바깥 접힘을 후보 선택에도 쓴 최솟값193/800과 중첩407/1600의 차이를 구하세요. 어떤 결론까지 가능한가요?

Subtract reused-minimum risk 193/800 from nested risk 407/1600. What can this result establish?

풀이와 확인할 이유Solution and explanation
4071600−193800=211600\frac{407}{1600}-\frac{193}{800}=\frac{21}{1600}

이 자료에서는 중첩 절차가 보고한 손실이21/1600만큼 높습니다. 모든 자료에서의 편향 크기나 항상 같은 부호라는 법칙은 아닙니다. 서로 다른 선택·평가 절차의 실현된 유한 점수 차이입니다.

4071600−193800=211600\frac{407}{1600}-\frac{193}{800}=\frac{21}{1600}

For these observations the nested procedure reports loss higher by 21/1600. It is not a universal bias magnitude or sign law, but a realized finite comparison between two selection/evaluation procedures.

27. 바깥 표적을 바꾸면 어디까지 달라지나Which results may change after editing outer-held targets?

바깥0 보유 행의 Y만 바꾸었습니다. 바깥0의 안쪽 선택, 바깥0 손실, 바깥1의 선택, 마지막 전체 자료 적합 중 무엇이 그대로여야 하나요?

Edit only targets held in outer zero. Which of outer-zero inner choice, outer-zero loss, outer-one choice and final all-data fit must stay unchanged?

풀이와 확인할 이유Solution and explanation

바깥0의 안쪽 선택과 바깥0의 훈련 적합은 그대로여야 합니다. 그 과정에 바깥0 보유 Y가 들어가지 않기 때문입니다. 바깥0 손실은 정답이 바뀌어 달라질 수 있습니다.

그 행들은 바깥1의 훈련 범위에 들어가므로 바깥1의 선택도 달라질 수 있습니다. 평가 뒤 모든 자료를 쓰는 마지막 적합도 달라질 수 있습니다. 전체 결과 객체가 모두 같아야 한다고 검사하면 올바른 범위 구분을 놓칩니다.

Outer-zero inner selection and fitted outer-zero model must stay unchanged, since they do not use those held targets. Its loss may change because its scoring targets changed.

Those rows train outer one, whose selection may also change. A final all-data refit can change too. Requiring the entire output object to remain identical would test the wrong scope.

28. null의 두 의미를 구별하기Distinguish two meanings of null

바깥0의 안쪽 접힘 벡터를 원행8개 순서로 쓰세요. 바깥0 보유 위치에 둔 null은 결측 대치인가요?

Write outer-zero inner labels in the eight-row source order. Are its null markers missing-data imputations?

풀이와 확인할 이유Solution and explanation

벡터는 [null,0,null,1,null,0,null,1]입니다. 짝수 위치는 바깥 보유 행이므로 이 안쪽 실험에 참가하지 않습니다.

이 null은 원 X나 Y가 관측되지 않았다는 뜻도, 값을0으로 채웠다는 뜻도 아닙니다. 구조적 제외 표지입니다. 엔진은 그 위치에 숫자 안쪽 번호를 넣으면 잘못된 범위 표시로 거부합니다.

Use [null,0,null,1,null,0,null,1]. Even positions are held by the outer fold and do not participate in this inner experiment.

These nulls are structural exclusions, not absent native measurements or zero imputation. A numeric inner label at those positions is rejected as an invalid scope marker.

29. 마지막 전체 적합의 두 확률Two probabilities of the final all-data fit

전체8행에서 중앙값3.5, 낮은 칸은 질량4·양성1, 높은 칸은 질량4·양성3입니다. 선택된 α=4에서 확률을 구하세요.

The full eight-row fit has median3.5, lower-cell mass four with one positive and upper-cell mass four with three positives. Find probabilities at selected alpha four.

풀이와 확인할 이유Solution and explanation
plow=1+44+8=512,phigh=3+44+8=712p_{\rm low}=\frac{1+4}{4+8}=\frac5{12},\qquad p_{\rm high}=\frac{3+4}{4+8}=\frac7{12}

이 확률은 마지막 운영 모형의 적합 결과입니다. 바깥 보유 예측의1/2·3/5 또는1/4·1/2를 덮어쓰는 값이 아닙니다. 전체 적합의 예측과 평가용 보유 예측은 다른 배열로 보관합니다.

plow=1+44+8=512,phigh=3+44+8=712p_{\rm low}=\frac{1+4}{4+8}=\frac5{12},\qquad p_{\rm high}=\frac{3+4}{4+8}=\frac7{12}

These are fitted probabilities of the final operational model. They do not overwrite the outer probabilities one-half/three-fifths or one-quarter/one-half. Keep final-model and held-out predictions in separate records.

30. 훈련 점수와 절차 점수로 모집단 위험을 알 수 있나Do training and procedure scores identify population risk?

마지막8행 모형의 훈련 Brier는31/144이고 중첩은407/1600입니다. 그 차이를 계산한 뒤 어느 하나를 최종 모형의 정확한 모집단 위험이라고 부를 수 있는지 답하세요.

Final eight-row training Brier is31/144 and nested risk is407/1600. Calculate the difference and say whether either is the final model’s exact population risk.

풀이와 확인할 이유Solution and explanation
4071600−31144=56314400\frac{407}{1600}-\frac{31}{144}=\frac{563}{14400}

둘 중 어느 것도 그 자체로 최종 적합의 정확한 모집단 위험은 아닙니다. 훈련 점수는 적합 자료를 재사용하고, 중첩은 이 예에서4행 훈련 범위에서 선택하는 절차를 평가합니다.

표집·새 관측·훈련 크기에 대한 조건을 명시해야 통계적 해석을 붙일 수 있습니다. 이 유한 차이를 일반적인 편향의 추정값이라고 자동 명명하지 않습니다.

4071600−31144=56314400\frac{407}{1600}-\frac{31}{144}=\frac{563}{14400}

Neither alone identifies the exact population risk of the final fit. Training reuses fitting observations; nested CV here assesses a selection procedure trained on four-row scopes.

State sampling, new-observation and training-size conditions before adding a statistical interpretation. The finite difference is not automatically a general bias estimate.

31. 동행하는 두 점수의 모집단 분산Population variance for two co-moving scores

Z가0,1을 같은 확률로 갖고 L1=L2=Z입니다. 두 점수의 평균 분산과 공분산을 지운 값을 각각 구하세요.

Let Z be zero or one with equal probabilities and L1=L2=Z. Find variance of their mean and the value obtained by dropping covariance.

풀이와 확인할 이유Solution and explanation
Var⁡(Z)=14,Cov⁡(L1,L2)=14,Var⁡(Lˉ)=14,Var⁡(L1)+Var⁡(L2)4=18\operatorname{Var}(Z)=\tfrac14,\quad \operatorname{Cov}(L_1,L_2)=\tfrac14,\quad \operatorname{Var}(\bar L)=\tfrac14,\quad \frac{\operatorname{Var}(L_1)+\operatorname{Var}(L_2)}4=\tfrac18

알려진 가정 법칙에서의 모집단 모멘트 계산입니다. 두 행의 R−1 표본 공분산 계산과 같은 분모를 쓰는 문제가 아닙니다. 의존 항을 지우면 여기서는 분산을 작게 계산합니다.

Var⁡(Z)=14,Cov⁡(L1,L2)=14,Var⁡(Lˉ)=14,Var⁡(L1)+Var⁡(L2)4=18\operatorname{Var}(Z)=\tfrac14,\quad \operatorname{Cov}(L_1,L_2)=\tfrac14,\quad \operatorname{Var}(\bar L)=\tfrac14,\quad \frac{\operatorname{Var}(L_1)+\operatorname{Var}(L_2)}4=\tfrac18

These are population moments under an assumed known law, not the R−1 covariance of two observed rows. Dropping dependence understates variance here.

32. 반대로 움직이면When the scores move in opposite directions

같은 Z에서 L1=Z,L2=1−Z라면 평균과 그 분산은 무엇인가요?

For the same Z, let L1=Z and L2=1−Z. What are the mean score and its variance?

풀이와 확인할 이유Solution and explanation
Lˉ=12,Cov⁡(L1,L2)=−14,Var⁡(Lˉ)=0\bar L=\tfrac12,\qquad \operatorname{Cov}(L_1,L_2)=-\tfrac14,\qquad \operatorname{Var}(\bar L)=0

평균은 모든 상태에서1/2이므로 변하지 않습니다. 각 점수가 변동한다는 사실만으로 평균이 양의 분산을 갖는다고 결론낼 수 없습니다. 공분산을 무시하면 여기서는 오히려 크게 계산합니다.

Lˉ=12,Cov⁡(L1,L2)=−14,Var⁡(Lˉ)=0\bar L=\tfrac12,\qquad \operatorname{Cov}(L_1,L_2)=-\tfrac14,\qquad \operatorname{Var}(\bar L)=0

The mean is one half in every state. Varying components do not guarantee a varying mean. Ignoring covariance overstates mean variance in this example.

33. 유한 두 반복의 공분산 행렬A covariance matrix from two finite repeats

반복 행렬[[0,0],[1,1]]의 R−1 표본 공분산과 macro 행 평균들의 표본분산을 구하세요.

For finite repeat matrix [[0,0],[1,1]], compute R−1 sample covariance and the sample variance of row macro means.

풀이와 확인할 이유Solution and explanation
S=(1/21/21/21/2),smacro2=1/2+1/2+1/2+1/24=12S=\begin{pmatrix}1/2&1/2\\1/2&1/2\end{pmatrix},\qquad s^2_{\rm macro}=\frac{1/2+1/2+1/2+1/2}{4}=\frac12

각 행 평균은0,1이며 그 표본분산도1/2입니다. 앞 문제의 알려진 Bernoulli 모집단 분산1/4와 구별하세요. 각 행 안에서 접힘 간 차이는0이어서 단순한 행내 표준오차 공식은0을 냅니다.

S=(1/21/21/21/2),smacro2=1/2+1/2+1/2+1/24=12S=\begin{pmatrix}1/2&1/2\\1/2&1/2\end{pmatrix},\qquad s^2_{\rm macro}=\frac{1/2+1/2+1/2+1/2}{4}=\frac12

Row means are zero and one, with sample variance one half. Distinguish this from the assumed Bernoulli population variance one quarter. Within either row the two folds agree, so the naive within-row formula gives zero.

34. 음의 표본 공분산과 잔차0Negative sample covariance and zero identity residual

유한 행렬[[0,1],[1,0]]의 공분산 합을 구하고 macro 분산이0이라는 것을 어떻게 해석할지 설명하세요.

For finite matrix [[0,1],[1,0]], sum its covariance entries and interpret zero macro variance.

풀이와 확인할 이유Solution and explanation
S=(1/2−1/2−1/21/2),∑k,ℓSkℓ=0,smacro2=0S=\begin{pmatrix}1/2&-1/2\\-1/2&1/2\end{pmatrix},\quad \sum_{k,\ell}S_{k\ell}=0,\quad s^2_{\rm macro}=0

관측된 두 행의 평균이 모두1/2이라는 뜻입니다. 더 큰 모집단이나 다른 자료의 평균이 절대로 변하지 않는다는 증거는 아닙니다. 각 행의 접힘 표본분산/K는1/4이므로 두 기술량을 같은 이름으로 부르지 않습니다.

S=(1/2−1/2−1/21/2),∑k,ℓSkℓ=0,smacro2=0S=\begin{pmatrix}1/2&-1/2\\-1/2&1/2\end{pmatrix},\quad \sum_{k,\ell}S_{k\ell}=0,\quad s^2_{\rm macro}=0

Both observed row means equal one half. This does not prove zero population or new-dataset variability. Each row’s fold sample variance divided by K is one quarter, a different descriptive quantity.

35. 완전 반복이 하나만 남으면When only one complete repeat remains

입력[[1/5,2/5],[null,1/2]]에서 공통 완전 행 규칙을 쓰면 공분산, macro 평균, 행내 단순 공식은 어떻게 되나요?

For [[1/5,2/5],[null,1/2]], apply common complete-row eligibility. What happens to covariance, the macro mean and the naive within-row formula?

풀이와 확인할 이유Solution and explanation

두 번째 반복 행 전체를 제외해 완전 반복은 하나입니다. 공분산과 macro 반복 평균의 R−1 분산은 미정의입니다. 첫 행의 macro 평균은3/10으로 계산할 수 있습니다.

(1/5−3/10)2+(2/5−3/10)2(2−1) 2=1100\frac{(1/5-3/10)^2+(2/5-3/10)^2}{(2-1)\,2}=\frac1{100}

이1/100은 첫 행의 행내 단순 공식이지 미정의인 반복 분산을 대신 채우는 값이 아닙니다.

Exclude the second repeat as a whole, leaving one complete row. Covariance and R−1 variance of macro repeat means are undefined. The first macro mean remains calculable as 3/10.

(1/5−3/10)2+(2/5−3/10)2(2−1) 2=1100\frac{(1/5-3/10)^2+(2/5-3/10)^2}{(2-1)\,2}=\frac1{100}

The 1/100 is a within-row naive formula, not a replacement for the undefined repeat variance.

36. macro 분산을 pooled에 붙이면Relabeling macro variance as pooled variance

두 반복 모두 접힘 손실(0,1)이지만 질량이A에서(1,3),B에서(3,1)입니다. 두 종류의 반복 평균과 표본분산을 비교하세요.

Both repeats have fold losses (0,1), but masses are (1,3) in A and (3,1) in B. Compare macro and pooled repeat means and sample variances.

풀이와 확인할 이유Solution and explanation
Lˉmacro,A=Lˉmacro,B=12,Rpooled,A=34,Rpooled,B=14\bar L_{{\rm macro},A}=\bar L_{{\rm macro},B}=\tfrac12,\qquad R_{{\rm pooled},A}=\tfrac34,\quad R_{{\rm pooled},B}=\tfrac14

macro의 관측 표본분산은0이지만 pooled의 두 값은 평균1/2에서±1/4이므로 표본분산1/8입니다. 접힘 질량이 바뀌는 상황에서 동일가중 공분산 합 등식을 pooled 분산이라고 부를 수 없습니다.

Lˉmacro,A=Lˉmacro,B=12,Rpooled,A=34,Rpooled,B=14\bar L_{{\rm macro},A}=\bar L_{{\rm macro},B}=\tfrac12,\qquad R_{{\rm pooled},A}=\tfrac34,\quad R_{{\rm pooled},B}=\tfrac14

Observed macro variance is zero, while pooled means differ by plus/minus one quarter around one half and have sample variance 1/8. The equal-weight covariance identity cannot be relabeled as pooled variance when masses change.

37. 실제 선택 빈도 계산하기Calculate actual selection frequencies

국가 일정A의 선택4,1,1,6과 B의4,1,4,1에서 후보별 빈도를 구하고 그 의미를 말하세요.

Using actual country choices 4,1,1,6 for A and 4,1,4,1 for B, calculate frequencies and interpret them.

풀이와 확인할 이유Solution and explanation

후보1은4/8, 후보4는3/8, 후보6은1/8입니다. 나머지 후보는 이 여덟 훈련 범위에서 선택되지 않았습니다.

이는 고정 일정·같은 관측 자료 안의 기술 빈도입니다. 후보1이 모집단 최적일 확률1/2나, 여덟 번의 독립 모형 실험을 수행했다는 뜻은 아닙니다.

Frequencies are 4/8 for candidate one, 3/8 for four and 1/8 for six; others were not selected in these eight scopes.

These describe fixed schedules of the same observations. They are not a probability of population optimality or eight independent model experiments.

38. 짝지은 두 차이의 평균Average two paired differences

같은 접힘의 후보1−후보2 차이가−39/1600,21/800입니다. 평균의 부호와 값을 구하세요.

Paired candidate-one minus candidate-two differences are −39/1600 and 21/800. Find the sign and value of their mean.

풀이와 확인할 이유Solution and explanation
−39/1600+21/8002=33200>0\frac{-39/1600+21/800}{2}=\frac3{3200}>0

평균 손실은 후보2가 작지만 각 접힘의 부호는 반대입니다. 이 평균을 보고 유의한 우위라고 선언하려면 별도의 표집·의존 가정과 평가 절차가 필요합니다. 두 접힘을 독립 반복이라고 자동 처리하지 않습니다.

−39/1600+21/8002=33200>0\frac{-39/1600+21/800}{2}=\frac3{3200}>0

Candidate two has smaller mean loss, but fold signs differ. Statistical superiority needs a separate sampling/dependence argument and assessment design. The two folds are not automatically independent repetitions.

39. 분할을100번 바꾸면 표본수도100배인가Do one hundred splits multiply sample size by one hundred?

같은3,017명의 자료를100개 고정 일정으로 평가하면 신규 사람을301,700명 관측한 것과 같은가요? 어떤 변동을 기술할 수 있나요?

Does evaluating 100 schedules of the same 3,017 people equal observing 301,700 new people? What variability can it describe?

풀이와 확인할 이유Solution and explanation

관측한 사람은 여전히3,017명입니다. 고정 자료에서 분할·선택·적합이 달라지는 민감도를 기술할 수 있지만 사람을 새로 표집한 변동과 같지 않습니다.

반복 수의 제곱근으로 기술 표준편차를 무조건 나누어 모집단 표준오차라고 부르지 않습니다. 실제로 독립인 반복 단위가 무엇인지, 무엇에 조건을 두는지부터 밝혀야 합니다.

There are still 3,017 observed people. Repetitions can describe sensitivity to partitions, selection and refitting conditional on these observations, not the same variability as sampling new people.

Do not automatically divide a descriptive spread by the square root of schedule count and call it population standard error. Identify independent repetition units and conditioning first.

40. 일반 공식이 없으면 아무 추정도 못 하나Does no universal formula mean no estimation is possible?

보편적 불편 CV 분산 공식의 한계를 “어떤 추가 가정·자료가 있어도 불확실성을 평가할 수 없다”라고 요약해도 되나요?

May the lack of a universal unbiased CV-variance formula be summarized as uncertainty being unassessable under any additional assumptions or data?

풀이와 확인할 이유Solution and explanation

그렇게 확대하면 안 됩니다. 학습된 모형을 고정하고 독립 신규 시험 관측을 모으는 경우, 알려진 의존 모형을 사용하는 경우 등은 서로 다른 가정과 추정 문제입니다.

추가 조건을 명시한 결과와 아무 분포·절차에나 적용하려는 보편 공식을 구별하세요. 이 장의 유한 공분산·등식 검산은 추론의 전제를 대신하지 않지만, 평가 범위를 투명하게 만드는 데 유용합니다.

No. Holding a fitted model fixed and collecting independent new test observations, or assuming a known dependence model, defines different estimation problems.

Distinguish results under explicit additional assumptions from a formula intended for arbitrary distributions and procedures. Finite covariance identities do not supply inferential assumptions, but do make assessment scopes transparent.

41. 현재 모형 위험과 절차 평균Current-model risk and procedure average

훈련 결과가 같은 확률로 예측0 또는1을 만들고, 새 Y는 독립 Bernoulli(1/4)입니다. 두 조건부 위험과 절차 평균·위험 분산을 구하세요.

Equiprobable training outcomes yield predictor zero or one; new Y is independent Bernoulli(1/4). Find conditional risks, procedure-average risk and risk variance.

풀이와 확인할 이유Solution and explanation
R(0)=14,R(1)=34,ER=12,Var⁡(R)=12[(14−12)2+(34−12)2]=116R(0)=\tfrac14,\quad R(1)=\tfrac34,\quad \mathbb E R=\tfrac12,\quad \operatorname{Var}(R)=\tfrac12[(\tfrac14-\tfrac12)^2+(\tfrac34-\tfrac12)^2]=\tfrac1{16}

예측0을 실제로 얻었다면 그 모형의 위험은1/4입니다. 절차를 새 자료에 반복한 평균1/2와 구분합니다. 이 문제는 실제 자료의 알 수 없는 확률을 추정한 것이 아니라 가정한 법칙을 계산한 것입니다.

R(0)=14,R(1)=34,ER=12,Var⁡(R)=12[(14−12)2+(34−12)2]=116R(0)=\tfrac14,\quad R(1)=\tfrac34,\quad \mathbb E R=\tfrac12,\quad \operatorname{Var}(R)=\tfrac12[(\tfrac14-\tfrac12)^2+(\tfrac34-\tfrac12)^2]=\tfrac1{16}

If the realized predictor is zero, its risk is one quarter, distinct from procedure average one half. This calculates an assumed law rather than estimating unknown actual-data probabilities.

42. 시험 수를 늘려도 남는 항A term that remains with more test observations

앞 문제에서 독립 시험 수 n=3일 때 시험 평균의 전체 분산을 구하세요. n이 커지면 어떤 항이 남나요?

With n=3 independent test observations in the preceding problem, find total variance of the test mean. Which term remains as n grows?

풀이와 확인할 이유Solution and explanation
Var⁡(R^)=316⋅3+116=18,lim⁡n→∞Var⁡(R^)=116\operatorname{Var}(\widehat R)=\frac3{16\cdot3}+\frac1{16}=\frac18,\qquad \lim_{n\to\infty}\operatorname{Var}(\widehat R)=\frac1{16}

첫 항은 현재 적합을 조건으로 한 시험 표집 변동이고, 두 번째는 훈련 자료가 달라져 모형 위험이 달라지는 변동입니다. 전체 반복 실험의 분산과 한 모형을 고정한 조건부분산을 섞지 않습니다.

Var⁡(R^)=316⋅3+116=18,lim⁡n→∞Var⁡(R^)=116\operatorname{Var}(\widehat R)=\frac3{16\cdot3}+\frac1{16}=\frac18,\qquad \lim_{n\to\infty}\operatorname{Var}(\widehat R)=\frac1{16}

The first term is test sampling conditional on the fitted model; the second is training-induced risk variation. Distinguish full repeated-experiment variance from variance conditional on one fit.

43. 독립 시험 편차의 상한Bound a deviation on an independent test

고정된 모형의 독립 Brier 시험200개에서 오차 폭0.1의 양측 Hoeffding 실패 상한은 무엇인가요?

For 200 independent Brier tests of a fixed model, what is the two-sided Hoeffding failure bound at deviation 0.1?

풀이와 확인할 이유Solution and explanation
2e−2⋅200⋅(0.1)2=2e−4≈0.036632e^{-2\cdot200\cdot(0.1)^2}=2e^{-4}\approx0.03663

약3.663% 이하라는 보수적 상한입니다. 실제 확률이 정확히 그 값이라는 말은 아닙니다. 200개가 학습·선택에 쓰이지 않은 독립 신규 시험 행이고 손실 범위가0~1이라는 전제가 필요합니다.

2e−2⋅200⋅(0.1)2=2e−4≈0.036632e^{-2\cdot200\cdot(0.1)^2}=2e^{-4}\approx0.03663

This is an upper bound of about 3.663%, not the exact probability. The 200 rows must be independent new tests unused in fitting/selection, with loss in [0,1].

44. 충분한 시험 수 계획하기Plan a sufficient test size

ε=0.1,δ=0.05를 원합니다. 앞 부등식으로 충분한 독립 시험 수의 최소 정수를 구하세요.

Using epsilon 0.1 and delta 0.05, find the smallest integer test size sufficient under the bound.

풀이와 확인할 이유Solution and explanation
n≥log⁡400.02≈184.44398,n=185n\ge\frac{\log40}{0.02}\approx184.44398,\qquad n=185

184에서는 이 충분조건이 충족되지 않습니다. 이는 이 부등식의 보장을 만족하는 최소 정수이지 모든 분포에서 필요한 최소 시험 수라는 주장이 아닙니다.

n≥log⁡400.02≈184.44398,n=185n\ge\frac{\log40}{0.02}\approx184.44398,\qquad n=185

184 does not satisfy this sufficient condition. The result minimizes the integer count for this bound, not the necessary test size under every distribution.

45. 위험 범위와 구간의 교차Intersect an interval with the risk range

독립 시험 점수0.02에 유효한 오차 폭0.1이 주어졌습니다. Brier 위험의 가능한 범위와 교차한 구간을 쓰세요.

A valid radius 0.1 accompanies independent-test score 0.02. Intersect the interval with the Brier-risk range.

풀이와 확인할 이유Solution and explanation
[0.02−0.1, 0.02+0.1]∩[0,1]=[0, 0.12][0.02-0.1,\ 0.02+0.1]\cap[0,1]=[0,\ 0.12]

음의 위험은 가능하지 않으므로 범위와 교차합니다. 오차 폭의 보장이 유효하려면 앞의 표집·고정 모형 조건이 필요합니다. 현재 중첩 점수에 단순히 같은 폭을 붙인 것은 아닙니다.

[0.02−0.1, 0.02+0.1]∩[0,1]=[0, 0.12][0.02-0.1,\ 0.02+0.1]\cap[0,1]=[0,\ 0.12]

Risk cannot be negative. Intersection retains coverage if the original bound was valid under its fixed-model and sampling assumptions. It does not create a valid radius for arbitrary nested CV scores.

46. 후보 전체에 대한 보장A guarantee over the whole family

독립 훈련으로 적합한 고정 후보10개를 같은 신규 검증200개로 비교합니다. δ=0.05의 동시 오차 폭을 구하고, 선택 모형의 위험 상한을 설명하세요.

Ten fixed predictors fitted on independent training data use 200 new validation rows. Find a simultaneous radius at delta 0.05 and explain the selected model’s risk bound.

풀이와 확인할 이유Solution and explanation
ε=log⁡400400≈0.12239,Rj^≤min⁡jRj+2ε\varepsilon=\sqrt{\frac{\log400}{400}}\approx0.12239,\qquad R_{\hat j}\le\min_j R_j+2\varepsilon

모든 후보의 경험·실제 위험 차이가 ε 이내인 사건에서 경험 최소의 선택 논리를 두 번 적용한 결과입니다. 모형 간 손실 독립은 필요하지 않지만 검증 행의 독립·고정 후보 목록이라는 조건은 필요합니다.

ε=log⁡400400≈0.12239,Rj^≤min⁡jRj+2ε\varepsilon=\sqrt{\frac{\log400}{400}}\approx0.12239,\qquad R_{\hat j}\le\min_j R_j+2\varepsilon

On the simultaneous event, the empirical minimum comparison uses two deviation terms. Loss independence between models is unnecessary, but independent validation rows and a fixed family are essential.

47. 학교를 나눌지 학생을 나눌지Split schools or split students?

여섯 학교에서20명씩 관측했습니다. 새 학교의 성능을 알고 싶은데 학생 행만 섞어 나누었습니다. 무엇을 다시 설계해야 하나요?

Twenty students from each of six schools are observed. To assess a new school, you shuffle student rows. What needs redesign?

풀이와 확인할 이유Solution and explanation

학교가 양쪽에 나타나면 이미 본 학교의 학생을 예측하는 질문에 가까워질 수 있습니다. 새 학교 목표에 맞게 학교 단위 보유와 학교 간 표집·의존 전제를 검토해야 합니다.

120행을120개의 독립 학교로 세지 않습니다. 학교가 여섯뿐인 한계와 학교별 인원·표적 분포도 남깁니다. 단순히 A를 B로 바꾸는 것만으로 집단 분리가 구현되지 않습니다.

If schools appear on both sides, the task can resemble prediction within represented schools. Review whole-school holdout and assumptions on school sampling/dependence for a new-school target.

120 rows are not 120 independent schools. Retain the limitation of six schools and their sizes/target distributions. Switching schedule A to B alone does not implement group separation.

48. 결과를 보고 후보를 추가했다면Adding candidates after seeing results

바깥 평가를 본 뒤 새 특징을 만들고 더 좋은 점수만 남겼습니다. 최종 표에 무엇을 적고 어떤 평가를 새로 생각해야 하나요?

After inspecting outer scores you create a feature and retain only the improved score. What belongs in the report and what assessment needs reconsideration?

풀이와 확인할 이유Solution and explanation

특징 추가·후보 확대·평가 조회 횟수를 탐색 이력으로 남깁니다. 그 바깥 결과가 사람의 선택에 영향을 주었으므로 처음 정한 절차를 독립 채점했다는 설명은 더 이상 그대로 맞지 않습니다.

새 절차를 고정한 뒤 별도 미사용 자료 평가나 정당화된 새 평가 설계를 고려합니다. 이미 확인한 점수를 가린다고 그 정보가 선택 과정에서 사라지는 것은 아닙니다.

Record feature creation, candidate expansion and assessment queries as search history. Outer results influenced human selection, so the original independent-assessment description no longer directly applies.

Fix the new procedure and consider unused assessment data or another justified design. Hiding inspected scores does not erase their role in selection.

49. 확률 예측과 의사결정의 비용Probability prediction and decision costs

두 절차의 Brier가 비슷합니다. 오류 비용이 다른 현장에서 바로 같은0.5 임계값을 써도 좋다고 결론낼 수 있나요?

Two procedures have similar Brier. Does that justify using threshold 0.5 in an application with unequal error costs?

풀이와 확인할 이유Solution and explanation

그 결론은 별도입니다. Brier는 확률 예측 손실이고 실제 행동 임계값은 거짓 양성·거짓 음성 비용, 자원 제약과 확률 보정 등을 함께 봐야 합니다.

현재 평가와 비용 기반 결정의 목표를 구분하고, 임계값도 자료로 선택한다면 그 선택을 절차 안에 넣어 평가해야 합니다. 다음 ML14에서 불균형·비용·집단별 평가로 이어갑니다.

No. Brier evaluates probability predictions; action thresholds also depend on false-positive/false-negative costs, constraints and calibration.

Separate probability assessment from cost-based decisions. If choosing a threshold from data, include that choice inside the assessed procedure. ML14 develops imbalance, costs and group-specific assessment.

50. 음의 항을 포함한 공분산 검산Audit a covariance identity with negative terms

행렬[[1/5,2/5],[3/10,1/10],[null,1/5]]의 완전 반복 수, 공분산과 macro 분산을 구하세요.

For [[1/5,2/5],[3/10,1/10],[null,1/5]], find complete repeats, covariance and macro variance.

풀이와 확인할 이유Solution and explanation
R=2,S=1200(1−3−39),smacro2=1−3−3+9800=1200R=2,\quad S=\frac1{200}\begin{pmatrix}1&-3\\-3&9\end{pmatrix},\quad s^2_{\rm macro}=\frac{1-3-3+9}{800}=\frac1{200}

세 번째 반복은 전체 제외됩니다. 행 평균3/10,1/5의 직접 표본분산도1/200입니다. 각 행의 단순 접힘 분산/K인1/100과 다르며, 이 기술 분산만으로 모집단 신뢰구간을 만들지는 않습니다.

R=2,S=1200(1−3−39),smacro2=1−3−3+9800=1200R=2,\quad S=\frac1{200}\begin{pmatrix}1&-3\\-3&9\end{pmatrix},\quad s^2_{\rm macro}=\frac{1-3-3+9}{800}=\frac1{200}

Exclude the third repeat as a whole. Direct sample variance of row means 3/10 and 1/5 also equals 1/200. Within-row naive values are 1/100, a different quantity. This description alone does not supply a population confidence interval.

51. 실제 국가의 고정 후보 한 접힘One actual country fold for a fixed candidate

일정A 첫 바깥 보유AUS·DEU·IND·SGP에서 GDP α1 후보의 예측은3/4,3/4,1/8,3/4이고 Y는1,1,0,1입니다. 평균 Brier를 구하세요.

For GDP alpha one on A’s first country holdout AUS, DEU, IND, SGP, predictions are 3/4,3/4,1/8,3/4 and targets 1,1,0,1. Compute mean Brier.

풀이와 확인할 이유Solution and explanation
3(3/4−1)2+(1/8−0)24=3/16+1/644=13256\frac{3(3/4-1)^2+(1/8-0)^2}{4}=\frac{3/16+1/64}{4}=\frac{13}{256}

한 후보를 고정한 점수입니다. 그 바깥 접힘에서 안쪽 선택을 수행한 절차의 점수와 자동으로 같다고 놓지 않습니다. 중앙값은 이 네 국가를 제외한12국에서 배웠습니다.

3(3/4−1)2+(1/8−0)24=3/16+1/644=13256\frac{3(3/4-1)^2+(1/8-0)^2}{4}=\frac{3/16+1/64}{4}=\frac{13}{256}

This fixes one candidate; it is not automatically the score of inner selection in that outer fold. The median was fitted on the other twelve countries.

52. 국가A의 실현 차이The realized country-A contrast

국가A의 중첩691/3072와 전체 CV 최소73/576의 차이를 구하세요. 이를 모집단 편향 그 자체라고 부를 수 있나요?

Subtract full-CV minimum 73/576 from nested country-A score 691/3072. Is it population bias itself?

풀이와 확인할 이유Solution and explanation
6913072−73576=9059216≈0.09819878\frac{691}{3072}-\frac{73}{576}=\frac{905}{9216}\approx0.09819878

두 유한 절차 결과의 실현 차이입니다. 기대값으로 정의되는 편향을 한 자료의 차이로 관측한 것처럼 부르지 않습니다. 자료 범위·후보·분할·훈련 크기를 함께 명시합니다.

6913072−73576=9059216≈0.09819878\frac{691}{3072}-\frac{73}{576}=\frac{905}{9216}\approx0.09819878

It is a realized contrast between two finite procedure results, not an observed population bias defined by expectation. State data frame, candidates, partitions and training sizes.

53. NLS 공통 범위와 양성 비중NLS common frame and positive share

원3,613행 중 사용3,017행, 양성1,733행입니다. 제외 수와 사용 범위의 양성 비중을 구하세요. 원조사 가중 모집단 비중과 같다고 말할 수 있나요?

NLS has 3,613 native rows, 3,017 eligible and 1,733 positives. Find exclusions and eligible positive share. Is this a survey-weighted population share?

풀이와 확인할 이유Solution and explanation
3613−3017=596,17333017≈0.574411673613-3017=596,\qquad \frac{1733}{3017}\approx0.57441167

596행을 보존한 채 공통 범위에서 제외합니다. 분석 질량1의 완전 행 비중이며 원조사 가중 모집단 비중이라고 할 수 없습니다. 결측 때문에 범위가 선택되었다는 점도 남깁니다.

3613−3017=596,17333017≈0.574411673613-3017=596,\qquad \frac{1733}{3017}\approx0.57441167

Retain the 596 excluded native rows. The share uses unit mass among complete cases, not native survey weighting or a population estimate. Document selection through missingness.

54. 원행과 원 ID 구별하기Distinguish source row and native ID

NLS 화면의 원자료1행에 원 id2가 있습니다. “개인1의 결과”라고만 쓰는 것보다 어떤 식별을 남겨야 하나요?

NLS source row one contains native ID two. What is clearer than calling it only “person one”?

풀이와 확인할 이유Solution and explanation

“원자료1행·원 id=2”와 이 실습의 내부 ID를 함께 남깁니다. sourceRow는 파일 위치, id는 원필드, 내부 ID는 계산의 행 연결 키입니다.

누락 행을 빼고 새 번호를 부여해 원위치처럼 부르지 않습니다. 원행에 예정 접힘을 먼저 준 설계를 재현하려면 이 차이를 보존해야 합니다.

Record “native source row one, native id=2” alongside the study’s internal identity. sourceRow is file position, id is a native field and the internal ID links computations.

Do not renumber complete rows and call the new positions native. Preserve the distinction to reproduce schedules assigned before exclusion.

55. 음의 기업 차이를 해석하기Interpret a negative company contrast

기업B의 중첩 pooled≈0.0876476298, 전체 CV 최소≈0.0876670479입니다. 차이의 부호와 의미를 말하세요.

Company B has nested pooled risk approximately 0.0876476298 and full-CV minimum 0.0876670479. Explain the sign and meaning of their difference.

풀이와 확인할 이유Solution and explanation
0.0876476298−0.0876670479≈−0.00001941810.0876476298-0.0876670479\approx-0.0000194181

이 유한 결과에서는 중첩 값이 작습니다. 반올림 표시의 차이이며 원분수는 상세 결과에 있습니다. 기대 낙관성의 조건부 논증은 모든 실현 자료의 부호를 강제하지 않습니다.0으로 자르거나 절댓값으로 바꾸지 않습니다.

0.0876476298−0.0876670479≈−0.00001941810.0876476298-0.0876670479\approx-0.0000194181

Nested risk is lower in this realization. Displayed inputs are rounded; full fractions remain in details. Conditional expected-optimism arguments do not dictate every realized sign. Do not truncate to zero or take the absolute value.

56. 예정 접힘과 결측 제외의 순서Order of planned folds and missing exclusions

NLS의 원행1은A 바깥0, 원행2는1, 원행3은2입니다. 원행2가 제외되면 원행3을 바깥1로 옮겨도 되나요?

Under A, native rows one, two, three have outer labels zero,one,two. If row two is excluded, may row three move to outer one?

풀이와 확인할 이유Solution and explanation

아닙니다. 예정 라벨은 원행 위치로 먼저 정했으므로 원행3은 그대로2입니다. 제외 행은 해당 점수의 질량에 들어가지 않지만 원위치와 라벨은 보존합니다.

완전 행만 다시 순번을 매기면 다른 분할이며 안쪽 지도도 함께 달라집니다. 같은 실험의 재현이라고 부르려면 원위치를 써야 합니다.

No. Labels are planned from native positions, so row three remains in fold two. An excluded row adds no scoring mass but retains its position and label.

Renumbering complete rows creates another partition and changes inner maps too. Reproduce the declared experiment with native positions.

57. 사용하지 않는 원이상값을 발견하면Discover an unused native out-of-range code

원 Churn의 Charge Amount에10이 일곱 행 있지만 현재 X에는 쓰지 않습니다. 이번 실습에서 어떻게 처리하고 무엇을 기록하나요?

Seven native Churn Charge Amount entries equal ten; the feature is unused. How should this study handle and document them?

풀이와 확인할 이유Solution and explanation

원값10과 일곱 원행 위치를 그대로 보존하고, 제공자 설명의0~9 범위와 다르다는 점을 적습니다. 이 실습의 사용 특징에는 없으므로 해당 행을 조용히 삭제하지 않습니다.

그 변수를 쓰는 새 모형을 만들 때는 범주 해석·원자료 확인·포함 규칙을 별도 결정하고 평가 절차에 남깁니다. 현재 목표를 바꾸지 않고 원사실과 해석을 구별합니다.

Preserve each ten and its seven native positions, documenting the discrepancy from the provider’s zero-to-nine description. Do not silently delete rows for a feature unused by this study.

A later model using that feature needs a separately declared interpretation, source audit and inclusion rule in its assessment procedure. Separate native facts from interpretation.

58. 최종 적합과 바깥 모형의 사용 목적Purpose of final and outer fits

바깥 네 접힘이 서로 다른 후보를 고릅니다. 배포하려면 그중 가장 점수 좋은 바깥 모형을 그대로 골라도 이번 절차의 최종 적합인가요?

Four outer folds choose different candidates. Is deploying the best-scoring outer model the final fit declared by this procedure?

풀이와 확인할 이유Solution and explanation

아닙니다. 이 장의 최종 적합은 평가 후 전체 자료에서 같은 선언 후보·선택 규칙으로 다시 선택하고 전체 범위에 적합하는 별도 단계입니다. 바깥 모형은 해당 보유 범위 평가를 위해 더 작은 훈련 범위로 적합했습니다.

바깥 점수로 모형을 다시 고르면 새로운 선택 단계가 생깁니다. 배포 절차를 그렇게 바꾸려면 그 선택까지 포함해 무엇을 평가했는지 다시 설명해야 합니다.

No. The declared final fit retunes the same fixed family and rule on the full frame after assessment, then fits there. Outer models use smaller training scopes to assess their held frames.

Selecting among them by outer score adds a new choice. If that is the deployment procedure, reassess and report the procedure including that choice.

59. CV 영상을 중첩 장부로 확장하기Extend a CV video into the nested ledger

본문 영상의 후보 튜닝 흐름을 보고, 독립 평가를 위해 추가할 범위와 이동시키면 안 되는 정보를 설명하세요.

After the embedded CV-tuning video, describe the extra assessment scope and which information must not cross it.

풀이와 확인할 이유Solution and explanation

바깥 보유 범위를 따로 정하고, 그 외 자료 안에서만 중앙값·후보 점수·선택을 계산합니다. 선택 후보를 같은 바깥 훈련 범위에 다시 적합한 뒤 바깥 보유를 채점합니다.

바깥 Y나 중앙값을 바꿀 바깥 X가 안쪽 선택·전처리에 들어가지 않아야 합니다. 평가 뒤 전체 재적합은 따로 기록합니다. 영상 자체가 이 장의 모든 분산 이론을 증명했다고 쓰지 않습니다.

Declare an outer holdout. Learn medians, evaluate candidates and select only within its complement; refit the winner there and score the outer holdout.

Outer Y and outer X that could alter preprocessing must not enter that inner procedure. Record post-assessment all-data refitting separately. Do not attribute every variance result in this chapter to the introductory video.

60. 한 페이지 평가 보고서의 필수 연결Essential links in a short assessment report

세 실제 사례 중 하나로 원문 다운로드 없이 이해되는 평가 보고서를 만든다면 어떤 표·그림·풀이 연결을 남기겠습니까?

Choose one actual case. Which tables, figures and worked links make an assessment report understandable without downloading raw files?

풀이와 확인할 이유Solution and explanation

관측 단위·시점·표적·단위·제외 수를 먼저 적고, 한 원행에서 특징과 Y가 어떻게 만들어졌는지 풉니다. 후보 순서와 분할 지도, 한 훈련 중앙값·셀 확률·보유 손실을 연결합니다.

전체 후보 기준표와 바깥 보유 예측, pooled/macro·A/B 차이·최종 전체 적합을 분리해 보여 줍니다. 그림에는 점 자료·축 단위·원본 확대를 남기며, 분할 민감도를 모집단 표준오차라고 부르지 않습니다.

채점 기준은 점수가 작다는 사실보다 범위를 재현하고 같은 숫자의 의미를 정확히 설명하는가입니다. 다른 독자가 자기 행의 보유 예측이 어떤 훈련 자료에서 왔는지 추적할 수 있어야 합니다.

State observation unit, time, target, units and exclusions, then work from one native row to its X and Y. Link candidate order and fold map to one fitted median, cell probability and held loss.

Separate full criteria, outer held predictions, pooled/macro scores, A/B contrasts and final all-data fitting. Figures need point data, axis units and original enlargement; split sensitivity is not population standard error.

Assess the report by reproducibility and interpretation, not merely a low score. Another reader should trace a held prediction to the exact data that fitted it.

자료와 출처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