평가 설계·기준 모형·재표집Evaluation design, baselines and resampling
한 학습 결과와 다시 학습하는 절차의 위험을 구별한다Distinguish the risk of one fitted result from a retraining procedure
실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions
학부Undergraduate
1. 훈련 점수 0인데 왜 새 손실은 남는가1. Why can fresh loss remain after zero training loss?
결과 Y가 0 또는 1이고 P(Y=1)=1/4인 작은 가정 법칙에서 시작합니다. 한 번 학습한 값 D=Y₁을 그대로 상수 예측으로 쓰면 자기 자신에 대한 훈련 제곱손실은 항상 0입니다. 그러나 독립으로 새로 뽑은 Y₂가 같은 값이라는 보장은 없습니다.
학습 값 0은 확률 3/4로 나오며 그때 새 기대손실은 1/4입니다. 학습 값 1은 확률 1/4로 나오며 새 기대손실은 3/4입니다. 두 학습 세계를 평균하면 새 위험은 3/8입니다. 관측 한 번의 훈련 점수 0과 반복 학습의 위험 3/8은 서로 다른 양입니다.
이번 장은 파일을 나누는 방법을 넘어 무엇의 위험을 평가하는지 묻습니다. 고정한 한 학습 결과, 같은 크기의 자료로 다시 학습하는 규칙, 검증으로 모형을 선택하고 다시 적합하는 전체 절차를 각각 구별합니다.
Start with an assumed binary outcome law P(Y=1)=1/4. Use one training outcome D=Y₁ itself as a constant prediction. Squared loss on that reused observation is always zero; an independent fresh Y₂ need not agree.
Training zero has probability 3/4 and conditional fresh loss 1/4. Training one has probability 1/4 and conditional fresh loss 3/4. Averaging over training worlds gives fresh risk 3/8. A zero score from one reused observation and a retraining risk of 3/8 describe different quantities.
This chapter asks what is evaluated, beyond how files are partitioned. Distinguish one fitted predictor, an algorithm retrained at a fixed sample size, and a whole procedure that selects by validation and refits.
학부Undergraduate
2. 고정한 학습 결과와 학습 규칙의 위험2. Risk of one fitted result versus a learning algorithm
학습 규칙 A는 학습 표 D를 예측 함수 A(D)로 보냅니다. 손실 ℓ(A(D),Z)는 그 함수와 평가 관측 Z의 불일치입니다. 먼저 D를 고정하고 새 Z만 평균한 R(D)를 정의합니다. D를 얻는 확률 법칙이 없어도 함수 자체는 주어질 수 있지만, 실제 미지의 새 결과 법칙을 모르면 R(D)의 숫자도 자동으로 알려지지 않습니다.
다음으로 크기 n의 D를 어떤 법칙에서 얻는지 선언하고 R(D)를 다시 평균하면 알고리즘 위험 R_n입니다. 같아 보이는 이름이라도 어느 기대값이 학습 표에 대한 것인지 구별해야 합니다. n도 평가 대상의 일부이며 n=2의 규칙 위험이 n=3의 위험과 같다고 가정하지 않습니다.
고정 보관 시험 표의 평균 손실은 계산할 수 있는 기술적 점수입니다. 그것을 R(D)나 R_n의 추정량으로 해석하려면 독립성·표집 법칙·정보 시점을 추가로 명시해야 합니다.
R(D)=EZ[ℓ(A(D),Z)∣D]Rn=EDn[R(Dn)]
A learning rule maps a training table D to predictor A(D). Loss measures its discrepancy from evaluation observation Z. First fix D and average only fresh Z, defining R(D). A predictor may be supplied without a training-sampling law, but its risk is not automatically known when the fresh-outcome law is unknown.
Then specify how an n-row training table is drawn and average R(D) over training, obtaining algorithm risk R_n. Identify which expectation concerns training. Sample size n belongs to the target; risks for training sizes two and three need not coincide.
A mean loss on a retained test table is a computable descriptive score. Interpreting it as estimating R(D) or R_n requires sampling, independence and information-time premises.
R(D)=EZ[ℓ(A(D),Z)∣D]Rn=EDn[R(Dn)]
학부Undergraduate
3. 학습 표를 고정한 시험 평균3. A test average conditional on training
양의 정수 m에 대해 시험 관측 Z′₁,…,Z′ₘ이 주어진 D에 조건부로 같은 새 법칙에서 독립이고, D의 선택·적합에 쓰이지 않았다고 가정합니다. 손실의 조건부 평균이 R(D)이면 시험 평균의 조건부 기대값도 R(D)입니다. 학습 표를 다시 평균하면 R_n을 얻습니다.
이 조건은 실제 파일 이름이 test라는 이유로 생기지 않습니다. 그 결과를 보고 특징·문턱·기준 모형을 바꿨다면 현재의 학습 절차가 그 결과를 이용한 셈입니다. 독립 시험을 가정한 증명의 입력과 실제 수행 절차를 맞춰야 합니다.
기대값 등식에는 적분 가능한 손실이 필요합니다. 이 장의 유한 가정 표에서는 모든 손실이 유한하므로 충족됩니다. 뒤의 분산 논의는 더 강한 E[ℓ²]<∞를 별도로 둡니다.
Rm=m1j=1∑mLjE[Rm∣D]=R(D)E[Rm]=Rn
For a positive integer m, assume test observations Z′₁,…, Z′ₘ are conditionally iid from the same fresh law given D, and were not used in choosing/fitting the rule. If each conditional mean loss is R(D), the conditional expectation of their average is also R(D). Averaging training tables gives R_n.
A filename containing test does not supply this premise. Changing features, thresholds or baselines after seeing those outcomes makes them part of the effective learning procedure. Match the independence premise to what was actually done.
The expectation requires integrable loss, satisfied by our finite assumed tables. Later variance calculations separately require E[ℓ²]<∞.
Rm=m1j=1∑mLjE[Rm∣D]=R(D)E[Rm]=Rn
학부Undergraduate
4. 한 학습 관측의 모든 세계4. Every world with one training observation
다시 P(Y=1)=1/4, P(Y=0)=3/4이고 학습·새 결과가 독립인 법칙을 둡니다. 학습 표 크기는 1이며 규칙은 학습 평균입니다. 가능한 두 학습 결과를 아래처럼 모두 씁니다. 마지막 열은 시험 값 하나를 실제로 본 점수가 아니라 그 학습 표를 고정한 참 기대손실입니다.
모두 가정한 이진 법칙 · 제곱손실
학습 Y
학습 확률
예측
훈련 손실
조건부 새 위험
0
3/4
0
0
1/4
1
1/4
1
0
3/4
새 손실은 이진 0 또는 1이므로 두 학습 세계 모두 조건부 분산이 3/16입니다. 조건부 위험 자체의 분산은 3/64입니다. 시험 관측을 많이 얻으면 전자의 평균 오차는 줄어들지만 같은 학습 결과의 선택 변동을 시험 관측 수만으로 없애지는 못합니다.
Again assume independent training/fresh outcomes with probabilities P(Y=1)=1/4 and P(Y=0)=3/4. Training size is one and the learner is its mean. Enumerate both training results below. The final column is true conditional expected loss for that fixed training table, not one observed test score.
Entirely assumed binary law · squared loss
Training Y
Training probability
Prediction
Training loss
Conditional fresh risk
0
3/4
0
0
1/4
1
1/4
1
0
3/4
Fresh loss is binary, with conditional variance 3/16 in either training world. Conditional risk itself has variance 3/64. More test observations reduce the first component of average-score variation; test size alone does not eliminate variation induced by choosing one training table.
학부Undergraduate
5. 학습 크기 2의 네 순서 표5. Four ordered training tables of size two
같은 이진 법칙에서 두 번 iid 학습하고 평균을 예측합니다. 학습 순서를 지운 조합을 균등 취급하지 않고 각 순서 표의 확률을 보존합니다. 혼합 표 두 개는 예측이 같아도 서로 다른 추출 경로입니다.
P(Y=1)=1/4 · 독립 복원 학습
순서 학습 표
확률
예측 평균
훈련 MSE
조건부 새 위험
(0, 0)
9/16
0
0
1/4
(0, 1)
3/16
1/2
1/4
1/4
(1, 0)
3/16
1/2
1/4
1/4
(1, 1)
1/16
1
0
3/4
기대 훈련 MSE는 3/32이고 알고리즘 위험은 9/32입니다. 조건부 위험은 확률 15/16에서 1/4, 확률 1/16에서 3/4이므로 그 분산은 15/1024입니다. 이것은 한 번 얻은 훈련 MSE의 분산과 다릅니다.
같은 조건부 법칙에서 새 손실 하나의 분산을 학습 표에 대해 평균하면 15/128입니다. 독립 시험 두 개의 평균에서는 이 항이 15/256이 되고, 학습 위험 변동 15/1024를 더하면 전체 분산 75/1024입니다. 뒤 실습에서 16개의 학습·시험 순서 튜플로 직접 확인합니다.
Draw two iid training outcomes from the same binary law and predict their mean. Preserve ordered-table probabilities rather than assigning equal mass to unordered compositions. The two mixed tables produce the same prediction but remain distinct draw paths.
P(Y=1)=1/4 · independent replacement training
Ordered training table
Probability
Mean prediction
Training MSE
Conditional fresh risk
(0, 0)
9/16
0
0
1/4
(0, 1)
3/16
1/2
1/4
1/4
(1, 0)
3/16
1/2
1/4
1/4
(1, 1)
1/16
1
0
3/4
Expected training MSE is 3/32 and algorithm risk 9/32. Conditional risk is 1/4 with probability 15/16 and 3/4 with probability 1/16, giving variance 15/1024. This differs from variance of an observed training score.
The training-averaged conditional variance of one fresh loss is 15/128. For two independent test outcomes this contributes 15/256; adding training-risk variation 15/1024 gives total variance 75/1024. The lab checks all sixteen joint ordered training/test tuples.
학부Undergraduate
6. 독립 시험 관측과 손실의 공분산6. Independent test observations and loss covariance
D와 조건부 iid 시험 관측을 함께 반복하고 E[L₁²]<∞를 둡니다. D를 고정하면 시험 손실들은 독립이지만 같은 학습 함수를 공유합니다. 총분산과 총공분산을 적용하면 아래 식이 나옵니다. 첫 항은 시험 수 m으로 나뉘고 둘째 항은 그렇지 않습니다.
공분산 식은 서로 다른 두 시험 관측을 뜻합니다. 조건부 공분산은 0이고 두 조건부 평균은 모두 R(D)이므로 남는 항이 Var(R(D))입니다. 앞의 n=2 이진 예에서는 15/1024로 양수입니다.
따라서 같은 학습 결과에서 얻은 손실들을 무조건 독립으로 보고 전체 알고리즘 평가의 표준오차를 계산하면 필요한 항을 놓칠 수 있습니다. 그렇다고 모든 법칙에서 반드시 의존한다는 뜻도 아닙니다. R(D)가 상수인 퇴화 경우에는 이 공분산이 0입니다.
Repeat D together with conditionally iid test observations and assume E[L₁²]<∞. Conditional on D, test losses are independent, but they share the fitted predictor. Total variance and covariance yield the formulas below. Only the first variance component is divided by test size m.
The covariance concerns two distinct test observations. Conditional covariance is zero, and both conditional means equal R(D), leaving Var(R(D)). It equals the positive value 15/1024 in the preceding size-two example.
Treating all shared-fit losses as unconditionally independent can omit a component of algorithm-evaluation uncertainty. This does not assert dependence under every law: constant R(D) makes this covariance zero.
학부Undergraduate
7. 훈련 크기는 위험 표적의 일부다7. Training size belongs to the risk target
독립 동일 법칙의 스칼라 결과가 평균 μ와 유한 분산 σ²를 갖고 n≥1이라고 합시다. n개 학습 값의 평균을 상수 예측하고 독립 새 결과를 제곱손실로 평가합니다. 추정 평균의 편향은 0, 분산은 σ²/n이므로 새 결과 위험은 σ²(1+1/n)입니다. 두 양의 훈련 크기 n−1과 n을 비교할 때는 n≥2로 둡니다.
Rn=σ2(1+1/n)Rn−1=Rnin general
P(Y=1)=1/4이면 σ²=3/16입니다. n=2의 위험은 9/32, n=3은 1/4입니다. 크기 3 자료의 leave-one-out은 각 적합에 두 행만 쓰므로 같은 iid 법칙의 크기 2 규칙을 평가합니다. 전체 세 행으로 다시 적합한 특정 함수의 위험과 자동으로 같지 않습니다.
잡음 분산이 0이면 두 위험이 모두 0일 수 있어 엄격한 차이를 보편적으로 주장하지 않습니다. 실제 시계열·고객 표에서 이 iid 평균 공식을 쓰려면 그 확률 전제를 별도로 정해야 합니다.
Suppose iid scalar outcomes have mean μ, finite variance σ² and training size n≥1. Predict a fresh independent response by the training mean under squared loss. The mean estimate is unbiased with variance σ²/n, yielding fresh risk σ²(1+1/n). Use n≥2 when comparing the two positive training sizes n−1 and n.
Rn=σ2(1+1/n)Rn−1=Rnin general
For P(Y=1)=1/4, variance is 3/16: risk is 9/32 at n=2 and 1/4 at n=3. Leave-one-out on three rows trains each fit on two, targeting the size-two algorithm under these iid premises. It does not automatically assess the particular predictor refitted on all three rows.
Zero noise can make both risks zero; a strict difference is not universal. Applying this iid formula to actual time-series or customer records requires separate probabilistic premises.
기초Foundations
8. 실습 A · 학습과 시험을 함께 전수한다8. Lab A · Enumerate training and test jointly
실습의 기본 법칙은 (집단 A, 결과 0, 가중치 3), (집단 A, 결과 1, 가중치 1)입니다. 학습 크기 2·시험 크기 2·전체 학습 평균을 먼저 계산해 R_n=9/32와 분산 75/1024를 확인하세요. 시험 크기만 바꾸면 알고리즘 위험은 그대로이고 조건부 시험 변동 항만 1/m로 바뀌어야 합니다.
학습 크기 0에서는 고정 기준을 사용하고 훈련 MSE는 미정의로 남깁니다. 집단 평균 규칙에서는 비어 있는 학습 집단도 같은 기준을 사용합니다. 빈 집단의 확률 질량을 버리지 않습니다. 0가중치 원 위치와 합친 양의 원자 좌표도 구별합니다.
그림과 표의 전체 법칙은 사용자가 선언한 가정입니다. 실제 자료가 이런 iid 표에서 생성되었다거나 시험 표본 수를 늘려 실제 학습 불확실성을 모두 해결했다는 증거가 아닙니다.
The default law contains (group A, outcome zero, weight three) and (group A, outcome one, weight one). With training/test sizes two and the pooled-mean learner, verify R_n=9/32 and score variance 75/1024. Changing only test size should leave algorithm risk unchanged and divide only conditional test variation by m.
At training size zero, use the declared fixed prior and leave training MSE undefined. Group means use that same fallback for an empty training group without dropping its probability. Distinguish zero-mass original positions from coalesced positive-atom coordinates.
The full law is assumed by the user, not verified generation of actual data. Increasing a test count does not by itself remove real learning uncertainty.
학부Undergraduate
9. 기준 모형은 무엇을 통제하는가9. What does a baseline control?
기준 모형은 새 방법이 무엇보다 나아야 하는지 정하는 비교 규칙입니다. 항상 0을 내는 규칙은 자료를 적합하지 않고, 훈련 평균 규칙은 학습 결과만으로 정한 하나의 상수입니다. 둘 다 후보가 될 수 있지만 사용한 정보와 손실 단위를 공개해야 합니다.
가정 훈련 값 (0, 0, 0, 4)의 평균은 1입니다. 평균의 훈련 MSE는 3, 상수 0의 훈련 MSE는 4이므로 같은 자료의 제곱 최소화는 평균을 택합니다. 그런데 고정 평가 결과가 (0, 0)이면 평균 규칙의 MSE는 1, 사전에 정한 0 기준은 0입니다. 이 표 하나에서 미래 위험의 순서를 일반화하지 않습니다.
복잡한 규칙의 점수가 좋다는 말만으로는 충분하지 않습니다. 어떤 간단한 비교 규칙을 같은 평가 대상·가용 분모·단위에서 이겼는지, 그 비교가 어떤 학습 크기의 절차인지 적습니다.
A baseline specifies the comparison a new method must improve upon. Always predicting zero fits no data; a training-mean baseline estimates one constant from training outcomes only. Either can be a candidate, provided its information and loss units are disclosed.
Training values (0, 0, 0, 4) have mean one. The fitted mean has training MSE three, versus four for zero. Yet fixed evaluation outcomes (0, 0) give losses one and zero respectively. This single table establishes no universal ordering of future risks.
A good score alone is insufficient. State which simple rule was beaten on the same target, available denominator and units, and which training-size procedure was compared.
학부Undergraduate
10. 평균·마지막 값·끝점 추세를 훈련에서만 정한다10. Fit mean, last and endpoint drift only on training
다음 가정 시계열의 t=0, 1, 2만 훈련에 사용합니다. 결과는 2,4,8이며 가중치는 모두 1입니다. 평균 기준은 14/3, 마지막 값 기준은 8입니다. 끝점 추세는 처음·마지막 결과 변화 6을 시간 차이 2로 나눈 기울기 3을 마지막 값에 붙입니다. 이는 최소제곱 추세를 새로 적합한 것과 다른 규칙입니다.
전부 가정한 작은 시계열 · 실제 관측 아님
시점 t
결과 Y
선언한 역할
0
2
훈련
1
4
훈련
2
8
훈련
3
10
검증
4
8
시험
ymean(t)=14/3ylast(t)=8ydrift(t)=8+3(t−2)
검증 시점 3의 예측은 14/3, 8, 11이고 제곱손실은 256/9, 4, 1입니다. 훈련만으로 정한 이 세 규칙 중 검증은 끝점 추세를 고릅니다. 그러나 그대로 둔 시점 4 시험 손실은 100/9, 0, 36이라 마지막 값이 더 작습니다. 검증 선택이 모든 시험 결과에서 최적일 수 있다는 정리는 없습니다.
끝점 추세는 실제 시간 차이로 나눕니다. 연도가 빠졌다면 남은 행을 연속 번호로 압축하지 않습니다. 시간 순서와 가용 시점이 없는 사람·제품 원행에 마지막 값이나 추세라는 이름을 자동으로 붙이지 않습니다.
Use only t=0, 1, 2 for training in the assumed sequence below: outcomes 2, 4, 8 with unit weights. The mean baseline is 14/3 and last-value baseline eight. Endpoint drift divides the first-to-last outcome change six by elapsed time two, giving slope three attached to the last value. It differs from an OLS trend fit.
Entirely assumed small sequence · not actual observations
Time t
Outcome Y
Declared role
0
2
Training
1
4
Training
2
8
Training
3
10
Validation
4
8
Test
ymean(t)=14/3ylast(t)=8ydrift(t)=8+3(t−2)
At validation time three, predictions are 14/3, 8, 11 and squared losses 256/9, 4, 1. Validation chooses drift among the three training-only rules. But their unchanged test losses at time four are 100/9, 0, 36, favouring last value. Validation selection is not guaranteed optimal at every test outcome.
Drift divides by actual elapsed time. Missing years must not be compressed into consecutive positions. Person/product source rows without calendar and availability meaning do not automatically justify last-value or drift baselines.
학부Undergraduate
11. 시험 평균을 기준 모형이라고 부르지 않는다11. Do not relabel a test-mean oracle as a baseline
평가 결과가 2,4인 표에서 상수 c의 제곱손실은 c=3일 때 가장 작고 MSE는 1입니다. 이것은 평가 결과를 사용하여 최적 상수를 정한 계산입니다. 훈련만 보고 고른 상수가 아니므로 정직한 기준 모형의 독립 시험 성능과 같은 열에 놓아 승자로 부르지 않습니다.
실제 훈련 평균이 1이면 그 표의 시험 MSE는 5입니다. 시험 평균 3을 사용한 1과 차이가 나지만, 이 차이는 개선된 학습 규칙이 아니라 결과를 미리 본 정보 차이일 수 있습니다. 상수 기준까지도 어느 분할에서 적합했는지 확인해야 합니다.
양의 정수 m개 유한 평가 결과의 평균 손실을 S(c)라고 합시다. 모든 평가 표에서 최선인 사후 상수는 참고 하한으로 보여 줄 수 있습니다. 그때는 시험 결과를 사용한 oracle이라고 명시하고, 추후 보지 않은 결과의 성능과 구별합니다.
S(c)=m1j∑(yj−c)2S(c)=S(yˉ)+(c−yˉ)2
On evaluation outcomes two and four, the best squared-loss constant is c=3 with MSE one. This calculation fits the constant using evaluation outcomes. It is not a training-only baseline and cannot be declared the winner of an independent test comparison.
If the training mean was one, its test MSE is five. The gap from the test-mean oracle’s one may reflect extra outcome information rather than an improved learning procedure. Check which split fitted even a constant baseline.
For a positive integer m and finite evaluation outcomes, write mean loss as S(c). The post-hoc best constant can be displayed as a reference lower bound if clearly labelled a test-outcome oracle, distinct from performance on unseen outcomes.
S(c)=m1j∑(yj−c)2S(c)=S(yˉ)+(c−yˉ)2
학부Undergraduate
12. 같은 평가 관측의 두 손실을 짝짓는다12. Pair two rule losses on the same evaluation unit
같은 두 평가 단위에서 규칙 A의 손실이 (0,4), B의 손실이 (1,3)이라고 합시다. 단위별 차이 A−B는 (−1,1), 평균 차이는 0입니다. 양수 차이는 A가 더 큰 손실이라는 뜻이며 점수 방향을 먼저 정합니다.
이 두 짝을 각각 확률 1/2로 복원 추출하는 경험 법칙에서 차이의 N 분산은 1입니다. 두 번 추출한 평균 차이의 분산은 1/2입니다. 반면 A와 B의 손실 열을 서로 독립으로 추출하면 분산이 4/2+1/2=5/2가 됩니다. 원 짝의 공분산을 없앤 다른 실험입니다. v_A·v_B는 각 손실의 분산, c_AB는 같은 단위 두 손실의 공분산으로 씁니다.
독립으로 추출했을 때 항상 더 커지는 것도 아닙니다. 두 열의 공분산 부호에 따라 방향이 달라집니다. 같은 날짜·사람·제품 결과에서 계산한 두 손실은 원 키로 먼저 맞춘 뒤 차이를 만들며, 숫자 크기순으로 각각 정렬하지 않습니다.
di=ℓAi−ℓBiVar(d)=vA+vB−2cAB
Suppose rule A has losses (0,4) and rule B (1,3) on the same two evaluation units. Paired differences A−B are (−1,1), with mean zero. A positive difference means larger loss for A; define the score direction first.
Under uniform replacement draws from those two pairs, the divisor-N variance of differences is one. A two-draw average difference has variance 1/2. Independently resampling the loss columns instead gives 4/2+1/2=5/2, a different experiment that removes the original covariance. Write v_A and v_B for the two loss variances and c_AB for their same-unit covariance.
Independent resampling need not always increase variance; direction depends on covariance. Align losses by their original date/person/product keys before differencing, not by sorting each numerical column.
di=ℓAi−ℓBiVar(d)=vA+vB−2cAB
학부Undergraduate
13. 가용 손실의 분모와 전체 프레임 표적13. Available-loss denominators and a full-frame target
비음수 가중치가 (1, 3, 2, 0), 결과가 (0,2,미가용,999)인 네 행을 생각합니다. 가용 양의 가중치합은 4이고 전체 가중치는 6입니다. 가용 가중 평균은 3/2, 그 평균 예측의 가용 MSE는 3/4입니다. 결과 999의 가중치는 0이므로 목적함수에 기여하지 않습니다.
미가용 결과의 양의 질량 2는 그대로 남습니다. 손실을 알 수 없는 행을 0오차로 채우고 6으로 나누면 전체 위험을 복원한 것이 아닙니다. 어떤 규칙은 입력이 있어 예측할 수 있어도 결과가 없어 평가할 수 없습니다. 가용 MSE와 전체 프레임 MSE의 식별 여부를 나눠 출력합니다.
집단 평균과 전체 평균을 같은 부분집합에서 비교하도록 입력·결과 완전쌍을 공통 사용하기도 합니다. 이는 비교에 선언한 규약이지 상수 예측에 반드시 모든 특징이 필요하다는 뜻은 아닙니다. 전체 가중치가 0이면 가중 평균 자체가 미정의입니다.
Consider four rows with nonnegative weights (1, 3, 2, 0) and outcomes (0,2, unavailable,999). Available positive weight totals four; full weight totals six. The available weighted mean is 3/2 and its available MSE is 3/4. Outcome 999 has zero mass and contributes nothing to the objective.
The unavailable outcome retains positive mass two. Filling it with zero error and dividing by six does not recover full risk. An available input may permit prediction while a missing outcome prevents evaluation. Report available MSE separately from identification of full-frame MSE.
One may compare pooled and group means on a common complete input/outcome subset. That is a declared comparison convention, not a claim that every feature is mathematically necessary for constant prediction. Zero total weight leaves a weighted mean undefined.
학부Undergraduate
14. 단위 환산은 손실의 숫자를 바꾼다14. Unit conversion changes loss magnitudes
예측과 결과를 함께 y′=ay+b로 바꾸고 a≠0이면 제곱오차는 a²배가 됩니다. 같은 단위 변환을 모든 후보에 적용하면 제곱손실의 순서와 동률은 유지하지만, 서로 다른 척도의 MSE 숫자를 그대로 비교하면 안 됩니다.
1976년 시급 센트를 USD로 바꾸면 결과는 100으로 나누고 MSE는 10,000으로 나눕니다. 이것은 과거 화폐 단위의 환산이며 현재 구매력이나 실제 임금 상승을 계산한 것이 아닙니다. GDP의 불변가격 기준도 함께 적어야 합니다.
서로 다른 결과의 손실은 척도뿐 아니라 의사결정 비용도 다를 수 있습니다. 확률의 Brier 점수와 임금 제곱오차의 숫자를 한 순위표로 묶어 어느 문제가 쉽다고 단정하지 않습니다.
(ay+b−ay−b)2=a2(y−y)2
Transform predictions and outcomes together by y′=ay+b with a≠0. Squared errors multiply by a². A common transformation preserves candidate ordering and ties, but raw MSE values from different units are not directly comparable.
Converting 1976 hourly cents to dollars divides outcomes by one hundred and MSE by ten thousand. It converts historical currency units, not purchasing power or actual wage growth. GDP comparisons also require their constant-price reference.
Different outcomes can involve different decision costs as well as scales. Do not rank probability Brier scores against wage squared errors to declare one prediction problem intrinsically easier.
(ay+b−ay−b)2=a2(y−y)2
학부Undergraduate
15. 평가 전에 규칙·정보 시점·표적을 적는다15. State rules, information timing and targets before evaluation
비교할 규칙 이름만으로 평가 설계가 닫히지 않습니다. 관측 단위, 결과의 단위·측정 기간, 예측 시점에 가용한 입력, 손실, 기준 모형의 적합 분할, 선택 규칙, 동률 처리, 최종 재적합 여부를 먼저 적습니다. 한 단계라도 결과를 보고 바뀌면 그 변경도 학습 절차의 일부입니다.
시간이 있는 문제에서는 어떤 시점까지의 정보로 어느 다음 시점을 예측하는지 명시합니다. 사람·고객의 원행 고정 분할은 같은 보관 자료의 내부 비교일 수 있으며 새 사람이나 미래 고객을 독립 표집한 실험이라고 자동으로 부르지 않습니다.
단순한 계산 예산·작업 기준·표시 반올림도 실제 지표와 구별해 기록합니다. 재현 가능한 실행은 같은 입력의 계산을 확인하지만 자료의 진실성·일반화·원인 해석·실제 화면 재생까지 대신 검증하지 않습니다.
Naming candidate rules does not complete an evaluation design. State observation unit, outcome unit/period, inputs available at prediction time, loss, baseline fitting split, selection/tie rules and final refitting. Any outcome-informed revision becomes part of the learning procedure.
With time, identify the information cutoff and the future period being predicted. A deterministic person/customer row split can compare records inside one retained archive without establishing independently sampled new people or future customers.
Distinguish computation budgets, working conventions and display rounding from measured indicators. Reproducible execution verifies calculations on those inputs, not data truth, generalization, causal interpretation or live playback.
기초Foundations
16. 실습 B · 훈련 기준과 시험 oracle을 구별한다16. Lab B · Training baselines versus test oracles
훈련 행마다 결과·가중치·필요하면 실제 시간을 넣고, 별도 평가 표를 입력합니다. 평균·고정 상수·마지막 값·끝점 추세를 바꾸어 보세요. 기본 가정 시계열의 마지막 값 8과 추세 기울기 3을 손으로 확인한 뒤 t=3의 예측 8·11을 비교합니다.
마지막 값과 추세는 양의 가중치로 결과가 가용한 훈련 행의 시간 순서를 사용합니다. 단순한 원행 번호는 실제 시간을 보장하지 않습니다. 추세에는 서로 다른 두 가용 시점이 필요하고 평가 시간이 없으면 그 행의 추세 예측은 미정의입니다. 평균의 학습 가용 질량이 0이면 명시적 고정 기준 없이는 계산하지 않습니다.
평가 결과를 바꾸어도 훈련에 의해 정해진 예측은 바뀌지 않아야 합니다. 결과가 미가용이어도 예측이 가능할 수 있으며, 이때 평가 손실은 0이 아니라 미정의로 남습니다.
Enter training outcomes, weights and, when needed, actual times, then a separate evaluation table. Compare mean, fixed, last-value and endpoint-drift rules. Reproduce last value eight and slope three in the small assumed sequence before comparing predictions eight and eleven at t=3.
Last and drift use declared increasing times among positive-weight, available training outcomes. A row number does not establish calendar time. Drift requires two distinct available training times; a missing evaluation time makes that prediction undefined. An empty available mean fit requires an explicit fixed prior.
Changing evaluation outcomes must leave training-fitted predictions unchanged. A missing outcome can still permit prediction; its evaluation loss remains undefined, not zero.
학부Undergraduate
17. 네 세계에서 검증 선택과 시험 재선택을 비교한다17. Compare validation selection and test tuning in four worlds
고정된 두 후보 h₀=0,h₁=1을 둡니다. 검증 결과 V와 시험 결과 T는 서로 독립인 Bernoulli(1/2)이며 한 개씩 있습니다. 둘의 제곱손실은 0·1 손실과 같습니다. 후보를 훈련하는 단계는 이미 고정되어 있고 여기서는 선택만 비교합니다.
검증 오차가 작은 후보를 고르면 h=V입니다. 그 후보의 검증 손실은 언제나 0이지만 독립 시험 손실은 V≠T일 때 1입니다. 네 세계를 같은 확률로 모두 쓰면 검증으로 선택한 후보의 기대 시험 손실은 1/2입니다.
모두 가정한 독립 검증·시험 법칙
V
T
확률
검증 손실 h₀ / h₁
검증 선택
선택 후 시험 손실
시험 재선택 최소
0
0
1/4
0 / 1
0
0
0
0
1
1/4
0 / 1
0
1
0
1
0
1/4
1 / 0
1
1
0
1
1
1/4
1 / 0
1
0
0
반면 시험 결과를 보고 h=T로 다시 고르면 같은 시험 손실의 최소는 항상 0입니다. 이것은 새 결과에 대한 위험이 0이 된 것이 아니라 그 시험을 선택에 사용한 것입니다. 세 번째 독립 결과로 평가하면 선택한 이진 상수의 기대손실은 여전히 1/2입니다.
Fix two candidates h₀=0 and h₁=1. Validation V and test T are independent Bernoulli(1/2) outcomes, one each. Squared loss equals zero-one loss here. Candidate fitting is held fixed; only selection is compared.
Selecting by validation chooses h=V, with validation loss always zero. Independent test loss is one when V≠T. Enumerating four equally likely worlds gives expected test loss 1/2 after validation selection.
Entirely assumed independent validation/test law
V
T
Probability
Validation loss h₀ / h₁
Validation choice
Selected test loss
Test-tuned minimum
0
0
1/4
0 / 1
0
0
0
0
1
1/4
0 / 1
0
1
0
1
0
1/4
1 / 0
1
1
0
1
1
1/4
1 / 0
1
0
0
Tuning again after seeing test T chooses h=T and always scores zero on that same test. It does not make fresh risk zero; the test became selection data. Evaluation on a third independent outcome still gives expected loss 1/2.
학부Undergraduate
18. 먼저 최소화한 평균과 평균한 뒤 최소화18. Average of minima versus minimum of averages
유한한 후보 수 J≥1과 각 후보의 적분 가능한 검증 손실 Q_j를 둡니다. 각 세계에서 min_j Q_j≤Q_k는 모든 고정 후보 k에 대해 성립합니다. 양변을 평균하고 오른쪽 고정 후보 중 가장 작은 기대값을 고르면 아래 부등식입니다. 후보 손실들 사이의 독립성은 이 증명에 필요하지 않습니다.
E[jminQj]≤E[Qk]for every kE[jminQj]≤jminE[Qj]
네 세계 예에서 왼쪽은 0이고 오른쪽은 1/2입니다. 검증 결과를 사용해 고른 규칙의 검증 점수가 각 고정 후보의 위험에 불편하다는 결론은 나오지 않습니다. 선택이 같은 손실의 작은 실현값을 이용하기 때문입니다.
차이가 반드시 엄격한 것도 아닙니다. 모든 세계에서 같은 후보가 최소이거나 모든 후보 손실이 똑같으면 등호가 가능하고, 동률 집합도 여러 후보를 포함할 수 있습니다. 표시 소수에서 비슷한 값과 정확한 동률을 구별합니다.
Take a finite number J≥1 of candidates with integrable validation losses Q_j. In every world, min_j Q_j≤Q_k for any fixed candidate k. Average both sides, then minimize over the fixed right-hand candidate. Independence among candidate losses is unnecessary.
E[jminQj]≤E[Qk]for every kE[jminQj]≤jminE[Qj]
In the four-world example, the left side is zero and the right side 1/2. Unbiased evaluation of each fixed candidate does not establish unbiased validation scoring of the selected minimum. Selection exploits small realizations of those same losses.
The inequality need not be strict. Equality is possible when one candidate minimizes in every world or all candidates have identical losses. Preserve full tie sets and distinguish exact ties from similar rounded decimals.
학부Undergraduate
19. 동률 집합과 실행 규칙을 따로 정한다19. Separate a minimizing set from its execution rule
독립 두 검증 결과가 0과 1이면 두 상수 h₀=0,h₁=1의 평균 검증 손실은 모두 1/2입니다. 최소 후보 집합은 {0,1} 전체입니다. 어떤 후보를 실제로 사용할지 정하려면 사전 순서의 첫 후보 같은 규약을 별도로 둡니다. 첫 후보를 쓴다는 사실이 참 위험의 유일한 최소를 증명하지는 않습니다.
검증 동률을 본 뒤 시험 결과가 낮은 후보를 고르면 시험도 선택에 사용한 것입니다. 동률 해소는 훈련·검증 정보와 시험에서 독립인 사전 난수 등 허용한 정보만으로 정해야 독립 시험의 해석을 유지할 수 있습니다.
실습은 각 가정 세계에서 검증 동률 후보들의 시험 손실 범위도 표시합니다. 그 범위는 가능한 손실을 설명하는 사후 진단이며 시험을 보고 낮은 끝점을 골라도 된다는 허용 규칙이 아닙니다. 실제 실행은 공개한 첫 후보 규약을 따릅니다.
If two validation outcomes are zero and one, both constants h₀=0 and h₁=1 have mean validation loss 1/2. The complete minimizing set is {0,1}. Execution needs a separate convention, such as the first predeclared candidate. That convention does not establish a unique true-risk optimum.
Breaking validation ties by whichever candidate performs best on test also uses test for selection. To retain independent-test interpretation, use only allowed training/validation information or predeclared randomness independent of test.
The lab also displays a per-world range of test losses among validation ties. It is a diagnostic description, not permission to choose its lower endpoint using test outcomes. Execution follows the disclosed first-candidate convention.
학부Undergraduate
20. 선택한 뒤에도 독립 시험이 필요한 이유20. Why independent testing still matters after selection
학습 D와 검증 V로 후보 번호 J(D,V)를 정했다고 합시다. 최종 함수 h도 D와 V만의 함수이고, 양의 정수 m개 시험 관측은 둘과 독립인 같은 새 관측 법칙에서 왔다고 가정합니다. 손실이 적분 가능하면 D,V를 고정한 시험 평균의 기대값은 선택·적합이 끝난 그 함수의 위험입니다.
h=h(D,V)E[Rtest∣D,V]=R(h)
따라서 검증 점수의 선택 낙관과 별개로, 사용하지 않은 시험에서 선택 후 함수의 성능을 평가할 수 있습니다. 다만 한 시험 표의 우연한 오차는 남으며 그 점수가 모든 미래 환경이나 다시 선택하는 절차 전체의 참 위험을 정확히 알려 주는 것은 아닙니다.
실제 자료에서 이 독립 전제가 자동으로 충족되었다고 주장하지 않습니다. 시간 누수, 같은 개체의 반복, 결과를 보고 한 특징 선택, 알려지지 않은 입력 가용 시점은 모두 어느 확률 공간에서 평가하는지 바꿀 수 있습니다.
Suppose training D and validation V choose candidate J(D, V). The final fitted predictor h is a function of D, V only, and, for a positive integer m, the m test observations are independent of (D, V) and follow the same fresh law. With integrable loss, the test average conditional on D, V has expectation equal to the risk of that completed predictor.
h=h(D,V)E[Rtest∣D,V]=R(h)
Thus an unused independent test can evaluate the selected fitted rule despite validation-selection optimism. Sampling variation remains, and one test score does not exactly reveal all future-environment risk or the risk of repeatedly rerunning the whole selection procedure.
Actual independence is not automatic. Temporal leakage, repeated units, outcome-informed feature selection and unknown input availability can alter the probability space and evaluation target.
학부Undergraduate
21. 재적합하면 평가할 함수와 크기도 바뀐다21. Refitting changes the predictor and training size
t=0, 1, 2의 가정 결과 (2, 4, 8)로 평균·마지막 값·끝점 추세를 비교하고 t=3의 검증 결과 10으로 추세를 골랐던 예로 돌아갑니다. 원 추세의 t=4 예측은 14, 시험 결과 8의 손실은 36입니다.
선택이 끝난 뒤 검증 행도 학습에 넣어 같은 추세 규칙을 다시 적합하면 첫점 2와 마지막점 10의 시간 차이는 3입니다. 새 기울기는 8/3, t=4 예측은 38/3이며 제곱손실은 196/9입니다. 후보의 종류는 같지만 실제 함수와 학습 크기는 바뀌었습니다.
yD(4)=14yD∪V(4)=10+8/3=38/3(8−38/3)2=196/9
검증 손실 1은 원래 세 행으로 적합한 함수를 평가한 값입니다. 이를 네 행으로 재적합한 함수의 검증 성능이라고 바꾸어 부르지 않습니다. 독립 시험을 보존했다면 새 함수의 시험 점수를 보고할 수 있지만 사전에 정한 재적합 여부와 추가 정보 사용을 명시해야 합니다.
Return to training outcomes (2, 4, 8) at t=0, 1, 2. Comparing mean, last and drift on validation outcome ten at t=3 selected drift. Its original prediction at t=4 was fourteen, with loss thirty-six against test outcome eight.
After selection, adding validation to training and refitting endpoint drift changes the first-to-last time gap to three. The new slope is 8/3 and prediction at t=4 is 38/3, giving loss 196/9. The family name is unchanged, but the fitted function and training size differ.
yD(4)=14yD∪V(4)=10+8/3=38/3(8−38/3)2=196/9
Validation loss one assessed the original three-row fit. It cannot be relabelled validation performance of the four-row refit. A preserved independent test can assess the new function, but disclose the predeclared refit decision and extra information used.
학부Undergraduate
22. 전처리 상태도 학습된 규칙의 일부22. Preprocessing state is part of the learned rule
가정 훈련 특징은 관측 0과 미가용 한 값이며, 시험 특징 하나는 100이라고 합시다. 가용 특징 평균으로 채우는 전처리를 훈련에서만 적합하면 채울 값은 0입니다. 시험 특징까지 합쳐 적합하면 평균이 50으로 바뀝니다. 시험 결과 Y를 보지 않았어도 사용한 정보가 달라졌습니다.
고정 후속 규칙이 단순히 ŷ=x라면 미가용 훈련 위치의 예측은 0 또는 50이 됩니다. 문제는 어느 계산이 언제나 나쁘다는 구호가 아니라 선언한 평가 절차와 실제 정보 사용이 같은지입니다. 새 입력을 미리 모두 볼 수 있는 명시적 transductive 문제와, 보지 않은 새 단위로 가는 inductive 문제는 다른 표적입니다.
표준화·대치·특징 선택·절단점도 각 학습 분할에서 적합하고 그 상태를 검증·시험에 적용해야 훈련 전용 절차를 평가합니다. 이 장의 작은 반례는 전처리 영향의 원리를 보이며, Ridge·특징 선택·시간 이동의 자세한 구현은 뒤 장에서 잇습니다.
Suppose training features consist of observed zero and one missing position; a test feature equals one hundred. Fitting mean imputation only on training gives zero. Including the test feature changes the imputation mean to fifty, even without reading test outcomes.
Under a fixed downstream rule ŷ=x, the missing training position is predicted as zero or fifty. The issue is matching actual information use to the declared protocol, not asserting that one procedure is universally wrong. An explicit transductive task with all future inputs available differs from induction to unseen units.
To evaluate train-only preprocessing, fit scaling, imputation, feature selection and learned cut points within each training split and apply that state to evaluation. This counterexample illustrates the principle; later chapters develop regularization, feature selection and shifted settings.
학부Undergraduate
23. 이미 본 시험 점수와 이후 탐색23. A viewed test score and subsequent exploration
시험 결과를 본 뒤 후보·비용·문턱·분할을 여러 번 바꾸고 가장 좋은 시험 점수를 보고하면, 실제 절차는 그 시험도 사용해 선택한 것입니다. 각 개별 계산이 정확하다는 사실과 그 점수가 선택에 독립인 평가라는 주장은 별개입니다.
학습 화면에서 시험을 열었다는 표시를 유지하는 것은 이 차이를 기억하는 데 도움이 됩니다. 그 뒤 설정 변경은 같은 보관 자료에서의 탐색으로 해석하고, 새로운 확증 평가가 필요하다면 보지 않은 별도 평가 근거를 마련합니다. 화면 표시만으로 과거의 사전 등록이나 실제 분석자의 모든 행동을 검증했다고 주장하지 않습니다.
방법을 개발하는 탐색 자체는 가능합니다. 최종 보고에서는 어떤 결과를 본 뒤 무엇을 바꾸었는지와, 남겨 둔 평가 대상이 무엇인지 정직하게 구별합니다. 새 자료 없이 단순히 파일 이름을 바꾸어 독립성을 만들 수는 없습니다.
Viewing test outcomes, trying multiple candidates, costs, thresholds or splits, and reporting the best test score makes test part of selection. Correct arithmetic does not establish selection-independent evaluation.
A persistent seen-test notice can help retain this distinction. Later changes become exploration on the same archive; a fresh confirmatory evaluation needs genuinely unused evidence. An interface notice does not verify historical preregistration or every analyst action.
Exploratory development is legitimate. Report what changed after which outcomes were viewed and what evaluation evidence remained unused. Renaming the same file does not create independence.
기초Foundations
24. 실습 C · 최소값·동률·독립 시험의 표적24. Lab C · Minima, ties and independent-test targets
각 가정 세계에 가중치와 후보별 검증·시험 손실 벡터를 입력합니다. 처음에는 독립 두 이진 결과의 네 세계를 재현해 E[min 검증]=0, min E[검증]=1/2, 검증 선택 뒤 시험 평균=1/2, 시험 재선택 점수=0을 확인합니다.
실습은 검증 최소 후보 집합을 모두 보존하고 실제 실행은 사전 순서의 첫 후보로 고정합니다. 같은 세계의 시험 점수를 낮추는 후보로 동률을 해소하지 않습니다. 마지막 열의 시험 재선택 최소는 탐색에서 생기는 차이를 보이는 진단입니다.
주어진 유한 세계 법칙 안에서 검증·시험 손실 벡터의 독립성도 정확 질량의 곱으로 확인합니다. 이 확인은 사용자가 선언한 법칙의 성질이며 실제 자료의 표집 독립성을 원본 없이 증명한 것은 아닙니다. 후보 함수의 훈련은 이 API에서는 고정되어 있습니다.
Enter a weight and candidate validation/test loss vectors for each assumed world. First reproduce four worlds from two independent binary outcomes: E[min validation]=0, min E[validation]=1/2, validation-selected test expectation=1/2, and test-tuned score zero.
The lab retains every validation minimizer and executes the first predeclared candidate. It never breaks ties using the lowest test loss. The test-tuned minimum is a diagnostic of reuse, not an independent performance score.
Within the declared finite world law, it also checks validation/test loss-vector independence by exact probability factorization. This verifies a supplied law, not actual sampling independence. Candidate training fits are held fixed in this API.
학부Undergraduate
25. 교차검증은 매번 무엇을 빼고 적합하는가25. What is excluded at each cross-validation fit?
K≥2개의 서로 겹치지 않는 검증 fold가 전체 원행을 한 번씩 덮도록 고정합니다. fold k를 평가할 때는 그 fold의 모든 행을 학습에서 빼고 나머지로 규칙을 적합합니다. 그 뒤 뺀 행에 예측합니다. 전체 자료로 한 번 적합한 예측을 fold마다 나누어 채점하는 것은 이 절차와 다릅니다.
단위 가중치에서 fold 크기가 N_k이면 그 적합의 원 학습 행 수는 N−N_k입니다. 결측·0가중치가 있으면 실제로 평균 적합에 기여한 가용 행 수와 가중치합을 추가로 셉니다. 명목상 같은 학습 크기라도 가용 분모는 다를 수 있습니다.
어느 fold에서 기준 평균·집단 평균·전처리 상태를 적합했는지 공개해야 합니다. 이 장 실습은 전체 평균 또는 고정 집단의 평균을 사용하며, 빈 학습 집단의 예측은 선언한 고정 기준입니다. 뒤 장의 모델 선택·특징 선택도 같은 원칙으로 각 학습 분할 안에서 수행합니다.
Fix K≥2 disjoint validation folds covering every source row once. To evaluate fold k, exclude all its rows from training, fit on the remainder, and predict the excluded rows. Fitting once on all data and merely scoring subsets is a different procedure.
With unit weights, a fold of size N_k leaves N−N_k source training rows. Missing values and zero weights additionally require the available training count and total contributing weight. Equal nominal training sizes need not have equal available denominators.
Disclose which fold fitted each baseline, group mean and preprocessing state. This lab uses pooled or fixed-group means, with an explicit prior for an empty training group. Later model/feature selection follows the same within-training principle.
학부Undergraduate
26. fold 평균과 관측 가중 평균은 다를 수 있다26. Equal-fold and observation-weighted means can differ
가정 결과가 (0, 2, 3, 3, 3)이고 앞 두 행을 fold 0, 뒤 세 행을 fold 1로 둡니다. 각 행 가중치는 1이고 전체 학습 평균 규칙을 사용합니다. 첫 fold를 뺀 학습 평균은 3, 둘째 fold를 뺀 학습 평균은 1입니다.
불균등 fold의 완전관측 가정 표
검증 fold
가용 평가 수
학습 평균
검증 MSE
0
2
3
5
1
3
1
4
각 평가 행을 똑같이 평균하면 (2×5+3×4)/5=22/5입니다. 두 fold를 똑같이 평균하면 (5+4)/2=9/2입니다. 둘 다 올바른 산술이지만 평가 단위의 가중 방식이 다릅니다. 무엇을 균등하게 평균했는지 이름에 넣어야 합니다.
평가 가능한 양의 질량이 없는 fold가 있으면 그 fold 평균은 미정의입니다. 이를 버리고 남은 fold만 평균하면 원래 선언한 K개 fold 균등 표적을 바꿉니다. 실습은 모든 fold 평균이 정의되지 않으면 균등 fold 평균을 미정의로 남기고, 가용 행 가중 평균은 별도로 계산합니다.
Assume outcomes (0, 2, 3, 3, 3), with the first two rows in fold zero and last three in fold one. Every row has weight one; fit a pooled training mean. Excluding fold zero gives mean three, and excluding fold one gives mean one.
Fully observed assumed table with unequal folds
Validation fold
Available evaluation count
Training mean
Validation MSE
0
2
3
5
1
3
1
4
Equal observation weighting gives (2×5+3×4)/5=22/5. Equal fold weighting gives (5+4)/2=9/2. Both are correct calculations with different evaluation weights. Name what receives equal weight.
A fold with no positive evaluable mass has undefined mean loss. Dropping it changes the declared equal-K-fold target. The lab leaves that target undefined unless every fold mean exists, while reporting the available observation-weighted mean separately.
학부Undergraduate
27. 검증 fold가 떨어져 있어도 학습 표는 겹친다27. Disjoint validation folds can have overlapping training tables
원행 1–6을 두 개씩 세 fold로 나누면 각 학습 표는 네 행입니다. 서로 다른 두 fold의 학습 표는 나머지 한 fold의 두 행을 공유합니다. 아래 행렬은 원 학습 위치의 교집합 개수이며 결과 분포나 상관을 측정한 행렬은 아닙니다.
6원행·3고정 fold · 각 fold 두 행
학습 표 교집합
k=0
k=1
k=2
k=0
4
2
2
k=1
2
4
2
k=2
2
2
4
추가로 여섯 결과가 iid이며 유한 분산 σ²>0이라고 가정하고 각 네 행의 평균을 비교합시다. 다른 두 학습 평균은 공통 두 결과의 분산만 공유하므로 공분산은 2σ²/16=σ²/8입니다. 이것은 명시한 확률 법칙 아래의 의존 예입니다.
겹침 숫자만으로 모든 fold 점수의 공분산을 결정하지는 못합니다. 결과가 상수이거나 학습 규칙이 자료를 무시하면 다른 경계가 생깁니다. 그러나 검증 행이 서로 떨어져 있다는 이유만으로 학습된 함수와 손실도 독립이라고 보장할 수는 없습니다.
Partition source positions one through six into three two-row folds. Each training table has four rows; two distinct training tables share the two rows of the remaining fold. This matrix counts intersections of source positions, not measured outcome correlations.
Six source rows / three fixed two-row folds
Training-table overlap
k=0
k=1
k=2
k=0
4
2
2
k=1
2
4
2
k=2
2
2
4
Additionally assume six iid outcomes with finite variance σ²>0 and compare the four-row sample means. Two different means share only two outcome variances, giving covariance 2σ²/16=σ²/8. This is a dependence example under an explicitly specified law.
Overlap counts alone do not determine all fold-score covariances. Constant outcomes or data-independent learners yield other boundaries. But disjoint validation positions do not guarantee independent fitted functions or losses.
학부Undergraduate
28. iid 전제 아래 기대 CV가 겨냥하는 크기28. The training-size target of expected CV under iid premises
N개의 행이 같은 법칙에서 iid이고, 2≤K≤N개의 비어 있지 않은 fold 배치는 표본 전체 (X,Y)와 독립으로 미리 정하며, 가중치가 모두 1이라고 가정합니다. 손실은 적분 가능하고 각 적합 규칙은 해당 학습 행만 사용합니다. fold k의 검증 행은 그 학습 표에서 제외되어 있으므로 검증 평균의 기대값은 크기 N−N_k 알고리즘 위험입니다.
크기가 같은 fold에서는 이 표적이 모두 R_{N−N/K}로 같습니다. fold들이 서로 독립이어야 이 기대값 등식이 성립하는 것은 아닙니다. 기대값의 선형성과 각 fold 안의 훈련·검증 분리로 증명합니다. 분산을 계산할 때는 다시 fold 사이 공분산이 필요합니다.
불균등 fold의 두 평균은 서로 다른 학습 크기 혼합을 평가합니다. 실제 시간 순서·결과를 보고 만든 층·임의 가중치·정보를 공유한 전처리에서는 이 단순한 iid 증명의 전제를 다시 확인해야 합니다. 가공 원행 점수를 정확히 계산했다는 사실만으로 이 기대값 해석이 생기지는 않습니다.
Assume N iid rows from one law, 2≤K≤N nonempty folds assigned independently of the entire sampled rows (X,Y), unit weights and integrable losses. Each fit uses only its training rows. Since validation fold k is excluded from training, its mean loss has expectation equal to algorithm risk at size N−N_k.
Equal-sized folds share target R_{N−N/K}. Independence among folds is unnecessary for this expectation identity: use linearity and each fold’s training/validation separation. Variance still requires cross-fold covariances.
With unequal folds, the two averaging rules target different mixtures of training sizes. Actual temporal data, outcome-informed strata, arbitrary weights and shared preprocessing require reconsidering these iid premises. Exact row-score arithmetic alone does not establish the expectation interpretation.
학부Undergraduate
29. leave-one-out과 최종 전체 적합은 같은 위험이 아니다29. Leave-one-out and the final fit need not share a risk
세 결과가 iid Bernoulli(1/4)이고 학습 규칙은 표본 평균입니다. 각 leave-one-out 적합은 두 결과를 사용하므로 기대 CV는 R₂=9/32입니다. 전체 세 행을 쓴 평균 규칙의 알고리즘 위험은 R₃=1/4입니다. 같은 손실·같은 법칙에서도 크기가 달라 값이 다릅니다.
여덟 순서 학습 표를 1의 개수로 합치면 다음 네 행입니다. 가운데 열은 각 세 행 표의 LOO 점수이고 마지막 열은 그 전체 표로 적합한 특정 평균의 참 조건부 위험입니다. 두 열 모두 같은 이진 가정 법칙에서 계산했습니다.
P(Y=1)=1/4 · 단위 가중치 · 제곱손실
1의 개수
전체 확률
LOO MSE
전체 적합의 R(D₃)
0
27/64
0
1/4
1
27/64
1/2
7/36
2
9/64
1/2
13/36
3
1/64
0
3/4
LOO 점수의 기대값은 9/32, 마지막 열의 기대값은 1/4입니다. 또한 각 특정 표의 조건부 위험은 1/4 하나로 고정되지 않습니다. “CV 점수”, “전체 적합의 위험”, “전체 크기 알고리즘의 평균 위험” 세 이름을 분리해서 보고해야 합니다.
Let three outcomes be iid Bernoulli(1/4), with sample-mean learning. Each leave-one-out fit trains on two outcomes, so expected CV is R₂=9/32. The algorithm trained on all three has R₃=1/4. Different training sizes give different risks even under the same law and loss.
Aggregate the eight ordered training tables by their number of ones below. The middle score is LOO on each three-row table; the final column is true conditional risk for the particular predictor fitted on that entire table.
P(Y=1)=1/4 · unit weights · squared loss
Number of ones
Total probability
LOO MSE
Full-fit R(D₃)
0
27/64
0
1/4
1
27/64
1/2
7/36
2
9/64
1/2
13/36
3
1/64
0
3/4
Expected LOO score is 9/32, whereas the expected final column is 1/4. Individual full-fit conditional risks also vary rather than all equalling 1/4. Report CV score, specific full-fit risk and average full-size algorithm risk as separate quantities.
학부Undergraduate
30. 같은 개체와 같은 특징 집단은 다르다30. A repeated unit differs from a shared feature category
원행의 고유 위치 키는 결합과 추적을 돕지만 실제 사람·고객·제품 개체를 식별한다고 자동으로 볼 수 없습니다. 한 개체의 반복 측정이 여러 fold에 걸치면 새 개체 평가와 같은 개체의 다음 측정 평가가 다른 표적일 수 있습니다. 확인된 개체 키와 미확인 상태를 따로 남깁니다.
반면 교육년 ≤12 집단이나 불만 코드 1을 훈련과 검증에서 공유한다는 사실만으로 같은 개체가 샜다고 할 수 없습니다. 특징 범주를 공유하는 것은 집단 평균 예측의 의도된 구조입니다. 그 범주 전체를 새 fold로 빼면 미관측 범주 예측이라는 다른 과제를 만들 수 있습니다.
결과가 미가용인 행도 원 키와 fold에 그대로 남깁니다. 알려진 개체 키의 교차는 탐지할 수 있지만 키가 없다는 이유로 교차가 없다고 확정하지 않습니다. 실습의 unknown 단위 개수와 알려진 공유 키 목록은 독립성 보증서가 아닙니다.
A unique positional row key supports alignment but does not automatically identify an actual person, customer or physical product. Repeated measurements of one unit across folds can change the target from new-unit evaluation to another measurement of the same unit. Preserve known unit identifiers separately from unknown identity.
Sharing an education≤12 category or complaint-code-one category between training and validation is not by itself repeated-unit leakage. Shared feature categories are intentional in group-mean prediction. Holding out an entire feature category creates a different unseen-category task.
Unavailable outcomes retain original keys and folds. Known crossing unit IDs can be detected, but missing identifiers do not prove no crossings. Unknown-unit counts and shared known-key lists are not independence certificates.
학부Undergraduate
31. fold 표준편차를 독립 반복의 표준오차로 읽지 않는다31. Do not treat fold spread as independent-repetition uncertainty
K개 fold 점수 Q₁,…,Q_K에 유한 이차 모멘트를 두면 균등 평균의 분산은 모든 분산과 공분산의 합을 K²으로 나눈 값입니다. fold 사이 공분산이 0이라는 근거 없이 표준편차/√K를 전체 평가 절차의 표준오차로 확정할 수 없습니다.
Var(Qˉ)=K21i,j∑Cov(Qi,Qj)
Bengio–Grandvalet의 지정 원문은 고정 학습 표의 위험과 학습 규칙 위험을 구별하고, 공유 학습과 fold 겹침이 만드는 공분산 구조를 설명합니다. 일반적인 모든 자료 법칙에 통하는 불편 CV 분산 추정량이 없다는 결과를, 어떤 추가 모형에서도 불확실성을 계산할 수 없다는 주장으로 바꾸지 않습니다.
알려진 작은 유한 법칙에서는 전체 표본을 전수해 참 분산을 계산할 수 있습니다. 반대로 한 실제 fold 점수 목록만 재표집하는 것은 독립 학습 표·선택·재적합 전체를 반복한 실험이 아닙니다. CV로 후보까지 고른 최소 점수는 다시 선택 낙관을 가질 수 있어 독립 평가나 뒤의 중첩 절차가 필요합니다.
For K fold scores with finite second moments, the variance of their equal mean is the sum of all variances and covariances divided by K². Without grounds for zero cross-covariance, fold SD/√K is not a certified standard error for the whole evaluation procedure.
Var(Qˉ)=K21i,j∑Cov(Qi,Qj)
The assigned Bengio–Grandvalet passages distinguish fitted-predictor and algorithm risks, and explain covariance from shared training and fold overlap. Their no-universal-unbiased-variance result is not a claim that uncertainty is impossible under every additional model.
A known finite law permits exact true-variance enumeration. Conversely, resampling one list of observed fold scores does not rerun independent training, selection and refitting. Selecting the minimum CV score also invites selection optimism, motivating independent evaluation or later nested procedures.
기초Foundations
32. 실습 D · 분모·겹침·최종 전체 적합을 함께 본다32. Lab D · Denominators, overlap and the final all-data fit
가정 결과 (0, 2, 3, 3, 3)의 fold 번호를 (0, 0, 1, 1, 1)로 두어 가용 행 가중 CV 22/5와 fold 균등 CV 9/2를 먼저 확인합니다. 각 fold에서 뺀 행에 대한 예측을 읽고 전체 자료 적합의 훈련 점수 34/25와도 구별하세요.
0가중치·미관측 x 또는 y·한 fold의 가용 질량 0을 넣어 분모와 미정의 표시를 확인합니다. 같은 완전쌍 규약으로 평균과 집단 평균을 비교하며, 빈 학습 집단은 고정 기준을 사용합니다. 결과가 없는 행을 0오차로 만들지 않습니다.
학습 원행 교집합 행렬, 기여 가중치 교집합과 알려진 개체 키의 교차를 따로 읽습니다. 그림은 같은 보관 표의 fold 점수이지 독립 반복의 신뢰구간이 아닙니다. 이 실습은 fold 표준편차로 참 분산을 자동 인증하지 않습니다.
Start with assumed outcomes (0, 2, 3, 3, 3) and folds (0, 0, 1, 1, 1). Verify observation-weighted CV 22/5 and equal-fold CV 9/2. Read heldout predictions and distinguish both from apparent all-data training MSE 34/25.
Try zero weights, unavailable x/y and a fold with zero available mass. Compare pooled/group means under one common complete-pair policy and explicit empty-group prior. Missing outcomes never become zero errors.
Read source-count overlap, usable-weight overlap and known crossing unit IDs separately. Plotted fold scores describe the same retained table, not independent-repetition confidence intervals. Fold spread is not automatically certified uncertainty.
학부Undergraduate
33. 보관한 값의 경험 법칙을 먼저 고정한다33. First fix the empirical law of retained values
알려진 네 값 (0, 2, 2, 4)의 원 위치를 각각 같은 확률 1/4로 고르는 경험 법칙을 정의합니다. 이 법칙의 평균은 2, N=4로 나눈 분산은 2입니다. 두 위치에 같은 숫자 2가 있어도 각각의 원 위치 질량을 보존합니다.
이제 그 법칙에서 양의 정수 m에 대해 독립으로 m번 복원 추출하고 평균을 계산합니다. 이 새 추출 평균의 기대값은 알려진 경험 평균이며 분산은 v_F/m입니다. m=2에서는 정확히 1입니다. 원 네 값은 이미 고정한 계산 입력이고, 새 확률성은 선언한 추출 단계에서 생깁니다.
F=N1i=1∑NδyiE∗[Yˉ∗]=yˉVar∗(Yˉ∗)=vF/m
이를 미지의 모집단에서 네 값이 관측되는 원래 표집 법칙과 구별합니다. 원래 법칙을 근사하는 도구로 쓰려면 별도 이론과 가정이 필요합니다. 별표 기대값은 보관 자료에 조건부인 새 경험 법칙의 기대값입니다.
Define an empirical law that selects each source position of known values (0, 2, 2, 4) with probability 1/4. Its mean is two and divisor-N variance is two. The repeated value two retains mass from both original positions.
For a positive integer m, draw m independent positions with replacement and average them. This new mean has expectation equal to the known empirical mean and variance v_F/m: exactly one at m=2. Original values are fixed inputs; randomness enters through the newly declared resampling stage.
F=N1i=1∑NδyiE∗[Yˉ∗]=yˉVar∗(Yˉ∗)=vF/m
Distinguish this from the original sampling law that produced observations from an unknown population. Using it to approximate that law requires additional theory and assumptions. Starred expectation is conditional on the retained empirical distribution.
학부Undergraduate
34. 복원 추출의 순서 튜플을 모두 보존한다34. Retain every ordered replacement tuple
원 위치를 0,1,2,3으로 쓰면 두 번의 복원 추출은 4²=16개의 순서 튜플입니다. (0,0)도 허용되며 같은 원 관측을 두 번 뽑았다는 뜻입니다. 새로운 독립 관측 두 개를 실제로 수집했다는 뜻은 아닙니다.
평균이 같아지는 튜플을 합칠 때는 질량을 더합니다. 값 2가 두 위치에 있으므로 숫자 값만 중복 제거한 {0,2,4}를 균등하게 추출하면 원 경험 법칙을 바꿉니다. 다음 표는 16튜플을 평균별로 합친 정확 분포입니다.
알려진 (0,2,2,4)에서 iid 두 번 복원 추출
재표집 평균
튜플 수
정확 질량
0
1
1/16
1
4
1/4
2
6
3/8
3
4
1/4
4
1
1/16
원 위치를 보존하면 같은 값의 반복과 같은 위치의 재선택을 구별할 수 있습니다. 둘 다 출력 숫자는 같을 수 있지만 재현 경로와 표집 규칙은 다릅니다. 원 키는 새 추출 인덱스와 별도로 내보냅니다.
Label original positions zero through three. Two replacement draws produce 4²=16 ordered tuples, including (0,0). This reuses the same retained observation; it does not mean two new independent observations were collected.
Combine equal resulting means by summing probabilities. Deduplicating numerical values to {0,2,4} and sampling those uniformly changes the empirical law because two occupies two original positions. The table groups the sixteen tuples by mean.
Two iid replacement draws from known (0,2,2,4)
Resampled mean
Tuple count
Exact mass
0
1
1/16
1
4
1/4
2
6
3/8
3
4
1/4
4
1
1/16
Preserved positions distinguish equal values at different rows from repeatedly drawing the same row. Outputs can coincide while lineage and sampling rules differ. Export original keys separately from resampling coordinates.
학부Undergraduate
35. 비복원 추출은 다른 조건부 실험이다35. Without replacement is a different conditional experiment
같은 네 원 위치에서 두 개를 비복원 추출하면 순서 튜플은 4×3=12개입니다. (1,2)처럼 서로 다른 두 위치의 값이 모두 2인 것은 허용되지만 (1,1)은 허용되지 않습니다. 복원 추출과 같은 표본 크기라도 법칙이 다릅니다.
같은 고정 네 값 · 두 추출 법칙의 차이
평균
복원 질량
비복원 질량
0
1/16
0
1
1/4
1/3
2
3/8
1/3
3
1/4
1/3
4
1/16
0
N≥2,1≤m≤N의 균등 비복원 추출 평균은 분산 v_F/m에 유한모집단 보정 (N−m)/(N−1)이 곱해집니다. 여기서는 2/3입니다. 모든 위치를 뽑는 m=N이면 평균이 원 평균과 같아 분산은 0입니다.
Var∗(Yˉ∗)=mvFN−1N−m(N≥2)
이는 고정된 프레임 안의 선택 법칙입니다. 원 자료의 실제 표집 설계가 비복원이었다거나 미지 모집단 불확실성이 이 보정으로 해결되었다는 뜻은 아닙니다.
Two without-replacement draws from four positions have 4×3=12 ordered tuples. Distinct positions (1,2) can both contain value two, but (1,1) is forbidden. The same sample size does not imply the same law as replacement sampling.
Same fixed four values / two different draw laws
Mean
Replacement mass
Without-replacement mass
0
1/16
0
1
1/4
1/3
2
3/8
1/3
3
1/4
1/3
4
1/16
0
For N≥2 and 1≤m≤N, uniform without-replacement means multiply v_F/m by correction (N−m)/(N−1), giving 2/3 here. At m=N, the mean equals the fixed frame mean and variance vanishes.
Var∗(Yˉ∗)=mvFN−1N−m(N≥2)
This is a selection law within a fixed frame. It establishes neither the source’s actual sampling design nor resolution of unknown-population uncertainty.
학부Undergraduate
36. 손실 차이 재표집에서 무엇을 고정했는가36. What is held fixed when resampling paired losses?
이미 적합된 두 규칙을 같은 평가 단위에 적용하여 손실 쌍을 만들었다고 합시다. 짝을 고정한 경험 법칙에서 원 위치를 함께 추출하면 차이의 평균을 재계산할 수 있습니다. 이것은 고정 함수 두 개를 해당 경험 법칙에서 비교하는 새 실험입니다.
그때마다 원 학습 표를 다시 뽑고 전처리·모형 선택·적합까지 반복한 것은 아닙니다. 따라서 재표집 차이의 분산을 전체 학습 절차를 다시 수행하는 알고리즘 비교의 분산으로 바꾸어 부르지 않습니다. 어떤 단계가 고정되었고 어떤 단계가 반복되었는지 먼저 기록합니다.
또한 짝을 지은 단위가 같은 날짜·사람·제품임을 원 키로 확인하거나 그 정렬 전제를 명시해야 합니다. 같은 숫자 인덱스로 두 열을 붙였다는 이유만으로 실제 같은 개체의 결과라고 확인된 것은 아닙니다. 원 키가 없는 자료에서는 그 한계도 남깁니다.
Suppose two already fitted rules produce paired losses on the same evaluation units. Holding pairs fixed and drawing their positions together yields a resampled mean difference. It is a new experiment comparing two fixed functions under that empirical law.
It does not resample original training and rerun preprocessing, selection and fitting. Do not relabel the resulting variance as uncertainty for rerunning the whole learning procedure. State which stages remain fixed and which repeat.
Confirm same-date/person/product alignment using source keys, or explicitly state the alignment premise. Two numerical row indices alone do not establish the same physical unit; preserve unknown-identity limitations.
학부Undergraduate
37. 정확 질량과 유한 모의실험의 0회를 구별한다37. Exact probabilities differ from zero Monte Carlo occurrences
네 값 (0, 2, 2, 4)에서 두 번 복원 추출한 평균이 3 이상일 확률은 5/16입니다. 평균이 정확히 3인 질량 1/4도 포함합니다. 3보다 크다는 엄격 사건이면 평균 4만 남아 1/16입니다. 경계 포함 여부가 다른 확률을 만듭니다.
작은 전수 실험에서는 모든 양의 항을 더해 확률을 정확 분수로 계산합니다. 몬테카를로를 유한 번 실행해 어떤 사건이 0번 나왔다고 참 확률이 0인 것은 아닙니다. 정확한 법칙의 0과 유한 시도의 관측 빈도 0을 분리합니다.
극소 비영 분수가 화면에서 0으로 반올림될 수도 있습니다. 정확 분수와 비영 상태를 함께 보존하며, 비슷한 표시값을 이유로 사건 경계를 바꾸거나 동률을 선언하지 않습니다. 이 장 실습의 꼬리 확률은 선언한 경험 법칙의 사건이지 미지 모집단의 p값이나 자동 신뢰수준이 아닙니다.
For two replacement draws from (0, 2, 2, 4), the probability that their mean is at least three is 5/16, including mass 1/4 at exactly three. A strict greater-than-three event leaves only mean four, with mass 1/16. Boundary conventions change probabilities.
Small exhaustive experiments sum all positive terms as exact fractions. Zero occurrences in a finite Monte Carlo run do not establish zero true probability. Separate an exact law’s zero from an observed simulation count of zero.
A tiny nonzero fraction can also round to displayed zero. Preserve the exact value and nonzero state rather than changing event boundaries or declaring ties from rounded values. These tails belong to the declared empirical law, not an automatically valid population p-value or confidence level.
학부Undergraduate
38. 경험 법칙에서 정확해도 모집단 포함률은 별도다38. Exact empirical resampling does not establish population coverage
원래 알려지지 않은 법칙이 Bernoulli(1/4)인데 실제 관측 네 개가 모두 0인 가정 상황을 봅시다. 이 관측 사건의 확률은 (3/4)^4=81/256입니다. 얻은 경험 법칙은 0에만 질량을 두므로 그 법칙에서 부트스트랩 평균 분산은 정확히 0입니다.
그러나 원래 네 관측 평균의 모집단 표집 분산은 (3/16)/4=3/64로 양수입니다. 경험 법칙의 계산 오류가 아니라 원래 법칙과 관측 경험 법칙이 다르기 때문입니다. 퇴화한 부트스트랩 출력만으로 미지 평균을 확실히 안다고 할 수 없습니다.
적절한 조건에서 부트스트랩은 표집 분포 근사 도구가 될 수 있습니다. 다만 iid·의존 구조·통계량의 성질·표본 크기·관측 선택과 학습/선택 절차를 따져야 합니다. 경험 재표집 분포의 분위수를 자동으로 실제 포함률이 보장된 신뢰구간이라고 부르지 않습니다.
Consider an assumed original Bernoulli(1/4) law yielding four observed zeros, an event of probability (3/4)^4=81/256. The resulting empirical law puts all mass at zero, so its bootstrap-mean variance is exactly zero.
Yet the original four-observation mean has positive sampling variance (3/16)/4=3/64. The discrepancy is not an empirical calculation error: original and observed empirical laws differ. A degenerate bootstrap output does not establish certainty about an unknown mean.
Under suitable conditions, bootstrap methods can approximate sampling laws. Examine iid/dependence structure, statistic regularity, sample size, selection and the learning procedure. Empirical resampling quantiles are not automatically confidence intervals with verified actual coverage.
학부Undergraduate
39. 한 값·미관측·전부 선택의 경계39. Boundaries for one value, missingness and full selection
경험 프레임이 한 값만 가지면 복원 추출 평균은 몇 번 뽑아도 그 값이며 분산은 0입니다. 비복원 추출은 m=1만 가능하고 역시 분산 0입니다. N=1에서는 (N−m)/(N−1)을 0/0으로 계산하지 않고 이 직접적인 경계 정의를 사용합니다.
미관측 값이 입력에 남아 있으면 가용 위치만으로 새 경험 법칙을 만들 수 있습니다. 이 경우 어느 원 위치를 제외했는지 보존하고, 가용 경험 평균과 전체 원 프레임 평균을 구별합니다. 가용 값이 하나도 없으면 이 재표집 평균을 정의할 경험 법칙도 없습니다.
모든 가용 위치를 비복원으로 뽑으면 가용 프레임 평균의 재표집 분산은 0입니다. 이것이 원래 미관측 값의 복원이나 미지 모집단 평균의 불확실성 0을 뜻하지는 않습니다. 수학적 경계와 자료 가용성의 한계를 같은 화면에 남깁니다.
A one-value empirical frame gives that value at every replacement sample size, with variance zero. Without replacement, only m=1 is possible and variance is again zero. At N=1, use this direct boundary rather than evaluating (N−m)/(N−1) as zero divided by zero.
If inputs retain unavailable positions, a new empirical law can use only available values. Preserve excluded original indices and distinguish available empirical mean from the full original-frame mean. No available values means no empirical mean-resampling law is defined.
Drawing every available position without replacement gives zero variance around the available-frame mean. It neither recovers missing values nor establishes zero uncertainty about an unknown population mean. Preserve both mathematical boundaries and availability limitations.
기초Foundations
40. 실습 E · 복원·비복원·짝 차이를 직접 전수한다40. Lab E · Enumerate replacement, without-replacement and paired differences
원 값 (0, 2, 2, 4)에서 m=2로 시작해 복원 16튜플과 비복원 12튜플을 비교하세요. 평균 기대값은 둘 다 2이고 분산은 1과 2/3입니다. 원 위치가 같은 튜플과 값만 같은 튜플을 구별합니다.
짝 비교로 바꾸면 같은 행의 lossA−lossB를 먼저 계산한 뒤 그 차이를 추출합니다. 각 원행에 두 손실 중 하나라도 없으면 그 짝은 미가용으로 남깁니다. 가용 원 키와 미가용 위치를 그대로 내보내고 두 손실 열을 따로 재배열하지 않습니다.
원 프레임 한 값과 비복원 m=N도 시험해 분산 0 경계를 확인합니다. 선택한 임계값의 이상/이하 사건 확률은 정확 질량으로 더합니다. 출력은 경험 법칙의 조건부 계산이며 모집단 신뢰구간·인과효과·학습 절차 전체의 불확실성을 자동으로 인증하지 않습니다.
Begin with (0, 2, 2, 4) and m=2, comparing sixteen replacement and twelve without-replacement tuples. Both expected means equal two; variances are one and 2/3. Distinguish repeated positions from repeated numerical values.
Paired mode first forms same-row lossA−lossB and resamples that difference. A pair with either loss unavailable remains excluded with its original position retained. Export available keys and missing positions without independently reordering the two loss columns.
Try a singleton frame and without-replacement m=N to verify zero-variance boundaries. Inclusive threshold tails sum exact masses. Outputs are conditional empirical-law calculations, not automatic population confidence intervals, causal effects or uncertainty for the whole learning procedure.
학부Undergraduate
41. 국가 · 같은 보관 빈티지의 연도별 평가41. Country · Evaluation within one retained data vintage
한국의 실제 2014–2024년 1인당 실질 GDP 11개를 씁니다. 단위는 2015년 고정 USD/명입니다. 2014–2021년 여덟 행을 학습, 2022년 한 행을 검증, 2023–2024년 두 행을 시험으로 미리 나눕니다. 이는 한국의 한 연도라는 관측 단위이지 국가 11개가 아닙니다.
학습 구간만으로 평균·마지막 값·첫끝 기울기 규칙을 적합합니다. 마지막 규칙은 학습의 첫 관측과 끝 관측을 잇는 변화율이지 전체 연도의 OLS 추세가 아닙니다. 2022년 제곱손실이 가장 작은 규칙을 선택하면 이 보관 표에서는 첫끝 기울기 규칙이 선택됩니다.
검증 후 학습 표를 그대로 둘지, 2022년을 합쳐 같은 규칙을 다시 적합할지도 별도 절차입니다. 시험 두 연도는 선택에 쓰지 않습니다. 재적합은 예측 함수를 바꾸며 실제로 이 표의 시험 MSE는 재적합에서 더 큽니다. 자료를 더 넣으면 모든 실현 표의 시험오차가 감소한다는 정리는 없습니다.
11개 값은 2026년에 보관한 한 빈티지에서 함께 가져왔습니다. 연도 순서를 지켰다는 사실만으로 2021년 당시 알려진 빈티지를 복원한 실시간 예측이라고 부르지 않습니다. 관측연도·다운로드 시점·예측에 쓸 정보 시점을 구별하고, 실제 미래 검증이나 시계열 독립성을 자동으로 선언하지 않습니다.
Use eleven actual Korean GDP-per-person observations for 2014–2024, in constant 2015 USD/person. Declare eight training years, 2014–2021; one validation year, 2022; and two test years, 2023–2024. The observation unit is a Korean calendar year, not eleven countries.
Fit the mean, last-value and endpoint-drift baselines using training alone. Endpoint drift joins the first and last retained training observations; it is not an OLS trend through every year. On this archive, the 2022 squared loss selects drift.
Keeping that fit or refitting the same selected rule with 2022 included defines two procedures. Neither uses the test years for selection. Refitting changes predictions and, on these two test years, gives larger MSE. More training data do not guarantee smaller realized test loss on every table.
All eleven values come from one vintage retained in 2026. Chronological roles do not reconstruct information available in 2021 or establish a real-time forecast. Distinguish observation years, download time and prediction information time; future validation and time-series independence remain unestablished.
학부Undergraduate
42. 개인 · 원시급 가용분모와 원행 역할42. Person · Available raw wages and source-row roles
Card 공개 자료의 남성 코호트 3,613개 원행에서 1976년 교육 연수와 시간당 원임금을 새로 선택합니다. 원임금은 센트/시간이며 예측·평가 전에 100으로 나누어 1976 USD/시간으로 바꿉니다. 원임금은 3,017개가 가용하고 596개가 미가용입니다. 절단된 로그임금의 3,010개 가용분모와 바꾸어 쓰지 않습니다.
원행 번호에서 1을 뺀 나머지를 5로 나누어 0·1·2는 학습, 3은 검증, 4는 시험으로 고정합니다. 실제 사람 식별코드는 별도로 남기며 이 분할 키가 독립성이나 무작위 배정을 뜻하지 않습니다. 학습·검증·시험의 원행 수는 2,169·722·722, 가용 시급 수는 1,817·596·604입니다.
같은 원자료의 세 역할 · 원행과 가용분모를 함께 보존
역할
전체 원행
가용 원시급
미가용
학습
2,169
1,817
352
검증
722
596
126
시험
722
604
118
학습 원시급 전체평균과 기록된 교육 연수 ≤12년/>12년별 평균을 비교합니다. 검증 가용 596행에서 집단평균 규칙이 선택됩니다. 시험 MSE는 가용 604행의 평균이며 722행 전체의 관측되지 않은 손실을 복원한 값이 아닙니다.
분할은 원행 위치의 고정 규칙이며 새로운 사람을 대표하는 무작위 시험이나 교육의 인과효과 검증이 아닙니다. 같은 해의 교육·임금을 예측 전에 실제로 알 수 있는지도 운영 정보 시점에서 따로 확인해야 합니다. 여기서는 보관 표 내부의 학습·선택·평가 산술을 재현합니다.
Freshly select 1976 schooling and raw hourly wage from 3,613 source rows in Card’s public male cohort. Raw wages are cents/hour and are divided by 100 before evaluation in 1976 USD/hour. There are 3,017 available raw wages and 596 unavailable values, distinct from the 3,010 available trimmed log-wage observations.
Assign remainders zero, one and two of (source row minus one) modulo five to training, remainder three to validation and four to test. Preserve the original person code separately. The role key establishes neither independence nor random assignment. Training/validation/test have 2,169/722/722 rows and 1,817/596/604 available wages.
Preserve both source-row counts and available denominators
Role
Source rows
Available raw wage
Unavailable
Training
2,169
1,817
352
Validation
722
596
126
Test
722
604
118
Compare a pooled training mean against training means for recorded schooling ≤12 or >12 years. Validation on 596 available rows selects the group rule. Test MSE averages 604 available losses; it does not recover unavailable losses among all 722 test rows.
This deterministic source-position split is neither a random test representing new people nor evidence of a causal schooling effect. Availability of same-year schooling and wage before an operational prediction also requires separate timing evidence. The exercise reproduces fitting, selection and evaluation within the retained table.
학부Undergraduate
43. 기업 실무 · 익명 고객 기록의 확률 기준선43. Business practice · Probability baselines on anonymous customer records
UCI Iranian Churn 자료의 3,150개 익명 고객 기록에서 원 불만 코드와 이탈 결과를 씁니다. 두 변수는 실제 0·1 코드이며 원 14열도 내려받기에 남깁니다. 생산기업별 표본이나 같은 고객의 시간 추적 식별자가 제공된 것으로 해석하지 않습니다.
같은 원행 위치 규칙으로 학습 1,890행, 검증 630행, 시험 630행을 고정합니다. 여기서는 이탈 결과가 모두 가용합니다. 학습의 전체 이탈 비중과 불만 코드별 이탈 비중을 확률 예측으로 쓰고 Brier 손실 (Y−p)²로 비교합니다. 검증 표는 집단 비중 규칙을 선택합니다.
고정한 두 학습 적합을 시험 표의 첫 네 원 위치 5, 10, 15, 20에서 짝 비교하는 작은 예도 제공합니다. 결과를 보고 고른 대표 표본이 아니라 순서로 정한 네 기록입니다. 이 네 위치의 두 규칙 손실 차이는 모두 같아 이 네 차이만 재표집한 평균의 분산은 0입니다. 전체 시험 자료나 새 고객 성능의 불확실성이 0이라는 뜻이 아닙니다.
불만과 이탈은 관측 연관이며 불만을 조작했을 때의 인과효과가 아닙니다. 원자료의 입력 측정과 이탈 시점이 새 운영 예측에 적합한지, 분할 사이에 같은 실제 고객이 있는지도 보장하지 않습니다. 가정한 평가 역할과 실제 제공 코드의 의미를 구별합니다.
Use original complaint codes and churn outcomes from 3,150 anonymous records in UCI Iranian Churn. Both are actual binary 0/1 codes; the download retains all fourteen source columns. Do not reinterpret the file as identified firms or a verified customer panel.
The source-position rule fixes 1,890 training, 630 validation and 630 test records, all with available outcomes. Compare the pooled training churn fraction with complaint-specific training fractions as probability predictions under Brier loss (Y−p)². Validation selects the grouped rule.
A small paired illustration applies the two fixed training fits to the first four test positions, source rows 5, 10, 15 and 20. These are order-selected records, not an outcome-selected representative sample. Their four paired loss differences coincide, so resampling only these differences has zero mean variance. This says nothing about zero uncertainty for the full test frame or new customers.
Complaint/churn association is not an intervention effect. Input and outcome timing suitable for a new operational prediction, and absence of repeated real customers across roles, are not established. Separate declared evaluation roles from observed code meanings.
학부Undergraduate
44. 원자료에서 역할·적합·손실을 다시 만든다44. Reconstruct roles, fits and losses from selected source records
동반 Python과 R은 세 원자료 선택 CSV에서 시작해 원행 역할·가용분모·학습 평균·검증 선택·재적합·시험 손실을 다시 계산합니다. 완성된 실습 출력이나 저장된 예측 열을 계산 입력으로 쓰지 않습니다. 파생 CSV는 이렇게 다시 얻은 값과 대조하는 내보내기입니다.
예측 파일은 검증·시험의 미가용 원행도 남깁니다. 임금 결과가 없으면 예측을 계산할 수 있는 경우에도 손실은 빈칸으로 보존합니다. 각 역할 전체 수, 가용 수, 분모와 원 단위를 함께 대조하면 가용 손실 평균을 전체 프레임 평균으로 잘못 바꾸는 일을 줄일 수 있습니다.
Python의 정확 분수와 R의 수치 결과는 표시 소수의 차이를 허용하되, 정확 0과 작은 비영 값을 구별하여 비교합니다. 원시급 센트→달러, 제곱손실의 제곱 단위, 원행 위치와 실체 식별자의 차이도 같은 재현 절차에서 확인합니다. 계산 일치가 자료의 대표성이나 운영 적합성을 증명하는 것은 아닙니다.
Companion Python and R programs start from the three selected-source CSVs and reconstruct roles, availability, training means, validation selection, refitting and test losses. Neither finished lab output nor stored predictions serve as computational inputs. Derived CSVs are comparison exports of reconstructed values.
Prediction files retain unavailable validation/test outcomes. A computable prediction can coexist with an unavailable loss. Check source counts, available counts, denominators and original units together to avoid substituting an available-loss average for a full-frame average.
Compare Python’s exact fractions with R’s numerical results while distinguishing exact zero from tiny nonzero values. The same workflow checks cents-to-dollars conversion, squared loss units and source positions versus physical identities. Numerical agreement does not establish representativeness or operational suitability.
학부Undergraduate
45. 성능 숫자를 주장으로 바꾸기 전에45. Before turning a performance number into a claim
평가 보고서에는 누가 한 관측인지, 어떤 역할과 정보 시점인지, 무엇을 손실로 삼았는지 먼저 적습니다. 그다음 기준 모형의 학습 위치, 선택 규칙과 동률 처리, 재적합 여부, 평가의 전체·가용분모를 제시합니다. MSE 소수 하나만으로는 평가 표적이 정해지지 않습니다.
한 고정 학습 함수의 위험, 다시 학습하는 알고리즘의 평균 위험, 줄어든 학습 크기를 쓰는 CV의 기대 점수, 관측 경험 법칙의 재표집 변동은 각각 다른 대상입니다. 같은 숫자가 우연히 나와도 정의가 같아지는 것은 아닙니다.
실제 새 사람·다음 시점·새 지역에 대한 주장은 그 배치 상황을 닮은 독립 시험이나 별도의 일반화 논거가 필요합니다. 시간 순서, 원행 불겹침, 집단 이름, 낮은 손실 각각만으로 그 논거를 대신하지 않습니다. 실제 관측에서 확정한 사실과 새 확률 법칙에서 조건부로 도출한 결론을 함께 구별해 보고합니다.
Start an evaluation report with the observation unit, role assignments, information timing and chosen loss. Then state where baselines were fitted, selection and tie rules, refitting, and full versus available denominators. A lone MSE decimal does not determine its target.
Risk of one fixed fit, average risk of a retrained algorithm, expected CV scores at smaller training sizes, and empirical-resampling variability are different quantities. Coincident numerical values do not make their definitions identical.
Claims about new people, future periods or new locations need evaluation resembling that deployment or additional generalization arguments. Chronology, disjoint rows, group names or low loss alone do not supply them. Separate observed facts from conclusions conditional on a newly declared probability law.
기초Foundations
46. 실습 F · 실제 분할의 선택·재적합·시험46. Lab F · Selection, refitting and tests on actual retained records
국가·개인·익명 고객 기록을 차례로 고르세요. 검증 점수가 어느 학습 적합에서 계산되었는지 확인하고, 동률이 있으면 미리 정한 첫 규칙을 선택합니다. 시험 점수를 본 뒤 규칙을 바꾸는 실험으로 읽지 않습니다.
재적합을 켜면 선택한 규칙을 학습+검증 원행에 다시 적합합니다. 국가 첫끝 변화율과 개인·고객 평균은 이때 달라질 수 있습니다. 새 시험 점수는 바뀐 함수의 고정 보관 시험 평가이지 예전 검증 적합의 점수가 아닙니다.
임금은 원행과 가용분모를 같이 읽고, 고객은 Brier의 무차원 제곱손실, GDP는 고정 USD/명의 제곱 단위를 확인합니다. 원자료 그래프는 실제 연도·집단과 계산된 예측을 구별합니다. 보관 표 내부의 역할 비교를 실제 미래·새 고객 검증이나 인과효과로 바꾸어 부르지 않습니다.
Choose country, person and anonymous customer records in turn. Identify the training fit used for each validation score; choose the predeclared first rule if tied. Do not read this as changing rules after seeing the test.
Refitting fits the selected rule again on training plus validation source rows. Endpoint drift and person/customer means can change. The new test score evaluates the changed function on the fixed held-out archive; it is not the old fit’s validation score.
Read source and available wage denominators together. Brier loss is dimensionless; GDP squared loss uses squared constant USD/person. Source charts distinguish actual years/groups from computed predictions. Within-archive role comparisons establish neither future/new-customer validation nor causal effects.
학부Undergraduate
47. 세 실제 사례를 연결해서 읽는다47. Read the three actual cases together
국가 · 한국 GDP의 기준선·검증 선택·재적합
질문은 “한국의 한 해 실질 GDP/명을 단순한 과거 기준선으로 예측한다면, 어느 자료를 적합·선택·시험에 썼는가?”입니다. 보관 World Bank JSON에서 한국 2014–2024년의 실제 11개 값을 새로 선택했습니다. 지표 NY.GDP.PCAP.KD의 단위는 2015년 고정 USD/명입니다. 한 사람의 소득·가처분소득이나 구매력평가 USD로 바꾸어 읽지 않습니다.
관측 단위는 한국의 달력연도입니다. 2014–2021년 여덟 값은 학습, 2022년 한 값은 검증, 2023–2024년 두 값은 시험으로 미리 고정합니다. 단순하지만 검증 한 해와 시험 두 해뿐이라는 한계가 큽니다. 원행 위치는 보관 JSON 배열의 위치이며 연도는 별도 변수입니다.
원본은 2026년 10월 20일 보관되었고 이번 장은 27일 그 바이트를 다시 선택·검토했습니다. 모든 값이 한 보관 빈티지에 있으므로 과거 값을 당시 공표 빈티지라고 단정하지 않습니다. 아래 비교는 이 보관 표의 시간 역할 평가이며, 2021년에 실제 이용 가능했던 자료로 수행한 실시간 예측이라는 주장이 아닙니다.
실제 11값 · 2015년 고정 USD/명 · 표시 소수 반올림
관측연도
원행 위치
역할
실제 GDP/명
2014
2621
학습
29,470.673
2015
2620
학습
30,171.791
2016
2619
학습
31,005.407
2017
2618
학습
31,979.903
2018
2617
학습
32,852.889
2019
2616
학습
33,496.311
2020
2615
학습
33,215.930
2021
2614
학습
34,792.940
2022
2613
검증
35,809.014
2023
2612
시험
36,347.704
2024
2611
시험
37,048.426
기준선은 세 개입니다. 전체 학습 평균은 여덟 학습 값의 평균, 마지막 값은 2021년 결과, drift는 첫 학습 2014년과 끝 학습 2021년을 잇는 연간 변화율로 마지막 값에서 외삽합니다. Drift를 여덟 점의 회귀 추세라고 부르지 않습니다. 아래 세 후보의 적합에는 2022–2024년 결과가 들어가지 않습니다.
b=7y2021−y2014yt=y2021+b(t−2021)
고정 역할과 같은 가용 규약
역할
전체 원행
가용 결과
미가용
학습
8
8
0
검증
1
1
0
시험
2
2
0
학습만으로 적합 · 최소 검증 점수로 선택 · 소수 반올림
사전 후보
학습 MSE
검증 MSE
검증 가용 수
전체 학습 평균
2,856,667.539448
13,584,998.873479
1
마지막 학습값
9,984,015.055943
1,032,406.554448
1
학습 첫끝 변화율
111,149.124286
65,408.223337
1
같은 보관 시험 표 · 독립 미래 검증 아님 · 소수 반올림
선택 후 적합
시험 가용 수
시험 MSE
원 학습 적합 유지
2
906.696871
학습+검증 재적합
2
91,729.214209
2022년 검증 손실의 유일 최소는 drift입니다. 시험 두 해의 MSE는 원 학습 적합을 유지하면 약 906.696871, 2022년을 합쳐 drift를 재적합하면 약 91,729.214209입니다. 단위는 (2015년 고정 USD/명)²입니다. 재적합이 이 두 해에서 더 나쁘다는 기술적 사실을 모든 미래 표의 법칙으로 일반화하지 않습니다.
2022년까지 합친 새 기울기는 첫끝 간격 8년으로 계산합니다. 학습 크기와 함수가 바뀌었으므로 예전 검증 점수가 새 함수의 독립 검증 점수로 그대로 남는 것은 아닙니다. 시험 결과를 보고 재적합 여부를 골랐다면 그 선택에 시험을 사용했다고 밝혀야 합니다.
2023·2024년을 두 독립 관측이라고 놓았나요?
아닙니다. MSE는 두 보관 오차의 평균입니다. 시계열 독립·정상성·표본분포를 확인하지 않았으며 이 두 값으로 독립 시험 신뢰구간을 자동 계산하지 않습니다.
시험에서 좋아 보이는 기준선으로 바꾸면 안 되나요?
탐색은 할 수 있지만 그 시험은 이제 선택에 쓰였습니다. 먼저 선언한 절차의 평가와 시험을 보고 바꾼 새 절차를 구별하고, 새 절차의 독립 평가는 별도로 마련해야 합니다.
Card 공개 남성 코호트의 3,613개 원행에서 1976년 교육 ed76과 원 시간당 임금 wage76을 새로 읽었습니다. 원 사전의 임금 단위는 센트/시간입니다. 계산 결과는 원시급을 100으로 나눈 1976 USD/시간입니다. 원시급 가용 3,017개·미가용 596개를, 절단 로그임금의 가용 3,010개·미가용 603개로 바꾸지 않습니다.
원행 번호−1을 5로 나눈 나머지 0·1·2는 학습, 3은 검증, 4는 시험입니다. 실제 개인 코드는 별도로 보존합니다. 이 위치 규칙은 무작위 배정도, 현재의 새 사람 모집단을 대표하는 표집 설계도 아닙니다. 원 점(.)은 선택 CSV에 보존하며 모델에서는 null로 정규화합니다.
실제 일부 원행 · 전체 3,613개를 다운로드로 보존
원행
개인 코드
교육년
원 센트/시간
역할
1
2
7
548
학습
2
3
12
481
학습
3
4
12
721
학습
4
5
11
250
검증
5
6
12
729
시험
6
7
12
500
학습
17
18
11
.
학습
21
24
10
.
학습
전체 학습 평균과 교육 ≤12년/>12년 집단별 학습 평균을 비교합니다. 이 경계는 결과를 보기 전에 고정한 기록 변수 구분입니다. 두 후보는 같은 가용 학습 행을 쓰며, 검증 임금 가용 596행의 MSE로 선택하면 집단 평균이 유일 최소입니다. 시험 722원행 중 임금 가용 604행에서 손실을 평균합니다.
고정 역할과 같은 가용 규약
역할
전체 원행
가용 결과
미가용
학습
2,169
1,817
352
검증
722
596
126
시험
722
604
118
학습만으로 적합 · 최소 검증 점수로 선택 · 소수 반올림
사전 후보
학습 MSE
검증 MSE
검증 가용 수
전체 학습 평균
6.904847
7.684161
596
집단별 학습 평균
6.643615
7.334136
596
같은 보관 시험 표 · 독립 미래 검증 아님 · 소수 반올림
선택 후 적합
시험 가용 수
시험 MSE
원 학습 적합 유지
604
6.056548
학습+검증 재적합
604
6.044630
학습+검증으로 재적합하면 2,891원행, 가용 임금 2,413개입니다. 시험 미가용 118행은 여전히 남고 손실은 미정의입니다. 교육을 알면 그 행의 예측을 낼 수 있다는 사실과 실제 임금으로 오차를 평가할 수 있다는 사실을 혼동하지 않습니다.
두 시험 MSE의 단위는 (1976 USD/시간)²입니다. 둘은 같은 가용 시험 집합의 보관 점수이며 임금이 없는 사람까지의 평균 손실을 식별하지 않습니다. 교육별 예측 차이를 교육 개입의 수익률로 해석하거나 과거 코호트의 오차를 현재 노동시장 일반화 검증이라고 보고하지 않습니다.
왜 전체 시험 분모 722로 나누지 않나요?
118개 실제 결과가 없어 그 손실을 모르기 때문입니다. 가용 손실 합을 722로 나누면 미관측 손실을 0으로 간주한 다른 양입니다. 현재 가용 MSE의 분모는 604입니다.
집단 규칙이 선택되면 관측 교육의 인과성을 확인했나요?
검증 점수는 기록된 집단에 따른 예측 비교입니다. 교란·선택·정보 시점이 남아 있고 교육의 반사실 결과를 식별하지 않습니다.
UCI Iranian Churn의 원 Customer Churn.csv에서 실제 3,150개 기록과 14열을 보존합니다. 원 설명은 이란 통신기업 데이터베이스의 고객별 기록이며, 이탈 외 속성은 처음 9개월 집계, 이탈은 12개월 말 상태이고 그 사이 3개월을 계획 간격으로 설명합니다. 이 문서상 시점을 임의로 모른다고 바꾸지 않되, 새 배치의 실제 가용성·반복 고객·운영 검증까지 보장하는 것으로 넓히지도 않습니다.
불만은 원 Complains의 0=없음, 1=있음이고 결과는 Churn의 0=비이탈, 1=이탈입니다. 제공 파일에는 실제 고객을 추적하는 ID열이 없습니다. 원행 키는 위치를 보존할 뿐 같은 실제 고객 여부나 독립성을 증명하지 않습니다. 이 사례는 고객 기록의 업무적 예이지 식별된 여러 기업의 비교가 아닙니다.
실제 원 코드 일부 · 전체 14열과 3,150행을 보존
원행
불만 코드
실제 이탈
역할
1
0
0
학습
2
0
0
학습
3
0
0
학습
4
0
0
검증
5
0
0
시험
6
0
0
학습
7
0
0
학습
8
0
0
학습
학습 1,890·검증 630·시험 630행은 같은 고정 원행 위치 규칙입니다. 학습의 전체 이탈 비중과 불만 코드별 비중을 확률 예측으로 씁니다. 실제 0·1 결과와 예측 확률의 차이를 제곱한 Brier 손실은 무차원입니다. 이를 금전 비용·분류 정확도·개입 효과로 바꾸어 부르지 않습니다.
pg=∣Tg∣∑i∈TgYiℓi=(Yi−pg)2
식은 가용 학습 집단 T_g가 비어 있지 않을 때입니다. 이 실제 두 학습 집단은 모두 가용합니다.
고정 역할과 같은 가용 규약
역할
전체 원행
가용 결과
미가용
학습
1,890
1,890
0
검증
630
630
0
시험
630
630
0
학습만으로 적합 · 최소 검증 점수로 선택 · 소수 반올림
사전 후보
학습 MSE
검증 MSE
검증 가용 수
전체 학습 평균
0.119790
0.169430
630
집단별 학습 평균
0.074883
0.166556
630
같은 보관 시험 표 · 독립 미래 검증 아님 · 소수 반올림
선택 후 적합
시험 가용 수
시험 MSE
원 학습 적합 유지
630
0.086710
학습+검증 재적합
630
0.086903
다음 표는 결과를 보고 고른 유리한 사례가 아니라 시험의 첫 네 원 위치 5·10·15·20을 그대로 선택한 짝 예입니다. 이미 학습한 전체/집단 확률은 고정하고 같은 기록의 두 손실을 뺍니다. 네 차이가 정확히 같으므로 그 네 위치를 균등 iid 두 번 복원 추출한 16튜플의 평균은 모두 같은 값이며 분산은 정확히 0입니다.
같은 네 고정 시험 기록 · 소수 반올림
원행
전체 비중 손실 A
집단 비중 손실 B
A−B
5
0.01936368
0.00578161
0.01358207
10
0.01936368
0.00578161
0.01358207
15
0.01936368
0.00578161
0.01358207
20
0.01936368
0.00578161
0.01358207
이 정확한 경험 분산 0은 전체 630시험 기록에서 두 손실 차이가 같다는 진술도, 새 고객 위험·다시 학습하는 절차의 불확실성이 0이라는 진술도 아닙니다. 원 학습 표와 선택·재적합은 이 재표집에서 반복하지 않았습니다. 표본 크기 4의 조건부 경험 법칙을 전체 업무 성능 신뢰구간으로 바꾸지 않습니다.
출처: Iranian Churn [Dataset] (2020), UCI Machine Learning Repository, DOI 10.24432/C5JW3Z, CC BY 4.0. 추가 가공은 위치 키·고정 역할·학습 비중·예측 손실·짝 재표집이며 원 14측정열을 바꾸지 않았습니다.
불만 집단이 학습과 시험에 모두 있으면 개체 누수인가요?
범주를 공유하는 것과 같은 고객을 공유하는 것은 다릅니다. 범주 공유는 집단 예측의 의도된 구조이고 실제 개체 겹침은 ID가 없어 확인하지 못합니다.
16튜플의 모든 차이가 양수이면 모집단 유의성을 얻었나요?
고정 네 값에서 정의한 경험 법칙의 사건을 전수한 것입니다. 모집단 표집·대표성·학습 재실행 법칙을 확인하지 않았으므로 자동 p값이나 포함률이 아닙니다.
Country · Korean GDP baselines, validation and refitting
Ask which observations fit, select and test a simple historical baseline for Korean annual real GDP/person. We freshly select eleven actual 2014–2024 values from retained World Bank JSON. Indicator NY.GDP.PCAP.KD uses constant 2015 USD/person, not individual income, disposable income or purchasing-power-parity dollars.
A unit is a Korean calendar year. Predeclare eight training years, 2014–2021; validation year 2022; and test years 2023–2024. A one-year validation and two-year test are substantial limitations. Source positions refer to the retained JSON array, while observation year is separate.
The original was retained on 20 October 2026 and reselected/reviewed on the 27th. All values belong to one retained vintage; they need not equal releases available at the historical prediction time. This is a chronological archive comparison, not a verified real-time 2021 forecasting exercise.
Eleven actual values · constant 2015 USD/person · rounded displays
Observation year
Source position
Role
Actual GDP/person
2014
2621
Training
29,470.673
2015
2620
Training
30,171.791
2016
2619
Training
31,005.407
2017
2618
Training
31,979.903
2018
2617
Training
32,852.889
2019
2616
Training
33,496.311
2020
2615
Training
33,215.930
2021
2614
Training
34,792.940
2022
2613
Validation
35,809.014
2023
2612
Test
36,347.704
2024
2611
Test
37,048.426
Three baselines use training alone. The pooled mean averages eight values; last-value uses 2021; endpoint drift extrapolates from 2021 with the 2014-to-2021 annual change. Drift is not a regression trend fitted to all eight points. No 2022–2024 outcomes enter these fits.
b=7y2021−y2014yt=y2021+b(t−2021)
Fixed roles under the same availability policy
Role
Source rows
Available outcomes
Unavailable
Training
8
8
0
Validation
1
1
0
Test
2
2
0
Training-only fitting · selection by validation minimum · rounded decimals
Predeclared candidate
Training MSE
Validation MSE
Available validation
Pooled training mean
2,856,667.539448
13,584,998.873479
1
Last training value
9,984,015.055943
1,032,406.554448
1
Endpoint training drift
111,149.124286
65,408.223337
1
Same retained test table · not verified future validation · rounded decimals
Fit after selection
Available test
Test MSE
Keep training fit
2
906.696871
Refit train+validation
2
91,729.214209
Drift uniquely minimizes 2022 validation loss. Test MSE is approximately 906.696871 when keeping the original fit and 91,729.214209 after refitting drift with 2022 included, in squared constant 2015 USD/person. Worse refitted performance on these two years is descriptive, not a universal future law.
The refitted endpoint slope uses an eight-year gap. Its training size and function change, so the old validation score does not remain independent validation of that new function. Choosing whether to refit after inspecting these tests would itself use the test for selection.
Are 2023 and 2024 assumed independent observations?
No. MSE averages two retained errors. Independence, stationarity and a sampling law are unestablished; no automatic independent-test confidence interval follows.
May we switch to a baseline that looks better on the test?
Exploration is possible, but that test then becomes selection data. Separate evaluation of the declared procedure from the modified one and obtain separate independent evaluation for new claims.
Person · Wage baseline selection and unavailable test losses
Freshly read 1976 schooling ed76 and original hourly wage wage76 from 3,613 source rows in Card’s public male cohort. Original pay is cents/hour; divide by 100 for 1976 USD/hour. Preserve the raw-wage counts of 3,017 available and 596 unavailable, distinct from trimmed-log counts of 3,010 and 603.
Remainders zero, one and two of (source row minus one) modulo five train; three validates; four tests. Preserve the original person code separately. This positional rule is neither randomized allocation nor representative sampling of present-day new people. Original dots remain in selected CSVs and become model nulls.
Actual excerpts · all 3,613 source rows retained in downloads
Source row
Person code
School years
Original cents/hour
Role
1
2
7
548
Training
2
3
12
481
Training
3
4
12
721
Training
4
5
11
250
Validation
5
6
12
729
Test
6
7
12
500
Training
17
18
11
.
Training
21
24
10
.
Training
Compare pooled training pay with training means by recorded schooling ≤12 or >12 years. This fixed boundary uses a recorded feature, not an intervention. Both candidates use the same available training rows; validation MSE on 596 available wages uniquely selects group means. Test loss averages 604 available wages among 722 source rows.
Fixed roles under the same availability policy
Role
Source rows
Available outcomes
Unavailable
Training
2,169
1,817
352
Validation
722
596
126
Test
722
604
118
Training-only fitting · selection by validation minimum · rounded decimals
Predeclared candidate
Training MSE
Validation MSE
Available validation
Pooled training mean
6.904847
7.684161
596
Group training means
6.643615
7.334136
596
Same retained test table · not verified future validation · rounded decimals
Fit after selection
Available test
Test MSE
Keep training fit
604
6.056548
Refit train+validation
604
6.044630
Refitting uses 2,891 training-plus-validation source rows and 2,413 available wages. The 118 unavailable test wages remain unavailable losses. Known schooling may permit a prediction, which does not supply an observed wage to score it.
Both MSEs use squared 1976 USD/hour and the same available test subset. They do not identify mean loss including missing wages. Group prediction differences are not causal schooling returns, and historical-cohort archive scores do not validate present-day labor-market generalization.
Why not divide test squared losses by all 722 rows?
Outcomes for 118 rows are unavailable. Dividing available loss sum by 722 implicitly assigns them zero loss. The available MSE denominator is 604.
Does selection of group means establish a causal schooling effect?
It compares predictions using recorded groups. Confounding, selection and timing remain; counterfactual outcomes under schooling interventions are not identified.
Business practice · Brier evaluation and paired resampling on anonymous records
Retain all 3,150 records and fourteen columns of UCI Iranian Churn’s original Customer Churn.csv. Documentation describes customer records from an Iranian telecom database: non-churn attributes aggregate the first nine months, while labels describe end-of-month-twelve churn, with a three-month planning gap. Preserve that documented timing without extending it to verified future deployment, customer identity or operational availability.
Original Complains codes are zero for no complaint and one for complaint; Churn is zero for non-churn and one for churn. The supplied file has no customer-tracking ID column. Positional keys establish neither physical identity nor independence. This is a business-practice example using customer records, not a comparison of identified firms.
Actual source codes · preserve all fourteen columns and 3,150 rows
Source row
Complaint code
Observed churn
Role
1
0
0
Training
2
0
0
Training
3
0
0
Training
4
0
0
Validation
5
0
0
Test
6
0
0
Training
7
0
0
Training
8
0
0
Training
A fixed source-position rule assigns 1,890 training, 630 validation and 630 test rows. Probability predictions use pooled or complaint-specific training churn fractions. Brier loss squares the difference between actual binary outcome and predicted probability; it is dimensionless, not monetary cost, accuracy or intervention effect.
pg=∣Tg∣∑i∈TgYiℓi=(Yi−pg)2
The formula requires a nonempty available training group T_g; both actual training groups are available here.
Fixed roles under the same availability policy
Role
Source rows
Available outcomes
Unavailable
Training
1,890
1,890
0
Validation
630
630
0
Test
630
630
0
Training-only fitting · selection by validation minimum · rounded decimals
Predeclared candidate
Training MSE
Validation MSE
Available validation
Pooled training mean
0.119790
0.169430
630
Group training means
0.074883
0.166556
630
Same retained test table · not verified future validation · rounded decimals
Fit after selection
Available test
Test MSE
Keep training fit
630
0.086710
Refit train+validation
630
0.086903
The paired illustration takes the first four test positions, source rows 5, 10, 15 and 20, by order rather than outcome-informed favorable selection. Fix pooled/group training probabilities and subtract losses on the same record. All four differences coincide exactly, so sixteen uniform iid two-draw replacement tuples have the same mean and variance exactly zero.
Four fixed shared test records · rounded decimals
Source row
Pooled loss A
Group loss B
A−B
5
0.01936368
0.00578161
0.01358207
10
0.01936368
0.00578161
0.01358207
15
0.01936368
0.00578161
0.01358207
20
0.01936368
0.00578161
0.01358207
Zero empirical variance establishes neither identical differences throughout all 630 tests nor zero uncertainty for new-customer risk or a retrained procedure. Original training, selection and refitting were not repeated. Do not convert this four-record conditional law into a full-business performance confidence interval.
Credit: Iranian Churn [Dataset] (2020), UCI Machine Learning Repository, DOI 10.24432/C5JW3Z, CC BY 4.0. Added transformations are positional keys, fixed roles, training fractions, losses and paired resampling; original fourteen measurement columns are unchanged.
Is a complaint category shared across roles repeated-unit leakage?
Sharing a feature category differs from sharing a customer. Shared categories are intentional for grouped prediction; actual unit overlap is unverified without IDs.
Do sixteen positive resampled differences establish population significance?
They enumerate an event under the fixed four-value empirical law. Without sampling, representativeness and retraining premises, this is not an automatic population p-value or coverage claim.
48. 다음 읽기 · 표적·의존·경험 법칙48. Further reading · Targets, dependence and empirical laws
MIT The Analytics Edge의 교차검증 영상은 처음의 시험 자료 재사용 경고와 학습 자료 내부 K-fold 구성에 집중해서 보세요. 한 예제의 정확도 향상을 모든 문제에서 교차검증이 개선을 보장한다는 명제로 바꾸지 않습니다. 각 평균이 어떤 행을 학습에 남기고 어떤 행을 평가하는지 표시합니다.
Bengio와 Grandvalet의 2004 JMLR 논문은 지정한 §§2.1–2.3에서 고정 학습 표의 예측오차와 학습 표까지 평균한 기대오차를 구별합니다. 1096쪽의 공분산 구성에서는 fold별 점수를 독립 반복처럼 다루는 표준오차가 왜 추가 정당화를 요구하는지 연결합니다.
Efron의 1979 논문 2절은 관측 값에 각각 1/n의 질량을 주는 경험 법칙과 그 법칙에서 독립 복원 추출하는 과정을 읽는 출발점입니다. 원 관측 법칙을 정확히 안다는 주장과 구별하세요. Stanford의 Efron 소개는 부트스트랩이 그의 연구에서 차지하는 맥락을 짧게 확인하는 읽기입니다.
읽기를 마친 뒤 “무엇을 고정하고 무엇을 평균했는가, 어떤 크기로 다시 학습했는가, 관측하지 못한 값은 어느 분모에 남는가”를 각 사례에 한 문장씩 써 보세요. 이 질문들이 방법 이름보다 먼저 평가의 의미를 정합니다.
For MIT’s Analytics Edge cross-validation video, focus on the opening warning about test reuse and K-fold construction inside training. Do not turn one example’s accuracy improvement into a universal guarantee. Mark which rows each fit retains and evaluates.
Assigned §§2.1–2.3 of Bengio and Grandvalet’s 2004 JMLR paper distinguish prediction error conditional on a fixed training table from expected error averaging training tables. The covariance components on printed page 1096 connect to why treating fold scores as independent replicates needs further justification.
Section two of Efron’s 1979 paper introduces mass 1/n on each observed value and iid replacement draws from that empirical law. Distinguish this from knowing the original observation law exactly. Stanford’s Efron profile provides brief research context for the bootstrap.
After reading, state for each case what is fixed, what is averaged, which training size is used and which denominator retains unavailable observations. These questions define the evaluation before a method’s name does.
자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.
결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.
영상·학자·함께 읽기Videos, thinkers and guided reading
본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.
시험 재사용과 학습 내부 교차검증Test reuse and cross-validation within training
MIT OpenCourseWare · 15.071 · The Analytics Edge · Spring 2017
공식 자막 도입의 시험 정답으로 minbucket을 고르는 문제와 학습 표 내부 K-fold 구성을 읽습니다. 뒤의 cp 패키지 시연이나 예제 정확도 증가를 보편 개선 보장으로 바꾸지 않습니다. 각 적합·선택·평가에 들어간 행을 표시하세요.Assign the opening test-reuse warning and K-fold construction inside training. Exclude the later cp package tutorial and any universal guarantee from one accuracy improvement. Mark which rows fit, select and evaluate.
교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.
보고 읽은 뒤 답하기Respond after watching/reading시험 점수로 모형을 고친 뒤 같은 시험 최솟값은 어떤 값인가요?What is the same test minimum after models were changed using its scores?
생각을 점검하는 해설Check your reasoning
시험을 사용한 선택·탐색의 사후 점수입니다. 손대지 않은 독립 시험 점수와 구별합니다.It is a post-selection/exploration score using the test, distinct from untouched independent evaluation.
Bradley Efron · 경험 재표집의 연구 맥락Bradley Efron · research context for empirical resampling
Stanford University · official institutional profile
소개 문단의 응용·이론 통계 맥락과 bootstrap 연구 관심을 읽습니다. 관측 자료에 조건부인 경험 법칙과 미지의 모집단 법칙에서 무엇이 고정되고 무엇이 무작위인지 비교해 보세요.Read the applied/theoretical statistics paragraph and bootstrap research-interest field. Compare what is fixed and what is random under the observed empirical law and an unknown population law.
보고 읽은 뒤 답하기Respond after watching/reading경험 법칙에서 정확한 재표집이 원 모집단도 정확히 안다는 뜻인가요?Does exact empirical resampling mean the original population law is known exactly?
생각을 점검하는 해설Check your reasoning
아닙니다. 관측 표에 조건부인 경험 법칙의 정확성과 미지 원법칙의 근사는 다른 단계입니다.No. Exact calculation conditional on the observed empirical law differs from approximation to an unknown original law.
교차검증 위험의 학습 크기와 공분산Training-size targets and covariance in cross-validation
JMLR · Bengio and Grandvalet · 2004 · 5:1089–1105
인쇄 1090–1093쪽 §§2.1–2.3의 PE(D), EPE(n), holdout/CV 학습 크기와 1096쪽 공분산 구성을 지정합니다. 보편 불편 분산 추정량의 부재를 모든 추가 모형에서의 추론 불가능으로 넓히지 않습니다.Assign printed pages 1090–1093, §§2.1–2.3: PE(D), EPE(n), holdout/CV training sizes; and covariance components on printed page 1096. Absence of a universal unbiased variance estimator does not imply impossibility under all additional models.
보고 읽은 뒤 답하기Respond after watching/reading크기 N의 K-fold가 언제나 전체 N행 알고리즘 위험에 불편한가요?Is K-fold at size N always unbiased for full-N algorithm risk?
생각을 점검하는 해설Check your reasoning
iid·사전 fold·단위비중 전제에서도 각 적합은 N−N_k행입니다. 기대 점수는 그 작은 크기 위험의 가중 혼합이며 보통 R_N과 다릅니다.Even with iid data, fixed folds and unit weights, fits use N−N_k rows. Expected scores mix those smaller-size risks and generally differ from R_N.
부트스트랩의 원 경험 법칙The bootstrap’s empirical starting law
The Annals of Statistics · Efron · 1979 · 7(1):1–26 · institutional copy
인쇄 1–3쪽, 특히 2절의 각 원 관측에 질량 1/n을 두는 경험 법칙과 독립 복원 추출을 읽습니다. 1977년은 제목의 강연 연도이며 논문 게재연도는 1979년입니다. 여기서는 전 논문 정리나 모든 신뢰구간 방법을 지정하지 않습니다.Assign printed pages 1–3, especially section two’s mass 1/n at each original observation and independent replacement draws. The title’s 1977 lecture year differs from publication in 1979. The whole proof and all confidence-interval methods are not assigned.
보고 읽은 뒤 답하기Respond after watching/reading같은 값 두 개를 한 값으로 지우고 균등 추출해도 같은 법칙인가요?May repeated equal values be deduplicated and then sampled uniformly?
생각을 점검하는 해설Check your reasoning
빈도 질량을 보존하지 않으면 법칙이 바뀝니다. (0,2,2,4)에서 값 2의 원 질량은 1/2입니다.Not without retaining multiplicity weights. In (0,2,2,4), value two has original mass 1/2.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 한 학습 결과의 두 위험Two risks of one training result
Y는 1일 확률 1/4, 0일 확률 3/4인 Bernoulli 법칙입니다. 학습 관측 하나 D로 모든 입력에 h=D를 예측합니다. D=0과 D=1 각각에서 같은 학습 관측의 제곱손실과 독립 새 Y의 조건부 위험을 구하세요.
Y is Bernoulli with probability 1/4 of one. Train on one observation D and predict h=D everywhere. For D=0 and D=1, find reused training squared loss and conditional risk for an independent fresh Y.
풀이와 확인할 이유Solution and explanation
훈련 손실은 두 경우 모두 0입니다. D=0이면 새 위험은 E[Y²]=1/4이고 D=1이면 E[(Y−1)²]=3/4입니다. 학습 손실 0이 새 결과의 위험 0을 뜻하지 않습니다.
Training loss is zero in both cases. Fresh risk is 1/4 when D=0 and 3/4 when D=1. Zero reused loss does not imply zero fresh risk.
2. 학습도 평균하는 위험Risk averaging training as well
D와 새 Y가 서로 독립이고 각각 Bernoulli(1/4)입니다. h=D의 평균 새 제곱위험과 기대 훈련 손실을 구하세요.
D and a fresh Y are independent Bernoulli(1/4). Find expected fresh squared risk and expected training loss for h=D.
풀이와 확인할 이유Solution and explanation
D=0과 1의 조건부 위험 1/4, 3/4을 확률 3/4, 1/4로 평균하면 3/8입니다. 기대 훈련 손실은 0입니다. 이 차이는 같은 결과를 적합·평가에 재사용하는 데서 생깁니다.
Average conditional risks 1/4 and 3/4 with probabilities 3/4 and 1/4 to obtain 3/8. Expected training loss is zero because the fitted observation is reused.
3. 시험 평균의 조건부 기대값Conditional expectation of a test mean
학습 표 D와 독립인 iid 시험 관측 Z₁,…,Z_m을 같은 법칙 P에서 얻습니다. m≥1, h_D는 D만의 함수이고 손실은 적분 가능합니다. 시험 평균이 어떤 위험에 조건부 불편인지 증명하세요.
Let m≥1 iid test observations Z₁,…, Z_m from P be independent of training D. The fit h_D depends only on D and loss is integrable. Prove which risk the mean test loss is conditionally unbiased for.
풀이와 확인할 이유Solution and explanation
D를 고정하면 h_D는 고정 함수이고 각 시험 손실의 기대값은 R_P(h_D)입니다. 선형성으로 m개 평균의 조건부 기대값도 R_P(h_D)입니다. 학습까지 평균하면 E_D R_P(h_D)에 불편하지만 실제 자료에서 이 독립 설계를 확인한 것은 아닙니다.
Conditional on D, the fit is fixed and each test loss has expectation R_P(h_D). Linearity gives the same expectation for their average. Averaging D yields E_D R_P(h_D); this proof does not establish the sampling premise for actual records.
4. 같은 적합을 공유하는 두 손실Two losses sharing one fit
D,Y₁,Y₂는 iid Bernoulli(1/4)이고 h=D입니다. L_j=(Y_j−D)²라 할 때 서로 다른 시험 손실 L₁,L₂의 주변 공분산을 구하세요.
D, Y₁, Y₂ are iid Bernoulli(1/4), h=D and L_j=(Y_j−D)². Find marginal covariance of the two fresh losses.
풀이와 확인할 이유Solution and explanation
D에 조건부인 두 손실은 독립입니다. 조건부 위험은 1/4 또는 3/4, 평균 3/8이므로 그 분산은 (3/4)(−1/8)²+(1/4)(3/8)²=3/64입니다. 총공분산에 따라 이 값이 Cov(L₁,L₂)입니다.
The losses are independent conditional on D. Conditional risk is 1/4 or 3/4 with mean 3/8, so its variance is 3/64. Total covariance gives Cov(L₁, L₂)=3/64.
5. 시험 크기를 늘린 뒤 남는 변동Variation remaining as test size grows
iid 학습 D와 독립 시험 Y₁,…,Y_m은 Bernoulli(1/4), 예측은 h=D입니다. m≥1에서 시험 MSE의 분산을 구하고 m→∞ 극한을 설명하세요.
Training D and independent iid test Y₁,…, Y_m are Bernoulli(1/4), with h=D. Find variance of test MSE for m≥1 and its limit as m grows.
풀이와 확인할 이유Solution and explanation
각 D의 조건부 손실 분산은 (1/4)(3/4)=3/16입니다. 따라서 총분산은 3/(16m)+3/64이며 m=2에서는 9/64입니다. 시험을 무한히 늘려도 학습 적합의 위험 변동 3/64는 남습니다.
Conditional loss variance is 3/16 for either D. Total variance is 3/(16m)+3/64, or 9/64 at m=2. Increasing test size removes test sampling variation while training-risk variation remains.
6. 두 번 학습하는 모든 표All tables for two training draws
Bernoulli(1/4)에서 iid 학습 두 개의 평균을 예측합니다. 순서 표 (0, 0), (0, 1), (1, 0), (1, 1)의 확률, 훈련 MSE, 독립 새 제곱위험을 구하세요.
Predict the mean of two iid Bernoulli(1/4) training draws. For ordered tables (0, 0), (0, 1), (1, 0), (1, 1), give probabilities, training MSEs and independent fresh squared risks.
풀이와 확인할 이유Solution and explanation
확률은 9/16, 3/16, 3/16, 1/16입니다. 훈련 MSE는 0, 1/4, 1/4, 0입니다. 새 위험은 각각 1/4, 1/4, 1/4, 3/4입니다. 같은 예측 1/2을 만드는 두 순서 표의 질량을 모두 보존합니다.
Probabilities are 9/16, 3/16, 3/16, 1/16. Training MSEs are 0, 1/4, 1/4, 0; fresh risks are 1/4, 1/4, 1/4, 3/4. Both ordered tables producing prediction 1/2 retain their mass.
7. 학습 크기별 평균 위험Average risk at a specified training size
모평균 μ, 유한 분산 σ²인 iid 결과에서 n≥1개의 학습 평균으로 독립 새 결과를 예측합니다. 평균 제곱위험을 유도하고 Bernoulli(1/4)의 n=2,3 값을 구하세요.
For iid outcomes with mean μ and finite variance σ², use a mean of n≥1 training observations to predict an independent fresh outcome. Derive squared risk and evaluate n=2,3 for Bernoulli(1/4).
풀이와 확인할 이유Solution and explanation
새 결과와 학습 평균의 차이는 평균 0이고 분산은 σ²+σ²/n입니다. 따라서 평균 위험은 σ²(1+1/n)입니다. σ²=3/16이므로 n=2에서는 9/32, n=3에서는 1/4입니다. 서로 다른 학습 크기는 다른 평가 표적입니다.
The prediction error has mean zero and variance σ²+σ²/n by independence. Thus risk is σ²(1+1/n). With σ²=3/16, risks are 9/32 for n=2 and 1/4 for n=3, different training-size targets.
8. 시험 손실 분산의 모멘트Moments needed for loss variance
제곱손실의 기대값 R(h)=E[(Y−h)²]가 유한하다는 사실만으로 시험 손실 분산도 유한한가요? 분산 분해에 필요한 직접적인 전제를 쓰세요.
Does finite squared risk E[(Y−h)²] alone imply finite variance of squared loss? State a direct premise for the test-loss variance decomposition.
풀이와 확인할 이유Solution and explanation
아닙니다. 손실 L=(Y−h)²의 분산을 유한하게 다루려면 E[L²]=E[(Y−h)^4]<∞ 같은 이차 손실 모멘트가 필요합니다. 결과의 이차 모멘트와 제곱손실의 이차 모멘트는 다릅니다. 이 장의 유한 원자 실험에서는 모두 충족됩니다.
No. A direct condition is E[L²]=E[(Y−h)^4]<∞. An outcome second moment differs from a squared-loss second moment. Finite-atom examples in this chapter satisfy both.
9. 합친 원자와 0질량 원행Coalesced atoms and zero-mass rows
0부터 시작한 원행 (집단,결과,가중치)가 (Z, null, 0), (B, 1, 2), (A, 0, 1), (B, 1, 3)입니다. 양의 같은 원자는 처음 양의 원행 순서로 합칩니다. 원자 번호·확률·원행 대응을 구하세요.
Zero-based original (group, outcome, weight) rows are (Z, null, 0), (B, 1, 2), (A, 0, 1), (B, 1, 3). Coalesce equal positive atoms in first-positive-row order. Give atom indices, probabilities and original-row mappings.
풀이와 확인할 이유Solution and explanation
양의 질량 합은 6입니다. 원자 0은 (B,1), 확률 5/6, 원행 [1,3]입니다. 원자 1은 (A,0), 확률 1/6, 원행 [2]입니다. 원행 [0]의 0질량은 따로 보존합니다. 합친 원자 0은 원행 0이 아닙니다.
Positive weight totals six. Atom zero is (B,1), probability 5/6, original rows [1,3]; atom one is (A,0), probability 1/6, row [2]. Preserve zero-mass row [0] separately: atom zero is not source row zero.
10. 빈 학습의 기준 예측A prior prediction with empty training
Y는 Bernoulli(1/4), 학습 크기는 0이며 사전 선언한 예측은 0입니다. 새 제곱위험과 훈련 MSE의 정의 여부를 구하세요.
Y is Bernoulli(1/4); training size is zero and a predeclared prior predicts zero. Find fresh squared risk and whether training MSE is defined.
풀이와 확인할 이유Solution and explanation
새 위험은 E[Y²]=1/4입니다. 예측은 상수이므로 학습 변동은 0이지만 위험은 0이 아닙니다. 훈련 MSE는 평균할 행이 없어 미정의입니다. 빈 학습을 조용히 삭제하는 대신 사전 규칙을 포함하여 절차를 정의합니다.
Fresh risk is 1/4. The fixed prediction has zero training variation but positive risk. Training MSE is undefined because there are no rows to average; a declared prior defines the procedure without dropping the case.
11. 학습에서 이긴 기준선A baseline winning on training
학습 결과는 (0, 0, 0, 4)입니다. 학습 평균을 예측하는 규칙과 항상 0인 규칙의 훈련 MSE를 구하세요. 고정 시험 결과 (0,0)에서는 어느 규칙이 더 작은가요?
Training outcomes are (0, 0, 0, 4). Compare training MSE for the fitted mean and fixed-zero rule. Which performs better on fixed test outcomes (0,0)?
풀이와 확인할 이유Solution and explanation
학습 평균은 1이고 훈련 MSE는 (1+1+1+9)/4=3입니다. 고정 0의 훈련 MSE는 4입니다. 시험에서는 평균 규칙 MSE가 1, 고정 0은 0입니다. 학습 상수 최적성이 모든 새 표에서의 우월성을 뜻하지 않습니다.
The fitted mean is one with training MSE three; fixed zero has training MSE four. On the test, their MSEs are one and zero. Training optimality among constants does not guarantee superiority on every test table.
12. 시험 평균을 쓰는 oracleAn oracle using the test mean
훈련에서 정한 상수는 1이고 시험 결과는 (2,4)입니다. 훈련 상수의 시험 MSE와 시험 평균을 사후 상수로 쓰는 최소 MSE를 구하고 후자를 기준 예측으로 공정하게 비교할 수 있는지 설명하세요.
A training-fitted constant is one and test outcomes are (2,4). Find its test MSE and the minimum obtained by fitting a constant to test outcomes afterward. Is the latter a fair fitted baseline?
풀이와 확인할 이유Solution and explanation
훈련 상수의 MSE는 (1+9)/2=5입니다. 시험 평균 3의 MSE는 1입니다. 후자는 시험 정답으로 적합한 사후 하한이며 시험 전에 정해진 예측 규칙의 성능이 아닙니다. 손실 차이 4는 (1−3)²와 같습니다.
The trained constant scores five. Fitting test mean three scores one, an outcome-tuned oracle lower bound rather than a rule fitted before testing. The gap is (1−3)²=4.
13. 상수 제곱손실의 완전제곱Complete the square for constant loss
Let m≥1 be an integer and y₁,…, y_m finite fixed values. Define S(c)=m⁻¹Σ(y_i−c)² and ybar=m⁻¹Σy_i. Prove S(c)=S(ybar)+(c−ybar)².
풀이와 확인할 이유Solution and explanation
y_i−c=(y_i−ybar)+(ybar−c)를 제곱하여 더합니다. 교차항은 Σ(y_i−ybar)=0으로 사라지고 마지막 상수항은 m번 더해집니다. m으로 나누면 항등식이며 최소 상수는 유일하게 ybar입니다.
Expand y_i−c=(y_i−ybar)+(ybar−c). The cross term vanishes since centered values sum to zero. The constant term appears m times; dividing gives the identity and unique minimizing constant ybar.
14. 시간 기준선 세 개Three temporal baselines
학습 시점 t=0, 1, 2의 결과는 2,4,8입니다. 평균·마지막 값·첫끝 변화율을 쓰는 drift의 t=3 예측을 구하세요. Drift는 마지막 학습값에서 첫끝 기울기로 외삽합니다.
At training times 0, 1, 2, outcomes are 2,4,8. Find time-three predictions for the mean, last value and endpoint drift extrapolating from the final value with the first-to-last slope.
풀이와 확인할 이유Solution and explanation
평균은 14/3, 마지막 값은 8입니다. 첫끝 기울기는 (8−2)/(2−0)=3이므로 drift는 8+3=11입니다. 이 기울기는 세 점 OLS로 정의한 것이 아닙니다.
Mean predicts 14/3; last value predicts eight. Endpoint slope is (8−2)/2=3, so drift predicts eleven. Its definition is not OLS through all three points.
15. 검증 선택과 새 시험Validation selection and a new test
학습 t=0, 1, 2의 Y=(2, 4, 8), 검증 t=3의 Y=10입니다. 평균·마지막 값·첫끝 drift를 검증 제곱손실로 선택하고 재적합하지 않습니다. 시험 t=4의 Y=8일 때 선택 규칙과 세 규칙 시험 손실을 구하세요.
Train on times 0, 1, 2 with Y=(2, 4, 8); validate at time three with Y=10. Select mean/last/endpoint-drift by validation squared loss without refitting. At test time four, Y=8. Give the selected rule and all three test losses.
풀이와 확인할 이유Solution and explanation
검증 손실은 256/9, 4, 1이므로 drift가 선택됩니다. 시험 예측은 14/3, 8, 14이고 손실은 100/9, 0, 36입니다. 시험에서 마지막 값이 이겼더라도 그 정보로 선택을 바꾸면 처음 절차와 달라집니다.
Validation losses are 256/9, four and one, selecting drift. Test predictions are 14/3, eight and fourteen; losses are 100/9, zero and 36. Switching after observing that last-value wins would change the declared procedure.
16. 선택 후 재적합Refitting after selection
학습 t=0, 1, 2의 Y=(2, 4, 8), 검증 t=3의 Y=10으로 선택된 endpoint drift를 학습+검증 네 행에 다시 적합합니다. t=4,Y=8의 시험 예측과 손실을 구하세요.
Endpoint drift was selected using training times 0, 1, 2 with Y=(2, 4, 8) and validation at three with Y=10. Refit drift on all four rows. Find its prediction and loss at time four with Y=8.
풀이와 확인할 이유Solution and explanation
새 첫끝 기울기는 (10−2)/3=8/3입니다. 예측은 10+8/3=38/3, 손실은 (38/3−8)²=196/9입니다. 재적합 전 손실 36과 다른 함수의 점수이며 예전 검증 손실 1을 새 적합 점수라고 쓰지 않습니다.
New endpoint slope is 8/3. Prediction is 38/3 and loss 196/9. This evaluates a changed function rather than the previous fit; its old validation loss one is not the refitted function’s validation score.
17. 같은 단위의 두 손실Two losses on shared units
같은 두 평가 단위의 손실은 A=(0,4), B=(1,3)입니다. 각 경험 평균, 짝 차이 d=A−B의 평균과 분모 2 분산을 구하세요.
Losses on the same two evaluation units are A=(0,4), B=(1,3). Find empirical means and the mean/divisor-two variance of paired differences d=A−B.
풀이와 확인할 이유Solution and explanation
두 손실 평균은 모두 2입니다. 차이는 (−1,1), 평균 0, 경험 분산 1입니다. 같은 평균 성능이라도 단위별 손실은 같지 않습니다.
Both mean losses equal two. Differences are (−1,1), with mean zero and empirical variance one. Equal average performance does not imply equal unit-level losses.
18. 미관측 가중분모Weighted denominators with missingness
네 원행의 가중치는 (1, 3, 2, 0), 결과는 (0, 2, null, 999)입니다. 양의 가용 결과로 적합한 가중 평균과 그 가용 MSE를 구하세요. 전체 양의 원행 질량의 MSE도 알려지나요?
Four source rows have weights (1, 3, 2, 0) and outcomes (0, 2, null, 999). Find the available weighted fitted mean and MSE. Is MSE over the full positive source mass identified?
풀이와 확인할 이유Solution and explanation
가용 질량 4, 전체 질량 6입니다. 평균은 6/4=3/2이고 가용 MSE는 ((3/2)²+3(1/2)²)/4=3/4입니다. 질량 2의 결과가 없어 전체 MSE 값은 이 자료만으로 식별되지 않습니다. 0가중치의 999는 계산에 기여하지 않습니다.
Available mass is four versus full mass six. Mean is 3/2 and available MSE 3/4. Missing positive mass two leaves full-frame MSE unidentified. The zero-weight value 999 contributes nothing.
19. 단위 변경과 제곱손실Units and squared loss
같은 원시급 예측의 시험 MSE가 40,000 (센트/시간)²입니다. 결과와 예측을 모두 USD/시간으로 바꾸면 MSE는 얼마이며 순위가 바뀌나요?
Wage test MSE is 40,000 squared cents/hour. Convert outcomes and predictions to USD/hour. What is MSE, and does consistent conversion change rankings?
풀이와 확인할 이유Solution and explanation
오차가 1/100배, 제곱손실은 1/10,000배이므로 4 (USD/시간)²입니다. 모든 규칙에 일관되게 환산하면 순위는 그대로입니다. MSE 4를 4 USD/시간이라고 부르지 않습니다.
Errors divide by 100 and squared losses by 10,000, giving four squared USD/hour. Consistent conversion preserves rankings. MSE four is not an amount of four USD/hour.
20. 불리한 순서와 조용한 정렬Unfavorable order and silent sorting
시간 기준선에 원행 순서 t=(2, 0, 1), Y=(8, 2, 4)를 넣었습니다. 엄격 증가 시점을 요구하는 last/drift 도구가 이를 거절하는 이유와 올바른 후속을 설명하세요.
A temporal baseline receives source order t=(2, 0, 1), Y=(8, 2, 4). Explain why a last/drift tool requiring strictly increasing times rejects it and what a valid next step is.
풀이와 확인할 이유Solution and explanation
현재 마지막 원행은 가장 최근 시점이 아니므로 선언한 순서의 시간 규약을 어깁니다. 시간과 결과·원 키를 함께 정렬하는 전처리를 명시해 새 입력을 만들거나 시간 규칙을 다시 정의해야 합니다. 결과 열만 정렬하거나 도구가 몰래 원행 순서를 바꾸면 재현 경로가 달라집니다.
The last source row is not the latest time, violating the declared ordering rule. Explicitly preprocess time, outcome and source keys together or redefine the temporal rule. Sorting outcomes alone or silently changing lineage alters the procedure.
21. 네 선택 세계Four selection worlds
V,T는 서로 독립인 Bernoulli(1/2)입니다. 이미 고정한 두 예측은 0과 1이며 V 하나의 제곱손실로 선택합니다. 네 (V,T) 세계의 선택 규칙·검증 손실·선택 후 시험 손실을 구하세요.
V, T are independent Bernoulli(1/2). Two already fixed predictors are zero and one; choose by squared loss on V alone. For all four (V, T) worlds, give the chosen rule, validation loss and subsequent test loss.
풀이와 확인할 이유Solution and explanation
세계 (0, 0), (0, 1), (1, 0), (1, 1)은 각각 확률 1/4입니다. 선택은 차례로 0,0,1,1이고 검증 손실은 모두 0입니다. 시험 손실은 0,1,1,0이므로 기대 시험 손실은 1/2입니다.
Worlds (0, 0), (0, 1), (1, 0), (1, 1) each have probability 1/4. Chosen predictions are zero, zero, one, one; validation losses are all zero. Test losses 0, 1, 1, 0 average to 1/2.
22. 최솟값의 기대값Expectation of a minimum
V는 Bernoulli(1/2)이고 고정 예측 0,1의 검증 손실은 각각 V²,(V−1)²입니다. E[min 손실]과 min[E 손실]을 비교하고 일반 부등식은 양의 정수 J개 후보의 적분 가능한 손실 L₁,…,L_J에 대해 증명하세요.
V is Bernoulli(1/2); fixed predictors zero and one have validation losses V² and (V−1)². Compare E[min loss] with min[E loss] and prove the general inequality for a finite positive integer J of candidates with integrable losses L₁,…,L_J.
풀이와 확인할 이유Solution and explanation
매 세계에서 맞는 규칙이 있어 전자는 0, 각 고정 규칙의 기대 손실은 1/2이라 후자는 1/2입니다. 일반적으로 min_j L_j≤L_k가 모든 k에 성립하므로 기대값을 취하고 k의 최솟값을 취하면 E[min_j L_j]≤min_j E[L_j]입니다.
The first quantity is zero because some predictor fits every world; the second is 1/2. Generally min_j L_j≤L_k for each k. Taking expectations and then minimizing k gives E[min_j L_j]≤min_j E[L_j].
23. 선택된 검증 점수의 낙관성Optimism of a selected validation score
고정 예측 0,1 중 Bernoulli(1/2) 검증 결과 하나에 맞는 예측을 선택합니다. 선택 검증 손실 기대값은 0이고 독립 동일법칙 시험 손실 기대값은 1/2입니다. 차이 1/2를 계산 오류라고 볼 수 있나요?
Choose between fixed predictions zero and one by matching one Bernoulli(1/2) validation outcome. Expected selected validation loss is zero; independent test loss is 1/2. Is the gap a computational error?
풀이와 확인할 이유Solution and explanation
아닙니다. 검증 결과로 규칙을 골랐으므로 같은 검증 손실은 선택된 함수와 의존합니다. 독립 시험은 검증에 맞춘 결과를 재사용하지 않습니다. 같은 이름의 제곱손실이라도 조건화·선택 단계가 달라 다른 기대값입니다.
No. Selection makes the chosen rule depend on the validation outcome, which its reported loss reuses. An independent test does not reuse that matching outcome. Different conditioning and selection stages yield different expectations.
24. 시험으로 다시 고르기Selecting again using the test
V,T,U는 독립 Bernoulli(1/2)입니다. 예측 0,1을 V로 고른 뒤 시험 T를 보았고, 다시 T에 맞는 예측으로 바꿉니다. 재선택한 T 손실과 새 U 손실의 기대값을 구하세요.
V, T, U are independent Bernoulli(1/2). Select prediction zero or one using V, then inspect test T and switch to match T. Find the reselected loss on T and expected loss on fresh U.
풀이와 확인할 이유Solution and explanation
재선택 후 T 손실은 항상 0입니다. 그러나 U는 T와 독립이므로 새 손실 기대값은 여전히 1/2입니다. T는 이제 선택 자료가 되었으며 0을 손대지 않은 독립 시험 성능이라고 보고할 수 없습니다.
The reselected loss on T is always zero, but expected fresh-U loss remains 1/2 by independence. T has become selection data, so its zero is not untouched independent-test performance.
25. 동률의 전체 집합The entire tie set
고정 예측 0,1을 검증 결과 두 개 (0,1)에 같은 비중으로 평가합니다. 전체 최소 규칙 집합과 최소 MSE를 구하세요. 시험 결과가 1일 때 그 결과로 동률을 풀면 어떤 문제가 있나요?
Evaluate fixed predictors zero and one on equally weighted validation outcomes (0,1). Find the full minimizer set and MSE. What changes if a test outcome of one is used to break the tie?
풀이와 확인할 이유Solution and explanation
두 규칙 모두 MSE 1/2이므로 최소 집합은 {0,1}입니다. 사전 순서의 첫 규칙 같은 시험 비의존 규칙으로 실행 선택을 정할 수 있습니다. 시험 결과로 1을 고르면 시험이 선택에 들어가므로 손대지 않은 시험이라는 역할을 잃습니다.
Both score 1/2, giving minimizers {0,1}. A predeclared first-index rule can choose without test information. Choosing one because the test outcome is one uses the test for selection.
26. 선택 뒤 조건부 불편성Conditional unbiasedness after selection
D는 학습, V는 검증이며 J(D,V)로 후보를 선택합니다. 양의 정수 m에 대해 새 시험 T₁,…,T_m은 (D,V)와 독립인 iid 법칙 P이고 손실은 적분 가능합니다. 선택된 함수의 시험 평균 조건부 기대값을 쓰세요.
D is training and V validation; select a candidate J(D, V). For a positive integer m, fresh tests T₁,…, T_m are iid from P and independent of (D, V), with integrable loss. State the conditional expectation of the chosen fit’s mean test loss.
풀이와 확인할 이유Solution and explanation
D,V에 조건부로 선택된 함수 h_J도 고정되므로 기대 시험 평균은 R_P(h_J(D,V))입니다. 이는 각 고정 후보의 원래 위험이 아니라 선택까지 포함한 함수의 위험입니다. 재적합까지 했다면 재적합 함수로 이 식을 다시 써야 합니다.
Given D, V, the selected fit is fixed, so expected test mean is R_P(h_J(D, V)). This is risk of the selection-dependent function. If refitting occurs, use the refitted function in the same statement.
27. 다시 적합할 때 바뀌는 대상The target changes with refitting
검증으로 학습 규칙 j를 골랐습니다. h_j(D)와 h_j(D∪V)를 같은 함수로 볼 수 있나요? 학습 평균 규칙에서 D=(0,2),V=(8)로 직접 비교하세요.
Validation selects learning rule j. Are h_j(D) and h_j(D∪V) necessarily the same function? Compare a sample-mean rule with D=(0,2) and V=(8).
풀이와 확인할 이유Solution and explanation
D의 평균은 1, 합친 표의 평균은 10/3이므로 다릅니다. 방법 이름이 같아도 학습 입력과 크기가 달라집니다. 예전 함수의 검증 손실을 새 함수의 독립 평가라고 다시 붙이면 안 됩니다.
The means are one and 10/3, so the functions differ. The rule name can remain unchanged while training inputs and size change. The old fit’s validation loss cannot be relabeled as independent evaluation of the new fit.
28. 시험 입력까지 쓴 대체값Imputation using validation or test inputs
학습 입력은 관측 0과 미가용 한 개이고 시험 입력은 100입니다. 관측 입력 평균으로 대체하고 고정 예측 함수 ŷ=x를 씁니다. 학습 입력만 적합한 대체값과 모든 입력을 쓴 대체값 및 미가용 학습 위치의 예측을 구하세요.
Training inputs are observed zero and one missing value; test input is 100. Impute using the mean of observed inputs and predict ŷ=x. Compare training-only and all-input imputation and the prediction at the missing training position.
풀이와 확인할 이유Solution and explanation
학습만의 대체값은 0, 전체 입력의 대체값은 50이고 해당 예측도 0과 50입니다. 시험 정답을 안 보아도 시험 입력을 쓰면 학습 상태가 달라집니다. 명시한 전이적 과제에서는 허용할 수 있지만 학습 입력만 적합한 귀납적 평가라고 부르지 않습니다.
Training-only imputation gives zero; all inputs give 50, so predictions differ likewise. Even without test labels, test inputs change fitted state. This can be a declared transductive task, but is not training-only inductive evaluation.
29. 후보 전체 벡터의 독립Independence of entire candidate vectors
고정된 두 후보의 검증 손실 벡터 V와 시험 손실 벡터 T가 독립인 유한 법칙을 선언했습니다. J는 V만으로 정합니다. E[T_J|V]를 쓰고 “선택 검증 최솟값이 불편”이라는 결론도 따르는지 설명하세요.
Declare a finite law in which full validation-loss vector V and test-loss vector T for two fixed candidates are independent. J depends only on V. State E[T_J|V] and whether this makes the selected validation minimum unbiased.
풀이와 확인할 이유Solution and explanation
조건부 선택 인덱스를 고정하면 E[T_J|V]=Σ_j 1{J=j}E[T_j]입니다. 그러나 min V_j의 기대값은 min E[V_j]보다 작을 수 있으므로 선택 검증 최솟값의 불편성은 따르지 않습니다. 벡터 독립은 시험 평가를 분리하는 전제이지 검증 선택을 지우지 않습니다.
Conditioning fixes J, giving E[T_J|V]=Σ_j 1{J=j}E[T_j]. Yet E[min V_j] can be below min E[V_j]. Vector independence separates testing; it does not remove validation selection.
30. 누수 뒤 새 탐색의 명칭Naming exploration after test reuse
연구자가 시험 점수 다섯 개를 보며 모형을 고친 뒤 가장 낮은 점수를 보고합니다. 모든 산술은 정확합니다. 평가 주장에 필요한 수정과 실제로 추가할 수 있는 평가를 설명하세요.
A researcher inspects five test scores while modifying models and reports the smallest. All arithmetic is correct. Explain the required interpretation and a possible additional evaluation.
풀이와 확인할 이유Solution and explanation
본 시험은 적응적 탐색·선택에 쓰였다고 밝혀야 합니다. 보고한 최솟값을 손대지 않은 독립 시험이라고 부를 수 없습니다. 절차를 고정한 뒤 별도로 확보한 적절한 새 시험이나 선택을 포함한 평가 설계가 필요합니다. 새 시험 자체의 대표성·정보 시점도 별도 전제입니다.
Disclose adaptive exploration and selection using that test. Its minimum is not untouched independent-test performance. Fix the procedure before a suitable new test, or use evaluation that includes selection. Representativeness and information timing still require separate premises.
31. 고정 fold의 두 학습 크기Two training sizes in fixed folds
N=5개 가용 단위비중 원행을 크기 2와 3의 두 fold로 나눕니다. 각 fold를 한 번 검증하며 나머지로 적합합니다. 검증 2행과 3행을 예측할 때 학습 행 수는 각각 얼마인가요?
Split five available unit-weight source rows into folds of sizes two and three. Validate each once using a fit on all remaining rows. What training sizes predict the two-row and three-row validation folds?
풀이와 확인할 이유Solution and explanation
검증 2행은 나머지 3행으로, 검증 3행은 나머지 2행으로 학습합니다. 어느 적합도 전체 5행으로 학습한 최종 적합이 아닙니다. 원행 수와 미관측 제거 후 가용 학습 수가 다를 수 있다는 점도 구별합니다.
The two validation rows use a three-row fit; the three validation rows use a two-row fit. Neither is the final five-row fit. With missingness, usable training counts can also differ from source-row counts.
32. 불균등 fold의 두 평균Two averages with unequal folds
Y=(0, 2, 3, 3, 3), fold=(0, 0, 1, 1, 1)이고 각 학습은 나머지 행의 평균을 예측합니다. 모든 행 비중은 1입니다. 두 fold MSE와 행 평균 CV, 동일 fold 평균 CV를 구하세요.
Let Y=(0, 2, 3, 3, 3), folds=(0, 0, 1, 1, 1), unit weights, and fit the mean of remaining rows. Find each fold MSE, row-weighted CV and equally weighted fold CV.
풀이와 확인할 이유Solution and explanation
fold 0은 평균 3으로 0,2를 예측해 MSE 5입니다. fold 1은 평균 1로 세 값 3을 예측해 MSE 4입니다. 행 평균은 (2×5+3×4)/5=22/5이고 fold 평균은 (5+4)/2=9/2입니다. 가중 대상이 다르므로 둘 다 정의 가능하지만 같지 않습니다.
Fold zero predicts three and scores five. Fold one predicts one and scores four. Row-weighted CV is 22/5; equal-fold CV is 9/2. Both are defined but weight different targets.
33. 전체 자료의 apparent 점수Apparent score of the full-data fit
고정 가용 결과 Y=(0, 2, 3, 3, 3)에 전체평균을 적합하고 같은 다섯 행에 평가합니다. 평균과 MSE를 구하고 행 평균 CV 22/5와 동일한 대상인지 설명하세요.
Fit a pooled mean to fixed outcomes (0, 2, 3, 3, 3) and score the same five rows. Find the mean and MSE; compare its target with row-weighted CV 22/5.
풀이와 확인할 이유Solution and explanation
평균 11/5, 제곱편차 합 34/5이므로 MSE는 34/25입니다. 같은 행을 적합에 쓴 apparent 점수입니다. CV는 각 행을 자기 적합에서 제외한 여러 작은 적합의 손실이므로 같은 절차의 점수가 아닙니다.
Mean is 11/5; squared deviations sum to 34/5, giving MSE 34/25. This reuses fitting rows. CV instead scores rows omitted from several smaller fits, a different procedure.
34. 빈 평가 foldAn empty evaluable fold
두 고정 fold 중 첫째에는 양의 가중 가용 손실이 2개 있고 MSE가 3, 둘째에는 양의 가중 가용 손실이 0개입니다. 전체 가용 행 평균과 두 fold를 각각 1/2로 평균한 MSE의 정의 여부를 설명하세요.
Of two fixed folds, the first has two available positive-weight losses with MSE three; the second has none. Discuss the available-row pooled mean and a mean giving each fold weight 1/2.
풀이와 확인할 이유Solution and explanation
가용 행만 합친 평균은 첫 fold의 3입니다. 둘째 fold 평균은 분모 0으로 미정의이므로 동일 두 fold 평균도 미정의입니다. 둘째를 조용히 빼서 3이라고 한 뒤 동일 fold 평균이라고 부르면 표적을 바꿉니다.
The pooled available-row mean is three. The second fold mean is undefined, so the equal-two-fold mean is also undefined. Dropping it silently and calling three an equal-fold mean changes the target.
35. 겹치는 학습 원행Overlapping training rows
서로 다른 여섯 원행을 크기 2인 fold 셋으로 나눕니다. 각 검증 fold의 여집합을 학습합니다. 같은 적합의 학습 겹침 수와 서로 다른 두 적합의 겹침 수를 구하세요.
Split six distinct source rows into three folds of two. Each training set is its validation fold’s complement. Find overlap size for a training set with itself and between two different training sets.
풀이와 확인할 이유Solution and explanation
각 학습 표는 4행이므로 대각 겹침은 4입니다. 서로 다른 두 검증 fold를 뺀 세 번째 fold의 2행이 공통이므로 비대각은 2입니다. 검증 원행이 겹치지 않는 것과 학습 적합이 정보를 공유하지 않는 것은 다릅니다.
Every training set has four rows, giving diagonal overlap four. Two different sets share the third fold’s two rows. Disjoint validation rows do not imply fits share no training information.
36. 겹친 학습 평균의 공분산Covariance of overlapping training means
여섯 iid 결과는 공통 유한 분산 σ²입니다. 자료와 독립으로 미리 정한 두 학습 행 집합의 평균이 각각 4행을 쓰고 공통 행은 2개입니다. 두 평균의 공분산을 구하세요. 이 계산만으로 모든 fold 손실 공분산도 정해지나요?
Six iid outcomes have common finite variance σ². Two training means use subsets fixed independently of the sampled values, each with four rows and sharing two. Find their covariance. Does this alone determine every fold-loss covariance?
풀이와 확인할 이유Solution and explanation
독립 서로 다른 행의 공분산은 0이고 공통 두 행이 각각 σ²/16을 기여하므로 σ²/8입니다. fold 손실은 새 평가 결과와 제곱·기타 변환도 포함하므로 이 학습 평균 공분산만으로 모든 손실 공분산을 정할 수 없습니다.
Only the two shared rows contribute, each σ²/16, giving σ²/8. Fold losses additionally involve evaluation outcomes and transformations, so this calculation alone does not determine all loss covariances.
37. iid CV의 기대 표적Expected target of iid CV
N≥2개의 iid 가용 단위비중 관측을 자료와 무관하게 미리 정한 2≤K≤N인 K개 비어 있지 않은 fold로 나눕니다. fold 크기는 N_k이고 학습 규칙의 n행 평균 새 위험을 R_n이라 씁니다. 적분 가능 손실의 행 평균 CV 기대값을 구하세요.
Partition N≥2 iid available unit-weight observations into K predeclared nonempty folds independent of data, with 2≤K≤N. Sizes are N_k; R_n is the learning rule’s average fresh risk at training size n. Find expected row-weighted CV for integrable loss.
풀이와 확인할 이유Solution and explanation
각 검증 행은 자기 fold 밖의 N−N_k행 적합과 독립이므로 기대 손실은 R_(N−N_k)입니다. 따라서 기대 CV는 Σ_k(N_k/N)R_(N−N_k)입니다. 균등 fold이면 공통 작은 학습 크기의 위험이며 일반적으로 R_N과 같지 않습니다.
A validation row is independent of its N−N_k training rows, so its expected loss is R_(N−N_k). Summing row weights gives Σ_k(N_k/N)R_(N−N_k). Equal folds target a common smaller training size, generally not R_N.
38. LOO와 전체 적합의 기대값LOO versus the full fit in expectation
세 iid Bernoulli(1/4) 결과에서 평균 학습의 leave-one-out MSE를 씁니다. 두 행 학습 평균 위험은 9/32, 세 행 학습 평균 위험은 1/4입니다. 기대 LOO와 전체 적합의 평균 새 위험을 비교하고 차이를 구하세요.
Use leave-one-out MSE for mean learning on three iid Bernoulli(1/4) outcomes. Two-row mean risk is 9/32 and three-row mean risk 1/4. Compare expected LOO with average fresh risk of the full fit and find the gap.
풀이와 확인할 이유Solution and explanation
각 LOO 적합은 두 행을 쓰므로 기대 LOO는 9/32입니다. 전체 세 행 적합의 평균 새 위험은 1/4=8/32이므로 차이는 1/32입니다. LOO의 기대값을 전체 세 행 적합에 항상 정확히 불편하다고 부를 수 없습니다.
Each LOO fit trains on two rows, so expected LOO is 9/32. Full-fit average fresh risk is 8/32, a gap of 1/32. LOO is not automatically exactly unbiased for the full three-row fit.
39. 원행 불겹침과 개체 불겹침Disjoint rows versus disjoint units
원행 네 개의 unitId는 (A,A,B,B), folds=(0, 1, 0, 1)입니다. 각 fold의 검증 행 번호는 겹치지 않습니다. 학습과 검증에 공유하는 알려진 unitId를 구하고 독립 새 개체 검증인지 설명하세요.
Four source rows have unitIds (A, A, B, B) and folds (0, 1, 0, 1). Validation row indices are disjoint. Find known unit IDs shared by training and validation and assess a new-unit validation claim.
풀이와 확인할 이유Solution and explanation
각 fold의 학습과 검증에 A,B가 모두 있으므로 공유 집합은 {A,B}입니다. 원행 불겹침만으로 새 개체 검증이 아닙니다. 실제 ID가 없으면 겹침을 계산하지 못하며 미확인을 겹침 없음으로 표시해서도 안 됩니다.
Both A and B occur in training and validation for either fold. Disjoint rows do not establish new-unit evaluation. If actual IDs are unavailable, overlap is unknown rather than verified absent.
40. fold 수로 나누는 표준오차Dividing by the number of folds
설명용으로 K≥2개 fold 점수가 모두 같은 무작위 변수 Z이고 Var(Z)=1이라고 가정합니다. 그 평균 분산과 독립이라고 잘못 계산한 분산을 비교하세요.
As an explicit counterexample, K≥2 fold scores all equal one random variable Z with Var(Z)=1. Compare actual variance of their mean with a calculation wrongly assuming independence.
풀이와 확인할 이유Solution and explanation
평균은 그대로 Z여서 분산 1입니다. 독립 가정 계산은 (K×1)/K²=1/K입니다. 의존을 무시하면 이 예에서 변동을 축소합니다. 실제 CV 점수가 반드시 모두 같다는 주장이 아니라 독립 표준오차를 자동 적용할 수 없다는 반례입니다.
The average equals Z and has variance one. The independence calculation gives 1/K. This counterexample shows why independent-replicate standard errors cannot be automatic, without claiming actual fold scores are always identical.
41. 경험 법칙의 평균과 분산Mean and variance of an empirical law
고정한 네 원 위치의 값은 (0, 2, 2, 4)이며 각 위치의 경험 확률은 1/4입니다. 평균과 분모 N=4 분산을 구하세요.
Four fixed source positions contain (0, 2, 2, 4), each with empirical probability 1/4. Find mean and divisor-N variance for N=4.
풀이와 확인할 이유Solution and explanation
평균은 2이고 분산은 (4+0+0+4)/4=2입니다. 두 값 2의 위치가 다르므로 질량이 합쳐져 값 2의 확률은 1/2입니다. 서로 다른 숫자 셋을 균등하게 고르는 법칙은 아닙니다.
Mean is two and variance two. The two positions containing two combine to probability 1/2. This is not a uniform distribution on three distinct numerical values.
42. 16개 복원 튜플의 분포Distribution of sixteen replacement tuples
고정 (0, 2, 2, 4)의 네 원 위치를 각각 확률 1/4로 iid 두 번 복원 추출한 평균을 계산합니다. 가능한 평균별 튜플 수와 정확 질량을 구하세요.
Draw twice iid with replacement, each position having probability 1/4, from four source positions containing (0, 2, 2, 4). Give tuple counts and exact probabilities for each resulting mean.
풀이와 확인할 이유Solution and explanation
16튜플에서 평균 0, 1, 2, 3, 4의 수는 각각 1, 4, 6, 4, 1입니다. 질량은 1/16, 1/4, 3/8, 1/4, 1/16입니다. 평균 2는 (0,4),(4,0) 두 튜플과 두 개의 값 2 위치를 고르는 네 튜플에서 나옵니다.
Counts for means 0, 1, 2, 3, 4 are 1, 4, 6, 4, 1 of sixteen. Probabilities are 1/16, 1/4, 3/8, 1/4, 1/16. Mean two combines two 0/4 tuples and four tuples selecting positions whose values are two.
43. 복원 평균의 두 모멘트Two moments of a replacement mean
고정 (0, 2, 2, 4)에서 각 위치를 같은 확률로 iid 복원 추출하여 m=2 평균을 구합니다. 원 경험 평균 2, 분모 N 분산 2를 사용해 재표집 평균의 기대값과 분산을 구하세요.
Sample m=2 positions iid with replacement from fixed (0, 2, 2, 4). Given empirical mean two and divisor-N variance two, find the resampled mean’s expectation and variance.
풀이와 확인할 이유Solution and explanation
기대값은 2이고 독립 두 추출의 평균 분산은 2/2=1입니다. 원 관측 표에 조건부인 새 추출 법칙의 모멘트입니다. 실제 모집단의 관측 평균 분산을 바로 계산한 것이 아닙니다.
Expectation is two and variance is 2/2=1. These are moments of the newly declared resampling law conditional on the observed frame, not automatically the original population sampling variance.
44. 12개 비복원 튜플Twelve without-replacement tuples
고정 (0, 2, 2, 4)의 네 원 위치에서 서로 다른 위치 두 개를 균등 순서 비복원 추출합니다. 평균 분포·기대값·분산을 구하세요.
Select two distinct source positions in uniform ordered sampling without replacement from (0, 2, 2, 4). Find the mean distribution, expectation and variance.
풀이와 확인할 이유Solution and explanation
총 12튜플이며 평균 1,2,3이 각각 네 번 나와 질량 1/3씩입니다. 기대값은 2, 분산은 (1+0+1)/3=2/3입니다. 서로 다른 위치의 값이 모두 2인 것은 허용되므로 원 위치를 값과 혼동하지 않습니다.
There are twelve tuples; means one, two and three occur four times each. Expectation is two and variance 2/3. Distinct positions can have equal value two, so values do not replace position identities.
45. 유한 프레임 보정The finite-frame correction
N≥2개의 알려진 유한 값은 평균 ybar, 분모 N 분산 v입니다. 균등 비복원 m개 평균에서 1≤m≤N일 때 분산이 v(N−m)/(m(N−1))임을 설명하고 m=N을 해석하세요.
N≥2 known finite values have mean ybar and divisor-N variance v. Explain variance v(N−m)/(m(N−1)) for a uniform without-replacement mean, 1≤m≤N, and interpret m=N.
풀이와 확인할 이유Solution and explanation
서로 다른 추출의 공분산은 −v/(N−1)입니다. m개 합의 분산을 m²으로 나누면 v/m−(m−1)v/(m(N−1))가 되어 제시식입니다. 전부 뽑으면 고정 프레임 평균이므로 분산 0입니다. 미지 모집단이나 원래 미관측 값에 대한 확실성이 생긴 것은 아닙니다.
Different draws have covariance −v/(N−1). Divide variance of their sum by m² to obtain the formula. At m=N the fixed frame mean is known and variance zero; this establishes no certainty about an unknown population or unavailable source values.
46. 경계 포함 꼬리An inclusive boundary tail
고정 (0, 2, 2, 4)에서 iid 복원 두 번의 평균 분포는 0, 1, 2, 3, 4에 질량 1/16, 1/4, 3/8, 1/4, 1/16입니다. 평균 ≥3과 >3의 확률을 구하세요.
For two iid replacement draws from (0, 2, 2, 4), means 0, 1, 2, 3, 4 have masses 1/16, 1/4, 3/8, 1/4, 1/16. Find probabilities of mean ≥3 and >3.
풀이와 확인할 이유Solution and explanation
≥3은 1/4+1/16=5/16이고 >3은 1/16입니다. 평균 3의 질량 1/4를 포함하는지가 차이입니다. 화면 반올림이나 유한 모의실험의 0회로 이 정확 경계를 바꾸지 않습니다.
The inclusive tail is 5/16; the strict tail is 1/16. The difference is mass 1/4 at exactly three. Display rounding and zero simulated occurrences do not change this exact boundary.
47. 짝을 보존한 재표집Resampling that preserves pairs
두 고정 평가 단위의 손실 A=(0,4), B=(1,3)입니다. 같은 위치의 차이를 만든 뒤 두 위치를 각각 확률 1/2로 iid 두 번 복원 추출한 차이 평균의 기대값과 분산을 구하세요. 두 손실 열을 독립 추출했다면 분산은 얼마인가요?
Two fixed evaluation units have losses A=(0,4), B=(1,3). Form same-position differences and draw twice iid with replacement, assigning probability 1/2 to each position. Find mean-difference expectation and variance. What variance results from independently resampling the two columns?
풀이와 확인할 이유Solution and explanation
짝 차이는 (−1,1)이므로 기대값 0, 분산 1/2입니다. 두 열을 독립 추출하면 경험 분산 A=4, B=1을 각각 2로 나누어 더해 5/2입니다. 원 짝 공분산 2를 제거한 다른 법칙이며 항상 독립 추출 쪽이 더 크다는 보편 주장은 아닙니다.
Paired differences (−1,1) give expectation zero and variance 1/2. Independently resampling columns gives 4/2+1/2=5/2. It removes empirical pair covariance two and changes the law; independent resampling is not universally more variable.
48. 관측된 0과 미지 법칙Observed zeros and an unknown law
가정 원법칙은 Bernoulli(1/4)이고 iid 관측 N=4가 모두 0인 경우를 봅니다. 그 관측 사건 확률, 해당 경험 법칙의 부트스트랩 평균 분산, 원 표본평균의 진짜 표집 분산을 구하세요.
An assumed original law is Bernoulli(1/4); four iid observations are all zero. Find this event’s probability, bootstrap-mean variance under the resulting empirical law, and true original sample-mean variance.
풀이와 확인할 이유Solution and explanation
사건 확률은 (3/4)^4=81/256입니다. 경험 법칙은 0에 집중해 부트스트랩 평균 분산 0입니다. 원 표본평균 분산은 (3/16)/4=3/64입니다. 경험 계산은 정확하지만 두 법칙이 다르므로 모집단 평균의 확실성을 뜻하지 않습니다.
Event probability is 81/256. The empirical law is concentrated at zero, so its bootstrap-mean variance is zero. Original sample-mean variance is 3/64. Exact empirical computation does not make the two laws identical.
49. 미관측 위치와 한 값 경계Missing positions and a singleton boundary
원 값은 (null, 7, null)이며 가용 위치를 균등 추출하는 경험 법칙을 새로 정의합니다. 복원 m=3과 비복원 m=1의 평균·분산, 전체 원 프레임 평균의 정의 여부를 쓰세요.
Original values are (null, 7, null). Define a new empirical law uniformly on available positions. Give means and variances for replacement m=3 and without-replacement m=1, and discuss the full original-frame mean.
풀이와 확인할 이유Solution and explanation
가용 위치 하나의 값이 7이므로 두 평균은 항상 7, 분산은 0입니다. 원행 0,2는 미가용으로 남고 전체 원 프레임 평균은 알려지지 않습니다. 가용 프레임의 N=1에서는 보정식 0/0 대신 직접 분산 0 경계를 씁니다.
Both means always equal seven with variance zero. Original positions zero and two remain unavailable, so the full original-frame mean is unknown. At available N=1, use the direct zero-variance boundary instead of a 0/0 correction.
50. 어떤 절차를 반복했는가Which procedure was repeated?
원 학습 표로 적합·선택한 두 함수를 고정하고 100개의 시험 손실 쌍만 재표집했습니다. 이 분포가 원 학습 표 재추출·전처리·선택·재적합까지 반복하는 알고리즘 비교 분포와 같은가요?
Two fits selected from original training are fixed, and only their 100 paired test losses are resampled. Is this the distribution obtained by resampling training and repeating preprocessing, selection and fitting?
풀이와 확인할 이유Solution and explanation
일반적으로 다릅니다. 현재는 두 함수와 관측 시험 경험 법칙을 고정한 채 평가 위치만 반복합니다. 전체 알고리즘의 학습·선택 변동은 재현하지 않습니다. 어떤 층을 반복했는지 명시해야 분산이나 구간의 표적을 해석할 수 있습니다.
Generally not. The two functions and observed test empirical law remain fixed while evaluation positions repeat. Training and selection variation of the whole algorithm are absent; the repeated layer determines the variance or interval’s target.
51. 국가 자료의 역할 수Roles in the country data
한국 GDP 2014–2024년 11개 중 2014–2021년을 학습, 2022년을 검증, 2023–2024년을 시험으로 고정합니다. 역할별 수와 관측 단위·손실 단위를 쓰세요. 원 결과 단위는 2015년 고정 USD/명입니다.
For eleven Korean GDP observations in 2014–2024, train on 2014–2021, validate on 2022 and test on 2023–2024. Give role counts, observation unit and squared-loss unit. Outcomes are constant 2015 USD/person.
풀이와 확인할 이유Solution and explanation
학습 8, 검증 1, 시험 2입니다. 관측은 한국의 한 달력연도이며 제곱손실 단위는 (2015년 고정 USD/명)²입니다. 국가 11개를 표집하거나 여러 국가의 평균 성능을 평가한 것이 아닙니다.
Counts are eight, one and two. Each observation is a Korean calendar year and squared-loss units are squared constant 2015 USD/person. This is not a sample of eleven countries.
52. 현재 빈티지와 당시 정보Current vintage versus historical information
2026년에 보관한 GDP 표에서 2014–2021년 값으로 적합하고 2023–2024년을 시험했습니다. 이 사실만으로 2021년 당시의 실시간 예측을 재현했나요? 필요한 구분을 쓰세요.
A GDP table retained in 2026 supplies 2014–2021 training values and 2023–2024 tests. Does this alone reproduce a real-time forecast made in 2021? State the needed distinction.
풀이와 확인할 이유Solution and explanation
아닙니다. 보관 빈티지의 과거 값은 나중에 개정되었을 수 있습니다. 관측연도와 자료공표·개정 빈티지 및 예측 정보시점을 구별해야 합니다. 현재 비교는 한 보관 빈티지의 시간 역할 평가이며 당시 알려진 표를 확인한 것은 아닙니다.
No. Earlier observations in the retained vintage may contain later revisions. Distinguish observation years, publication/revision vintage and prediction information time. The exercise is chronological evaluation within one retained vintage.
53. 원행 역할과 가용 임금Source roles and available wages
개인 원행 수는 학습 2,169, 검증 722, 시험 722이고 가용 원시급은 각각 1,817, 596, 604입니다. 전체·가용·미가용 합과 역할별 미가용 수를 구하세요.
Person source counts are 2,169 training, 722 validation and 722 test; available raw wages are 1,817, 596 and 604. Find total, available and unavailable counts and missing counts by role.
풀이와 확인할 이유Solution and explanation
전체 3,613, 가용 3,017, 미가용 596입니다. 역할별 미가용은 352, 126, 118이며 합은 596입니다. 시험 손실의 가용분모는 604이지 전체 시험 원행 722나 전체 가용 3,017이 아닙니다.
Totals are 3,613 source rows, 3,017 available and 596 unavailable wages. Missing counts are 352, 126, 118. Available test-loss denominator is 604, not 722 or 3,017.
54. 원임금과 절단 로그임금Raw versus trimmed log wages
같은 Card 자료에서 원시급은 3,017개, 지정 절단 로그임금은 3,010개가 가용합니다. 원시급 예측 문제에 로그 변수의 603 미가용 수를 대신 써도 되나요? 원시급 미가용 수와 측정 단위를 쓰세요.
In the same Card file, 3,017 raw wages and 3,010 designated trimmed log wages are available. Can a raw-wage task substitute the log variable’s 603 missing values? Give raw-wage missing count and measurement unit.
풀이와 확인할 이유Solution and explanation
안 됩니다. 원 변수별 가용성이 다릅니다. 원시급 미가용은 3,613−3,017=596개이며 원 단위는 1976년 센트/시간입니다. 예측 전에 100으로 나누면 1976 USD/시간이고 이를 로그 결과라고 부르지 않습니다.
No: availability belongs to the chosen variable. Raw wages have 596 missing observations and original units of 1976 cents/hour, converted to 1976 USD/hour by division by 100. This does not create a log outcome.
55. 고정 나머지 분할A deterministic remainder split
원행 번호는 1부터 시작하고 r=(번호−1) mod 5입니다. r=0,1,2는 학습,3은 검증,4는 시험입니다. 원행 1, 4, 5, 10의 역할과 실제 무작위 분할인지 쓰세요.
Source rows start at one; r=(row−1) mod five. Remainders zero, one, two train; three validates; four tests. Give roles for rows 1, 4, 5, 10 and whether the procedure is actually randomized.
풀이와 확인할 이유Solution and explanation
원행 1은 학습,4는 검증,5와10은 시험입니다. 원행 위치의 결정적 규칙이며 난수나 무작위 배정이 없습니다. 원행 번호가 실제 개인·고객의 고유 실체 키나 독립성 증거가 되는 것도 아닙니다.
Row one trains; row four validates; rows five and ten test. This is deterministic, with no random allocation. Source positions also establish neither unique physical identities nor independence.
56. 고객 확률 기준선의 단위Units of a customer probability baseline
고정 학습 고객 100기록 중 이탈 20개라 전체 이탈 비중 p=1/5로 예측합니다. 새 평가 기록의 실제 Y=1과 Y=0에서 Brier 손실 (Y−p)²를 구하세요. 이 숫자의 화폐 단위가 있나요?
Among 100 fixed training customer records, twenty churn; predict pooled fraction p=1/5. Find Brier losses (Y−p)² for evaluation outcomes Y=1 and Y=0. Do they have currency units?
풀이와 확인할 이유Solution and explanation
Y=1이면 16/25, Y=0이면 1/25입니다. 0·1 결과와 확률의 차이를 제곱한 무차원 손실이며 실제 금전손실은 아닙니다. 금전 비용을 평가하려면 FP/FN 비용 등 별도 과제와 단위를 정의해야 합니다.
Losses are 16/25 and 1/25. These are dimensionless squared differences between binary outcomes and probabilities, not monetary losses. A cost evaluation needs a separately declared task and units.
57. 검증 뒤 합친 학습 분모Training denominators after refitting
개인 학습 원행 2,169 중 임금 1,817개, 검증 원행 722 중 임금 596개가 가용합니다. 두 역할을 합쳐 재적합하면 전체·가용·미가용 학습 수는 얼마인가요? 시험 원행도 합치나요?
Person training has 2,169 rows and 1,817 available wages; validation has 722 rows and 596 available wages. After refitting on both roles, find total, available and missing training counts. Are test rows included?
풀이와 확인할 이유Solution and explanation
합친 원행은 2,891, 가용 임금은 2,413, 미가용은 478입니다. 시험 원행 722개는 합치지 않습니다. 재적합에서는 검증을 학습으로 사용하므로 예전 검증 점수와 새 함수의 시험 점수를 구별합니다.
Combined counts are 2,891 source rows, 2,413 available wages and 478 unavailable. The 722 test rows remain excluded. Validation enters fitting, so its old score and the refitted function’s test score have different roles.
58. 같은 네 차이의 재표집Resampling four identical differences
보관 고객 시험의 처음 네 원 위치를 순서로 고른 결과, 고정 두 함수의 짝 손실 차이가 모두 c=11656096/858197025입니다. 네 위치에서 iid 두 번 복원 추출한 차이 평균의 기대값·분산과 그 한계를 쓰세요.
The first four retained customer test positions, selected by order, all have paired loss difference c=11656096/858197025 for two fixed fits. Draw twice iid with replacement from these positions. Give mean/variance and the scope limit.
풀이와 확인할 이유Solution and explanation
모든 추출 평균은 c이므로 기대값 c, 분산 0입니다. 이는 이 네 고정 차이의 경험 법칙에 대한 정확 계산입니다. 전체 630시험 기록의 차이가 같거나 새 고객 성능·전체 학습 절차의 불확실성이 0이라고 결론낼 수 없습니다.
Every resampled mean equals c, giving expectation c and variance zero. This is exact for those four fixed empirical differences, not proof that all 630 test differences agree or that new-customer or full-procedure uncertainty vanishes.
59. 그래프의 실제값과 계산값Observed versus computed chart values
GDP 그래프에 원 연도별 관측과 학습만으로 계산한 drift 예측을 함께 표시합니다. 두 선을 모두 실제 관측이라고 부르면 왜 잘못인가요? 시험 결과를 이용하지 않는 예측의 정보 경계를 설명하세요.
A GDP chart shows original annual observations and training-only endpoint-drift predictions. Why is it wrong to call both observed series? Describe the prediction’s information boundary.
풀이와 확인할 이유Solution and explanation
원 GDP는 출처에서 제공한 관측 지표이고 drift는 정한 학습 표와 수식의 계산값입니다. 예측 계산에는 시험 결과를 넣지 않습니다. 두 선의 차이가 보관 시험 손실을 만들지만 미래의 구조적 법칙이나 정책효과를 추정했다고 해석하지 않습니다.
GDP observations come from the source; drift predictions are computed from a declared training table and formula without test outcomes. Their differences define archived test losses, not an identified structural law or policy effect.
60. 재현 일치와 검증 주장Reproduction agreement and validation claims
Python 정확 분수와 R의 수치 계산이 같은 원행·역할·가용분모·예측·MSE에 일치했습니다. 이 사실만으로 무작위 대표표집·새 고객 일반화·인과효과 중 무엇이 증명되나요? 필요한 보고 내용을 쓰세요.
Python exact fractions and R numerical calculations agree on source rows, roles, available denominators, predictions and MSE. Does agreement prove representative random sampling, new-customer generalization or causality? State what should be reported.
풀이와 확인할 이유Solution and explanation
그 셋 중 어느 것도 계산 일치만으로 증명되지 않습니다. 계산은 선언한 입력과 규칙의 재현성을 지지합니다. 관측 단위·자료 선택·정보 시점·역할 배정·손실·동률·재적합·가용분모와 실제 배치·인과 주장에 남는 전제를 함께 보고해야 합니다.
None follows from numerical agreement alone. It supports reproduction of the declared inputs and rules. Report units, source selection, information timing, roles, loss, ties, refitting, available denominators and remaining deployment or causal premises.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.