ML-17 · MACHINE LEARNING

일치성·국소 학습·비모수 수렴률Consistency, local learning and nonparametric rates

가까운 평균에서 빈 창·수렴 증명과 실제 예측까지From nearby averages to empty windows, consistency proofs and factual prediction

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

기초Foundations

가까운 사람들의 평균으로 시작하기Start with averages of nearby observations

교육 연수가 비슷한 사람들의 임금을 평균하면 새 사람의 임금을 예상하는 데 도움이 될까요? 국가 소득 수준이 비슷한 나라의 다음 해 성장률이나, 통화 실패 횟수가 비슷한 고객의 이탈률도 같은 방식으로 생각할 수 있습니다. 이웃의 결과를 평균하는 것은 간단하지만, 어떤 이웃을 얼마나 많이 쓸지가 결과를 바꿉니다.

관측한 Y 한 개와 우리가 알고 싶은 평균 m(x)를 먼저 구별합니다. 같은 교육 연수라도 임금은 서로 다릅니다. m(x)=E[Y|X=x]는 입력이 x일 때의 조건부 평균이고, 한 사람의 임금은 그 평균 주위의 변동을 포함합니다. 실제 자료에서는 참된 m을 알지 못하므로 관측한 값만 가지고 추정합니다.

m(x)=E[Y∣X=x],Y=m(X)+ε,E[ε∣X]=0m(x)=\mathbb E[Y\mid X=x],\qquad Y=m(X)+\varepsilon,\qquad\mathbb E[\varepsilon\mid X]=0

이 식의 마지막 평균 0은 조건부 평균을 m으로 정의하면 얻는 분해입니다. 서로 다른 사람의 잡음이 독립이라는 결론은 포함하지 않습니다. 평균을 추정하는 오차와 미래 사람 한 명의 결과를 예측하는 오차도 다릅니다. 뒤에서는 이 차이를 정확한 숫자로 계산합니다.

조건부 평균은 입력 분포에서 거의 모든 x에 대해 정의하는 개념입니다. 관측이 없는 영역에서 값을 어떻게 이어 붙일지는 추가 가정이 필요합니다. “데이터가 많다”는 말에 앞서 누구의 어떤 입력 주변에 자료가 있는지를 묻는 이유입니다.

Could the mean wage of people with similar schooling help predict a new person’s wage? The same idea applies to future growth of countries with similar income levels, or churn among customers with similar call-failure counts. Averaging neighbors is simple, but the number and definition of neighbors matter.

First separate one observed Y from the conditional mean m(x). People with identical schooling can have different wages. The conditional mean describes the average outcome given that input, whereas a person’s realized outcome also includes variation around it. The true mean is unknown in the empirical cases.

m(x)=E[Y∣X=x],Y=m(X)+ε,E[ε∣X]=0m(x)=\mathbb E[Y\mid X=x],\qquad Y=m(X)+\varepsilon,\qquad\mathbb E[\varepsilon\mid X]=0

The zero conditional mean follows from defining m as the conditional expectation. It does not establish independence of different people’s noises. Estimating that mean also differs from predicting one future person’s noisy outcome. We will calculate that distinction explicitly.

Conditional expectations are defined almost everywhere under the input law. Extending a function into an unobserved region needs additional assumptions. Ask where the observations are before asking whether there are many of them.

기초Foundations

전체 평균과 근처 평균을 손으로 구하기Calculate global and nearby averages by hand

먼저 실제 자료와 구별한 구성 예를 씁니다. 입력과 결과가 (0,0),(1,2),(2,4)인 세 관측이 있습니다. 결과의 전체 평균은 2입니다. 새 입력이 1.5일 때 반경 0.5 안의 관측은 입력 1과 2이므로 결과 2와 4를 평균하여 3을 예측합니다.

만일 구성한 참된 평균이 m(x)=2x라면 이 예측은 m(1.5)=3과 같습니다. 여기서는 우리가 m을 직접 정했기 때문에 맞는지 알 수 있습니다. 실제 임금·성장률·이탈 자료에서는 그런 정답 곡선이 주어져 있지 않습니다.

구성한 작은 관측 표
관측 ID입력 X관측 Y1.5에서 거리
a001.5
b120.5
c240.5
m^all=0+2+43=2,m^near(1.5)=2+42=3\widehat m_{\rm all}=\frac{0+2+4}{3}=2,\qquad\widehat m_{\rm near}(1.5)=\frac{2+4}{2}=3

근처 평균은 질문한 x에 따라 사용할 관측을 바꿉니다. 여러 x에서 각각 계산하면 하나의 예측 곡선이 됩니다. 절편과 기울기 두 모수를 맞추는 단순 선형 모형과 달리, 표본이 늘면 활용하는 이웃 구조도 바뀔 수 있습니다. 이를 비모수 학습이라고 부르지만 가정이 전혀 없다는 뜻은 아닙니다.

Use a constructed example, distinct from the factual datasets: observations (0,0), (1,2) and (2,4). The global outcome average is two. At query input 1.5, a native radius of 0.5 includes inputs one and two, so averaging their outcomes gives three.

If we stipulate the true mean m(x)=2x in this constructed world, the prediction equals m(1.5). We know that only because the example declares its true curve. No such answer curve accompanies actual wages, country growth or churn.

A small constructed observation table
IDInput XObserved YDistance from 1.5
a001.5
b120.5
c240.5
m^all=0+2+43=2,m^near(1.5)=2+42=3\widehat m_{\rm all}=\frac{0+2+4}{3}=2,\qquad\widehat m_{\rm near}(1.5)=\frac{2+4}{2}=3

A local mean changes its contributing observations with the query. Computing it at many inputs produces a prediction curve. Unlike a fixed small parameterization of a line, the neighborhood structure may grow with sample size. Nonparametric does not mean assumption-free.

학부Undergraduate

입력 단위와 훈련 전용 거리척도Input units and a training-only distance scale

1년의 교육 차이와 1달러의 소득 차이는 같은 크기가 아닙니다. 같은 숫자의 반경을 다른 단위에 그대로 넣으면 비교가 바뀝니다. 실습의 기본 변환은 적격 훈련 X의 최솟값을 빼고 훈련 범위로 나눕니다. 새 질의나 검증·시험의 X는 이 범위를 정하는 데 넣지 않습니다.

z(x)=x−xmin⁡,trainstrain,strain=xmax⁡,train−xmin⁡,trainz(x)=\frac{x-x_{\min,\rm train}}{s_{\rm train}},\qquad s_{\rm train}=x_{\max,\rm train}-x_{\min,\rm train}

앞 예의 훈련 범위는 2입니다. 변환 후 거리 0.5는 원 입력 단위의 거리 1과 같습니다. 따라서 h=0.5인 창은 원 반경 1입니다. h가 0.25면 원 반경은 0.5입니다. 여기서 h는 전역 표본 분포의 알려진 표준편차가 아니라 명시한 훈련 변환의 단위입니다.

훈련 X가 모두 같으면 범위가 0입니다. 0으로 나누지 않고 척도를 원 X의 1단위로 둡니다. 새 질의를 훈련 최댓값 안으로 잘라 넣지도 않습니다. 모든 훈련 X가 2일 때 질의 2.2는 실제로 떨어진 질의이며, 좁은 창에서는 이웃이 없을 수 있습니다.

One year of schooling and one dollar of income are different units. Reusing the same numerical radius across them changes its meaning. By default, subtract the eligible training minimum and divide by the training range. Query, validation and test inputs do not set this transformation.

z(x)=x−xmin⁡,trainstrain,strain=xmax⁡,train−xmin⁡,trainz(x)=\frac{x-x_{\min,\rm train}}{s_{\rm train}},\qquad s_{\rm train}=x_{\max,\rm train}-x_{\min,\rm train}

The preceding training range is two. A normalized distance of 0.5 therefore means a native distance of one. Bandwidth 0.5 gives native radius one; bandwidth 0.25 gives native radius one half. The scale is a declared training transformation, not a known population standard deviation.

When all training inputs coincide, the range is zero. Use one native input unit as the scale rather than dividing by zero. Do not clip a query into the training range. If every training input is two, query 2.2 remains genuinely separated and can have no neighbor under a narrow window.

학부Undergraduate

상자와 삼각형 가중치Box and triangular weights

반경 안의 모든 이웃에 같은 표를 주는 방법이 상자 커널입니다. 삼각형 커널은 중심에서 멀어질수록 가중치를 직선으로 줄여 경계에서 0으로 만듭니다. 가중치 합으로 나누면 평균 계수의 합이 1이 됩니다. 아래 dᵢ는 현재 거리척도로 잰 질의와 i번째 훈련 관측의 거리입니다.

wibox=1{di≤h},witriangle=max⁡{0,1−di/h},ai=wi∑jwj,m^(x)=∑iaiYiw_i^{\rm box}=\mathbf1\{d_i\le h\},\qquad w_i^{\rm triangle}=\max\{0,1-d_i/h\},\qquad a_i=\frac{w_i}{\sum_jw_j},\qquad\widehat m(x)=\sum_i a_iY_i

앞의 세 관측에서 질의 1, 훈련 범위 2, h=1/2를 넣으면 거리는 1/2,0,1/2입니다. 상자는 경계도 포함하므로 계수가 모두 1/3이고, 삼각형은 양끝 가중치가 0이라 가운데 계수만 1입니다. 두 예측 평균은 2로 같지만 사용하는 정보는 다릅니다.

조건부 잡음들이 서로 무상관이고 같은 분산 σ²라면, 고정 계수 평균의 분산은 σ²Σaᵢ²입니다. 이 조건에서 1/Σaᵢ²를 분산에 대응하는 유효 관측 수로 읽을 수 있습니다. 여기서는 상자 3, 삼각형 1입니다. 잡음의 공분산이 있으면 이 수만으로 분산을 정할 수 없으며 다음 부에서 행렬로 계산합니다.

A box kernel gives equal raw weight to every neighbor in its window. A triangular kernel decreases weight linearly with distance and reaches zero at the boundary. Dividing by total raw weight makes averaging coefficients sum to one. Distance d_i is measured in the declared current scale.

wibox=1{di≤h},witriangle=max⁡{0,1−di/h},ai=wi∑jwj,m^(x)=∑iaiYiw_i^{\rm box}=\mathbf1\{d_i\le h\},\qquad w_i^{\rm triangle}=\max\{0,1-d_i/h\},\qquad a_i=\frac{w_i}{\sum_jw_j},\qquad\widehat m(x)=\sum_i a_iY_i

At query one in the three-row example, training range two and bandwidth one half give distances one half, zero, one half. The box includes both boundaries, giving three equal coefficients. The triangle gives zero boundary weights and uses only the middle observation. Both means are two, but their information differs.

For conditionally uncorrelated noises of common variance sigma squared, a fixed weighted average has variance sigma squared times the sum of squared coefficients. Its reciprocal can then be read as a variance-equivalent sample size: three for the box, one for the triangle. With nonzero noise covariance this number alone does not determine variance; the next part uses a covariance matrix.

학부Undergraduate

이웃 수를 고정하면 동률을 어떻게 고르는가Choose a fixed number of neighbors and resolve ties

kNN은 반경을 먼저 정하는 대신 가장 가까운 k개를 고릅니다. 거리순으로 정렬하고 같은 거리에서는 원 입력 행 순서를 씁니다. 정답이 큰 이웃이나 작은 이웃을 골라 동률을 푸는 방법은 사용하지 않습니다. 순서 규칙을 자료의 정답을 보기 전에 정해야 선택의 의미가 분명합니다.

질의 1에서 가운데 b는 거리 0입니다. a와 c는 같은 거리입니다. 원 순서 a,b,c에서 k=2이면 b 다음 a를 골라 (2+0)/2=1을 예측합니다. k=3이면 모두 골라 2를 예측합니다. 경계의 동률을 전부 포함하는 다른 규칙은 세 이웃을 쓰게 되므로 “정확히 k개”와 구별해야 합니다.

구성한 k=2 경계 동률
원 입력 순서먼저 고르는 자기 위치동률에서 고르는 행예측 평균
a,b,cba1
c,b,abc3

입력 순서를 바꾸면 이 동률 예측이 달라질 수 있습니다. 그래서 실제 원행 주소와 순서를 남깁니다. 교육 연수와 통화 실패 횟수는 이산 값이라 같은 X인 관측이 많고, 가장 가까운 한 이웃이 항상 같은 사람 자신이라는 보장도 없습니다. 서로 다른 훈련 X에서 자기 자신을 포함한 1NN의 훈련 오차가 0인 예와 이산 동률의 실제 자료를 섞지 마세요.

kNN chooses the nearest k observations rather than fixing a radius first. Sort by distance, then original input index for ties. Do not break a distance tie by preferring a larger or smaller outcome. Declare ordering before inspecting labels.

At query one, the middle observation b has distance zero. Observations a and c tie. In input order a,b,c, k=2 selects b then a and predicts (2+0)/2, or one. Using all three predicts two. Including every cutoff tie is another rule and can select more than k observations.

A constructed cutoff tie at k=2
Input orderZero-distance observationTie selected nextPrediction
a,b,cba1
c,b,abc3

Changing input order can change this tied prediction, so preserve original row addresses and ordering. Schooling and call-failure counts have many identical values. A nearest training observation is not always a record itself under such ties. Separate the zero self-included 1NN training error for distinct inputs from behavior on actual discrete inputs.

기초Foundations

이웃이 없다는 것과 평균이 0이라는 것No neighbor differs from a zero mean

가까운 관측이 모두 결과 0이면 그 평균은 정확히 0입니다. 반면 질의 주변에 양의 가중치를 가진 관측이 하나도 없으면 평균을 만드는 분모가 0입니다. 이때 값은 미정의입니다. 결과 0으로 채우면 성적을 좋게 꾸미거나 나쁜 채점을 만드는 서로 다른 정책을 몰래 추가하게 됩니다.

실제 국소 평균 실습은 빈 창을 미정의로 표시합니다. k가 적격 훈련 행 수보다 큰 경우도 이웃을 충분히 찾지 못한 것으로 표시하며 k를 조용히 줄이지 않습니다. 나중의 점유수 이론 실습은 빈 창에서 0을 반환하도록 명시한 별도 정책의 오차를 계산합니다. 정책이 달라졌음을 이름과 식에서 확인하세요.

창을 넓히면 채점 가능한 범위가 늘지만 먼 관측을 끌어올 수 있습니다. 창을 좁혀 일부 쉬운 질의만 남긴 낮은 평균 오차를 모든 질의의 성적과 비교하면 안 됩니다. 뒤의 검증 실습은 각 후보가 덮는 범위와 공통 범위를 함께 보여 줍니다.

If every contributing outcome is zero, the local mean is exactly zero. If no observation has positive weight, the denominator is zero and the mean is undefined. Filling it with zero silently adds a different prediction policy and can alter evaluation.

The factual local-mean lab marks empty windows undefined. A requested k larger than eligible training size is also undefined; it is not quietly reduced. A later occupancy-theory lab separately declares a zero-on-empty policy and calculates its error. Keep that policy change explicit in its name and equations.

Wider windows increase coverage but can pull in distant observations. A narrow window’s low average error on a few easy queries is not directly comparable with error over every query. The validation lab shows candidate coverage and common support separately.

학부Undergraduate

실제 자료에서 무엇을 평균하는가What is averaged in the factual datasets?

국가 사례는 2023년 1인당 GDP를 X로, 2024년 연간 총 GDP 성장률을 Y로 씁니다. 이번 장은 성장률을 0/1로 자르지 않고 원 연속 수치를 평균합니다. 입력은 2015년 불변 미국 달러, 결과는 연간 성장률 %이며, 예측과 관측의 차이는 퍼센트포인트입니다. 16개 국가의 32개 원지표 기록을 보존합니다.

개인 사례는 원 NLS 3613행의 교육 연수 ed76와 원 임금 wage76를 사용합니다. 필수값이 있는 3017행은 훈련 1806, 검증 601, 시험 610행이고 결측 596행은 원필드와 계획 역할을 유지합니다. 원자료 1행의 원 ID 2는 교육 7년, 임금 548명목 센트/시간입니다. 교육의 인과 효과나 현재 구매력의 임금으로 부르지 않습니다.

기업 사례는 3150행의 원 통화 실패 횟수를 X로, 원 이탈 0/1을 Y로 씁니다. 이웃 평균은 이 설정에서 0~1의 예측 값이 되고, 제곱 오차는 Brier 단위입니다. 첫 원행은 실패 8회, 이탈 0입니다. 원 Charge Amount=10인 7행도 보존합니다.

실제 목표와 손실 단위
자료훈련/검증/시험Y 원 단위MSE 단위
국가9/3/4연간 성장률 %퍼센트포인트²
개인1806/601/6101976년 명목 센트/시간(센트/시간)²
기업1890/630/630원 이탈 0/1제곱확률 · Brier

같은 해시 규칙으로 역할을 재현할 수 있어도 독립 표본이 되지는 않습니다. 국가의 공통 충격, 조사의 표집 방식, 고객 구성과 측정 시점은 각각 별도 문제입니다. 특히 이산 교육·실패 횟수에 연속 밀도가 양수라는 가정을 자동으로 붙이지 않습니다.

The country example uses 2023 GDP per capita as X and raw 2024 annual total GDP growth as Y. Here the response remains continuous rather than being thresholded into a binary event. Inputs are in constant 2015 US dollars; output growth is an annual percentage, and residuals are percentage points. Retain thirty-two native indicator records for sixteen countries.

The person example uses ed76 and raw wage76 in all 3613 NLS rows. Of 3017 eligible records, 1806 are training, 601 validation and 610 test. Preserve the 596 exclusions, native fields and planned roles. Source row one, native ID two, has seven years of schooling and wage 548 nominal cents per hour. This is neither a causal education effect nor a current-purchasing-power wage.

The company example uses native call-failure count and native binary churn in all 3150 rows. A local average lies between zero and one; its squared error has Brier units. The first native record has eight call failures and no churn. Preserve the seven native Charge Amount codes equal to ten.

Actual targets and loss units
DatasetTraining/validation/testNative Y unitsMSE units
Country9/3/4Annual growth percentPercentage points squared
Person1806/601/610Nominal 1976 cents/hour(Cents/hour) squared
Company1890/630/630Native binary churnSquared probability: Brier

A reproducible role hash does not make observations independent. Common country shocks, survey sampling and customer composition or timing remain separate questions. Discrete schooling and call counts do not automatically satisfy a positive continuous-density assumption.

학부Undergraduate

실습:평균·가중치·동률을 직접 바꾸기Lab: change means, weights and ties

기본 훈련 표는 a=(0,0),b=(1,2),c=(2,4), 질의는 1입니다. 훈련 전용 범위 변환과 상자 h=1/2에서 평균 2, 계수 1/3씩, 유효 관측 수 3인지 확인하세요. 삼각형으로 바꾸면 평균은 여전히 2지만 계수는 0,1,0이고 유효 관측 수는 1입니다.

kNN의 k=2로 바꾸면 b,a의 평균 1입니다. a와 c의 순서를 바꿔 경계 동률이 주는 차이를 관찰하세요. 질의 100에서 좁은 상자 창을 쓰거나, 세 적격 행에서 k=4를 요구하면 미정의가 나와야 합니다. 원거리 관측의 전체 평균으로 대체하지 않습니다.

각 행의 원 X·Y, 거리, 원 가중치, 정규화 계수를 나란히 읽으세요. 계산 후 다른 입력을 쓰면 이전 결과가 지워지고 새 계산이 필요합니다. 한영 전환은 같은 입력을 유지합니다. 이 실습은 유한 표에서의 정확 평균을 계산하며 참된 m(x)를 확인했다고 표시하지 않습니다.

Defaults use training observations a=(0,0), b=(1,2), c=(2,4), query one, training-only range scaling and a box bandwidth of one half. Verify mean two, three coefficients of one third and effective size three. Switching to a triangle keeps mean two but gives coefficients zero, one, zero and effective size one.

Switch to kNN with k=2 to obtain the mean of b and a, or one. Swap a and c to observe cutoff-tie behavior. Query one hundred with a narrow box, or request four neighbors from three eligible records: both should be undefined, without a global-mean substitute.

Read each row’s native values, distance, raw weight and normalized coefficient. Changed inputs clear previous results and require a new calculation; language switches retain the same inputs. This lab computes an exact finite-table mean, not the unknown true m(x).

학부Undergraduate

관측 오차·편향·분산을 나누어 읽기Separate observed error, bias and variance

한 번 나온 예측이 정답보다 10 낮았다고 그 방법의 편향이 −10이라고 할 수 있을까요? 편향은 같은 조건 아래 훈련 잡음을 다시 뽑았을 때 추정량의 평균과 목표의 차이입니다. 한 번의 오차는 그 평균에서의 흔들림도 포함합니다. 실제 표 한 개에는 이 반복 실험의 모든 결과가 들어 있지 않습니다.

Bias⁡(m^)=E[m^]−m0,E[(m^−m0)2]=Bias⁡(m^)2+Var⁡(m^)\operatorname{Bias}(\widehat m)=\mathbb E[\widehat m]-m_0,\qquad \mathbb E[(\widehat m-m_0)^2]=\operatorname{Bias}(\widehat m)^2+\operatorname{Var}(\widehat m)

식을 전개하려면 추정량에서 그 기대값을 더했다 뺍니다. 중심화한 항의 평균은 0이므로 교차항이 사라집니다. 유한한 이차 적률이 필요하며 기대값을 어떤 무작위성에 대해 취하는지도 정해야 합니다. 이 부는 X 설계를 고정한 조건부 평균·공분산을 주어진 값으로 둡니다.

실제 원 임금의 이웃 평균과 그 사람의 임금을 비교한 것은 관측 예측 오차입니다. 참된 m과 조건부 잡음 법칙이 알려져야 그 한 오차를 이론적 편향·분산으로 분해할 수 있습니다. 실습에서 입력하는 “주어진 평균”과 원자료의 관측 Y를 구분하세요.

Does a prediction ten below one observed outcome establish bias minus ten? Bias compares the estimator’s mean across repeated training noise with its target. One realized error also contains fluctuation around that mean. A single factual table does not reveal every repeated experiment.

Bias⁡(m^)=E[m^]−m0,E[(m^−m0)2]=Bias⁡(m^)2+Var⁡(m^)\operatorname{Bias}(\widehat m)=\mathbb E[\widehat m]-m_0,\qquad \mathbb E[(\widehat m-m_0)^2]=\operatorname{Bias}(\widehat m)^2+\operatorname{Var}(\widehat m)

Add and subtract the estimator’s expectation. The centered term has mean zero, so the cross term disappears. Require finite second moments and state which randomness the expectation averages. This part conditions on the input design and treats conditional means and covariance as declared model quantities.

Comparing an actual wage prediction with a person’s realized wage gives observed prediction error. Decomposing it into theoretical bias and variance requires the true regression mean and conditional noise law. Distinguish the lab’s stipulated means from observed source outcomes.

학부Undergraduate

고정 가중치의 조건부 평균Conditional means with fixed weights

조건부 평균이 m₁,…,mₙ인 관측을 계수 aᵢ로 평균합니다. 계수는 합이 1이고 음수가 아니며, 여기서는 미리 고정하거나 X만 보고 정했다고 둡니다. 조건으로 고정한 X 아래에서 계수가 잡음 Y를 보고 다시 선택되지 않아야 다음의 평균 계산을 그대로 쓸 수 있습니다.

m^=∑iaiYi,∑iai=1,E[m^∣X]=∑iaimi,b(X)=∑iaimi−m0\widehat m=\sum_i a_iY_i,\quad\sum_i a_i=1,\qquad\mathbb E[\widehat m\mid X]=\sum_i a_i m_i,\qquad b(X)=\sum_i a_i m_i-m_0

예를 들어 이웃의 주어진 평균이 1과 3이고 계수가 각각 1/2라면 추정량 평균은 2입니다. 목표 평균도 2라면 편향 0, 목표가 0이면 편향 2입니다. 가중치를 계산하는 수식만 같아도 무엇을 목표로 삼는지에 따라 편향이 바뀝니다.

국소 평균의 창과 k를 미리 정하면 가중치는 X 거리에서 나옵니다. 검증 Y로 창을 선택하는 전체 절차를 분석할 때에는 그 선택의 무작위성도 추가됩니다. 선택된 창의 계수를 “처음부터 고정한 계수”로 바꿔 말하면 다른 문제를 풀게 됩니다.

Average observations whose conditional means are m_i using nonnegative coefficients summing to one. Fix the coefficients in advance or let them depend only on the conditioned-on X design. They must not be reselected using noisy outcomes for this simple conditional calculation.

m^=∑iaiYi,∑iai=1,E[m^∣X]=∑iaimi,b(X)=∑iaimi−m0\widehat m=\sum_i a_iY_i,\quad\sum_i a_i=1,\qquad\mathbb E[\widehat m\mid X]=\sum_i a_i m_i,\qquad b(X)=\sum_i a_i m_i-m_0

If the two declared neighbor means are one and three with equal coefficients, the estimator’s mean is two. Its bias is zero for target mean two, but two for target mean zero. The target matters even when the averaging formula is unchanged.

With a predetermined window or k, local weights come from X distances. Analyzing a bandwidth selected using validation outcomes additionally involves selection randomness. Relabeling those selected weights as fixed from the outset changes the problem.

학부 심화 · 선택Advanced undergraduate · optional

가까운 이웃이 편향을 줄이는 조건When nearby observations reduce bias

이웃이라는 말만으로 편향이 작아지지는 않습니다. 회귀 평균이 가까운 입력에서 얼마나 빨리 바뀌는지 제한하는 조건이 필요합니다. 이 장의 기본 국소 상수 논증은 0<s≤1인 Hölder 조건을 사용합니다. s=1이면 입력 차이에 비례해 평균 차이가 제한되는 Lipschitz 조건입니다.

∣m(u)−m(x)∣≤L∥u−x∥s,0<s≤1|m(u)-m(x)|\le L\lVert u-x\rVert^s,\qquad0<s\le1

가중치가 반경 h 이내에만 있고 합이 1이면, 삼각부등식으로 편향의 절댓값은 Lhˢ 이하입니다. 따라서 제곱 편향은 L²h²ˢ 이하입니다. 작은 창은 이 항을 줄이지만 양의 가중치를 가진 관측 수도 줄일 수 있습니다.

∣∑iaim(Xi)−m(x)∣≤∑iaiLhs=Lhs,b(X)2≤L2h2s\left|\sum_i a_i m(X_i)-m(x)\right|\le\sum_i a_i Lh^s=Lh^s,\qquad b(X)^2\le L^2h^{2s}

이것은 정해진 함수의 매끄러움 조건에서 얻은 상한입니다. 원자료의 점들이 선처럼 보인다는 사실만으로 L과 s가 알려지지는 않습니다. 불연속점이나 관측 영역 밖에서는 이 조건을 따로 확인해야 합니다. 두 번 미분 가능한 곡선의 더 빠른 편향 소거는 대칭성·경계·밀도 또는 국소 다항식의 추가 구조를 다룹니다.

A nearby observation does not automatically have a similar regression mean. Bound how quickly the mean can change. Our basic local-constant argument uses a Holder condition with exponent between zero and one. At exponent one it is a Lipschitz condition.

∣m(u)−m(x)∣≤L∥u−x∥s,0<s≤1|m(u)-m(x)|\le L\lVert u-x\rVert^s,\qquad0<s\le1

If normalized weights are supported within radius h, the triangle inequality bounds absolute bias by L times h to power s, hence squared bias by L squared times h to power two s. A smaller window reduces this term but can leave fewer contributing observations.

∣∑iaim(Xi)−m(x)∣≤∑iaiLhs=Lhs,b(X)2≤L2h2s\left|\sum_i a_i m(X_i)-m(x)\right|\le\sum_i a_i Lh^s=Lh^s,\qquad b(X)^2\le L^2h^{2s}

This is an upper bound under declared smoothness. A plotted sample resembling a line does not identify L or s. Discontinuities and unobserved regions need separate consideration. Faster bias cancellation for twice-differentiable curves requires additional symmetry, boundary, density or local-polynomial structure.

학부 심화 · 선택Advanced undergraduate · optional

분산에서 공분산을 빼먹지 않기Keep covariance in the variance calculation

조건부 잡음의 공분산 행렬을 Σ라고 쓰면 고정 평균의 분산은 aᵀΣa입니다. 서로 다른 잡음의 공분산이 0이면 대각항만 남습니다. 독립은 이차 적률이 존재할 때 0 공분산을 주지만, 0 공분산만으로 독립이 성립하지는 않습니다.

Var⁡(m^∣X)=a⊤Σa=∑iai2σi2+2∑i<jaiajCov⁡(εi,εj∣X)\operatorname{Var}(\widehat m\mid X)=a^\top\Sigma a=\sum_i a_i^2\sigma_i^2+2\sum_{i<j}a_i a_j\operatorname{Cov}(\varepsilon_i,\varepsilon_j\mid X)

세 관측을 똑같이 평균하고 각각 잡음 분산이 1이라고 합시다. 공분산이 모두 0이면 분산은 1/3입니다. 세 잡음이 완전히 같은 하나의 공통 충격 U라면 공분산 행렬의 모든 원소가 1이고 평균의 잡음도 U라서 분산은 1입니다. 행을 세 번 복사해도 세 독립 관측이 되지 않는 이유입니다.

공분산 행렬은 대칭 양의 준정부호여야 합니다. 모든 선형 결합의 분산 aᵀΣa가 음수가 될 수 없기 때문입니다. 프로그램은 작은 행렬에서 정확한 Schur 보완을 사용해 이를 확인하고, 아주 작은 양수를 임의로 0으로 자르지 않습니다. 이 검사는 주어진 행렬의 수학적 적합성을 확인하며 현실의 독립성을 검증하지 않습니다.

Let Sigma be the conditional noise covariance matrix. A fixed weighted mean has variance a transpose Sigma a. Zero off-diagonal covariance removes cross terms. Independence implies zero covariance when the required moments exist; the converse generally fails.

Var⁡(m^∣X)=a⊤Σa=∑iai2σi2+2∑i<jaiajCov⁡(εi,εj∣X)\operatorname{Var}(\widehat m\mid X)=a^\top\Sigma a=\sum_i a_i^2\sigma_i^2+2\sum_{i<j}a_i a_j\operatorname{Cov}(\varepsilon_i,\varepsilon_j\mid X)

Average three observations with equal coefficients and unit noise variance. With zero cross-covariances, variance is one third. If all noises equal one common shock U, every covariance entry is one and the mean’s noise is U, with variance one. Copying a row does not create independent observations.

A covariance matrix must be symmetric positive semidefinite because every linear combination has nonnegative variance. The program checks small matrices through exact Schur complements without clipping tiny positive entries. This verifies the stated matrix’s mathematical validity, not empirical independence.

학부Undergraduate

유효 관측 수가 말해 주는 범위What effective sample size does and does not say

계수가 모두 1/n이면 제곱합은 1/n입니다. 계수가 한 관측에 몰리면 제곱합이 커져, 같은 분산의 무상관 잡음 아래 평균의 분산도 커집니다. 이때 계수 제곱합의 역수를 유효 관측 수로 쓸 수 있습니다.

neff=1∑iai2=(∑iwi)2∑iwi2,Var⁡(m^∣X)=σ2neffunder equal-variance uncorrelated noisen_{\rm eff}=\frac1{\sum_i a_i^2}=\frac{(\sum_iw_i)^2}{\sum_iw_i^2},\qquad\operatorname{Var}(\widehat m\mid X)=\frac{\sigma^2}{n_{\rm eff}}\quad\text{under equal-variance uncorrelated noise}

원 가중치 3과 1이면 계수는 3/4와 1/4, 제곱합은 5/8, 유효 수는 8/5=1.6입니다. 실제 관측 두 개보다 작은 것은 한 관측에 더 의존하기 때문입니다. 이 수를 관측을 새로 뽑은 횟수나 모집단 인원이라고 읽지 않습니다.

각 관측의 분산이 다르거나 공분산이 있으면 전체 Σ가 필요합니다. 같은 n_eff라도 소음이 큰 관측에 가중치를 많이 주는지에 따라 분산이 바뀝니다. 이 진단 수치 하나로 복잡한 조사 설계나 반복 관측 의존성을 대신하지 않습니다.

Equal coefficients give squared sum one over n. Concentrating weight increases that sum and, with equal-variance uncorrelated noise, increases estimator variance. The reciprocal is a variance-equivalent effective size.

neff=1∑iai2=(∑iwi)2∑iwi2,Var⁡(m^∣X)=σ2neffunder equal-variance uncorrelated noisen_{\rm eff}=\frac1{\sum_i a_i^2}=\frac{(\sum_iw_i)^2}{\sum_iw_i^2},\qquad\operatorname{Var}(\widehat m\mid X)=\frac{\sigma^2}{n_{\rm eff}}\quad\text{under equal-variance uncorrelated noise}

