일반화 경계·VC·Rademacher의 역할Generalization bounds, VC and Rademacher complexity
동전의 오류에서 실제 자료의 선택·평가와 유령 표본까지From coin-toss errors to actual-data selection, evaluation and ghost samples
실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions
기초Foundations
답안을 외우는 일과 새 문제를 푸는 일Memorizing answers and answering new questions
친구가 동전을 네 번 던진 결과를 보여 주고, 다음 결과를 맞히는 규칙을 고르라고 했다고 합시다. 종이에 적힌 네 번이 모두 앞면이면 “언제나 앞면”이라는 규칙은 그 종이에서 한 번도 틀리지 않습니다. 그러나 공정한 동전을 앞으로 던질 때도 늘 앞면이 나오는 것은 아닙니다. 이미 본 답을 잘 설명하는 일과 아직 오지 않은 답을 잘 맞히는 일을 구별해야 합니다.
머신러닝에서 일반화는 학습에 쓴 관측을 넘어, 우리가 목표로 삼은 새 관측에서 잘 작동하는 성질을 말합니다. 어느 새 관측인지 먼저 정해야 합니다. 같은 모집단에서 독립적으로 오는 다음 고객인지, 다른 나라의 내년 고객인지에 따라 질문과 필요한 가정이 달라집니다. 이 장의 첫 정리들은 같은 분포에서 독립적으로 온 관측을 다룹니다. 마지막 실제 사례에서는 이 조건을 자료와 대조합니다.
처음부터 복잡한 신경망을 쓰지 않고 몇 개의 규칙으로 시작합니다. 모든 가능한 동전 결과와 부호를 직접 세면, 어떤 양은 정확한 분수로 알 수 있고 어떤 양은 여전히 모른다는 사실이 보입니다. 그다음 확률 부등식, VC 차원, Rademacher 복잡도가 각각 무엇을 해결하는지 차근차근 연결합니다.
Suppose a friend shows four coin flips and asks you to choose a prediction rule. If all four are heads, “always heads” makes no mistake on that sheet. It does not make every future flip of a fair coin heads. Explaining observed answers and answering unseen questions are different tasks.
Generalization concerns performance beyond the observations used for learning, on a specified target of new observations. State that target first. The next independent customer from the same population differs from next year’s customers in a different country. Our first theorems concern independent observations from a common distribution. The empirical cases later examine whether their records justify that setup.
We begin with a few rules rather than a large neural network. Counting every possible coin outcome and sign vector reveals which quantities can be exact fractions and which remain unknown. Concentration inequalities, VC dimension and Rademacher complexity then address distinct parts of the question.
학부Undergraduate
관측·규칙·손실·두 위험Observation, rule, loss and two risks
관측 하나를 Z=(X,Y)라고 씁니다. X는 예측에 쓸 정보, Y는 나중에 비교할 정답입니다. 규칙 h는 X를 받아 예측을 내놓습니다. 분류에서 틀리면 손실 1, 맞으면 손실 0으로 정할 수 있습니다. 관측 네 개에서 1,0,1,0의 손실을 받았다면 경험위험은 2/4=1/2입니다. “위험”은 여기서 평균 손실을 부르는 수학 용어이지 사회적 위험이나 사고 가능성을 모두 뜻하지 않습니다.
경험위험은 이미 가진 표의 평균입니다. 모집단 위험 R은 목표 분포 P에서 새 관측을 뽑았을 때의 기대손실입니다. 분류의 0–1 손실에서는 그 규칙이 틀릴 확률과 같습니다. 실제 자료에서는 P를 보통 모르므로 R도 직접 알 수 없습니다. 시험 자료의 평균은 또 하나의 경험위험이며, 그 자체가 모집단 전체를 보는 창은 아닙니다.
규칙을 고정한 상태에서 자료 S를 다시 뽑으면 경험위험은 변하지만 R은 고정입니다. 자료를 본 뒤 고른 규칙을 쓰면 규칙도 S의 함수가 됩니다. 표에서 얻은 숫자가 어느 무작위성에 대한 양인지 구별하는 것이 이 장의 첫 번째 약속입니다.
Write an observation as Z=(X,Y). X is available information and Y is the outcome used for assessment. A rule h maps X to a prediction. For classification, loss can be one for an error and zero for a correct answer. Losses 1,0,1,0 on four observations have empirical risk one half. “Risk” here means expected or average loss; it is not a complete social assessment.
Empirical risk averages an observed table. Population risk averages a new observation under the target law P. With 0–1 loss it equals that rule’s error probability. Usually P and therefore R are unknown. A test-set average is another empirical risk, not direct access to the entire population.
For a fixed rule, resampling S changes empirical risk while population risk stays fixed. A rule selected after seeing S also becomes a function of S. Identify the randomness behind each quantity before interpreting a reported number.
학부Undergraduate
네 번의 동전으로 선택의 낙관성을 계산하기Calculate selection optimism with four flips
정확히 아는 구성 모형으로 돌아갑니다. 정답 Y는 독립적인 공정 동전이고, 후보는 “언제나 0”과 “언제나 1” 두 개뿐입니다. 관측 네 개에서 적게 틀린 후보를 고르면 다수 정답을 예측하게 됩니다. 동률에서는 먼저 적은 “언제나 0”을 고릅니다. 두 규칙 모두 새 동전에서는 틀릴 확률이 1/2입니다.
정답 1의 개수를 K라고 합시다. 순서를 구별하면 가능한 표는 16개이며 각각 확률 1/16입니다. 선택한 규칙의 훈련 손실은 K와 4−K 중 작은 쪽을 4로 나눈 값입니다. 아래는 16개 표를 개수별로 묶은 완전한 계산입니다.
평균적으로 훈련 점수는 실제 위험보다 3/16만큼 작습니다. 누군가 결과를 조작했기 때문이 아닙니다. 같은 네 개의 정답으로 후보를 고르고 다시 채점했기 때문입니다. 이 예제의 1/2은 공정한 동전이라는 모형에서 아는 값이며, 실제 자료의 시험 오차를 그냥 1/2이라고 정한 것이 아닙니다.
Return to a completely specified teaching model: outcomes are independent fair coins, and the only candidates always predict zero or always predict one. Selecting the candidate with fewer errors predicts the observed majority. An exact tie chooses the first candidate, always zero. Both candidates still have error probability one half on a new fair coin.
Let K count positive outcomes. There are sixteen ordered samples, each with probability one sixteenth. Selected training error is the smaller of K and 4−K, divided by four. The table groups every possible sample by K.
Training error is optimistic by three sixteenths on average. No result was fabricated: the same four labels selected and assessed the rule. We know population risk here from the stipulated fair-coin law, not by declaring that every real test error must be one half.
학부Undergraduate
기대값이 맞아도 선택 뒤에는 달라진다Unbiased averages and a selected rule
자료와 무관하게 미리 고정한 규칙 h를 생각합시다. 각 관측의 주변분포가 같은 P이면, 기대값의 선형성으로 경험위험의 기대값은 R(h)입니다. 이 등식 자체에는 관측끼리의 독립성이 필요하지 않습니다. 독립성은 평균이 그 기대값 근처에 얼마나 자주 놓이는지 제어할 때 중요해집니다.
ESRS(h)=n1i=1∑nEℓh(Zi)=RP(h)for fixed h and common marginals P
그런데 앞 절의 선택 규칙은 h가 아니라 ĥ(S)입니다. 가장 작은 훈련 평균을 찾아 고른 뒤에도 위 등식을 그대로 쓸 수는 없습니다. 고정 규칙의 평균에 대한 등식을, 그 평균을 작게 만드는 자료 의존 규칙에 옮긴 것이기 때문입니다. 두 후보짜리 예제에서도 실제 차이가 3/16으로 나타났습니다.
해결책은 둘입니다. 하나는 학습과 선택이 끝난 규칙을 독립적인 새 표에 채점하는 것입니다. 다른 하나는 후보 전체에 동시에 성립하는 경계를 만드는 것입니다. 어느 후보가 선택되어도 경계 안에 들어오게 하는 균일 제어가 다음 부분의 핵심입니다.
Consider a rule h fixed independently of the observations. If every observation has the same marginal law P, linearity of expectation makes empirical risk unbiased for R(h). Independence between observations is not needed for this equality alone. It matters when controlling how tightly the average concentrates around that expectation.
ESRS(h)=n1i=1∑nEℓh(Zi)=RP(h)for fixed h and common marginals P
The preceding selector is instead h-hat(S). We cannot automatically reuse the fixed-rule equality after choosing the smallest empirical mean. The choice depends on the observations that made that mean small. Even two candidates produced an exact optimism of three sixteenths.
One response assesses the completed selection on a fresh independent sample. Another constructs a bound valid simultaneously for every candidate, so whichever candidate wins remains covered. This uniform control is the next part’s central idea.
학부Undergraduate
독립과 같은 분포는 다른 조건이다Independence and a common distribution are different
독립은 한 관측을 아는 것이 다른 관측의 확률을 바꾸지 않는다는 조건입니다. 같은 분포는 각 관측의 확률 법칙이 같다는 조건입니다. IID는 두 조건을 함께 말합니다. 한 관측 안의 X와 Y가 독립이어야 한다는 뜻은 아닙니다. 오히려 예측은 X와 Y의 관계를 이용합니다.
공정 동전을 단 한 번 던지고 그 결과를 100행에 복사해 보세요. 각 행의 주변분포는 공정 동전이지만 행들은 독립이 아닙니다. 항상 0을 예측한 평균 손실은 여전히 0 또는 1이고 분산은 1/4입니다. 독립 동전 100개의 평균 손실 분산 1/400과 다릅니다. 같은 기대값이라고 같은 집중 정도를 가지지는 않습니다.
반대로 서로 독립이어도 첫 50개는 이탈률 10%, 다음 50개는 40%인 환경에서 오면 같은 분포가 아닙니다. 그 평균은 두 환경이 섞인 기대값을 추정합니다. 미래 환경의 위험을 자동으로 뜻하지는 않습니다. 가족·국가·기간의 묶음과 분포 이동을 먼저 살펴야 하는 이유가 여기에 있습니다.
Independence says that knowing one observation does not change another’s probabilities. A common distribution says that observations share the same law. IID requires both. It does not require X and Y within an observation to be independent; their relationship is what prediction uses.
Flip one fair coin and copy its result into one hundred rows. Every row has the fair-coin marginal law, but the rows are dependent. An always-zero rule’s average loss remains either zero or one, with variance one quarter. One hundred independent flips instead give variance one four-hundredth. Equal expectations do not imply equal concentration.
Conversely, independent observations can come from different laws: churn probability ten percent for the first fifty and forty percent for the next fifty. Their average estimates a mixture of expectations, not automatically the future environment’s risk. This is why groups, periods and distribution changes must be examined before applying a theorem.
학부Undergraduate
유계 손실은 표에서 본 최댓값과 다르다A loss bound is not the observed maximum
0–1 오분류 손실은 정의상 어떤 가능한 관측에서도 0과 1 사이입니다. 따라서 길이 B=1인 구간에 든다는 가정이 정답을 보기 전부터 성립합니다. 이는 현재 표에서 가장 큰 손실을 찾아 B라고 부르는 것과 다릅니다. 지금 두 행에서 모두 맞았더라도, 앞으로 틀릴 수 있는 0–1 손실의 범위를 0으로 바꾸지 않습니다.
임금 예측의 절대오차나 제곱오차는 가능한 임금·예측 범위를 제한하지 않으면 일반적으로 유계가 아닙니다. 확률 예측의 로그손실도 정답 확률이 0에 가까워질수록 커집니다. 관측 표에서 작았다는 이유로 B=1인 같은 정리를 붙일 수 없습니다. 다른 모멘트·꼬리 조건을 쓰거나, 예측·손실을 사전에 제한하는 별도 절차가 필요합니다.
모든 가능한 관측에 대해 한 함수의 손실이 항상 같은 상수라면 그 함수의 모집단 평균과 표본 평균은 언제나 같습니다. 이때 구간 길이 B=0을 말할 수 있습니다. “지금 관측에서 우연히 모두 같은 손실”과 “가능한 모든 관측에서 같은 함수값”은 다른 주장입니다. 실습의 B=0은 후자의 수학적 조건을 입력한 경우입니다.
A classification error indicator is always between zero and one by definition, for every possible observation. Its range length B=1 is known before inspecting labels. This differs from calling the largest observed loss a global bound. Two correct observations do not make a potentially fallible classifier’s loss range zero.
Absolute and squared wage-prediction errors are generally unbounded without restrictions on possible wages and predictions. Log loss also diverges as the probability assigned to the realized outcome approaches zero. Small observed losses do not justify attaching the same B=1 theorem. Different tail or moment assumptions, or a separately defined bounded prediction/loss procedure, are needed.
If a function’s loss is constant over every possible observation, its population and sample means always coincide; its range length is zero. Equal losses by coincidence in the current sample do not prove a globally constant function. Entering B=0 in the lab states the stronger mathematical condition.
학부Undergraduate
실제 자료의 0점은 어떤 0점인가What does zero error mean in actual data?
이 장에서는 국가·개인·기업 자료를 그대로 다시 읽어 작은 다섯 규칙을 비교합니다. 입력 두 개를 각각 0/1로 정의하고, 항상 0, 항상 1, 첫 입력, 둘째 입력, 둘 중 하나라도 1이라는 다섯 함수를 미리 적습니다. 이 작은 후보군은 복잡도와 평가의 계산을 끝까지 따라가기 위한 것입니다. 각 분야의 최고의 예측기를 만들었다는 뜻이 아닙니다.
실제 원자료와 분석 가능한 역할별 행 수
사례
보존한 원행
완전 분석
훈련
검증
시험
국가
48개 지표 기록 →16국가
16
9
3
4
개인
3613개 원행
3017
1802
617
598
기업
3150개 원행
3150
1890
630
630
국가 사례는 2023년 소득·물가의 보존된 개정값으로 2024년 성장률이 2% 이상인지 구분합니다. 세 검증 국가에서는 물가 입력 규칙이 오분류 0회를 얻어 선택되지만, 별도 네 시험 국가에서는 2회를 틀립니다. 0/3과 2/4는 각각 정확한 관측 평균입니다. 앞 숫자가 실제 모집단 위험 0의 증명도, 뒤 숫자가 알려진 세계 전체 위험 1/2의 증명도 아닙니다.
개인의 필요한 값이 없는 596행도 원표에는 남아 있습니다. 기업의 원자료 범주 코드 10도 임의로 지우지 않습니다. 역할은 정답 점수를 비교하기 전에 고정한 ID 해시 순서로 나누지만, 해시는 국가 간 공통 충격이나 설문 표집 의존성을 없애지 않습니다. 실제 관측 점수와 가정을 붙인 확률 경계를 나란히 읽겠습니다.
We reopen national, individual and company observations and compare five small rules. Two inputs become binary features, giving always zero, always one, feature zero, feature one and their OR. This deliberately small class lets us follow complexity and assessment calculations completely. It is not a claim to have found each field’s best predictor.
Actual source records and eligible role counts
Case
Preserved source records
Complete frame
Train
Validation
Test
Country
48 indicator records →16 countries
16
9
3
4
Person
3613
3017
1802
617
598
Company
3150
3150
1890
630
630
The country case uses retained revised 2023 income and inflation to classify 2024 growth of at least two percent. The inflation rule makes no error on three validation countries and is selected, yet misses two of four separate test countries. Zero thirds and two fourths are exact observed means. Neither proves zero population risk or a known worldwide risk of one half.
All 596 individual records missing a required value remain in the source table. Native company category code ten is retained too. ID hashes fix roles before comparing scores, but hashing does not remove common national shocks or survey dependence. We will read actual scores alongside conditional probability bounds.
학부Undergraduate
실습: 정답을 바꾸어도 선택은 어디에 남는가Lab: where does selection remain when labels change?
후보 a,b에 대해 다음 손실을 입력합니다. 훈련 두 행에서는 두 후보가 각각 한 번씩 틀립니다. 검증 v에서는 a가 맞고 b가 틀립니다. 시험 t에서는 반대입니다. 선택 역할을 validation으로 두면 a가 선택되어야 합니다. 시험 점수가 더 좋아 보인다는 이유로 내부 선택이 b로 바뀌어서는 안 됩니다.
구성한 작은 손실 표
ID
역할
a 손실
b 손실
t1
train
0
1
t2
train
1
0
v
validation
0
1
t
test
1
0
m
validation
0
결측
m은 b의 손실이 없으므로 두 후보의 공통 검증 분모에서 함께 제외합니다. 따라서 두 검증 평균은 0과 1입니다. a만 m을 더해 채점하면 서로 다른 행의 평균을 비교한 것이 됩니다. 역할을 train으로 바꾸면 훈련 동률 규칙에 따라 먼저 적은 a가 선택됩니다. 검증 행을 모두 빼고 validation 선택을 유지하면 선택은 미정의이며 훈련으로 몰래 바뀌지 않습니다.
시험 t의 손실을 [0,1]로 바꾸고 다시 계산하세요. a라는 선택은 그대로이고 관측 시험 점수만 달라져야 합니다. 이 동작은 시험이 코드의 선택 경로에 쓰이지 않음을 확인합니다. 실제 시험 관측이 독립적이고 적절한 모집단에서 왔다는 통계적 가정까지 증명하지는 않습니다. 다음 부분에서는 그 가정 아래 어느 정도의 경계가 나오는지 계산합니다.
Enter the following losses for candidates a and b. Each makes one error on the two training observations. On validation v, a is correct and b is wrong; test t reverses the result. With validation selection, a must be chosen. A better displayed test score must not silently change the engine’s choice to b.
Constructed loss table
ID
Role
a loss
b loss
t1
train
0
1
t2
train
1
0
v
validation
0
1
t
test
1
0
m
validation
0
missing
Row m lacks b’s loss and is excluded from both candidates’ common validation frame. Their means are therefore zero and one. Counting m only for a compares different observations. Training selection chooses the first candidate a at an exact tie. Removing every validation observation while retaining validation selection leaves selection undefined; there is no silent training fallback.
Change test t’s losses to [0,1]. Selection must stay a while observed test performance changes. This checks that test outcomes do not enter the coded selection path. It does not prove that actual test observations are independent or drawn from the intended population. Next we calculate bounds conditional on those statistical assumptions.
대학원Graduate
95%라는 말의 주어는 무엇인가What is random in a 95 percent statement?
경계는 “이 표에서 미래 오차가 반드시 이 값”이라는 선언이 아닙니다. 같은 확률 법칙으로 훈련 표 S를 다시 뽑는 실험을 생각합니다. 그 표들 가운데 적어도 95%에서는, 모든 후보의 모집단 평균과 표본 평균 차이가 정해진 폭 안에 있다는 명제입니다. 자료를 얻은 뒤 위험에 주관적 확률 95%를 붙인 사후분포와는 다른 해석입니다.
PS∼Pn{∀h∈H:∣RP(h)−RS(h)∣≤ε}≥1−δ
여기서 1−δ는 반복해서 뽑는 표에 대한 확률입니다. 오차율이 5%라는 뜻도, 개별 예측 95%가 맞는다는 뜻도 아닙니다. 오차율 자체는 후보의 위험 R이고, δ는 정리가 허용하는 경계 실패 확률의 상한입니다. 두 수를 같은 “정확도”라는 말로 묶으면 해석이 뒤섞입니다.
이 절부터 후보군은 미리 고정된 유한 집합이고, 관측은 같은 P에서 독립적으로 온다고 가정합니다. 실제 자료가 이를 충족하는지는 계산과 별개의 질문입니다. 먼저 어떤 가정으로 어느 확률 명제를 얻는지 증명한 뒤, 적용 범위를 판단하겠습니다.
A bound is not a declaration that this table fixes future error. Imagine repeatedly drawing training tables S from the same probability law. In at least 95 percent of these tables, every candidate’s population and sample means lie within a stated width. This differs from placing a 95 percent posterior probability on risk after observing the data.
PS∼Pn{∀h∈H:∣RP(h)−RS(h)∣≤ε}≥1−δ
The probability concerns resampled tables. It does not mean an error rate of five percent or 95 percent correct individual predictions. Risk R describes error; delta limits the probability that a theorem’s bound fails. Calling both “accuracy” obscures the distinction.
We now assume a fixed finite candidate class and independent observations from a common law P. Whether actual observations justify this setup is a separate question. First derive the conditional probability statement, then examine its application.
대학원Graduate
합집합 경계는 독립을 요구하지 않는다The union bound does not require independent events
서로 다른 다섯 후보 가운데 하나라도 경계를 벗어나는 사건을 생각합시다. 각 후보가 벗어날 확률이 α 이하라면, 하나라도 벗어날 확률은 5α 이하입니다. 실패 사건이 서로 겹치더라도 성립합니다. 같은 표에서 평가한 후보들이므로 그 사건들은 대개 독립이 아니지만, 이 단계에는 독립성을 요구하지 않습니다.
이 부등식은 중복을 세어도 합이 더 커질 뿐이라는 사실에서 나옵니다. 상한이 1을 넘으면 확률의 상한 1로 잘라 쓸 수 있습니다. 다섯 사건의 확률이 각각 0.3 이하일 때 1.5라는 계산은 실제 확률 150%를 뜻하지 않고, 이 계산만으로 1보다 좋은 정보를 얻지 못했다는 뜻입니다.
중요한 M은 결과를 보고 남긴 후보 수가 아니라, 동시에 제어하려는 미리 정한 후보군의 크기입니다. 여러 규칙을 시험하고 마지막 하나만 보고한 뒤 M=1이라고 쓰면 선택의 기회를 지워 버립니다. 다음 절의 독립성은 관측들의 평균을 제어하는 데 쓰이고, 여기의 합집합 단계와 구분됩니다.
Consider failure by at least one of five candidates. If each failure probability is at most alpha, the probability of any failure is at most five alpha. The events may overlap and usually are dependent because candidates share a sample. This step requires no independence between failure events.
Counting overlaps can only enlarge the sum. A bound above one may be clipped at one. Five bounds of 0.3 give 1.5 before clipping, meaning no improvement on the trivial probability bound, not a probability of 150 percent.
M counts the fixed class controlled simultaneously, not merely the winner reported afterward. Trying many rules and then using M=1 erases selection opportunities. Independence of observations enters the next averaging argument, not this union step.
대학원Graduate
유계 변수의 지수평균을 제어하기Control an exponential average of a bounded variable
평균에서 멀리 벗어나는 양수 사건을 제어하려면 큰 값에 더 큰 무게를 주는 지수함수가 유용합니다. X가 길이 B인 구간 [a,b]에 든다고 합시다. 평균을 뺀 V=X−E X의 구간도 길이는 B입니다. 평균이 0이 되었어도 구간 길이를 2B로 바꾸지 않습니다. Hoeffding 보조정리는 다음 지수평균 상한을 줍니다.
EeλV≤eλ2B2/8,V=X−EX,b−a=B
상수 1/8이 어디서 오는지 보겠습니다. ψ(λ)=log E exp(λV)로 두면 ψ(0)=ψ′(0)=0입니다. X가 유계이므로 미분과 기대값을 교환할 수 있고, ψ″(λ)는 exp(λV)로 기울인 확률 법칙에서의 X 분산입니다. 그 법칙도 여전히 [a,b] 안에만 질량을 둡니다.
구간의 중점 m=(a+b)/2에 대해 Var(X)는 E(X−m)² 이하이고, 이는 B²/4 이하입니다. 따라서 ψ″(λ)≤B²/4입니다. 양수 λ까지 두 번 적분하면 ψ(λ)≤λ²B²/8을 얻습니다. 음수 방향은 −V에 같은 논리를 적용합니다. 이 작은 보조정리가 표본 크기의 지수적 효과를 만드는 재료입니다.
An exponential function gives larger weight to unusually large positive values. Let X lie in [a,b], of length B. Centering gives V=X−E X, whose interval still has length B, not 2B. Hoeffding’s lemma bounds its exponential average.
EeλV≤eλ2B2/8,V=X−EX,b−a=B
To see the constant, define psi(lambda)=log E exp(lambda V). Its value and first derivative at zero vanish. Boundedness permits differentiation under expectation. Its second derivative is the variance of X under the exponentially tilted law, which still places all mass inside [a,b].
At midpoint m, variance is at most E(X−m) squared, itself at most B squared over four. Thus psi’s second derivative is at most B squared over four. Integrating twice up to positive lambda gives lambda squared B squared over eight. Apply the same argument to −V for the other direction. This lemma supplies the exponential dependence on sample size.
대학원Graduate
Hoeffding 부등식을 직접 유도하기Derive Hoeffding’s inequality step by step
고정한 후보의 손실 X₁,…,Xₙ이 서로 독립이고 각각 길이 B인 구간에 든다고 합시다. Vᵢ=Xᵢ−E Xᵢ입니다. 합이 nε 이상인 사건에서 exp(λΣVᵢ)는 exp(λnε) 이상입니다. 양수 무작위변수에 대한 Markov 부등식과 앞 절의 보조정리를 적용합니다.
기대값을 곱으로 나누는 등호에서 관측의 독립성을 썼습니다. λ는 합 ΣVᵢ에 곱한 값입니다. B>0, ε>0에서 지수를 최소화하면 λ=4ε/B²입니다. 대입하면 한쪽 꼬리는 exp(−2nε²/B²) 이하이고, 반대쪽에도 같은 계산이 성립합니다.
P{∣X−EX∣>ε}≤2exp(−B22nε2)
서로 다른 주변분포라도 독립성과 공통 범위 상한으로 평균 기대값 주변의 집중을 얻을 수 있습니다. 다만 이를 하나의 목표 모집단 위험 R(h) 주변의 경계로 읽으려면 각 손실의 기대값이 같은 목표 R(h)인 조건이 필요합니다. 이 장의 기본 학습 정리는 같은 P에서의 IID 관측을 사용해 그 연결을 명확히 합니다.
For a fixed candidate, let independent losses X1 through Xn each have range length at most B, and center them as Vi=Xi−E Xi. On the event that their sum exceeds n epsilon, its exponential exceeds exp(lambda n epsilon). Markov’s inequality and Hoeffding’s lemma give the following chain.
Independence enters when the exponential expectation factors. Lambda multiplies the sum, not its average. For positive B and epsilon, minimizing the exponent sets lambda to 4 epsilon divided by B squared. Substitution gives the one-sided exponential tail; apply the same calculation to the opposite direction.
P{∣X−EX∣>ε}≤2exp(−B22nε2)
Independent observations with differing marginals also concentrate around their average expectation. Interpreting that center as one target population risk requires the corresponding common-expectation condition. Our basic learning theorem uses IID observations from a common P to make this connection explicit.
대학원Graduate
고른 후보에도 쓸 수 있는 균일 경계A uniform bound remains valid for a selected candidate
후보가 M개이고 표본을 보기 전에 함수 집합 H를 고정했다고 합시다. 각 후보의 양쪽 꼬리에 앞 부등식을 쓰고, 합집합 경계로 후보 전체를 합칩니다. 이것이 표를 보고 고른 후보를 다루는 핵심입니다. 경계가 모든 후보에 한꺼번에 성립하는 표에서는, 어느 후보를 골랐든 그 후보도 포함됩니다.
P{h∈Hsup∣R(h)−R(h)∣>ε}≤2Me−2nε2/B2
오른쪽을 δ로 놓고 ε에 대해 풀면 다음 폭이 나옵니다. 같은 P에서 독립적으로 얻은 n개 관측, 유계 손실, 미리 고정된 유한 후보군이라는 조건을 함께 붙여 읽으세요.
예를 들어 n=100, M=5, δ=0.05, B=1이면 폭은 약 0.162762입니다. 경험 오차 0.10에 더하면 상한은 약 0.262762입니다. 폭은 16.2762퍼센트포인트이지 오차 0.10을 16.2762%만큼 상대적으로 늘리는 수가 아닙니다. 이 숫자는 가정 아래의 충분한 상한이며 실제 차이가 반드시 그만큼 크다는 예측은 아닙니다.
Fix a class H of M functions before seeing the sample. Apply the two-sided inequality to each candidate, then take a union over the class. On every sample where all candidates satisfy the bound, any candidate selected from that class also satisfies it.
P{h∈Hsup∣R(h)−R(h)∣>ε}≤2Me−2nε2/B2
Set the right side to delta and solve for epsilon. Read the resulting width together with its assumptions: independent observations from a common P, bounded losses and a fixed finite class.
For n=100, M=5, delta=0.05 and B=1, the width is about 0.162762. Adding it to empirical error 0.10 gives an upper bound near 0.262762. This is 16.2762 percentage points, not a 16.2762 percent relative increase in 0.10. It is a sufficient conditional upper bound, not a prediction that the actual gap is this large.
대학원Graduate
경험위험 최소화의 2ε와 근사오차ERM’s two-epsilon bound and approximation error
ĥ는 H 안에서 경험위험을 최소화하고, h*는 같은 H 안에서 모집단 위험을 최소화한다고 합시다. 유한하고 비어 있지 않은 H에서는 두 최소값이 존재합니다. 모든 후보의 일반화 차이가 ε 이하인 사건에서, 먼저 ĥ를 모집단에서 표본으로 옮기고, 표본 최소화 성질을 쓰고, 다시 h*를 모집단으로 옮깁니다.
R(h)≤R(h)+ε≤R(h∗)+ε≤R(h∗)+2ε
두 번의 이동 때문에 2ε가 나옵니다. 최적화가 정확하지 않아 경험위험 최소값보다 η 이상은 크지 않은 규칙을 얻었다면, 상한은 2ε+η로 바뀝니다. η는 계산 절차의 최적화 오차이고, ε는 표본의 일반화 제어입니다. 하나를 줄였다고 다른 하나가 자동으로 줄어들지는 않습니다.
여기서 비교 대상은 H 안의 가장 좋은 규칙입니다. H가 문제에 맞지 않으면 그 규칙도 오차가 클 수 있습니다. 가장 좋은 가능한 베이즈 규칙과 H 사이의 근사오차는 따로 남습니다. 공정 동전 예제처럼 어떤 규칙도 새 정답의 잡음을 없애지 못하는 경우도 있습니다. 일반화 경계가 있다고 총오류가 0으로 간다는 결론은 나오지 않습니다.
Let h-hat minimize empirical risk within H and h-star minimize population risk within the same H. Both minima exist for a nonempty finite class. On a uniform-gap event, move the selected rule from population to sample risk, use empirical minimization, then move h-star back to population risk.
R(h)≤R(h)+ε≤R(h∗)+ε≤R(h∗)+2ε
The two moves produce two epsilon. An approximate optimizer whose empirical risk is within eta of the minimum gives excess risk at most two epsilon plus eta. Eta concerns numerical optimization, while epsilon controls sampling-related generalization; reducing one does not automatically reduce the other.
The comparator is the best rule inside H. A poorly chosen class may have a poor best rule. Approximation error relative to an unrestricted Bayes rule remains separate. Fair-coin noise also cannot be removed by a better predictor. A generalization bound does not imply that total error tends to zero.
대학원Graduate
훈련·검증·시험에서 무엇을 고정하는가What must be fixed at each stage?
훈련 자료로 만든 M개 후보를 별도의 검증 표에서 비교할 수도 있습니다. 이때 훈련 표에 조건을 걸면 후보들은 고정되어 있습니다. 검증 표가 그 훈련·선택 과정과 독립이고 같은 목표 분포에서 왔다면, 조건부로 M개 후보에 대한 검증 균일 경계를 적용할 수 있습니다. 훈련 입력으로 전처리한 전체 절차도 후보의 일부로 포함합니다.
최종 시험을 보기 전에 훈련·검증으로 규칙 하나를 확정했다면, 독립적인 새 시험 표에는 고정된 한 규칙의 M=1 경계를 쓸 수 있습니다. 시험 점수를 보고 바꾼 규칙에는 같은 논리가 바로 적용되지 않습니다. 다만 사전에 정한 전체 유한 후보군에 대한 M개 균일 경계는 별도의 가정 아래 여전히 다른 명제입니다. “시험을 봤으니 모든 수학이 무효”와 “선택을 지워도 된다”는 두 극단을 피하세요.
또한 여러 경계를 동시에 말할 때는 실패 확률 예산을 구분합니다. 훈련·검증·시험의 세 행에 각각 δ=0.05를 쓴 표는 각 행별 명제입니다. 세 경계가 동시에 성립할 확률을 적어도 0.95로 만들려면, 예를 들어 각각 δ=0.05/3을 배정하고 합집합 경계를 적용합니다. 이 장의 실제 자료 출력은 같은 δ를 각 행에 넣은 개별 조건부 계산이며, 전체 화면의 공동 95% 보장을 뜻하지 않습니다.
Candidates fitted on training data may be compared on a separate validation sample. Conditional on training, those M complete fitted procedures are fixed. If validation is independent and comes from the target law, apply a conditional uniform bound over them. Include fitted preprocessing in each procedure.
A single rule finalized using training and validation before a fresh independent test sample permits an M=1 held-out bound. A rule changed after inspecting test scores does not inherit that argument. A prespecified finite-class uniform test bound is a different possible statement under its own conditions. Neither “all mathematics is invalid after inspection” nor “selection can be erased” is correct.
Allocate failure probability when reporting several guarantees jointly. Delta=0.05 separately for training, validation and test gives three individual statements. To guarantee all three with probability at least 0.95, one possible allocation is delta=0.05/3 each, followed by a union bound. Our empirical output reuses the same delta for individual conditional calculations; it does not promise simultaneous 95 percent coverage for the entire screen.
학부 심화 · 선택Advanced undergraduate · optional
실습: 표본 수·후보 수·확률 예산Lab: sample size, class size and failure budget
집중 경계 실습에서 n=100, 후보 수 M=5, δ=1/20, 범위 길이 B=1을 입력합니다. 균일 폭은 약 0.162762입니다. 별도로 차이 ε=1/5를 넣으면, 그 차이를 넘는 사건의 Hoeffding 합집합 상한은 10exp(−8), 약 0.003355입니다. 폭을 구할 때 정한 δ와, 사용자가 별도로 넣은 ε에서 계산한 꼬리 상한은 서로 다른 출력입니다.
n을 25와 400으로 바꿔 보세요. M,δ,B가 같으면 폭은 각각 두 배와 절반입니다. 후보를 5개에서 1개로 줄이면 작아지지만, 자료를 보고 고른 뒤 숫자만 1로 고치는 실험은 정당하지 않습니다. δ를 더 작게 하면 더 높은 신뢰 수준을 요구하므로 폭은 커집니다.
n=0에서는 관측 평균에 대한 경계가 미정의로 남아야 합니다. B=0은 관측 손실이 우연히 모두 같다는 뜻이 아니라, 전역적으로 상수인 손실 함수를 가정한 계산입니다. 작은 B를 넣어 화면 소수가 0에 가까워져도 상징식과 비영 표시를 함께 확인하세요. 실제 자료의 알려지지 않은 모집단 위험을 이 실습이 만들어 주는 것은 아닙니다.
Enter n=100, class size M=5, delta=1/20 and range length B=1. The uniform width is about 0.162762. Separately entering gap epsilon=1/5 gives tail bound 10 exp(−8), approximately 0.003355. The delta used to invert a width and the tail bound at a separately specified gap are distinct outputs.
Change n to 25 and 400. With M, delta and B fixed, width doubles and halves respectively. Reducing five candidates to one also narrows it, but changing M to one after data-based selection is not justified. A smaller delta requests a stronger probability guarantee and therefore widens the bound.
At n=0, the average-risk bound remains undefined. B=0 assumes a globally constant loss, not coincidentally equal observed losses. For very small B, inspect symbolic expressions and nonzero display flags even when decimal output is tiny. The lab does not manufacture an unknown population risk from real observations.
학부 심화 · 선택Advanced undergraduate · optional
무한한 규칙도 작은 표에서는 몇 모양인가How many patterns can an infinite class make?
실수 문턱 t를 움직여 hₜ(x)=1{x≥t}로 분류하는 규칙을 생각합시다. t는 실수이므로 규칙은 무한히 많습니다. 그러나 서로 다른 입력 1,2,3 세 개에서 나타나는 예측은 네 모양뿐입니다. 문턱이 1 이하이면 111, 1보다 크고 2 이하이면 011, 2보다 크고 3 이하이면 001, 3보다 크면 000입니다.
서로 다른 세 입력의 문턱 예측
문턱 위치
x=1
x=2
x=3
t≤1
1
1
1
1<t≤2
0
1
1
2<t≤3
0
0
1
3<t
0
0
0
서로 다른 입력 n개를 순서대로 놓으면 문턱이 지나갈 수 있는 틈은 양 끝을 포함해 n+1개입니다. 같은 틈 안에서 t가 달라져도 그 표의 예측은 같습니다. 무한 집합의 크기 자체를 로그에 넣는 대신, 유한 관측에서 구별할 수 있는 행동을 세려는 생각이 여기서 시작됩니다.
이것은 현재 표에 후보 수 n+1을 넣으면 앞 정리의 M을 언제나 바꿀 수 있다는 뜻은 아닙니다. 표에서 구별되는 수는 표에 의존합니다. 전체 모집단에서의 위험과 연결하려면 새로운 논증이 필요하고, 뒤의 대칭화·Rademacher 도구가 그 역할을 합니다.
Consider the threshold rule h_t(x)=1{x at least t}, with real t. There are infinitely many thresholds, yet only four prediction patterns on distinct inputs one, two and three. Moving t within the same gap does not change the observed pattern.
Threshold predictions on three distinct inputs
Threshold location
x=1
x=2
x=3
t≤1
1
1
1
1<t≤2
0
1
1
2<t≤3
0
0
1
3<t
0
0
0
For n ordered distinct inputs, there are n+1 gaps including the two ends. Counting distinguishable behavior on finite observations offers a way to study an infinite class without inserting its infinite cardinality into a logarithm.
This does not permit automatically replacing M in the preceding theorem by a sample-dependent count. Connecting a restriction on observed points to population risk requires additional reasoning. Symmetrization and Rademacher complexity will provide that bridge.
대학원Graduate
모든 정답 배치를 실현한다는 뜻What does it mean to shatter a set?
세 점의 정답은 000부터 111까지 8가지로 붙일 수 있습니다. 후보군 H가 이 모든 배치를 실현할 수 있다면 그 세 점을 분쇄한다고 말합니다. 한 규칙이 한 번에 서로 모순되는 정답을 모두 맞힌다는 뜻은 아닙니다. 정답 배치마다 H 안에서 다른 규칙을 고를 수 있다는 뜻입니다.
HA={(h(x1),…,h(xm)):h∈H},A shattered⟺∣HA∣=2m
문턱 규칙은 한 점을 분쇄할 수 있습니다. 그 점보다 문턱을 아래에 놓으면 1, 위에 놓으면 0이기 때문입니다. 하지만 순서가 x₁<x₂인 두 점에서는 정답 10을 만들 수 없습니다. 왼쪽이 문턱 이상이면 오른쪽도 이상입니다. 어느 두 점을 고르더라도 같은 이유가 성립하므로 문턱 후보군의 VC 차원은 정확히 1입니다.
VC 차원은 분쇄 가능한 점 수의 최댓값입니다. 존재하는 한 집합은 하한 증거가 되고, 더 큰 모든 집합이 불가능하다는 논증은 상한 증거가 됩니다. 이 두 종류의 증거를 구별해야 합니다. 단순히 현재 표를 못 맞춘 정답 배치 하나를 찾았다고 전역 차원이 정해지는 것은 아닙니다.
Three points have eight possible binary labelings. A class shatters them when every labeling can be represented. A single rule need not fit contradictory labelings simultaneously; a different member of H may be used for each labeling.
HA={(h(x1),…,h(xm)):h∈H},A shattered⟺∣HA∣=2m
Thresholds shatter one point: put the threshold below it for label one and above it for zero. For any two ordered distinct points, labeling 10 is impossible. If the left point reaches the threshold, the right does too. The argument holds for every pair, proving that the threshold class has VC dimension exactly one.
VC dimension is the largest size of a shattered set. A particular shattered set proves a lower bound; ruling out every larger set proves an upper bound. Failure on one observed arrangement alone does not establish a global dimension.
대학원Graduate
특수한 점 배치의 실패를 일반화하지 않기Do not infer a global limit from one arrangement
평면의 직선 분류기를 보겠습니다. 한 직선 위에 놓인 세 입력에서, 양 끝만 1이고 가운데가 0인 배치는 하나의 직선 경계로 실현할 수 없습니다. 그렇다고 모든 평면 직선 분류기의 VC 차원이 2 이하라는 결론은 나오지 않습니다. 세 점을 삼각형의 꼭짓점으로 놓으면 이야기가 달라집니다.
입력을 (0,0),(1,0),(0,1)로 잡고 각 점에 원하는 부호 s₀,s₁,s₂를 각각 −1 또는 1로 줍니다. 점수 a+bx₁+cx₂에 a=s₀, b=s₁−s₀, c=s₂−s₀를 넣으면 세 점의 점수가 각각 원하는 부호가 됩니다. 따라서 이 세 점은 여덟 배치를 모두 실현합니다.
f(x)=s0+(s1−s0)x1+(s2−s0)x2,h(x)=1{f(x)≥0}
상한을 보이려면 네 점을 모두 다뤄야 합니다. 볼록 사각형이면 둘러가는 순서로 1,0,1,0을 붙일 수 없고, 삼각형 안의 점이 있으면 바깥 셋과 안쪽을 반대로 붙일 수 없습니다. 퇴화된 배치도 더 쉬운 선형 종속 제약을 가집니다. 이 기하 논증을 더하면 평면의 아핀 직선 분류기는 VC 차원 3입니다. 특정 훈련 표의 실패와 함수군 전체의 표현 한계는 다른 증명 문제입니다.
Three collinear points cannot be separated by an affine line to label only the two ends positive. This does not show that all affine classifiers in the plane have VC dimension at most two. A triangle supplies a different arrangement.
Choose points (0,0),(1,0),(0,1) and arbitrary desired signs s0,s1,s2, each minus or plus one. Setting the affine score’s coefficients as below gives exactly those three signs. All eight binary labelings are therefore available.
f(x)=s0+(s1−s0)x1+(s2−s0)x2,h(x)=1{f(x)≥0}
An upper bound must handle every four-point arrangement. A convex quadrilateral cannot realize alternating labels around its boundary; an interior point cannot be separated from the three enclosing vertices. Degenerate arrangements impose further linear restrictions. Together this proves VC dimension three for affine classifiers in the plane. Failure on one training geometry differs from a universal limit of a function class.
대학원Graduate
성장함수와 구간 규칙의 일곱 모양Growth functions and seven interval patterns
성장함수 Π_H(m)은 m개 입력에서 후보군이 만들 수 있는 서로 다른 이진 예측 모양의 최대 개수입니다. 특정 표의 개수가 아니라 가능한 입력 배치 전체에 대한 최대라는 점이 중요합니다. 반복된 입력은 같은 함수가 같은 값을 내야 하므로 새로운 자유로운 정답을 만들지 않습니다. 유한 영역을 완전히 입력한 실습은 그 영역의 부분집합들을 모두 조사합니다.
ΠH(m)=x1,…,xmmax∣{(h(x1),…,h(xm)):h∈H}∣
문턱보다 조금 넓은 후보로 “어떤 구간 안이면 1”을 생각합시다. 정렬된 서로 다른 입력에서 1인 위치는 연속된 한 덩어리여야 합니다. n개 중 양 끝을 골라 만드는 비어 있지 않은 덩어리는 n(n+1)/2개이고, 모두 0인 경우를 더합니다. 세 점에서는 000,001,010,011,100,110,111의 일곱 개이며 101만 없습니다.
Πintervals(n)=1+2n(n+1),VC(intervals)=2
어떤 두 점이든 네 배치를 모두 만들 수 있고, 어떤 세 점에서도 양 끝만 1인 패턴은 불가능합니다. 따라서 차원은 2입니다. 같은 차원을 가진 다른 후보군이 반드시 같은 성장함수를 가지지는 않습니다. VC는 표현력의 한 요약이며, 실제 분포·최적화·위험을 모두 요약하지는 않습니다.
The growth function is the maximum number of distinct binary prediction vectors on m inputs, maximizing over input arrangements. It is not merely a count on the current sample. Repeated inputs cannot create independent labels because a function must give the same input the same prediction. The finite-domain lab enumerates all subsets of its supplied domain.
ΠH(m)=x1,…,xmmax∣{(h(x1),…,h(xm)):h∈H}∣
For interval indicators, positive positions on ordered distinct inputs must form one contiguous block. There are n(n+1)/2 nonempty blocks and one all-zero pattern. At three points the seven patterns are 000,001,010,011,100,110,111;101 is missing.
Πintervals(n)=1+2n(n+1),VC(intervals)=2
Every pair can realize four labelings, while every ordered triple misses the positive-ends pattern, proving dimension two. Classes with the same VC dimension can still have different growth functions. VC summarizes one aspect of expressiveness, not the entire distribution, optimization procedure or risk.
VC 차원이 d인 이진 함수군은 모든 표에서 2ⁿ개 모양을 마음대로 만들 수 없습니다. Sauer 부등식은 다음과 같이 제한합니다. d≥n이면 합은 2ⁿ이고, d=0이면 1입니다. 가운데 영역에서 지수적 모양 수가 다항식 크기로 줄어드는 것이 핵심입니다.
ΠH(n)≤j=0∑min(d,n)(jn)
왜 이항계수가 나타날까요? 기초 경우를 제외한 0<d<n의 재귀 단계에서, n개 점의 마지막 점 하나를 떼어 냅니다. 앞 n−1개에 나타나는 모든 패턴의 집합을 A, 그중 마지막 정답 0과 1 양쪽으로 확장 가능한 패턴의 집합을 B라고 합시다. 원래 n점 패턴 수는 |A|+|B|입니다. A는 차원이 d 이하입니다. B의 차원은 d−1 이하이어야 합니다.
만약 B가 d개 점을 분쇄하면, 각 정답 배치마다 마지막 점을 0 또는 1로 붙일 수 있어 원 함수군이 d+1점을 분쇄하게 됩니다. 이는 차원 d와 모순입니다. 따라서 n−1,d와 n−1,d−1의 상한을 더하면 되고, 이항계수의 파스칼 항등식이 위 합을 만듭니다. 이 재귀는 실습에서 실제 패턴 집합으로 확인할 수 있습니다.
A binary class of VC dimension d cannot generate arbitrary 2^n patterns on every sample. Sauer’s lemma provides the displayed upper bound. It becomes 2^n when d is at least n and one when d is zero. In between, finite dimension limits growth to polynomial order.
ΠH(n)≤j=0∑min(d,n)(jn)
In the recursive step 0<d<n, remove the last of n points. Let A contain every restriction on the first n−1 points, and let B contain restrictions that extend with either label at the last point. The original pattern count is |A|+|B|. A has dimension at most d, while B must have dimension at most d−1.
If B shattered d points, every labeling could be extended with either final label, making the original class shatter d+1 points. This contradicts dimension d. Add the bounds for (n−1,d) and (n−1,d−1); Pascal’s identity produces the binomial sum. The lab’s finite pattern sets make this recursion inspectable.
대학원Graduate
다섯 규칙의 VC 차원은 왜 2인가Why do our five rules have VC dimension two?
실제 사례의 후보군은 두 이진 입력의 완전한 네 상태에서 정의합니다. 함수는 0,1,x₀,x₁,x₀ OR x₁ 다섯 개입니다. 입력을 이미 0/1로 바꾸는 문턱도 고정되어 있습니다. 수많은 관측 행을 보더라도 가능한 입력 상태는 이 네 개이며, 분쇄는 그 상태와 함수의 관계를 묻습니다.
완전한 이진 입력 영역의 후보군
입력(x₀,x₁)
0
1
x₀
x₁
OR
00
0
1
0
0
0
01
0
1
0
1
1
10
0
1
1
0
1
11
0
1
1
1
1
두 상태 01,10을 고르면 00은 상수 0,11은 상수 1,01은 x₀,10은 x₁이 실현합니다. 따라서 VC 차원은 적어도 2입니다. 세 상태를 분쇄하려면 8개 패턴이 필요하지만 함수는 다섯 개뿐이라 어느 세 상태에서도 불가능합니다. 그러므로 정확히 2입니다.
이 결론은 국가·임금·고객 자료에서 우연히 얻은 좋은 점수로 추정한 차원이 아닙니다. 미리 선언한 완전한 네 상태와 다섯 함수를 모두 조사한 표현력의 성질입니다. 실제 자료의 오차가 같아야 한다거나, 세 분야의 관측이 같은 분포라는 뜻도 아닙니다.
Our empirical candidates are defined on all four states of two binary features: zero, one, feature zero, feature one and their OR. The feature thresholds are fixed too. Many observation rows can share these four input states; shattering concerns the relationship between states and functions.
Complete binary input domain
Input(x0,x1)
0
1
x0
x1
OR
00
0
1
0
0
0
01
0
1
0
1
1
10
0
1
1
0
1
11
0
1
1
1
1
On states 01 and 10, constants realize 00 and 11, feature zero realizes 01, and feature one realizes 10. This proves dimension at least two. Shattering three states needs eight patterns, but five functions cannot provide eight distinct patterns. Thus dimension is exactly two.
This is proved by enumerating the complete declared domain and class, not inferred from good scores on national, wage or customer records. It neither equalizes their prediction errors nor makes their observation distributions identical.
대학원Graduate
성장률에서 일반화의 차수로 연결하기Connect growth to a generalization rate
d가 유한하고 1≤d≤n이면 Sauer 합은 (en/d)ᵈ 이하입니다. 양수 x=d/n을 놓고, 이항전개와 (1+x)ⁿ≤exp(nx)를 사용하면 얻습니다. d=0이나 n<d에는 이 형태를 그대로 대입하지 않고 앞의 합을 사용합니다.
xdj=0∑d(jn)≤j=0∑d(jn)xj≤(1+x)n≤enx,x=nd≤1
이제 다음 부분에서 증명할 연결을 예고합니다. 0–1 손실에서는 고정한 정답 벡터와 예측 벡터를 XOR하면 손실 벡터가 됩니다. 이는 일대일 대응이므로 예측 성장함수로 손실 벡터의 수도 제어할 수 있습니다. Massart 부등식과 Rademacher 일반화 정리를 조합하면, IID·유계성·필요한 가측성 조건 아래 다음과 같은 충분 상한의 한 형태를 얻습니다.
R(h)≤R(h)+2n2dlog(en/d)+2nlog(1/δ),1≤d≤n
이는 로그 인자를 포함한 제곱근 차수의 한 충분 경계이며 가장 날카로운 모든 결과를 대표하지는 않습니다. 함수가 다섯 개로 이미 유한한 실제 사례에는 앞의 직접 합집합 경계가 더 단순하거나 더 작을 수 있습니다. VC는 무한 함수군을 다룰 수 있게 하는 역할이 중요합니다. 숫자 d를 작은 표에서 추정해 넣는 것만으로 모든 가정과 전역 상한이 확보되지는 않습니다.
For finite d with 1≤d≤n, the Sauer sum is at most (en/d)^d. Set positive x=d/n, use the binomial expansion and (1+x)^n≤exp(nx). For d=0 or n<d, return to the binomial sum rather than substituting into this form.
xdj=0∑d(jn)≤j=0∑d(jn)xj≤(1+x)n≤enx,x=nd≤1
Here is the connection developed next. For 0–1 loss, XOR with a fixed outcome vector maps prediction patterns bijectively to loss patterns. The prediction growth function therefore controls loss vectors. Combining Massart’s lemma with a Rademacher generalization theorem yields one sufficient bound under IID, boundedness and appropriate measurability conditions.
R(h)≤R(h)+2n2dlog(en/d)+2nlog(1/δ),1≤d≤n
This is one sufficient square-root-rate bound, not a claim to the sharpest possible theorem. For our already finite five-function class, the direct union bound may be simpler or tighter. VC is especially useful for infinite classes. Estimating a small dimension from one sample does not establish a global upper bound or the remaining assumptions.
학부 심화 · 선택Advanced undergraduate · optional
실습: 패턴을 추가하면 무엇이 바뀌는가Lab: what changes when a pattern is added?
성장함수 실습에 점 세 개와 문턱 패턴 000,001,011,111을 넣습니다. 전체 표에서는 서로 다른 패턴 4개, 최대 분쇄 크기는 1이어야 합니다. 두 점 부분집합의 어느 위치를 잡아도 만들지 못하는 배치를 확인하세요. 출력은 각 패턴을 실현한 함수 ID도 보여줍니다.
이제 101이라는 함수를 추가합니다. 첫째·둘째 점에서 00,01,10,11을 모두 만들 수 있어 제한된 영역의 차원이 2가 됩니다. 이것은 문턱 함수군의 차원이 바뀌었다는 뜻이 아닙니다. 문턱으로 만들 수 없던 새 함수를 후보군에 추가하여 다른 함수군을 정의한 것입니다. 000을 이름만 다르게 복사하면 새로운 모양은 생기지 않습니다.
마지막으로 빈 영역을 넣으면 빈 예측 벡터 한 개와 제한 영역 차원 0이 나와야 합니다. 관측이 하나도 없는 더 큰 미지의 함수군 전체에 대해 VC=0을 증명한 것이 아닙니다. 현재 입력이 완전한 영역인지, 큰 영역에서 잘라 온 표인지 먼저 적고 결과를 해석하세요.
Enter three domain points with threshold patterns 000,001,011,111. There should be four full-domain patterns and maximum shattered size one. Inspect which labeling is absent on each two-point subset. Output also records a witness function for each realized pattern.
Add pattern 101. The first two points now realize 00,01,10,11, so the restricted-domain dimension becomes two. The threshold class itself has not changed its dimension; adding a non-threshold function defined a different class. Copying 000 under another name adds no new pattern.
An empty domain has one empty prediction vector and restricted dimension zero. This does not prove that an unknown class on a larger domain has global dimension zero. State whether the supplied domain is complete or a restriction before interpreting the result.
대학원Graduate
무작위 부호에 얼마나 맞출 수 있는가How well can a class follow random signs?
같은 표 S에서 각 후보의 손실을 길이 n인 벡터로 적습니다. 각 위치에 독립적으로 −1 또는 +1을 절반 확률로 붙이고, 그 부호와 가장 크게 맞아떨어지는 후보의 평균 내적을 구합니다. 부호를 붙일 때마다 가장 유리한 후보를 다시 고를 수 있습니다. 그 최댓값을 모든 부호에 걸쳐 평균한 것이 경험적 Rademacher 복잡도입니다.
F는 손실 함수군으로 둘 수 있습니다. 관측과 정답을 모두 포함한 Z 위의 함수입니다. 현재 표를 고정한 뒤 부호만 바꾸므로, 이 기대값을 계산하는 데 참된 모집단 P를 알 필요는 없습니다. 실습은 작게 정한 n에서 2ⁿ개 부호를 모두 열거하여 정확한 분수 평균을 만듭니다.
부호는 실제 고객의 정답을 바꾸어 얻은 새 고객이 아닙니다. 함수군이 이 표에서 무작위 방향에 얼마나 적응할 수 있는지를 재는 수학적 장치입니다. 표 자체를 다시 뽑는 무작위성과 이 부호의 무작위성을 분리해 읽어야 합니다.
Write each candidate’s losses on a fixed sample S as a vector of length n. Attach independent fair signs, minus or plus one, and choose the candidate with the largest signed average. A different candidate may win for each sign vector. Averaging these maxima defines empirical Rademacher complexity.
F may be a loss class: its functions act on Z containing both inputs and outcomes. Once S is fixed, averaging signs does not require the unknown population law P. For small n, the lab enumerates all 2^n sign vectors and obtains an exact rational mean.
Signs do not create new factual customers with altered outcomes. They measure how flexibly the class can adapt to random directions on this table. Separate this randomness from resampling the observations themselves.
대학원Graduate
네 가지 부호를 손으로 평균하기Average four sign vectors by hand
두 후보 벡터 a=(0,1), b=(1,0), n=2를 사용합니다. 각 부호에 대해 내적을 2로 나누고 두 후보 중 큰 값을 고릅니다. 아래 표는 모든 경우입니다. 둘 다 음수인 첫 행도 최댓값이 −1/2이지 0이 아닙니다. 함수군에 영함수가 없다면 이를 임의로 끼워 넣지 않습니다.
최댓값을 고른 뒤 평균합니다. 후보별 부호 평균을 먼저 내면 둘 다 0이 되어, 선택의 유연성을 잃어버립니다. 또한 보통 정의의 최댓값과 절댓값을 취한 최댓값은 서로 다른 양입니다. 실습은 둘을 다른 열과 이름으로 표시합니다.
Take candidate vectors a=(0,1), b=(1,0) and n=2. For each sign vector, divide the dot product by two and select the larger candidate value. The table covers every case. The first maximum is negative one half, not zero: do not silently add a zero function absent from the class.
Maximize before averaging. Averaging each candidate over signs first gives zero and discards selection flexibility. Ordinary and absolute maxima also define different quantities, shown under separate names in the lab.
대학원Graduate
한 함수의 복잡도 0이 뜻하는 것What zero complexity for one function means
후보가 단 한 함수뿐이면 부호를 보고 고를 다른 함수가 없습니다. 각 위치에서 Eσᵢ=0이므로 보통 경험적 Rademacher 복잡도는 0입니다. 함수값이 모두 1이더라도 같습니다. n=2의 부호별 평균은 −1,0,0,1이고 평균은 0입니다. 반면 절댓값 평균은 1/2입니다.
∣F∣=1⟹RS(F)=n1i∑f(Zi)Eσi=0
이것은 그 함수의 예측 위험이 0이라는 뜻이 아닙니다. 고정한 한 규칙도 틀릴 수 있고, 그 표본 평균은 모집단 평균과 다를 수 있습니다. 일반화 정리에는 복잡도 이외에 표본 변동의 확률 항이 함께 들어갑니다.
분류 규칙이 항상 0을 예측한다는 말과 손실 함수가 항상 0이라는 말도 다릅니다. 항상 0인 예측기의 손실은 Y=1일 때 1, Y=0일 때 0입니다. 실제 사례에서는 예측 규칙의 이름과 관측 손실 벡터를 구별해 읽습니다.
A singleton class offers no alternative to select after seeing signs. Since every sign has mean zero, its ordinary empirical Rademacher complexity is zero, even when all function values are one. For n=2, signed means are minus one, zero, zero and one; their mean is zero, while the absolute mean is one half.
∣F∣=1⟹RS(F)=n1i∑f(Zi)Eσi=0
Zero complexity does not mean zero prediction risk. One fixed rule can make mistakes, and its sample mean can differ from its population mean. Generalization theorems include a sampling-confidence term as well as complexity.
An always-zero classifier also differs from an always-zero loss function. The classifier loses one when Y is one and zero when Y is zero. Distinguish predictor names from their realized loss vectors in the empirical cases.
대학원Graduate
Massart 상한으로 큰 표를 읽기Use Massart’s bound on a large table
n=1890이면 부호는 2¹⁸⁹⁰개라 모두 열거할 수 없습니다. 하지만 모든 손실 행을 버리지 않고 상한을 계산할 수 있습니다. 표에 나타난 서로 다른 후보 벡터의 집합을 A, 벡터의 최대 유클리드 길이를 r이라고 둡니다. Massart 부등식은 다음 상한을 줍니다.
Eσa∈Asupnσ⊤a≤nr2log∣A∣,r2=a∈Amaxi∑ai2
λ>0에서 지수함수와 로그의 성질을 쓰면 최댓값의 기대값은 log|A|/λ+λr²/2 이하입니다. 각 좌표 부호가 독립이라 E exp(λσᵀa)=∏cosh(λaᵢ)≤exp(λ²||a||²/2)를 쓰기 때문입니다. λ를 최적화하고 n으로 나누면 위 식입니다. |A|=1 또는 r=0이면 보통 복잡도의 상한은 0으로 따로 계산합니다.
절댓값 버전에는 A와 −A를 합친 서로 다른 벡터 수를 씁니다. 같은 표에서 값이 완전히 같은 후보는 추가 벡터를 만들지 않습니다. 이 표 의존 개수는 조건부 벡터 부등식에는 쓸 수 있지만, 앞의 모집단 합집합 정리에 후보 수를 사후 축소하는 근거는 아닙니다. 실제 사례의 full-n 상한은 전체 훈련 행의 정확한 제곱합을 사용합니다.
At n=1890 there are 2^1890 sign vectors, making full enumeration infeasible. We can still use every loss observation in an upper bound. Let A contain the distinct candidate vectors on the sample and let r be their largest Euclidean norm.
Eσa∈Asupnσ⊤a≤nr2log∣A∣,r2=a∈Amaxi∑ai2
For positive lambda, exponential and logarithm inequalities bound the expected unnormalized maximum by log|A|/lambda plus lambda r squared over two. Independent signs give an exponential moment equal to a product of coshes, bounded by exp(lambda squared times the squared norm over two). Optimize lambda and divide by n. Handle a singleton A or zero r separately with ordinary bound zero.
The absolute version uses the distinct vectors in A union minus A. Duplicate vectors on this sample add no new vector. This sample-dependent count is valid in a conditional vector inequality; it does not justify retrospectively shrinking the class size in a population union bound. Our full-n empirical bound uses exact squared norms over every training observation.
대학원Graduate
부호의 평균과 표본의 평균을 분리하기Separate sign averages from sample averages
경험적 복잡도 R̂_S는 표 S를 고정하고 부호만 평균합니다. 모집단 Rademacher 복잡도 Rₙ은 다시 S 자체를 P에서 뽑아 R̂_S를 평균한 값입니다. 실제 자료에서 전자는 작은 표라면 정확히 계산할 수 있지만, 후자는 보통 모르는 P에 대한 기대값입니다.
Rn(F)=ES∼PnRS(F)
같은 함수군도 표의 입력 값이 달라지면 후보 벡터의 구별 가능성과 길이가 달라집니다. 따라서 표본별 복잡도는 다를 수 있습니다. 모든 부호를 정확히 셌다는 사실은 현재 표에서의 계산이 정확하다는 뜻이지, 모집단 위험이 알려졌다는 뜻이 아닙니다.
우리 기업 사례의 12행 부호 감사 값은 정확히 1637/12288입니다. 그러나 전체 훈련은 1890행입니다. 전체 행의 Massart 상한 약 0.037900과 앞의 분수를 같은 n의 같은 종류의 추정값처럼 비교하지 않습니다. 하나는 12행의 정확한 조건부 평균, 다른 하나는 1890행의 복잡도에 대한 상한입니다. n과 “정확값/상한”이라는 역할을 함께 적습니다.
Empirical complexity fixes S and averages only signs. Population Rademacher complexity averages that quantity again over S drawn from P. The first can be computed exactly for a small observed table; the second generally involves an unknown population law.
Rn(F)=ES∼PnRS(F)
Changing observed inputs can change distinguishable vectors and their lengths even for the same class. Exact sign enumeration therefore establishes a calculation on this sample, not knowledge of population risk.
Our company sign audit on twelve rows is exactly 1637/12288, while complete training contains 1890 rows. Do not treat that fraction and the full-training Massart bound near 0.037900 as estimates of the same quantity at the same n. One is an exact conditional mean at twelve observations; the other is an upper bound at 1890 observations. Report both n and the role “exact value” or “bound.”
대학원Graduate
유령 표본을 넣어 2R을 얻기Introduce a ghost sample to obtain two R
P를 모르는데 모집단 위험을 어떻게 다룰까요? 증명에서만 같은 P로부터 독립적인 유령 표본 S′를 하나 더 뽑습니다. S를 고정했을 때 P f는 S′의 표본 평균 기대값입니다. 후보별 차이의 기대값을 먼저 구하고 최댓값을 취하는 것보다, S′마다 가장 큰 차이를 고른 뒤 평균하는 값이 작아질 수는 없습니다.
ESfsup(Pf−Pnf)≤ES,S′fsup(Pn′f−Pnf)
각 쌍 (Zᵢ,Z′ᵢ)은 같은 법칙의 독립 관측입니다. 그 쌍을 공정한 부호에 따라 서로 바꾸어도 공동 법칙이 같습니다. 따라서 차이에 부호를 곱한 표현으로 바꿀 수 있습니다. 두 합의 최댓값은 각 합의 최댓값을 더한 것 이하입니다.
ES,S′,σfsupn1i∑σi(f(Zi′)−f(Zi))≤2ESRS(F)
이것이 기댓값의 한쪽 균일 차이를 복잡도와 연결하는 대칭화입니다. 유령 표본은 실제로 미래 정답을 공짜로 관측하는 기능이 아닙니다. 현재 표에서 복원 추출한 표를 아무 조건 없이 진짜 P의 독립 유령 표본이라고 대체할 수도 없습니다. 뒤의 작은 유한 확률 모형에서는 P를 명시했으므로 이 기대값들을 전부 계산해 보겠습니다.
How can a proof handle an unknown P? Introduce a ghost sample S-prime, independently drawn from the same law. Conditional on S, Pf equals the ghost sample mean’s expectation. Taking a supremum after that expectation cannot exceed averaging ghost-specific suprema.
ESfsup(Pf−Pnf)≤ES,S′fsup(Pn′f−Pnf)
Each observation pair consists of independent draws from the same law, so randomly swapping the pair leaves its joint distribution unchanged. This introduces fair signs. A supremum of a sum is at most the sum of separate suprema.
ES,S′,σfsupn1i∑σi(f(Zi′)−f(Zi))≤2ESRS(F)
Symmetrization thus connects an expected one-sided uniform gap to complexity. A ghost sample is not free access to factual future labels. Nor can an arbitrary bootstrap resample automatically replace an independent draw from true P. In the later finite-law lab, P is specified and these expectations can all be calculated.
대학원Graduate
절댓값을 넣으면 어느 복잡도가 필요한가Which complexity controls an absolute gap?
한쪽 차이 sup(P−Pₙ)와 절댓값 차이 sup|P−Pₙ|은 구분해야 합니다. 절댓값을 넣으면 부호 평균에서도 sup|Σσf/n|을 사용하거나, 함수군 F와 −F를 합쳐 보통 Rademacher 정의를 사용합니다. 앞 절의 2R에 기호만 절댓값을 덧붙이면 잘못된 명제가 될 수 있습니다.
반례로 함수가 f(Y)=Y 하나이고, Y는 공정 동전, n=1이라고 합시다. 표본 평균은 0 또는 1이므로 절댓값 일반화 차이는 언제나 1/2입니다. 그러나 한 함수군의 보통 경험적 Rademacher 값은 언제나 0입니다. 절댓값 차이를 2×0으로 상한할 수는 없습니다.
같은 반례에서 절댓값 부호 평균은 현재 Y이고, 표를 다시 평균하면 1/2입니다. 오른쪽은 1이어서 올바른 상한입니다. 보통 정의가 틀린 것이 아니라 제어하려는 대상에 맞는 버전을 골라야 합니다. 실습과 코드의 두 열은 이 혼동을 피하려고 분리합니다.
The one-sided supremum of P minus Pn differs from the supremum of the absolute difference. For the latter, use an absolute signed supremum, or the ordinary definition on F union minus F. Simply inserting absolute bars into a two-R statement can make it false.
For a counterexample, take one function f(Y)=Y, a fair coin and n=1. The absolute generalization gap is always one half, while ordinary empirical Rademacher complexity of a singleton is always zero. Twice zero cannot bound that absolute gap.
Here the absolute signed average equals the observed Y; averaging samples gives one half, so the displayed right side is one and is a valid upper bound. The ordinary definition is not wrong: it answers a different question. The lab and code preserve separate names and columns.
학부 심화 · 선택Advanced undergraduate · optional
실습: 모든 부호와 큰 표의 상한Lab: every sign and a full-table upper bound
Rademacher 실습의 기본 두 벡터 (0,1),(1,0)을 사용하면 부호 네 개의 보통 평균은 1/4, 절댓값 평균은 1/2입니다. 음수 최댓값 행을 확인하고, 부호를 본 뒤 후보를 고른 것과 후보별 평균을 먼저 낸 것을 구별하세요. 원래 클래스에는 영벡터가 없음을 표에서 확인합니다.
영벡터 (0,0)를 새 후보로 추가하면 첫 부호 행의 최댓값만 −1/2에서 0으로 바뀌어 보통 복잡도는 3/8이 됩니다. 같은 벡터를 이름만 바꿔 복사하면 평균과 서로 다른 벡터 수는 바뀌지 않습니다. 상수 (1,1) 한 후보로 바꾸면 보통 값은 0, 절댓값 값은 1/2이어야 합니다.
큰 n에서는 bound 방식을 골라 모든 입력 행의 제곱합과 서로 다른 벡터 수를 확인합니다. 이 방식은 정확한 부호 평균을 계산했다고 표시하지 않습니다. 원본 정확 분수와 부호 표는 펼쳐서 읽되, 작은 감사 표의 n을 전체 자료의 n으로 바꿔 적지 마세요. 실제 자료에서는 이 두 출력을 별도 표제로 나란히 제공합니다.
For default vectors (0,1) and (1,0), the four-sign ordinary mean is one quarter and the absolute mean is one half. Inspect the negative maximum and the order “select after signs, then average.” Verify that the original class contains no zero vector.
Adding (0,0) changes only the all-negative maximum to zero, raising ordinary complexity to three eighths. Duplicating a vector under another name changes neither the exact mean nor the distinct-vector count. A singleton (1,1) instead gives ordinary value zero and absolute value one half.
At large n, choose bound mode and inspect squared norms over all input observations and the distinct-vector count. This mode does not claim an exact sign average. Expand exact values and sign tables as needed, keeping an audit’s n distinct from the complete sample’s n. The empirical cases label those outputs separately.
대학원Graduate
한 행을 바꿨을 때 얼마나 달라지는가How much can one observation change?
복잡도의 기대값으로 얻은 정리를 실제 한 표의 확률 경계로 바꾸려면, 표 한 행의 영향부터 셉니다. 동전 던지기 한 번을 바꿔도 100번 평균은 최대 1/100만 바뀝니다. 같은 원리를 후보 전체의 최대 차이에 적용합니다. 모든 손실은 [0,1]에 있고 표본 Z₁,…,Zₙ은 같은 P에서 독립적으로 뽑혔다고 둡니다. 함수군은 이 표의 점수를 보기 전에 고정하며, 이 장의 유한 함수군에서는 최댓값과 기대값의 가측성 문제가 없습니다.
Φ(S)=f∈Fsup{Pf−Pnf},∣Φ(S)−Φ(S(i))∣≤n1
S⁽ⁱ⁾는 i번째 관측만 다른 표입니다. 각 후보의 표본 평균 변화가 최대 1/n이므로, 그중 최댓값도 이보다 크게 변하지 않습니다. McDiarmid의 유계 차이 부등식은 독립 좌표의 영향을 cᵢ로 제한할 때 편차 확률을 exp(−2t²/Σcᵢ²) 이하로 만듭니다. 여기서는 Σcᵢ²=1/n입니다.
P{Φ(S)>EΦ(S)+t}≤e−2nt2
이 결과가 표를 고칠 권한을 주는 것은 아닙니다. 한 행의 최대 영향을 수학적으로 비교해, 무작위 표를 다시 뽑았을 때 전체 함수군의 차이가 얼마나 흔들리는지 제어한 것입니다. 같은 사람을 복사한 행은 독립 좌표가 아니므로 n개 새 관측으로 세지 않습니다.
To turn an expected-complexity result into a statement about one observed sample, first measure one observation’s influence. Changing one of a hundred coin tosses changes its average by at most one hundredth. Apply the same idea to the largest gap over a class. Assume independent observations with common law P, losses in [0,1], and a class fixed before scoring this sample. Our finite classes avoid measurability complications.
Φ(S)=f∈Fsup{Pf−Pnf},∣Φ(S)−Φ(S(i))∣≤n1
The samples differ only in observation i. Each candidate’s empirical mean changes by at most one over n, so their supremum changes by no more. McDiarmid’s bounded-differences inequality bounds the upper-tail probability by exp of minus two t squared over the sum of squared coordinate influences. Here that sum is one over n.
P{Φ(S)>EΦ(S)+t}≤e−2nt2
This comparison does not authorize editing observations. It controls variation across independently resampled tables. Repeating one person’s record does not create independent coordinates.
대학원Graduate
관측한 복잡도로 쓰는 균일 경계A uniform bound using observed complexity
앞 절의 Φ에 EΦ≤2Rₙ을 대입하면 모집단 평균 복잡도를 쓰는 정리가 나옵니다. 그런데 우리는 P를 몰라 Rₙ도 모릅니다. 경험적 복잡도 R̂_S 역시 한 행을 바꿀 때 최대 1/n 변하므로, 그 기대값을 관측값과 확률 항으로 다시 묶을 수 있습니다. 두 실패 사건에 각각 δ/2를 배분합니다.
전체 식은 같은 P의 독립 표본, 고정 함수군, [0,1] 손실이라는 전제 아래 확률 적어도 1−δ로 모든 후보에 동시에 성립합니다. 먼저 선택된 후보 하나에만 정리를 쓰고 후보를 바꾸는 방식이 아니라, 전체 함수군을 한 번 제어하여 그 안에서 선택한 후보도 포함하는 방식입니다.
n=1000, δ=0.05, 현재 손실 0.10, 전체 1000행의 경험적 복잡도 0.02라면 t≈0.042947이어서 위험 상한은 약 0.268841입니다. 이 소수는 로그·제곱근 계산의 근사이고, 95%가 이 관측에서 정답일 사후확률이라는 뜻은 아닙니다. R̂ 대신 같은 표 전체에 대해 유효한 Massart 상한을 넣어도 식은 보수적으로 유지됩니다. 12행 감사의 값이나 별도 오차 보정 없는 부호 몬테카를로 평균은 같은 대체물이 아닙니다.
Combining the previous concentration step with expected symmetrization yields a population-complexity bound. But the population law, and therefore its expected complexity, is unknown. Empirical complexity itself changes by at most one over n when one observation changes. Concentrate it around its expectation and allocate failure probability delta over two to each of two events.
With independent observations from the same P, a fixed measurable class and losses in [0,1], the final inequality holds simultaneously for every candidate with probability at least one minus delta. Uniform control includes any candidate subsequently chosen inside that class.
For n=1000, delta=0.05, observed loss 0.10 and complexity 0.02 computed on all thousand rows, t is approximately 0.042947 and the upper bound is approximately 0.268841. Decimal logarithms and square roots are approximations; coverage is not a posterior probability for this observed table. A valid full-sample Massart upper bound can conservatively replace empirical complexity. A twelve-row audit or an uncorrected sign Monte Carlo estimate cannot serve as the same quantity.
대학원Graduate
상한이 크면 무엇을 배운 것인가What does a large bound teach us?
손실이 0과 1 사이이므로 위험은 이미 1 이하입니다. 계산한 경계가 1.20이라면 새 보장은 없고, 1로 잘라 표시할 수 있습니다. 그렇다고 훈련 오차를 0.20으로 고치거나 이론을 맞추기 위해 후보를 몰래 버리지는 않습니다. 어느 항이 큰지 확인해야 합니다.
경계의 구성 요소
항목
학습자가 묻는 질문
표본 손실
현재 공통 행에서 실제로 몇 번 틀렸는가?
복잡도 항
표를 보고 고를 수 있는 후보의 유연성이 얼마나 큰가?
확률 항
독립 표본 수와 선택한 실패 확률은 무엇인가?
가정
같은 법칙·독립성·고정 클래스가 성립하는가?
표본을 늘리면 확률 항은 줄어들지만, 복사본이나 미래와 다른 나라의 행을 단순히 더한 것이 정리의 새 IID 표본인지 따져야 합니다. 더 작은 함수를 미리 정하면 복잡도를 줄일 수 있지만, 좋은 근사 규칙까지 버릴 수 있습니다. 작은 표에서 느슨한 상한이 나온다는 사실과 실제 예측이 나쁘다는 사실도 같지 않습니다.
고정한 다섯 규칙에는 합집합 Hoeffding 경계가 Rademacher 상한보다 작을 수 있습니다. 두 정리가 각각 같은 데이터와 조건에 대해 유효하더라도 더 좋은 표시값을 사후 선택한다면, 두 결과를 동시에 보장할 실패 확률 예산을 먼저 잡는 것이 명료합니다. 이 장의 화면은 여러 경계의 개별 δ를 보여 주며 자동으로 공동 신뢰수준이라고 합치지 않습니다.
Risk already lies between zero and one. A calculated upper bound of 1.20 adds no guarantee and may be clipped to one for display. Do not change observed errors or secretly discard candidates to make a theorem look stronger. Inspect which component is large.
Components of a generalization bound
Component
Question to ask
Empirical loss
How many errors occurred on the common observed rows?
Complexity
How flexibly can the class adapt to this sample?
Confidence term
What independent sample size and failure budget were used?
Assumptions
Are the common-law, independence and fixed-class conditions justified?
More observations reduce the confidence term, but copied records or observations under a different future law are not automatically new IID draws. Declaring a smaller class may reduce complexity while removing useful approximations. A loose bound on a small sample also does not establish poor prediction performance.
For five fixed rules, a finite-class Hoeffding bound can be tighter than a Rademacher bound. If both are to be presented as simultaneously valid before choosing the smaller result, assign a joint failure budget. Our interface labels individual delta levels rather than silently treating several displayed bounds as one joint guarantee.
대학원Graduate
오차를 세 부분으로 읽기Read risk through three sources of difficulty
참된 최적 규칙을 알지 못해도 무엇을 줄이려는지 구분할 수 있습니다. 선택한 규칙의 위험에서 가능한 모든 규칙의 최저 위험을 빼고, 현재 클래스 안의 최저 위험을 더했다 빼면 근사 오차와 추정·최적화 문제를 나눌 수 있습니다.
R(h)−R∗=estimation and optimizationR(h)−h∈HinfR(h)+approximationh∈HinfR(h)−R∗
R* 자체는 같은 입력을 가진 사람도 결과가 달라지는 잡음 때문에 0보다 클 수 있습니다. 제한된 다섯 규칙은 안정적으로 비교할 수 있지만 복잡한 관계를 표현하지 못할 수 있습니다. 더 풍부한 클래스를 쓰면 근사 오차를 줄일 여지가 생기는 대신 균일 제어에 필요한 자료가 늘어납니다.
일반화 경계는 주로 표본 위험과 모집단 위험의 차이를 제어합니다. 제한된 클래스가 현실을 얼마나 잘 표현하는지, 측정 오류가 얼마나 큰지, 미래 제도가 바뀌는지까지 한 식이 해결하지는 않습니다. 실제 사례의 단순 이진 특징은 이 교환 관계를 볼 수 있는 교육용 설정입니다.
Separate the quantity being controlled from the best achievable prediction risk. Add and subtract the best risk within the declared class to distinguish estimation and optimization from approximation.
R(h)−R∗=estimation and optimizationR(h)−h∈HinfR(h)+approximationh∈HinfR(h)−R∗
The benchmark R star can itself be positive when outcomes remain uncertain given the inputs. Five simple rules are easy to compare but may omit useful relationships. A richer class can reduce approximation error while requiring more information for uniform estimation.
A generalization bound mainly controls the gap between empirical and population risk. It does not, by itself, solve misspecification, measurement error or future policy changes. Our binary features expose that tradeoff in a deliberately limited educational setting.
대학원Graduate
독립성·이동·측정의 세 가지 점검Check dependence, shift and measurement
모든 행의 주변분포가 같아도 독립인 것은 아닙니다. 공정한 동전 한 번을 n행에 복사하면 평균의 분산은 언제나 1/4입니다. IID 표본처럼 1/(4n)로 줄지 않습니다. 국가의 공통 경기 충격, 한 가구의 여러 사람, 같은 고객의 반복 기록도 각각 의존 구조를 생각해야 하는 이유입니다.
반대로 훈련 행이 서로 독립이어도 시험 시점의 P가 바뀌면 같은 P에 대한 결론을 그대로 옮길 수 없습니다. 이전 제도에서 Y=0만 나타나다가 새 제도에서 Y=1만 나타나면 항상 0 규칙의 이전 위험은 0, 새 위험은 1입니다. 표본 수를 아무리 늘려도 서로 다른 목표 분포를 같게 만들 수는 없습니다.
측정 시점 역시 중요합니다. 이 장의 국가 자료는 보관된 개정 통계로 2023년 입력과 2024년 결과를 구성합니다. 당시 공개된 예측용 빈티지라고 부르지 않습니다. NLS의 교육·임금 관계는 단순 예측 예제이며 교육의 인과 수익률이 아닙니다. 기업의 초기 9개월 특징과 12개월 말 이탈은 공식 자료 설명의 시점이며, 무작위 고객 표본이라는 별도 보증이 아닙니다.
Identical marginal distributions do not imply independence. Copying one fair coin into n rows leaves the mean’s variance at one quarter, rather than one over four n. Common macroeconomic shocks, household members and repeated customer records likewise require a dependence model.
Even independent training observations do not guarantee that a future law is unchanged. An always-zero rule has risk zero under a law with only zero outcomes and risk one after a switch to only ones. Increasing sample size does not make different target laws equal.
Measurement timing matters too. Our country example uses retained revised statistics to construct 2023 inputs and 2024 outcomes; it is not a real-time forecast vintage. NLS education and wages illustrate prediction, not an education treatment effect. The company dataset documents first-nine-month features and churn at the end of month twelve; that timing does not establish random sampling.
대학원Graduate
조건을 붙인 새 동전 세계A new coin world conditional on fitted probabilities
모집단을 모르더라도 정리를 완전히 계산해 보는 연습 세계는 만들 수 있습니다. 훈련 행의 양성 비율을 p̂로 계산하고, 새 동전 Y가 1일 확률을 p̂라고 선언합니다. 이때 원래 관측이 그 법칙에서 독립 추출되었다고 역으로 주장하지 않습니다. p̂를 고정한 뒤 그 법칙에서 새로 뽑는 동전들에 대한 조건부 계산입니다.
p=eligible training rowspositive training rows,Ptoy(Y=1∣p)=p
예를 들어 원 표에서 p̂=1이 나왔다면 새 연습 세계에는 0인 결과가 없습니다. 원래 현실에서도 0이 절대 없다는 결론은 아닙니다. 표본에서 보지 못한 사건과 법칙에서 확률 0으로 선언한 사건을 구별합니다. p̂=0 또는 1도 프로그램은 정확 질량으로 처리하며, 질량이 0인 표본 경로를 실제 발생한 자료처럼 세지 않습니다.
이 연습에서는 n≤4와 작은 지지집합을 사용하므로 모든 표본·독립 유령·부호를 열거할 수 있습니다. 정확한 분수의 부등식이 맞는지 직접 확인하는 목적입니다. 이론의 계산 검증, 관측 자료의 기술 요약, 현실 모집단 추론은 서로 다른 결과물로 읽어야 합니다.
An unknown population law does not prevent a fully specified practice world. Compute the training positive fraction p hat, then declare a new Bernoulli law with that success probability. This does not retroactively assert that the original observations were independent draws from the fitted law. Conditional on p hat, draw new coins from the declared law.
p=eligible training rowspositive training rows,Ptoy(Y=1∣p)=p
If the observed fraction is one, the declared practice law produces no zeros. This does not prove that zeros are impossible in reality. Distinguish an unobserved event from an event assigned probability zero by a model. Endpoint probabilities are retained exactly, and zero-mass paths are not counted as factual observations.
With n at most four and a small support, every sample, independent ghost and sign vector can be enumerated. The goal is to verify the inequalities in exact fractions. Mathematical verification, descriptive empirical summaries and inference about the real population are distinct outcomes.
대학원Graduate
훈련·검증·시험을 같은 자로 읽기Compare training, validation and test on common frames
다섯 규칙을 공정하게 비교하려면 같은 역할 안에서 모든 후보가 평가 가능한 행만 공통으로 사용합니다. 어떤 후보의 손실이 결측이면 그 행을 후보마다 다르게 세지 않고 공통 틀에서 제외합니다. 분모가 달라져 생긴 차이와 규칙의 차이를 섞지 않기 위해서입니다. 제외한 원 행과 이유도 남깁니다.
역할은 분석 ID의 고정 해시 순서와 순위로 미리 정했습니다. 이 절차는 재현 가능한 분할이지, 국가 간 독립성이나 자료 수집의 무작위성을 만드는 장치가 아닙니다. NLS는 원 3613행 중 필수 변수가 있는 3017행을 역할별로 평가하고, 596행은 삭제하지 않고 결측 제외로 보존합니다. 기업은 3150행을 모두 사용하며 국가 횡단면은 16개입니다.
실제 공통 평가 틀
자료
훈련
검증
시험
필수값 결측 제외
국가
9
3
4
0
개인
1802
617
598
596
기업
1890
630
630
0
모든 손실의 단위는 오분류 비율입니다. 국가 성장률의 퍼센트, 임금의 센트/시간, 기업의 이탈 0/1은 표적을 만드는 원자료 단위이며 경계의 손실 단위와 다릅니다. 특징의 임계값과 후보 다섯 개를 바꾸면 새로운 분석 설계이므로, 이전 선택의 시험 손실을 새 설계의 선택 근거로 재사용하지 않습니다.
Compare candidates on a common frame within each role. If any candidate lacks an eligible loss for a row, exclude that row from all candidate means in that frame, while retaining the original row and reason. Otherwise, different denominators can masquerade as different predictive quality.
Roles were declared using a reproducible hash order of analytical IDs. This creates reproducible partitions, not independent countries or randomized data collection. NLS retains all 3613 original rows, evaluates 3017 with required values and records 596 missing-value exclusions. All 3150 company rows and sixteen country records remain in their declared scopes.
Actual common evaluation frames
Dataset
Training
Validation
Test
Required-value exclusions
Country
9
3
4
0
Person
1802
617
598
596
Company
1890
630
630
0
Loss units are misclassification fractions. Annual growth percentage points, cents per hour and native churn indicators are source quantities used to construct targets, not units of the generalization bound. Changing thresholds or the five-candidate class creates a new design; do not recycle its predecessor’s test score to choose the new design.
학부 심화 · 선택Advanced undergraduate · optional
실습:표본·유령・부호를 모두 세기Lab: enumerate samples, ghosts and signs
실습은 알려진 작은 확률 법칙을 입력으로 받습니다. 공정한 동전의 두 지지점 0과 1에 각각 질량 1/2를 놓고 손실을 Y,1−Y로 정의한 뒤 n=1부터 시작하세요. 모든 표본 평균, 참된 평균과의 최대 차이, 독립 유령 차이, 부호 평균을 나란히 읽습니다. 결과 1/2≤1/2≤1을 연습문제 37의 손계산과 맞추세요.
다음에는 n=4로 바꿉니다. 기대 한쪽 차이는 3/16, 기대 유령 최댓값은 35/128, 두 배 기대 부호 복잡도는 3/8입니다. 표본 경로의 확률은 같은 경로 개수가 아니라 각 지지점 질량의 곱입니다. 비대칭 p를 넣으면 경로마다 가중치가 달라집니다.
한 함수 Y만 남겨 함께 출력되는 절댓값 열을 비교하면 보통 부호 복잡도로 대체할 수 없는 이유가 보입니다. 질량을 0과 1로 바꿔 퇴화 법칙도 시험하세요. 소수 표시가 0처럼 보여도 정확 분수가 비영이면 표시 상태를 확인하고, 정확 분수와 전체 경로 표는 펼쳐 읽습니다. 이 실습은 선언한 유한 법칙의 계산이며 실제 자료의 알려지지 않은 P를 추정 완료한 화면이 아닙니다.
The lab accepts a fully specified small probability law. Start with support values zero and one, each of mass one half, losses Y and one minus Y, and n=1. Compare every empirical mean, population gap, independent-ghost gap and sign average. Match the inequality one half, one half, one with the hand calculation in Exercise 37.
Then use n=4. The expected one-sided gap is 3/16, expected ghost supremum is 35/128 and twice expected sign complexity is 3/8. A sample path’s weight is the product of support masses, not merely a count of paths. An asymmetric success probability gives different path weights.
Keep only Y and compare the simultaneously displayed absolute-value columns to see why ordinary sign complexity cannot replace its absolute counterpart. Try masses zero and one as degenerate laws. Inspect exact fractions when a tiny nonzero value rounds to zero, and expand full path tables when needed. This is a calculation under a declared finite law, not a completed estimate of the unknown population law behind an empirical dataset.
대학원Graduate
국가 사례:검증 0과 시험 1/2의 차이Country case: zero validation loss, one-half test loss
보관된 WDI의 2023년 1인당 GDP와 CPI 상승률을 입력으로, 2024년 총 GDP 성장률이 연간 2% 이상인지 결과로 정합니다. 1인당 GDP는 2015년 불변 미국 달러, CPI와 총 GDP 성장률은 각각 연간 백분율입니다. 서로 다른 지표를 모두 GDP라고 줄이지 마세요. 16개 국가의 세 원관측씩 48개 기록을 출처 행과 함께 보존합니다.
입력은 1인당 GDP≥25000과 CPI≤3의 두 이진 값이며, 다섯 후보는 항상 0, 항상 1, 첫 입력, 둘째 입력, 둘 중 하나입니다. 역할별 적격 행은 훈련 9, 검증 3, 시험 4입니다. 검증으로 고르면 둘째 입력 규칙이 3행에서 모두 맞습니다. 그러나 그 규칙의 훈련 손실은 2/3, 시험 손실은 1/2입니다. 검증 0은 새로운 국가의 위험 0이라는 뜻이 아닙니다.
고정 다섯 규칙의 국가 손실
규칙
훈련 9행
검증 3행
시험 4행
항상 0
2/3
1/3
1/2
항상 1
1/3
2/3
1/2
GDPpc≥25000
5/9
1
1/2
CPI≤3 · 검증 선택
2/3
0
1/2
둘 중 하나
5/9
2/3
1/2
한국 원관측은 2023년 1인당 GDP 36347.7036392553, CPI 상승률 3.5974562502901, 2024년 성장률 2.00361101838986입니다. 이 설정에서 x=(1,0), y=1이므로 CPI 규칙은 틀립니다. 임계값 2 바로 위의 성장률을 화면에서 정수 2로 반올림한 뒤 표적을 만들지 않고, 원 수치를 그대로 비교합니다.
나라마다 같은 제도·측정 품질·독립성이 보장되지 않고 자료는 개정 스냅샷입니다. 이 사례는 실제 숫자로 선택과 평가의 분모를 이해하는 연습입니다. 국가 정책의 인과 효과, 모집단 국가의 IID 표본, 당시 이용 가능한 예측 빈티지로 해석하지 않습니다. 아래 장부에서 모든 국가와 다섯 규칙의 손실을 대조할 수 있습니다.
검증 3행에서의 완전 적중을 조사하기
훈련에서 항상 1은 1/3을 틀리고 CPI 규칙은 2/3을 틀립니다. 그런데 검증은 CPI 규칙을 고릅니다. 선택 역할의 3행에 우연히 잘 맞은 결과와 학습한 규칙의 표현 범위를 구별하세요. 시험에서는 모든 후보가 1/2로 동률입니다. 시험 동률을 보고 CPI 임계값을 다시 조정하면 새 선택 과정이므로 별도 평가 설계가 필요합니다.
한국의 시험 행을 따라가기
원 성장률 2.00361101838986을 2와 비교하여 y=1을 만듭니다. CPI 3.5974562502901은 3보다 커 x₁=0, 따라서 선택 규칙의 한 행 손실은 1입니다. 표적을 만들기 전 원수치를 반올림하면 임계값 근처 사건을 바꿀 수 있습니다. 출처 행 세 개와 파생 국가 행을 모두 대조하세요.
원자료와 선택 과정을 모두 읽기
큰 표는 처음 10행을 보이고 모든 행을 페이지로 제공합니다. 전체 행 데이터는 버튼을 누를 때 한 번만 불러오며 한영 표가 같은 원값을 공유합니다. 그래프의 원본 확대·다운로드도 유지합니다.
Use retained WDI observations for 2023 GDP per capita and CPI inflation to construct inputs, and annual total GDP growth of at least two percent in 2024 as the outcome. GDP per capita is in constant 2015 US dollars; CPI inflation and total GDP growth are annual percentages. These are distinct indicators. Retain all forty-eight source observations for sixteen countries and their lineage rows.
The binary inputs are GDP per capita at least 25000 and CPI inflation at most three. Candidates predict constant zero, constant one, the first input, the second input, or their OR. There are nine training, three validation and four test records. Validation selects the CPI rule with no validation errors, but its training loss is two thirds and test loss one half. Zero validation error does not establish zero risk on new countries.
Country losses for the fixed five rules
Rule
Training: 9
Validation: 3
Test: 4
Constant zero
2/3
1/3
1/2
Constant one
1/3
2/3
1/2
GDPpc≥25000
5/9
1
1/2
CPI≤3 · validation choice
2/3
0
1/2
OR
5/9
2/3
1/2
Korea’s retained values are 36347.7036392553 for 2023 GDP per capita, 3.5974562502901 for CPI inflation and 2.00361101838986 for 2024 growth. Thus x=(1,0), y=1 and the CPI rule makes an error. Construct the target from the unrounded source value rather than rounding growth to the displayed integer two.
Countries need not share identical institutions, measurement quality or independent shocks, and this is a revised snapshot. The exercise uses real numbers to understand selection and evaluation denominators. It does not identify policy effects, establish IID country sampling or recreate a historical forecast vintage. The ledger below exposes every country and candidate loss.
Investigate a perfect three-row validation score
Constant one makes training error one third, while the CPI rule makes two thirds. Validation nevertheless selects CPI. Distinguish a match to three selection observations from the class’s representational ability. Every rule ties at one half on test. Retuning CPI after viewing that tie creates another selection procedure needing its own assessment.
Trace Korea’s held row
Compare raw growth 2.00361101838986 with two to obtain y=1. CPI inflation 3.5974562502901 exceeds three, so x1=0 and the chosen rule loses one. Rounding before target construction can alter events near a threshold. Compare all three native lineage rows with the derived country record.
Read native observations and the complete selection ledger
Large tables initially show ten rows and expose every row through paging. Full data are loaded once on demand and shared across language views. Original figures remain available for enlargement and download.
Every native field and source row
Every native field and source row
sourceRow
countryISO3
countryID
countryName
indicatorID
indicatorName
date
originalValueToken
unit
obs_status
decimal
1
AUS
AU
Australia
NY.GDP.MKTP.KD.ZG
GDP growth (annual %)
2024
≈ 1.3734081.37340773365975
—
—
1
46
BRA
BR
Brazil
NY.GDP.MKTP.KD.ZG
GDP growth (annual %)
2024
≈ 3.4193153.41931516501906
—
—
1
91
CAN
CA
Canada
NY.GDP.MKTP.KD.ZG
GDP growth (annual %)
2024
≈ 2.0462662.04626605401701
—
—
1
136
CHN
CN
China
NY.GDP.MKTP.KD.ZG
GDP growth (annual %)
2024
≈ 4.9583044.95830378788091
—
—
1
181
DEU
DE
Germany
NY.GDP.MKTP.KD.ZG
GDP growth (annual %)
2024
≈ -0.4958519-0.495851897260366
—
—
1
226
FRA
FR
France
NY.GDP.MKTP.KD.ZG
GDP growth (annual %)
2024
≈ 1.1904681.19046798275883
—
—
1
271
GBR
GB
United Kingdom
NY.GDP.MKTP.KD.ZG
GDP growth (annual %)
2024
≈ 1.0802771.08027716858781
—
—
1
316
IDN
ID
Indonesia
NY.GDP.MKTP.KD.ZG
GDP growth (annual %)
2024
≈ 5.0325755.03257477088519
—
—
1
361
IND
IN
India
NY.GDP.MKTP.KD.ZG
GDP growth (annual %)
2024
≈ 7.0992797.09927893176518
—
—
1
406
JPN
JP
Japan
NY.GDP.MKTP.KD.ZG
GDP growth (annual %)
2024
≈ -0.2400842-0.240084236041696
—
—
1
Rows 1–10 of 48. Use the page controls below to read every row.
Every row: role, features, target, five predictions and losses
Every row: role, features, target, five predictions and losses
case
id
sourceRow
originalID
splitRank
plannedRole
role
x0
x1
y
prediction_constant0
prediction_constant1
prediction_feature0
prediction_feature1
prediction_or
loss_constant0
loss_constant1
loss_feature0
loss_feature1
loss_or
country
AUS:2024
1
AUS
6
validation
validation
1
0
0
0
1
1
0
1
0
1
1
0
1
country
BRA:2024
46
BRA
13
train
train
0
0
1
0
1
0
0
0
1
0
1
1
1
country
CAN:2024
91
CAN
7
train
train
1
0
1
0
1
1
0
1
1
0
0
1
0
country
CHN:2024
136
CHN
1
validation
validation
0
1
1
0
1
0
1
1
1
0
1
0
0
country
DEU:2024
181
DEU
11
validation
validation
1
0
0
0
1
1
0
1
0
1
1
0
1
country
FRA:2024
226
FRA
15
test
test
1
0
0
0
1
1
0
1
0
1
1
0
1
country
GBR:2024
271
GBR
0
test
test
1
0
0
0
1
1
0
1
0
1
1
0
1
country
IDN:2024
316
IDN
8
train
train
0
0
1
0
1
0
0
0
1
0
1
1
1
country
IND:2024
361
IND
14
train
train
0
0
1
0
1
0
0
0
1
0
1
1
1
country
JPN:2024
406
JPN
12
train
train
1
0
0
0
1
1
0
1
0
1
1
0
1
Rows 1–10 of 16. Use the page controls below to read every row.
Common denominators and losses for every role and rule
Common denominators and losses for every role and rule
case
role
hypothesis
n
errorCount
meanLoss
country
train
constant0
9
6
2/3
country
train
constant1
9
3
1/3
country
train
feature0
9
5
5/9
country
train
feature1
9
6
2/3
country
train
or
9
5
5/9
country
validation
constant0
3
1
1/3
country
validation
constant1
3
2
2/3
country
validation
feature0
3
3
1
country
validation
feature1
3
0
0
country
validation
or
3
2
2/3
Rows 1–10 of 15. Use the page controls below to read every row.
Training selection and validation selection ledgers
Training selection and validation selection ledgers
Separate theorem inputs from empirical assumptions
The widths approximate conditional symbolic formulas using M=5 and delta=0.05 in each role. Several individual delta levels do not automatically form one joint guarantee. This table does not observe population risk or establish actual IID sampling.
Symbolic factors and approximations of role-wise conditional bounds
case
role
n
delta
finiteClassM
squareFactor
logArgument
widthApprox
vacuousApprox
singleFixedRuleWidthApprox
assumptionsEstablished
country
train
9
1/20
5
1/18
200
≈ 0.54254120.5425412102395765
0
≈ 0.45270050.45270050524687316
0
country
validation
3
1/20
5
1/6
200
≈ 0.93970890.9397089413348544
0
≈ 0.78410030.7841002756996854
0
country
test
4
1/20
5
1/8
200
≈ 0.81381180.8138118153593646
0
≈ 0.67905080.6790507578703098
0
Vector norms and bounds using every training observation
Summary quantities with units and arithmetic scope
case
metric
value
unit
arithmetic
country
retainedRows
16
rows
exact rational/integer
country
excludedRows
0
rows
exact rational/integer
country
trainRows
9
rows
exact rational/integer
country
trainRisk:constant0
2/3
misclassification fraction
exact rational/integer
country
trainRisk:constant1
1/3
misclassification fraction
exact rational/integer
country
trainRisk:feature0
5/9
misclassification fraction
exact rational/integer
country
trainRisk:feature1
2/3
misclassification fraction
exact rational/integer
country
trainRisk:or
5/9
misclassification fraction
exact rational/integer
country
trainFiniteWidthApprox
≈ 0.54254120.5425412102395765
misclassification fraction
binary64 log/root approximation
country
validationRows
3
rows
exact rational/integer
Rows 1–10 of 38. Use the page controls below to read every row.
Research questions
With common national shocks, what sampling unit and population can be declared? How does repeatedly splitting the same revised observations differ from observing new independent countries? What additional design would support a policy-cause claim?
개인 사례:임금의 단위와 선택 분모Person case: wage units and selection denominators
Card가 공개한 NLS 교육·임금 원자료 3613행, 52개 원필드를 보존합니다. 이 장의 표적은 원 wage76가 시간당 명목 500센트 이상인지입니다. 교육 연수 ed76가 12 이상인지와 nearc4가 1인지 두 특징을 씁니다. 1976년 명목 임금을 현재 가치의 빈곤선이나 실질 구매력으로 바꾸어 부르지 않습니다.
필수값이 빠진 596행은 원자료에 남기고 분석에서 제외합니다. 적격 행 3017개는 훈련 1802, 검증 617, 시험 598로 나뉩니다. 교육 연수 규칙은 검증 227/617로 선택되고, 시험에서 228/598=114/299만큼 틀립니다. 각 비율은 역할별 같은 공통 행의 오분류율입니다.
개인 자료의 다섯 규칙
규칙
훈련 1802행
검증 617행
시험 598행
항상 0
1035/1802
354/617
172/299
항상 1
767/1802
263/617
127/299
ed76≥12 · 검증 선택
330/901
227/617
114/299
nearc4=1
362/901
272/617
121/299
둘 중 하나
347/901
235/617
9/23
원자료 1행의 원 ID는 2입니다. 교육은 7년, nearc4는 0, 원 임금은 548센트/시간이므로 x=(0,0), y=1입니다. 교육 규칙은 이 한 사람에서 틀립니다. 행 위치 1을 원 ID 1이라고 부르지 않습니다. 자료 장부는 둘 다 표시합니다.
교육 규칙의 예측 성적은 교육을 늘렸을 때 같은 사람의 임금이 얼마나 변하는지 말해 주지 않습니다. 능력·가족·지역과 선택 등 별도 인과 문제가 남습니다. 이 장은 다섯 고정 규칙의 위험과 일반화 이론의 역할을 비교하며 원 논문의 IV 추정을 복제한다고 주장하지 않습니다.
같은 사람의 예측 손실과 교육 효과 구별하기
검증은 교육 연수 규칙을 고르지만, 이 결과는 같은 사람에게 교육을 추가하는 개입의 효과가 아닙니다. 단순한 임금 사건의 예측을 교육의 수익률로 바꾸지 마세요. 근접 대학 변수도 여기서는 고정 예측 특징이며 IV의 배제 제약을 이 예측 성적으로 확인하지 않습니다.
원자료 1행·원 ID 2를 따라가기
교육 7년은 x₀=0, nearc4=0은 x₁=0, 원 임금 548센트/시간은 y=1입니다. 항상 0·교육·근접성·OR은 모두 틀리고 항상 1만 맞습니다. 이 한 행이 속한 훈련 틀의 전체 분모는 1802입니다. 결측 596행의 원필드를 지우지 말고 계획 역할과 제외를 확인하세요.
원자료와 선택 과정을 모두 읽기
큰 표는 처음 10행을 보이고 모든 행을 페이지로 제공합니다. 전체 행 데이터는 버튼을 누를 때 한 번만 불러오며 한영 표가 같은 원값을 공유합니다. 그래프의 원본 확대·다운로드도 유지합니다.
Retain all 3613 rows and fifty-two native fields from Card’s public NLS education and wage data. The target is raw wage76 of at least 500 nominal cents per hour. Inputs indicate ed76 of at least twelve and nearc4 equal to one. A nominal 1976 wage threshold is neither a current poverty line nor a real purchasing-power measure.
Keep 596 rows with missing required values in the original ledger and exclude them analytically. The 3017 eligible observations comprise 1802 training, 617 validation and 598 test rows. Validation selects the schooling rule with loss 227/617; its test error is 228/598, or 114/299. Each fraction uses its role’s common candidate frame.
Five rules on the person data
Rule
Training: 1802
Validation: 617
Test: 598
Constant zero
1035/1802
354/617
172/299
Constant one
767/1802
263/617
127/299
ed76≥12 · validation choice
330/901
227/617
114/299
nearc4=1
362/901
272/617
121/299
OR
347/901
235/617
9/23
Source row one has native ID two, seven years of schooling, nearc4 zero and raw wage 548 cents per hour. Therefore x=(0,0), y=1 and the schooling rule misses this person. Row position one is not native ID one; the ledger exposes both.
Predictive performance of a schooling rule does not tell us how changing one person’s education would change that person’s wage. Ability, family, region and selection raise separate causal questions. This is a fixed-class prediction exercise, not a replication of the original paper’s IV estimates.
Separate a person’s prediction loss from an education effect
Validation chooses the schooling rule, but that result is not the effect of giving the same person more education. A raw-wage event prediction is not a return-to-schooling estimate. College proximity is a declared predictor here, and predictive accuracy does not verify an IV exclusion restriction.
Trace source row one, native ID two
Seven years of education gives x0=0, nearc4 zero gives x1=0, and raw wage 548 cents per hour gives y=1. Constant zero, schooling, proximity and OR all miss; only constant one is correct. The complete training denominator containing this record is 1802. Keep all native fields for the 596 exclusions and inspect planned roles.
Read native observations and the complete selection ledger
Large tables initially show ten rows and expose every row through paging. Full data are loaded once on demand and shared across language views. Original figures remain available for enlargement and download.
Every native field and source row
Every native field and source row
sourceRow
id
nearc2
nearc4
nearc4a
nearc4b
ed76
ed66
age76
daded
nodaded
momed
nomomed
weight
momdad14
sinmom14
step14
reg661
reg662
reg663
reg664
reg665
reg666
reg667
reg668
reg669
south66
work76
work78
lwage76
lwage78
famed
black
smsa76r
smsa78r
reg76r
reg78r
reg80r
smsa66r
wage76
wage78
wage80
noint78
noint80
enroll76
enroll78
enroll80
kww
iq
marsta76
marsta78
marsta80
libcrd14
derivedX0SchoolingAtLeast12
derivedX1Nearc4
derivedYRawWageAtLeast500Cents
splitRank
plannedRole
role
1
2
0
0
0
0
7
5
29
9.94
1
10.25
1
158413
1
0
0
1
0
0
0
0
0
0
0
0
0
1
1
6.30627529
6.07484616
9
1
1
1
0
0
0
1
548
500
755
0
0
0
0
0
15
.
1
1
1
0
0
0
1
1672
train
train
2
3
0
0
0
0
12
11
27
8.00
0
8.00
0
380166
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
6.17586727
.
8
0
1
1
0
0
0
1
481
.
769
0
0
0
0
0
35
93
1
4
4
1
1
0
0
965
test
test
3
4
0
0
0
0
12
12
34
14.00
0
12.00
0
367470
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
6.58063914
.
2
0
1
.
0
.
.
1
721
.
.
1
1
0
.
.
42
103
1
.
.
1
1
0
1
1151
validation
validation
4
5
1
1
1
0
11
11
27
11.00
0
12.00
0
380166
1
0
0
0
1
0
0
0
0
0
0
0
0
1
0
5.52146092
.
6
0
1
.
0
.
0
1
250
.
.
1
0
0
.
0
25
88
1
.
5
1
0
1
0
2825
test
test
5
6
1
1
1
0
12
12
34
8.00
0
7.00
0
367470
1
0
0
0
1
0
0
0
0
0
0
0
0
1
1
6.59167373
6.54484979
8
0
1
1
0
0
.
1
729
800
.
0
1
0
0
.
34
108
1
1
.
0
1
1
1
3461
validation
validation
6
7
1
1
1
0
12
11
26
9.00
0
12.00
0
380166
1
0
0
0
1
0
0
0
0
0
0
0
0
1
1
6.21460810
6.19351769
6
0
1
1
0
0
0
1
500
563
630
0
0
0
0
0
38
85
1
4
4
1
1
1
1
2894
train
train
7
8
1
1
1
0
18
16
33
14.00
0
14.00
0
367470
1
0
0
0
1
0
0
0
0
0
0
0
0
1
1
6.33682573
6.46553598
1
0
1
1
0
0
0
1
565
739
808
0
0
0
0
0
41
119
1
1
1
1
1
1
1
2031
validation
validation
8
9
1
1
1
0
14
13
29
14.00
0
14.00
0
496635
1
0
0
0
1
0
0
0
0
0
0
0
0
1
1
6.41017488
6.53100438
1
0
1
1
0
0
0
1
608
789
825
0
0
0
0
0
46
108
1
1
1
1
1
1
1
2872
train
train
9
10
1
1
1
0
12
12
28
12.00
0
12.00
0
367772
1
0
0
0
1
0
0
0
0
0
0
0
0
1
1
6.05208917
6.14809662
3
0
1
1
0
0
0
1
425
538
650
0
0
0
0
0
32
96
4
4
4
0
1
1
0
1176
validation
validation
10
11
1
1
1
0
12
12
29
12.00
0
12.00
0
480445
1
0
0
0
1
0
0
0
0
0
0
0
0
1
1
6.24416690
6.25716771
3
0
1
1
0
0
0
1
515
600
600
0
0
0
0
0
34
97
1
1
1
1
1
1
1
657
train
train
Rows 1–10 of 3613. Use the page controls below to read every row.
Every row: role, features, target, five predictions and losses
Every row: role, features, target, five predictions and losses
case
id
sourceRow
originalID
splitRank
plannedRole
role
x0
x1
y
prediction_constant0
prediction_constant1
prediction_feature0
prediction_feature1
prediction_or
loss_constant0
loss_constant1
loss_feature0
loss_feature1
loss_or
person
person-row:1
1
2
1672
train
train
0
0
1
0
1
0
0
0
1
0
1
1
1
person
person-row:2
2
3
965
test
test
1
0
0
0
1
1
0
1
0
1
1
0
1
person
person-row:3
3
4
1151
validation
validation
1
0
1
0
1
1
0
1
1
0
0
1
0
person
person-row:4
4
5
2825
test
test
0
1
0
0
1
0
1
1
0
1
0
1
1
person
person-row:5
5
6
3461
validation
validation
1
1
1
0
1
1
1
1
1
0
0
0
0
person
person-row:6
6
7
2894
train
train
1
1
1
0
1
1
1
1
1
0
0
0
0
person
person-row:7
7
8
2031
validation
validation
1
1
1
0
1
1
1
1
1
0
0
0
0
person
person-row:8
8
9
2872
train
train
1
1
1
0
1
1
1
1
1
0
0
0
0
person
person-row:9
9
10
1176
validation
validation
1
1
0
0
1
1
1
1
0
1
1
1
1
person
person-row:10
10
11
657
train
train
1
1
1
0
1
1
1
1
1
0
0
0
0
Rows 1–10 of 3613. Use the page controls below to read every row.
Common denominators and losses for every role and rule
Common denominators and losses for every role and rule
case
role
hypothesis
n
errorCount
meanLoss
person
train
constant0
1802
1035
1035/1802
person
train
constant1
1802
767
767/1802
person
train
feature0
1802
660
330/901
person
train
feature1
1802
724
362/901
person
train
or
1802
694
347/901
person
validation
constant0
617
354
354/617
person
validation
constant1
617
263
263/617
person
validation
feature0
617
227
227/617
person
validation
feature1
617
272
272/617
person
validation
or
617
235
235/617
Rows 1–10 of 15. Use the page controls below to read every row.
Training selection and validation selection ledgers
Training selection and validation selection ledgers
Separate theorem inputs from empirical assumptions
The widths approximate conditional symbolic formulas using M=5 and delta=0.05 in each role. Several individual delta levels do not automatically form one joint guarantee. This table does not observe population risk or establish actual IID sampling.
Symbolic factors and approximations of role-wise conditional bounds
case
role
n
delta
finiteClassM
squareFactor
logArgument
widthApprox
vacuousApprox
singleFixedRuleWidthApprox
assumptionsEstablished
person
train
1802
1/20
5
1/3604
200
≈ 0.038342160.038342161596184615
0
≈ 0.031992990.031992990761356664
0
person
validation
617
1/20
5
1/1234
200
≈ 0.065525660.06552566007666777
0
≈ 0.054675110.05467510829314422
0
person
test
598
1/20
5
1/1196
200
≈ 0.066558480.06655847987246359
0
≈ 0.05553690.05553690097278099
0
Vector norms and bounds using every training observation
Summary quantities with units and arithmetic scope
case
metric
value
unit
arithmetic
person
retainedRows
3613
rows
exact rational/integer
person
excludedRows
596
rows
exact rational/integer
person
trainRows
1802
rows
exact rational/integer
person
trainRisk:constant0
1035/1802
misclassification fraction
exact rational/integer
person
trainRisk:constant1
767/1802
misclassification fraction
exact rational/integer
person
trainRisk:feature0
330/901
misclassification fraction
exact rational/integer
person
trainRisk:feature1
362/901
misclassification fraction
exact rational/integer
person
trainRisk:or
347/901
misclassification fraction
exact rational/integer
person
trainFiniteWidthApprox
≈ 0.038342160.038342161596184615
misclassification fraction
binary64 log/root approximation
person
validationRows
617
rows
exact rational/integer
Rows 1–10 of 38. Use the page controls below to read every row.
Research questions
What price and currency information would be needed for a current-purchasing-power wage event? If missing records differ, to whom can complete-case performance transfer? Can a role hash replace the original survey design?
기업 사례:고객 이탈과 실제 기준선Company case: churn against a factual baseline
UCI Iranian Churn의 3150행, 14개 원필드를 모두 사용합니다. 공식 설명은 첫 9개월 동안의 특징으로 12개월 말 이탈을 기록한 자료입니다. 교육용 특징은 불만 여부와 통화 실패 횟수≥5이며, 결과는 원 이탈 0/1입니다. 분석 ID는 행 위치이므로 영구 고객 번호나 기업명으로 해석하지 않습니다. 원 Charge Amount가 10인 7행도 보존합니다.
훈련 1890, 검증 630, 시험 630행입니다. 검증은 불만 여부 규칙을 고르고 시험 오분류는 67/630입니다. 항상 잔류를 예측하는 기준선의 시험 오분류는 97/630이므로, 같은 시험 행에서의 차이는 30/630=1/21입니다. 이것은 관측된 예측 오차 차이이며 불만 처리 정책의 이탈 감소 효과가 아닙니다.
기업의 다섯 규칙
규칙
훈련 1890행
검증 630행
시험 630행
항상 0
148/945
17/105
97/630
항상 1
797/945
88/105
533/630
불만 여부 · 검증 선택
67/630
34/315
67/630
통화 실패≥5
113/189
347/630
4/7
둘 중 하나
1097/1890
167/315
349/630
첫 원행은 불만 0, 통화 실패 8, 이탈 0입니다. 불만 규칙은 맞고 통화 실패 규칙은 틀립니다. 두 규칙이 같은 자료를 쓰더라도 각 관측에서의 오류가 다르므로, 정확도 차이의 추론을 하려면 짝지어진 손실과 표본 설계를 고려해야 합니다. 두 비율만 독립 표본처럼 다루지 않습니다.
전체 훈련 1890행의 Massart 상한 약 0.037900과 정해 둔 12행의 정확 부호 평균 1637/12288을 나란히 읽으세요. 앞 값은 모든 행의 손실 벡터로 만든 상한이고 뒤 값은 작은 표의 정확 복잡도입니다. 낮은 소수 하나를 골라 이 기업의 미래 성과 보장이라고 붙이지 않습니다.
실제 기준선보다 나은가를 먼저 묻기
시험 양성 97/630이므로 항상 0 규칙도 오류가 약 15.4%입니다. 불만 규칙의 67/630을 전체 정확도만으로 칭찬하기 전에 같은 행 기준선과 비교하세요. 두 규칙의 오류 차이는 1/21이고, 표본 설계와 짝지어진 오류를 보지 않은 인과·유의성 주장은 피합니다.
원 1행에서 두 특징의 오류 구별하기
불만은 0, 통화 실패는 8, 실제 이탈은 0입니다. 불만 규칙은 0을 예측해 맞고 실패≥5 규칙은 1을 예측해 틀립니다. 같은 표에서 규칙을 비교할 때 원 단위·결과 시점·다섯 후보를 고정하는 이유가 보입니다. Charge Amount=10인 7행은 원자료 범위를 그대로 보존합니다.
원자료와 선택 과정을 모두 읽기
큰 표는 처음 10행을 보이고 모든 행을 페이지로 제공합니다. 전체 행 데이터는 버튼을 누를 때 한 번만 불러오며 한영 표가 같은 원값을 공유합니다. 그래프의 원본 확대·다운로드도 유지합니다.
Use all 3150 rows and fourteen native fields of UCI Iranian Churn. The official description places features in the first nine months and churn at the end of month twelve. Educational inputs are complaint status and at least five call failures; the outcome is native binary churn. Analytical row IDs are neither permanent customer identities nor company names. Preserve the seven native Charge Amount values equal to ten.
The roles contain 1890 training, 630 validation and 630 test observations. Validation selects the complaint rule, whose test error is 67/630. Always predicting retention gives 97/630 on the same test rows, a difference of 30/630, or 1/21. This is an observed predictive-error difference, not the causal effect of a complaint-handling policy.
Five rules on the company data
Rule
Training: 1890
Validation: 630
Test: 630
Constant zero
148/945
17/105
97/630
Constant one
797/945
88/105
533/630
Complaint · validation choice
67/630
34/315
67/630
Call failures≥5
113/189
347/630
4/7
OR
1097/1890
167/315
349/630
The first source record has no complaint, eight call failures and no churn. The complaint rule is correct while the call-failure rule is wrong. Inference for their performance difference must account for paired losses and sampling design, rather than treating two rates on identical rows as independent samples.
Compare the full-training Massart upper bound, approximately 0.037900, with the declared twelve-row audit’s exact sign mean 1637/12288. One uses every training loss vector to bound complexity; the other exactly measures complexity on a smaller table. Neither is automatically a future performance guarantee for this company.
First compare with a factual baseline
Test prevalence is 97/630, so an always-retention rule already has error around 15.4 percent. Compare the complaint rule’s 67/630 against that same-row baseline before praising overall accuracy. The difference is 1/21; causal or significance claims require additional design and paired-error information.
Distinguish the two feature errors on row one
There is no complaint, eight call failures and no churn. The complaint rule correctly predicts zero; the at-least-five-failures rule incorrectly predicts one. The comparison illustrates why source units, outcome timing and candidates must be declared. Keep all seven native Charge Amount codes equal to ten.
Read native observations and the complete selection ledger
Large tables initially show ten rows and expose every row through paging. Full data are loaded once on demand and shared across language views. Original figures remain available for enlargement and download.
Every native field and source row
Every native field and source row
sourceRow
Call Failure
Complains
Subscription Length
Charge Amount
Seconds of Use
Frequency of use
Frequency of SMS
Distinct Called Numbers
Age Group
Tariff Plan
Status
Age
Customer Value
Churn
derivedX0Complaints
derivedX1CallFailuresAtLeast5
derivedYNativeChurn
splitRank
plannedRole
role
1
8
0
38
0
4370
71
5
17
3
1
1
30
197.64
0
0
1
0
2439
train
train
2
0
0
39
0
318
5
7
4
2
1
2
25
46.035
0
0
0
0
916
validation
validation
3
10
0
37
0
2453
60
359
24
3
1
1
30
1536.52
0
0
1
0
127
train
train
4
10
0
38
0
4198
66
1
35
1
1
1
15
240.02
0
0
1
0
2498
train
train
5
3
0
38
0
2393
58
2
33
1
1
1
15
145.805
0
0
0
0
2301
validation
validation
6
11
0
38
1
3775
82
32
28
3
1
1
30
282.28
0
0
1
0
3045
test
test
7
4
0
38
0
2360
39
285
18
3
1
1
30
1235.96
0
0
0
0
460
test
test
8
13
0
37
2
9115
121
144
43
3
1
1
30
945.44
0
0
1
0
1241
validation
validation
9
7
0
38
0
13773
169
0
44
3
1
1
30
557.68
0
0
1
0
694
train
train
10
7
0
38
1
4515
83
2
25
3
1
1
30
191.92
0
0
1
0
2397
train
train
Rows 1–10 of 3150. Use the page controls below to read every row.
Every row: role, features, target, five predictions and losses
Every row: role, features, target, five predictions and losses
case
id
sourceRow
originalID
splitRank
plannedRole
role
x0
x1
y
prediction_constant0
prediction_constant1
prediction_feature0
prediction_feature1
prediction_or
loss_constant0
loss_constant1
loss_feature0
loss_feature1
loss_or
company
customer-row:1
1
—
2439
train
train
0
1
0
0
1
0
1
1
0
1
0
1
1
company
customer-row:2
2
—
916
validation
validation
0
0
0
0
1
0
0
0
0
1
0
0
0
company
customer-row:3
3
—
127
train
train
0
1
0
0
1
0
1
1
0
1
0
1
1
company
customer-row:4
4
—
2498
train
train
0
1
0
0
1
0
1
1
0
1
0
1
1
company
customer-row:5
5
—
2301
validation
validation
0
0
0
0
1
0
0
0
0
1
0
0
0
company
customer-row:6
6
—
3045
test
test
0
1
0
0
1
0
1
1
0
1
0
1
1
company
customer-row:7
7
—
460
test
test
0
0
0
0
1
0
0
0
0
1
0
0
0
company
customer-row:8
8
—
1241
validation
validation
0
1
0
0
1
0
1
1
0
1
0
1
1
company
customer-row:9
9
—
694
train
train
0
1
0
0
1
0
1
1
0
1
0
1
1
company
customer-row:10
10
—
2397
train
train
0
1
0
0
1
0
1
1
0
1
0
1
1
Rows 1–10 of 3150. Use the page controls below to read every row.
Common denominators and losses for every role and rule
Common denominators and losses for every role and rule
case
role
hypothesis
n
errorCount
meanLoss
company
train
constant0
1890
296
148/945
company
train
constant1
1890
1594
797/945
company
train
feature0
1890
201
67/630
company
train
feature1
1890
1130
113/189
company
train
or
1890
1097
1097/1890
company
validation
constant0
630
102
17/105
company
validation
constant1
630
528
88/105
company
validation
feature0
630
68
34/315
company
validation
feature1
630
347
347/630
company
validation
or
630
334
167/315
Rows 1–10 of 15. Use the page controls below to read every row.
Training selection and validation selection ledgers
Training selection and validation selection ledgers
Separate theorem inputs from empirical assumptions
The widths approximate conditional symbolic formulas using M=5 and delta=0.05 in each role. Several individual delta levels do not automatically form one joint guarantee. This table does not observe population risk or establish actual IID sampling.
Symbolic factors and approximations of role-wise conditional bounds
case
role
n
delta
finiteClassM
squareFactor
logArgument
widthApprox
vacuousApprox
singleFixedRuleWidthApprox
assumptionsEstablished
company
train
1890
1/20
5
1/3780
200
≈ 0.03743890.03743890037102511
0
≈ 0.03123930.03123930273677499
0
company
validation
630
1/20
5
1/1260
200
≈ 0.064846080.06484607762212478
0
≈ 0.054108060.05410805953311976
0
company
test
630
1/20
5
1/1260
200
≈ 0.064846080.06484607762212478
0
≈ 0.054108060.05410805953311976
0
Vector norms and bounds using every training observation
Summary quantities with units and arithmetic scope
case
metric
value
unit
arithmetic
company
retainedRows
3150
rows
exact rational/integer
company
excludedRows
0
rows
exact rational/integer
company
trainRows
1890
rows
exact rational/integer
company
trainRisk:constant0
148/945
misclassification fraction
exact rational/integer
company
trainRisk:constant1
797/945
misclassification fraction
exact rational/integer
company
trainRisk:feature0
67/630
misclassification fraction
exact rational/integer
company
trainRisk:feature1
113/189
misclassification fraction
exact rational/integer
company
trainRisk:or
1097/1890
misclassification fraction
exact rational/integer
company
trainFiniteWidthApprox
≈ 0.03743890.03743890037102511
misclassification fraction
binary64 log/root approximation
company
validationRows
630
rows
exact rational/integer
Rows 1–10 of 38. Use the page controls below to read every row.
Research questions
What changes if complaint information was recorded after the outcome? What randomized intervention or counterfactual design could identify a complaint-handling effect? What supports transferring Iranian customer composition and laws to another market?
실습:실제 자료의 세 종류 증거Lab: three kinds of evidence from actual data
자료를 국가·개인·기업으로 바꾸면서 먼저 원관측 수, 적격 수, 역할별 분모와 선택 규칙을 확인하세요. 다섯 후보의 훈련·검증·시험 손실을 같은 행 틀에서 읽고, 선택 역할을 훈련으로 바꾸면 어떤 규칙이 달라지는지 기록합니다. 시험은 선택 역할로 허용하지 않습니다.
다음은 완전한 네 이진 입력 상태에서의 VC 차원 2를 확인합니다. 이것은 명시한 다섯 규칙의 전역 유한 영역 계산입니다. 데이터에 나타난 입력 상태만 보고 차원을 추측한 값이 아닙니다. 이어 전체 훈련 행의 Massart 상한과 최대 12행의 정확 부호 감사를 분리해 봅니다.
마지막은 훈련 양성 비율을 확률로 선언한 새 IID 동전 세계입니다. n=1과 4를 비교하고, 기대 차이·유령·부호의 정확 분수 관계를 확인하세요. 화면의 원관측 손실, 유한 함수군 계산, 가정한 동전 세계의 확률은 서로 다른 증거입니다. δ를 낮추면 수학 경계는 넓어져야 하지만 원관측과 다섯 규칙의 경험 손실은 바뀌지 않아야 합니다.
Switch among country, person and company data. First inspect native counts, eligibility, role denominators and the chosen rule. Compare all five rules on common role frames and record what changes when training replaces validation as the selection role. Test is never an allowed selection role.
Next inspect VC dimension two on the complete four-state binary domain. This is a global finite-domain calculation for the declared five functions, not an inference from only the input states observed in one sample. Keep full-training Massart bounds separate from exact sign audits of at most twelve rows.
Finally inspect a new IID coin world whose declared success probability is training prevalence. Compare sample sizes one and four and verify exact gap, ghost and sign inequalities. Observed losses, finite-class combinatorics and probabilities under a fitted toy law are different evidence. Lowering delta should widen theorem bounds without changing factual observations or their empirical losses.
대학원Graduate
대학원 프로젝트:정리를 적용하는 계약 쓰기Graduate project: write an application contract
자신이 사용할 정리의 좌변을 먼저 쓰세요. 한 후보의 R−R̂인지, 전체 후보의 sup인지, 절댓값인지에 따라 오른쪽의 후보 수와 부호 정의가 달라집니다. 표본의 단위·목표 P·정보 시점·손실 범위·선택 절차·실패 확률 예산을 한 페이지에 적습니다. 그다음에 수치를 계산합니다.
프로젝트는 두 부분입니다. 첫째, 알려진 두 점 법칙에서 n=1…4의 모든 경로를 열거하여 한쪽·절댓값 symmetrization을 각각 검산합니다. 둘째, 실제 자료 한 종류에서 원필드→두 특징→다섯 예측→역할별 손실→선택 규칙을 재현합니다. 알려진 법칙의 정확 부등식을 실제 관측의 알려지지 않은 P에 대한 증명이라고 합치지 않습니다.
확장 과제는 분류 손실의 부호 변환 항등식입니다. yᵢ가 0/1로 고정되어 있을 때 손실은 yᵢ+(1−2yᵢ)h(xᵢ)입니다. 부호를 바꿔도 독립 공정 부호의 법칙은 같으므로 보통 Rademacher 복잡도에서 공통 y항은 기대 0이 됩니다. 따라서 같은 입력 표에서 고정 0/1 정답을 바꾸어도 이 보통 복잡도는 변하지 않습니다. 절댓값 버전은 공통 이동에 일반적으로 불변이 아니므로 따로 검토합니다.
Write the theorem’s left side first. A fixed candidate gap, a uniform supremum and an absolute supremum need different right-side class counts or sign definitions. Declare the sampling unit, target law, information timing, loss range, selection procedure and failure budget before calculating.
The project has two parts. Enumerate all paths for sample sizes one through four under a known two-point law, checking one-sided and absolute symmetrization separately. Then reconstruct one actual dataset from native fields through binary features, five predictions, role losses and rule selection. Do not turn an exact theorem check under the known law into proof about the unknown population behind the factual sample.
For an extension, derive the sign transformation for binary classification loss. With fixed binary labels, loss is y plus one minus twice y times the prediction. Multiplying independent fair signs by fixed minus or plus one preserves their law, and the common label term has expectation zero. Ordinary loss-class complexity therefore depends on the prediction vectors, not on which fixed binary labels accompany the same inputs. Absolute complexity need not be invariant to common translation.
학자와 함께 읽는 일반화 이론People and an in-page lecture on generalization
Wassily Hoeffding은 비모수 통계와 확률 부등식 연구에 기여했습니다. 이 장에서는 분포를 하나의 정규분포로 고정하지 않고 유계성과 독립성으로 표본 평균을 제어하는 발상을 배웁니다. 미국 국립과학원 회고록을 읽고, 단순한 식의 강점이 가정을 없애는 데 있지 않음을 생각해 보세요.
Vladimir Vapnik의 연구는 경험 자료로 기대 위험을 최소화하는 통계학습이론과 연결됩니다. Columbia 소개를 읽으며 VC 차원을 단순한 매개변수 개수와 구별하세요. Mehryar Mohri의 NYU 연구 소개와 강의 자료는 유한 후보에서 데이터 의존 복잡도로 넘어가는 길을 제공합니다.
아래 MIT 6.7960의 공식 「Lecture 06. Generalization Theory」는 본문 안에서 재생하도록 연결했습니다. 14절의 ERM 비교, 22절의 성장 함수, 34절의 확률 경계 중 강의에서 만나는 부분을 자기 표기와 대조하세요. 멈춘 뒤 정리 하나의 가정과 결론을 자신의 말로 적고, 상한의 수치가 느슨해지는 실제 사례를 골라 설명하세요.
Wassily Hoeffding contributed to nonparametric statistics and probability inequalities. Here we learn to control sample averages using boundedness and independence without fixing a normal distribution. Read the National Academy of Sciences memoir and consider how a simple expression can remain powerful while retaining explicit assumptions.
Vladimir Vapnik’s work connects empirical observations with minimization of expected risk in statistical learning theory. Read the Columbia profile and distinguish VC dimension from a raw parameter count. Mehryar Mohri’s NYU research profile and lecture materials connect finite classes to data-dependent complexity.
The official MIT 6.7960 Lecture 06, Generalization Theory, is embedded below. Compare relevant parts with our ERM argument, growth functions and probability bounds. Pause to write one theorem’s assumptions and conclusion in your own words, then use an empirical case to explain why its numerical bound can be loose.
원자료에서 다시 계산하고 읽기Reproduce from source data and read further
먼저 자료 정의에서 원 단위와 역할 해시를 확인합니다. Python 전체 재현 또는 R 전체 재현을 네 원·파생 입력 CSV와 같은 폴더에 두고 실행합니다. 두 프로그램은 다른 언어의 계산 결과를 읽어서 복사하지 않고, 각자 입력 행에서 특징·손실·부호·유령 기대값을 계산합니다. Python은 유리수로 이산 합을 보존하며 로그·제곱근은 별도 근사로 표시합니다. R은 base R 수치 연산으로 같은 수학적 양을 계산하므로 범용 정확 유리수 실행기라고 부르지 않습니다.
원행·역할·예측·손실을 먼저 대조하고, 합계 표를 확인한 뒤 작은 감사의 부호와 유한 법칙의 표본 경로를 읽으세요. 전체 원관측과 정확 분수는 파일과 펼침 표에서 확인할 수 있습니다. 화면의 축약 소수로 임계값이나 동률을 다시 결정하지 않습니다.
더 읽기:Mohri의 유한 후보 강의에서 합집합 증명을, 무한 후보 강의에서 Rademacher·Massart·Sauer 연결을 따라가세요. Stanford CS229T 강의 노트의 유령 표본 논증과 이 장의 전수 열거를 연결하면 수식의 기대값 순서를 이해하기 쉽습니다. 읽을 때마다 함수군이 고정인지, 기대값이 무엇의 무작위성인지, 부등식이 한쪽인지 절댓값인지 표시하세요.
Start with the source definitions, original units and role hash. Place the complete Python reproduction or complete R reproduction beside the four input CSVs and run it. Each program derives features, losses, signs and ghost expectations from inputs rather than copying the other language’s outputs. Python preserves discrete sums as rational numbers and marks logarithms and roots as approximate. Base R computes the same quantities numerically; it is not a general exact-rational interpreter.
Compare original rows, roles, predictions and losses before inspecting aggregates, audit signs and finite-law sample paths. Original observations and exact fractions remain available in files and expandable tables. Do not reconstruct thresholds or ties from shortened display decimals.
For further reading, follow the union-bound proof in Mohri’s finite-class lecture, then the Rademacher, Massart and Sauer arguments in his infinite-class lecture. Connect the ghost-sample argument in Stanford CS229T notes to our complete enumeration. Mark the fixed class, each source of randomness, and whether each supremum is one-sided or absolute.
대학원Graduate
다음 장으로:일관성과 복잡도의 균형Next: consistency and balancing complexity
이 장의 질문은 정해진 n에서 표본 위험이 모집단 위험과 얼마나 다를 수 있는가였습니다. 다음 질문은 n이 커질 때 적절히 고른 클래스와 규칙의 위험이 최적 위험으로 가는가입니다. 이를 일관성이라고 부르지만, 훈련 오차가 감소한다는 사실만으로 성립하지는 않습니다.
유한 후보 수가 Mₙ으로 늘어나도 log Mₙ/n→0이면 Hoeffding의 균일 편차 상징식은 고정 δ에서 0으로 갑니다. 동시에 클래스가 더 좋은 규칙을 표현하여 근사 오차도 0으로 가고, 최적화 오차도 사라져야 전체 위험의 접근을 논할 수 있습니다. 의존 자료·분포 이동·다른 손실에는 각각 별도 정리가 필요합니다.
nlogMn→0⟹2nlog(2Mn/δ)→0(0<δ<1 fixed)
계산 가능한 것과 알려지지 않은 것을 구별하는 습관이 가장 중요합니다. 원자료 손실과 작은 유한 법칙의 기대값은 직접 계산할 수 있습니다. 현실의 P, 독립성, 미래 제도, 모든 가능한 규칙의 최저 위험은 같은 표만 보고 알려지지 않습니다. 이 차이를 드러낸 상태에서 더 좋은 모델·자료·평가 설계를 선택하는 것이 이론의 실무적 역할입니다.
This chapter asked how far empirical and population risks can differ at a specified sample size. Next ask whether risks approach the best achievable risk as sample size grows while classes and algorithms are chosen appropriately. Decreasing training error alone does not establish consistency.
If a finite class grows to size M_n while log M_n over n tends to zero, the symbolic Hoeffding uniform-deviation width tends to zero for fixed delta. Approximation error and optimization error must also vanish to obtain an overall best-risk conclusion. Dependence, distribution shift and alternative losses need their own results.
nlogMn→0⟹2nlog(2Mn/δ)→0(0<δ<1 fixed)
Keep computable quantities distinct from unknown ones. Empirical losses and expectations under a specified finite law can be calculated directly. The real population law, independence, future institutions and best risk over all possible rules are not revealed by the same table. Theory helps choose better models, data and evaluation designs while keeping that distinction visible.
영상·학자·함께 읽기Videos, thinkers and guided reading
본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.
MIT 공식 · 일반화 이론Official MIT: Generalization Theory
MIT OpenCourseWare · 6.7960 Fall 2024
고정 후보·성장 함수·확률 경계의 조건을 본문과 대조합니다.Compare fixed classes, growth functions and probability-bound assumptions with the chapter.
보고 읽은 뒤 답하기Respond after watching/reading절댓값에서도 공통 이동을 빼도 되나요?Can common translation be removed inside an absolute supremum?
생각을 점검하는 해설Check your reasoning
일반적으로 안 됩니다. 별도 복잡도 정의가 필요합니다.Not generally; use the appropriate complexity definition.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 평균 손실과 모르는 위험Mean loss and an unknown risk
네 관측의 0–1 손실이 1,0,1,0입니다. 경험위험을 구하고 모집단 위험도 같은 값이라고 단정할 수 있는지 설명하세요.
Four observations have losses 1,0,1,0. Find empirical risk and explain whether population risk must equal it.
풀이와 확인할 이유Solution and explanation
R=41+0+1+0=21
이 값은 네 관측에서의 정확한 평균입니다. 목표 분포 P를 알거나 추가 추론을 하지 않으면 모집단 위험 R은 모릅니다. 시험 표에서 계산했더라도 유한 표의 평균이라는 성격은 같습니다.
R=41+0+1+0=21
This is an exact average over four observations. Without knowing P or making a justified inference, population risk remains unknown. Calling the table a test set does not turn its finite average into the population expectation.
2. 알려진 작은 모집단A known small population
구성 모형에서 독립 정답 Y가 1일 확률은 1/4입니다. 항상 0과 항상 1 두 규칙의 모집단 위험은?
In a stipulated model, each outcome is one with probability one quarter. Find population risks for always zero and always one.
풀이와 확인할 이유Solution and explanation
R(h0)=P(Y=1)=41,R(h1)=P(Y=0)=43
이 답은 모형이 정한 확률 법칙에서 나옵니다. 실제 훈련 표에서 양성 비율이 1/4이었다는 이유만으로 알게 된 참된 위험이 아닙니다. 후반의 경험 비율 기반 동전 모형도 명시적으로 정한 학습용 법칙으로 읽습니다.
R(h0)=P(Y=1)=41,R(h1)=P(Y=0)=43
The answers follow from a known stipulated law, not merely from observing a positive fraction of one quarter in training. Later empirical-prevalence coin models are also explicitly declared teaching laws.
3. 선택한 훈련 점수의 기대값Expected selected training error
독립 공정 동전 네 개에서 상수 후보 0,1 중 훈련 오차가 작은 후보를 고릅니다. 평균 훈련 오차와 새 동전 위험의 차이를 구하세요.
Select the better constant zero/one predictor on four independent fair coins. Compute expected training error and its difference from new-coin risk.
풀이와 확인할 이유Solution and explanation
양성 개수 K=0,1,2,3,4의 표 개수는 1,4,6,4,1입니다. 해당 훈련 평균은 0,1/4,1/2,1/4,0입니다. 따라서 가중 평균은 (0+1+3+1+0)/16=5/16입니다.
ER(h)−ER(h)=21−165=163
두 후보 모두 참된 위험이 1/2이므로 동률 규칙은 이 기대 위험을 바꾸지 않습니다. 선택 뒤 훈련 점수를 다시 평균한 것이 낙관성의 원인입니다.
The five positive counts have multiplicities 1,4,6,4,1 and selected errors 0,1/4,1/2,1/4,0. Their weighted average is five sixteenths.
ER(h)−ER(h)=21−165=163
Both candidates have true risk one half, so tie handling does not change that expectation. Reassessing a data-selected minimum on the same observations creates the optimism.
4. 같은 기대값·다른 분산Same expectation, different variance
공정 동전 하나를 네 행에 복사한 평균과 독립 공정 동전 네 개의 평균의 기대값·분산을 각각 구하세요.
Compare the expectation and variance of one fair coin copied four times with those of four independent fair coins.
풀이와 확인할 이유Solution and explanation
EY=21 in both cases;Var(Ycopied)=41,Var(Yiid)=161
복사 평균은 원 동전 U와 같습니다. 독립인 경우에만 교차 공분산이 0이 되어 분산이 4로 나누어집니다. 동일 주변분포만으로 독립 표본의 집중 경계를 적용하지 않습니다.
EY=21 in both cases;Var(Ycopied)=41,Var(Yiid)=161
The copied average equals the original coin U. Independence removes cross-covariances and divides variance by four in the second case. Common marginals alone do not justify independent-sample concentration.
5. 한 규칙과 선택한 규칙의 완벽한 훈련Perfect training for one rule or a selected rule
독립 공정 동전 네 개에서, 미리 정한 항상 0 규칙이 훈련 오차 0일 확률과 두 상수 후보 중 선택한 규칙이 0일 확률은?
For four independent fair coins, compare zero training error for a fixed always-zero rule with zero error after choosing between the two constant rules.
풀이와 확인할 이유Solution and explanation
P(R(h0)=0)=P(0000)=161,P(R(h)=0)=P(0000 or 1111)=81
선택한 규칙은 두 종류의 표에서 완벽해집니다. 후보를 하나로 줄였다고 보고 선택 과정을 지우면 이 사건 확률을 잘못 셉니다.
P(R(h0)=0)=P(0000)=161,P(R(h)=0)=P(0000 or 1111)=81
The selected rule is perfect on two distinct samples. Reporting only the final single rule while ignoring selection miscounts the event.
6. 관측 최댓값과 전역 범위Observed maximum and a global range
두 훈련 관측에서 모두 맞았으므로 0–1 손실의 범위 길이를 B=0으로 넣어도 된다는 주장에 반례를 제시하세요.
Both training predictions are correct. Give a counterexample to setting the global 0–1 loss range length B to zero.
풀이와 확인할 이유Solution and explanation
공정 동전에서 항상 0을 예측하고 우연히 Y=0,0을 관측한 경우를 생각하세요. 현재 손실은 0,0이지만 가능한 새 Y=1에서는 손실 1입니다. 따라서 손실 함수의 범위는 여전히 [0,1]입니다. B=0은 모든 가능한 관측에서 손실이 같은 상수라는 더 강한 조건입니다.
Always predict zero for a fair coin and happen to observe outcomes zero,zero. Both observed losses vanish, yet a possible new outcome one incurs loss one. The function’s range remains [0,1]. B=0 requires a constant loss over every possible observation, a stronger condition.
7. 공통 분모A common denominator
후보 a,b의 손실 행이 [0,1],[1,0],[0,결측]입니다. 공통 완전 행 평균과 a만 세 번째 행을 쓰는 평균을 비교하세요.
Loss rows for a,b are [0,1],[1,0],[0,missing]. Compare complete-common-row means with a’s mean when it alone uses the third row.
풀이와 확인할 이유Solution and explanation
Rcommon(a)=Rcommon(b)=21,Runmatched(a)=31
마지막 1/3은 다른 관측 구성을 평균한 값입니다. 두 후보의 공통 평가라는 질문에는 첫 두 행만 사용합니다. 세 번째 원행과 제외 사유는 표에 남깁니다.
Rcommon(a)=Rcommon(b)=21,Runmatched(a)=31
One third averages a different set of observations. A common-frame comparison uses the first two rows for both candidates, while preserving the third row and its exclusion reason.
8. 동률 규칙의 범위The meaning of a tie rule
검증 손실 평균이 a,b 모두 1/2이고 후보 순서가 a,b입니다. 무엇을 선택하며, 그것이 a의 모집단 위험이 더 작다는 증거인가요?
Validation mean loss is one half for both a and b, ordered a then b. Which is selected, and does that establish lower population risk for a?
풀이와 확인할 이유Solution and explanation
선언한 정확 동률 규칙에 따라 a를 선택합니다. 이 규칙은 같은 입력에 같은 결과를 주지만, 알려지지 않은 모집단 위험의 순서를 밝혀 주지는 않습니다. 동률을 시험 정답으로 풀면 시험이 선택 자료가 됩니다.
The declared earliest-tie rule selects a reproducibly. It does not reveal the ordering of unknown population risks. Breaking the tie using test labels would make test data part of selection.
9. 실제 국가 표의 해석Interpret the actual country table
다섯 후보 중 검증 3국가에서 0회를 틀린 규칙을 선택했고, 시험 4국가에서는 2회를 틀렸습니다. 두 평균과 알 수 없는 양을 적으세요.
A rule selected among five candidates makes zero errors on three validation countries and two on four test countries. State both means and what remains unknown.
풀이와 확인할 이유Solution and explanation
Rvalidation=0/3=0,Rtest=2/4=21
미래 또는 목표 국가 분포의 모집단 위험은 이 숫자들만으로 정해지지 않습니다. 후보 선택의 재사용, 작은 분모, 국가 간 의존성과 표본 선택을 따져야 합니다. 관측 시험 평균이 1/2이라는 말과 참된 위험을 모형에서 알고 1/2이라고 쓴 동전 예제는 구분합니다.
Rvalidation=0/3=0,Rtest=2/4=21
These numbers do not determine risk under a future or target distribution of countries. Selection reuse, small denominators, dependence and country selection matter. An observed test average of one half differs from the known one-half risk in the stipulated fair-coin example.
10. 시험 정답 변경 검사A test-label perturbation check
선택 역할을 validation으로 고정하고 시험 행의 두 후보 손실만 서로 바꿉니다. 선택과 시험 점수는 각각 어떻게 되어야 하나요?
Keep validation selection fixed and swap only the two candidates’ test losses. What should happen to selection and test performance?
풀이와 확인할 이유Solution and explanation
검증 입력이 같으므로 선택한 후보는 그대로여야 합니다. 선택 후보의 시험 점수는 바뀔 수 있습니다. 이 검사는 코드의 선택 경로를 확인하며, 시험이 통계적으로 독립이라는 가정 자체를 검증한 것은 아닙니다. 검증 행이 없으면 선택 미정의를 유지해야 합니다.
Unchanged validation inputs must preserve selection. The selected rule’s test performance can change. This checks the coded selection path, not the statistical independence of the actual test sample. An empty validation frame must retain undefined selection.
11. 확률 문장을 정확하게 읽기Read the probability statement
δ=0.05인 균일 경계가 “선택한 예측은 95% 정확하다”는 뜻인지, 올바른 주어를 넣어 설명하세요.
Does a uniform bound with delta=0.05 mean that the selected predictor is 95 percent accurate? State the correct random object.
풀이와 확인할 이유Solution and explanation
아닙니다. 가정한 법칙으로 표본 S를 다시 뽑을 때, 적어도 95%의 표에서 후보 전체의 모집단 평균과 경험 평균 차이가 정해진 폭 이하라는 뜻입니다. 예측 정답률과 경계 실패 확률은 다른 양입니다.
No. Under the stated sampling law, at least 95 percent of resampled tables satisfy the specified gap bound simultaneously over the class. Prediction accuracy and the probability that a bound fails are distinct quantities.
12. Markov 부등식 한 줄 증명A one-line proof of Markov
비음수 변수 W와 t>0에서 P(W≥t)≤E W/t를 증명하세요.
Prove Markov’s inequality for a nonnegative variable W and positive t.
풀이와 확인할 이유Solution and explanation
W≥t1{W≥t}⟹EW≥tP(W≥t)⟹P(W≥t)≤tEW
W가 음수가 될 수 있으면 첫 부등식이 일반적으로 성립하지 않습니다. Hoeffding 유도에서는 양수인 exp(λΣV)를 W로 사용합니다.
W≥t1{W≥t}⟹EW≥tP(W≥t)⟹P(W≥t)≤tEW
Nonnegativity makes the first inequality valid. In the concentration proof, W is the positive exponential of the centered sum.
13. 공정 동전의 지수평균A fair coin’s exponential average
Y가 0,1을 각각 확률 1/2로 가지면 E exp(λ(Y−1/2))를 구하고 Hoeffding 보조정리와 비교하세요.
For a fair binary Y, compute E exp(lambda(Y−1/2)) and compare it with Hoeffding’s lemma.
풀이와 확인할 이유Solution and explanation
Eeλ(Y−1/2)=2e−λ/2+eλ/2=cosh(λ/2)≤eλ2/8
Y의 구간 길이가 1이므로 보조정리의 오른쪽은 exp(λ²/8)입니다. 평균을 뺀 구간 [−1/2,1/2]도 길이 1입니다.
Eeλ(Y−1/2)=2e−λ/2+eλ/2=cosh(λ/2)≤eλ2/8
The original interval has length one. Centering gives [−1/2,1/2], still of length one, so the lemma yields exp(lambda squared over eight).
14. 중심화한 구간의 길이Length after centering
X∈[2,5]이고 E X=3입니다. X−E X의 구간과 Hoeffding 보조정리 상한을 적으세요.
X lies in [2,5] and has mean 3. Give the centered interval and the lemma’s exponential bound.
풀이와 확인할 이유Solution and explanation
X−EX∈[−1,2],B=3,Eeλ(X−EX)≤e9λ2/8
구간 길이는 2−(−1)=3입니다. “평균 양쪽으로 뻗는다”는 이유로 B를 6으로 두거나, 구간을 임의로 대칭화해 상수를 바꾸지 않습니다.
X−EX∈[−1,2],B=3,Eeλ(X−EX)≤e9λ2/8
The interval length stays three. Centering does not require a symmetric interval or doubling its range length.
15. 고정 후보와 다섯 후보의 꼬리One candidate and five candidates
n=50, B=1, ε=1/5에서 고정 후보의 양쪽 꼬리와 M=5 균일 꼬리 상한을 구하세요.
For n=50, B=1 and gap=1/5, compute two-sided bounds for one fixed candidate and five candidates.
풀이와 확인할 이유Solution and explanation
2e−2(50)(1/5)2=2e−4≈0.03663,min(1,10e−4)≈0.18316
두 값은 실제 사건 확률이 아니라 상한입니다. 후보 실패 사건끼리의 독립성 없이 합집합 경계를 썼지만, 고정 후보별 Hoeffding 적용에는 관측 독립성 등 가정이 필요합니다.
2e−2(50)(1/5)2=2e−4≈0.03663,min(1,10e−4)≈0.18316
These are upper bounds, not exact event probabilities. The union step needs no independence between candidate failures; applying Hoeffding to each candidate still needs its observation assumptions.
16. ε와 2ε의 표본 크기Sample size for epsilon versus two epsilon
M=5, δ=0.05, B=1입니다. 균일 차이 ε≤0.1에 충분한 정수 n과 ERM 초과위험 2ε≤0.1에 충분한 n을 비교하세요.
With M=5, delta=0.05 and B=1, compare sufficient integer n for a uniform gap at most 0.1 and an ERM excess risk bound 2 epsilon at most 0.1.
Halving epsilon multiplies this sufficient sample size by four. These are sufficient conditions under the theorem, not necessary thresholds below which every learner must fail.
17. 세 경계의 공동 확률Joint coverage of three bounds
세 경계에 각각 실패 상한 0.05가 있습니다. 모두 성립할 확률의 합집합 하한과, 공동 실패 예산 0.05를 균등 배분한 값은?
Three bounds each have failure upper bound 0.05. Give the union-based lower bound for all three and an equal allocation for total failure probability 0.05.
풀이와 확인할 이유Solution and explanation
P(all three hold)≥1−3(0.05)=0.85,δj=30.05=601
M=5인 각 폭의 로그 인수는 2M/(1/60)=600입니다. 표의 각 행이 95%라는 사실만으로 공동 95%를 말할 수는 없습니다. 세 실패 사건의 독립성을 추가로 가정할 필요 없이 이 보수적 배분은 성립합니다.
P(all three hold)≥1−3(0.05)=0.85,δj=30.05=601
For M=5 the logarithm argument becomes 600 per bound. Three individual 95 percent statements do not automatically give joint 95 percent coverage. This conservative allocation does not need independent failure events.
18. 자료를 본 뒤 만든 단일 후보A single candidate constructed after seeing data
X가 1000개 점에서 균등하고 Y=0입니다. n=10 표본에서 본 X에는 0, 못 본 X에는 1을 예측하도록 hS를 만듭니다. 훈련 오차와 위험 하한을 구하고 M=1 경계 적용의 문제를 설명하세요.
X is uniform on 1000 points and Y=0. From ten observations, define hS to predict 0 at observed X and 1 elsewhere. Find training error and a risk lower bound, and explain why M=1 is invalid.
최종 규칙이 하나라는 사실과 표본을 보기 전 후보군이 하나였다는 사실은 다릅니다. hS는 관측한 위치에 따라 바뀝니다. 가능한 모든 이런 규칙을 포함하는 전체 후보군을 제어하거나, 독립 시험 등 다른 논리를 써야 합니다. 훈련 오차 0만으로 위 위험 하한이 사라지지 않습니다.
One final rule does not mean one fixed candidate before sampling. The rule depends on observed locations. Control the entire possible class or use a different argument such as an independent test. Perfect training does not remove the displayed risk lower bound.
19. 최적화 오차와 총위험Optimization tolerance and total risk
균일 폭 ε=0.1, 경험 최소화 허용오차 η=0.02, 후보군 최적 모집단 위험 R(h*)=0.3입니다. 선택 규칙의 초과위험·총위험 상한은?
Uniform width is 0.1, empirical optimization tolerance is 0.02, and the best class risk is 0.3. Bound excess risk and total risk.
풀이와 확인할 이유Solution and explanation
R(h)−R(h∗)≤2(0.1)+0.02=0.22,R(h)≤0.3+0.22=0.52
0.22는 총위험 상한이 아니라 후보군 최적값 위의 차이입니다. 후보군 자체의 근사오차나 정답 잡음은 이 계산에서 제거되지 않습니다.
R(h)−R(h∗)≤2(0.1)+0.02=0.22,R(h)≤0.3+0.22=0.52
The 0.22 bound concerns excess over the best class member, not total risk. Class approximation error and outcome noise remain.
20. 자명한 상한을 읽는 법Interpret a vacuous upper bound
n=3,M=5,δ=0.05에서 폭이 약0.939709이고 경험 오차가1/3입니다. 0–1 위험의 상한을 잘라 쓰면 얼마이고 무엇을 뜻하나요?
For n=3, M=5, delta=0.05, width about 0.939709 and empirical error 1/3, clip the upper bound on 0–1 risk and interpret it.
풀이와 확인할 이유Solution and explanation
min(1,31+0.939709)=1
이 정리와 표본 크기로는 해당 후보의 위험에 대해 1보다 좋은 상한을 얻지 못했습니다. 실제 오류율이 100%라는 예측이 아니고, 좋은 경험 성능이 불가능하다는 뜻도 아닙니다. 가정이 맞지 않으면 이 확률적 적용 자체를 다시 검토해야 합니다.
min(1,31+0.939709)=1
The theorem and sample size give no improvement on the trivial upper bound. This does not predict 100 percent error or rule out good observed performance. If assumptions fail, the probabilistic application itself needs reconsideration.
21. 네 점의 문턱 패턴Threshold patterns on four points
x₁<x₂<x₃<x₄에서 hₜ(x)=1{x≥t}가 만드는 모든 패턴과 VC 차원을 구하세요.
List every threshold pattern on four ordered distinct points and give the class’s VC dimension.
풀이와 확인할 이유Solution and explanation
패턴은 0000,0001,0011,0111,1111의 다섯 개입니다. 한 점은 문턱을 양쪽에 놓아 분쇄하고, 어떤 두 점에서도 왼쪽만 1인 배치는 불가능합니다. 따라서 전역 문턱 함수군의 VC 차원은 1입니다. 네 점에서 다섯 패턴이라는 수와 차원 1을 혼동하지 않습니다.
The patterns are 0000,0001,0011,0111,1111. One point is shattered by thresholds on either side, while any ordered pair misses the left-only-positive labeling. Thus the threshold class has VC dimension one. Five patterns on four points is not dimension five.
22. 반복 입력의 개수Repeated input values
입력이 0,0,1일 때 실수 문턱 규칙의 서로 다른 예측 벡터는 몇 개인가요?
How many distinct prediction vectors do real thresholds produce on inputs 0,0,1?
풀이와 확인할 이유Solution and explanation
가능한 벡터는 111,001,000으로 세 개입니다. 문턱이 0 이하, 0 초과 1 이하, 1 초과인 경우입니다. 첫 두 입력은 같으므로 함수값도 같아야 합니다. n+1 공식은 n개의 입력이 서로 다르다는 조건에서 쓴 것이며, 관측 행의 단순 중복이 표현 자유도를 더하지 않습니다.
There are three: 111,001,000, corresponding to thresholds at most zero, between zero and one, and above one. Equal first inputs must receive equal predictions. The n+1 formula assumed distinct inputs; duplicating an observation does not add a free function value.
23. 101이 불가능한 이유Why 101 is impossible
정렬된 세 입력에서 양수 방향 문턱이 101을 만들 수 없음을 증명하세요.
Prove that an increasing threshold rule cannot realize 101 on three ordered inputs.
풀이와 확인할 이유Solution and explanation
첫 점의 예측이 1이면 x₁≥t입니다. x₂>x₁이므로 x₂≥t여야 하여 둘째 예측도 1입니다. 이는 둘째 예측 0과 모순입니다. 단순히 몇 개의 문턱을 시험해 못 찾았다는 계산보다, 모든 t를 배제한 논증입니다.
If the first prediction is one, x1 is at least t. Since x2 exceeds x1, x2 also reaches t, contradicting a zero second prediction. This rules out every threshold rather than merely failing to find one in a search.
24. 구간 규칙의 성장함수Growth of interval indicators
정렬된 세 점에서 구간 지시함수의 패턴을 모두 적고 VC 차원을 증명하세요.
List every interval-indicator pattern on three ordered points and prove the VC dimension.
풀이와 확인할 이유Solution and explanation
패턴은 000,001,010,011,100,110,111입니다. 양성은 연속된 덩어리이므로 101은 없습니다. 모든 두 점의 네 배치는 빈 구간·첫 점만·둘째 점만·두 점 모두를 포함하는 구간으로 만듭니다. 따라서 하한 2와 상한 2가 맞아 정확히 2입니다.
Patterns are 000,001,010,011,100,110,111. Positive positions must be contiguous, excluding 101. Every pair can realize empty, first-only, second-only and both-positive patterns. This supplies matching lower and upper bounds of two.
25. Sauer 합 계산Compute a Sauer sum
전역 VC 차원이 2인 함수군에 대해 다섯 점의 패턴 수 상한을 계산하세요. 모든 함수군이 그 상한을 달성하나요?
For a class of global VC dimension two, calculate the Sauer upper bound on five points. Must every such class attain it?
풀이와 확인할 이유Solution and explanation
ΠH(5)≤(05)+(15)+(25)=1+5+10=16<32
상한이므로 모든 함수군이 16개를 만드는 것은 아닙니다. 예를 들어 이 장의 다섯 함수 후보군은 전체 함수가 다섯 개여서 어떤 입력에서도 그보다 많은 패턴을 만들 수 없습니다. 같은 VC 차원은 같은 정확 성장함수를 뜻하지 않습니다.
ΠH(5)≤(05)+(15)+(25)=1+5+10=16<32
An upper bound need not be attained. Our five-function class cannot produce more than five patterns on any inputs. Equal VC dimensions do not imply equal exact growth functions.
26. d=0과 d≥n의 경계The cases d=0 and d≥n
n=3에서 d=0과 d=5의 Sauer 합을 각각 구하세요.
For n=3, calculate the Sauer sums at d=0 and d=5.
풀이와 확인할 이유Solution and explanation
d=0:j=0∑0(j3)=1,d=5:j=0∑3(j3)=8
이항계수는 j>n이면 0이므로 합의 위끝을 min(d,n)으로 쓸 수 있습니다. (en/d)ᵈ의 간편식에는 1≤d≤n 조건이 있으므로 두 경계에 기계적으로 대입하지 않습니다.
d=0:j=0∑0(j3)=1,d=5:j=0∑3(j3)=8
Terms beyond n vanish, allowing the upper limit min(d,n). The convenient (en/d)^d form requires 1≤d≤n and should not be mechanically substituted at these boundaries.
27. 다섯 함수의 하한과 상한Lower and upper bounds for five functions
H={0,1,x₀,x₁,x₀ OR x₁}의 완전한 이진 영역에서 VC=2임을 하한·상한으로 증명하세요.
Prove VC=2 for the five functions 0,1,x0,x1,OR on their complete binary input domain.
풀이와 확인할 이유Solution and explanation
01과 10 두 상태의 라벨 00,11,01,10은 각각 상수 0,상수 1,x₀,x₁이 실현하므로 하한은 2입니다. 세 점의 분쇄에는 8개의 서로 다른 패턴이 필요하지만 함수는 다섯 개라 불가능합니다. 따라서 상한도 2입니다. 이는 경험 오차의 작고 큼과 무관한 함수군의 성질입니다.
On states 01 and 10, constants zero and one and the two features realize 00,11,01,10. This proves the lower bound two. Three shattered points need eight distinct patterns, impossible with five functions. The matching upper bound proves dimension two independently of observed prediction error.
28. 못 분쇄한 세 점이 상한은 아니다An unshattered triple is not a global upper bound
세 공선점이 직선 분류기로 분쇄되지 않으면 평면 아핀 분류기의 VC≤2라는 주장에 다른 세 점 배치를 제시하세요.
Give a different triple refuting the claim that failure to shatter three collinear points proves VC at most two for affine planar classifiers.
풀이와 확인할 이유Solution and explanation
(0,0),(1,0),(0,1)을 고릅니다. 임의 부호 s₀,s₁,s₂에 대해 아래 점수는 각 꼭짓점에서 정확히 해당 부호를 냅니다.
f(x)=s0+(s1−s0)x1+(s2−s0)x2
따라서 다른 세 점은 분쇄됩니다. 특정 배치의 실패는 전역 최대의 상한이 아니며, 상한 증명은 가능한 모든 더 큰 배치를 배제해야 합니다.
Choose (0,0),(1,0),(0,1). For arbitrary desired signs, the following score takes exactly those signs at the three vertices.
f(x)=s0+(s1−s0)x1+(s2−s0)x2
Thus another triple is shattered. Failure of one arrangement does not bound a global maximum; an upper-bound proof must exclude every larger arrangement.
29. 예측 벡터에서 손실 벡터로From predictions to loss vectors
고정 정답 y=101과 예측 h=110의 0–1 손실 벡터를 구하고, XOR 변환이 패턴 수를 보존함을 설명하세요.
For fixed outcomes 101 and predictions 110, find the 0–1 loss vector and explain why XOR preserves pattern counts.
풀이와 확인할 이유Solution and explanation
(1,1,0)XOR(1,0,1)=(0,1,1),(hXORy)XORy=h
같은 y로 다시 XOR하면 원 예측으로 돌아오므로 일대일 대응입니다. 따라서 고정 표에서 서로 다른 예측 패턴 수와 해당 손실 패턴 수가 같습니다. 이것이 분류의 성장함수를 손실 함수군의 복잡도와 연결하는 한 단계입니다.
(1,1,0)XOR(1,0,1)=(0,1,1),(hXORy)XORy=h
XOR again with the same outcome vector recovers the original prediction, proving a bijection. Distinct prediction and loss patterns therefore have equal counts on the fixed sample. This connects classification growth to loss-class complexity.
30. 실습에서 함수군이 바뀌는 경우When the lab changes the class
세 점의 문턱 패턴 000,001,011,111에 101을 추가하면 첫 두 점의 어떤 패턴들이 실현되며 제한 영역 VC는 얼마인가요?
Add 101 to threshold patterns 000,001,011,111. Which patterns become available on the first two points, and what is the restricted-domain VC dimension?
풀이와 확인할 이유Solution and explanation
첫 두 점에서 00은 000,01은 011,10은 101,11은 111이 실현합니다. 두 점을 분쇄하므로 차원은 적어도 2입니다. 전체 함수 다섯 개로 세 점의 여덟 배치를 만들 수 없어 차원은 정확히 2입니다. 문턱이 아닌 새 함수를 추가해 함수군 자체를 바꾼 결과입니다.
On the first pair, 000 realizes 00, 011 realizes 01, 101 realizes 10, and 111 realizes 11. Thus two points are shattered. Five functions cannot supply eight patterns on three points, so restricted dimension is exactly two. The class changed by adding a non-threshold function.
31. 한 부호에서 고르는 후보Choose a candidate for one sign vector
a=(0,1),b=(1,0),n=2에서 부호 (−1,+1)의 평균 내적과 보통 최댓값을 구하세요.
For a=(0,1), b=(1,0) and n=2, find both signed means and their ordinary maximum at signs (−1,+1).
풀이와 확인할 이유Solution and explanation
2(−1)0+(1)1=21,2(−1)1+(1)0=−21,max=21
이 부호에서는 a가 이깁니다. 다른 부호에서는 다른 후보가 이길 수 있으므로 모든 부호에 하나의 승자를 고정하지 않습니다.
2(−1)0+(1)1=21,2(−1)1+(1)0=−21,max=21
Candidate a wins for these signs. Another sign vector can have a different winner, so do not fix one winner across all signs.
32. 보통과 절댓값 평균Ordinary and absolute averages
같은 두 벡터의 모든 네 부호를 평균해 두 복잡도를 구하세요.
Average all four sign vectors for the same two candidates to obtain ordinary and absolute complexity.
풀이와 확인할 이유Solution and explanation
R=4−1/2+1/2+1/2+1/2=41,Rabs=44(1/2)=21
첫 행을 임의로 0으로 바꾸면 3/8이라는 다른 함수군의 값이 됩니다. 절댓값은 평균을 낸 뒤 전체 값에 씌우는 것이 아니라, 각 부호에서 후보별 내적을 절댓값으로 비교한 것입니다.
R=4−1/2+1/2+1/2+1/2=41,Rabs=44(1/2)=21
Replacing the first value by zero gives three eighths for a changed class. The absolute version compares absolute candidate values within each sign draw; it is not the absolute value of the final ordinary average.
33. 상수 한 함수One constant function
후보가 f=(1,1) 하나일 때 보통·절댓값 복잡도와 예측 위험 0 여부를 설명하세요.
For singleton f=(1,1), compute ordinary and absolute complexity and explain whether risk must be zero.
풀이와 확인할 이유Solution and explanation
R=4−1+0+0+1=0,Rabs=41+0+0+1=21
선택할 다른 함수가 없어 보통 값이 0입니다. 이 벡터가 손실이라면 현재 두 관측의 평균 손실은 오히려 1입니다. 복잡도 0을 손실 0으로 해석하지 않습니다.
R=4−1+0+0+1=0,Rabs=41+0+0+1=21
No alternative can be selected after signs. If these entries are losses, their observed mean is actually one. Zero complexity is not zero loss.
34. 영함수 추가의 영향Adding a zero function
a=(0,1),b=(1,0)에 영벡터를 추가했을 때 보통 복잡도는?
What happens to ordinary complexity after adding a zero vector to a=(0,1), b=(1,0)?
풀이와 확인할 이유Solution and explanation
40+1/2+1/2+1/2=83
영벡터가 음수 최댓값을 0으로 높이므로 1/4에서 3/8로 증가합니다. 원 함수군의 값이 음수일 수 없다는 이유로 사후에 끼워 넣을 규칙이 아니라, 함수군을 바꾸는 명시적 선택입니다.
40+1/2+1/2+1/2=83
The added vector raises the all-negative maximum to zero. This explicitly changes the class and increases complexity from one quarter to three eighths; it is not a correction to the original definition.
35. 중복 벡터의 개수Counting duplicate vectors
세 후보 중 두 후보가 현재 표에서 같은 (0,1)이고 나머지가 (1,0)입니다. Massart의 표 의존 벡터 집합 크기는? 이를 모집단 합집합 M에도 바로 쓰나요?
Two of three candidates share vector (0,1), while the third is (1,0). What sample-vector count enters Massart, and can it automatically replace population-class M?
풀이와 확인할 이유Solution and explanation
현재 표의 서로 다른 벡터는 두 개라 Massart 집합 |A|=2입니다. 정확 부호 평균도 복사 전과 같습니다. 하지만 두 함수가 표 밖에서 다를 수 있다면 전역 후보군이 둘이라고 결론 낼 수 없습니다. 고정 표의 벡터 부등식과 모집단의 균일 제어는 다른 단계입니다.
There are two distinct sample vectors, so Massart uses |A|=2, and the exact sign average is unchanged. If the functions differ outside the sample, this does not prove a global class size of two. The fixed-vector inequality and population-uniform argument are separate steps.
36. Massart 상한 계산Calculate a Massart bound
a=(0,1),b=(1,0),n=2의 최대 제곱 길이와 보통 Massart 상한을 구하고 정확값과 비교하세요.
For a=(0,1), b=(1,0), n=2, calculate the largest squared norm and ordinary Massart bound; compare with the exact value.
풀이와 확인할 이유Solution and explanation
r2=1,22log2=2log2≈0.588705>41
0.588705는 정확한 복잡도 추정값이 아니라 상한의 근삿값입니다. 정확 부호 평균 1/4와 일치해야 할 이유가 없습니다. 상징식의 자연로그와 수치 근사를 구별합니다.
r2=1,22log2=2log2≈0.588705>41
The decimal approximates an upper bound, not the exact complexity. It need not equal one quarter. Keep the symbolic natural-log expression distinct from its numerical approximation.
37. 한 개 동전의 유령 계산A one-coin ghost calculation
P(Y=1)=1/2,n=1이고 두 손실 함수가 f₀(Y)=Y,f₁(Y)=1−Y입니다. 기대 한쪽 차이, 유령 최댓값,2ER을 구하세요.
Let P(Y=1)=1/2, n=1, with losses f0(Y)=Y and f1(Y)=1−Y. Find the expected one-sided gap, ghost supremum and twice expected Rademacher complexity.
풀이와 확인할 이유Solution and explanation
모집단 평균은 두 함수 모두 1/2입니다. 어느 Y에서도 두 표본 평균은 0,1이므로 한쪽 최대 차이는 1/2입니다. 유령 Y′가 Y와 다를 확률은 1/2이고 그때 최대 차이가 1, 같으면 0입니다. 조건부 부호 최댓값 평균은 언제나 1/2입니다.
Esup(P−Pn)=21,Esup(Pn′−Pn)=21,2ER=1
따라서 1/2≤1/2≤1입니다. 마지막 부등식은 충분 상한이므로 등호를 요구하지 않습니다.
Both population means are one half. Every observed Y gives sample values zero and one, hence one-sided gap one half. An independent ghost differs with probability one half, giving supremum one on that event and zero otherwise. Conditional sign complexity is always one half.
Esup(P−Pn)=21,Esup(Pn′−Pn)=21,2ER=1
The inequalities are one half ≤ one half ≤ one. An upper bound need not attain equality.
38. 절댓값에서 보통 R을 쓰는 반례A counterexample to using ordinary R for an absolute gap
같은 공정 동전 n=1에서 함수가 f(Y)=Y 하나뿐입니다. 절댓값 차이와 보통 R로 만든 2ER을 비교하세요.
For one function f(Y)=Y and one fair coin observation, compare expected absolute gap with twice ordinary expected Rademacher complexity.
풀이와 확인할 이유Solution and explanation
E∣1/2−Y∣=21,RS({f})=0⟹2ER=0
1/2≤0은 거짓입니다. 절댓값 부호 복잡도는 Y이므로 그 표본 기대값은 1/2, 두 배는 1입니다. 제어 대상을 한쪽에서 절댓값으로 바꾸었다면 오른쪽 함수군이나 복잡도 정의도 맞춰야 합니다.
E∣1/2−Y∣=21,RS({f})=0⟹2ER=0
One half≤zero is false. Absolute sign complexity equals Y and has sample expectation one half, giving valid upper bound one after doubling. Changing the controlled gap requires the corresponding class or complexity definition.
39. 현재 표 복제와 독립 유령Resampling one observed value is not a true ghost
공정 동전 모집단에서 n=1,Y=1을 관측했습니다. 현재 한 행에서만 복원 추출한 Y′와 참된 P에서 독립적으로 뽑은 Y′의 차이를 설명하세요.
After observing Y=1 from a fair-coin population, compare resampling the only observed row with an independent ghost from true P.
풀이와 확인할 이유Solution and explanation
현재 표에서 복원 추출하면 Y′는 항상 1이고 두 값 차이는 0입니다. 참된 P의 유령은 0도 확률 1/2로 뽑으므로 관측과 다를 수 있습니다. 전자는 질량이 1에만 있는 경험 분포, 후자는 공정 동전 법칙입니다. 부트스트랩을 추론 도구로 정당화하는 별도 조건 없이 두 분포를 같다고 놓을 수 없습니다.
Resampling the single observed row always returns one and gives difference zero. A true independent ghost from P returns zero with probability one half. These use different laws: the empirical point mass and the fair-coin population. Bootstrap inference requires its own justification; it is not an automatic identity between the two laws.
40. 실제 감사 n과 전체 nActual audit n versus complete n
기업 자료의 훈련 1890행 중 정한 12행의 정확 부호 평균은 1637/12288입니다. 이 값을 n=1890인 경험적 R로 바로 넣어도 되나요?
The declared twelve-row audit from 1890 company training records has exact sign average 1637/12288. May it be substituted directly for empirical R at n=1890?
풀이와 확인할 이유Solution and explanation
아닙니다. 평균과 최댓값을 구성한 표 자체와 n이 다릅니다. 이 장은 12행 값과 전체 1890행의 Massart 상한 약 0.037900을 분리해 제공합니다. 전체 부호를 모두 세지 않았다고 전체 관측을 12개로 줄이지 않으며, 상한을 정확 평균이라고 표시하지도 않습니다.
No. The underlying table, normalization and supremum differ. We report the twelve-row value separately from the full 1890-row Massart bound near 0.037900. Avoiding exhaustive signs does not require dropping observations, and an upper bound is not labeled an exact average.
41. 한 행의 영향One observation’s influence
[0,1] 손실의 표본 평균에서 한 행을 바꾸면 최대 얼마가 변하나요? n=100에서 답하고 Φ에도 같은 제한이 되는 이유를 설명하세요.
How much can one changed observation alter a mean of [0,1] losses at n=100? Why does the same limit hold for Phi?
Only one summand changes, by at most one; dividing by a hundred gives 0.01. Every candidate obeys that limit, hence so does the supremum. Population means remain fixed.
42. 계수 3의 출처Where the factor three comes from
Φ≤2Rₙ+t와 Rₙ≤R̂_S+t를 결합하세요. 두 사건의 실패 확률이 각각 δ/2일 때 전체 실패 확률도 설명하세요.
Combine Phi≤2R_n+t and R_n≤Rhat_S+t. Each event fails with probability at most delta/2; state the combined failure budget.
풀이와 확인할 이유Solution and explanation
Φ≤2(RS+t)+t=2RS+3t,2δ+2δ=δ
복잡도 기대값을 치환할 때 t가 두 배로 들어가고 Φ 자체의 편차 t가 더해집니다. 두 사건의 독립성은 합집합 상계에 필요하지 않습니다.
Φ≤2(RS+t)+t=2RS+3t,2δ+2δ=δ
Replacing expected complexity contributes two copies of t; concentrating Phi contributes the third. Independence between the two failure events is unnecessary for the union bound.
43. 관측 경계의 숫자A numerical observed-complexity bound
n=1000,δ=0.05,R̂_S=0.02,경험 위험 0.10에서 위험 상한의 상징식과 근삿값을 구하세요.
Use n=1000, delta=0.05, empirical complexity 0.02 and empirical risk 0.10. Give the symbolic upper bound and its approximation.
풀이와 확인할 이유Solution and explanation
0.10+2(0.02)+32000log40≈0.268841
전체 1000행의 복잡도이고 정리의 IID·고정 함수군·유계 손실 조건이 충족된다는 전제가 필요합니다. 숫자 계산만으로 그 조건이 확인되지는 않습니다.
0.10+2(0.02)+32000log40≈0.268841
This uses complexity for all thousand observations and assumes the theorem’s IID, fixed-class and bounded-loss conditions. Arithmetic does not establish those conditions.
44. 상한의 상한을 넣기Substituting an upper bound
전체 표의 R̂를 모르지만 같은 표에서 R̂≤0.04라는 정확한 벡터 부등식을 얻었습니다. 정리의 2R̂ 자리에 0.08을 넣어도 되나요?
Empirical complexity is unknown, but a valid vector inequality gives Rhat≤0.04 on the same complete sample. May 0.08 replace twice Rhat?
풀이와 확인할 이유Solution and explanation
네. 오른쪽은 R̂에 대해 증가하므로 같은 표의 확실한 상한을 대입하면 더 보수적인 결론입니다. 단, 다른 12행의 정확 평균이나 추정 오차가 남은 무작위 부호 평균 0.04라면 이 대체가 자동으로 성립하지 않습니다.
Yes. The right side increases with empirical complexity, so a valid bound on that same sample gives a conservative substitution. An exact mean from a different twelve-row audit, or an uncorrected random-sign estimate of 0.04, is not automatically such an upper bound.
45. 느슨한 경계A vacuous numerical result
경험 위험 0.40,복잡도 항 0.50,확률 항 0.30이면 합은? [0,1] 위험에서 어떻게 해석하나요?
Empirical risk is 0.40, the complexity contribution 0.50 and the confidence contribution 0.30. Interpret their sum for a [0,1] risk.
풀이와 확인할 이유Solution and explanation
0.40+0.50+0.30=1.20,min{1,1.20}=1
수식은 위험≤1.20을 주지만 이미 위험≤1이므로 새 정보가 없습니다. 이것은 실제 위험이 1.20이라는 예측도, 정리가 틀렸다는 증거도 아닙니다. 표본·클래스·실패 확률과 가정을 함께 점검합니다.
0.40+0.50+0.30=1.20,min{1,1.20}=1
The inequality gives no improvement over the known upper limit of one. It neither predicts risk 1.20 nor disproves the theorem. Inspect sample size, class complexity, failure budget and assumptions.
46. 선택 전의 시험A test sample untouched by selection
훈련과 검증으로 모델을 고른 뒤 새 독립 시험 100행을 한 번 평가합니다. 고정 선택 모델의 Hoeffding 경계에 M=1을 쓰는 조건은 무엇인가요?
After training and validation select a model, evaluate it once on a fresh independent test sample of size 100. When is M=1 appropriate?
풀이와 확인할 이유Solution and explanation
시험 결과를 보기 전에 모든 모델·특징·임계값 선택이 끝나고, 시험 행이 선택 정보와 독립인 같은 목표 법칙의 새 관측이어야 합니다. 훈련·검증 정보를 조건으로 고정하면 시험에 대해 후보 하나가 고정됩니다. 시험 성적을 보고 모델을 다시 고르거나 같은 시험을 반복 설계에 쓰면 이 조건부 한 후보 논리를 그대로 재사용할 수 없습니다.
All model, feature and threshold choices must be complete before viewing test outcomes, and test observations must be fresh independent draws from the target law, independent of selection information. Conditional on training and validation, one candidate is fixed for testing. Reusing test performance to redesign or select models breaks that conditional one-candidate argument.
47. 표적 법칙의 이동A change in the target law
항상 0 규칙이 이전 법칙에서 Y=0만, 새 법칙에서 Y=1만 만납니다. 두 위험과 기존 P의 경계를 새 P에 옮길 수 없는 이유는?
An always-zero rule meets only Y=0 under the old law and only Y=1 under the new law. Find both risks and explain the transfer problem.
풀이와 확인할 이유Solution and explanation
Rold(h0)=0,Rnew(h0)=1
일반화 정리는 명시한 같은 P에서 표본 평균과 기대값의 차이를 제어합니다. 새 P의 위험은 다른 기대값입니다. 분포 이동에 대한 추가 연결 조건 없이 이전 표본 수와 경계만으로 새 위험을 제한할 수 없습니다.
Rold(h0)=0,Rnew(h0)=1
The theorem controls a sample-to-expectation gap under its declared common law. Risk under a new law is a different expectation. A transfer conclusion requires additional assumptions relating the laws.
48. 관측되지 않은 사건An event missing from the sample
공정 동전에서 두 번 모두 1을 보아 p̂=1로 연습 법칙을 만들었습니다. 연습 법칙의 P(Y=0)와 실제 동전의 P(Y=0),두 번 모두 1일 실제 확률을 구하세요.
Two fair coin tosses both equal one, and a fitted practice law sets p hat to one. Find its zero probability, the true coin’s zero probability and the true probability of two ones.
Exact calculation under the fitted law does not make it the true law. Zero observed occurrences do not prove zero population probability. The actual-data plug-in exercise keeps this distinction.
49. 네 동전의 정확 기대값Exact expectations for four coins
공정 동전 n=4,손실 Y와 1−Y에서 기대 한쪽 차이 3/16,유령 값 35/128,두 배 R 값 3/8의 순서를 정확히 비교하세요.
For four fair coins and losses Y and one minus Y, compare one-sided expected gap 3/16, ghost value 35/128 and twice complexity 3/8 exactly.
풀이와 확인할 이유Solution and explanation
163=12824≤12835≤12848=83
첫 값은 |1/2−K/4|의 Binomial(4,1/2) 평균입니다. 유령 값은 독립 K,K′에 대한 |K′−K|/4의 평균입니다. 세 번째는 모든 부호·표본을 평균한 복잡도의 두 배입니다. 분모를 128로 맞추면 소수 반올림 없이 비교할 수 있습니다.
163=12824≤12835≤12848=83
The first is the binomial average of |one half minus K/4|. The ghost quantity averages |K prime minus K|/4 for independent binomial counts. The third doubles complexity averaged over samples and signs. A common denominator compares them without decimal rounding.
50. 모든 손실의 공통 틀A common frame for all losses
검증 4행 중 손실 벡터가 (0,1),(1,0),(0,null),(1,1)입니다. 공통 행과 두 평균을 구하세요.
Four validation rows have loss vectors (0,1), (1,0), (0,null), (1,1). Identify the common frame and both means.
풀이와 확인할 이유Solution and explanation
common rows={1,2,4},Ra=30+1+1=32,Rb=31+0+1=32
3행은 두 후보 모두의 평가에서 제외합니다. a만 네 행으로 평균하면 1/2가 되어 같은 관측에서의 비교가 아닙니다. 원 3행을 삭제하지 않고 제외 이유를 기록하며, 검증 동률은 사전에 정한 후보 순서로 풉니다.
common rows={1,2,4},Ra=30+1+1=32,Rb=31+0+1=32
Exclude row three from both candidates’ evaluation. Averaging a over four rows gives one half but compares different observations. Retain the excluded original row and its reason, and resolve validation ties using the declared candidate order.
51. 검증 0의 해석Interpreting zero validation loss
국가 선택 규칙의 검증 손실 0/3,시험 손실 2/4를 비교하고 모르는 양을 적으세요.
Compare the country choice’s validation loss 0/3 with test loss 2/4 and identify an unknown quantity.
풀이와 확인할 이유Solution and explanation
Rvalidation=0,Rtest=21
둘은 서로 다른 역할의 관측 평균입니다. 참된 새 국가의 위험 R은 알려지지 않았습니다. 검증은 선택에도 쓰였고 국가 IID 가정도 확인되지 않았으므로, 0을 미래 보장이라고 부르지 않습니다.
Rvalidation=0,Rtest=21
These are observed averages on different roles. Population risk on new countries remains unknown. Validation also selected the rule, and IID country sampling has not been established; zero is not a future guarantee.
52. 한국 행을 원수치로 계산Calculate Korea’s row from unrounded values
한국 GDPpc 36347.7036392553,CPI 3.5974562502901,성장률 2.00361101838986에서 두 특징과 표적,CPI 규칙의 손실을 구하세요.
Given Korea’s GDP per capita 36347.7036392553, CPI inflation 3.5974562502901 and growth 2.00361101838986, find features, target and CPI-rule loss.
풀이와 확인할 이유Solution and explanation
x0=1,x1=0,y=1,ℓx1=∣0−1∣=1
25000 이상,3 이하,2 이상이라는 세 조건을 서로 다른 원 단위에 적용합니다. 표적을 만드는 비교는 표시용 반올림 이전에 합니다.
x0=1,x1=0,y=1,ℓx1=∣0−1∣=1
Apply the thresholds 25000, three and two to their respective source units before display rounding.
53. 개인 시험 분수A person-test fraction
교육 규칙이 시험 598행 중 228행을 틀렸다면 기약 분수는? 분모가 3613이 아닌 이유는?
The schooling rule misses 228 of 598 test records. Reduce the fraction and explain why the denominator is not 3613.
풀이와 확인할 이유Solution and explanation
598228=299114
3613은 보존한 원행 수이고 시험 적격 행은 598개입니다. 다른 역할과 필수 결측 제외 행을 시험 오분류 분모에 넣지 않습니다.
598228=299114
3613 counts retained native rows, whereas 598 counts eligible test observations. Other roles and missing-value exclusions do not belong in this denominator.
54. 원 ID와 분석 행Native ID versus analytical row
NLS 원자료 1행의 ID가 2이고 교육 7,nearc4=0,wage76=548입니다. 교육 규칙의 표적·예측·손실을 적으세요.
NLS source row one has native ID two, schooling seven, nearc4 zero and wage76 548. Find the target, schooling-rule prediction and loss.
풀이와 확인할 이유Solution and explanation
y=1{548≥500}=1,y=1{7≥12}=0,ℓ=1
원자료 1행(원 ID 2)이라고 식별합니다. 임금 단위는 당시 명목 센트/시간이며 로그 임금이나 현재 달러가 아닙니다.
y=1{548≥500}=1,y=1{7≥12}=0,ℓ=1
Identify source row one, native ID two. The wage unit is nominal cents per hour in the source period, not log wages or current dollars.
55. 기업 기준선과 차이A company baseline difference
같은 630시험 행에서 항상 0 규칙 오류 97,불만 규칙 오류 67입니다. 차이와 인과 해석 가능 여부는?
On the same 630 test rows, constant zero misses 97 and the complaint rule misses 67. Find the difference and discuss a causal interpretation.
풀이와 확인할 이유Solution and explanation
63097−67=63030=211≈0.047619
오분류율 차이는 약 4.76퍼센트포인트입니다. 불만을 처리하는 개입을 무작위 배정한 실험이 아니므로 이탈 감소의 인과 효과라고 부를 수 없습니다. 예측 비교의 추론도 같은 행의 짝지어진 손실을 고려해야 합니다.
63097−67=63030=211≈0.047619
The observed error-rate difference is about 4.76 percentage points. There was no randomized complaint-handling intervention, so this is not its causal effect on churn. Performance inference must also respect paired losses on identical rows.
56. VC가 같아도 같은 위험인가Does equal VC imply equal risk?
세 실제 사례가 같은 다섯 함수와 완전 네 상태 영역을 쓰면 VC=2입니다. 그러면 시험 손실과 Massart 상한도 같아야 하나요?
All three cases use the same five functions on the complete four-state domain, giving VC two. Must test losses and Massart bounds also be equal?
풀이와 확인할 이유Solution and explanation
아닙니다. VC는 함수군과 영역의 조합 성질입니다. 실제 입력·정답·역할·표본 수가 다르므로 관측 손실 벡터와 길이가 달라지고, 표 의존 상한도 달라집니다. VC가 같은 것은 미래 법칙이나 위험이 같다는 주장도 아닙니다.
No. VC is a combinatorial property of the declared class and domain. Different inputs, labels, roles and sample sizes give different loss vectors and norms, hence different sample-dependent bounds. Equal VC does not establish equal population laws or risks.
57. 작은 정확값과 큰 상한A small exact audit and a full-sample bound
개인·기업의 12행 감사 R이 둘 다 1637/12288입니다. 전체 훈련 수는 1802와1890입니다. 무엇이 같고 무엇을 바꾸어 쓰면 안 되나요?
Person and company twelve-row audits both give 1637/12288, but full training sizes are 1802 and 1890. What agrees and what cannot be substituted?
풀이와 확인할 이유Solution and explanation
두 작은 표의 보통 부호 평균이 정확히 같습니다. 전체 손실·표본·모집단이 같다는 결론은 아닙니다. 이 값을 전체 1802행 또는1890행의 경험적 복잡도라고 바꾸어 쓰지 않습니다. 각 전체 표의 상한은 별도로 계산합니다.
The two small tables have exactly equal ordinary sign averages. Their complete losses, samples and population laws need not agree. Do not relabel that audit value as complexity on 1802 or 1890 observations. Compute full-sample bounds separately.
58. 새 연습 법칙의 질량Masses in the new practice law
국가 훈련 9행 중 양성이 6행입니다. 선언한 Bernoulli 연습 법칙에서 두 번 모두 1일 확률은? 실제 새 국가 확률인가요?
Six of nine country training records are positive. Under the declared Bernoulli practice law, what is the probability of two ones? Is it a factual probability for new countries?
풀이와 확인할 이유Solution and explanation
p=96=32,Ptoy(Y1=Y2=1)=(32)2=94
p̂를 고정한 새 IID 연습 세계의 확률입니다. 실제 국가의 미래 성장 사건이 독립이고 확률 2/3이라고 원자료가 증명한 것은 아닙니다.
p=96=32,Ptoy(Y1=Y2=1)=(32)2=94
This is conditional on the declared fitted probability in a new IID practice world. The source observations do not prove that future country events are independent with probability two thirds.
59. 여러 화면의 실패 예산Failure budgets across several displays
세 자료×세 역할의 아홉 경계를 동시에 실패 확률 0.05 이하로 보장하려면 단순 합집합 방식으로 각 경계에 얼마를 배분할 수 있나요?
For nine bounds, three datasets times three roles, allocate a total failure budget of 0.05 using a simple union bound.
풀이와 확인할 이유Solution and explanation
δj=90.05=1801,j=1∑9δj=201
각 경계의 자체 가정이 모두 충족되어야 합니다. 아홉 사건의 독립성은 필요하지 않습니다. 각각 0.05를 쓴 아홉 결과가 자동으로 공동 95%가 되지는 않습니다.
δj=90.05=1801,j=1∑9δj=201
Every bound still needs its own assumptions. Independence among failure events is unnecessary. Nine separate delta values of 0.05 do not automatically form one simultaneous ninety-five-percent guarantee.
60. 고정 정답의 부호 변환Transforming signs for fixed labels
고정 0/1정답 yᵢ에서 손실 yᵢ+(1−2yᵢ)h(xᵢ)의 보통 R이 예측 벡터의 보통 R과 같은 이유를 보이세요. 절댓값도 자동으로 같은가요?
For fixed binary labels, prove ordinary complexity of loss y_i+(1−2y_i)h(x_i) equals ordinary complexity of predictions. Does the absolute version automatically agree?
공통 y항은 후보 선택 밖으로 뺄 수 있고 부호 기대값이 0입니다. 각 고정 곱셈 인수는 ±1이므로 τ도 독립 공정 부호입니다. 절댓값은 공통 이동을 밖으로 선형 분리할 수 없어 이 증명이 그대로 적용되지 않습니다. 한 함수의 절댓값 복잡도가 정답에 따라 변하는 반례를 31절과 연결하세요.
The common label term leaves the supremum and has sign expectation zero. Each fixed multiplier is minus or plus one, so transformed signs remain independent and fair. An absolute value prevents that linear separation; the same proof does not establish equality. Connect this with the singleton absolute-complexity example.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.