Raw weights three and one become coefficients three quarters and one quarter. Their squared sum is five eighths and effective size is eight fifths, or 1.6. It is below the two physical observations because one dominates. It is not a new draw count or a population headcount.

Heteroskedasticity or nonzero covariance requires the full covariance structure. Identical effective sizes can have different variances depending on which noisy observations receive weight. This diagnostic does not replace a survey or repeated-observation dependence model.

학부 심화 · 선택Advanced undergraduate · optional

미래 결과의 오차에는 새 잡음도 들어간다Prediction of a future outcome adds new noise

목표 평균 m₀를 추정하는 오차가 1/2이라고 합시다. 미래 결과는 Y₀=m₀+ε₀이고 새 잡음의 분산이 1이며 평균 0이라고 둡니다. 새 잡음과 훈련 추정 오차가 무상관이면 결과 예측의 MSE는 1/2+1=3/2입니다. 새 잡음을 평균 추정 오차로 잘못 세지 않습니다.

E[(m^−Y0)2∣X]=E[(m^−m0)2∣X]+σ02−2Cov⁡(m^,ε0∣X)\mathbb E[(\widehat m-Y_0)^2\mid X]=\mathbb E[(\widehat m-m_0)^2\mid X]+\sigma_0^2-2\operatorname{Cov}(\widehat m,\varepsilon_0\mid X)

공통 충격이 미래에도 이어진다면 마지막 항을 지우면 안 됩니다. 예를 들어 m₀=0이고 모든 훈련 잡음과 미래 잡음이 같은 U, Var(U)=1이면 추정량도 U입니다. 평균 추정 MSE는 1이지만 미래 Y₀도 U라서 결과 예측 오차는 0입니다. 1+1−2=0으로 확인합니다.

실습의 futureNoiseVariance를 더하는 기능은 마지막 공분산이 0이라는 조건을 포함합니다. 미래 소음의 분산만 알고 공분산을 모르면 단순한 덧셈을 정당화할 수 없습니다. 실제 소득·국가·고객 자료의 공통 충격은 자료 수와 별도로 생각해야 합니다.

Suppose mean-estimation MSE is one half. A future outcome equals the target mean plus new mean-zero noise of variance one. If new noise is uncorrelated with the training estimation error, prediction MSE is one and a half. Do not label new outcome noise as error estimating the mean.

E[(m^−Y0)2∣X]=E[(m^−m0)2∣X]+σ02−2Cov⁡(m^,ε0∣X)\mathbb E[(\widehat m-Y_0)^2\mid X]=\mathbb E[(\widehat m-m_0)^2\mid X]+\sigma_0^2-2\operatorname{Cov}(\widehat m,\varepsilon_0\mid X)

A shared future shock prevents dropping the last term. If target mean is zero and every training noise and future noise equals U of variance one, the estimator is U. Its mean-estimation MSE is one, but the future outcome is also U, so prediction error is zero: one plus one minus two.

The lab’s future-noise addition explicitly assumes that final covariance is zero. Knowing the future variance alone does not justify simple addition. Shared shocks in wage, national and customer data require attention beyond sample size.

학부 심화 · 선택Advanced undergraduate · optional

정답을 보고 가중치를 고르면 다른 문제다Choosing weights from outcomes changes the problem

조건부 평균이 0인 두 독립 관측을 구성합시다. 각 관측은 −1일 확률 2/3, 2일 확률 1/3이라 평균 0, 분산 2입니다. 관측한 Y 중 큰 것을 고르면 가중치는 정답에 의존합니다. 관측 이전에 어느 한 행을 고정해서 선택하는 것과 다른 절차입니다.

구성한 두 결과의 동시 법칙
Y₁Y₂질량고른 최댓값
−1−14/9−1
−122/92
2−12/92
221/92
E[max⁡(Y1,Y2)]=23,E[max⁡(Y1,Y2)2]=83,Var⁡(max⁡)=209\mathbb E[\max(Y_1,Y_2)]=\frac23,\quad\mathbb E[\max(Y_1,Y_2)^2]=\frac83,\quad\operatorname{Var}(\max)=\frac{20}{9}

목표 평균 0에 대한 편향은 2/3, 제곱 편향 4/9, 분산 20/9, MSE는 8/3입니다. “어차피 한 행에 가중치 1이니 편향 0, 분산 2”라고 하면 선택을 빠뜨립니다. Y가 큰지 보고 가중치를 붙였기 때문입니다.

이 구성 예는 실제 교육 자료의 진짜 잡음 분포를 추정한 것이 아닙니다. 고정 가중치 분해의 조건이 왜 필요한지 확인하는 알려진 작은 법칙입니다. 검증으로 고른 대역폭도 전체 선택 절차의 일부라는 점을 떠올려 보세요.

Construct two independent observations with conditional mean zero. Each equals minus one with probability two thirds and two with probability one third, giving variance two. Selecting the larger observed Y makes weights depend on outcomes, unlike fixing one row before observing them.

A constructed joint outcome law
Y1Y2MassSelected maximum
−1−14/9−1
−122/92
2−12/92
221/92
E[max⁡(Y1,Y2)]=23,E[max⁡(Y1,Y2)2]=83,Var⁡(max⁡)=209\mathbb E[\max(Y_1,Y_2)]=\frac23,\quad\mathbb E[\max(Y_1,Y_2)^2]=\frac83,\quad\operatorname{Var}(\max)=\frac{20}{9}

For target mean zero, bias is two thirds, squared bias four ninths, variance twenty ninths and MSE eight thirds. Treating the realized one-row coefficient as fixed and declaring bias zero and variance two ignores selection.

This is a known small law constructed to test assumptions, not an estimated wage-noise distribution. It demonstrates why the fixed-weight condition matters. A validation-selected bandwidth likewise belongs to a selection procedure.

학부 심화 · 선택Advanced undergraduate · optional

실습:고정 설계의 편향·분산 계산Lab: compute fixed-design bias and variance

두 이웃의 원 가중치 1,1, 주어진 조건부 평균 1,3, 목표 평균 2, 조건부 잡음 분산 1,1로 시작하세요. 계수 1/2씩, 추정량 평균 2, 편향 0, 분산 1/2를 확인합니다. 새 잡음 분산 1을 더하면, 무상관 조건 아래 미래 결과의 MSE는 3/2입니다.

대각 분산 대신 모든 원소가 1인 2×2 공분산 행렬을 넣을 때는 대각 분산 목록을 제거하고 공분산만 선언합니다. 평균은 같고 분산은 1로 바뀌며 행렬 랭크는 1입니다. 행렬 [[0,1],[1,0]]은 음의 이차형식을 만들 수 있어 거부되어야 합니다.

공분산 행렬을 제거하고 처음의 대각 분산 1,1로 되돌린 뒤 목표 평균을 0으로 바꿔 편향 2와 MSE 9/2를 얻고, 원 가중치를 3,1로 바꿔 평균과 계수도 다시 확인하세요. 모든 원 가중치가 0이면 추정량이 미정의입니다. 아주 작은 양의 분산은 정확 분수에 남고 표시 범위 아래의 비영 값이 0으로 둔갑하지 않아야 합니다. 이 값들은 선언한 조건부 모형의 결과이며 실제 자료에서 참된 평균과 분산을 알아냈다는 뜻이 아닙니다.

Start with raw weights one and one, declared conditional means one and three, target mean two, and noise variances one and one. Verify equal half coefficients, estimator mean two, zero bias and variance one half. Adding future noise variance one gives prediction MSE one and a half under the stated zero-covariance condition.

Replace the diagonal variances with a two-by-two covariance matrix of all ones, removing the diagonal list so only one noise model is declared. The mean is unchanged, variance becomes one and covariance rank is one. Matrix [[0,1],[1,0]] must be rejected because it allows a negative quadratic form.

Remove the covariance matrix and restore the original diagonal variances one and one before changing the target to zero to obtain bias two and MSE nine halves. Then change raw weights to three and one and inspect the new mean and coefficients. Zero total raw weight makes the estimator undefined. Tiny positive variances remain in exact fractions even when their decimals underflow. These are results under a declared conditional model, not identified true means or variances of the factual datasets.

학부Undergraduate

이웃 안 관측 수를 확률변수로 보기Treat neighborhood size as a random count

교실에서 학생 20명에게 같은 반경의 이웃을 찾게 해도 이웃 수는 달라집니다. 표본 X를 새로 뽑는 사고실험에서는 한 고정 지점 x 주위의 관측 수 N 자체가 무작위입니다. 독립이고 같은 설계 분포에서 뽑은 n개 X에 대해, 정해진 창 A의 참된 확률 질량을 p=P(X∈A)라고 쓰면 N은 이항 분포를 따릅니다.

N=∑i=1n1{Xi∈A},N∼Binomial⁡(n,p),E[N]=npN=\sum_{i=1}^n1\{X_i\in A\},\qquad N\sim\operatorname{Binomial}(n,p),\qquad E[N]=np

이 식의 p는 원자료에서 관측한 비율을 자동으로 참값으로 바꾼 것이 아닙니다. 여기서는 알려진 설계 법칙을 가정합니다. 두 관측이 같이 이동하는 공통 충격이 있으면 지시변수도 독립이 아닐 수 있어 이항식을 그대로 적용할 수 없습니다.

예를 들어 n=2, p=1/2이면 이웃 수는 0,1,2이고 확률은 1/4,1/2,1/4입니다. 기대 이웃 수는 1이지만, 매번 정확히 한 관측이 들어간다는 뜻이 아닙니다. 반경 안 평균을 만들기 전에 먼저 빈 창을 다뤄야 합니다.

Even a fixed-radius rule produces different neighbor counts. In a repeated-design experiment, the number N near one fixed query is random. For n independent draws from one design distribution and a predetermined set A with true mass p, the count is binomial.

N=∑i=1n1{Xi∈A},N∼Binomial⁡(n,p),E[N]=npN=\sum_{i=1}^n1\{X_i\in A\},\qquad N\sim\operatorname{Binomial}(n,p),\qquad E[N]=np

The p in this model is a declared population probability, not automatically an observed sample proportion promoted to truth. Shared design shocks can invalidate independent indicators and hence this binomial law.

With two draws and mass one half, counts zero, one and two have probabilities one quarter, one half and one quarter. Expected count one does not mean exactly one neighbor on every repetition. Address empty windows before forming an average.

학부Undergraduate

빈 창을 지우면 오차도 지워진다Dropping empty windows drops part of the error

N=0일 확률은 (1−p)ⁿ입니다. 빈 창을 결과 표에서 없애면 성공적으로 예측한 곳의 성적만 남습니다. 이 장의 실제 국소 평균 실습은 빈 창을 미정의로 남겨 피복률과 예측 성적을 함께 보여 줍니다. 반면 다음의 이론 예제는 전체 반복 실험의 MSE를 계산하려고 “빈 창이면 0을 예측한다”는 별도 규칙을 선언합니다.

P(N=0)=(1−p)n≤e−np(0≤p≤1)P(N=0)=(1-p)^n\le e^{-np}\quad(0\le p\le1)

부등식은 1−p≤e⁻ᵖ에서 나옵니다. p=1에서는 빈 창 확률이 정확히 0이고, 지수 상한은 양수입니다. 상한을 실제 확률과 혼동하지 마세요. p=0이면 빈 창 확률은 1이어서 n만 늘려도 그 창은 채워지지 않습니다.

평균이 항상 μ인 모형에서 빈 창에 0을 내면 그 사건의 제곱 오차는 μ²입니다. μ=0이면 이 항은 우연히 0이지만, 일반 회귀 평균에서 빈 창이 무해하다는 결론은 나오지 않습니다. 대체값 0은 지금 증명을 위한 명시적 예측 규칙이며 웹 실습의 숨은 대체값이 아닙니다.

The empty-window probability is one minus p to power n. Removing those events reports only successful predictions. Our factual local-mean lab keeps them undefined and reports coverage beside loss. The theoretical example below instead declares a different, everywhere-defined rule: predict zero when the window is empty.

P(N=0)=(1−p)n≤e−np(0≤p≤1)P(N=0)=(1-p)^n\le e^{-np}\quad(0\le p\le1)

This follows from one minus p being at most exp minus p. At p one the actual empty probability is zero while its exponential upper bound is positive. At p zero it stays one regardless of n.

For a constant regression mean mu, fallback zero has squared error mu squared on empty events. If mu happens to be zero the term vanishes, which does not make empty windows harmless for general means. The declared fallback belongs to this proof, not to a hidden change in the web predictor.

학부 심화 · 선택Advanced undergraduate · optional

평균 이웃 수의 역수와 역수의 평균The inverse mean count differs from the mean inverse

평균 이웃 수가 np라고 해서 평균의 잡음 분산을 곧바로 σ²/(np)라고 쓸 수는 없습니다. N이 양수인 반복에서는 분산이 σ²/N이므로 N의 법칙에 대해 역수를 평균해야 합니다. N=0에는 1/0을 넣지 않고 양수 사건에 제한한 합을 씁니다.

A=E[1/N;N>0]=∑k=1n1k(nk)pk(1−p)n−kA=E[1/N;N>0]=\sum_{k=1}^n\frac1k{n\choose k}p^k(1-p)^{n-k}
n=2, p=1/2의 역수 계산
N질량1/N을 곱한 기여
01/40: 양수 사건 밖
11/21/2
21/41/8
합15/8

이 합은 5/8입니다. 양수 사건에 조건을 건 평균은 다시 P(N>0)=3/4로 나누므로 5/6입니다. 1/E[N]=1은 두 값 어느 것과도 같지 않습니다. 무엇을 분모로 나눴는지 문장과 표제에 함께 적으세요.

양수 사건의 평균은 예측이 가능한 반복만을 묘사합니다. 전체 손실은 빈 창 사건도 포함합니다. 실제 검증 표에서 available MSE와 전체 피복률을 별도로 보는 이유와 연결됩니다.

Expected count np does not justify replacing random averaging variance by sigma squared over np. On positive-count events variance is sigma squared over N, so average the reciprocal under the count law. Exclude the empty event explicitly rather than inserting one over zero.

A=E[1/N;N>0]=∑k=1n1k(nk)pk(1−p)n−kA=E[1/N;N>0]=\sum_{k=1}^n\frac1k{n\choose k}p^k(1-p)^{n-k}
Reciprocal calculation for n two, p one half
NMassReciprocal contribution
01/40: outside positive event
11/21/2
21/41/8
Total15/8

The restricted expectation is five eighths. Conditioning on positive count divides by its probability three quarters, giving five sixths. The reciprocal of expected count is one, different from both. State the conditioning event and denominator.

The conditional average describes only repetitions where prediction exists. Whole-procedure loss also includes emptiness. This parallels reporting available-case validation error alongside coverage.

대학원 연결Graduate bridge

정확한 항등식에서 간단한 상한 얻기Derive a useful bound from an exact identity

이항 확률에 1/(k+1)을 곱하면 조합 계수의 한 항이 약분됩니다. p>0에서 이 변형을 k=0부터 n까지 합하면 다음 항등식을 얻습니다. p=0이면 N=0이라 왼쪽 값은 1이고, 오른쪽의 0/0 모양 대신 이 별도 값을 씁니다.

1k+1(nk)=1n+1(n+1k+1),E ⁣[1N+1]=1−(1−p)n+1(n+1)p\frac1{k+1}{n\choose k}=\frac1{n+1}{n+1\choose k+1},\qquad E\!\left[\frac1{N+1}\right]=\frac{1-(1-p)^{n+1}}{(n+1)p}

다음으로 양의 정수 k에서 1/k≤2/(k+1)임을 확인합니다. 양수 사건에 대해 합한 뒤, 0 사건까지 포함한 양의 항을 더하면 상한이 더 커질 뿐입니다. 마지막에는 분자 1−(1−p)ⁿ⁺¹≤1을 씁니다.

E[1/N;N>0]≤2E[1/(N+1)]≤2(n+1)p(p>0)E[1/N;N>0]\le2E[1/(N+1)]\le\frac2{(n+1)p}\quad(p>0)

이 상한은 정교한 수치 근사가 아니라 증명을 쉽게 만드는 안전한 부등식입니다. n=2,p=1/2에서 정확값 5/8과 마지막 상한 4/3을 비교하면 상당히 느슨합니다. 확률보다 1이 큰 상한이 나왔다고 계산 오류는 아닙니다. 대상은 확률이 아닌 역수 기대값의 상한이며, 더 작은 자명한 상한 1도 따로 쓸 수 있습니다.

Multiplying a binomial mass by one over k plus one cancels a combinatorial factor. Summing gives the identity below for positive p. If p is zero, N is zero and the expectation is one; use that separate case instead of evaluating zero over zero.

1k+1(nk)=1n+1(n+1k+1),E ⁣[1N+1]=1−(1−p)n+1(n+1)p\frac1{k+1}{n\choose k}=\frac1{n+1}{n+1\choose k+1},\qquad E\!\left[\frac1{N+1}\right]=\frac{1-(1-p)^{n+1}}{(n+1)p}

For positive integer k, one over k is at most two over k plus one. Sum over positive counts, then include the nonnegative zero-count term to enlarge the bound. Finally bound the numerator by one.

E[1/N;N>0]≤2E[1/(N+1)]≤2(n+1)p(p>0)E[1/N;N>0]\le2E[1/(N+1)]\le\frac2{(n+1)p}\quad(p>0)

This is a convenient proof bound, not a close numerical approximation. With n two and p one half, the exact value is five eighths while the last bound is four thirds. The bound may be loose. The quantity being bounded is a restricted reciprocal expectation; the additional trivial bound one can also improve it.

학부 심화 · 선택Advanced undergraduate · optional

알려진 상수 평균 모형의 전체 오차Whole-procedure error under a known constant mean

이제 모형을 완전히 정합니다. X들은 독립 동일 분포이고, 주어진 X 아래 각 Y의 평균은 같은 μ입니다. 잡음의 조건부 분산은 σ²이고 서로 조건부 무상관입니다. N>0이면 창 안의 Y를 같은 비중으로 평균하고, N=0이면 0을 예측합니다. 이 가정들 덕분에 양수 창의 편향은 0, 조건부 분산은 σ²/N입니다.

E[(m^−μ)2]=σ2E[1/N;N>0]+μ2P(N=0)E[(\widehat m-\mu)^2]=\sigma^2 E[1/N;N>0]+\mu^2P(N=0)

n=2,p=1/2,μ=1,σ²=1이면 분산 쪽 5/8과 빈 창 쪽 1/4를 더해 MSE=7/8입니다. μ를 2로 바꾸면 양수 창 분산은 같지만 빈 창 항이 4×1/4=1로 늘어 MSE=13/8이 됩니다. p=0이면 언제나 0을 예측해서 MSE=μ²입니다.

이 값은 실제 임금 자료의 참된 MSE를 알아낸 것이 아닙니다. 실제 자료의 참 회귀 평균·조건부 분산·이웃 질량이 알려져 있지 않습니다. 숫자가 모두 알려진 작은 모형에서 빈 창을 빠뜨리지 않는 연습입니다. 공통 잡음이 있다면 양수 창 분산도 σ²/N으로 줄지 않아 공분산 항을 다시 포함해야 합니다.

Specify the full model: independent identically distributed inputs, common conditional response mean mu, common conditional noise variance sigma squared, and zero conditional cross-covariances. Average uniformly inside a nonempty window and predict zero on emptiness. Positive windows then have zero bias and variance sigma squared over N.

E[(m^−μ)2]=σ2E[1/N;N>0]+μ2P(N=0)E[(\widehat m-\mu)^2]=\sigma^2 E[1/N;N>0]+\mu^2P(N=0)

For n two, mass one half, mu one and noise variance one, add five eighths and one quarter to obtain seven eighths. Changing mu to two leaves the positive-window variance unchanged but raises the empty contribution to one, making total thirteen eighths. At mass zero the rule always predicts zero and MSE is mu squared.

This is not a recovered true wage risk: factual regression means, variances and neighborhood masses are unknown. It is a fully declared model for practicing whole-procedure accounting. Shared noise also requires restoring covariance terms instead of using sigma squared over N.

대학원Graduate

국소 평균의 점별 일치성을 직접 유도하기Derive pointwise consistency of a local mean

고정 지점 x에서 반경 h의 창을 봅니다. X는 독립 동일 분포, 조건부 잡음 평균은 0, 분산은 σ² 이하이고 서로 조건부 무상관이라고 둡니다. 창 안 회귀 평균이 s-Hölder이며 0<s≤1, 상수 L이고, 충분히 작은 h에서 창의 참 질량 p_h가 c hᵈ 이상이라고 둡니다. 마지막 조건은 양의 밀도뿐 아니라 관측 영역과 창의 모양도 포함하는 국소 질량 조건입니다.

N>0에서는 제곱 편향≤L²h²ˢ, 분산≤σ²/N입니다. N=0에는 앞과 같이 0을 예측합니다. m(x)는 유한하다고 두고, 20절의 상한과 빈 창 확률을 결합합니다.

E[(m^h(x)−m(x))2]≤L2h2s+2σ2(n+1)ph+m(x)2e−nphE[(\widehat m_h(x)-m(x))^2]\le L^2h^{2s}+\frac{2\sigma^2}{(n+1)p_h}+m(x)^2 e^{-np_h}
ph≥chd,hn→0,nhnd→∞⟹E[(m^hn(x)−m(x))2]→0p_h\ge ch^d,\quad h_n\to0,\quad nh_n^d\to\infty\quad\Longrightarrow\quad E[(\widehat m_{h_n}(x)-m(x))^2]\to0

첫 항은 창을 줄여 없애고, 둘째와 셋째 항은 창 안 예상 관측 수가 늘도록 해 없앱니다. 두 요구를 동시에 충족해야 합니다. 이 결과는 명시한 지점과 가정 아래의 L² 일치성입니다. 임의의 데이터 법칙에 대한 보편적 일치성 정리를 증명한 것이 아니며, 실제 코드의 빈 창 미정의 규칙도 이론의 0 대체 규칙과 구분합니다.

Fix a query x and radius h. Assume iid inputs, conditionally mean-zero noises with variances bounded by sigma squared and zero conditional cross-covariances. Let the regression be s-Holder locally, with exponent at most one and constant L. For sufficiently small h assume true neighborhood mass p_h is at least c times h to dimension d. This local-mass condition involves both density and support geometry.

On positive counts, squared bias is bounded by L squared h to power two s and variance by sigma squared over N. Declare fallback zero on empty events and finite m(x). Combining the preceding inequalities gives:

E[(m^h(x)−m(x))2]≤L2h2s+2σ2(n+1)ph+m(x)2e−nphE[(\widehat m_h(x)-m(x))^2]\le L^2h^{2s}+\frac{2\sigma^2}{(n+1)p_h}+m(x)^2 e^{-np_h}
ph≥chd,hn→0,nhnd→∞⟹E[(m^hn(x)−m(x))2]→0p_h\ge ch^d,\quad h_n\to0,\quad nh_n^d\to\infty\quad\Longrightarrow\quad E[(\widehat m_{h_n}(x)-m(x))^2]\to0

Shrink the window to remove the first term, while growing its expected count to remove the others. Both requirements matter. This proves pointwise mean-square consistency under the stated conditions, not universal consistency for every data law. Keep the theoretical fallback separate from the factual lab’s undefined-empty rule.

대학원Graduate

점 하나·전체 입력·확률 수렴을 구분하기Distinguish one point, integrated error and probability convergence

평균 제곱 오차가 0으로 가면 Markov 부등식으로 임의의 고정 η>0에 대해 오차가 η를 넘을 확률도 0으로 갑니다. 이것은 훈련 표본을 새로 뽑을 때의 확률 이야기입니다. 계산기의 반복 수가 늘며 숫자가 안정되는 수치 수렴과 다릅니다.

P(∣m^(x)−m(x)∣>η)≤E[(m^(x)−m(x))2]η2P(|\widehat m(x)-m(x)|>\eta)\le\frac{E[(\widehat m(x)-m(x))^2]}{\eta^2}

각 x에서 성립하는 점별 결과를 X 전체의 평균으로 옮기려면 적분과 극한의 순서를 다룰 조건이 추가됩니다. 예를 들어 고정한 충분히 작은 h 범위에서 같은 L,c,σ²와 유한한 공통 |m(x)| 상한, 같은 질량 하한이 거의 모든 x에 균일하게 성립하면 앞 상한을 적분할 수 있습니다. 더 일반적인 적분 일치성은 지배 가능성·적분 가능성 또는 별도 정리를 요구합니다.

표본 하나에서 오차가 내려가는 그림은 이 조건을 검증하지 않습니다. 반대로 실제 곡선의 한 구간이 올라가도 점근 정리를 반박한 것은 아닙니다. 정리는 같은 확률 법칙에서 표본 크기를 늘리는 절차를 말하며, 관측 국가를 몇 개씩 더 붙이는 고정 일정과는 다른 대상입니다.

Mean-square error tending to zero implies convergence in probability by Markov’s inequality, for any fixed positive tolerance. The probability averages newly sampled training data. It is different from numerical convergence of a solver.

P(∣m^(x)−m(x)∣>η)≤E[(m^(x)−m(x))2]η2P(|\widehat m(x)-m(x)|>\eta)\le\frac{E[(\widehat m(x)-m(x))^2]}{\eta^2}

Turning a pointwise statement into integrated risk requires conditions for exchanging integration and a limit. For example, uniform finite constants L, c, sigma squared and a common finite bound on absolute m, together with the same small-bandwidth mass lower bound almost everywhere, allow integrating the preceding bound. More general integrated consistency needs suitable domination, integrability or a separate theorem.

A declining finite-sample curve does not verify those conditions. Nor does one upward segment refute an asymptotic theorem. The theorem concerns growing samples from a specified probability law; a fixed schedule of adding recorded countries describes a different object.

대학원 연결Graduate bridge

실습:빈 창과 역수 기대값을 모두 세기Lab: count empty windows and reciprocal expectations

n=2,p=1/2,μ=1,잡음 분산1로 시작합니다. 표에서 N=0,1,2의 모든 질량과 합1을 확인하고, 빈 창1/4·양수 사건 역수 합5/8·양수 조건부 역수5/6·1/(N+1) 평균7/12를 대조하세요. 상수 평균의 전체 MSE는7/8입니다.

먼저 n을 8로 늘린 뒤 p를 줄여 예상 이웃 수와 빈 창 확률이 어떻게 함께 바뀌는지 보세요. p=0은 모든 질량이 N=0에 있고 양수 조건부 역수가 미정의입니다. p=1이면 N=n에만 질량이 있으며 n>0일 때 역수1/n입니다. n=0은 p와 무관하게 빈 창입니다.

매우 작은 양의 p도 정확 분수와 모든 n+1개 질량에 보존됩니다. 화면에 0이나1로 반올림될 때는 비영·1과 다름 표지를 읽고 전체 정확값을 펼쳐 보세요. 실제 데이터의 관측 비율을 이 실습에 넣는 행위만으로 모집단의 p를 안다고 주장하지 않습니다.

Start with n two, p one half, mean one and noise variance one. Check every mass at counts zero, one and two and total mass one. Verify empty probability one quarter, restricted reciprocal five eighths, positive-conditional reciprocal five sixths and mean reciprocal-plus-one seven twelfths. Whole constant-mean MSE is seven eighths.

Increase n to eight, then reduce p and compare expected count with empty probability. At p zero only count zero has mass and the conditional reciprocal is undefined. At p one the count is n, with reciprocal one over n when positive. At n zero the window is empty regardless of p.

Tiny positive p remains in exact fractions and all n plus one count masses. Read nonzero and not-equal-to-one flags when a display rounds to zero or one; expand exact values when needed. Entering an empirical fraction does not identify the true population p.

학부 심화 · 선택Advanced undergraduate · optional

창의 폭을 표본 크기의 거듭제곱으로 정하기Choose a power-law bandwidth schedule

hₙ=n⁻ᵅ라고 정하면 두 극한을 지수 비교로 읽을 수 있습니다. α>0이면 창이 줄고, nhᵈ=n¹⁻ᵈᵅ이므로 1−dα>0이면 예상 이웃 수의 규모가 늘어납니다. 앞 절의 가정 아래 0<α<1/d가 두 요구를 함께 만족시키는 구간입니다.

hn=n−α,hn2s=n−2sα,1nhnd=n−(1−dα),0<α<1dh_n=n^{-\alpha},\qquad h_n^{2s}=n^{-2s\alpha},\qquad\frac1{nh_n^d}=n^{-(1-d\alpha)},\qquad0<\alpha<\frac1d

d=1,α=1/3이면 편향 제곱 규모는 n⁻²ˢᐟ³, 분산 규모는 n⁻²ᐟ³입니다. s=1이면 두 지수가 같습니다. α=0이면 창이 줄지 않고, α=1/d이면 nhᵈ=1이라 분산 상한은 사라지지 않습니다. α가 더 크면 작은 창에 비해 표본이 부족해집니다.

이 조건은 일반적인 양의 상수 항들을 모두 없애기 위한 충분 조건입니다. 예컨대 참 평균이 정확히 상수라 편향 상수 0인 특수 모형에서는 고정 창도 잘 작동할 수 있습니다. 특수한 퇴화 항이 0인 것과 일반적인 일치성 조건을 구분해 실습에 표시합니다.

For h_n=n to power minus alpha, the two limits reduce to exponent comparisons. Positive alpha shrinks the window, while one minus d alpha positive makes n h to dimension d grow. Under the preceding assumptions, alpha between zero and one over d satisfies both.

hn=n−α,hn2s=n−2sα,1nhnd=n−(1−dα),0<α<1dh_n=n^{-\alpha},\qquad h_n^{2s}=n^{-2s\alpha},\qquad\frac1{nh_n^d}=n^{-(1-d\alpha)},\qquad0<\alpha<\frac1d

In one dimension with alpha one third, squared-bias scale is n to minus two s over three and variance scale is n to minus two thirds. They match at s one. Alpha zero does not shrink the window; alpha one over d holds its expected-count scale at one. Larger alpha shrinks too rapidly.

These are sufficient conditions for removing general positive terms. In a special exactly constant-mean model the bias coefficient can be zero and a fixed window may work. Separate such degeneracies from the general conditions in the lab.

대학원 연결Graduate bridge

편향과 분산의 속도를 맞추기Balance the bias and variance rates

두 항 중 더 천천히 줄어드는 항이 합의 규모를 지배합니다. 제곱 편향 지수2sα와 분산 지수1−dα를 같게 두면 α=1/(2s+d)를 얻습니다. 이때 평균 제곱 오차의 다항식 상한 규모는 n⁻²ˢᐟ⁽²ˢ⁺ᵈ⁾입니다. 앞의 빈 창 항은 nhᵈ가 양의 거듭제곱으로 늘어날 때 지수적으로 사라집니다.

2sα=1−dα⟹α=12s+d,MSE⁡≲n−2s/(2s+d)2s\alpha=1-d\alpha\quad\Longrightarrow\quad\alpha=\frac1{2s+d},\qquad\operatorname{MSE}\lesssim n^{-2s/(2s+d)}

규모의 지수를 맞추는 일과 유한 n에서 상수를 넣어 최솟값을 구하는 일은 다릅니다. C_b h²ˢ+C_v/(nhᵈ)만 미분하면 다음 임계 폭이 나옵니다. 두 계수는 양수라고 둡니다.

2sCbh2s−1−dCvnh−d−1=0,h∗=(dCv2sCbn)1/(2s+d)2sC_bh^{2s-1}-\frac{dC_v}{n}h^{-d-1}=0,\qquad h_* =\left(\frac{dC_v}{2sC_b n}\right)^{1/(2s+d)}

s=d=C_b=C_v=1,n=8이면 지수 일정 h=1/2와 달리 h_*는 (1/16)¹ᐟ³≈0.39685입니다. 이 미분은 빈 창 항과 가능한 h 구간을 제외한 두 항만 최적화합니다. 실제 검증으로 고르는 h도 아닙니다. 이 장은 이 모형의 상한을 유도했으며, 모든 추정법에 대한 minimax 하한까지 증명했다고 주장하지 않습니다.

The slower-decaying term controls the polynomial upper-bound scale. Equating squared-bias exponent two s alpha with variance exponent one minus d alpha yields alpha one over two s plus d and MSE order n to minus two s over two s plus d. The empty term decays exponentially in a positive power of n under these conditions.

2sα=1−dα⟹α=12s+d,MSE⁡≲n−2s/(2s+d)2s\alpha=1-d\alpha\quad\Longrightarrow\quad\alpha=\frac1{2s+d},\qquad\operatorname{MSE}\lesssim n^{-2s/(2s+d)}

Balancing exponents differs from minimizing finite-n constants. Differentiating only C_b h to power two s plus C_v over n h to dimension d, with both coefficients positive, gives:

2sCbh2s−1−dCvnh−d−1=0,h∗=(dCv2sCbn)1/(2s+d)2sC_bh^{2s-1}-\frac{dC_v}{n}h^{-d-1}=0,\qquad h_* =\left(\frac{dC_v}{2sC_b n}\right)^{1/(2s+d)}

For s, d and both coefficients one and n eight, the power schedule gives one half but this critical bandwidth is approximately 0.39685. It excludes the empty-window term and domain restrictions and is not empirical validation selection. We derived an upper bound here, not a minimax lower bound over every estimator.

학부 심화 · 선택Advanced undergraduate · optional

차원이 늘면 같은 정확도도 더 비싸다Higher dimension makes accuracy more expensive

s=1일 때 d=1이면 MSE 상한의 다항식 지수는2/3, d=2이면1/2, d=10이면1/6입니다. 표본을 두 배로 늘리는 것만으로 고차원 국소 평균의 오차가 크게 줄지 않을 수 있습니다. 같은 조건의 상한을 절반으로 줄이는 데 필요한 표본 배수는2¹ᐟʳ이며 r=2s/(2s+d)입니다.

s=1에서 차원에 따른 다항식 규모
dr상한 절반에 필요한 n 배수
12/32^(3/2) ≈ 2.83
21/24
101/664

단위 정육면체의 균일 설계에서 L∞ 반경 h의 창이 모든 면에서 잘리지 않는다고 합시다. 중심의 각 좌표가 [h,1−h]에 있고 0<h≤1/2이면 질량은 정확히 (2h)ᵈ입니다. 단순히 “내부의 점”이라고만 하면 가장자리에서 창이 잘릴 수 있습니다. h=1/4일 때 d=2의 질량1/4와 d=10의 질량1/1024를 비교하세요.

차원 축소가 도움이 될 수 있지만, 목표에 필요한 정보를 버리면 편향이 생깁니다. 입력이 한 차원이라는 사실도 그 입력의 적합성을 보증하지 않습니다. 이 장 실제 임금·고객 예제는 계산과 해석을 명료하게 보여 주려고 한 변수로 국소 평균을 구성하며 최적 예측 모형이라고 주장하지 않습니다.

At smoothness one, the polynomial MSE exponent is two thirds in one dimension, one half in two dimensions and one sixth in ten. Doubling the sample can have modest effect in high dimensions. To halve the same polynomial bound requires a sample multiplier two to power one over r.

Dimension and polynomial scale at s one
drSample multiplier to halve bound
12/32^(3/2) ≈ 2.83
21/24
101/664

For uniform design on a unit cube, an L-infinity window has mass exactly (2h)^d only if it is uncut by every face: each query coordinate lies in [h,1−h] and h is at most one half. Merely saying the point is interior is insufficient. At radius one quarter the masses in dimensions two and ten are one quarter and one over 1024.

Dimension reduction can help but may discard predictive information and create bias. A single input does not guarantee adequacy either. The factual wage and churn examples use one input for transparent learning, not as claimed optimal predictive models.

대학원Graduate

k도 늘리고 전체에서의 비중은 줄이기Let k grow while its fraction shrinks

k최근접 이웃은 창 폭 대신 이웃 수를 정합니다. 평균의 잡음 분산을 줄이려면 k가 늘어나야 합니다. 동시에 국소 반경이 줄어들려면 k/n이 줄어야 합니다. 고정 지점 주변에 충분한 설계 질량이 있고 독립 표본·적절한 적률·회귀 평균의 연속성 같은 조건 아래 이 두 요구가 역할을 나눕니다.

kn→∞,knn→0;kn=⌊nβ⌋,0<β<1k_n\to\infty,\qquad\frac{k_n}{n}\to0;\qquad k_n=\lfloor n^\beta\rfloor,\quad0<\beta<1

왜 반경이 줄까요? 고정한 반경 ε 안의 질량 p_ε가 양수이면, 독립 표본에서 그 안의 관측 비중은 p_ε로 수렴합니다. k/n이0으로 가므로 큰 표본에서는 ε 안에 k개가 들어갈 가능성이1로 갑니다. 따라서 k번째 이웃 반경이 ε보다 클 가능성이 줄어듭니다. 별도로 같은 분산의 무상관 잡음을 k개 평균하면 분산 규모는1/k입니다.

이 설명은 국소 조건에서의 학습 연결입니다. 일반적인 모든 분포에 대한 적분 일치성에는 더 정교한 이웃 가중치 조건과 적분 가능성 정리가 필요합니다. 이산 질량점에서는 같은 X가 많이 모여 반경이0이 될 수 있습니다. 0 거리 동률의 원행 순서 처리는 유한 표의 재현 규칙이며, 특정 표 한 개로 보편 정리가 입증되는 것은 아닙니다.

k-nearest-neighbor averaging fixes a count rather than a radius. Grow k to reduce noise averaging variance, while shrinking k over n to localize the neighborhood. Under independent sampling, positive mass near the query, suitable moments and local regression continuity, these requirements play different roles.

kn→∞,knn→0;kn=⌊nβ⌋,0<β<1k_n\to\infty,\qquad\frac{k_n}{n}\to0;\qquad k_n=\lfloor n^\beta\rfloor,\quad0<\beta<1

For any fixed radius epsilon with positive mass, the empirical fraction inside converges to that mass. Since k over n tends to zero, with probability tending to one there are at least k observations inside epsilon. The kth radius therefore tends to zero in probability. Separately, averaging k equal-variance uncorrelated noises gives variance scale one over k.

This is a local-condition explanation. General distribution-free integrated results need more refined neighbor-weight and integrability arguments. At atoms, many identical inputs can give radius zero. Original-order tie handling is a finite-table reproducibility rule; one observed table does not establish a universal theorem.

학부 심화 · 선택Advanced undergraduate · optional

k를 고정하거나 창을 고정하면 생기는 일What goes wrong with fixed k or a fixed window

회귀 평균이 모든 곳에서0이고 잡음이 분산1인 독립 관측을 생각하세요. 잡음과 독립인 X로 최근접 이웃 한 개를 고르면 평균 추정 MSE는1입니다. n이 늘어 그 입력이 더 가까워져도 새로 고른 한 잡음의 분산은 그대로입니다. k가 고정이면 같은 조건에서 분산1/k가 남습니다. 최근접1개로 모든 회귀 평균이 일치 추정된다는 주장은 성립하지 않습니다.

반대로 창을 고정하면 국소 평균이 아주 잘 평균되어도 목표 m(x)와 창 안 평균이 다를 수 있습니다. X가 [0,1] 균일이고 m(x)=x², 목표 x=1/2, 창이 전체 [0,1]이면 표본 평균의 극한은 E[X²]=1/3입니다. 목표1/4와의 편향1/12, 제곱 편향1/144가 남습니다.

lim⁡n→∞(E[m^]−m(1/2))2=(13−14)2=1144\lim_{n\to\infty}\left(E[\widehat m]-m(1/2)\right)^2=\left(\frac13-\frac14\right)^2=\frac1{144}

이 두 구성 예가 “편향과 분산을 동시에 줄인다”는 말의 내용을 보여 줍니다. 실제 k=1이 어느 유한 검증표에서 가장 좋을 수도 있습니다. 그 관측 사실과 모든 n에서 고정한 k의 점근 성질은 별개입니다.

Let the regression mean be zero everywhere and independent noise variance one. Selecting the nearest observation using inputs independent of noise leaves mean-estimation MSE one. Its input may approach the query as n grows, but one selected noise still has unit variance. Fixed k leaves variance one over k under the same assumptions.

Conversely, a fixed wide window can retain bias even as averaging removes noise. For uniform X on [0,1], mean function x squared and query one half, averaging the entire interval converges to one third instead of the target one quarter. Bias one twelfth and squared bias one over 144 remain.

lim⁡n→∞(E[m^]−m(1/2))2=(13−14)2=1144\lim_{n\to\infty}\left(E[\widehat m]-m(1/2)\right)^2=\left(\frac13-\frac14\right)^2=\frac1{144}

These constructed examples show what reducing bias and variance together requires. A fixed k one may still win on one finite validation table. That observation differs from its asymptotic behavior when held fixed for every sample size.

대학원 연결Graduate bridge

회귀 평균에서 분류기로 넘어가기From regression means to classification

이진 결과에서는 η(x)=P(Y=1|X=x)가 조건부 평균입니다. 0–1 오분류 손실과 동등 비용에서 Bayes 규칙은 η≥1/2이면1을 고릅니다. 추정한 η를 같은 임계값에 넣는 plug-in 분류기는 참 η와 추정값이 임계값의 서로 반대쪽일 때만 Bayes와 다른 결정을 합니다.

g∗(x)=1{η(x)≥1/2},g^(x)=1{η^(x)≥1/2},R(g^)−R∗≤2E∣η^(X)−η(X)∣g^*(x)=1\{\eta(x)\ge1/2\},\quad\widehat g(x)=1\{\widehat\eta(x)\ge1/2\},\qquad R(\widehat g)-R^*\le2E|\widehat\eta(X)-\eta(X)|

결정이 다르면 |η−1/2|≤|η−η̂|입니다. 그 지점의 초과 위험은 |2η−1|이므로 위의2배 상한을 얻습니다. Cauchy–Schwarz를 쓰면 적분 제곱 오차가0으로 가는 경우 초과 분류 위험도0으로 갑니다. 훈련 표본에 대한 기대값을 더 취하는 경우에도 같은 조건부 부등식을 평균할 수 있습니다.

이것은 실제 분류 오류가0이 된다는 말이 아닙니다. η=1/2인 지점에서는 Y의 불확실성 때문에 어떤 동등 비용 규칙도 오분류 확률1/2를 피할 수 없습니다. 비용이 비대칭이면 임계값도 바뀝니다. 실제 고객 이탈 표의 제곱 오차는 이진 결과에 대한 Brier 성적이지만, 그 한 성적에서 알려지지 않은 η나 Bayes 위험을 복원하지는 못합니다.

For binary outcomes the conditional mean eta is the probability of class one. With equal-cost zero-one loss, the Bayes classifier chooses one at eta at least one half. A plug-in rule disagrees with it only when the estimated and true probabilities straddle the threshold.

g∗(x)=1{η(x)≥1/2},g^(x)=1{η^(x)≥1/2},R(g^)−R∗≤2E∣η^(X)−η(X)∣g^*(x)=1\{\eta(x)\ge1/2\},\quad\widehat g(x)=1\{\widehat\eta(x)\ge1/2\},\qquad R(\widehat g)-R^*\le2E|\widehat\eta(X)-\eta(X)|

On disagreement, distance of eta from one half is at most estimation error. Pointwise excess risk is absolute two eta minus one, yielding the bound. Cauchy–Schwarz then turns vanishing integrated squared error into vanishing excess classification risk. One can also average this conditional inequality over training samples.

This does not force classification error to zero. At eta one half, unavoidable label uncertainty leaves error one half for any equal-cost decision. Asymmetric costs change the threshold. The factual churn squared loss is a Brier score, but one such score does not reveal unknown eta or Bayes risk.

대학원Graduate

일치성·속도·균일성·거의 확실한 수렴Consistency, rates, uniformity and almost-sure limits

일치성은 오차가 결국 작아지는지 묻고, 수렴률은 얼마나 빨리 작아지는지 묻습니다. 점별 결과는 하나의 x를 고정하며, 균일 결과는 모든 x의 최악 오차를 동시에 제어합니다. 적분 결과는 입력 법칙에 따라 오차를 평균합니다. 이 말들은 같은 보장의 다른 이름이 아닙니다.

평균 제곱 오차 상한 Cn⁻ʳ은 Markov로 확률 상한을 줍니다. 그러나 이 확률 상한이0으로 간다는 사실만으로 같은 무한 표본 경로에서 결국 항상 가까워지는 거의 확실한 수렴을 바로 주장할 수는 없습니다. 예를 들어 Borel–Cantelli를 쓰려면 관련 실패 확률의 합이 유한하다는 추가 논증이 한 방법입니다.

∑n=1∞P(∣m^n−m∣>η)<∞⟹P(∣m^n−m∣>η infinitely often)=0\sum_{n=1}^{\infty}P(|\widehat m_n-m|>\eta)<\infty\quad\Longrightarrow\quad P(|\widehat m_n-m|>\eta\ \text{infinitely often})=0

앞에서 얻은 r=2/3의 단순 Markov 상한 n⁻²ᐟ³은 합이 발산하므로 이 상한만으로 위 조건을 확인할 수 없습니다. 그렇다고 거의 확실한 수렴이 불가능하다는 반증도 아닙니다. 더 강한 꼬리 제어가 필요할 수 있습니다. 오차 곡선 하나에서 이 네 보장 중 무엇을 관찰했고 무엇을 가정했는지 나누어 적으세요.

Consistency asks whether error vanishes; a rate asks how fast. Pointwise statements fix one query, uniform ones control a worst case across queries, and integrated ones average over the input law. These are different guarantees.

A mean-square bound C n to minus r gives a probability bound through Markov. Its tending to zero does not by itself establish almost-sure convergence along one infinite sample path. A summable sequence of failure probabilities is one sufficient route via Borel–Cantelli.

∑n=1∞P(∣m^n−m∣>η)<∞⟹P(∣m^n−m∣>η infinitely often)=0\sum_{n=1}^{\infty}P(|\widehat m_n-m|>\eta)<\infty\quad\Longrightarrow\quad P(|\widehat m_n-m|>\eta\ \text{infinitely often})=0

The simple Markov bound with exponent two thirds is not summable, so that bound alone does not establish this route. Nor does it refute almost-sure convergence: sharper tail control may exist. Label which guarantee is being studied rather than inferring all of them from one plotted curve.

대학원Graduate

실습:수렴 조건과 유한 상한의 차이Lab: distinguish asymptotic conditions from a finite bound

n 목록을8,64,512, d=1,s=1,세 계수와 질량 상수를 모두1로 두세요. 기본 α=1/3에서 n=8의 폭1/2, 편향 항1/4, 분산 항1/4, 빈 창 상한 e⁻⁴≈0.0183156, 합≈0.5183156을 확인합니다. 두 항만의 임계 폭≈0.39685와 기본 폭을 구분하세요.

α=0과1로 바꿔 각 지수의 부호와 일반 조건 판정을 읽습니다. 다음 d=10으로 바꿀 때 α를 생략해 기본1/12를 쓰거나 직접1/12로 넣으세요. d만 바꾸고 예전α=1/3을 유지하면 다른 일정을 계산합니다. 매끄러움 s는 이 장 이론 범위0<s≤1만 허용합니다.

편향 계수0 또는 분산 계수0일 때 두 항 최적화가 유한한 내부 임계값을 갖는지 확인합니다. 아주 작은 양의 계수는 정확 입력과 비영 표시를 유지합니다. 곡선은 선언한 상한 항의 근사 계산이며 실제 데이터의 참 오차나 보증 구간이 아닙니다. 전체 빈 창 항까지 최적화한 결과로 이름 붙이지 마세요.

Use sample sizes eight, sixty-four and 512, dimension and smoothness one, and all coefficients one. Default alpha one third gives at n eight bandwidth one half, bias term one quarter, variance term one quarter and empty bound exp minus four, about 0.0183156. Total is about 0.5183156. Distinguish the two-term critical bandwidth about 0.39685 from the default schedule.

Try alpha zero and one and inspect exponent signs and the general conditions. For dimension ten omit alpha to use the new default one twelfth, or enter it explicitly. Retaining the earlier one-third alpha computes a different schedule. Smoothness here is restricted to positive values at most one.

Set a polynomial coefficient to zero and inspect whether a finite interior optimum still exists. Tiny positive coefficients retain exact inputs and nonzero flags. The curves are approximate evaluations of declared upper-bound terms, not true factual risks or certified intervals. They do not optimize the complete expression including emptiness.

학부Undergraduate

학습·검증·시험의 역할을 먼저 고정하기Fix training, validation and test roles first

학습 자료는 이웃과 변환을 만듭니다. 검증 자료는 후보 창이나 k를 고릅니다. 시험 자료는 선택을 끝낸 뒤 성적을 묘사합니다. 한 사람이 세 역할을 동시에 하면 정답을 보고 유리한 방법을 고른 효과를 숨기기 쉽습니다. 역할은 성적을 계산하기 전에 정하고, 누락 행의 원래 역할도 남깁니다.

이 장은 분석 식별자에 ML17 전용 SHA256 순위를 매겨 나머지0은 시험,1은 검증,2·3·4는 학습으로 선언합니다. 그 뒤 필수 X,Y의 적격성을 판정합니다. 실제 개인 자료는3613행 중596행이 필수값 누락으로 제외되고, 남은 학습1806·검증601·시험610행을 사용합니다. 이 해시는 재현 가능한 일정이며 무작위 모집단 표집의 증거가 아닙니다.

정해진 모든 후보의 시험 성적을 나란히 공개할 수는 있습니다. 그러나 그 표를 보고 후보를 다시 선택하면 시험 자료가 사실상 검증으로 바뀝니다. 처음 선택과 수정 이후 선택을 구분하고 새 보유 자료가 필요한지 검토하세요.

Training records define neighbors and transformations. Validation chooses a bandwidth or k. Test data describe performance after selection. Reusing the same outcomes for every role can conceal selection advantage. Declare roles before scoring and retain the planned role of missing records.

This chapter assigns a chapter-specific SHA256 rank: residues zero are test, one validation and two through four training. Required-value eligibility is applied afterward. Of 3613 person records, 596 are excluded for required missingness, leaving 1806 training, 601 validation and 610 test records. Hashing is a reproducible schedule, not evidence of population random sampling.

Publishing test scores for every declared candidate is descriptive. Choosing again after viewing them changes the test set into another selection resource. Distinguish the original and revised decisions and consider new holdout data.

학부Undergraduate

폭의 단위와 변환도 학습 자료에서 정하기Fit bandwidth units and transformations on training only

이 장의 기본 입력 변환은 적격 학습 X의 최솟값을 빼고 범위로 나눕니다. 정규화 폭1/4는 원 단위에서 학습 범위의1/4입니다. 국가의 달러·개인의 교육 연수·기업의 통화 실패 횟수는 같은 단위가 아니므로, “폭0.25”만 적으면 무엇을 비교하는지 알 수 없습니다.

z=x−xmin⁡,trainRtrain,hnative=hnormalizedRtrainz=\frac{x-x_{\min,\mathrm{train}}}{R_{\mathrm{train}}},\qquad h_{\rm native}=h_{\rm normalized}R_{\mathrm{train}}

학습 X가0과2이면 범위2, 폭1/4는 원 반경1/2입니다. 시험 X=100을 함께 넣어 범위를100으로 바꾸면 원 반경은25로 변해 예측 규칙 자체가 바뀝니다. 정답을 쓰지 않아도 보유 입력을 미리 보는 변환은 엄격한 학습 전용 절차와 다릅니다. 이 실습은 보유 입력을 자르거나 변환을 다시 맞추지 않습니다.

학습 X가 모두 같으면 범위0으로 나누지 않고 원 단위1을 사용합니다. 따라서 교육 연수 하나에 모인 학습 자료와 고액 달러 단위의 같은 값 자료가 동일한 현실 거리를 갖는 것은 아닙니다. 학습 접두 집합을 바꾸면 범위도 바뀔 수 있어, 한 학습 곡선에서 바뀌는 것이 n뿐인지 함께 점검해야 합니다.

The default transform subtracts the eligible training minimum and divides by its range. Normalized bandwidth one quarter is one quarter of that range in native units. Dollars, education years and call-failure counts are different units, so an unlabeled bandwidth 0.25 is incomplete.

z=x−xmin⁡,trainRtrain,hnative=hnormalizedRtrainz=\frac{x-x_{\min,\mathrm{train}}}{R_{\mathrm{train}}},\qquad h_{\rm native}=h_{\rm normalized}R_{\mathrm{train}}

With training inputs zero and two, range two makes bandwidth one quarter a native radius one half. Including test input one hundred would change that radius to twenty-five. Even without outcomes, fitting a transform using held-out inputs differs from a strict training-only protocol. This lab neither clips held-out inputs nor refits on them.

For constant training inputs, use one native unit rather than dividing by zero. A constant education value and a constant dollar value therefore do not define identical physical distances. A training prefix can also change its range: inspect more than n when interpreting a learning curve.

학부 심화 · 선택Advanced undergraduate · optional

오차 분모를 고르기 전에 피복을 보기Inspect coverage before comparing loss denominators

검증 두 행을 v₀=(0,0),v₁=(1,4)로 두고, 학습은 a=(0,0),b=(2,4)라고 합시다. 정규화 폭1/10인 상자 창은 v₀에서0을 예측하지만 v₁에서는 미정의입니다. 가능한 한 행의 MSE는0입니다. 이0은 두 행을 모두 잘 맞췄다는 뜻이 아닙니다.

폭1인 상자 창은 두 학습을 모두 평균해 두 검증 행에서2를 예측합니다. 검증 MSE는(4+4)/2=4, 피복률1입니다. k=1은 동률에서 원순서 a를 골라 두 검증 예측이0이고 MSE8입니다. 좁은 창의 available MSE0을 전체 피복 후보의4나8과 바로 비교하면 분모가 다릅니다.

구성한 검증 표의 피복과 선택
후보가능 행/적격 행available MSE전체 피복 후보?
상자 h=1/101/20아니오
상자 h=12/24예
k=12/28예

이 장은 적격 검증 행이 하나 이상이고 전부 예측되는 후보만 선택에 허용합니다. 그중 exact MSE가 최소인 첫 후보를 고릅니다. 모든 후보의 공통 예측 가능 행 성적도 별도로 남기지만, 공통 집합이 작아질수록 원래 평가 질문이 바뀝니다. 피복 정책을 결과를 본 뒤 유리하게 바꾸지 마세요.

Use validation records (0,0) and (1,4), and training records a=(0,0), b=(2,4). A normalized box bandwidth one tenth predicts zero at the first query but is undefined at the second. Its available-case MSE zero does not mean both queries were accurately predicted.

A box bandwidth one predicts two at both validation queries, giving MSE four and complete coverage. k one selects a at the midpoint tie, predicts zero twice and has MSE eight. Comparing the narrow window’s zero with four or eight without coverage compares different denominators.

Coverage and selection on a constructed validation table
CandidateAvailable / eligibleAvailable MSEFull-coverage admission?
Box h=1/101/20No
Box h=12/24Yes
k=12/28Yes

Selection here requires a positive eligible-validation count and predictions on every such record. Among admitted candidates choose the first exact-MSE minimum. A separate common-prediction frame is retained, but shrinking that intersection changes the evaluation question. Declare the coverage policy before inspecting favorable scores.

학부 심화 · 선택Advanced undergraduate · optional

좋은 검증 성적도 시험 성적을 보장하지 않는다A validation winner need not win on test data

다시 학습 a=(0,0),b=(2,4), 검증 v=(1,0),시험 t=(1,4)를 구성합니다. 후보는 폭1/2 상자와 k=1입니다. 상자는 둘을 평균해2를 예측하고, k=1은 원순서 동률로 a의0을 예측합니다. 검증 MSE는 각각4와0이어서 k=1을 선택합니다. 그런데 시험 MSE는 각각4와16입니다.

이 결과가 계산 모순은 아닙니다. 동일 입력에서도 관측 결과가 달라질 수 있고, 검증도 유한합니다. 시험에서 상자가 더 좋았다고 선택을 바꾸면 최초 절차의 보유 성적과 다른 절차가 됩니다. 실습은 시험 정답만 바꾸어도 선택 후보가 유지되는지 확인하도록 합니다.

반대로 검증 정답을0에서4로 바꾸면 상자의4와 k=1의16으로 상자를 고릅니다. 선택이 검증 정보를 쓰는 것은 의도한 행동입니다. 어떤 변화에 불변이어야 하고 어떤 변화에는 반응해야 하는지 검토하는 것이 단순히 같은 숫자를 재출력하는 것보다 좋은 검증입니다.

Construct training a=(0,0), b=(2,4), validation (1,0) and test (1,4). Compare a normalized half-width box with k one. The box predicts two; k one selects a by original-order tie and predicts zero. Validation MSEs four and zero select k one, while test MSEs are four and sixteen.

There is no contradiction. Outcomes can differ at identical inputs and validation is finite. Switching to the test winner changes the original selection protocol. In the lab, changing only test outcomes must leave the selected candidate unchanged.

Changing the validation outcome from zero to four should instead change the winner: box loss four beats k-one loss sixteen. Using validation information is intended. Testing both required invariances and required responses is more informative than repeating an unchanged calculation.

학부 심화 · 선택Advanced undergraduate · optional

실제 학습 곡선은 고정 표본의 비교다A factual learning curve compares fixed subsets

학습 순위의 앞부분만 사용해 작은 표본 예측을 만들고, 접두 크기를 늘려 같은 검증·시험 행에서 성적을 비교할 수 있습니다. 이 장은 원 학습 행을 삭제하지 않고, 선택되지 않은 행을 unused로 남깁니다. 모든 값과 원래 역할은 보존합니다. 국가의 전체 학습9행을3·6·9로 늘리는 일정은9개 국가의 고정 부분집합 비교입니다.

접두 크기가 늘면 이웃과 정규화 범위, 검증이 고른 후보도 함께 바뀔 수 있습니다. 오차가 꼭 단조 감소할 이유는 없습니다. 작은 접두에서는 k=9가 부족해 미정의이고, 좁은 창은 검증 일부를 놓칠 수 있습니다. 점이 없는 곳을0으로 이어 그리면 피복 부족을 완벽한 성적으로 잘못 표시합니다.

이 곡선을 반복 표본의 기대 위험이나 인과적 “자료 한 행 추가의 효과”로 읽지 않습니다. 같은 평가 행에서 계산한 유한 비교입니다. 학습 곡선의 각 점에 n,변환 범위,선택 후보,available/common 분모,미정의 이유를 붙여 관찰을 설명하세요.

Grow a training prefix and compare predictions on the same validation and test records. Unselected training records remain present as unused, preserving original values and roles. Growing the nine country training records through prefixes three, six and nine compares fixed subsets of nine selected countries.

Neighbors, normalization range and the validation winner can all change with prefix size. Loss need not decrease monotonically. A small prefix may make k nine unavailable or a narrow window incomplete. Joining an undefined point to zero would turn missing coverage into perfect performance.

This curve is neither expected risk over repeated samples nor a causal effect of adding one record. Annotate each finite comparison with n, transform range, selected candidate, available/common denominators and undefined reasons.

대학원 연결Graduate bridge

이산 입력·공통 충격·표집의 한계를 읽기Read discreteness, shared shocks and sampling limits

교육 연수와 통화 실패 횟수는 연속 구간을 빈틈없이 채우지 않습니다. 같은 값이 여러 번 나타나는 이산 입력에서는 반경0에도 양의 질량이 있을 수 있습니다. 연속 밀도 f(x)와 창 부피를 곱하는 근사를 그대로 붙이는 대신 실제 질량점과 동률,빈 창을 먼저 확인하세요. 같은 X의 여러 Y를 평균할 때에도 잡음 의존성은 별도입니다.

16개 국가는 의도적으로 고른 단위이고 같은 해의 금융·원자재·교역 충격을 공유할 수 있습니다. NLS 개인 행은 원 조사 설계를 가지며 단순 unit-mass 계산은 공식 조사 가중 추정이 아닙니다. 고객 표는 한 통신 표본의 시점 요약이며 새 고객·새 요금제·다른 기업으로의 수송은 추가 문제입니다.

일치성 정리가 쓸모없다는 뜻은 아닙니다. 어떤 가정이 편향을 줄이고 어떤 가정이 분산을 줄이는지 명료하게 만들어 실제 자료의 약한 고리를 찾게 합니다. 한계를 적은 뒤에도 원 단위의 예측과 잔차,피복을 계산해 유용한 기술적 비교를 할 수 있습니다.

Education years and call-failure counts are discrete. Repeated identical inputs may place positive mass even at radius zero. Inspect atoms, ties and empty windows instead of automatically multiplying a continuous density by window volume. Dependence among responses at an identical input is another issue.

The sixteen selected national units can share financial, commodity and trade shocks. NLS records follow an original survey design; unit-mass teaching fits are not official survey-weighted estimates. The customer table summarizes one telecom sample, so new customers, tariffs or firms pose transport questions.

Consistency theory remains useful: it identifies which assumptions reduce bias and which reduce variance, making weak links visible. With those limits stated, native-unit predictions, residuals and coverage still support informative descriptive comparisons.

대학원Graduate

재현 연구를 한 장의 설계표로 만들기Design a reproducible local-learning study

분석을 시작하기 전에 질문·분석 단위·시점·입력·결과·역할 일정·후보·피복 정책·손실 단위를 한 장에 적으세요. “교육이 임금을 높이는가”라는 인과 질문과 “교육 연수가 비슷한 사람들의 관측 임금 평균은 얼마인가”라는 예측 질문은 다릅니다. 후자를 계산했다면 전자에 대한 효과라고 이름 붙이지 않습니다.

다음으로 세 예측을 비교하세요. 전체 학습 평균,미리 고정한 국소 규칙,검증으로 고른 규칙입니다. 같은 시험 분모에서 비교하고,미정의가 있으면 교집합과 각 available 분모도 함께 공개합니다. 여기서 전체 평균은 별도 명시한 비교 기준이며 빈 창을 자동으로 채우는 비밀 규칙이 아닙니다.

발전 과제로 시간 분할·집단 단위 분할·새 자료 검증을 설계할 수 있습니다. 다만 현재 표에 필요한 시간·집단 식별자가 실제로 있는지 확인해야 합니다. 원문 기록 없는 고객 추적이나 인과적 처치를 만들어 내지 않습니다. 결론에는 원행 출처,변환의 적합 범위,선택 이력,남은 가정을 함께 적습니다.

Before analysis, write one design sheet covering the question, observational unit, timing, input, outcome, role schedule, candidates, coverage policy and loss units. A causal effect of schooling differs from average observed wages among people with similar schooling. Computing the latter does not identify the former.

Compare three explicitly declared predictors: overall training mean, a prespecified local rule and a validation-selected rule. Use a shared test denominator; when predictions are undefined, also report intersections and each available denominator. The overall mean is an explicit comparator, not a hidden empty-window fallback.

Extensions can consider temporal, group-level or new-source validation, after confirming that required identifiers actually exist. Do not invent customer histories or treatments absent from the records. Report source rows, transformation scope, selection history and remaining assumptions.

대학원 연결Graduate bridge

실습:피복 정책을 지키며 후보 고르기Lab: select a candidate under an explicit coverage policy

학습 a=(0,0),b=(2,4),검증 v=(1,0),시험 t=(1,4)와 후보 box h=1/2,knn k=1로 시작하세요. 두 후보의 모든 행 예측,검증 MSE4와0,선택 k=1,시험 MSE16을 확인합니다. 원순서 동률과 학습 전용 범위2도 읽으세요.

시험 Y만 바꿔 선택이 유지되는지 확인한 뒤,검증 Y를4로 바꿔 선택이 상자로 바뀌는지 확인합니다. 좁은 box h=1/10을 추가하면 검증 중앙점에 예측이 없어 선택 후보에서 빠집니다. 모든 후보가 검증을 놓치거나 적격 검증 행이0개이면 선택은 미정의이며 전역 평균으로 바꾸지 않습니다.

추적할 행 ID를 지정해 선택된 모형의 모든 학습 거리·원 가중치·계수·동률을 펼쳐 보세요. 성적 표의 각 분모와 trace의 관측 수를 대조하고,정규화 여부를 바꿀 때 폭의 원 단위도 함께 적습니다. 학습 성적은 같은 학습 풀에서 자기 행도 이웃 후보로 삼습니다. 다만 kNN의 거리 동률에서는 다른 행이 먼저 선택될 수 있습니다. 이 성적은 보유 성적을 대신하지 않습니다.

Start with training a=(0,0), b=(2,4), validation v=(1,0), test t=(1,4), and candidates box h one half and k one. Check every prediction, validation losses four and zero, winner k one and its test loss sixteen. Read the original-order tie and training-only range two.

Change only the test outcome and verify selection is unchanged, then change validation Y to four and verify the box wins. Add a narrow box h one tenth: its undefined midpoint prediction excludes it from selection. If every candidate misses validation or eligible validation is empty, selection is undefined without a global-mean replacement.

Request a trace by row ID to inspect every selected-model training distance, raw weight, coefficient and tie. Reconcile loss denominators with the trace and label native bandwidth units when changing normalization. Training scores use the same training pool, making the query’s own record a neighbor candidate. A kNN distance tie may select another record first. These scores do not replace holdout scores.

대학원Graduate

국가 사례:소득이 비슷하면 성장률도 비슷한가Country case: does similar income imply similar growth?

2023년 1인당 GDP가 비슷한 국가들의 2024년 총 GDP 증가율을 평균해 봅니다. 원자료는 보존한 World Bank 수정 스냅샷이며16국가×2년의32기록을 다시 읽었습니다. X는2023년 불변2015달러의1인당 GDP, Y는2024년 총 GDP 연간 증가율(%)입니다. 1인당 수준과 총량의 증가율은 다른 지표입니다. 이 비교는 소득이 성장률을 일으킨다는 인과 추정이 아닙니다.

해시 역할은 학습9·검증3·시험4국가입니다. 전체 학습에서 검증이 고른 것은 k=9로,사실상 아홉 학습 성장률의 전체 평균≈3.627928%입니다. 이 유한 표에서 넓은 평균이 선택되었다는 사실이 국소 학습을 무효화하지는 않습니다. 반대로 최적 k가 계속9여도 보편 일치성이 입증되는 것은 아닙니다.

전체 국가 학습을 사용한 선택 성적
역할분모선택MSE: 퍼센트포인트²MAE: 퍼센트포인트
검증3k=9≈2.942117≈1.609226
시험4같은 k=9≈10.239817≈3.030277

한국의 X는36347.7036392553, Y는2.00361101838986입니다. 한국은 학습 역할이므로 그 행의 예측 오차를 보유 시험 성적으로 부르지 않습니다. k=1은 서로 다른 국가 입력에서 자기 학습 성장률을 재출력해 학습 MSE0을 만들지만,검증 MSE는≈7.352394입니다. 학습의 완벽함과 선택에 쓰는 성적을 구분하세요.

같은 해의 국가들은 충격을 공유할 수 있고16국가가 무작위 세계 표본도 아닙니다. 국가별 모든 원값·후보 예측·역할·피복과 고정 접두 곡선을 함께 읽고,시험에서 k=1이 더 낮은 관측 MSE를 보이더라도 최초 검증 선택은 바꾸지 않습니다.

한국 행과 학습 평균을 직접 연결하기

한국은 KOR:2024,학습 역할입니다. 선택된 k9는 모든 학습 국가를 평균하므로 이 행뿐 아니라 모든 질의에서 같은 약3.627928을 예측합니다. 반면 상자 h1은 보유 입력이 학습 범위 밖일 때 일부 먼 국가를 제외할 수 있어 k9와 항상 같은 예측은 아닙니다. 선택표에서 두 규칙의 검증 성적이 왜 다른지 각 행 예측으로 확인하세요.

원 결과와 선택 예측 · 역할별 산점도
원 결과와 선택 예측 · 역할별 산점도

벡터 원본 확대 · SVG · PNG

원자료의 모든 필드와 분석 역할

원 변수명은 원문과 같게 보존합니다. 큰 표는10행씩 모든 행을 제공하며 두 언어가 같은 원값을 공유합니다. 원 CSV도 내려받아 대조할 수 있습니다.

전체 32행 · 처음 10행

원자료 · actual32-country-revised-original-2023-2024.csv
원자료 행countryISO3countryIDcountryNameindicatorIDindicatorNamedateoriginalValueToken단위obs_statusdecimal
1AUSAUAustraliaNY.GDP.MKTP.KD.ZGGDP growth (annual %)20241.37340773365975미정의/해당 없음미정의/해당 없음1
46BRABRBrazilNY.GDP.MKTP.KD.ZGGDP growth (annual %)20243.41931516501906미정의/해당 없음미정의/해당 없음1
91CANCACanadaNY.GDP.MKTP.KD.ZGGDP growth (annual %)20242.04626605401701미정의/해당 없음미정의/해당 없음1
136CHNCNChinaNY.GDP.MKTP.KD.ZGGDP growth (annual %)20244.95830378788091미정의/해당 없음미정의/해당 없음1
181DEUDEGermanyNY.GDP.MKTP.KD.ZGGDP growth (annual %)2024-0.495851897260366미정의/해당 없음미정의/해당 없음1
226FRAFRFranceNY.GDP.MKTP.KD.ZGGDP growth (annual %)20241.19046798275883미정의/해당 없음미정의/해당 없음1
271GBRGBUnited KingdomNY.GDP.MKTP.KD.ZGGDP growth (annual %)20241.08027716858781미정의/해당 없음미정의/해당 없음1
316IDNIDIndonesiaNY.GDP.MKTP.KD.ZGGDP growth (annual %)20245.03257477088519미정의/해당 없음미정의/해당 없음1
361INDINIndiaNY.GDP.MKTP.KD.ZGGDP growth (annual %)20247.09927893176518미정의/해당 없음미정의/해당 없음1
406JPNJPJapanNY.GDP.MKTP.KD.ZGGDP growth (annual %)2024-0.240084236041696미정의/해당 없음미정의/해당 없음1

actual32-country-revised-original-2023-2024.csv

전체 16행 · 처음 10행

원자료 · derived16-country-local-learning-and-roles.csv
분석 IDcountryISO3xGDPpc2023Constant2015USDyGrowth2024AnnualPercentxSourceRowySourceRow해시 순위원 역할분석 역할
AUS:2024AUS61869.0824985761.37340773365975216219traintrain
BRA:2024BRA9288.027014700693.419315165019062207464traintrain
CAN:2024CAN45495.51008926052.0462660540170122529110testtest
CHN:2024CHN12483.97911012494.9583037878809122971368traintrain
DEU:2024DEU44368.9920074881-0.495851897260366234218115testtest
FRA:2024FRA39319.41522272951.19046798275883238722612traintrain
GBR:2024GBR47911.15401348321.0802771685878124322715testtest
IDN:2024IDN4192.644010341815.03257477088519247731613traintrain
IND:2024IND2229.714912230377.09927893176518252236114traintrain
JPN:2024JPN37902.5492204411-0.24008423604169625674060testtest

derived16-country-local-learning-and-roles.csv

전체 16행 · 처음 10행

역할·필수값·제외 이유의 모든 원행
사례분석 ID원자료 행해시 순위원 역할분석 역할적격이유
countryAUS:202419traintrain1eligible
countryBRA:2024464traintrain1eligible
countryCAN:20249110testtest1eligible
countryCHN:20241368traintrain1eligible
countryDEU:202418115testtest1eligible
countryFRA:202422612traintrain1eligible
countryGBR:20242715testtest1eligible
countryIDN:202431613traintrain1eligible
countryIND:202436114traintrain1eligible
countryJPN:20244060testtest1eligible

computed-eligibility.csv

전체 16행 · 처음 10행

모든 원행의 여섯 예측과 선택 잔차
사례분석 ID원자료 행원 ID해시 순위원 역할분석 역할원 X원 Ymean_box-h1/4neighbors_box-h1/4mean_box-h1/2neighbors_box-h1/2mean_box-h1neighbors_box-h1mean_knn-k1neighbors_knn-k1mean_knn-k3neighbors_knn-k3mean_knn-k9neighbors_knn-k9선택 예측관측−예측
countryAUS:20241AUS9traintrain3866817656161/62500000≈ 1.3734077
정확 원값5493630934639/4000000000000
≈ 1.3734077
정확 원값5493630934639/4000000000000
1≈ 1.5224956
정확 원값38062389456737/25000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 1.3734077
정확 원값5493630934639/4000000000000
1≈ 1.5224956
정확 원값38062389456737/25000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 3.6279283
정확 원값10883784964498033/3000000000000000
≈ -2.2545206
정확 원값-6763561763518783/3000000000000000
countryBRA:202446BRA4traintrain≈ 9288.027
정확 원값928802701470069/100000000000
≈ 3.4193152
정확 원값170965758250953/50000000000000
≈ 4.6806447
정확 원값9361289386228553/2000000000000000
6≈ 4.2982113
정확 원값30087479177075519/7000000000000000
7≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 3.4193152
정확 원값170965758250953/50000000000000
1≈ 2.9708208
정확 원값8912462484805109/3000000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 3.6279283
정확 원값10883784964498033/3000000000000000
≈ -0.20861316
정확 원값-625839469440853/3000000000000000
countryCAN:202491CAN10testtest≈ 45495.51
정확 원값90991020178521/2000000000
≈ 2.0462661
정확 원값204626605401701/100000000000000
≈ 1.5970395
정확 원값319407900114869/200000000000000
2≈ 1.5224956
정확 원값38062389456737/25000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 1.190468
정확 원값119046798275883/100000000000000
1≈ 1.5224956
정확 원값38062389456737/25000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 3.6279283
정확 원값10883784964498033/3000000000000000
≈ -1.5816623
정확 원값-4744986802447003/3000000000000000
countryCHN:2024136CHN8traintrain≈ 12483.979
정확 원값124839791101249/10000000000
≈ 4.9583038
정확 원값495830378788091/100000000000000
≈ 4.6806447
정확 원값9361289386228553/2000000000000000
6≈ 3.9097434
정확 원값31277947159834349/8000000000000000
8≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 4.9583038
정확 원값495830378788091/100000000000000
1≈ 2.9708208
정확 원값8912462484805109/3000000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 3.6279283
정확 원값10883784964498033/3000000000000000
≈ 1.3303755
정확 원값3991126399144697/3000000000000000
countryDEU:2024181DEU15testtest≈ 44368.992
정확 원값443689920074881/10000000000
≈ -0.4958519
정확 원값-247925948630183/500000000000000
≈ 1.5970395
정확 원값319407900114869/200000000000000
2≈ 1.5224956
정확 원값38062389456737/25000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 1.190468
정확 원값119046798275883/100000000000000
1≈ 1.5224956
정확 원값38062389456737/25000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 3.6279283
정확 원값10883784964498033/3000000000000000
≈ -4.1237802
정확 원값-12371340656279131/3000000000000000
countryFRA:2024226FRA12traintrain≈ 39319.415
정확 원값78638830445459/2000000000
≈ 1.190468
정확 원값119046798275883/100000000000000
≈ 1.5970395
정확 원값319407900114869/200000000000000
2≈ 2.3814476
정확 원값190515810453787/80000000000000
4≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 1.190468
정확 원값119046798275883/100000000000000
1≈ 1.5224956
정확 원값38062389456737/25000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 3.6279283
정확 원값10883784964498033/3000000000000000
≈ -2.4374603
정확 원값-7312381016221543/3000000000000000
countryGBR:2024271GBR5testtest≈ 47911.154
정확 원값29944471258427/625000000
≈ 1.0802772
정확 원값108027716858781/100000000000000
≈ 1.5224956
정확 원값38062389456737/25000000000000
3≈ 1.5224956
정확 원값38062389456737/25000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 1.190468
정확 원값119046798275883/100000000000000
1≈ 1.5224956
정확 원값38062389456737/25000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 3.6279283
정확 원값10883784964498033/3000000000000000
≈ -2.5476512
정확 원값-7642953458734603/3000000000000000
countryIDN:2024316IDN13traintrain≈ 4192.644
정확 원값419264401034181/100000000000
≈ 5.0325748
정확 원값503257477088519/100000000000000
≈ 4.6806447
정확 원값9361289386228553/2000000000000000
6≈ 4.6806447
정확 원값9361289386228553/2000000000000000
6≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 5.0325748
정확 원값503257477088519/100000000000000
1≈ 4.2023234
정확 원값4202323424673503/1000000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 3.6279283
정확 원값10883784964498033/3000000000000000
≈ 1.4046464
정확 원값4213939348157537/3000000000000000
countryIND:2024361IND14traintrain≈ 2229.7149
정확 원값222971491223037/100000000000
≈ 7.0992789
정확 원값354963946588259/50000000000000
≈ 4.6806447
정확 원값9361289386228553/2000000000000000
6≈ 4.6806447
정확 원값9361289386228553/2000000000000000
6≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 7.0992789
정확 원값354963946588259/50000000000000
1≈ 6.3904686
정확 원값383428113477611/60000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 3.6279283
정확 원값10883784964498033/3000000000000000
≈ 3.4713506
정확 원값10414051830797507/3000000000000000
countryJPN:2024406JPN0testtest≈ 37902.549
정확 원값379025492204411/10000000000
≈ -0.24008424
정확 원값-7502632376303/31250000000000
≈ 1.5970395
정확 원값319407900114869/200000000000000
2≈ 2.5890211
정확 원값1294510568770841/500000000000000
5≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 1.190468
정확 원값119046798275883/100000000000000
1≈ 1.5224956
정확 원값38062389456737/25000000000000
3≈ 3.6279283
정확 원값10883784964498033/3000000000000000
9≈ 3.6279283
정확 원값10883784964498033/3000000000000000
≈ -3.8680126
정확 원값-11604037672623121/3000000000000000

computed-predictions.csv

전체 9행 · 처음 9행

지정 원행의 모든 학습 거리·계수
사례질의 ID후보학습 원순서학습 ID정규화 거리원 가중치정규화 계수선택
countryAUS:2024knn-k90AUS:2024011/91
countryAUS:2024knn-k91BRA:2024≈ 0.88165012
정확 원값5258105548387531/5963936758634563
11/91
countryAUS:2024knn-k92CHN:2024≈ 0.82806216
정확 원값4938510338845110/5963936758634563
11/91
countryAUS:2024knn-k93FRA:2024≈ 0.37810038
정확 원값2254966727584650/5963936758634563
11/91
countryAUS:2024knn-k94IDN:2024≈ 0.96708669
정확 원값5767643848823419/5963936758634563
11/91
countryAUS:2024knn-k95IND:2024111/91
countryAUS:2024knn-k96KOR:2024≈ 0.4279284
정확 원값2552137885932070/5963936758634563
11/91
countryAUS:2024knn-k97VNM:2024≈ 0.97413377
정확 원값95240528208877/97769455059583
11/91
countryAUS:2024knn-k98ZAF:2024≈ 0.94086397
정확 원값5611253200404479/5963936758634563
11/91

computed-trace-weights.csv

전체 16행 · 처음 10행

같은 X를 가진 실제 행의 기술 평균
사례분석 역할원 X행 수관측 Y 기술 평균분모·범위
countrytest≈ 37902.549
정확 원값379025492204411/10000000000
1≈ -0.24008424
정확 원값-7502632376303/31250000000000
descriptive-repeated-native-X;not-known-population-mean
countrytest≈ 44368.992
정확 원값443689920074881/10000000000
1≈ -0.4958519
정확 원값-247925948630183/500000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytest≈ 45495.51
정확 원값90991020178521/2000000000
1≈ 2.0462661
정확 원값204626605401701/100000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytest≈ 47911.154
정확 원값29944471258427/625000000
1≈ 1.0802772
정확 원값108027716858781/100000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytrain≈ 2229.7149
정확 원값222971491223037/100000000000
1≈ 7.0992789
정확 원값354963946588259/50000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytrain≈ 3772.3603
정확 원값377236029116103/100000000000
1≈ 7.039552
정확 원값351977598561509/50000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytrain≈ 4192.644
정확 원값419264401034181/100000000000
1≈ 5.0325748
정확 원값503257477088519/100000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytrain≈ 5756.5505
정확 원값575655049453121/100000000000
1≈ 0.53484353
정확 원값534843531905139/1000000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytrain≈ 9288.027
정확 원값928802701470069/100000000000
1≈ 3.4193152
정확 원값170965758250953/50000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytrain≈ 12483.979
정확 원값124839791101249/10000000000
1≈ 4.9583038
정확 원값495830378788091/100000000000000
descriptive-repeated-native-X;not-known-population-mean

computed-input-groups.csv

관측−선택 예측 잔차
관측−선택 예측 잔차

벡터 원본 확대 · SVG · PNG

자료가 늘 때 달라지는 세 가지

3행에서는 box h1,6행에서는 k3,9행에서는 k9가 선택됩니다. 시험 곡선이 올라가도 이상한 계산이 아닙니다. 학습 구성·범위·선택 규칙이 함께 바뀌며 유한 검증도 잡음을 가집니다. 이 곡선을 모집단 위험의 확정 기울기나 소득 정책 효과로 읽지 않습니다.

전체 144행 · 처음 10행

선언한 고정 학습 설정의 모든 후보·역할·분모
사례고정 설정학습 행 수후보분석 역할분모·범위적격 행 수피복률전체 피복분모totalSquaredErrortotalAbsoluteError평균 제곱 오차평균 절대 오차
countryprefix-00box-h1/4trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
countryprefix-00box-h1/4traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
countryprefix-00box-h1/2trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
countryprefix-00box-h1/2traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
countryprefix-00box-h1trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
countryprefix-00box-h1traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
countryprefix-00knn-k1trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
countryprefix-00knn-k1traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
countryprefix-00knn-k3trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
countryprefix-00knn-k3traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음

computed-scores.csv

전체 4행 · 처음 4행

검증 전체 피복과 선택 기록
사례고정 설정학습 행 수defined선택이유
countryprefix-000미정의/해당 없음no-positive-complete-validation-candidate
countryprefix-331box-h1validation-full-coverage-minimum
countryprefix-661knn-k3validation-full-coverage-minimum
countryfull91knn-k9validation-full-coverage-minimum

computed-selection.csv

전체 4행 · 처음 4행

학습 전용 범위와 상수 입력 규칙
사례고정 설정학습 행 수학습 최솟값nativeMinnativeMax변환 범위상수 입력분모·범위
countryprefix-00미정의/해당 없음미정의/해당 없음미정의/해당 없음미정의/해당 없음0eligible-training-only;constant-scale-one-native-unit
countryprefix-33≈ 5756.5505
정확 원값575655049453121/100000000000
≈ 5756.5505
정확 원값575655049453121/100000000000
≈ 36347.704
정확 원값363477036392553/10000000000
≈ 30591.153
정확 원값3059115314472409/100000000000
0eligible-training-only;constant-scale-one-native-unit
countryprefix-66≈ 3772.3603
정확 원값377236029116103/100000000000
≈ 3772.3603
정확 원값377236029116103/100000000000
3866817656161/62500000≈ 58096.722
정확 원값5809672220741497/100000000000
0eligible-training-only;constant-scale-one-native-unit
countryfull9≈ 2229.7149
정확 원값222971491223037/100000000000
≈ 2229.7149
정확 원값222971491223037/100000000000
3866817656161/62500000≈ 59639.368
정확 원값5963936758634563/100000000000
0eligible-training-only;constant-scale-one-native-unit

computed-transforms.csv

검증과 시험의 여섯 후보 성적
검증과 시험의 여섯 후보 성적

벡터 원본 확대 · SVG · PNG

전체 12행 · 처음 10행

고정 접두별 선택 성적·미정의 구간
사례고정 설정학습 행 수분석 역할선택가능 분모평균 제곱 오차평균 절대 오차공통 분모공통 MSE전체 피복분모·범위
countryprefix-00train미정의/해당 없음0미정의/해당 없음미정의/해당 없음0미정의/해당 없음0fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-00validation미정의/해당 없음0미정의/해당 없음미정의/해당 없음0미정의/해당 없음0fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-00test미정의/해당 없음0미정의/해당 없음미정의/해당 없음0미정의/해당 없음0fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-33trainbox-h13≈ 1.3868525
정확 원값6240836381188323486969511541041/4500000000000000000000000000000
≈ 0.96738647
정확 원값2176619559799321/2250000000000000
0미정의/해당 없음1fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-33validationbox-h13≈ 4.0606783
정확 원값109638313950585687538957751336941/27000000000000000000000000000000
≈ 1.5882747
정확 원값14294472182059049/9000000000000000
0미정의/해당 없음1fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-33testbox-h14≈ 3.9533278
정확 원값3953327836222707815246286988103/1000000000000000000000000000000
≈ 1.6042498
정확 원값3208499564412791/2000000000000000
0미정의/해당 없음1fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-66trainknn-k36≈ 4.651901
정확 원값27911405958156757242844778142283/6000000000000000000000000000000
≈ 1.8534248
정확 원값148273982359009/80000000000000
0미정의/해당 없음1fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-66validationknn-k33≈ 3.0683333
정확 원값27614999581652293019731787355647/9000000000000000000000000000000
≈ 1.4000207
정확 원값12600185982028219/9000000000000000
0미정의/해당 없음1fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-66testknn-k34≈ 5.8130816
정확 원값52317734517014774098116394538947/9000000000000000000000000000000
≈ 2.1807891
정확 원값13084734445906903/6000000000000000
0미정의/해당 없음1fixed-source-prefix;not-independent-resampling-or-population-rate
countryfull9trainknn-k99≈ 5.6339508
정확 원값6338194645737518399179095987979/1125000000000000000000000000000
≈ 2.1373325
정확 원값3606748565911531/1687500000000000
9≈ 5.6339508
정확 원값6338194645737518399179095987979/1125000000000000000000000000000
1fixed-source-prefix;not-independent-resampling-or-population-rate

computed-learning-curves.csv

고정 접두 곡선 · 표본 반복이나 이론률 아님
고정 접두 곡선 · 표본 반복이나 이론률 아님

벡터 원본 확대 · SVG · PNG

전체 13행 · 처음 10행

전체 원자료와 선택 성적의 요약
사례지표값단위
countrysourceRows16rows
countryeligibleRows16rows
countrytrainingRows9rows
countryvalidationRows3rows
countrytestRows4rows
countryexcludedRows0rows
countrydistinctEligibleX16input values
countryselected-train-MSE≈ 5.6339508
정확 원값6338194645737518399179095987979/1125000000000000000000000000000
(percentage point)^2
countryselected-train-MAE≈ 2.1373325
정확 원값3606748565911531/1687500000000000
percentage points
countryselected-validation-MSE≈ 2.9421175
정확 원값8826352408022017555156873162723/3000000000000000000000000000000
(percentage point)^2

computed-study-metrics.csv

연구 과제

시험에서 성적이 더 좋은 후보가 있다는 사실을 기술하되 최초 선택을 유지하세요. 국가를 추가한다면 같은 해 공통 충격,표본 선정,지표 수정과 과거 정보 시점을 어떻게 다룰지 설계표에 적으세요.

원자료부터 다시 계산하기

reproduce-local-learning.py · reproduce-local-learning.R · computed-occupancy-experiments.csv

Average 2024 total GDP growth among national units with similar 2023 GDP per capita. The retained revised World Bank snapshot supplies thirty-two records, sixteen countries over two years. X is 2023 GDP per capita in constant 2015 dollars; Y is 2024 total annual GDP growth in percent. Per-capita levels and total-growth rates are different indicators, and this is not an income-growth causal effect.

The role schedule gives nine training, three validation and four test countries. Full-training validation selects k nine: the mean of all nine training growth rates, approximately 3.627928 percent. A wide finite-sample winner does not invalidate local-learning theory or establish universal consistency.

Selected scores using all country training records
RoleDenominatorSelectionMSE: percentage-points squaredMAE: percentage points
Validation3k=9≈2.942117≈1.609226
Test4Same k=9≈10.239817≈3.030277

Korea has input 36347.7036392553 and outcome 2.00361101838986. It is a training record, so its row error is not held-out performance. With distinct country inputs k one reproduces training outcomes and has training MSE zero, yet validation MSE approximately 7.352394.

Countries can share same-year shocks and the sixteen are not a random sample of the world. Read all original values, predictions, roles and coverage with the fixed-prefix curves. Even if k one has lower observed test MSE, retain the original validation decision.

Connect Korea’s record with the training mean

KOR:2024 is training. Selected k nine averages every training country, so every query receives approximately 3.627928. A box h one can omit distant training countries for a held-out query beyond the training range; it need not match k nine. Explain their different validation scores through individual predictions.

Observed outcomes and selected predictions by role
Observed outcomes and selected predictions by role

Enlarge vector original · SVG · PNG

Every native field and analytical role

Native variable names are preserved. Large tables expose every row in ten-row pages, sharing the same values across languages. Original CSVs remain available for comparison.

32 total rows · first 10

Native source · actual32-country-revised-original-2023-2024.csv
sourceRowcountryISO3countryIDcountryNameindicatorIDindicatorNamedateoriginalValueTokenunitobs_statusdecimal
1AUSAUAustraliaNY.GDP.MKTP.KD.ZGGDP growth (annual %)20241.37340773365975Undefined / not applicableUndefined / not applicable1
46BRABRBrazilNY.GDP.MKTP.KD.ZGGDP growth (annual %)20243.41931516501906Undefined / not applicableUndefined / not applicable1
91CANCACanadaNY.GDP.MKTP.KD.ZGGDP growth (annual %)20242.04626605401701Undefined / not applicableUndefined / not applicable1
136CHNCNChinaNY.GDP.MKTP.KD.ZGGDP growth (annual %)20244.95830378788091Undefined / not applicableUndefined / not applicable1
181DEUDEGermanyNY.GDP.MKTP.KD.ZGGDP growth (annual %)2024-0.495851897260366Undefined / not applicableUndefined / not applicable1
226FRAFRFranceNY.GDP.MKTP.KD.ZGGDP growth (annual %)20241.19046798275883Undefined / not applicableUndefined / not applicable1
271GBRGBUnited KingdomNY.GDP.MKTP.KD.ZGGDP growth (annual %)20241.08027716858781Undefined / not applicableUndefined / not applicable1
316IDNIDIndonesiaNY.GDP.MKTP.KD.ZGGDP growth (annual %)20245.03257477088519Undefined / not applicableUndefined / not applicable1
361INDINIndiaNY.GDP.MKTP.KD.ZGGDP growth (annual %)20247.09927893176518Undefined / not applicableUndefined / not applicable1
406JPNJPJapanNY.GDP.MKTP.KD.ZGGDP growth (annual %)2024-0.240084236041696Undefined / not applicableUndefined / not applicable1

actual32-country-revised-original-2023-2024.csv

16 total rows · first 10

Native source · derived16-country-local-learning-and-roles.csv
idcountryISO3xGDPpc2023Constant2015USDyGrowth2024AnnualPercentxSourceRowySourceRowsplitRankplannedRolerole
AUS:2024AUS61869.0824985761.37340773365975216219traintrain
BRA:2024BRA9288.027014700693.419315165019062207464traintrain
CAN:2024CAN45495.51008926052.0462660540170122529110testtest
CHN:2024CHN12483.97911012494.9583037878809122971368traintrain
DEU:2024DEU44368.9920074881-0.495851897260366234218115testtest
FRA:2024FRA39319.41522272951.19046798275883238722612traintrain
GBR:2024GBR47911.15401348321.0802771685878124322715testtest
IDN:2024IDN4192.644010341815.03257477088519247731613traintrain
IND:2024IND2229.714912230377.09927893176518252236114traintrain
JPN:2024JPN37902.5492204411-0.24008423604169625674060testtest

derived16-country-local-learning-and-roles.csv

16 total rows · first 10

Every record’s role, eligibility and reason
caseidsourceRowsplitRankplannedRoleroleeligiblereason
countryAUS:202419traintrain1eligible
countryBRA:2024464traintrain1eligible
countryCAN:20249110testtest1eligible
countryCHN:20241368traintrain1eligible
countryDEU:202418115testtest1eligible
countryFRA:202422612traintrain1eligible
countryGBR:20242715testtest1eligible
countryIDN:202431613traintrain1eligible
countryIND:202436114traintrain1eligible
countryJPN:20244060testtest1eligible

computed-eligibility.csv

16 total rows · first 10

Every source row: six predictions and selected residual
caseidsourceRoworiginalIDsplitRankplannedRolerolexymean_box-h1/4neighbors_box-h1/4mean_box-h1/2neighbors_box-h1/2mean_box-h1neighbors_box-h1mean_knn-k1neighbors_knn-k1mean_knn-k3neighbors_knn-k3mean_knn-k9neighbors_knn-k9selectedMeanobservedMinusSelected
countryAUS:20241AUS9traintrain3866817656161/62500000≈ 1.3734077
Exact source value5493630934639/4000000000000
≈ 1.3734077
Exact source value5493630934639/4000000000000
1≈ 1.5224956
Exact source value38062389456737/25000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 1.3734077
Exact source value5493630934639/4000000000000
1≈ 1.5224956
Exact source value38062389456737/25000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 3.6279283
Exact source value10883784964498033/3000000000000000
≈ -2.2545206
Exact source value-6763561763518783/3000000000000000
countryBRA:202446BRA4traintrain≈ 9288.027
Exact source value928802701470069/100000000000
≈ 3.4193152
Exact source value170965758250953/50000000000000
≈ 4.6806447
Exact source value9361289386228553/2000000000000000
6≈ 4.2982113
Exact source value30087479177075519/7000000000000000
7≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 3.4193152
Exact source value170965758250953/50000000000000
1≈ 2.9708208
Exact source value8912462484805109/3000000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 3.6279283
Exact source value10883784964498033/3000000000000000
≈ -0.20861316
Exact source value-625839469440853/3000000000000000
countryCAN:202491CAN10testtest≈ 45495.51
Exact source value90991020178521/2000000000
≈ 2.0462661
Exact source value204626605401701/100000000000000
≈ 1.5970395
Exact source value319407900114869/200000000000000
2≈ 1.5224956
Exact source value38062389456737/25000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 1.190468
Exact source value119046798275883/100000000000000
1≈ 1.5224956
Exact source value38062389456737/25000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 3.6279283
Exact source value10883784964498033/3000000000000000
≈ -1.5816623
Exact source value-4744986802447003/3000000000000000
countryCHN:2024136CHN8traintrain≈ 12483.979
Exact source value124839791101249/10000000000
≈ 4.9583038
Exact source value495830378788091/100000000000000
≈ 4.6806447
Exact source value9361289386228553/2000000000000000
6≈ 3.9097434
Exact source value31277947159834349/8000000000000000
8≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 4.9583038
Exact source value495830378788091/100000000000000
1≈ 2.9708208
Exact source value8912462484805109/3000000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 3.6279283
Exact source value10883784964498033/3000000000000000
≈ 1.3303755
Exact source value3991126399144697/3000000000000000
countryDEU:2024181DEU15testtest≈ 44368.992
Exact source value443689920074881/10000000000
≈ -0.4958519
Exact source value-247925948630183/500000000000000
≈ 1.5970395
Exact source value319407900114869/200000000000000
2≈ 1.5224956
Exact source value38062389456737/25000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 1.190468
Exact source value119046798275883/100000000000000
1≈ 1.5224956
Exact source value38062389456737/25000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 3.6279283
Exact source value10883784964498033/3000000000000000
≈ -4.1237802
Exact source value-12371340656279131/3000000000000000
countryFRA:2024226FRA12traintrain≈ 39319.415
Exact source value78638830445459/2000000000
≈ 1.190468
Exact source value119046798275883/100000000000000
≈ 1.5970395
Exact source value319407900114869/200000000000000
2≈ 2.3814476
Exact source value190515810453787/80000000000000
4≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 1.190468
Exact source value119046798275883/100000000000000
1≈ 1.5224956
Exact source value38062389456737/25000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 3.6279283
Exact source value10883784964498033/3000000000000000
≈ -2.4374603
Exact source value-7312381016221543/3000000000000000
countryGBR:2024271GBR5testtest≈ 47911.154
Exact source value29944471258427/625000000
≈ 1.0802772
Exact source value108027716858781/100000000000000
≈ 1.5224956
Exact source value38062389456737/25000000000000
3≈ 1.5224956
Exact source value38062389456737/25000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 1.190468
Exact source value119046798275883/100000000000000
1≈ 1.5224956
Exact source value38062389456737/25000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 3.6279283
Exact source value10883784964498033/3000000000000000
≈ -2.5476512
Exact source value-7642953458734603/3000000000000000
countryIDN:2024316IDN13traintrain≈ 4192.644
Exact source value419264401034181/100000000000
≈ 5.0325748
Exact source value503257477088519/100000000000000
≈ 4.6806447
Exact source value9361289386228553/2000000000000000
6≈ 4.6806447
Exact source value9361289386228553/2000000000000000
6≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 5.0325748
Exact source value503257477088519/100000000000000
1≈ 4.2023234
Exact source value4202323424673503/1000000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 3.6279283
Exact source value10883784964498033/3000000000000000
≈ 1.4046464
Exact source value4213939348157537/3000000000000000
countryIND:2024361IND14traintrain≈ 2229.7149
Exact source value222971491223037/100000000000
≈ 7.0992789
Exact source value354963946588259/50000000000000
≈ 4.6806447
Exact source value9361289386228553/2000000000000000
6≈ 4.6806447
Exact source value9361289386228553/2000000000000000
6≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 7.0992789
Exact source value354963946588259/50000000000000
1≈ 6.3904686
Exact source value383428113477611/60000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 3.6279283
Exact source value10883784964498033/3000000000000000
≈ 3.4713506
Exact source value10414051830797507/3000000000000000
countryJPN:2024406JPN0testtest≈ 37902.549
Exact source value379025492204411/10000000000
≈ -0.24008424
Exact source value-7502632376303/31250000000000
≈ 1.5970395
Exact source value319407900114869/200000000000000
2≈ 2.5890211
Exact source value1294510568770841/500000000000000
5≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 1.190468
Exact source value119046798275883/100000000000000
1≈ 1.5224956
Exact source value38062389456737/25000000000000
3≈ 3.6279283
Exact source value10883784964498033/3000000000000000
9≈ 3.6279283
Exact source value10883784964498033/3000000000000000
≈ -3.8680126
Exact source value-11604037672623121/3000000000000000

computed-predictions.csv

9 total rows · first 9

Every training distance and coefficient for the traced source row
casequeryIDcandidatetrainingIndextrainingIDdistancerawWeightcoefficientselected
countryAUS:2024knn-k90AUS:2024011/91
countryAUS:2024knn-k91BRA:2024≈ 0.88165012
Exact source value5258105548387531/5963936758634563
11/91
countryAUS:2024knn-k92CHN:2024≈ 0.82806216
Exact source value4938510338845110/5963936758634563
11/91
countryAUS:2024knn-k93FRA:2024≈ 0.37810038
Exact source value2254966727584650/5963936758634563
11/91
countryAUS:2024knn-k94IDN:2024≈ 0.96708669
Exact source value5767643848823419/5963936758634563
11/91
countryAUS:2024knn-k95IND:2024111/91
countryAUS:2024knn-k96KOR:2024≈ 0.4279284
Exact source value2552137885932070/5963936758634563
11/91
countryAUS:2024knn-k97VNM:2024≈ 0.97413377
Exact source value95240528208877/97769455059583
11/91
countryAUS:2024knn-k98ZAF:2024≈ 0.94086397
Exact source value5611253200404479/5963936758634563
11/91

computed-trace-weights.csv

16 total rows · first 10

Descriptive means among actual records with the same input
caserolexrowsmeanObservedYscope
countrytest≈ 37902.549
Exact source value379025492204411/10000000000
1≈ -0.24008424
Exact source value-7502632376303/31250000000000
descriptive-repeated-native-X;not-known-population-mean
countrytest≈ 44368.992
Exact source value443689920074881/10000000000
1≈ -0.4958519
Exact source value-247925948630183/500000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytest≈ 45495.51
Exact source value90991020178521/2000000000
1≈ 2.0462661
Exact source value204626605401701/100000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytest≈ 47911.154
Exact source value29944471258427/625000000
1≈ 1.0802772
Exact source value108027716858781/100000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytrain≈ 2229.7149
Exact source value222971491223037/100000000000
1≈ 7.0992789
Exact source value354963946588259/50000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytrain≈ 3772.3603
Exact source value377236029116103/100000000000
1≈ 7.039552
Exact source value351977598561509/50000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytrain≈ 4192.644
Exact source value419264401034181/100000000000
1≈ 5.0325748
Exact source value503257477088519/100000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytrain≈ 5756.5505
Exact source value575655049453121/100000000000
1≈ 0.53484353
Exact source value534843531905139/1000000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytrain≈ 9288.027
Exact source value928802701470069/100000000000
1≈ 3.4193152
Exact source value170965758250953/50000000000000
descriptive-repeated-native-X;not-known-population-mean
countrytrain≈ 12483.979
Exact source value124839791101249/10000000000
1≈ 4.9583038
Exact source value495830378788091/100000000000000
descriptive-repeated-native-X;not-known-population-mean

computed-input-groups.csv

Observed-minus-selected prediction residuals
Observed-minus-selected prediction residuals

Enlarge vector original · SVG · PNG

Three changes along a growing prefix

Prefixes three, six and nine select box h one, k three and k nine. Rising test loss is not a computational contradiction: composition, range and selection change together, and validation is finite. Do not label the curve a population-risk derivative or income-policy effect.

144 total rows · first 10

Every candidate, role and evaluation frame across fixed profiles
caseprofiletrainingRowscandidaterolescopeeligibleRowscoveragecompleteCoveragentotalSquaredErrortotalAbsoluteErrorMSEMAE
countryprefix-00box-h1/4trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
countryprefix-00box-h1/4traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
countryprefix-00box-h1/2trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
countryprefix-00box-h1/2traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
countryprefix-00box-h1trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
countryprefix-00box-h1traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
countryprefix-00knn-k1trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
countryprefix-00knn-k1traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
countryprefix-00knn-k3trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
countryprefix-00knn-k3traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable

computed-scores.csv

4 total rows · first 4

Complete-validation-coverage selection ledger
caseprofiletrainingRowsdefinedselectedreason
countryprefix-000Undefined / not applicableno-positive-complete-validation-candidate
countryprefix-331box-h1validation-full-coverage-minimum
countryprefix-661knn-k3validation-full-coverage-minimum
countryfull91knn-k9validation-full-coverage-minimum

computed-selection.csv

4 total rows · first 4

Training-only ranges and the constant-input rule
caseprofiletrainingRowsoriginnativeMinnativeMaxscaleconstantXscope
countryprefix-00Undefined / not applicableUndefined / not applicableUndefined / not applicableUndefined / not applicable0eligible-training-only;constant-scale-one-native-unit
countryprefix-33≈ 5756.5505
Exact source value575655049453121/100000000000
≈ 5756.5505
Exact source value575655049453121/100000000000
≈ 36347.704
Exact source value363477036392553/10000000000
≈ 30591.153
Exact source value3059115314472409/100000000000
0eligible-training-only;constant-scale-one-native-unit
countryprefix-66≈ 3772.3603
Exact source value377236029116103/100000000000
≈ 3772.3603
Exact source value377236029116103/100000000000
3866817656161/62500000≈ 58096.722
Exact source value5809672220741497/100000000000
0eligible-training-only;constant-scale-one-native-unit
countryfull9≈ 2229.7149
Exact source value222971491223037/100000000000
≈ 2229.7149
Exact source value222971491223037/100000000000
3866817656161/62500000≈ 59639.368
Exact source value5963936758634563/100000000000
0eligible-training-only;constant-scale-one-native-unit

computed-transforms.csv

Six-candidate validation and test scores
Six-candidate validation and test scores

Enlarge vector original · SVG · PNG

12 total rows · first 10

Selected prefix scores and undefined points
caseprofiletrainingRowsroleselectedavailableRowsMSEMAEcommonRowscommonMSEcompleteCoveragescope
countryprefix-00trainUndefined / not applicable0Undefined / not applicableUndefined / not applicable0Undefined / not applicable0fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-00validationUndefined / not applicable0Undefined / not applicableUndefined / not applicable0Undefined / not applicable0fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-00testUndefined / not applicable0Undefined / not applicableUndefined / not applicable0Undefined / not applicable0fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-33trainbox-h13≈ 1.3868525
Exact source value6240836381188323486969511541041/4500000000000000000000000000000
≈ 0.96738647
Exact source value2176619559799321/2250000000000000
0Undefined / not applicable1fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-33validationbox-h13≈ 4.0606783
Exact source value109638313950585687538957751336941/27000000000000000000000000000000
≈ 1.5882747
Exact source value14294472182059049/9000000000000000
0Undefined / not applicable1fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-33testbox-h14≈ 3.9533278
Exact source value3953327836222707815246286988103/1000000000000000000000000000000
≈ 1.6042498
Exact source value3208499564412791/2000000000000000
0Undefined / not applicable1fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-66trainknn-k36≈ 4.651901
Exact source value27911405958156757242844778142283/6000000000000000000000000000000
≈ 1.8534248
Exact source value148273982359009/80000000000000
0Undefined / not applicable1fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-66validationknn-k33≈ 3.0683333
Exact source value27614999581652293019731787355647/9000000000000000000000000000000
≈ 1.4000207
Exact source value12600185982028219/9000000000000000
0Undefined / not applicable1fixed-source-prefix;not-independent-resampling-or-population-rate
countryprefix-66testknn-k34≈ 5.8130816
Exact source value52317734517014774098116394538947/9000000000000000000000000000000
≈ 2.1807891
Exact source value13084734445906903/6000000000000000
0Undefined / not applicable1fixed-source-prefix;not-independent-resampling-or-population-rate
countryfull9trainknn-k99≈ 5.6339508
Exact source value6338194645737518399179095987979/1125000000000000000000000000000
≈ 2.1373325
Exact source value3606748565911531/1687500000000000
9≈ 5.6339508
Exact source value6338194645737518399179095987979/1125000000000000000000000000000
1fixed-source-prefix;not-independent-resampling-or-population-rate

computed-learning-curves.csv

Fixed-prefix curves, not resampling or a theoretical rate
Fixed-prefix curves, not resampling or a theoretical rate

Enlarge vector original · SVG · PNG

13 total rows · first 10

Complete-source and selected-score metrics
casemetricvalueunit
countrysourceRows16rows
countryeligibleRows16rows
countrytrainingRows9rows
countryvalidationRows3rows
countrytestRows4rows
countryexcludedRows0rows
countrydistinctEligibleX16input values
countryselected-train-MSE≈ 5.6339508
Exact source value6338194645737518399179095987979/1125000000000000000000000000000
(percentage point)^2
countryselected-train-MAE≈ 2.1373325
Exact source value3606748565911531/1687500000000000
percentage points
countryselected-validation-MSE≈ 2.9421175
Exact source value8826352408022017555156873162723/3000000000000000000000000000000
(percentage point)^2

computed-study-metrics.csv

Research task

Describe a better test-scoring candidate without reversing the original choice. Before adding countries, state how common shocks, source selection, revisions and historical information timing would be handled.

Recalculate from factual source inputs

reproduce-local-learning.py · reproduce-local-learning.R · computed-occupancy-experiments.csv

대학원Graduate

개인 사례:교육 연수와 당시 임금의 국소 평균Person case: local wages by schooling

NLS 원파일의3613행·52필드를 보존하고 ed76을 X,wage76을 Y로 읽습니다. 교육은 연수,임금은1976년 당시 명목 센트/시간입니다. 로그 임금·현재 달러·교육의 인과적 수익률로 이름을 바꾸지 않습니다. 필수값이 없는596행은 제외 이유와 원 역할을 남기고,학습1806·검증601·시험610행을 사용합니다.

학습 교육의 최솟값1,범위17이므로 정규화 폭1/4는 교육4.25년의 반경입니다. 검증은 이 상자 창을 선택합니다. 이 범위는 학습만으로 맞췄으며,교육이 이산 연수라 같은 X의 여러 임금이 있습니다. k=1도 자기 행보다 앞선 거리0동률을 고를 수 있어 모든 학습 행을 완벽하게 맞추지 않습니다.

전체 개인 학습과 선택한 상자 h=1/4
역할분모MSE: (당시 센트/시간)²MAE: 당시 센트/시간
검증601≈53677.764219≈175.559529
시험610≈71548.284973≈203.296114

원자료1행은 원 ID2,교육7년,임금548이고 학습 역할입니다. 선택한 창의 예측은≈437.885305입니다. 관측−예측 잔차가 양수인 이 한 관측만으로 방법의 조건부 편향을 확정하지 않습니다. 이웃들의 원 임금과 정확 계수를 읽어 어떻게 그 값이 나왔는지 따라가세요.

원 조사 가중치는 보존하지만 이 예제는 모든 적격 행에 단위 질량을 줍니다. 공식 조사 가중 임금 추정도 아니고 능력·지역·경력·선택을 통제한 교육 효과도 아닙니다. 이론의 참 평균·분산은 미지로 두면서도 피복과 원 단위 오차를 꼼꼼히 비교할 수 있습니다.

원자료1행의 이웃을 모두 따라가기

원1행(원 ID2,분석 person-row:1)의 교육7·임금548은 학습 역할입니다. 선택 폭은 학습 범위17년의1/4,즉4.25년입니다. trace 표에서 양의 가중치가 있는 각 원 ID의 임금과 계수를 확인해 약437.885305를 재구성하세요. 계수 합1과 제외된 거리의0계수를 함께 확인합니다.

원 결과와 선택 예측 · 역할별 산점도
원 결과와 선택 예측 · 역할별 산점도

벡터 원본 확대 · SVG · PNG

원자료의 모든 필드와 분석 역할

원 변수명은 원문과 같게 보존합니다. 큰 표는10행씩 모든 행을 제공하며 두 언어가 같은 원값을 공유합니다. 원 CSV도 내려받아 대조할 수 있습니다.

전체 3613행 · 처음 10행

원자료 · actual3613-NLS-original52-fields-and-local-learning.csv
원자료 행분석 IDnearc2nearc4nearc4anearc4bed76ed66age76dadednodadedmomednomomedweightmomdad14sinmom14step14reg661reg662reg663reg664reg665reg666reg667reg668reg669south66work76work78lwage76lwage78famedblacksmsa76rsmsa78rreg76rreg78rreg80rsmsa66rwage76wage78wage80noint78noint80enroll76enroll78enroll80kwwiqmarsta76marsta78marsta80libcrd14derivedXSchoolingYearsderivedYRawWageCentsPerHour해시 순위원 역할분석 역할
12000075299.94110.2511584131001000000000116.306275296.07484616911100015485007550000015.11107548833traintrain
2300001211278.0008.0003801661001000000000106.17586727.80110001481.7690000035931441124811114traintrain
34000012123414.00012.0003674701001000000000106.58063914.201.0..1721..110..421031..112721225testtest
45111011112711.00012.0003801661000100000000105.52146092.601.0.01250..100.025881.51112501534traintrain
5611101212348.0007.0003674701000100000000116.591673736.54484979801100.1729800.0100.3410811.0127291457traintrain
6711101211269.00012.0003801661000100000000116.214608106.19351769601100015005636300000038851441125003129traintrain
78111018163314.00014.0003674701000100000000116.336825736.465535981011000156573980800000411191111185651191validationvalidation
89111014132914.00014.0004966351000100000000116.410174886.531004381011000160878982500000461081111146082000testtest
910111012122812.00012.0003677721000100000000116.052089176.148096623011000142553865000000329644401242567traintrain
1011111012122912.00012.0004804451000100000000116.244166906.25716771301100015156006000000034971111125153454traintrain

actual3613-NLS-original52-fields-and-local-learning.csv

전체 3613행 · 처음 10행

역할·필수값·제외 이유의 모든 원행
사례분석 ID원자료 행해시 순위원 역할분석 역할적격이유
personperson-row:11833traintrain1eligible
personperson-row:221114traintrain1eligible
personperson-row:33225testtest1eligible
personperson-row:441534traintrain1eligible
personperson-row:551457traintrain1eligible
personperson-row:663129traintrain1eligible
personperson-row:771191validationvalidation1eligible
personperson-row:882000testtest1eligible
personperson-row:9967traintrain1eligible
personperson-row:10103454traintrain1eligible

computed-eligibility.csv

전체 3613행 · 처음 10행

모든 원행의 여섯 예측과 선택 잔차
사례분석 ID원자료 행원 ID해시 순위원 역할분석 역할원 X원 Ymean_box-h1/4neighbors_box-h1/4mean_box-h1/2neighbors_box-h1/2mean_box-h1neighbors_box-h1mean_knn-k1neighbors_knn-k1mean_knn-k3neighbors_knn-k3mean_knn-k9neighbors_knn-k9선택 예측관측−예측
personperson-row:112833traintrain7548122170/279279352024/6511302351097/602180654811148/333929/99122170/27930722/279
personperson-row:2231114traintrain12481219807/3861544526003/9011802351097/6021806481157034313/99219807/386-34141/386
personperson-row:334225testtest12721219807/3861544526003/9011802351097/6021806481157034313/99219807/38658499/386
personperson-row:4451534traintrain1125069745/1281280350732/6011803351097/60218062501884/331168/3969745/128-37745/128
personperson-row:5561457traintrain12729219807/3861544526003/9011802351097/6021806481157034313/99219807/38661587/386
personperson-row:6673129traintrain12500219807/3861544526003/9011802351097/6021806481157034313/99219807/386-26807/386
personperson-row:7781191validationvalidation18565165824/251753501766/8431686351097/602180694412135/336532/99165824/251-24009/251
personperson-row:8892000testtest14608501766/84316861048627/17911791351097/6021806300153036131/99501766/84310778/843
personperson-row:991067traintrain12425219807/3861544526003/9011802351097/6021806481157034313/99219807/386-55757/386
personperson-row:1010113454traintrain12515219807/3861544526003/9011802351097/6021806481157034313/99219807/386-21017/386

computed-predictions.csv

전체 1806행 · 처음 10행

지정 원행의 모든 학습 거리·계수
사례질의 ID후보학습 원순서학습 ID정규화 거리원 가중치정규화 계수선택
personperson-row:1box-h1/40person-row:1011/2791
personperson-row:1box-h1/41person-row:25/17000
personperson-row:1box-h1/42person-row:44/1711/2791
personperson-row:1box-h1/43person-row:55/17000
personperson-row:1box-h1/44person-row:65/17000
personperson-row:1box-h1/45person-row:95/17000
personperson-row:1box-h1/46person-row:105/17000
personperson-row:1box-h1/47person-row:112/1711/2791
personperson-row:1box-h1/48person-row:134/1711/2791
personperson-row:1box-h1/49person-row:144/1711/2791

computed-trace-weights.csv

전체 46행 · 처음 10행

같은 X를 가진 실제 행의 기술 평균
사례분석 역할원 X행 수관측 Y 기술 평균분모·범위
persontest64464descriptive-repeated-native-X;not-known-population-mean
persontest761961/6descriptive-repeated-native-X;not-known-population-mean
persontest8137140/13descriptive-repeated-native-X;not-known-population-mean
persontest9197599/19descriptive-repeated-native-X;not-known-population-mean
persontest10285533/14descriptive-repeated-native-X;not-known-population-mean
persontest112912377/29descriptive-repeated-native-X;not-known-population-mean
persontest1220259345/101descriptive-repeated-native-X;not-known-population-mean
persontest135330307/53descriptive-repeated-native-X;not-known-population-mean
persontest145731307/57descriptive-repeated-native-X;not-known-population-mean
persontest1534519descriptive-repeated-native-X;not-known-population-mean

computed-input-groups.csv

관측−선택 예측 잔차
관측−선택 예측 잔차

벡터 원본 확대 · SVG · PNG

같은 X라도 같은 Y는 아니다

교육이 같은 여러 행의 임금이 다릅니다. k1의 거리0동률을 원순서로 푸는 규칙은 자기 행을 항상 먼저 고르지 않습니다. input-groups의 실제 기술 평균은 그 모집단의 참 조건부 평균을 안다는 뜻이 아닙니다. 누락596행은 원 필드와 원 역할을 보존하며 대체하지 않습니다.

전체 180행 · 처음 10행

선언한 고정 학습 설정의 모든 후보·역할·분모
사례고정 설정학습 행 수후보분석 역할분모·범위적격 행 수피복률전체 피복분모totalSquaredErrortotalAbsoluteError평균 제곱 오차평균 절대 오차
personprefix-00box-h1/4trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
personprefix-00box-h1/4traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
personprefix-00box-h1/2trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
personprefix-00box-h1/2traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
personprefix-00box-h1trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
personprefix-00box-h1traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
personprefix-00knn-k1trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
personprefix-00knn-k1traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
personprefix-00knn-k3trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
personprefix-00knn-k3traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음

computed-scores.csv

전체 5행 · 처음 5행

검증 전체 피복과 선택 기록
사례고정 설정학습 행 수defined선택이유
personprefix-000미정의/해당 없음no-positive-complete-validation-candidate
personprefix-30301box-h1validation-full-coverage-minimum
personprefix-1201201box-h1/4validation-full-coverage-minimum
personprefix-6006001box-h1/4validation-full-coverage-minimum
personfull18061box-h1/4validation-full-coverage-minimum

computed-selection.csv

전체 5행 · 처음 5행

학습 전용 범위와 상수 입력 규칙
사례고정 설정학습 행 수학습 최솟값nativeMinnativeMax변환 범위상수 입력분모·범위
personprefix-00미정의/해당 없음미정의/해당 없음미정의/해당 없음미정의/해당 없음0eligible-training-only;constant-scale-one-native-unit
personprefix-30308818100eligible-training-only;constant-scale-one-native-unit
personprefix-1201203318150eligible-training-only;constant-scale-one-native-unit
personprefix-6006003318150eligible-training-only;constant-scale-one-native-unit
personfull18061118170eligible-training-only;constant-scale-one-native-unit

computed-transforms.csv

검증과 시험의 여섯 후보 성적
검증과 시험의 여섯 후보 성적

벡터 원본 확대 · SVG · PNG

전체 15행 · 처음 10행

고정 접두별 선택 성적·미정의 구간
사례고정 설정학습 행 수분석 역할선택가능 분모평균 제곱 오차평균 절대 오차공통 분모공통 MSE전체 피복분모·범위
personprefix-00train미정의/해당 없음0미정의/해당 없음미정의/해당 없음0미정의/해당 없음0fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-00validation미정의/해당 없음0미정의/해당 없음미정의/해당 없음0미정의/해당 없음0fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-00test미정의/해당 없음0미정의/해당 없음미정의/해당 없음0미정의/해당 없음0fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-3030trainbox-h1303207549/1007781/50303207549/1001fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-3030validationbox-h1601757758014091/117796003101745/16828597250527299097/39004001fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-3030testbox-h161097808970821/11956008697901/4270061097808970821/11956001fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-120120trainbox-h1/4120≈ 56495.126
정확 원값85172131335719041793834360297711/1507601411216930601494208000
≈ 174.56569
정확 원값21027859903997/120458145600
120≈ 56495.126
정확 원값85172131335719041793834360297711/1507601411216930601494208000
1fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-120120validationbox-h1/4601≈ 54237.659
정확 원값20066737889281175353985827854498523/369977949657728244028357761600
≈ 176.15115
정확 원값875567000950260581/4970543763505320
601≈ 54237.659
정확 원값20066737889281175353985827854498523/369977949657728244028357761600
1fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-120120testbox-h1/4610≈ 72760.931
정확 원값13661533727408577462417285722463379/187759192421975231994424488000
≈ 204.20547
정확 원값386329534162613651/1891866698671950
610≈ 72760.931
정확 원값13661533727408577462417285722463379/187759192421975231994424488000
1fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-600600trainbox-h1/4600≈ 62780.882
정확 원값6020409339722912569371630575508803992216543/95895583480161735016310610147596880000
≈ 185.2975
정확 원값76984821313170562571359/415466063914119372000
600≈ 62780.882
정확 원값6020409339722912569371630575508803992216543/95895583480161735016310610147596880000
1fixed-source-prefix;not-independent-resampling-or-population-rate

computed-learning-curves.csv

고정 접두 곡선 · 표본 반복이나 이론률 아님
고정 접두 곡선 · 표본 반복이나 이론률 아님

벡터 원본 확대 · SVG · PNG

전체 13행 · 처음 10행

전체 원자료와 선택 성적의 요약
사례지표값단위
personsourceRows3613rows
personeligibleRows3017rows
persontrainingRows1806rows
personvalidationRows601rows
persontestRows610rows
personexcludedRows596rows
persondistinctEligibleX18input values
personselected-train-MSE≈ 66192.379
정확 원값525724850296619495272798474807333704611035057715847702571545257/7942377356497715241278284902288744359623949608073131622400
(nominal1976cents/hour)^2
personselected-train-MAE≈ 192.45797
정확 원값101796619801092194245619556184247/528929083919842214175823995648
nominal1976cents/hour
personselected-validation-MSE≈ 53677.764
정확 원값8647255993564578916871720623371337522542389372561008085340469/161095681225605010811348938084173385688605491539144755200
(nominal1976cents/hour)^2

computed-study-metrics.csv

연구 과제

전체 평균 기준선과 선택 창을 같은 시험610행에서 비교할 절차를 설계하세요. 조사 가중치·출생 코호트·당시 화폐 단위와 관측 누락이 해석 범위를 어떻게 바꾸는지 적고,학교 교육의 인과 효과라는 다른 질문에 필요한 설계도 구분하세요.

원자료부터 다시 계산하기

reproduce-local-learning.py · reproduce-local-learning.R · computed-occupancy-experiments.csv

Retain all 3613 NLS records and fifty-two native fields. Use ed76 for schooling years and wage76 for nominal 1976 cents per hour. Do not relabel it log wages, current dollars or a causal schooling return. Preserve exclusion reasons and planned roles for 596 records missing required values; eligible roles contain 1806 training, 601 validation and 610 test records.

Training minimum schooling is one and range seventeen, so normalized box bandwidth one quarter is radius 4.25 years. Validation selects that window. Schooling has discrete repeated inputs: k one can select an earlier zero-distance record instead of the query itself, so training loss need not be zero.

Selected box h one quarter with full person training
RoleDenominatorMSE: (period cents/hour) squaredMAE: period cents/hour
Validation601≈53677.764219≈175.559529
Test610≈71548.284973≈203.296114

Source row one has native ID two, schooling seven and wage 548, with training role. Its selected-window prediction is approximately 437.885305. One positive observed-minus-predicted residual does not identify conditional bias. Follow the original neighbor wages and exact coefficients to reconstruct the average.

Native survey weights remain available, but these teaching fits give each eligible record unit mass. They are neither official survey-weighted wage estimates nor effects controlling ability, region, experience or selection. Compare native-unit errors and coverage while leaving true means and noise variances unknown.

Follow every neighbor of source row one

Source row one, native ID two and analytical person-row:1, has schooling seven and wage 548 in training. The selected radius is one quarter of seventeen years, or 4.25. Use all trace weights and original wages to reconstruct approximately 437.885305, checking unit coefficient sum and zero weights outside the window.

Observed outcomes and selected predictions by role
Observed outcomes and selected predictions by role

Enlarge vector original · SVG · PNG

Every native field and analytical role

Native variable names are preserved. Large tables expose every row in ten-row pages, sharing the same values across languages. Original CSVs remain available for comparison.

3613 total rows · first 10

Native source · actual3613-NLS-original52-fields-and-local-learning.csv
sourceRowidnearc2nearc4nearc4anearc4bed76ed66age76dadednodadedmomednomomedweightmomdad14sinmom14step14reg661reg662reg663reg664reg665reg666reg667reg668reg669south66work76work78lwage76lwage78famedblacksmsa76rsmsa78rreg76rreg78rreg80rsmsa66rwage76wage78wage80noint78noint80enroll76enroll78enroll80kwwiqmarsta76marsta78marsta80libcrd14derivedXSchoolingYearsderivedYRawWageCentsPerHoursplitRankplannedRolerole
12000075299.94110.2511584131001000000000116.306275296.07484616911100015485007550000015.11107548833traintrain
2300001211278.0008.0003801661001000000000106.17586727.80110001481.7690000035931441124811114traintrain
34000012123414.00012.0003674701001000000000106.58063914.201.0..1721..110..421031..112721225testtest
45111011112711.00012.0003801661000100000000105.52146092.601.0.01250..100.025881.51112501534traintrain
5611101212348.0007.0003674701000100000000116.591673736.54484979801100.1729800.0100.3410811.0127291457traintrain
6711101211269.00012.0003801661000100000000116.214608106.19351769601100015005636300000038851441125003129traintrain
78111018163314.00014.0003674701000100000000116.336825736.465535981011000156573980800000411191111185651191validationvalidation
89111014132914.00014.0004966351000100000000116.410174886.531004381011000160878982500000461081111146082000testtest
910111012122812.00012.0003677721000100000000116.052089176.148096623011000142553865000000329644401242567traintrain
1011111012122912.00012.0004804451000100000000116.244166906.25716771301100015156006000000034971111125153454traintrain

actual3613-NLS-original52-fields-and-local-learning.csv

3613 total rows · first 10

Every record’s role, eligibility and reason
caseidsourceRowsplitRankplannedRoleroleeligiblereason
personperson-row:11833traintrain1eligible
personperson-row:221114traintrain1eligible
personperson-row:33225testtest1eligible
personperson-row:441534traintrain1eligible
personperson-row:551457traintrain1eligible
personperson-row:663129traintrain1eligible
personperson-row:771191validationvalidation1eligible
personperson-row:882000testtest1eligible
personperson-row:9967traintrain1eligible
personperson-row:10103454traintrain1eligible

computed-eligibility.csv

3613 total rows · first 10

Every source row: six predictions and selected residual
caseidsourceRoworiginalIDsplitRankplannedRolerolexymean_box-h1/4neighbors_box-h1/4mean_box-h1/2neighbors_box-h1/2mean_box-h1neighbors_box-h1mean_knn-k1neighbors_knn-k1mean_knn-k3neighbors_knn-k3mean_knn-k9neighbors_knn-k9selectedMeanobservedMinusSelected
personperson-row:112833traintrain7548122170/279279352024/6511302351097/602180654811148/333929/99122170/27930722/279
personperson-row:2231114traintrain12481219807/3861544526003/9011802351097/6021806481157034313/99219807/386-34141/386
personperson-row:334225testtest12721219807/3861544526003/9011802351097/6021806481157034313/99219807/38658499/386
personperson-row:4451534traintrain1125069745/1281280350732/6011803351097/60218062501884/331168/3969745/128-37745/128
personperson-row:5561457traintrain12729219807/3861544526003/9011802351097/6021806481157034313/99219807/38661587/386
personperson-row:6673129traintrain12500219807/3861544526003/9011802351097/6021806481157034313/99219807/386-26807/386
personperson-row:7781191validationvalidation18565165824/251753501766/8431686351097/602180694412135/336532/99165824/251-24009/251
personperson-row:8892000testtest14608501766/84316861048627/17911791351097/6021806300153036131/99501766/84310778/843
personperson-row:991067traintrain12425219807/3861544526003/9011802351097/6021806481157034313/99219807/386-55757/386
personperson-row:1010113454traintrain12515219807/3861544526003/9011802351097/6021806481157034313/99219807/386-21017/386

computed-predictions.csv

1806 total rows · first 10

Every training distance and coefficient for the traced source row
casequeryIDcandidatetrainingIndextrainingIDdistancerawWeightcoefficientselected
personperson-row:1box-h1/40person-row:1011/2791
personperson-row:1box-h1/41person-row:25/17000
personperson-row:1box-h1/42person-row:44/1711/2791
personperson-row:1box-h1/43person-row:55/17000
personperson-row:1box-h1/44person-row:65/17000
personperson-row:1box-h1/45person-row:95/17000
personperson-row:1box-h1/46person-row:105/17000
personperson-row:1box-h1/47person-row:112/1711/2791
personperson-row:1box-h1/48person-row:134/1711/2791
personperson-row:1box-h1/49person-row:144/1711/2791

computed-trace-weights.csv

46 total rows · first 10

Descriptive means among actual records with the same input
caserolexrowsmeanObservedYscope
persontest64464descriptive-repeated-native-X;not-known-population-mean
persontest761961/6descriptive-repeated-native-X;not-known-population-mean
persontest8137140/13descriptive-repeated-native-X;not-known-population-mean
persontest9197599/19descriptive-repeated-native-X;not-known-population-mean
persontest10285533/14descriptive-repeated-native-X;not-known-population-mean
persontest112912377/29descriptive-repeated-native-X;not-known-population-mean
persontest1220259345/101descriptive-repeated-native-X;not-known-population-mean
persontest135330307/53descriptive-repeated-native-X;not-known-population-mean
persontest145731307/57descriptive-repeated-native-X;not-known-population-mean
persontest1534519descriptive-repeated-native-X;not-known-population-mean

computed-input-groups.csv

Observed-minus-selected prediction residuals
Observed-minus-selected prediction residuals

Enlarge vector original · SVG · PNG

Identical inputs need not have identical outcomes

Different wages can share a schooling value. Original-order zero-distance ties do not always prioritize the query itself. The descriptive input-group mean is not an identified population conditional mean. Preserve the native fields and planned roles of all 596 missing-required-value exclusions.

180 total rows · first 10

Every candidate, role and evaluation frame across fixed profiles
caseprofiletrainingRowscandidaterolescopeeligibleRowscoveragecompleteCoveragentotalSquaredErrortotalAbsoluteErrorMSEMAE
personprefix-00box-h1/4trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
personprefix-00box-h1/4traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
personprefix-00box-h1/2trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
personprefix-00box-h1/2traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
personprefix-00box-h1trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
personprefix-00box-h1traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
personprefix-00knn-k1trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
personprefix-00knn-k1traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
personprefix-00knn-k3trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
personprefix-00knn-k3traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable

computed-scores.csv

5 total rows · first 5

Complete-validation-coverage selection ledger
caseprofiletrainingRowsdefinedselectedreason
personprefix-000Undefined / not applicableno-positive-complete-validation-candidate
personprefix-30301box-h1validation-full-coverage-minimum
personprefix-1201201box-h1/4validation-full-coverage-minimum
personprefix-6006001box-h1/4validation-full-coverage-minimum
personfull18061box-h1/4validation-full-coverage-minimum

computed-selection.csv

5 total rows · first 5

Training-only ranges and the constant-input rule
caseprofiletrainingRowsoriginnativeMinnativeMaxscaleconstantXscope
personprefix-00Undefined / not applicableUndefined / not applicableUndefined / not applicableUndefined / not applicable0eligible-training-only;constant-scale-one-native-unit
personprefix-30308818100eligible-training-only;constant-scale-one-native-unit
personprefix-1201203318150eligible-training-only;constant-scale-one-native-unit
personprefix-6006003318150eligible-training-only;constant-scale-one-native-unit
personfull18061118170eligible-training-only;constant-scale-one-native-unit

computed-transforms.csv

Six-candidate validation and test scores
Six-candidate validation and test scores

Enlarge vector original · SVG · PNG

15 total rows · first 10

Selected prefix scores and undefined points
caseprofiletrainingRowsroleselectedavailableRowsMSEMAEcommonRowscommonMSEcompleteCoveragescope
personprefix-00trainUndefined / not applicable0Undefined / not applicableUndefined / not applicable0Undefined / not applicable0fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-00validationUndefined / not applicable0Undefined / not applicableUndefined / not applicable0Undefined / not applicable0fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-00testUndefined / not applicable0Undefined / not applicableUndefined / not applicable0Undefined / not applicable0fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-3030trainbox-h1303207549/1007781/50303207549/1001fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-3030validationbox-h1601757758014091/117796003101745/16828597250527299097/39004001fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-3030testbox-h161097808970821/11956008697901/4270061097808970821/11956001fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-120120trainbox-h1/4120≈ 56495.126
Exact source value85172131335719041793834360297711/1507601411216930601494208000
≈ 174.56569
Exact source value21027859903997/120458145600
120≈ 56495.126
Exact source value85172131335719041793834360297711/1507601411216930601494208000
1fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-120120validationbox-h1/4601≈ 54237.659
Exact source value20066737889281175353985827854498523/369977949657728244028357761600
≈ 176.15115
Exact source value875567000950260581/4970543763505320
601≈ 54237.659
Exact source value20066737889281175353985827854498523/369977949657728244028357761600
1fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-120120testbox-h1/4610≈ 72760.931
Exact source value13661533727408577462417285722463379/187759192421975231994424488000
≈ 204.20547
Exact source value386329534162613651/1891866698671950
610≈ 72760.931
Exact source value13661533727408577462417285722463379/187759192421975231994424488000
1fixed-source-prefix;not-independent-resampling-or-population-rate
personprefix-600600trainbox-h1/4600≈ 62780.882
Exact source value6020409339722912569371630575508803992216543/95895583480161735016310610147596880000
≈ 185.2975
Exact source value76984821313170562571359/415466063914119372000
600≈ 62780.882
Exact source value6020409339722912569371630575508803992216543/95895583480161735016310610147596880000
1fixed-source-prefix;not-independent-resampling-or-population-rate

computed-learning-curves.csv

Fixed-prefix curves, not resampling or a theoretical rate
Fixed-prefix curves, not resampling or a theoretical rate

Enlarge vector original · SVG · PNG

13 total rows · first 10

Complete-source and selected-score metrics
casemetricvalueunit
personsourceRows3613rows
personeligibleRows3017rows
persontrainingRows1806rows
personvalidationRows601rows
persontestRows610rows
personexcludedRows596rows
persondistinctEligibleX18input values
personselected-train-MSE≈ 66192.379
Exact source value525724850296619495272798474807333704611035057715847702571545257/7942377356497715241278284902288744359623949608073131622400
(nominal1976cents/hour)^2
personselected-train-MAE≈ 192.45797
Exact source value101796619801092194245619556184247/528929083919842214175823995648
nominal1976cents/hour
personselected-validation-MSE≈ 53677.764
Exact source value8647255993564578916871720623371337522542389372561008085340469/161095681225605010811348938084173385688605491539144755200
(nominal1976cents/hour)^2

computed-study-metrics.csv

Research task

Design a same-610-test-row comparison against an explicit overall-mean baseline. Discuss survey weights, cohort, period currency and missingness, and separately identify what a causal schooling-effect question would require.

Recalculate from factual source inputs

reproduce-local-learning.py · reproduce-local-learning.R · computed-occupancy-experiments.csv

대학원Graduate

기업 사례:통화 실패와 고객 이탈 확률Company case: call failures and churn probabilities

고객3150행의14개 원 필드를 모두 보존합니다. X는 원 Call Failure 횟수,Y는 Churn의0/1입니다. 초기9개월 특징과 이후12개월 끝의 이탈 요약이라는 원 설명을 확인하되 개별 월별 궤적을 만들어 내지 않습니다. 분석 행 번호는 영구 고객 식별자가 아닙니다. 원 Charge Amount 값10인7행도 설명의0–9범위와 다르다는 이유로 삭제하지 않습니다.

학습1890·검증630·시험630행이고 필수값 제외는 없습니다. 학습 실패 횟수의 범위는35라 폭1/4는 원 반경8.75회입니다. 이산 횟수의 동률과 질량점이 많으므로 연속 양의 설계 밀도가 확인되었다고 말하지 않습니다. 검증은 폭1/4상자를 선택합니다.

전체 기업 학습과 선택한 상자 h=1/4
역할분모Brier: 확률²MAE: 확률
검증630≈0.134540742≈0.266836589
시험630≈0.125028643≈0.257068534

원1행은 검증 역할,실패 횟수8,이탈0입니다. 선택 창의1657개 학습 이웃 중264개 이탈을 평균해264/1657≈0.159324를 예측합니다. 이 행의 Brier 기여는(264/1657)²입니다. 결과0을 알고 예측 확률을0으로 다시 바꾸면 검증 절차를 위반합니다.

이탈의 관측 예측 성적과 통화 품질 개선 정책의 인과 효과를 구분합니다. 실패가 많아도 같은 확률을 부여하는 넓은 창이 골라질 수 있고,사업적으로 중요하지만 표에 없는 고객 비용은 다른 의사결정 문제입니다. 실제 기업에 적용하려면 새 기간·다른 고객·지연된 결과의 관측 가능성도 검토해야 합니다.

원1행의264/1657을 재구성하기

customer-row:1은 실패8·이탈0인 검증 행입니다. 범위35의1/4인8.75회 반경 안 학습1657행 중264행이 이탈1이므로 예측264/1657입니다. 입력이 정수여서0부터16회까지 포함될 수 있습니다. trace 표의 전체 학습 계수와 input-groups의 반복 횟수를 연결하세요.

원 결과와 선택 예측 · 역할별 산점도
원 결과와 선택 예측 · 역할별 산점도

벡터 원본 확대 · SVG · PNG

원자료의 모든 필드와 분석 역할

원 변수명은 원문과 같게 보존합니다. 큰 표는10행씩 모든 행을 제공하며 두 언어가 같은 원값을 공유합니다. 원 CSV도 내려받아 대조할 수 있습니다.

전체 3150행 · 처음 10행

원자료 · actual3150-churn-original14-fields-and-local-learning.csv
원자료 행Call FailureComplainsSubscription LengthCharge AmountSeconds of UseFrequency of useFrequency of SMSDistinct Called NumbersAge GroupTariff PlanStatusAgeCustomer ValueChurnderivedXCallFailureCountderivedYNativeChurn해시 순위원 역할분석 역할
18038043707151731130197.640801661validationvalidation
2003903185742122546.035000780testtest
310037024536035924311301536.5201002857traintrain
410038041986613511115240.0201002710testtest
53038023935823311115145.805030496validationvalidation
6110381377582322831130282.2801102915testtest
74038023603928518311301235.960401474traintrain
813037291151211444331130945.4401302639traintrain
9703801377316904431130557.680703114traintrain
107038145158322531130191.920703066validationvalidation

actual3150-churn-original14-fields-and-local-learning.csv

전체 3150행 · 처음 10행

역할·필수값·제외 이유의 모든 원행
사례분석 ID원자료 행해시 순위원 역할분석 역할적격이유
companycustomer-row:111661validationvalidation1eligible
companycustomer-row:22780testtest1eligible
companycustomer-row:332857traintrain1eligible
companycustomer-row:442710testtest1eligible
companycustomer-row:55496validationvalidation1eligible
companycustomer-row:662915testtest1eligible
companycustomer-row:771474traintrain1eligible
companycustomer-row:882639traintrain1eligible
companycustomer-row:993114traintrain1eligible
companycustomer-row:10103066validationvalidation1eligible

computed-eligibility.csv

전체 3150행 · 처음 10행

모든 원행의 여섯 예측과 선택 잔차
사례분석 ID원자료 행원 ID해시 순위원 역할분석 역할원 X원 Ymean_box-h1/4neighbors_box-h1/4mean_box-h1/2neighbors_box-h1/2mean_box-h1neighbors_box-h1mean_knn-k1neighbors_knn-k1mean_knn-k3neighbors_knn-k3mean_knn-k9neighbors_knn-k9선택 예측관측−예측
companycustomer-row:11미정의/해당 없음1661validationvalidation80264/16571657291/1829182943/270189001032/99264/1657-264/1657
companycustomer-row:22미정의/해당 없음780testtest0097/5851170265/1688168843/2701890112/335/9997/585-97/585
companycustomer-row:33미정의/해당 없음2857traintrain100173/12221222292/1849184943/270189001031/39173/1222-173/1222
companycustomer-row:44미정의/해당 없음2710testtest100173/12221222292/1849184943/270189001031/39173/1222-173/1222
companycustomer-row:55미정의/해당 없음496validationvalidation30115/7041408138/877175443/270189001031/39115/704-115/704
companycustomer-row:66미정의/해당 없음2915testtest110165/11561156295/1859185943/2701890010309165/1156-165/1156
companycustomer-row:77미정의/해당 없음1474traintrain40119/7331466279/1772177243/270189001031/99119/733-119/733
companycustomer-row:88미정의/해당 없음2639traintrain130148/10271027297/1873187343/2701890010309148/1027-148/1027
companycustomer-row:99미정의/해당 없음3114traintrain70128/8071614289/1815181543/2701890010309128/807-128/807
companycustomer-row:1010미정의/해당 없음3066validationvalidation70128/8071614289/1815181543/2701890010309128/807-128/807

computed-predictions.csv

전체 1890행 · 처음 10행

지정 원행의 모든 학습 거리·계수
사례질의 ID후보학습 원순서학습 ID정규화 거리원 가중치정규화 계수선택
companycustomer-row:1box-h1/40customer-row:32/3511/16571
companycustomer-row:1box-h1/41customer-row:74/3511/16571
companycustomer-row:1box-h1/42customer-row:81/711/16571
companycustomer-row:1box-h1/43customer-row:91/3511/16571
companycustomer-row:1box-h1/44customer-row:112/3511/16571
companycustomer-row:1box-h1/45customer-row:121/3511/16571
companycustomer-row:1box-h1/46customer-row:1317/35000
companycustomer-row:1box-h1/47customer-row:144/3511/16571
companycustomer-row:1box-h1/48customer-row:151/3511/16571
companycustomer-row:1box-h1/49customer-row:161/711/16571

computed-trace-weights.csv

전체 102행 · 처음 10행

같은 X를 가진 실제 행의 기술 평균
사례분석 역할원 X행 수관측 Y 기술 평균분모·범위
companytest013526/135descriptive-repeated-native-X;not-known-population-mean
companytest1241/12descriptive-repeated-native-X;not-known-population-mean
companytest2251/5descriptive-repeated-native-X;not-known-population-mean
companytest3241/24descriptive-repeated-native-X;not-known-population-mean
companytest4212/21descriptive-repeated-native-X;not-known-population-mean
companytest55512/55descriptive-repeated-native-X;not-known-population-mean
companytest6354/35descriptive-repeated-native-X;not-known-population-mean
companytest7261/13descriptive-repeated-native-X;not-known-population-mean
companytest8376/37descriptive-repeated-native-X;not-known-population-mean
companytest9331/11descriptive-repeated-native-X;not-known-population-mean

computed-input-groups.csv

관측−선택 예측 잔차
관측−선택 예측 잔차

벡터 원본 확대 · SVG · PNG

작은 성적 차이를 과장하지 않기

세 상자 후보의 시험 Brier는 약0.1250~0.1262로 가깝습니다. 이 한 분할에서 작은 차이가 있다는 사실을 반복 검증의 안정성이나 유의한 우월성이라고 바꾸지 않습니다. 인접 행의 의존과 결과 관측 기간도 별도입니다.

전체 180행 · 처음 10행

선언한 고정 학습 설정의 모든 후보·역할·분모
사례고정 설정학습 행 수후보분석 역할분모·범위적격 행 수피복률전체 피복분모totalSquaredErrortotalAbsoluteError평균 제곱 오차평균 절대 오차
companyprefix-00box-h1/4trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
companyprefix-00box-h1/4traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
companyprefix-00box-h1/2trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
companyprefix-00box-h1/2traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
companyprefix-00box-h1trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
companyprefix-00box-h1traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
companyprefix-00knn-k1trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
companyprefix-00knn-k1traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
companyprefix-00knn-k3trainavailable0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음
companyprefix-00knn-k3traincommon0미정의/해당 없음0000미정의/해당 없음미정의/해당 없음

computed-scores.csv

전체 5행 · 처음 5행

검증 전체 피복과 선택 기록
사례고정 설정학습 행 수defined선택이유
companyprefix-000미정의/해당 없음no-positive-complete-validation-candidate
companyprefix-30301knn-k9validation-full-coverage-minimum
companyprefix-1201201box-h1validation-full-coverage-minimum
companyprefix-6006001box-h1/4validation-full-coverage-minimum
companyfull18901box-h1/4validation-full-coverage-minimum

computed-selection.csv

전체 5행 · 처음 5행

학습 전용 범위와 상수 입력 규칙
사례고정 설정학습 행 수학습 최솟값nativeMinnativeMax변환 범위상수 입력분모·범위
companyprefix-00미정의/해당 없음미정의/해당 없음미정의/해당 없음미정의/해당 없음0eligible-training-only;constant-scale-one-native-unit
companyprefix-30300024240eligible-training-only;constant-scale-one-native-unit
companyprefix-1201200030300eligible-training-only;constant-scale-one-native-unit
companyprefix-6006000034340eligible-training-only;constant-scale-one-native-unit
companyfull18900035350eligible-training-only;constant-scale-one-native-unit

computed-transforms.csv

검증과 시험의 여섯 후보 성적
검증과 시험의 여섯 후보 성적

벡터 원본 확대 · SVG · PNG

전체 15행 · 처음 10행

고정 접두별 선택 성적·미정의 구간
사례고정 설정학습 행 수분석 역할선택가능 분모평균 제곱 오차평균 절대 오차공통 분모공통 MSE전체 피복분모·범위
companyprefix-00train미정의/해당 없음0미정의/해당 없음미정의/해당 없음0미정의/해당 없음0fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-00validation미정의/해당 없음0미정의/해당 없음미정의/해당 없음0미정의/해당 없음0fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-00test미정의/해당 없음0미정의/해당 없음미정의/해당 없음0미정의/해당 없음0fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-3030trainknn-k93074/40547/1353074/4051fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-3030validationknn-k96303541/25515838/28356297081/509491fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-3030testknn-k9630229/1701829/283562411/811fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-120120trainbox-h11205/365/181205/361fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-120120validationbox-h163024188897/1796482802629/961263024188897/1796482801fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-120120testbox-h1630≈ 0.12618609
정확 원값9174054653582437/72702582240881250
345229891/1302456750630≈ 0.12618609
정확 원값9174054653582437/72702582240881250
1fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-600600trainbox-h1/4600≈ 0.13405134
정확 원값24931146034911775824993946570321016500469780331149521052124225653610774109618644633189211/185982069443739201085658433635598700933982679821651501557351303739949446266058545476000000
≈ 0.2659201
정확 원값3226298314648218575996884486930682915587/12132585315499983155875405891998896580000
600≈ 0.13405134
정확 원값24931146034911775824993946570321016500469780331149521052124225653610774109618644633189211/185982069443739201085658433635598700933982679821651501557351303739949446266058545476000000
1fixed-source-prefix;not-independent-resampling-or-population-rate

computed-learning-curves.csv

고정 접두 곡선 · 표본 반복이나 이론률 아님
고정 접두 곡선 · 표본 반복이나 이론률 아님

벡터 원본 확대 · SVG · PNG

전체 13행 · 처음 10행

전체 원자료와 선택 성적의 요약
사례지표값단위
companysourceRows3150rows
companyeligibleRows3150rows
companytrainingRows1890rows
companyvalidationRows630rows
companytestRows630rows
companyexcludedRows0rows
companydistinctEligibleX37input values
companyselected-train-MSE≈ 0.1337778
정확 원값68608595949112804366542859528875920916922291427813074639443978434934559615305173848084587885891249034289538003982003812347/512854880421362009955825353261423224562177448298985532421494533051309032258154504631540805356759538517943413112132998400000
squared probability (Brier)
companyselected-train-MAE≈ 0.26607513
정확 원값707995854672436613705326200799606174988699185501206853673771/2660886954830466944480689060569853639155510698341244736775200
probability
companyselected-validation-MSE≈ 0.13454074
정확 원값124855406972673629659942869325344377289583064486115479843924370380550047376405686872126244091726208728990081341369/928011883037663793629248830881698191412440885725370846246692417554930740141861564905499145921677611867235376128000
squared probability (Brier)

computed-study-metrics.csv

연구 과제

새 고객 기간에 통화 품질 정책을 적용한다면 입력 시점과 지연된 이탈 표적을 어떻게 관리할지 적으세요. 관측 예측·비용에 따른 의사결정·개입 효과를 세 질문으로 분리하고,원자료 Charge Amount10의7행을 왜 남겼는지도 설명하세요.

원자료부터 다시 계산하기

reproduce-local-learning.py · reproduce-local-learning.R · computed-occupancy-experiments.csv

Preserve all 3150 customer rows and fourteen native fields. X is the original Call Failure count and Y is native binary Churn. Respect the source’s first-nine-month features and end-of-twelve-month churn description without inventing monthly histories. Analytical row numbers are not permanent customer identifiers. Retain the seven original Charge Amount values ten despite the documentation’s zero-to-nine range.

Roles contain 1890 training, 630 validation and 630 test records, with no required-value exclusions. Training range thirty-five turns normalized bandwidth one quarter into a native radius 8.75 calls. Repeated discrete counts are not evidence of a continuous positive density. Validation selects that box window.

Selected box h one quarter with full company training
RoleDenominatorBrier: squared probabilityMAE: probability
Validation630≈0.134540742≈0.266836589
Test630≈0.125028643≈0.257068534

Source row one is validation, with eight failures and churn zero. Its selected window contains 1657 training records, including 264 churn outcomes, predicting 264 over 1657, about 0.159324. Its Brier contribution is the square of that fraction. Resetting its probability to zero after seeing its outcome would violate evaluation.

Predictive performance is not the causal effect of improving call quality. A wide window may assign similar probabilities across many failure counts; customer costs absent from this table define another decision problem. Applying the model requires examining new periods, customers and delayed outcome availability.

Reconstruct 264 over 1657 on source row one

customer-row:1 is validation with eight failures and churn zero. Radius 8.75, one quarter of range thirty-five, contains 1657 training records including 264 churn outcomes. Integer inputs zero through sixteen may qualify. Reconcile every trace coefficient with repeated-input counts.

Observed outcomes and selected predictions by role
Observed outcomes and selected predictions by role

Enlarge vector original · SVG · PNG

Every native field and analytical role

Native variable names are preserved. Large tables expose every row in ten-row pages, sharing the same values across languages. Original CSVs remain available for comparison.

3150 total rows · first 10

Native source · actual3150-churn-original14-fields-and-local-learning.csv
sourceRowCall FailureComplainsSubscription LengthCharge AmountSeconds of UseFrequency of useFrequency of SMSDistinct Called NumbersAge GroupTariff PlanStatusAgeCustomer ValueChurnderivedXCallFailureCountderivedYNativeChurnsplitRankplannedRolerole
18038043707151731130197.640801661validationvalidation
2003903185742122546.035000780testtest
310037024536035924311301536.5201002857traintrain
410038041986613511115240.0201002710testtest
53038023935823311115145.805030496validationvalidation
6110381377582322831130282.2801102915testtest
74038023603928518311301235.960401474traintrain
813037291151211444331130945.4401302639traintrain
9703801377316904431130557.680703114traintrain
107038145158322531130191.920703066validationvalidation

actual3150-churn-original14-fields-and-local-learning.csv

3150 total rows · first 10

Every record’s role, eligibility and reason
caseidsourceRowsplitRankplannedRoleroleeligiblereason
companycustomer-row:111661validationvalidation1eligible
companycustomer-row:22780testtest1eligible
companycustomer-row:332857traintrain1eligible
companycustomer-row:442710testtest1eligible
companycustomer-row:55496validationvalidation1eligible
companycustomer-row:662915testtest1eligible
companycustomer-row:771474traintrain1eligible
companycustomer-row:882639traintrain1eligible
companycustomer-row:993114traintrain1eligible
companycustomer-row:10103066validationvalidation1eligible

computed-eligibility.csv

3150 total rows · first 10

Every source row: six predictions and selected residual
caseidsourceRoworiginalIDsplitRankplannedRolerolexymean_box-h1/4neighbors_box-h1/4mean_box-h1/2neighbors_box-h1/2mean_box-h1neighbors_box-h1mean_knn-k1neighbors_knn-k1mean_knn-k3neighbors_knn-k3mean_knn-k9neighbors_knn-k9selectedMeanobservedMinusSelected
companycustomer-row:11Undefined / not applicable1661validationvalidation80264/16571657291/1829182943/270189001032/99264/1657-264/1657
companycustomer-row:22Undefined / not applicable780testtest0097/5851170265/1688168843/2701890112/335/9997/585-97/585
companycustomer-row:33Undefined / not applicable2857traintrain100173/12221222292/1849184943/270189001031/39173/1222-173/1222
companycustomer-row:44Undefined / not applicable2710testtest100173/12221222292/1849184943/270189001031/39173/1222-173/1222
companycustomer-row:55Undefined / not applicable496validationvalidation30115/7041408138/877175443/270189001031/39115/704-115/704
companycustomer-row:66Undefined / not applicable2915testtest110165/11561156295/1859185943/2701890010309165/1156-165/1156
companycustomer-row:77Undefined / not applicable1474traintrain40119/7331466279/1772177243/270189001031/99119/733-119/733
companycustomer-row:88Undefined / not applicable2639traintrain130148/10271027297/1873187343/2701890010309148/1027-148/1027
companycustomer-row:99Undefined / not applicable3114traintrain70128/8071614289/1815181543/2701890010309128/807-128/807
companycustomer-row:1010Undefined / not applicable3066validationvalidation70128/8071614289/1815181543/2701890010309128/807-128/807

computed-predictions.csv

1890 total rows · first 10

Every training distance and coefficient for the traced source row
casequeryIDcandidatetrainingIndextrainingIDdistancerawWeightcoefficientselected
companycustomer-row:1box-h1/40customer-row:32/3511/16571
companycustomer-row:1box-h1/41customer-row:74/3511/16571
companycustomer-row:1box-h1/42customer-row:81/711/16571
companycustomer-row:1box-h1/43customer-row:91/3511/16571
companycustomer-row:1box-h1/44customer-row:112/3511/16571
companycustomer-row:1box-h1/45customer-row:121/3511/16571
companycustomer-row:1box-h1/46customer-row:1317/35000
companycustomer-row:1box-h1/47customer-row:144/3511/16571
companycustomer-row:1box-h1/48customer-row:151/3511/16571
companycustomer-row:1box-h1/49customer-row:161/711/16571

computed-trace-weights.csv

102 total rows · first 10

Descriptive means among actual records with the same input
caserolexrowsmeanObservedYscope
companytest013526/135descriptive-repeated-native-X;not-known-population-mean
companytest1241/12descriptive-repeated-native-X;not-known-population-mean
companytest2251/5descriptive-repeated-native-X;not-known-population-mean
companytest3241/24descriptive-repeated-native-X;not-known-population-mean
companytest4212/21descriptive-repeated-native-X;not-known-population-mean
companytest55512/55descriptive-repeated-native-X;not-known-population-mean
companytest6354/35descriptive-repeated-native-X;not-known-population-mean
companytest7261/13descriptive-repeated-native-X;not-known-population-mean
companytest8376/37descriptive-repeated-native-X;not-known-population-mean
companytest9331/11descriptive-repeated-native-X;not-known-population-mean

computed-input-groups.csv

Observed-minus-selected prediction residuals
Observed-minus-selected prediction residuals

Enlarge vector original · SVG · PNG

Do not overstate small score differences

The three box candidates have nearby test Brier scores around 0.1250 to 0.1262. One-split differences do not establish repeated-validation stability or statistically significant superiority. Dependence and outcome timing remain separate concerns.

180 total rows · first 10

Every candidate, role and evaluation frame across fixed profiles
caseprofiletrainingRowscandidaterolescopeeligibleRowscoveragecompleteCoveragentotalSquaredErrortotalAbsoluteErrorMSEMAE
companyprefix-00box-h1/4trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
companyprefix-00box-h1/4traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
companyprefix-00box-h1/2trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
companyprefix-00box-h1/2traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
companyprefix-00box-h1trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
companyprefix-00box-h1traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
companyprefix-00knn-k1trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
companyprefix-00knn-k1traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
companyprefix-00knn-k3trainavailable0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable
companyprefix-00knn-k3traincommon0Undefined / not applicable0000Undefined / not applicableUndefined / not applicable

computed-scores.csv

5 total rows · first 5

Complete-validation-coverage selection ledger
caseprofiletrainingRowsdefinedselectedreason
companyprefix-000Undefined / not applicableno-positive-complete-validation-candidate
companyprefix-30301knn-k9validation-full-coverage-minimum
companyprefix-1201201box-h1validation-full-coverage-minimum
companyprefix-6006001box-h1/4validation-full-coverage-minimum
companyfull18901box-h1/4validation-full-coverage-minimum

computed-selection.csv

5 total rows · first 5

Training-only ranges and the constant-input rule
caseprofiletrainingRowsoriginnativeMinnativeMaxscaleconstantXscope
companyprefix-00Undefined / not applicableUndefined / not applicableUndefined / not applicableUndefined / not applicable0eligible-training-only;constant-scale-one-native-unit
companyprefix-30300024240eligible-training-only;constant-scale-one-native-unit
companyprefix-1201200030300eligible-training-only;constant-scale-one-native-unit
companyprefix-6006000034340eligible-training-only;constant-scale-one-native-unit
companyfull18900035350eligible-training-only;constant-scale-one-native-unit

computed-transforms.csv

Six-candidate validation and test scores
Six-candidate validation and test scores

Enlarge vector original · SVG · PNG

15 total rows · first 10

Selected prefix scores and undefined points
caseprofiletrainingRowsroleselectedavailableRowsMSEMAEcommonRowscommonMSEcompleteCoveragescope
companyprefix-00trainUndefined / not applicable0Undefined / not applicableUndefined / not applicable0Undefined / not applicable0fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-00validationUndefined / not applicable0Undefined / not applicableUndefined / not applicable0Undefined / not applicable0fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-00testUndefined / not applicable0Undefined / not applicableUndefined / not applicable0Undefined / not applicable0fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-3030trainknn-k93074/40547/1353074/4051fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-3030validationknn-k96303541/25515838/28356297081/509491fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-3030testknn-k9630229/1701829/283562411/811fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-120120trainbox-h11205/365/181205/361fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-120120validationbox-h163024188897/1796482802629/961263024188897/1796482801fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-120120testbox-h1630≈ 0.12618609
Exact source value9174054653582437/72702582240881250
345229891/1302456750630≈ 0.12618609
Exact source value9174054653582437/72702582240881250
1fixed-source-prefix;not-independent-resampling-or-population-rate
companyprefix-600600trainbox-h1/4600≈ 0.13405134
Exact source value24931146034911775824993946570321016500469780331149521052124225653610774109618644633189211/185982069443739201085658433635598700933982679821651501557351303739949446266058545476000000
≈ 0.2659201
Exact source value3226298314648218575996884486930682915587/12132585315499983155875405891998896580000
600≈ 0.13405134
Exact source value24931146034911775824993946570321016500469780331149521052124225653610774109618644633189211/185982069443739201085658433635598700933982679821651501557351303739949446266058545476000000
1fixed-source-prefix;not-independent-resampling-or-population-rate

computed-learning-curves.csv

Fixed-prefix curves, not resampling or a theoretical rate
Fixed-prefix curves, not resampling or a theoretical rate

Enlarge vector original · SVG · PNG

13 total rows · first 10

Complete-source and selected-score metrics
casemetricvalueunit
companysourceRows3150rows
companyeligibleRows3150rows
companytrainingRows1890rows
companyvalidationRows630rows
companytestRows630rows
companyexcludedRows0rows
companydistinctEligibleX37input values
companyselected-train-MSE≈ 0.1337778
Exact source value68608595949112804366542859528875920916922291427813074639443978434934559615305173848084587885891249034289538003982003812347/512854880421362009955825353261423224562177448298985532421494533051309032258154504631540805356759538517943413112132998400000
squared probability (Brier)
companyselected-train-MAE≈ 0.26607513
Exact source value707995854672436613705326200799606174988699185501206853673771/2660886954830466944480689060569853639155510698341244736775200
probability
companyselected-validation-MSE≈ 0.13454074
Exact source value124855406972673629659942869325344377289583064486115479843924370380550047376405686872126244091726208728990081341369/928011883037663793629248830881698191412440885725370846246692417554930740141861564905499145921677611867235376128000
squared probability (Brier)

computed-study-metrics.csv

Research task

Design input-time and delayed-churn handling for a new customer period. Separate observational prediction, cost-based decisions and intervention effects. Explain why all seven native Charge Amount ten rows remain.

Recalculate from factual source inputs

reproduce-local-learning.py · reproduce-local-learning.R · computed-occupancy-experiments.csv

대학원Graduate

실습:전체 원행과 학습 접두를 비교하기Lab: compare full source rows and training prefixes

국가·개인·기업 중 하나를 고르고 전체 학습으로 계산합니다. 국가 k=9,개인·기업 box h=1/4 선택을 확인하되,데이터를 바꾸거나 접두 크기를 바꾸면 선택이 달라질 수 있음을 기억하세요. 모든 원행,필수 결측 제외,unused 학습 행과 역할별 적격·available·common 분모를 읽습니다.

국가의 학습 접두를0·3·6·9로 명시해 계산하세요.0이면 학습이 없어 모든 후보와 선택이 미정의입니다.3행에서는 k=9를3으로 몰래 줄이지 않습니다. 전체 크기로 돌아오면 원래의 변환·선택·성적을 재현해야 합니다. 개인·기업은 큰 접두를 쓸 때 전체 원행을 보존하면서 계산 시간이 늘 수 있습니다.

행 ID 추적에서는 선택 모형의 모든 학습 계수와 양의 이웃 수를 확인합니다. 한국은 KOR:2024,개인 원 ID2는person-row:1,기업 원1행은customer-row:1로 분석 식별자의 형식을 원 표에서 확인한 뒤 입력하세요. 입력·계산 중 상태·언어 전환과 무관하게 성적의 단위와 평가 분모를 유지합니다.

Choose a source case and calculate with full training. Verify the default country k-nine and person/company quarter-width box choices, while recognizing that changed data or prefix sizes may change selection. Read all retained records, missing-value exclusions, unused training rows and eligible/available/common denominators.

For countries explicitly try training prefixes zero, three, six and nine. Zero training makes predictions and selection undefined. A prefix of three does not silently turn k nine into three. Restoring full size must reproduce its transform, choice and scores. Larger person/company prefixes can take longer while retaining every source record.

A requested row trace shows every selected-model coefficient and positive-neighbor count. Inspect the actual analytical ID format before tracing Korea KOR:2024, the person with native ID two as person-row:1, or customer-row:1. Maintain native units and evaluation denominators through input, calculation-state and language changes.

대학원Graduate

표·산점도·학습 곡선을 함께 읽는 순서Read tables, scatter plots and learning curves together

먼저 역할별 X,Y 산점도에서 원 단위를 확인합니다. 그다음 후보 예측을 입력 순서대로 연결하되 실제 관측 Y와 선을 분리해서 봅니다. 이산 입력에서는 같은 X의 여러 관측이 겹치므로 표의 행 수와 그림에서 보이는 점 수가 시각적으로 달라질 수 있습니다. 그림의 겹침을 행 삭제라고 읽지 마세요.

다음으로 관측−예측 잔차를 읽고,오차가 큰 원행을 표에서 찾습니다. 역할별 MSE·MAE·피복을 비교한 뒤,마지막에 접두 곡선과 선택 변화를 봅니다. 데이터 기반 곡선에 이론의 n⁻ʳ 선을 겹친다면 어떤 상수와 기준점을 사용했는지 선언해야 하며 그 겹침이 참 수렴률의 추정이라고 주장하지 않습니다.

모든 수치는 원 CSV와 정확 분수에서 계산하고 표시 반올림은 마지막에 합니다. 긴 원분수는 읽기 쉬운 근삿값과 비영·표시 범위 안내를 기본으로 두고 전체 값을 펼쳐 확인합니다. 확대 원그림을 유지하되 작은 모바일 화면에서도 원 단위와 축·범례·미정의 구간을 읽을 수 있어야 합니다.

First inspect the role-colored input/outcome scatter in native units. Then separate candidate prediction curves from observed outcomes. Multiple records can overlap at discrete inputs; fewer visually distinct points do not mean source rows were deleted.

Next inspect observed-minus-predicted residuals and locate large-error records in the table. Compare role-specific MSE, MAE and coverage before reading prefix curves and selection changes. Overlaying a theoretical n-to-minus-r reference requires declaring constants and anchoring; visual agreement is not an estimate of a true convergence rate.

Compute from original tokens and exact fractions, rounding only for display. Show concise approximations with nonzero/range flags and an expansion for complete fractions. Preserve original-figure enlargement while keeping native units, axes, legends and undefined intervals readable on mobile.

대학원 연결Graduate bridge

학자와 본문 영상:예측을 정리의 조건으로 연결하기Scholars and an in-page video: connect predictions to assumptions

Whitney Newey의 MIT 공식 소개는 계량경제학 연구를 연결합니다. 그의 비모수 강의에서 국소 상수와 국소 선형의 차이,경계에서의 편향을 읽으세요. 이 장이 구현한 s≤1의 Hölder 상한과 더 높은 차수의 편향 소거 조건을 서로 바꾸지 않습니다.

Cosma Shalizi의 공식 연구 소개는 확률 과정의 비모수 예측과 인과 추론을 함께 다룹니다. 그의 커널 회귀 노트로 편향·분산·교차검증의 연결을 복습하세요. Charles J. Stone의1977년 “Consistent Nonparametric Regression”은 보편적 비모수 일치성을 탐구할 서지 출발점입니다. 원 정리의 전체 가정은 논문으로 별도 확인해야 하며,앞의 국소 증명이 그 전체 논문을 대신하지 않습니다.

아래 MIT 공식14.310x 영상은 비모수 비교와 회귀를 관측 자료의 질문에 연결합니다. 재생하며 세 번 멈추어 보세요. 어떤 입력 거리로 이웃을 정하는가? 평균 곡선과 개별 결과가 왜 다른가? 관측 관계를 정책의 인과 효과로 부르려면 무엇이 더 필요한가? 영상의 경험적 설명과 본문의 가정별 증명을 함께 대조하세요.

MIT 공식 강의 자료와 설명도 확인할 수 있습니다.

Whitney Newey connects this material with econometrics. Use his MIT nonparametric lecture to distinguish local-constant from local-linear fitting and inspect boundary bias. Do not substitute higher-order cancellation assumptions for this chapter’s Holder exponent at most one.

Cosma Shalizi studies nonparametric prediction of stochastic processes and causal inference. His kernel-regression notes connect bias, variance and cross-validation. Charles J. Stone’s 1977 Consistent Nonparametric Regression is a bibliographic starting point for universal consistency. Consult the original theorem for its full assumptions; our local proof does not replace the paper.

The official MIT 14.310x video connects nonparametric comparisons and regression with observed-data questions. Pause to ask: which input distance defines neighbors, why does a mean curve differ from individual outcomes, and what more is needed to interpret a relationship as a causal policy effect? Compare the empirical explanation with the assumption-specific proof here.

Official MIT lecture materials and description provide the source.

대학원Graduate

원행에서 결과까지 다시 만드는 읽기와 실습Read and reproduce the path from source rows to results

재현의 첫 단계는 반올림된 표를 다시 입력하는 일이 아니라 원 CSV의 문자열·역할·필수값을 읽는 일입니다. 개인은 원 조사 ID와 분석 행 번호,기업은 원행 번호를 구분합니다. 학습 값으로만 변환을 만들고,여섯 후보의 모든 예측을 계산한 다음 검증 전체 피복 조건으로 선택하세요.

공개 Python과 R 코드는 원자료 CSV만 입력으로 받아 역할·변환·예측·성적·고정 접두 비교를 다시 만듭니다. 웹에서 받은 모형 결과를 정답으로 재입력하는 경로와 구분합니다. Python의 정확 분수와 R의 수치 근사는 산술 범위가 다르므로,원 토큰·동률·분모·정의 여부를 먼저 맞춘 뒤 근사 비교를 합니다.

읽기는 Newey의 비모수 강의에서 조건부 편향·분산과 경계를, Shalizi의 커널 회귀 노트에서 폭 선택과 오차를 대조합니다. 대학원 확장은 Stone(1977)의 정확한 정리·적분 가능성 조건을 따로 읽고 이 장의 국소 충분 조건과 비교하는 것입니다.

Reproduction begins with original CSV tokens, roles and eligibility, not retyped rounded tables. Distinguish native survey IDs from analytical rows and preserve customer row numbers. Fit transforms on training only, calculate every declared candidate and select under complete-validation coverage.

Public Python and R programs read only factual CSV inputs to reconstruct roles, transformations, predictions, scores and fixed prefixes. They do not treat web model outputs as new ground truth. Exact Python fractions and numerical R approximations have different arithmetic scope: reconcile tokens, ties, denominators and defined status before comparing approximations.

Compare conditional bias, variance and boundaries in Newey’s nonparametric lecture with bandwidth choice in Shalizi’s kernel-regression notes. For graduate extension read the exact theorem and integrability assumptions in Stone (1977), comparing them with our local sufficient conditions.

대학원Graduate

고차원·희소성·선택 후 추론으로 이어가기Continue to high dimensions, sparsity and post-selection inference

국소 학습은 가까운 관측을 평균한다는 간단한 생각에서 출발했지만,좋은 추정을 위해서는 함수의 변화·설계 질량·잡음 의존성·폭 일정·평가 절차가 함께 필요했습니다. 표본이 많아도 입력 차원이 크면 모든 방향의 이웃을 채우기 어렵다는 문제가 남습니다. 다음 장은 구조를 가정해 필요한 차원을 줄이는 희소성과 그 선택의 대가로 이어갑니다.

특징을 적게 고르면 오차 상한의 유효 차원을 줄일 수 있지만,버린 특징이 목표에 영향을 주면 근사 편향이 생깁니다. 수많은 후보를 보고 골랐다면 선택을 무시한 신뢰구간도 그대로 정당화되지 않습니다. 예측의 일치성,계수의 식별,선택 후 불확실성은 각각 다른 질문입니다.

마지막으로 직접 설명해 보세요. 왜 h는 줄이고 nhᵈ는 늘려야 하는가? 고정 공분산의 분산 공식이 검증 선택 전체와 다른 이유는? available 성적0이 좋은 보유 성적을 뜻하지 않는 이유는? 실제 세 사례가 무엇을 보여 주며 어떤 모집단 양은 알려주지 않는가? 숫자·표·그림과 가정의 문장을 같이 설명할 수 있으면 다음 장으로 넘어갈 준비가 되었습니다.

Local learning began with averaging nearby records, yet reliable estimation also required function regularity, design mass, noise dependence, a bandwidth schedule and an evaluation protocol. Even large samples struggle to populate neighborhoods in many directions. Next, sparsity asks whether structure reduces the required dimension and what selection costs.

Selecting fewer inputs may reduce effective dimension, but omitting relevant structure creates approximation bias. Searching many candidates also prevents automatically treating post-selection intervals as if the model were fixed. Predictive consistency, coefficient identification and post-selection uncertainty answer different questions.

Explain why h must shrink while n h^d grows, why a fixed-covariance formula differs from analyzing an entire validation-selection procedure, why available error zero need not imply good holdout performance, and which unknown population quantities remain unknown in all three factual cases. Connect numbers and figures with the assumption statements before continuing.

영상·학자·함께 읽기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: nonparametric comparisons and regressions

MIT OpenCourseWare · 14.310x Spring2023

비모수 곡선과 개별 관측·인과 질문을 구분합니다.Distinguish nonparametric curves, individual outcomes and causal questions.

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

보고 읽은 뒤 답하기Respond after watching/reading 평균 곡선이 정책 효과인가요?Is the mean curve a policy effect?

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

추가 식별 조건 없이는 아닙니다.Not without additional identifying assumptions.

Newey · 비모수 추정 강의Newey: nonparametric estimation

MIT14.385 · selectedslides4–14

국소 상수·선형과 경계·조건부 오차를 비교합니다.Compare local-constant/linear fits, boundaries and conditional error.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 고차 편향 소거를 언제 쓸 수 있나요?When may a higher-order bias cancellation be used?

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

그에 맞는 매끄러움·경계·설계 조건이 필요합니다.It needs its corresponding smoothness, boundary and design conditions.

Shalizi · 커널 회귀Shalizi: kernel regression

CMU · selectedintroduction,pp6–8/11–17

편향·분산·폭 선택의 연결을 읽습니다.Read the connection among bias, variance and bandwidth.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 작은 창이면 항상 좋은가요?Is a smaller window always better?

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

이웃 수·분산·빈 창도 함께 보아야 합니다.Also examine count, variance and empty windows.

Stone(1977) · 일치 비모수 회귀Stone(1977): Consistent Nonparametric Regression

The Annals of Statistics · bibliographic/abstractverificationonly

국소 충분 조건과 보편 적분 정리를 구분해 확장합니다.Extend by distinguishing local sufficient conditions from universal integrated results.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 앞의 국소 증명이 원 논문 전체인가요?Does our local proof reproduce the complete original paper?

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

아닙니다. 원 정리의 전체 가정은 별도 읽기 과제입니다.No. Read the original full theorem and assumptions separately.

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

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

1. 세 결과의 평균The mean of three outcomes

결과 0,2,4의 전체 평균을 구하세요.

Find the global mean of outcomes zero, two and four.

풀이와 확인할 이유Solution and explanation
0+2+43=2\frac{0+2+4}{3}=2

합 6을 세 관측으로 나눕니다. 입력 X의 평균과 결과 Y의 평균을 섞지 않습니다.

0+2+43=2\frac{0+2+4}{3}=2

Divide total outcome six by three observations. Keep the mean of X distinct from the mean of Y.

2. 질의 1.5의 이웃Neighbors of query 1.5

원 단위 반경 0.5에서 (0,0),(1,2),(2,4) 중 질의 1.5의 이웃과 예측은?

Using native radius one half, find neighbors of query 1.5 among (0,0), (1,2), (2,4) and predict.

풀이와 확인할 이유Solution and explanation
∣1−1.5∣=∣2−1.5∣=0.5,m^(1.5)=2+42=3|1-1.5|=|2-1.5|=0.5,\qquad\widehat m(1.5)=\frac{2+4}{2}=3

입력 0의 거리는 1.5라 제외합니다. 상자 규칙은 경계 거리 0.5도 포함합니다.

∣1−1.5∣=∣2−1.5∣=0.5,m^(1.5)=2+42=3|1-1.5|=|2-1.5|=0.5,\qquad\widehat m(1.5)=\frac{2+4}{2}=3

Input zero is farther away, at distance 1.5. The box includes boundary distance one half.

3. 최적 평균도 잡음을 없애지 못한다An optimal mean does not eliminate noise

조건부 평균 2,분산 1인 Y에 대해 예측 a=2와 a=0의 조건부 MSE를 구하세요.

For conditional mean two and variance one, compare conditional MSE at predictions a=2 and a=0.

풀이와 확인할 이유Solution and explanation
E[(Y−a)2∣X=x]=(2−a)2+1,a=2: 1,a=0: 5\mathbb E[(Y-a)^2\mid X=x]=(2-a)^2+1,\qquad a=2:\ 1,\quad a=0:\ 5

조건부 평균을 정확히 알아도 새 Y의 잡음 분산 1은 남습니다. m 자체를 추정하는 오차와 구별합니다.

E[(Y−a)2∣X=x]=(2−a)2+1,a=2: 1,a=0: 5\mathbb E[(Y-a)^2\mid X=x]=(2-a)^2+1,\qquad a=2:\ 1,\quad a=0:\ 5

Knowing the conditional mean still leaves variance one in a new outcome. Distinguish this from error estimating the mean itself.

4. 변환 반경의 원 단위Translate a normalized bandwidth

훈련 최소0,최대2입니다. 변환 h=1/4는 원 X의 어떤 반경인가요? 질의1의 상자 이웃은?

Training minimum zero and maximum two give which native radius for normalized h=1/4? Find box neighbors of query one.

풀이와 확인할 이유Solution and explanation
native radius=14(2−0)=12\text{native radius}=\frac14(2-0)=\frac12

거리 0인 가운데 입력 1만 포함합니다. 양끝 거리 1은 반경 1/2보다 커 제외됩니다. 예측은 가운데 결과 2입니다.

native radius=14(2−0)=12\text{native radius}=\frac14(2-0)=\frac12

Only the middle input one is included. Endpoints at native distance one are outside radius one half. Predict its outcome two.

5. 같은 평균과 다른 분산Equal means with different variance

질의1,정규화h=1/2에서 상자와 삼각형 계수 및 유효 관측 수를 구하세요.

At query one and normalized bandwidth one half, calculate box and triangular coefficients and effective sizes.

풀이와 확인할 이유Solution and explanation
abox=(1/3,1/3,1/3),neff=13(1/3)2=3;atriangle=(0,1,0),neff=1a^{\rm box}=(1/3,1/3,1/3),\quad n_{\rm eff}=\frac1{3(1/3)^2}=3;\qquad a^{\rm triangle}=(0,1,0),\quad n_{\rm eff}=1

두 평균은 모두 2입니다. 같은 조건부 분산 σ²의 무상관 잡음이라면 분산은 각각 σ²/3,σ²입니다. 공분산이 있으면 이 간단한 식을 다시 점검해야 합니다.

abox=(1/3,1/3,1/3),neff=13(1/3)2=3;atriangle=(0,1,0),neff=1a^{\rm box}=(1/3,1/3,1/3),\quad n_{\rm eff}=\frac1{3(1/3)^2}=3;\qquad a^{\rm triangle}=(0,1,0),\quad n_{\rm eff}=1

Both means equal two. With conditionally uncorrelated noises of common variance sigma squared, variances are sigma squared over three and sigma squared. Nonzero covariance changes that calculation.

6. 정확히 두 이웃Exactly two neighbors

원 순서 a=(0,0),b=(1,2),c=(2,4),질의1에서 k=2 예측을 구하세요.

In original order a=(0,0), b=(1,2), c=(2,4), calculate k=2 prediction at query one.

풀이와 확인할 이유Solution and explanation
selected=(b,a),m^=2+02=1\text{selected}=(b,a),\qquad\widehat m=\frac{2+0}{2}=1

b가 먼저이고 a,c의 같은 거리에서는 원 입력 순서가 빠른 a를 고릅니다. 경계 동률을 전부 포함하지 않습니다.

selected=(b,a),m^=2+02=1\text{selected}=(b,a),\qquad\widehat m=\frac{2+0}{2}=1

Select b first, then a before c by original input index. The rule does not include every cutoff tie.

7. 동률과 순서 바꾸기Changing order under a tie

앞 표의 순서를 c,b,a로 바꾸면 같은 k=2 예측은? 왜 기록 순서를 남기나요?

Reorder the preceding table to c,b,a. What is the k=2 prediction, and why preserve record order?

풀이와 확인할 이유Solution and explanation
selected=(b,c),m^=2+42=3\text{selected}=(b,c),\qquad\widehat m=\frac{2+4}{2}=3

거리들은 같지만 동률 규칙에서 c가 앞섭니다. 재현하려면 원순서가 필요합니다. 정답을 보고 더 유리한 순서를 고르면 별도 선택 절차가 생깁니다.

selected=(b,c),m^=2+42=3\text{selected}=(b,c),\qquad\widehat m=\frac{2+4}{2}=3

Distances are unchanged, but c now precedes a in the tie. Reproduction needs ordering. Choosing a more favorable order after viewing outcomes creates another selection procedure.

8. 0인가 미정의인가Zero or undefined?

양의 가중치 이웃 두 명의 Y가 모두0인 경우와 이웃이0명인 경우의 평균을 구별하세요.

Distinguish a mean of two positively weighted zero outcomes from the case of no positive-weight neighbors.

풀이와 확인할 이유Solution and explanation
w1⋅0+w2⋅0w1+w2=0(w1+w2>0),00 is undefined\frac{w_1\cdot0+w_2\cdot0}{w_1+w_2}=0\quad(w_1+w_2>0),\qquad\frac00\text{ is undefined}

앞은 실제로 정의된 0입니다. 뒤는 추정량의 분모가 없어 값을 정할 수 없습니다. 평가에서는 미채점과 실제 0손실을 따로 셉니다.

w1⋅0+w2⋅0w1+w2=0(w1+w2>0),00 is undefined\frac{w_1\cdot0+w_2\cdot0}{w_1+w_2}=0\quad(w_1+w_2>0),\qquad\frac00\text{ is undefined}

The first is a defined zero. The second has no averaging denominator. Evaluation distinguishes unscored outcomes from genuine zero loss.

9. 상수 입력의 척도Scaling constant training inputs

훈련 X는2,2이고 Y는1,3입니다. 기본 척도와 질의2의 h=0.1상자 예측은? 질의2.2는?

Training inputs are two and two, outcomes one and three. Find the default scale and box prediction with h=0.1 at queries two and 2.2.

풀이와 확인할 이유Solution and explanation
s=1 native X unit,m^(2)=1+32=2s=1\text{ native X unit},\qquad\widehat m(2)=\frac{1+3}{2}=2

범위0을 대신하는 척도는 원 X의 1단위입니다. 질의2.2의 거리는0.2로 반경0.1밖이라 미정의입니다. 질의를2로 잘라 넣지 않습니다.

s=1 native X unit,m^(2)=1+32=2s=1\text{ native X unit},\qquad\widehat m(2)=\frac{1+3}{2}=2

Use one native input unit when the training range is zero. Query 2.2 is at distance 0.2, outside radius 0.1, so its local mean is undefined. Do not clip it to two.

10. 실제 임금 평균의 해석Interpreting an actual wage mean

교육이 비슷한 사람들의 원 wage76 평균이 600이라면 단위는 무엇인가요? 교육을 한 해 더 주면 그 사람 임금이 600이 된다는 뜻인가요?

A local mean of raw wage76 among people with similar schooling equals 600. State its units and whether it predicts the causal effect of an extra year of education.

풀이와 확인할 이유Solution and explanation

단위는 1976년 원 명목 센트/시간입니다. 600은 주어진 입력 주변 관측의 가중 평균이지, 같은 사람에게 교육을 추가한 반사실 임금이 아닙니다. 원 조사 구조·능력·지역·선택과 현재 물가 환산은 각각 별도 정보와 설계가 필요합니다.

The unit is nominal cents per hour in the 1976 source. Six hundred is a weighted mean of neighboring observed outcomes, not the same person’s counterfactual wage after an educational intervention. Survey design, ability, region, selection and current-price conversion require additional information.

11. 조건부 평균의 선형성Linearity of the conditional mean

계수1/2씩,주어진 평균1과3,목표2의 평균과 편향을 구하세요.

With half coefficients, means one and three and target two, compute estimator mean and bias.

풀이와 확인할 이유Solution and explanation
E[m^∣X]=12(1)+12(3)=2,b=2−2=0\mathbb E[\widehat m\mid X]=\frac12(1)+\frac12(3)=2,\qquad b=2-2=0

계수는 고정 또는 X만의 함수라는 조건입니다. 정답에 따른 선택의 평균을 이 식으로 바꾸지 않습니다.

E[m^∣X]=12(1)+12(3)=2,b=2−2=0\mathbb E[\widehat m\mid X]=\frac12(1)+\frac12(3)=2,\qquad b=2-2=0

Coefficients are fixed or X-only. This does not replace the expectation of an outcome-selected estimator.

12. 목표를 바꾸면 편향이 바뀐다Changing the target changes bias

앞 평균에서 목표를0,잡음 분산을1씩·공분산0으로 두면 편향²와 분산,MSE는?

Set the preceding target to zero, with unit noise variances and zero cross-covariance. Find squared bias, variance and MSE.

풀이와 확인할 이유Solution and explanation
b2=22=4,V=(1/2)2+(1/2)2=12,MSE⁡=92b^2=2^2=4,\qquad V=(1/2)^2+(1/2)^2=\frac12,\qquad\operatorname{MSE}=\frac92

관측 결과 자체의 잡음과 목표 평균에서 떨어진 편향을 나누어 계산합니다.

b2=22=4,V=(1/2)2+(1/2)2=12,MSE⁡=92b^2=2^2=4,\qquad V=(1/2)^2+(1/2)^2=\frac12,\qquad\operatorname{MSE}=\frac92

Separate variance around the estimator’s mean from squared bias relative to the target.

13. 세 관측과 한 공통 충격Three observations and one common shock

계수1/3씩이고 잡음 분산은3입니다. 무상관인 경우와 모두 같은 잡음인 경우의 평균 분산은?

Three equal coefficients face noise variance three. Compare uncorrelated noises with one identical shared noise.

풀이와 확인할 이유Solution and explanation
Vuncorrelated=3(1/3)2⋅3=1,Vshared=3(1/3+1/3+1/3)2=3V_{\rm uncorrelated}=3(1/3)^2\cdot3=1,\qquad V_{\rm shared}=3(1/3+1/3+1/3)^2=3

공통 잡음이면 평균을 내도 충격이 줄지 않습니다. 주변 분산이 같다는 정보만으로 앞의 결과를 선택할 수 없습니다.

Vuncorrelated=3(1/3)2⋅3=1,Vshared=3(1/3+1/3+1/3)2=3V_{\rm uncorrelated}=3(1/3)^2\cdot3=1,\qquad V_{\rm shared}=3(1/3+1/3+1/3)^2=3

Averaging does not reduce an identical shared shock. Equal marginal variances alone do not justify the uncorrelated formula.

14. 가중치3대1의 유효 수Effective size for three-to-one weights

원 가중치3,1의 계수와 유효 관측 수를 구하세요.

Find normalized coefficients and effective size for raw weights three and one.

풀이와 확인할 이유Solution and explanation
a=(3/4,1/4),∑iai2=1016=58,neff=85a=(3/4,1/4),\qquad\sum_i a_i^2=\frac{10}{16}=\frac58,\qquad n_{\rm eff}=\frac85

물리적 관측은 두 개지만 같은 분산의 무상관 잡음에서의 분산 대응 수는 1.6입니다.

a=(3/4,1/4),∑iai2=1016=58,neff=85a=(3/4,1/4),\qquad\sum_i a_i^2=\frac{10}{16}=\frac58,\qquad n_{\rm eff}=\frac85

There are two physical observations, but the variance-equivalent size under equal uncorrelated noise is 1.6.

15. 양의 공분산 더하기Adding positive covariance

같은 계수1/2,분산1씩,공분산1/2에서 평균 분산을 구하세요.

Use half coefficients, unit variances and covariance one half. Calculate estimator variance.

풀이와 확인할 이유Solution and explanation
V=14+14+2(12)(12)(12)=34V=\frac14+\frac14+2\left(\frac12\right)\left(\frac12\right)\left(\frac12\right)=\frac34

대각항만 더한 1/2보다 큽니다. 이 행렬은 첫 Schur 피벗1, 다음 피벗3/4가 양수인 양의 정부호 행렬입니다.

V=14+14+2(12)(12)(12)=34V=\frac14+\frac14+2\left(\frac12\right)\left(\frac12\right)\left(\frac12\right)=\frac34

This exceeds the diagonal-only result one half. The covariance is positive definite with Schur pivots one and three quarters.

16. 새 결과의 MSEMSE for a new outcome

평균 추정 MSE1/2,새 평균0잡음 분산1,훈련 오차와 새 잡음 무상관이면 예측 MSE는?

Mean-estimation MSE is one half, with new mean-zero noise variance one, uncorrelated with training estimation error. Find prediction MSE.

풀이와 확인할 이유Solution and explanation
MSE⁡outcome=12+1=32\operatorname{MSE}_{\rm outcome}=\frac12+1=\frac32

추가한 1은 미래 결과의 잡음입니다. 조건부 평균의 추정 분산으로 다시 이름 붙이지 않습니다.

MSE⁡outcome=12+1=32\operatorname{MSE}_{\rm outcome}=\frac12+1=\frac32

The extra one is future outcome noise. It is not an additional variance component of mean estimation.

17. 미래에도 같은 충격이 오면When the same shock reaches the future

목표0,추정량 U,미래 결과 U이고 E[U]=0,Var(U)=1입니다. 평균 추정 MSE와 결과 예측 MSE는?

Target is zero, estimator U and future outcome U, with mean-zero U of variance one. Compare mean-estimation and outcome-prediction MSE.

풀이와 확인할 이유Solution and explanation
E[(U−0)2]=1,E[(U−U)2]=0,1+1−2Cov⁡(U,U)=0\mathbb E[(U-0)^2]=1,\qquad\mathbb E[(U-U)^2]=0,\qquad1+1-2\operatorname{Cov}(U,U)=0

새 잡음과 훈련 오차가 무상관이라는 전제가 실패한 경우입니다. 분산만 더하는 공식을 적용하지 않습니다.

E[(U−0)2]=1,E[(U−U)2]=0,1+1−2Cov⁡(U,U)=0\mathbb E[(U-0)^2]=1,\qquad\mathbb E[(U-U)^2]=0,\qquad1+1-2\operatorname{Cov}(U,U)=0

The assumption of zero covariance between new noise and training error fails. Do not apply the simple variance-addition formula.

18. 큰 정답 선택의 편향Bias from selecting the larger outcome

15절의 알려진 두 독립 결과에서 최댓값의 평균·분산·목표0의 MSE를 구하세요.

For the two declared independent outcomes in Section 15, calculate maximum mean, variance and MSE for target zero.

풀이와 확인할 이유Solution and explanation
P(max⁡=−1)=49,P(max⁡=2)=59,Emax⁡=23,Emax⁡2=83,Var⁡(max⁡)=83−49=209P(\max=-1)=\frac49,\quad P(\max=2)=\frac59,\quad E\max=\frac23,\quad E\max^2=\frac83,\quad\operatorname{Var}(\max)=\frac83-\frac49=\frac{20}{9}

제곱 편향4/9와 분산20/9를 더하면 MSE8/3입니다. 고정한 한 관측의 평균0·분산2와 다릅니다.

P(max⁡=−1)=49,P(max⁡=2)=59,Emax⁡=23,Emax⁡2=83,Var⁡(max⁡)=83−49=209P(\max=-1)=\frac49,\quad P(\max=2)=\frac59,\quad E\max=\frac23,\quad E\max^2=\frac83,\quad\operatorname{Var}(\max)=\frac83-\frac49=\frac{20}{9}

Squared bias four ninths plus variance twenty ninths gives MSE eight thirds. A single observation fixed before seeing outcomes instead has mean zero and variance two.

19. 공분산이 될 수 없는 행렬A matrix that cannot be covariance

Σ=[[0,1],[1,0]]에 v=(1,−1)을 넣어 양의 준정부호가 아님을 보이세요.

Use v=(1,−1) to show Sigma=[[0,1],[1,0]] is not positive semidefinite.

풀이와 확인할 이유Solution and explanation
v⊤Σv=(1,−1)(−11)=−2<0v^\top\Sigma v=(1,-1)\begin{pmatrix}-1\\1\end{pmatrix}=-2<0

이 선형 결합의 분산이 음수일 수 없어 공분산으로 쓸 수 없습니다. 대각 원소가 0 이상이라는 조건만으로는 충분하지 않습니다.

v⊤Σv=(1,−1)(−11)=−2<0v^\top\Sigma v=(1,-1)\begin{pmatrix}-1\\1\end{pmatrix}=-2<0

A linear combination cannot have negative variance. Nonnegative diagonal entries alone do not suffice.

20. 관측 성적과 알려지지 않은 평균Observed performance and unknown means

실제 임금의 검증 MSE가 작으면 그 국소 평균의 조건부 편향이0이고 잡음이 독립이라고 결론 낼 수 있나요? 필요한 정보를 구분하세요.

Does low validation MSE on actual wages establish zero conditional bias and independent noise? Distinguish the required information.

풀이와 확인할 이유Solution and explanation

아닙니다. 검증 MSE는 정해진 원행의 관측 오차 평균입니다. 조건부 편향에는 참된 m과 반복 추정의 평균, 분산에는 조건부 잡음 공분산과 계수의 정보 의존성이 필요합니다. 원 조사 설계와 표본 의존성도 별도입니다. 유한 표 성적과 이 가정들을 함께 적어야 합니다.

No. Validation MSE averages realized errors over declared records. Conditional bias requires the true regression mean and the estimator’s repeated-sample expectation; variance requires conditional noise covariance and how coefficients depend on information. Survey design and sample dependence are separate. Report the finite score alongside those assumptions.

21. 두 번 뽑는 이웃 수Neighborhood count in two draws

독립인 두 X가 창에 들어갈 확률이 각각1/2입니다. N의 세 질량과 기대값을 구하세요.

Two independent inputs each fall inside a window with probability one half. Find all count masses and the expectation.

풀이와 확인할 이유Solution and explanation
P(N=0)=14,P(N=1)=2⋅12⋅12=12,P(N=2)=14,E[N]=1P(N=0)=\frac14,\quad P(N=1)=2\cdot\frac12\cdot\frac12=\frac12,\quad P(N=2)=\frac14,\quad E[N]=1

질량의 합은1입니다. 기대값1은 N이 항상1이라는 뜻이 아닙니다.

P(N=0)=14,P(N=1)=2⋅12⋅12=12,P(N=2)=14,E[N]=1P(N=0)=\frac14,\quad P(N=1)=2\cdot\frac12\cdot\frac12=\frac12,\quad P(N=2)=\frac14,\quad E[N]=1

The masses sum to one. Expected count one does not mean count one on every draw.

22. 조건을 걸기 전과 후의 역수Restricted and conditional inverse counts

앞 문제에서 E[1/N;N>0]와 E[1/N|N>0]를 각각 구하세요.

For the preceding count law, find the restricted and positive-conditional reciprocal expectations.

풀이와 확인할 이유Solution and explanation
E[1/N;N>0]=12+12⋅14=58,E[1/N∣N>0]=5/83/4=56E[1/N;N>0]=\frac12+\frac12\cdot\frac14=\frac58,\qquad E[1/N\mid N>0]=\frac{5/8}{3/4}=\frac56

N=0에서1/0을 평가하지 않았습니다. 조건부 값은 양수 사건 질량으로 한 번 더 나눕니다.

E[1/N;N>0]=12+12⋅14=58,E[1/N∣N>0]=5/83/4=56E[1/N;N>0]=\frac12+\frac12\cdot\frac14=\frac58,\qquad E[1/N\mid N>0]=\frac{5/8}{3/4}=\frac56

No division by zero was performed. Conditioning divides by the positive-event probability.

23. N에1을 더하면Adding one to the count

n=2,p=1/2에서 E[1/(N+1)]를 직접 합하고 항등식과 비교하세요.

For n two and p one half, sum E[1/(N+1)] directly and compare the identity.

풀이와 확인할 이유Solution and explanation
14+12⋅12+13⋅14=712,1−(1/2)33(1/2)=712\frac14+\frac12\cdot\frac12+\frac13\cdot\frac14=\frac7{12},\qquad\frac{1-(1/2)^3}{3(1/2)}=\frac7{12}

첫 항1/4는 N=0의 기여입니다. 따라서 이 기대값은 양수 사건 역수 합5/8과 다릅니다.

14+12⋅12+13⋅14=712,1−(1/2)33(1/2)=712\frac14+\frac12\cdot\frac12+\frac13\cdot\frac14=\frac7{12},\qquad\frac{1-(1/2)^3}{3(1/2)}=\frac7{12}

The first quarter is the zero-count contribution. This differs from the restricted reciprocal five eighths.

24. 전체 MSE에 빈 창 넣기Include emptiness in total MSE

n=2,p=1/2,상수 평균μ=2,무상관 잡음 분산1,빈 창 대체값0입니다. 전체 MSE를 구하세요.

Use n two, p one half, constant mean two, uncorrelated unit-variance noise and fallback zero on emptiness. Find whole-procedure MSE.

풀이와 확인할 이유Solution and explanation
MSE⁡=1⋅58+22⋅14=138\operatorname{MSE}=1\cdot\frac58+2^2\cdot\frac14=\frac{13}{8}

양수 창 평균만 보면 빈 창에서 생기는1을 빠뜨립니다. 이 규칙은 실제 미정의 예측과 별도로 선언한 것입니다.

MSE⁡=1⋅58+22⋅14=138\operatorname{MSE}=1\cdot\frac58+2^2\cdot\frac14=\frac{13}{8}

Scoring only nonempty windows omits the empty contribution one. The fallback rule is explicitly separate from undefined factual predictions.

25. 질량0과 표본0Zero mass and zero sample size

μ=3,잡음 분산4일 때 p=0 또는 n=0인 0대체 평균의 MSE와 양수 조건부 역수를 구하세요.

With mean three and noise variance four, find fallback-zero MSE and the positive-conditional inverse when p zero or n zero.

풀이와 확인할 이유Solution and explanation
P(N=0)=1,E[1/N;N>0]=0,MSE⁡=32=9P(N=0)=1,\qquad E[1/N;N>0]=0,\qquad\operatorname{MSE}=3^2=9

양수 사건의 확률이0이므로 그 사건에 조건을 건 역수는 미정의입니다. 이를0으로 채우지 않습니다.

P(N=0)=1,E[1/N;N>0]=0,MSE⁡=32=9P(N=0)=1,\qquad E[1/N;N>0]=0,\qquad\operatorname{MSE}=3^2=9

The positive event has probability zero, so its conditional reciprocal is undefined rather than zero.

26. 역수 상한을 검산하기Check the reciprocal bound

n=2,p=1/2에서 정확 역수 합·중간 상한·마지막 상한을 차례로 쓰세요.

For n two and p one half, list the exact restricted reciprocal, intermediate bound and final bound.

풀이와 확인할 이유Solution and explanation
58≤2⋅712=76≤23(1/2)=43\frac58\le2\cdot\frac7{12}=\frac76\le\frac2{3(1/2)}=\frac43

전부 올바르지만 느슨한 부등식입니다. 실제 확률 또는 정확 기대값 대신 마지막 숫자를 표기하지 않습니다.

58≤2⋅712=76≤23(1/2)=43\frac58\le2\cdot\frac7{12}=\frac76\le\frac2{3(1/2)}=\frac43

All inequalities hold but are loose. The final number is not the exact probability or expectation.

27. 얼마나 많은 예상 이웃이 필요한가How much expected occupancy is sufficient

빈 창 확률을 e⁻ⁿᵖ로 상한할 때 np≥log100이면 얻는 보장을 적으세요.

Using the exponential empty-probability bound, what does np at least log one hundred guarantee?

풀이와 확인할 이유Solution and explanation
P(N=0)≤e−np≤e−log⁡100=1100P(N=0)\le e^{-np}\le e^{-\log100}=\frac1{100}

충분 조건입니다. 특정 설계의 정확 필요 조건이라고 주장하지 않으며, p가 실제로 알려져 있어야 이 수치 보장을 적용할 수 있습니다.

P(N=0)≤e−np≤e−log⁡100=1100P(N=0)\le e^{-np}\le e^{-\log100}=\frac1{100}

This is sufficient, not an exact necessary condition for every design. Applying the numerical guarantee requires knowing the relevant population mass.

28. Hölder 편향 상한A Holder bias bound

모든 양의 가중치 이웃이 거리h=1/4 안이고 L=2,s=1/2입니다. 절대 편향과 제곱 편향의 상한은?

All positive-weight neighbors lie within radius one quarter, with L two and s one half. Bound absolute and squared bias.

풀이와 확인할 이유Solution and explanation
∣b∣≤2(1/4)1/2=1,b2≤1|b|\le2(1/4)^{1/2}=1,\qquad b^2\le1

상한1을 실제 편향1로 바꾸지 않습니다. 계수의 비음성과 합1도 이 논증의 전제입니다.

∣b∣≤2(1/4)1/2=1,b2≤1|b|\le2(1/4)^{1/2}=1,\qquad b^2\le1

The upper bound is not the actual bias. Nonnegative coefficients summing to one are also required.

29. 같이 성립해야 하는 두 극한Two limits that must hold together

d=1에서 hₙ=n⁻¹과 hₙ=n⁻¹ᐟ³을 비교해 h→0,nh→∞ 조건을 확인하세요.

In one dimension compare h_n=n^-1 and h_n=n^(-1/3) against h tending to zero and nh tending to infinity.

풀이와 확인할 이유Solution and explanation
hn=n−1:nhn=1;hn=n−1/3:nhn=n2/3→∞h_n=n^{-1}:\quad nh_n=1;\qquad h_n=n^{-1/3}:\quad nh_n=n^{2/3}\to\infty

두 창 모두 줄지만 첫 일정은 예상 이웃 수 증가 조건을 충족하지 않습니다. 둘째는 이 두 조건을 모두 만족하나, 매끄러움·질량·잡음 가정도 별도로 필요합니다.

hn=n−1:nhn=1;hn=n−1/3:nhn=n2/3→∞h_n=n^{-1}:\quad nh_n=1;\qquad h_n=n^{-1/3}:\quad nh_n=n^{2/3}\to\infty

Both windows shrink, but the first fails expected-count growth. The second satisfies these two limits while still requiring smoothness, mass and noise assumptions.

30. L²에서 확률로From mean-square error to probability

한 표본 크기에서 평균 제곱 오차≤1/400이면 절대 오차>1/2의 확률을 Markov로 상한하세요.

If mean-square error is at most one over four hundred, bound the probability of absolute error exceeding one half using Markov.

풀이와 확인할 이유Solution and explanation
P(∣m^−m∣>1/2)≤1/400(1/2)2=1100P(|\widehat m-m|>1/2)\le\frac{1/400}{(1/2)^2}=\frac1{100}

같은 확률 법칙에 대한 기대 오차 상한이 주어졌다는 전제입니다. 관측 표의 경험 MSE만으로 이 모집단 확률 상한을 확정하지 않습니다.

P(∣m^−m∣>1/2)≤1/400(1/2)2=1100P(|\widehat m-m|>1/2)\le\frac{1/400}{(1/2)^2}=\frac1{100}

The premise is a bound on expected error under the specified probability law. An empirical MSE from one table alone does not certify that population probability.

31. 허용되는 폭 지수An admissible bandwidth exponent

d=2에서 α=1/4이면 창과 nhᵈ가 어떻게 바뀌나요?

In dimension two with alpha one quarter, what happens to h and n h^d?

풀이와 확인할 이유Solution and explanation
hn=n−1/4→0,nhn2=n1/2→∞h_n=n^{-1/4}\to0,\qquad nh_n^2=n^{1/2}\to\infty

0<1/4<1/2이므로 일반 두 극한 조건을 만족합니다. 설계 질량·매끄러움·잡음의 나머지 가정도 필요합니다.

hn=n−1/4→0,nhn2=n1/2→∞h_n=n^{-1/4}\to0,\qquad nh_n^2=n^{1/2}\to\infty

Alpha lies between zero and one over dimension. The remaining mass, smoothness and noise assumptions still matter.

32. 두 지수 맞추기Match the two exponents

s=1,d=2에서 균형 α와 MSE 지수를 구하세요.

For smoothness one and dimension two, find balancing alpha and the MSE exponent.

풀이와 확인할 이유Solution and explanation
2α=1−2α⇒α=14,r=22+2=122\alpha=1-2\alpha\Rightarrow\alpha=\frac14,\qquad r=\frac{2}{2+2}=\frac12

h의 지수1/4와 MSE의 지수1/2는 다릅니다. 오차의 제곱근을 본다면 지수가 다시 달라집니다.

2α=1−2α⇒α=14,r=22+2=122\alpha=1-2\alpha\Rightarrow\alpha=\frac14,\qquad r=\frac{2}{2+2}=\frac12

Bandwidth exponent one quarter differs from MSE exponent one half. Taking a root of the error changes its exponent again.

33. 유한 상수의 최적 폭A finite-constant critical bandwidth

s=d=C_b=C_v=1,n=8에서 두 항의 임계 폭과 기본 일정 폭을 구분하세요.

For s,d,C_b,C_v one and n eight, distinguish the two-term critical bandwidth from the default schedule.

풀이와 확인할 이유Solution and explanation
h∗=(1/16)1/3≈0.396850263,hn=8−1/3=1/2h_*=(1/16)^{1/3}\approx0.396850263,\qquad h_n=8^{-1/3}=1/2

미분식의 계수2 때문에 달라집니다. h_*는 빈 창 항·입력 영역 제한을 포함하지 않고 경험 검증도 사용하지 않습니다.

h∗=(1/16)1/3≈0.396850263,hn=8−1/3=1/2h_*=(1/16)^{1/3}\approx0.396850263,\qquad h_n=8^{-1/3}=1/2

The derivative’s factor two changes the constant. This critical bandwidth excludes the empty term and domain constraints and uses no empirical validation.

34. 차원10의 표본 비용Sample cost in dimension ten

s=1,d=10에서 다항식 MSE 상한을 절반으로 줄이는 표본 배수를 구하세요.

At smoothness one and dimension ten, what sample multiplier halves the polynomial MSE bound?

풀이와 확인할 이유Solution and explanation
r=212=16,a−1/6=1/2⇒a=64r=\frac2{12}=\frac16,\qquad a^{-1/6}=1/2\Rightarrow a=64

같은 상수와 점근 규모를 비교한 계산입니다. 실제 데이터의 표본을64배 확보하면 성적이 정확히 절반이 된다는 보장은 아닙니다.

r=212=16,a−1/6=1/2⇒a=64r=\frac2{12}=\frac16,\qquad a^{-1/6}=1/2\Rightarrow a=64

This compares the same constants and asymptotic scale. It does not guarantee that a factual score exactly halves after obtaining sixty-four times the data.

35. 잘리지 않은 창의 질량Mass of an uncut window

[0,1]² 균일 설계에서 중심(1/2,1/2),L∞ 반경1/4 창의 질량을 구하세요. 중심(1/10,1/2)도 같은가요?

For uniform design on the unit square, find the mass of an L-infinity radius-one-quarter window centered at (1/2,1/2). Is it the same at (1/10,1/2)?

풀이와 확인할 이유Solution and explanation
p(1/2,1/2)=(1/2)2=1/4,p(1/10,1/2)=(7/20)(1/2)=7/40p_{(1/2,1/2)}=(1/2)^2=1/4,\qquad p_{(1/10,1/2)}=(7/20)(1/2)=7/40

둘째 중심은 첫 좌표 창이[0,7/20]으로 잘립니다. 내부라는 말만으로 면적1/4를 쓸 수 없습니다.

p(1/2,1/2)=(1/2)2=1/4,p(1/10,1/2)=(7/20)(1/2)=7/40p_{(1/2,1/2)}=(1/2)^2=1/4,\qquad p_{(1/10,1/2)}=(7/20)(1/2)=7/40

The second window is cut to [0,7/20] in its first coordinate. Being interior alone does not justify mass one quarter.

36. k 일정의 두 조건Two conditions for a k schedule

kₙ=⌊√n⌋와 kₙ=5를 비교하세요.

Compare k_n=floor square-root n with k_n five.

풀이와 확인할 이유Solution and explanation
⌊n⌋→∞,⌊n⌋n→0;5↛∞,5/n→0\lfloor\sqrt n\rfloor\to\infty,\quad\frac{\lfloor\sqrt n\rfloor}{n}\to0;\qquad5\not\to\infty,\quad5/n\to0

첫 일정은 두 조건을 모두 만족합니다. 둘째는 국소화 조건만 충족하고 같은 분산의 무상관 잡음에서1/5 분산이 남을 수 있습니다.

⌊n⌋→∞,⌊n⌋n→0;5↛∞,5/n→0\lfloor\sqrt n\rfloor\to\infty,\quad\frac{\lfloor\sqrt n\rfloor}{n}\to0;\qquad5\not\to\infty,\quad5/n\to0

The first meets both conditions. The second can localize but retain variance one fifth under unit-variance uncorrelated noise.

37. 고정 창의 남는 편향Bias retained by a fixed window

X∼Uniform[0,1],m(x)=x²,목표x=1/2입니다. 전체 표본 평균의 극한 편향과 제곱 편향은?

Let X be uniform on [0,1], m(x)=x squared and the query one half. Find limiting bias and squared bias of the whole-sample average.

풀이와 확인할 이유Solution and explanation
E[X2]=∫01x2 dx=13,b=13−14=112,b2=1144E[X^2]=\int_0^1x^2\,dx=\frac13,\qquad b=\frac13-\frac14=\frac1{12},\qquad b^2=\frac1{144}

독립 표본·평균0 잡음과 필요한 적률 아래의 예입니다. n이 커져 평균이 안정되어도 목표 함수값과 다릅니다.

E[X2]=∫01x2 dx=13,b=13−14=112,b2=1144E[X^2]=\int_0^1x^2\,dx=\frac13,\qquad b=\frac13-\frac14=\frac1{12},\qquad b^2=\frac1{144}

This uses iid inputs, mean-zero noise and the required moments. A stable large-sample average still differs from the target function value.

38. 분류 초과 위험 상한An excess-classification-risk bound

적분 제곱 확률 추정 오차가≤1/400일 때 동등 비용 plug-in 분류의 초과 위험을 상한하세요.

If integrated squared probability-estimation error is at most one over four hundred, bound equal-cost plug-in excess classification risk.

풀이와 확인할 이유Solution and explanation
R(g^)−R∗≤2E∣η^−η∣≤2E(η^−η)2≤110R(\widehat g)-R^*\le2E|\widehat\eta-\eta|\le2\sqrt{E(\widehat\eta-\eta)^2}\le\frac1{10}

참 Bayes 위험 위로 더하는 상한입니다. 전체 오분류율≤1/10이라고 결론 내리지는 않습니다.

R(g^)−R∗≤2E∣η^−η∣≤2E(η^−η)2≤110R(\widehat g)-R^*\le2E|\widehat\eta-\eta|\le2\sqrt{E(\widehat\eta-\eta)^2}\le\frac1{10}

This bounds the excess above Bayes risk, not total misclassification risk by one tenth.

39. 비영 계수와0 계수Positive and zero coefficients

C_b=0,C_v>0에서 C_bh²ˢ+C_v/(nhᵈ)는 모든 h>0 중 유한 내부 최솟값을 갖나요?

With C_b zero and C_v positive, does the polynomial expression have a finite interior minimizer over all positive h?

풀이와 확인할 이유Solution and explanation
F(h)=Cvnhd,F(h)↓0 as h→∞F(h)=\frac{C_v}{nh^d},\qquad F(h)\downarrow0\ \text{as}\ h\to\infty

유한 내부 최소점은 없습니다. 하한0은 이 무제한 수학적 영역에서 h→∞로 접근합니다. 실제 가능한 폭의 제한이나 빈 창 항을 더하면 다른 최적화 문제입니다.

F(h)=Cvnhd,F(h)↓0 as h→∞F(h)=\frac{C_v}{nh^d},\qquad F(h)\downarrow0\ \text{as}\ h\to\infty

No finite interior minimum exists; the infimum zero is approached at infinite bandwidth on this unrestricted mathematical domain. Domain constraints or additional terms create a different problem.

40. 확률 수렴과 거의 확실한 수렴Probability versus almost-sure convergence

실패 확률이 Cn⁻²ᐟ³ 이하라는 상한만으로 Borel–Cantelli의 합 유한 조건을 얻을 수 있나요?

Does an upper bound C n^(-2/3) alone establish the summability condition for Borel–Cantelli?

풀이와 확인할 이유Solution and explanation
∑n=1∞n−2/3=∞\sum_{n=1}^{\infty}n^{-2/3}=\infty

아닙니다. 이 느슨한 상한의 합이 발산해 합 유한을 확인하지 못합니다. 실제 실패 확률이 더 빨리 줄 수도 있으므로 거의 확실한 수렴의 반증은 아닙니다.

∑n=1∞n−2/3=∞\sum_{n=1}^{\infty}n^{-2/3}=\infty

No. The displayed bounds are not summable. Actual probabilities might decay faster, so this does not refute almost-sure convergence.

41. 선택에 쓰는 정답Which outcomes may choose the model?

시험 정답만 바꿨더니 선택한 대역폭이 바뀌었습니다. 이 장의 절차에서 무엇을 의심해야 하나요?

Changing only test outcomes changes the selected bandwidth. What violates this chapter’s protocol?

풀이와 확인할 이유Solution and explanation

선택은 양수인 전체 적격 검증 피복 후보의 검증 MSE만 사용해야 합니다. 시험 정답이 선택에 섞였거나 역할·변환·후보를 함께 바꿨는지 점검합니다. 시험 표의 성적 변화 자체는 정상이나 선택 변화는 이 조건에서 정당화되지 않습니다.

Selection must use validation MSE among full-coverage candidates with positive eligible validation count. Inspect test leakage or an unintended role, transform or candidate change. Test scores may change, but selection should not under this isolated edit.

42. 폭의 원 단위Bandwidth in native units

학습 X의 최솟값4,최댓값12,정규화 폭1/4일 때 원 단위 반경과 x=16의 z를 구하세요.

Training minimum is four, maximum twelve and normalized bandwidth one quarter. Find native radius and the transformed query sixteen.

풀이와 확인할 이유Solution and explanation
R=12−4=8,hnative=14⋅8=2,z(16)=16−48=32R=12-4=8,\qquad h_{\rm native}=\frac14\cdot8=2,\qquad z(16)=\frac{16-4}{8}=\frac32

시험 입력이 범위 밖이어도 z를1로 자르지 않습니다. 보유 입력을 추가해 범위를 다시 맞추지도 않습니다.

R=12−4=8,hnative=14⋅8=2,z(16)=16−48=32R=12-4=8,\qquad h_{\rm native}=\frac14\cdot8=2,\qquad z(16)=\frac{16-4}{8}=\frac32

Do not clip the out-of-range query to one or refit the range using held-out inputs.

43. 낮은 available 오차의 함정The trap of low available-case loss

검증2행 중1행만 예측한 후보A의 MSE0,두 행을 모두 예측한 후보B의 MSE4입니다. 이 장은 어느 후보를 선택에 허용하나요?

Candidate A has MSE zero on one of two validation records; B has MSE four covering both. Which is admitted?

풀이와 확인할 이유Solution and explanation

A는 피복률1/2라 선택에 허용하지 않고 B는 전부 예측하므로 허용합니다. B가 유일한 허용 후보라면 B를 고릅니다. A의0은 한 행의 available 성적과 분모를 함께 남기며 삭제하거나 전체 성적으로 둔갑시키지 않습니다.

A is excluded from selection because coverage is one half. B is admitted and wins if it is the only admitted candidate. Preserve A’s zero with its one-record denominator as an available score.

44. 서로 다른 분모를 공통으로 좁히기Construct a common evaluation frame

후보A가 v1,v2를,후보B가 v2,v3를 예측합니다. 공통 분모는 어느 행들인가요? 전체 검증3행을 대표하나요?

A predicts v1 and v2; B predicts v2 and v3. Which records form the common frame? Does it represent all three?

풀이와 확인할 이유Solution and explanation

교집합은 v2 한 행입니다. 이 공통 성적은 같은 분모로 비교하지만 v1,v3의 질문을 제외합니다. 세 행 전체의 피복이나 대표성을 주장할 수 없고 두 후보 모두 전체 피복 선택 조건을 충족하지 않습니다.

The intersection is v2 only. It compares the same denominator but omits the other two questions. It does not establish coverage or representativeness over all three, and neither candidate satisfies full-coverage selection.

45. 검증 승자와 시험 패자Validation winner and test loser

학습(0,0),(2,4),검증(1,0),시험(1,4)에서 폭1/2상자와 k1을 비교하세요. 정규화와 원순서 동률을 사용합니다.

Use training (0,0),(2,4), validation (1,0), test (1,4), normalized box h one half and k one with original-order ties.

풀이와 확인할 이유Solution and explanation
y^box=2,y^k1=0;Lval=(4,0),Ltest=(4,16)\widehat y_{\rm box}=2,\quad\widehat y_{k1}=0;\quad L_{\rm val}=(4,0),\quad L_{\rm test}=(4,16)

검증은 k1을 고르지만 시험에서는 상자가 낫습니다. 최초 보유 성적을 유지하려면 시험을 보고 선택을 뒤집지 않습니다.

y^box=2,y^k1=0;Lval=(4,0),Ltest=(4,16)\widehat y_{\rm box}=2,\quad\widehat y_{k1}=0;\quad L_{\rm val}=(4,0),\quad L_{\rm test}=(4,16)

Validation selects k one while the box wins on test. Do not reverse the original selection using test outcomes.

46. 검증 정답을 바꾸면Changing the validation outcome

앞 문제에서 검증 Y만4로 바꾸면 두 MSE와 승자는?

Change only the preceding validation outcome to four. Find both losses and the winner.

풀이와 확인할 이유Solution and explanation
Lval,box=(2−4)2=4,Lval,k1=(0−4)2=16L_{\rm val,box}=(2-4)^2=4,\qquad L_{\rm val,k1}=(0-4)^2=16

상자를 고릅니다. 검증에 반응하는 것은 의도한 선택이며 시험 정보 누출과 다릅니다.

Lval,box=(2−4)2=4,Lval,k1=(0−4)2=16L_{\rm val,box}=(2-4)^2=4,\qquad L_{\rm val,k1}=(0-4)^2=16

Select the box. Responding to validation is intended and differs from test leakage.

47. 학습 자기 예측Self-inclusion in training prediction

거리0 동률이 없고 k=1인 학습 행의 자기 예측 오차는? 그것이 새 관측 오차도0임을 뜻하나요?

With k one and no zero-distance ties, what is training self-prediction error? Does it prove zero new-observation error?

풀이와 확인할 이유Solution and explanation

자기 행이 거리0으로 선택되어 자기 Y를 그대로 예측하므로 제곱 오차0입니다. 새 관측의 Y는 이웃으로 이미 입력되지 않았고 잡음도 달라질 수 있어 같은 결론이 나오지 않습니다. 이것이 학습 성적과 보유 성적을 구분하는 이유입니다.

The row selects itself at zero distance and reproduces its own outcome, giving squared error zero. A new outcome was not already supplied as its own neighbor and may carry new noise. Training perfection does not establish holdout perfection.

48. 고정 접두 곡선과 정리A fixed-prefix curve and an asymptotic theorem

국가 학습3·6·9행의 시험 오차가 계속 줄었습니다. 이것으로 보편 일치성을 증명했나요?

Test loss falls for country training prefixes three, six and nine. Has universal consistency been proved?

풀이와 확인할 이유Solution and explanation

아닙니다. 정해진16국가 표의 세 부분집합 비교이며 독립 반복 표집의 기대 위험이나 모든 분포의 극한이 아닙니다. 고정 시험 분모,선택 후보,범위 변화와 피복을 보고하고 가정별 정리와 연결하되 증명으로 대신하지 않습니다.

No. This compares three subsets of a fixed sixteen-country table, not repeated-sample expected risk or a limit over all distributions. Report the fixed test denominator, selected candidates, range changes and coverage, then discuss rather than claim the theorem.

49. 이진 결과의 손실 단위Loss units for a binary outcome

이탈 Y=1에 예측1/4를 냈습니다. 제곱 오차와 절대 오차,단위를 구하세요.

For churn outcome one and prediction one quarter, compute squared and absolute errors and state their units.

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

제곱값은 관측 이진 결과에 대한 Brier 기여로 확률 제곱 단위,절대값은 확률 단위입니다. 참 조건부 확률을 알고 있다는 의미는 아닙니다.

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

The squared contribution is a Brier loss in squared-probability units and the absolute contribution is in probability units. This does not reveal the true conditional probability.

50. 선택할 후보가 없을 때When no candidate is admissible

모든 후보가 적격 검증 행 중 적어도 한 행을 놓칩니다. 이 장의 선택과 시험 보고는 어떻게 해야 하나요?

Every candidate misses at least one eligible validation record. How should selection and test reporting behave?

풀이와 확인할 이유Solution and explanation

선택은 명시적으로 미정의입니다. 이유와 후보별 available/common 피복·성적은 남기며 전역 평균이나 시험 최저 후보로 바꾸지 않습니다. 연구자가 새 규칙을 설계할 수는 있지만 후보·피복 정책 변경으로 기록하고 처음 절차와 구분해야 합니다.

Selection is explicitly undefined. Retain the reason and each candidate’s available/common coverage and scores. Do not substitute a global mean or the test winner. A revised rule must be recorded as a changed candidate or coverage protocol.

51. 국가 선택과 시험 비교Country selection and test comparison

국가 검증 k9의 MSE≈2.942117,시험≈10.239817입니다. 어느 단위이고 무엇을 선택에 썼나요?

Country k-nine validation MSE is about 2.942117 and test MSE about 10.239817. State the units and which score selected it.

풀이와 확인할 이유Solution and explanation

단위는 총 GDP 연간 증가율 오차의 퍼센트포인트 제곱입니다. 검증3행의 전체 피복 MSE로 고르고 시험4행은 그 선택을 고정한 관측 성적입니다. 두 값의 차이를 미래 모든 국가의 위험 증가나 인과 효과로 이름 붙이지 않습니다.

Units are squared percentage-point errors in total annual GDP growth. Full-coverage validation MSE on three records chooses the candidate; four test records describe that fixed choice. Their difference is neither future risk for every country nor a causal effect.

52. 한국 오차를 계산하는 순서Compute Korea’s error in the right order

k9의 국가 평균≈3.6279283215,한국 성장률2.00361101838986에서 잔차를 관측−예측으로 쓰세요. 시험 오차인가요?

Using country k-nine mean about 3.6279283215 and Korea growth 2.00361101838986, form observed-minus-predicted residual. Is it a test error?

풀이와 확인할 이유Solution and explanation
eKOR≈2.00361101838986−3.6279283215≈−1.6243173031e_{\rm KOR}\approx2.00361101838986-3.6279283215\approx-1.6243173031

약−1.624317퍼센트포인트입니다. 한국은 학습 역할이므로 시험 성적으로 합산하지 않습니다. 최종 제곱 오차는 표시용 숫자가 아닌 원 성장률과 정확 평균에서 계산합니다.

eKOR≈2.00361101838986−3.6279283215≈−1.6243173031e_{\rm KOR}\approx2.00361101838986-3.6279283215\approx-1.6243173031

The residual is approximately minus 1.624317 percentage points. Korea is training, not test. Compute final squared errors from original values and the exact mean rather than rounded display values.

53. 교육 폭을 원 단위로 바꾸기Translate the schooling bandwidth

개인 학습 교육 범위17년과 정규화 폭1/4의 원 반경은? 그 범위가 인과 통제를 뜻하나요?

For schooling training range seventeen years and normalized bandwidth one quarter, find native radius. Is this causal control?

풀이와 확인할 이유Solution and explanation
hnative=17/4=4.25 yearsh_{\rm native}=17/4=4.25\ \text{years}

입력 교육 연수가4.25년 안인 이웃의 평균을 만듭니다. 능력·경험·지역 등 교란을 통제한 인과 설계라는 뜻은 아닙니다.

hnative=17/4=4.25 yearsh_{\rm native}=17/4=4.25\ \text{years}

It averages neighbors within 4.25 schooling years, not a causal design controlling ability, experience, region or other confounding.

54. 개인 원자료1행의 해석Interpret person source row one

원자료1행(원 ID2)의 wage76=548,예측≈437.885305입니다. 관측−예측 잔차와 역할을 적고 편향 여부를 판단하세요.

Source row one, native ID two, has wage76 548 and prediction about 437.885305. State residual and role, and discuss bias.

풀이와 확인할 이유Solution and explanation
e≈548−437.885305=110.114695e\approx548-437.885305=110.114695

학습 행의 약110.114695 당시 명목 센트/시간 잔차입니다. 한 관측 잔차를 추정량의 조건부 편향이라고 확정할 수 없습니다. 참 회귀 평균과 반복 추정의 기대값이 별도로 필요합니다.

e≈548−437.885305=110.114695e\approx548-437.885305=110.114695

This is a training-row residual of about 110.114695 nominal period cents per hour. One residual does not identify conditional estimator bias; the true mean and repeated-sample expectation are separate.

55. k1의 학습 성적이0이 아닌 이유Why k-one training loss can be nonzero

개인 자료에서 k1은 학습 MSE≈99105.97입니다. 자기 행이 항상 이웃이라면 왜0이 아닐 수 있나요?

Person k-one training MSE is about 99105.97. Why can it be nonzero even though the query is a training row?

풀이와 확인할 이유Solution and explanation

같은 교육 연수의 여러 학습 행이 거리0입니다. 원순서 동률 규칙이 자기 행보다 앞선 다른 행을 고르면 그 사람 임금으로 예측합니다. 자기 행을 우선하라는 별도 규칙이 없으므로0이 강제되지 않습니다. 같은 X의 Y가 다를 수 있음을 보여 줍니다.

Many training records have identical schooling and hence distance zero. Original-order tie handling may select an earlier person instead of the query, using a different wage. There is no special self-priority rule, so zero loss is not forced.

56. 이탈 확률을 원 빈도로 계산하기Compute a churn probability from original counts

기업 원1행의 선택 창에1657학습 행과264이탈이 있습니다. Y=0인 이 행의 예측과 Brier 기여를 정확히 쓰세요.

The selected window for company source row one has 1657 training records and 264 churn outcomes. With observed Y zero, give prediction and exact Brier contribution.

풀이와 확인할 이유Solution and explanation
p^=2641657,(p^−0)2=696962745649\widehat p=\frac{264}{1657},\qquad(\widehat p-0)^2=\frac{69696}{2745649}

검증 행의 한 기여입니다. 전체 검증 Brier는630행의 각 기여를 원분수로 평균합니다. 이 한 값의 제곱을 전체 평균으로 대신하지 않습니다.

p^=2641657,(p^−0)2=696962745649\widehat p=\frac{264}{1657},\qquad(\widehat p-0)^2=\frac{69696}{2745649}

This is one validation contribution. The complete score averages all 630 exact contributions; do not replace it with the square of one row’s probability.

57. 호출 실패 폭의 원 단위Native call-failure radius

기업 학습 범위35,정규화 폭1/4일 때 원 반경과 X=8의 포함 구간을 구하세요.

With company training range thirty-five and normalized bandwidth one quarter, find native radius and the included interval around X eight.

풀이와 확인할 이유Solution and explanation
hnative=35/4=8.75,[8−8.75,8+8.75]=[−0.75,16.75]h_{\rm native}=35/4=8.75,\qquad[8-8.75,8+8.75]=[-0.75,16.75]

실제 비음 정수 횟수에서는0부터16까지가 포함될 수 있습니다. 상자 경계 포함 규칙을 사용하며,가능한 입력값을 새로 생성하는 것은 아닙니다.

hnative=35/4=8.75,[8−8.75,8+8.75]=[−0.75,16.75]h_{\rm native}=35/4=8.75,\qquad[8-8.75,8+8.75]=[-0.75,16.75]

Among nonnegative integer counts, values zero through sixteen can qualify. This applies the inclusive box rule; it does not create new observations.

58. 미정의 곡선의 점An undefined learning-curve point

학습 접두0에서 선택이 미정의입니다. 학습 곡선에 시험 MSE0을 그려도 될까요?

Selection is undefined at training prefix zero. May a learning curve plot test MSE zero there?

풀이와 확인할 이유Solution and explanation

안 됩니다.0은 완벽한 예측이라는 의미를 만들지만 실제로는 예측·선택이 없습니다. 곡선에 간격과 미정의 이유를 표시하고 피복도0임을 구분합니다. 원행과 역할은 그대로 보존합니다.

No. Zero would signal perfect prediction while no predictor or selection exists. Show a gap with the undefined reason and distinguish zero coverage. Preserve source rows and roles.

59. 조건부 수렴과 자료 이동Conditional consistency and source shift

같은 법칙에서 일치성 조건을 만족한 방법이면 새 요금제의 고객에서도 자동으로 일치하나요?

If a method is consistent under one law, is it automatically consistent for customers under a new tariff?

풀이와 확인할 이유Solution and explanation

그렇지 않습니다. 입력 분포뿐 아니라 조건부 이탈 확률·결과 관측 방식도 바뀔 수 있습니다. 원 정리의 법칙·표집·매끄러움·질량 조건이 새 환경에 적용되는지 검토하고,새 기간의 검증과 지연 결과를 다뤄야 합니다. 기존 유한 점수만으로 수송 보장을 만들지 않습니다.

No. Inputs, conditional churn probabilities and outcome observability can change. Reassess sampling, smoothness and mass assumptions in the new environment, using new-period validation and delayed labels. Existing finite scores alone do not provide a transport guarantee.

60. 더 적은 특징의 대가The cost of using fewer features

차원의 저주를 피하려고 중요한 특징 하나를 버렸습니다. 분산과 편향·선택 후 추론을 함께 설명하세요.

You omit an important feature to reduce dimension. Discuss variance, bias and post-selection inference.

풀이와 확인할 이유Solution and explanation

유효 차원이 줄면 같은 가정 아래 이웃을 채우기 쉬워 분산 항이 줄 수 있습니다. 그러나 빠진 정보 때문에 목표 평균을 표현하지 못하면 근사 편향이 늘어납니다. 여러 특징 조합을 정답으로 고른 경우 고정 모형의 신뢰구간을 그대로 사용할 수 있는지도 별도입니다. 예측·표현·추론 질문을 나누고 검증·시험의 역할을 유지해야 합니다.

Lower effective dimension can improve neighborhood occupancy and reduce a variance term under suitable assumptions. Omitting relevant information can increase approximation bias. If outcomes selected among many subsets, fixed-model intervals require separate justification. Keep predictive, representational and inferential questions distinct while preserving validation and test roles.

자료와 출처Data and sources

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

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

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

자료사전·출처·이용 조건Data dictionary, sources and terms