METR-03 · ECONOMETRICS

다중회귀·행렬식·부분회귀 정리Multiple regression, matrices and FWL

두 설명 열의 작은 표에서 전체 해·FWL·실제 원행의 검산까지From two-column tables to whole solution families, FWL and actual source-row checks

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

기초Foundations

1. 두 설명 열을 함께 보면 무엇이 달라질까?1. What changes when two explanatory columns are used together?

연습 시간이 같은 두 기록의 결과가 다르면 연습 시간만으로는 그 차이를 설명하지 못합니다. 사전 준비 정도라는 두 번째 열을 추가해 볼 수 있습니다. 그렇다고 열을 늘리는 행동 자체가 연습의 인과효과를 알아내는 것은 아닙니다. 먼저 어떤 직선 함수 집합에서 어떤 오차를 줄일지 정합니다.

이 장은 전부 가정한 여덟 행을 손으로 계산하고, 한 열만 쓴 직선과 두 열을 쓴 평면을 비교합니다. 이어 같은 계산을 행렬·잔차화·부분회귀로 다시 봅니다. 마지막에는 실제 국가·익명 사람·조사 점포 기록에서 같은 원행·기간·가용 분모를 지킨 채 적용합니다.

Two records with equal practice time can have different outcomes. A second column describing prior preparation may help summarize that difference. Adding a column alone does not identify a causal effect of practice; first specify the function class and the error being minimized.

Calculate a wholly assumed eight-row table by hand, comparing a one-column line with a two-column plane. Revisit the same calculation using matrices, residualization and partial regression. Then apply the logic to actual country, anonymous-person and survey-establishment records while preserving source rows, periods and available denominators.

기초Foundations

2. 여덟 가정 기록을 그대로 보존한다2. Preserve all eight assumed records

X는 연습 시간, Z는 사전 준비 지수, Y는 성과의 변화 점수라고 합시다. 지수 Z의 한 단위는 우리가 정한 가정 척도입니다. 실제 학생의 측정값이나 무작위 실험이 아니며, 각 행에 같은 작업 비중 1을 줍니다. 전체 가중치 합은 8입니다.

전부 가정 · 같은 비중의 여덟 기록
행X · 시간Z · 준비 지수Y · 변화 점수
1000
2015
3104
4115
5218
62211
73110
83213

평균 X=3/2, 평균 Z=1, 평균 Y=7입니다. X와 Z가 함께 커지는 경향도 보입니다. 따라서 Y를 X 하나에만 맞추면 X가 변할 때 함께 달라지는 Z의 연관도 한 기울기에 들어갈 수 있습니다. 이것은 먼저 관측된 함수 근사의 이야기이며, 어떤 개입이 있었는지는 아직 정하지 않았습니다.

Let X denote practice hours, Z a prior-preparation index and Y a performance-change score. One Z unit is an assumed index unit. These are constructed values, not actual students or a randomized experiment. Give every row working weight one, with total weight eight.

Wholly assumed · eight equal-weight records
RowX · hoursZ · preparation indexY · change points
1000
2015
3104
4115
5218
62211
73110
83213

Means are X=3/2, Z=1 and Y=7. X and Z also tend to rise together. A line using X alone can therefore combine associations with both columns. This is initially a statement about observed function approximation, not an intervention design.

기초Foundations

3. 결과는 하나이고 설명 열은 여러 개이다3. One outcome can have several explanatory columns

단순회귀의 예측 a+bX에 cZ를 더하면 a+bX+cZ가 됩니다. 여기 결과 Y는 여전히 하나입니다. ‘다중’은 이 장에서 설명변수가 여러 개라는 뜻이며 여러 결과를 동시에 모형화한다는 뜻과 구별합니다. 절편 a도 추정하는 계수이지만 설명변수 수를 셀 때 상수 열을 따로 적겠습니다.

y^i=a+bxi+czi\widehat y_i=a+bx_i+cz_i

Z를 같은 값으로 고정한 채 X의 숫자만 1 늘리면 이 선택 예측 함수는 b만큼 달라집니다. 실제로 한 사람의 X를 바꿀 때 Z나 다른 조건이 어떻게 변하는지는 이 식만으로 알 수 없습니다. ‘모형 안에서 고정’과 ‘현실 개입에서 고정’을 구별해야 합니다.

계수의 선형성은 변수 자체의 단순함과도 다릅니다. X²나 로그 X를 새 열로 미리 정의해 넣어도 계수에 대해서는 선형일 수 있습니다. 다만 새 열의 정의역·단위·결측과 열 사이 중복을 다시 확인해야 합니다.

Adding cZ to the simple predictor a+bX gives a+bX+cZ while retaining one outcome Y. “Multiple” here means several explanatory variables, distinct from modeling several outcomes jointly. We count the constant column separately when reporting predictor counts.

y^i=a+bxi+czi\widehat y_i=a+bx_i+cz_i

Within this selected prediction function, increasing numerical X by one while fixing Z changes the prediction by b. The equation alone does not reveal how Z or other conditions respond when an actual person’s X is changed. Holding a variable fixed in a function and in an intervention are different claims.

Linearity in coefficients also differs from using untransformed variables. A predefined X² or log X column may still enter linearly in its coefficient. Check its domain, units, availability and redundancy with other columns.

기초Foundations

4. 계수마다 나누는 단위가 다르다4. Each coefficient divides by a different unit

Y가 변화 점수이고 X가 시간이면 b는 점수/시간입니다. Z가 준비 지수이면 c는 점수/지수 단위입니다. b=2, c=3이라는 두 숫자만 보고 준비가 연습보다 중요하다고 순위를 매길 수 없습니다. 시간에서 분으로 바꾸는 것만으로 b의 숫자는 1/30이 됩니다.

절편은 X=0, Z=0에서의 선택 함수 예측입니다. 그 조합이 관측되지 않았다면 직선 평면을 연장한 값일 수 있습니다. 두 축의 평균을 빼면 절편의 기준점이 달라지지만 같은 원행의 적합값은 보존할 수 있습니다.

실제 자료에서도 교육 연수·연령·비율·금액을 구별합니다. 단위가 다른 계수를 숫자 크기로 비교하거나, 나이와 경력 같은 다른 변수를 이름만 바꾸어 쓰지 않습니다. 원자료에 기록된 나이는 원자료에 없는 실제 경력을 대신 관측한 것이 아닙니다.

With change-score Y and hour-valued X, b has points/hour units. For preparation-index Z, c has points/index-unit units. Numbers b=2, c=3 alone do not rank preparation as more important than practice. Converting hours to minutes changes b to 1/30.

The intercept predicts at X=0, Z=0 in the selected function, possibly an extrapolated combination. Centering both axes changes the intercept’s reference while preserving original-row fits.

In actual sources, distinguish schooling, age, percentages and money. Do not compare unlike-unit coefficients by numerical size or rename observed age as unobserved work experience. One recorded variable does not become another measurement through relabeling.

기초Foundations

5. 평면의 예측을 한 행씩 계산한다5. Calculate plane predictions one row at a time

여덟 가정 행에서 먼저 함수 1+2X+3Z를 살펴봅니다. 첫 행 X=0, Z=0의 예측은 1이고 실제 Y=0이므로 잔차는 −1입니다. 두 번째 X=0, Z=1은 예측 4, 실제 5이므로 잔차 1입니다. 같은 X라도 Z가 달라 예측이 달라집니다.

가정한 후보 평면 · 잔차는 실제값−예측값
행평면 예측Y잔차
110-1
2451
3341
465-1
5880
611110
710100
813130

잔차 제곱합은 4이고 같은 비중 MSE는 4/8=1/2입니다. 다음 절들에서 왜 이 평면이 최적인지 증명합니다. 지금 표에서 많이 맞아 보인다는 인상만으로 선택한 것이 아닙니다. 이 여덟 조합은 각각 다르므로 경험 조건부 평균은 해당 Y 자체와 같지만, 그 함수를 한 평면으로 제한하면 오차가 남습니다.

Inspect candidate 1+2X+3Z in the eight assumed records. Row one predicts one at X=0, Z=0 while actual Y=0, leaving residual −1. Row two predicts four at X=0, Z=1 while actual Y=5, leaving one. Different Z can change predictions at the same X.

Assumed candidate plane · residual = actual minus fitted
RowPlane predictionYResidual
110-1
2451
3341
465-1
5880
611110
710100
813130

SSE is four and equal-weight MSE is 1/2. Later sections prove optimality rather than relying on visual fit. Each observed (X, Z) combination is distinct, so its empirical conditional mean equals its own Y; restricting that function to one plane leaves approximation error.

기초Foundations

6. 잔차를 만든 규칙과 인과 가정을 구별한다6. Separate residual construction from causal assumptions

방금 잔차 (−1, 1, 1, −1, 0, 0, 0, 0)는 합이 0이며 X를 곱한 합과 Z를 곱한 합도 0입니다. 하지만 각 (X, Z) 조합에서 잔차가 항상 평균 0인 것은 아닙니다. 이 유한 법칙에서는 조합마다 한 행이라 조건부 잔차 평균이 그 잔차 자체입니다.

따라서 Y=1+2X+3Z+e라는 분해를 적었다고 e의 조건부 평균 0, 독립성, 무작위 배정을 함께 가정한 셈이 되지는 않습니다. 우리는 지금 예측 평면과 잔차의 산술을 정의했습니다. 구조적 결과 방정식이나 교육·연습 효과를 추정하려면 어떤 개입과 비교가 그 해석을 지지하는지 더 설명해야 합니다.

실제 국가·사람·점포 사례에서도 ‘다른 열을 통제했다’는 말만으로 모든 비교가능성을 인증하지 않습니다. 이 장은 부분회귀 정리라는 계산 항등식과 그보다 강한 인과·추론 조건을 분리합니다.

The residuals (−1, 1, 1, −1, 0, 0, 0, 0) have zero sum and zero products with both X and Z in aggregate. They do not have zero mean conditional on every (X, Z): each combination has one row under this finite law, so its conditional residual mean equals that residual.

Writing Y=1+2X+3Z+e therefore does not simultaneously establish a zero conditional mean, independence or random assignment. We have defined a prediction plane and arithmetic residuals. A structural interpretation or schooling/practice intervention effect needs additional design and comparison arguments.

Likewise, saying other columns were controlled does not certify all comparability conditions in actual sources. Separate the partial-regression identity from stronger causal and inferential assumptions.

기초Foundations

7. 행은 기록이고 열은 예측의 재료이다7. Rows are records; columns are ingredients of prediction

여덟 기록의 상수 1·X·Z를 옆으로 놓으면 설계행렬 A는 8행 3열입니다. 계수 β=(a, b, c)ᵀ는 3행 1열, 결과 y는 8행 1열입니다. Aβ의 i번째 값은 바로 a+bxᵢ+czᵢ입니다. 행과 열의 역할·순서가 맞아야 곱이 정의됩니다.

A=[1  X  Z]∈R8×3β=(a,b,c)T∈R3y^=Aβ∈R8\begin{gathered}A=[\mathbf1\ \ X\ \ Z]\in\mathbb R^{8\times3}\\\beta=(a,b,c)^\mathsf T\in\mathbb R^3\\\widehat y=A\beta\in\mathbb R^8\end{gathered}

상수 열을 추가하고도 계수를 (b, c, a) 순서로 넣으면 다른 예측을 만듭니다. 열 이름과 순서는 계산 계약의 일부입니다. 원행에 결측이 있으면 그 원행을 보존하고, 현재 목적함수에 기여하는 완전행의 행렬을 별도로 표시합니다.

여러 열을 하나로 묶는 표기는 원자료를 바꾸는 작업이 아닙니다. 두 설명 열을 더해 하나의 숫자로 합치면 정보를 잃을 수 있지만, 행렬로 나란히 기록하는 것은 각 열의 역할을 보존합니다.

Putting constant one, X and Z side by side gives an 8-by-3 design matrix A. Coefficients β=(a, b, c)ᵀ form a 3-by-1 vector and outcomes an 8-by-1 vector. Element i of Aβ is a+bxᵢ+czᵢ. Roles and column order determine the multiplication.

A=[1  X  Z]∈R8×3β=(a,b,c)T∈R3y^=Aβ∈R8\begin{gathered}A=[\mathbf1\ \ X\ \ Z]\in\mathbb R^{8\times3}\\\beta=(a,b,c)^\mathsf T\in\mathbb R^3\\\widehat y=A\beta\in\mathbb R^8\end{gathered}

Using coefficient order (b, c, a) with columns (1, X, Z) changes predictions. Names and order are part of the calculation contract. Preserve unavailable source rows while separately showing the complete contributing design.

Matrix notation itself does not alter measurements. Adding predictor columns together can lose information, whereas recording them side by side retains their distinct roles.

기초Foundations

8. 실습 A · 행렬의 모양과 편차곱을 확인한다8. Lab A · Inspect matrix shape and cross-products

여덟 가정 기록과 상수 열을 골라 A가 8×3, y가 8×1인지 확인하세요. AᵀA는 3×3이고 Aᵀy는 3×1입니다. 원행 수와 완전행 수·양수 가중 행 수를 먼저 보고 가중치 0이나 결측이 설계에 어떻게 들어가는지 설명합니다.

X와 Z가 완전히 겹치도록 Z=1+2X로 바꾸어 보세요. 열 수는 여전히 3이지만 서로 독립적으로 움직일 수 있는 방향의 수인 랭크는 줄어듭니다. 행 수가 많다고 중복 열이 사라지는 것은 아닙니다. 이 실습은 원표·작업 법칙의 행렬을 보여 주며 인과 설계나 독립 표집을 추가하지 않습니다.

Select the eight assumed records and constant column. Check A is 8×3, y is 8×1, AᵀA is 3×3 and Aᵀy is 3×1. Inspect source, complete and positive-weight row counts before explaining zero weights or unavailable fields.

Change Z to 1+2X. Three columns remain, but rank—the number of independent directions—falls. More rows do not remove redundant columns. The lab displays a matrix under a declared working law without adding a causal design or independent sampling.

기초Foundations

9. 손실의 분모와 가중 좌표를 먼저 정한다9. Specify the loss denominator and weighted coordinates

완전하고 양수 가중치를 가진 행에서 제곱잔차를 더하고 같은 행의 가중치 합 W로 나눕니다. 모든 값은 유한하고 가중치는 비음수이며 W가 양수라고 합시다. 기본 여덟 행은 wᵢ=1, W=8입니다. 이 장의 손실에는 1/2가 붙지 않습니다.

L(β)=1W∑iwi(yi−aiTβ)2W=∑iwi>0\begin{gathered}L(\beta)=\frac1W\sum_iw_i(y_i-a_i^\mathsf T\beta)^2\\W=\sum_iw_i>0\end{gathered}

여기 aᵢᵀ는 설계행렬의 한 행이며 절편 a와는 역할이 다르므로 행렬 식에서는 β의 성분 이름을 함께 봅니다. 양수 가중치 좌표로 제한한 내적은 Σwᵢuᵢvᵢ입니다. 0 가중치 좌표를 포함한 전체 공간에서는 이 식이 퇴화할 수 있어 같은 내적 공간이라고 부르지 않습니다.

가중치가 모두 0이거나 완전행이 없으면 이 정규화된 손실은 미정의입니다. 정규화 전 합이 0이라는 이유로 평균 손실을 0이라고 보고하지 않습니다. Y의 단위가 점수면 손실 단위는 점수²입니다.

Sum squared residuals on complete positive-weight rows and divide by weight sum W on those same rows. Assume finite values, nonnegative weights and W>0. The default table uses wᵢ=1, W=8. No factor 1/2 is included.

L(β)=1W∑iwi(yi−aiTβ)2W=∑iwi>0\begin{gathered}L(\beta)=\frac1W\sum_iw_i(y_i-a_i^\mathsf T\beta)^2\\W=\sum_iw_i>0\end{gathered}

Here aᵢᵀ is one design row, distinct from the intercept named a in scalar notation. Restricting to positive-weight coordinates gives inner product Σwᵢuᵢvᵢ. Including zero-weight coordinates in the full space can make that form degenerate.

With no complete rows or zero total weight, normalized loss is undefined. A zero unnormalized sum does not define an average. For point-valued Y, loss has squared-point units.

학부 연결 · 선택Undergraduate bridge · optional

10. 각 열과 잔차의 곱이 균형을 이룬다10. Residual products balance for every included column

잔차 e=y−Aβ를 두고 각 계수를 조금 바꿨을 때 손실이 어떻게 달라지는지 계산합니다. 최소점에서는 자유로운 각 계수 방향의 미분이 0이 됩니다. 따라서 상수 열이 있으면 가중 잔차 합 Σwᵢeᵢ=0이고, X·Z 열에 대한 가중 잔차 곱의 합도 0입니다.

ATDwe=0ATDwAβ^=ATDwyDw=diag⁡(w1,…,wn)\begin{gathered}A^\mathsf TD_we=0\\A^\mathsf TD_wA\widehat\beta=A^\mathsf TD_wy\\D_w=\operatorname{diag}(w_1,\ldots,w_n)\end{gathered}

행렬식은 열별 여러 균형 조건을 한 번에 쓴 것입니다. 상수 열을 빼면 가중 잔차 합 0 조건을 따로 요구할 수 없습니다. 같은 완전행·같은 가중치를 사용해야 이 식을 얻습니다. 표본 잔차 직교를 미지 모집단의 조건부 평균 0으로 바꾸어 읽지 않습니다.

역행렬이 있으면 식을 한 번에 풀 수 있지만, 역행렬이 없는 경우에도 최소 적합값은 존재할 수 있습니다. 다음 절들에서 유일한 계수와 유일한 적합값을 나누어 보겠습니다.

Let e=y−Aβ and examine loss changes along each free coefficient direction. At a minimum each derivative is zero. A constant column gives zero weighted residual sum Σwᵢeᵢ=0, while X and Z give zero weighted residual products with those columns.

ATDwe=0ATDwAβ^=ATDwyDw=diag⁡(w1,…,wn)\begin{gathered}A^\mathsf TD_we=0\\A^\mathsf TD_wA\widehat\beta=A^\mathsf TD_wy\\D_w=\operatorname{diag}(w_1,\ldots,w_n)\end{gathered}

The matrix equation collects the column-specific balances. Without a constant column, a zero weighted residual sum is not a separate requirement. Use the same complete rows and weights. Sample orthogonality is not a proof of zero conditional mean in an unknown population.

An inverse gives one convenient solution when it exists. Its absence need not eliminate minimizing fitted values. Distinguish coefficient uniqueness from fit uniqueness next.

학부 연결 · 선택Undergraduate bridge · optional

11. 행렬 원소 하나도 직접 더할 수 있다11. Every Gram-matrix cell is an explicit sum

기본 표에서 ΣX=12, ΣZ=8, ΣY=56입니다. 제곱과 교차곱은 ΣX²=28, ΣXZ=16, ΣZ²=12이며 ΣXY=116, ΣZY=76입니다. 상수 열에 여덟 개의 1이 있으므로 AᵀA의 맨 왼쪽 위 원소는 관측 수 8입니다.

ATA=(812812281681612)ATy=(5611676)\begin{gathered}A^\mathsf TA=\begin{pmatrix}8&12&8\\12&28&16\\8&16&12\end{pmatrix}\\A^\mathsf Ty=\begin{pmatrix}56\\116\\76\end{pmatrix}\end{gathered}

행렬이 대칭인 이유는 ΣXZ와 ΣZX가 같기 때문입니다. 대각 원소는 해당 열의 제곱합이어서 비음수입니다. 임의 벡터 v에 대해 vᵀAᵀAv=Σ(aᵢᵀv)²이므로 이 Gram 행렬은 양의 준정부호입니다.

이 표에서는 행렬식이 192로 0이 아닙니다. 따라서 세 열은 독립이고 계수가 유일합니다. 큰 행렬에서 역행렬을 무조건 직접 만드는 것만이 계산 방법은 아닙니다. 여기서는 작은 숫자로 차원과 원소 의미를 먼저 확인합니다.

The default table gives ΣX=12, ΣZ=8, ΣY=56, with ΣX²=28, ΣXZ=16, ΣZ²=12, ΣXY=116 and ΣZY=76. The constant column makes the upper-left Gram entry the row count eight.

ATA=(812812281681612)ATy=(5611676)\begin{gathered}A^\mathsf TA=\begin{pmatrix}8&12&8\\12&28&16\\8&16&12\end{pmatrix}\\A^\mathsf Ty=\begin{pmatrix}56\\116\\76\end{pmatrix}\end{gathered}

Symmetry follows because ΣXZ=ΣZX. Diagonal entries are nonnegative squared sums. For any v, vᵀAᵀAv=Σ(aᵢᵀv)², so this Gram matrix is positive semidefinite.

Its determinant here is 192, nonzero, giving independent columns and unique coefficients. Directly constructing an inverse is not the only computational method. Use the small table first to understand dimensions and individual entries.

기초Foundations

12. 세 식을 두 식으로 줄여 해를 구한다12. Reduce three equations to two and solve

기본 표의 정상방정식은 아래와 같습니다. 첫 식의 3/2배를 둘째 식에서 빼면 10b+4c=32입니다. 셋째 식에서 첫 식을 빼면 4b+4c=20입니다. 다시 빼면 6b=12라서 b=2이고 c=3입니다.

8a+12b+8c=5612a+28b+16c=1168a+16b+12c=76b=2,c=3,a=1\begin{gathered}8a+12b+8c=56\\12a+28b+16c=116\\8a+16b+12c=76\\b=2,\quad c=3,\quad a=1\end{gathered}

a=(56−24−24)/8=1입니다. 평균점 조건 a+b평균 X+c평균 Z=1+2×(3/2)+3×1=7도 확인합니다. 세 계수가 나온 이유를 거대한 출력 표 대신 덧셈과 소거로 따라갈 수 있습니다.

여기 계수 b=2는 선택한 평면에서 Z를 고정한 X의 예측 기울기입니다. 표의 각 (X, Z) 경험 조건부 평균과 완전히 같다는 주장이나 실제 연습 개입의 효과라는 주장을 더하지 않습니다.

The default normal equations are shown below. Subtracting 3/2 times the first from the second gives 10b+4c=32. Subtracting the first from the third gives 4b+4c=20, hence 6b=12, b=2 and c=3.

8a+12b+8c=5612a+28b+16c=1168a+16b+12c=76b=2,c=3,a=1\begin{gathered}8a+12b+8c=56\\12a+28b+16c=116\\8a+16b+12c=76\\b=2,\quad c=3,\quad a=1\end{gathered}

Then a=(56−24−24)/8=1. The mean-point identity gives 1+2×(3/2)+3×1=7. Sums and elimination reveal where the coefficients come from.

Slope b=2 describes X changes within the chosen plane at fixed Z. It does not assert equality with every empirical conditional mean or identify an actual practice intervention effect.

학부 연결 · 선택Undergraduate bridge · optional

13. 직교와 최소값을 따로 검산한다13. Check orthogonality and minimality explicitly

최적 후보 (1, 2, 3)의 잔차는 (−1, 1, 1, −1, 0, 0, 0, 0)입니다. 합·X 곱 합·Z 곱 합을 직접 계산하면 모두 0입니다. SSE=4, MSE=1/2입니다. 이 세 조건은 열공간에 대한 직교를 뜻합니다.

계수를 d만큼 이동해 β+d를 쓰면 새 잔차는 e−Ad입니다. 제곱을 펼칠 때 교차항은 AᵀD_we=0으로 없어집니다. 남은 손실 차이는 제곱의 가중 평균이므로 음수가 아닙니다.

L(β^+d)−L(β^)=1W∑iwi(aiTd)2≥0\begin{gathered}L(\widehat\beta+d)-L(\widehat\beta)\\=\frac1W\sum_iw_i(a_i^\mathsf Td)^2\ge0\end{gathered}

이것이 전역 최소의 증명입니다. 양수 가중치에 기여하는 행으로 제한한 설계의 세 열이 독립이면 차이가 0인 이동은 d=0뿐이어서 계수도 유일합니다. 독립이 아니면 어떤 0이 아닌 d가 Ad=0을 만족해 여러 계수가 같은 최저 손실을 만들 수 있습니다.

Residuals at (1, 2, 3) are (−1, 1, 1, −1, 0, 0, 0, 0). Their sum and products with X and Z all sum to zero. SSE=4 and MSE=1/2. These moments express orthogonality to the included column space.

Moving coefficients by d changes residuals to e−Ad. The cross-term in expanded squares vanishes because AᵀD_we=0. The loss difference is a nonnegative weighted mean of squares.

L(β^+d)−L(β^)=1W∑iwi(aiTd)2≥0\begin{gathered}L(\widehat\beta+d)-L(\widehat\beta)\\=\frac1W\sum_iw_i(a_i^\mathsf Td)^2\ge0\end{gathered}

This proves global minimality. Independent design columns restricted to positive-weight contributing rows force d=0 for equality and thus unique coefficients. With dependent columns, nonzero d satisfying Ad=0 can preserve the minimum.

학부 연결 · 선택Undergraduate bridge · optional

14. 계수가 여러 개여도 관측 적합값은 같을 수 있다14. Coefficients may vary while observed fitted values agree

최소해 β₁, β₂가 있다고 합시다. 두 계수의 차이를 d라 하면 최소점의 손실 차이 식은 Σwᵢ(aᵢᵀd)²/W=0입니다. 양수 가중치 행에서는 각 제곱이 0이어야 하므로 그 행의 두 적합값이 같습니다.

따라서 ‘역행렬이 없다’와 ‘적합값이 없다’는 같은 문장이 아닙니다. 중복 열은 계수 표현을 여러 개로 만들 수 있지만 같은 열공간으로의 투영은 유일할 수 있습니다. 단, 가중치 0인 행이나 기여 관측 설계행렬의 행공간 밖의 새 조합에서는 그 예측이 최소해마다 달라질 수 있습니다.

실습은 자유 계수를 0으로 두는 한 대표와 전체 영공간 방향을 함께 보여줍니다. 그 대표를 최소 노름 해라고 자동 부르지 않습니다. 유일하지 않은 해 중 어느 규칙으로 대표를 골랐는지 공개하는 것이 중요합니다.

For minimizers β₁ and β₂ with difference d, the loss-gap identity gives Σwᵢ(aᵢᵀd)²/W=0. Every positive-weight square must vanish, so their fitted values agree on contributing rows.

“No inverse” therefore differs from “no fitted values.” Redundant columns may give multiple coefficient representations but one column-space projection. At zero-weight rows or new combinations outside the observed row space, predictions can differ across minimizers.

The lab shows a free-coefficients-zero representative alongside all nullspace directions. It does not automatically call that representative a minimum-norm solution. State the convention used to choose one member of a nonunique set.

학부 연결 · 선택Undergraduate bridge · optional

15. 중복 열의 전체 계수 가족을 적는다15. Write the complete family for a redundant column

이제 별도 가정 네 행 X=(0, 1, 2, 3), Y=(0, 3, 5, 6)에 Z=1+2X를 붙입니다. 평면 예측 a+bX+cZ는 (a+c)+(b+2c)X로 줄어듭니다. 두 유효 계수만 자료에서 구할 수 있으며 c를 자유롭게 바꾸면서 a, b를 보정할 수 있습니다.

α=a+c,γ=b+2ca=α−c,b=γ−2cc∈R\begin{gathered}\alpha=a+c,\qquad\gamma=b+2c\\a=\alpha-c,\qquad b=\gamma-2c\\c\in\mathbb R\end{gathered}

이 네 행의 단순 직선은 α=1/2, γ=2입니다. 따라서 모든 c에 대해 a=1/2−c, b=2−2c가 같은 최적 적합값을 만듭니다. 영공간 방향 (−1, −2, 1)을 더해도 원 관측 예측은 같습니다. Z가 새로운 독립 정보를 추가하지 않았기 때문입니다.

자료 밖 조합 X=0, Z=0에서는 예측 a=1/2−c가 모든 실수가 됩니다. 이것은 여러 최소 계수 표현이 허용하는 집합이며 확률 포함률을 가진 신뢰구간이 아닙니다.

For a separate assumed table X=(0, 1, 2, 3), Y=(0, 3, 5, 6), add Z=1+2X. The plane becomes (a+c)+(b+2c)X, identifying only two effective coefficients while c remains free.

α=a+c,γ=b+2ca=α−c,b=γ−2cc∈R\begin{gathered}\alpha=a+c,\qquad\gamma=b+2c\\a=\alpha-c,\qquad b=\gamma-2c\\c\in\mathbb R\end{gathered}

The four-row simple fit has α=1/2, γ=2. Every c with a=1/2−c, b=2−2c therefore gives the same optimum. Adding null direction (−1, −2, 1) preserves observed predictions because Z added no independent column information.

At an off-relation query X=0, Z=0, prediction a=1/2−c spans all real numbers. This is a set across minimizing coefficient representations, not a confidence interval with probability coverage.

기초Foundations

16. 실습 B · 유일한 적합과 여러 계수를 함께 본다16. Lab B · Inspect unique fits and nonunique coefficients

기본 여덟 가정 행에서 계수 (1, 2, 3), SSE=4, MSE=1/2를 재현하세요. 각 열과 잔차의 가중 곱 합이 0인지 확인합니다. 절편 포함 여부와 실제로 손실에 들어가는 가용 행·가중치를 함께 읽습니다.

중복 열 예시로 바꾸면 계수의 전체 가족과 자유 방향이 나타납니다. 원 관계 위의 쿼리와 벗어난 쿼리를 비교하세요. 계수 표에 대표 숫자가 있다고 유일한 식별값이라고 읽거나, 표 밖의 모든 실수 예측 집합을 신뢰구간이라고 읽지 않습니다. Y가 상수이면 중심 R²의 분모가 0일 수 있습니다.

Reproduce coefficients (1, 2, 3), SSE=4, MSE=1/2 in the default eight assumed records and check every weighted column-residual product is zero. Read intercept choice together with contributing pairs and weights.

The redundant-column preset reveals a complete coefficient family and free directions. Compare queries on and off the observed relation. A representative number is not necessarily uniquely identified, and an all-real prediction set is not a confidence interval. Constant Y can make centered R² undefined.

기초Foundations

17. 통제는 먼저 예측 가능한 성분을 빼는 계산이다17. Controlling begins by subtracting a predictable component

부분회귀를 이해하려면 ‘통제했다’는 말을 두 번의 작은 회귀로 풀어 봅니다. 먼저 목표 설명변수 X를 Z와 상수로 예측합니다. 다음에 Y도 같은 Z와 상수로 예측합니다. 각 변수에서 그 예측을 빼면 Z의 선택된 선형 열공간으로 설명되지 않는 부분이 남습니다.

여기서 뺀 것은 Z가 현실에서 일으킨 원인 효과가 아니라 선택한 제곱손실의 선형 예측입니다. 어떤 정보를 통제에 넣을지 고르는 문제와, 정해진 열에 대해 잔차를 계산하는 문제를 구별합니다. 나쁜 통제·개입 뒤 변수의 위험은 METR08에서 별도 인과 구조로 살펴봅니다.

기본 여덟 행에서 목표는 X이고 통제 열은 상수와 Z입니다. 두 단계는 같은 여덟 행·같은 비중을 사용합니다. 이를 지키면 잔차 두 개의 간단한 회귀가 전체 평면의 X 계수를 정확히 복원합니다.

Unpack “controlling” into two small regressions. First predict target X from Z and a constant. Then predict Y from the same controls. Subtract each prediction, leaving components outside the selected linear control-column space.

The removed component is a squared-loss linear prediction, not an identified causal effect of Z. Choosing controls and computing residuals for declared columns are different problems. METR08 studies bad controls and post-intervention variables with additional causal structure.

For the eight-row default, the target is X and controls are the constant and Z. Both stages use identical rows and weights; their residual regression then recovers the full plane’s X coefficient exactly.

기초Foundations

18. X에서 Z의 직선 예측을 뺀다18. Subtract the control prediction from X

기본 표에서 평균 X=3/2, 평균 Z=1이고 중심 제곱합 Szz=4, 중심 곱 Sxz=4입니다. X를 Z에 회귀한 기울기는 4/4=1, 절편은 3/2−1=1/2입니다. 잔차화한 목표를 rₓ=X−1/2−Z로 정의합니다.

가정 목표 X의 잔차화 · 같은 여덟 행
행XZZ로 예측한 Xrₓ
1001/2−1/2
2013/2−3/2
3101/21/2
4113/2−1/2
5213/21/2
6225/2−1/2
7313/23/2
8325/21/2

rₓ의 합과 Z 곱 합은 0이며 제곱합은 6입니다. 이는 Z의 선형 예측을 제거한 뒤에도 X에 남는 변동이 있다는 뜻입니다. 숫자를 새로 측정한 것이 아니라 같은 원행의 변환값을 계산한 것이므로 그래프에서는 ‘잔차화한 X’라고 표시해야 합니다.

In the default table, mean X=3/2, mean Z=1, Szz=4 and Sxz=4. Regressing X on Z gives slope one and intercept 1/2. Define residualized target rₓ=X−1/2−Z.

Assumed target residualization · the same eight rows
RowXZPredicted X from controlsrₓ
1001/2−1/2
2013/2−3/2
3101/21/2
4113/2−1/2
5213/21/2
6225/2−1/2
7313/23/2
8325/21/2

Residualized X has zero sum, zero product sum with Z and squared sum six. Variation remains after removing the control prediction. These are transformed values on original rows, not newly measured observations, so label the axis “residualized X.”

기초Foundations

19. Y에서도 같은 통제 예측을 뺀다19. Subtract a prediction using the same controls from Y

평균 Y=7, 평균 Z=1, Szy=20, Szz=4이므로 Y를 상수와 Z에 회귀한 예측은 2+5Z입니다. 결과 잔차는 rᵧ=Y−2−5Z입니다. X와 Y에 같은 예측 계수를 쓰는 것이 아니라, 같은 통제 열에 각각 따로 최소제곱을 적용합니다.

가정 결과 Y의 잔차화
행YZZ로 예측한 Yrᵧ
1002-2
2517-2
34022
4517-2
58171
611212-1
710173
8132121

rᵧ의 합과 Z 곱 합도 0입니다. 그러나 두 단계의 잔차 자체가 같을 필요는 없습니다. 목표는 X에서 남은 변동과 Y에서 남은 변동 사이의 제곱손실 최적 기울기를 찾는 것입니다. 원행 순서가 어긋나면 잔차쌍도 다른 자료가 됩니다.

Mean Y=7, mean Z=1, Szy=20 and Szz=4 give control prediction 2+5Z. Define rᵧ=Y−2−5Z. Apply separate least-squares fits to X and Y using the same control columns; do not use one identical coefficient vector for both responses.

Assumed outcome residualization
RowYZPredicted Y from controlsrᵧ
1002-2
2517-2
34022
4517-2
58171
611212-1
710173
8132121

Residualized Y also has zero sum and zero product sum with Z. It need not equal residualized X. Find the slope between the remaining components while preserving source-row alignment; misaligned residual pairs define different data.

기초Foundations

20. 두 잔차를 원점 회귀하면 X 계수가 나온다20. Regressing the two residuals through the origin recovers the X slope

여덟 가정 행의 rₓ 제곱합은 6, rₓrᵧ 곱의 합은 12입니다. 두 잔차를 원점 회귀한 기울기는 12/6=2로 전체 평면의 X 계수와 같습니다. 이 두 축의 산점도는 잔차화한 관측 벡터를 보여 주며 원래 연습 시간과 원래 성과 점수의 산점도가 아닙니다.

b^=∑iwirx,iry,i∑iwirx,i2=126=2\begin{gathered}\widehat b=\frac{\sum_iw_ir_{x,i}r_{y,i}}{\sum_iw_ir_{x,i}^2}\\=\frac{12}{6}=2\end{gathered}

원점 회귀를 쓰는 이유는 부분회귀 정리의 목적함수에 있습니다. 상수 열이 통제에 있으면 두 잔차의 가중 평균이 0이므로 절편을 다시 추정해도 0이지만, 통제에 상수가 없는 일반 경우에도 정리의 마지막 단계는 원점 회귀입니다. 인터페이스의 절편 선택을 바꿨다면 이 차이를 확인하세요.

rᵧ−2rₓ는 (−1, 1, 1, −1, 0, 0, 0, 0)으로 전체 평면의 잔차와 완전히 같습니다. 따라서 SSE=4도 같습니다. 부분회귀는 다른 추정값을 근사해서 만드는 편법이 아니라 지정된 같은 OLS의 정확한 재표현입니다.

The assumed residualized target has squared sum six and cross-product with residualized Y twelve. Their through-origin slope is 12/6=2, matching the full plane’s X coefficient. The added-variable plot shows residualized vectors, not raw practice hours and raw outcomes.

b^=∑iwirx,iry,i∑iwirx,i2=126=2\begin{gathered}\widehat b=\frac{\sum_iw_ir_{x,i}r_{y,i}}{\sum_iw_ir_{x,i}^2}\\=\frac{12}{6}=2\end{gathered}

The final FWL stage is through the origin. If controls include a constant, both weighted residual means are zero and an extra fitted intercept is zero too. Without a constant in the controls, the general theorem still calls for an origin regression. Inspect this distinction when changing the intercept option.

Residuals rᵧ−2rₓ equal (−1, 1, 1, −1, 0, 0, 0, 0), exactly the full-plane residuals, with SSE four. Partial regression is an exact representation of the same specified OLS, not an approximate shortcut to another estimator.

학부 연결 · 선택Undergraduate bridge · optional

21. 전체 잔차가 왜 그대로 남는지 증명한다21. Prove why the full residual remains unchanged

이 증명은 같은 완전행 중 양수 가중치 좌표에 제한합니다. 통제 행렬을 C라고 쓰고 목표 열을 x라고 합시다. 전체 회귀는 y=Cγ+xb+e이며 e는 C의 각 열과 x에 가중 직교합니다. C의 열공간으로 투영한 값을 빼는 연산을 M_C로 두면 M_CC=0이고 M_Ce=e입니다. 따라서 양변에 같은 연산을 적용합니다.

ry=MCy,rx=MCxry=rxb+e∑iwirx,iei=0\begin{gathered}r_y=M_Cy,\qquad r_x=M_Cx\\r_y=r_xb+e\\\sum_iw_ir_{x,i}e_i=0\end{gathered}

마지막 식은 rₓ가 x에서 C의 선형조합을 뺀 값이라는 사실에서 나옵니다. e는 x와도 C와도 직교하므로 남은 벡터와도 직교합니다. rₓ의 가중 제곱합이 양수이면 그 원점 회귀 기울기가 유일하게 b입니다. 이것이 Frisch–Waugh–Lovell 정리의 한 목표 열 버전입니다.

통제 계수가 유일하지 않아도 통제 열공간의 적합값은 유일할 수 있어 M_C는 잘 정의됩니다. 역행렬 표기를 쓸 때에는 해당 통제 설계의 완전 랭크 조건이 추가로 필요합니다. 그 조건 없이 역행렬을 적고 계산을 계속하지 않습니다.

Restrict this proof to positive-weight coordinates of the same complete rows. Let C be the control design and x the target column. In y=Cγ+xb+e, e is weighted-orthogonal to both x and every C column. Let M_C subtract the control-column projection. Then M_CC=0 and M_Ce=e, giving the same operation on both sides.

ry=MCy,rx=MCxry=rxb+e∑iwirx,iei=0\begin{gathered}r_y=M_Cy,\qquad r_x=M_Cx\\r_y=r_xb+e\\\sum_iw_ir_{x,i}e_i=0\end{gathered}

The last moment holds because rₓ is x minus a control-column combination. Orthogonality of e to each component implies orthogonality to rₓ. Positive weighted rₓ squared sum uniquely identifies the origin-regression slope b: the one-target-column FWL theorem.

Control coefficients can be nonunique while their fitted projection remains unique, allowing M_C to be defined. An inverse formula additionally requires full rank of the relevant control design; do not silently use it without that condition.

기초Foundations

22. 가중치도 단계마다 같아야 한다22. Weights must match across all stages too

가용 행·작업 가중치가 고정되어 있으면 부분회귀 정리는 가중 최소제곱에도 적용됩니다. C에서 X와 Y를 빼는 두 단계와 마지막 잔차 회귀가 모두 같은 비음수 가중치와 양수 가중치 좌표를 사용해야 합니다. 한 단계만 다른 집단에 더 큰 비중을 주면 같은 투영의 분해가 아닙니다.

모든 w를 같은 양수 배로 바꾸면 세 단계의 최소 계수와 정규화 손실은 유지됩니다. 반면 특정 행만 두 배로 복사하면 그 행의 작업 비중이 커지고 목적함수도 달라질 수 있습니다. 복사된 행은 새로운 독립 관측이 아닙니다.

이 장의 기본 자료와 실제 사례는 작업 가중치 1을 씁니다. 원자료에 조사 가중치가 존재한다고 해서 자동으로 모두 적용한 결과라고 부르지 않습니다. 사용한 법칙과 원 표본 설계의 차이를 기록합니다.

FWL extends to weighted least squares when all stages share available rows and nonnegative weights on positive-weight coordinates. Residualize X, residualize Y and fit the final residual slope under that same law. Reweighting only one stage no longer decomposes the same projection.

A common positive multiplier on every weight preserves coefficients and normalized losses in all stages. Copying selected rows instead changes relative masses and can change the objective. Copies are not newly independent observations.

The default and actual cases use working weight one. Even if a source contains survey weights, do not claim they were automatically used. Document the working law separately from the original sampling design.

학부 연결 · 선택Undergraduate bridge · optional

23. X가 통제 열로 완전히 설명되면 분모가 0이다23. A target entirely spanned by controls has a zero denominator

모든 기여 행에서 X=1+2Z라면 X를 상수와 Z에 회귀한 잔차 rₓ는 모두 0입니다. 따라서 Σw rₓ²=0이고 마지막 부분회귀의 기울기 식은 0/0입니다. 이를 0으로 채워 목표 계수 0이라고 결론내리면 안 됩니다.

전체 예측 a+bX+cZ는 (a+b)+(2b+c)Z로 줄어듭니다. b를 바꾸어도 다른 두 계수를 함께 조정하면 같은 적합값을 만들 수 있습니다. 목표 계수 b는 유일하지 않지만 관측 열공간의 예측은 유일할 수 있습니다.

반대로 통제 열끼리 중복되어도 X가 그 열공간에 포함되지 않으면 rₓ에 변동이 남고 목표 계수는 유일할 수 있습니다. ‘전체 계수의 유일성’과 ‘특정 목표 계수의 유일성’은 다른 질문입니다.

If X=1+2Z on every contributing row, residualizing X on the constant and Z gives rₓ=0. The final denominator Σw rₓ² vanishes, producing 0/0 rather than an identified zero slope.

The full predictor a+bX+cZ becomes (a+b)+(2b+c)Z. Changing b and compensating with the other coefficients can preserve all fits. The target coefficient is nonunique even when the observed column-space projection is unique.

Conversely, redundant controls do not necessarily destroy target identification: if X lies outside their span, residualized target variation can remain. Full coefficient uniqueness and one target coefficient’s uniqueness are distinct questions.

기초Foundations

24. 실습 C · 잔차화한 두 축과 전체 회귀를 맞춘다24. Lab C · Match residualized axes to the full regression

기본 여덟 가정 행에서 X를 목표로 골라 rₓ 제곱합 6, rₓrᵧ 곱 합 12, 부분 기울기 2와 동일 SSE=4를 확인합니다. 원행별 두 잔차와 최종 잔차를 손계산 표와 대조하세요. 두 잔차의 축 단위는 원래 X와 Y의 단위이며 값의 의미는 잔차화된 성분입니다.

목표 열을 바꾸면 제거하는 통제 공간도 바뀝니다. 중복 열 예시에서는 목표 열이 통제에 완전히 들어갈 때 기울기 미식별과 모든 실수 해를 확인합니다. 한 대표 계수가 출력되어도 잔차 분모 0을 숨기지 않습니다. 이 실습은 인과효과를 검정하거나 새 모집단 성능을 평가하지 않습니다.

Choose X as target in the eight-row default and verify residual square sum six, cross-product twelve, partial slope two and matching SSE four. Compare rowwise residualized X/Y and final residuals with hand calculations. Axes retain original units but represent residualized components.

Changing targets changes the control space. In the redundant-column preset, inspect an unidentified slope and all-real solutions when the target lies in the controls’ span. A representative coefficient must not conceal a zero residualized denominator. The lab performs neither a causal test nor external-population prediction evaluation.

기초Foundations

25. 열 하나와 열 둘은 다른 근사 문제이다25. One-column and two-column models are different approximation problems

기본 여덟 행에서 X만 쓴 직선은 11/5+(16/5)X이고, X와 Z를 쓴 평면은 1+2X+3Z입니다. 둘 다 같은 행에서 제곱손실을 최소화하지만 함수 집합이 다릅니다. 첫 모형의 X 기울기 16/5와 둘째의 2는 같은 계산 대상을 두 번 틀리게 구한 것이 아닙니다.

전체 평면의 평균 변화는 X와 함께 변하는 Z의 예측 성분과 연결될 수 있습니다. 누락한 Z를 X로 회귀한 기울기를 δ라고 하면 다음 절의 정확 항등식이 두 투영을 연결합니다. 이 연결은 유한 표의 산술이고 아직 진짜 인과 계수가 어느 것인지 결정하지 않습니다.

설명 열을 늘리면 같은 가용 표·손실에서 최소 SSE는 커지지 않습니다. 작은 함수 집합이 큰 집합 안에 포함되기 때문입니다. 이는 새로운 사람·다른 시점 예측이 자동 개선된다거나 더 인과적인 모형이 되었다는 결론과 다릅니다.

On the same eight rows, the X-only line is 11/5+(16/5)X while the X, Z plane is 1+2X+3Z. Both minimize squared loss, but over different function classes. Slopes 16/5 and two are not two inconsistent calculations of one unchanged target.

The short line combines associations involving Z that co-varies with X. The next section links these projections exactly using slope δ from regressing Z on X. That finite-table identity does not decide which coefficient is a true causal parameter.

Adding columns cannot increase minimum SSE on the same available table under the same loss: the smaller function class is contained in the larger one. It does not automatically improve new-unit/future prediction or causal validity.

학부 연결 · 선택Undergraduate bridge · optional

26. 누락 전후의 기울기를 항등식으로 연결한다26. Connect short and long slopes with an identity

절편 포함의 긴 모형 y=a+bX+cZ+e를 같은 표에서 계산하고 e가 상수·X·Z에 직교한다고 합시다. 양수 가중치 합과 양수 X 변동이 있고, 여기서는 긴 모형의 계수가 유일하다고 가정합니다. 양변에서 X와의 중심 곱을 취하면 e의 항이 사라집니다.

bshort=b+cδδ=∑iwi(xi−xˉw)(zi−zˉw)∑iwi(xi−xˉw)2\begin{gathered}b_{\rm short}=b+c\delta\\\delta=\frac{\sum_iw_i(x_i-\bar x_w)(z_i-\bar z_w)}{\sum_iw_i(x_i-\bar x_w)^2}\end{gathered}

차이 cδ가 0이 되는 충분한 경우는 c=0 또는 δ=0입니다. 그렇다고 모든 자료에서 통제를 추가해도 상관없는 이유가 되는 것은 아닙니다. 어떤 결과·가중 법칙·표본·함수 집합에서 계산한 식인지 유지해야 합니다.

이 항을 ‘누락변수 편향’이라고 인과적으로 부르려면 긴 모형의 b가 어떤 구조적 표적과 연결되는지부터 정당화해야 합니다. 여기서는 두 기술적 선형 투영의 차이라고 부릅니다. 분모나 랭크 조건이 깨졌을 때 같은 식을 유일한 계수 공식으로 쓰지 않습니다.

Fit the long intercept model y=a+bX+cZ+e on one table, with residuals orthogonal to its columns. Assume positive available weight and X variation and, here, unique long-model coefficients. Taking centered products with X eliminates the e term.

bshort=b+cδδ=∑iwi(xi−xˉw)(zi−zˉw)∑iwi(xi−xˉw)2\begin{gathered}b_{\rm short}=b+c\delta\\\delta=\frac{\sum_iw_i(x_i-\bar x_w)(z_i-\bar z_w)}{\sum_iw_i(x_i-\bar x_w)^2}\end{gathered}

Sufficient ways to make cδ zero include c=0 or δ=0. Keep the outcome, weights, subset and function class fixed; these conditions are not a universal reason to ignore controls.

Calling this difference causal omitted-variable bias requires an additional link from long-model b to a structural target. Here it is a difference between descriptive projections. Do not apply a unique-coefficient formula after its denominator or rank conditions fail.

기초Foundations

27. 8행에서 16/5=2+3×2/5를 계산한다27. Verify 16/5=2+3×2/5 in eight rows

기본 표의 중심 제곱합 Sxx=10, Szz=4, 중심 곱 Sxz=4입니다. Z를 X에 회귀한 기울기 δ=4/10=2/5입니다. 긴 모형의 b=2, c=3을 대입하면 짧은 기울기는 2+3×2/5=16/5입니다. 같은 숫자를 직접 Y와 X의 중심 곱 32를 10으로 나누어도 얻습니다.

bshort−b=65Lshort=165Llong=12\begin{gathered}b_{\rm short}-b=\frac65\\L_{\rm short}=\frac{16}{5}\\L_{\rm long}=\frac12\end{gathered}

짧은 모형 SSE는 128/5, 긴 모형은 4입니다. 전체 중심 SST=128이므로 R²는 각각 4/5와 31/32입니다. 표 안의 적합 개선을 계산한 것이며 임의 인과 모형 선택 기준이나 표본 밖 성능의 보증으로 쓰지 않습니다.

The default centered sums are Sxx=10, Szz=4, Sxz=4. Regressing Z on X gives δ=2/5. Long slopes b=2, c=3 yield short slope 2+3×2/5=16/5, also obtained directly from Sxy/Sxx=32/10.

bshort−b=65Lshort=165Llong=12\begin{gathered}b_{\rm short}-b=\frac65\\L_{\rm short}=\frac{16}{5}\\L_{\rm long}=\frac12\end{gathered}

Short SSE is 128/5 and long SSE four. With centered SST=128, R² values are 4/5 and 31/32. These are in-table fit comparisons, not automatic causal-model selection rules or guarantees about new data.

기초Foundations

28. 중간 단계에서 행을 몰래 늘리지 않는다28. Do not silently change rows between stages

별도 가정 네 원행 (X, Z, Y)=(0, 0, 0), (1, 0, 2), (2, 1, 4), (3, 1, 미관측)을 보겠습니다. 전체 Y 회귀의 가용 행은 앞의 세 개입니다. 같은 세 행에서 X를 상수·Z에 회귀하면 X 잔차는 (−1/2, 1/2, 0), Y 잔차는 (−1, 1, 0)이어서 부분 기울기는 2입니다.

Y가 없는 네 번째 행까지 X 회귀에만 넣으면 첫 세 행의 X 잔차는 (−1/2, 1/2, −1/2)이 됩니다. Y 잔차는 그대로 둔 채 원점 회귀하면 곱 합 1을 제곱합 3/4로 나누어 4/3을 얻습니다. 이는 앞 세 행 전체 회귀의 계수 2를 재현하지 않습니다.

네 번째 원행을 삭제할 필요는 없습니다. 원표에 보존하면서 정한 전체 회귀와 모든 부분 단계의 기여 행을 맞추면 됩니다. 다른 정보 사용 규칙을 연구할 수는 있지만, 그것을 같은 유한 OLS의 정확 FWL 분해라고 부르면 안 됩니다.

Consider four separate assumed source rows (X, Z, Y)=(0, 0, 0), (1, 0, 2), (2, 1, 4), (3, 1, missing). The full outcome regression uses the first three. Residualizing both variables on the constant and Z within those rows gives X residuals (−1/2, 1/2, 0) and Y residuals (−1, 1, 0), hence partial slope two.

If only the X stage also uses row four, its first-three residuals become (−1/2, 1/2, −1/2). Keeping the former Y residuals then gives origin slope 1/(3/4)=4/3, failing to reproduce the three-row full coefficient two.

Preserve row four in the source table while aligning contributing rows across every stage. Other information-use rules may be studied, but they are not the exact FWL decomposition of this unchanged finite OLS.

대학원 연결Graduate bridge

29. 통제 계수가 여러 개여도 목표 기울기는 유일할 수 있다29. A target slope can be unique with redundant controls

별도 가정 네 행에서 (X, Z)는 (0, 0), (1, 0), (0, 1), (1, 1)이고 Y=1+2X+3Z입니다. Z₂=2Z를 추가하면 긴 모형의 Z와 Z₂ 계수는 각각 유일하지 않습니다. 그러나 X는 상수·Z·Z₂의 열공간에 들어가지 않아 X 계수 2는 유일합니다.

통제로 X를 예측하면 Z 집단마다 평균 X=1/2이므로 X 잔차는 (−1/2, 1/2, −1/2, 1/2)입니다. 제곱합은 1로 양수이고 Y 잔차는 그 두 배입니다. 따라서 부분 기울기 2를 정확히 구할 수 있습니다.

계수 가족은 상수 1, 목표 X 계수 2를 유지하면서 c₁+2c₂=3을 만족합니다. 하나의 순위나 결측 계수 표시만 보고 모든 목표가 식별 불가능하다고 판단하지 마세요. 실제로 어떤 열 조합이 중복되는지와 관심 계수가 그 자유 방향에서 움직이는지 봅니다.

For a separate assumed four-row table, (X, Z)=(0, 0), (1, 0), (0, 1), (1, 1) and Y=1+2X+3Z. Adding Z₂=2Z makes the two control coefficients nonunique, but X lies outside their constant/control span, leaving its coefficient two uniquely identified.

The controls predict X=1/2 within each Z group. Target residuals (−1/2, 1/2, −1/2, 1/2) have squared sum one; outcome residuals are twice these values. The partial slope is therefore exactly two.

The family fixes intercept one and target slope two while c₁+2c₂=3. A rank summary or an unavailable coefficient display does not imply every target is unidentified. Inspect which columns are redundant and whether the target moves along their free directions.

기초Foundations

30. 잔차화한 축은 현실의 새 실험이 아니다30. Residualized axes are not a new real-world experiment

FWL 산점도에서 X축은 연습 시간 자체가 아니라 통제 열로 예측한 시간을 뺀 값입니다. 음수가 나와도 실제 시간이 음수라는 뜻이 아닙니다. ‘그 통제 조합의 선형 예측보다 작은 X’라는 상대적 성분입니다. Y 잔차도 원 점수가 아니라 예측 대비 차이입니다.

잔차화는 원 변수의 단위는 유지하지만 정보·해석을 바꿉니다. 이 과정을 했다고 남은 X가 무작위 배정되거나 보이지 않는 모든 교란이 제거되는 것은 아닙니다. 측정하지 않은 변수가 두 잔차와 연결될 수도 있습니다.

학습 보고서에는 원 열의 이름·기간·단위, 통제 열 목록, 같은 가용 쌍 조건과 사용 가중치를 적습니다. 그 다음에 부분 기울기가 함수 안의 어떤 예측 차이를 뜻하는지 쓰고, 인과 해석은 별도 설계와 연결되는 경우에만 추가합니다.

The FWL horizontal axis is X minus its control prediction, not practice time itself. A negative residual does not mean negative hours; it means X is below that linear control prediction. Residualized Y is also a prediction-relative difference, not the raw score.

Residualization preserves physical units but changes the represented component. It does not randomize the remaining X or remove every unmeasured confounder. Unobserved variables can remain related to both residualized quantities.

Report original names, periods and units, control columns, shared available rows and weights. Then describe the coefficient’s prediction meaning within the function; add a causal interpretation only with separately justified design arguments.

학부 연결 · 선택Undergraduate bridge · optional

31. 한 항등식이 표준오차까지 모두 정해 주지는 않는다31. One coefficient identity does not settle every standard error

같은 가용 행·가중치·함수 집합에서 FWL 계수와 잔차는 정확히 일치합니다. 그러나 부분 회귀를 별도 새 자료처럼 소프트웨어에 넣고 기본 자유도나 표준오차를 아무 생각 없이 읽으면 전체 모형의 추론과 달라질 수 있습니다. 추정한 통제 계수와 원 설계·의존 구조를 고려해야 합니다.

이 장은 표 안의 투영과 잔차 항등식을 다룹니다. 미지 모집단에서 어떤 확률 법칙으로 행들이 생성됐는지, 불편성·일치성·점근 정규성·군집 추론을 언제 쓸지는 METR04~05에서 나눠 다룹니다. 원행을 복제하거나 잔차를 만들었다고 독립 정보가 늘지는 않습니다.

FWL은 p값을 더 작게 만드는 장치나 필요한 인과 가정을 대신하는 장치가 아닙니다. 동일 계산의 의미를 이해하고 검산하는 도구로 먼저 사용합니다.

Under identical rows, weights and function class, FWL coefficients and residuals match exactly. But feeding residuals to software as if they were a new dataset and blindly accepting default degrees of freedom or standard errors can differ from full-model inference. Account for fitted controls, design and dependence.

This chapter concerns finite-table projections and identities. METR04–05 distinguish sampling laws, unbiasedness, consistency, asymptotic normality and clustered inference. Copying rows or constructing residuals creates no new independent information.

FWL is neither a device to shrink p-values nor a substitute for causal assumptions. Use it first to understand and check an unchanged calculation.

기초Foundations

32. 실습 D · 짧은 모형과 긴 모형의 차이를 계산한다32. Lab D · Calculate the short-versus-long change

기본 여덟 가정 행에서 짧은 기울기 16/5, 긴 목표 기울기 2, 통제 계수 3, Z의 X 회귀 기울기 2/5를 확인합니다. 16/5=2+3×2/5의 두 변이 정확히 같은지 분수로 비교하세요. 전체와 짧은 모형의 손실도 함께 읽습니다.

결측과 가중치를 바꾸어도 비교는 같은 완전행에서 수행합니다. 전체 두 설명 열이 중복되면 고유한 긴 계수를 요구하는 이 실습의 항등식 표시는 미정의일 수 있습니다. 이 표시는 전체 적합값이 존재하지 않는다는 뜻이 아닙니다. 이전 실습의 전체 해 가족과 구별해서 읽습니다.

For the default eight assumed rows, inspect short slope 16/5, long target slope two, control coefficient three and Z-on-X slope 2/5. Compare both sides of 16/5=2+3×2/5 as exact fractions and read the two objective values.

Changes to availability or weights still use the same complete subset in both models. Redundant predictors can make this lab’s unique-long-coefficient identity undefined without eliminating the full fitted projection. Distinguish that condition from the complete solution families in the earlier lab.

기초Foundations

33. 중심을 옮겨도 같은 원행의 적합은 유지한다33. Centering can preserve every original-row fit

기본 표의 X 평균 3/2와 Z 평균 1을 빼서 X′=X−3/2, Z′=Z−1로 둡니다. 평면 1+2X+3Z에 다시 대입하면 7+2X′+3Z′입니다. 새 절편 7은 원래 두 설명변수의 평균점에서 예측한 Y입니다.

X′=X−32,Z′=Z−1Y^=7+2X′+3Z′\begin{gathered}X^\prime=X-\frac32,\quad Z^\prime=Z-1\\\widehat Y=7+2X^\prime+3Z^\prime\end{gathered}

Y′=Y−7도 함께 쓰면 새 절편은 0입니다. 이것은 원래 자료에서 절편을 임의로 제거한 것과 다릅니다. 같은 가용 행·가중치의 평균을 빼고 원 단위로 복원한 결과입니다. 중심화만으로 중복 열의 정보가 새로 생기거나 인과 교란이 없어지는 것은 아닙니다.

가중 평균을 사용한다면 세 변수 모두 같은 작업 법칙의 평균을 사용합니다. 한 변수만 전체 원행 평균, 다른 변수는 결과 가용행 평균으로 처리하면 정한 OLS의 평균점 계산과 달라집니다.

Center X by 3/2 and Z by one in the default table. Substitution transforms 1+2X+3Z into 7+2X′+3Z′. The new intercept seven predicts Y at the original two-variable mean point.

X′=X−32,Z′=Z−1Y^=7+2X′+3Z′\begin{gathered}X^\prime=X-\frac32,\quad Z^\prime=Z-1\\\widehat Y=7+2X^\prime+3Z^\prime\end{gathered}

Also centering Y′=Y−7 gives intercept zero. This is not arbitrary removal of the original intercept: use means from the same rows and weights and restore original units. Centering does not create information in redundant columns or eliminate causal confounding.

Weighted centering must use the same working law for every variable. Mixing all-source means with outcome-available means changes the specified mean-point calculation.

학부 연결 · 선택Undergraduate bridge · optional

34. 각 열의 척도를 바꾼 계수를 유도한다34. Derive coefficients under separate column scales

절편을 포함하고 각 설명 열을 X′ⱼ=tⱼ+sⱼXⱼ, 결과를 Y′=tᵧ+sᵧY로 바꿉니다. 모든 척도는 0이 아니라고 합시다. 원 예측 함수에 Xⱼ=(X′ⱼ−tⱼ)/sⱼ를 넣으면 새 계수를 얻습니다.

bj′=sysjbja′=ty+sya−∑jbj′tjei′=syeiL′=sy2L\begin{gathered}b_j^\prime=\frac{s_y}{s_j}b_j\\a^\prime=t_y+s_ya-\sum_jb_j^\prime t_j\\e_i^\prime=s_ye_i\\L^\prime=s_y^2L\end{gathered}

설명 열을 시간에서 분으로 바꾸면 해당 기울기는 원 기울기의 1/60이 됩니다. 통제 열의 역변환 가능한 단위만 바꾸면 같은 통제 열공간을 다른 좌표로 쓰므로 원 단위의 부분 기울기는 유지됩니다. 결과 단위를 100배 하면 잔차는 100배, MSE는 10,000배입니다.

음의 척도는 축 방향을 뒤집는 연습입니다. 일반적인 단위 변환은 양의 척도로 시작합니다. 0 척도는 원 정보를 잃어 역변환할 수 없으므로 이 대응에서 제외합니다.

With an intercept, transform each predictor as X′ⱼ=tⱼ+sⱼXⱼ and the outcome as Y′=tᵧ+sᵧY, with every scale nonzero. Substitute Xⱼ=(X′ⱼ−tⱼ)/sⱼ into the original predictor.

bj′=sysjbja′=ty+sya−∑jbj′tjei′=syeiL′=sy2L\begin{gathered}b_j^\prime=\frac{s_y}{s_j}b_j\\a^\prime=t_y+s_ya-\sum_jb_j^\prime t_j\\e_i^\prime=s_ye_i\\L^\prime=s_y^2L\end{gathered}

Hours-to-minutes conversion divides the corresponding slope by sixty. Invertible unit changes of controls re-express the same control space, preserving the original-unit partial coefficient. Multiplying Y units by 100 multiplies residuals by 100 and MSE by 10,000.

Negative scales reverse coordinate orientation; ordinary unit changes begin with positive scales. A zero scale loses information and is excluded from this invertible correspondence.

대학원 연결Graduate bridge

35. 특이한 경우에는 전체 해 가족을 대응시킨다35. Map whole families in a singular model

별도 가정 관계 Z=1+2X에서 유효 직선이 1/2+2X라고 합시다. (a, b, c)=(1/2, 2, 0)과 (0, 1, 1/2)는 모두 같은 관측 예측을 만듭니다. 어떤 자유 계수를 0으로 골랐는지에 따라 대표 숫자는 다를 수 있습니다.

역변환 가능한 단위 변경은 한 대표뿐 아니라 전체 최소해 가족을 새 가족으로 옮깁니다. 같은 대표 규칙을 유지하는 이번 열별 아핀 변환에서 대표 계수가 일치하는지도 확인할 수 있지만, 검산의 핵심은 전체 해가 대응하고 각 기여 원행의 원 단위 예측이 보존된다는 점입니다.

변환 후 계수 표에서 다른 숫자를 보았다고 곧 계산 오류라고 판단하지 않습니다. 열 순서·단위·중심·대표 선택 규칙을 확인합니다. 반대로 같은 적합값이 나와도 개별 계수가 유일해졌다는 뜻은 아닙니다. 단위 변경이 원래의 중복 정보를 해결하지 않습니다.

Suppose a separate assumed relation Z=1+2X yields effective line 1/2+2X. Coefficients (1/2, 2, 0) and (0, 1, 1/2) give identical observed predictions. Different conventions for fixing a free coefficient can select different representatives.

An invertible coordinate change maps the entire minimizing family, not just one representative. One may also check agreement under the same convention for these separate-column affine changes, but the essential invariants are family correspondence and restored fits on contributing original rows.

Different displayed coefficients need not indicate an arithmetic error: inspect column order, units, centering and representative convention. Identical fits do not make individual coefficients unique either. Unit changes cannot resolve redundant information.

학부 연결 · 선택Undergraduate bridge · optional

36. 새 조합의 예측이 유일한지도 따로 본다36. Check uniqueness of predictions at new combinations separately

특이 모형의 전체 해를 β=β₀+Σtₖvₖ라고 쓰면 새 설계행 a*의 예측은 a*ᵀβ₀+Σtₖa*ᵀvₖ입니다. 모든 자유 방향에서 a*ᵀvₖ=0이면 예측이 하나로 정해집니다. 하나라도 0이 아니면 자유 tₖ가 모든 실수를 움직일 수 있어 예측 집합도 모든 실수입니다.

β=β0+∑ktkvka∗Tβ=a∗Tβ0+∑ktka∗Tvk\begin{gathered}\beta=\beta_0+\sum_kt_kv_k\\a_*^\mathsf T\beta=a_*^\mathsf T\beta_0+\sum_kt_k a_*^\mathsf Tv_k\end{gathered}

Z=1+2X 예에서 자유 방향은 (−1, −2, 1)입니다. 새 조합도 Z=1+2X를 만족하면 그 방향과의 곱이 0이지만, X=0, Z=0은 −1이어서 유일한 예측이 없습니다. 관측 행의 열 관계를 벗어난 질문입니다.

이 모든 실수 집합은 동등한 최소 계수들의 예측 차이이며 신뢰구간이 아닙니다. 반대로 예측이 유일해도 실제 새 환경의 조건부 평균이나 예측 성능이 확인된 것은 아닙니다.

Write a singular solution family as β=β₀+Σtₖvₖ. At a new design row a*, prediction is a*ᵀβ₀+Σtₖa*ᵀvₖ. If every free-direction product vanishes, prediction is unique. Otherwise one unrestricted tₖ lets the prediction span all real numbers.

β=β0+∑ktkvka∗Tβ=a∗Tβ0+∑ktka∗Tvk\begin{gathered}\beta=\beta_0+\sum_kt_kv_k\\a_*^\mathsf T\beta=a_*^\mathsf T\beta_0+\sum_kt_k a_*^\mathsf Tv_k\end{gathered}

For Z=1+2X, null direction (−1, −2, 1) has zero product with on-relation queries. Query X=0, Z=0 instead gives −1, leaving prediction nonunique.

This all-real set reflects equivalent minimizers, not a confidence interval. A unique model prediction also does not certify a new environment’s conditional mean or prediction performance.

기초Foundations

37. 상수 열이 없는 함수 집합도 명시한다37. State when the function class omits a constant

절편을 따로 넣지 않으면 설계행렬의 열공간이 달라질 수 있습니다. 가정 X=(1, 2), Y=(2, 3)의 원점 회귀는 기울기 8/5, 잔차 (2/5, −1/5)이고 합은 1/5입니다. 상수 열을 추가하면 Y=1+X가 두 행을 정확히 맞춥니다.

상수 열이 없는 일반 FWL에서도 X와 Y를 같은 통제 열공간에서 잔차화한 뒤 원점 회귀합니다. 통제에 다른 열로 상수가 이미 들어 있다면 가중 잔차 평균 0이 나올 수 있지만, ‘추가 절편 없음’이라는 옵션만으로 이를 보장하지 않습니다.

열을 뺀 뒤에도 절편 포함의 평균점 통과·중심 SST 분해를 무조건 가져오지 마세요. 어떤 열이 실제로 상수 방향을 포함하는지 보고, 맞는 정규방정식과 손실을 다시 확인합니다.

Omitting an added intercept can change the design-column space. For assumed X=(1, 2), Y=(2, 3), origin regression gives slope 8/5 and residuals 2/5, −1/5, whose sum is 1/5. Adding a constant allows exact line Y=1+X.

General FWL without a constant still residualizes both variables on the same controls and then regresses through the origin. If another control already spans a constant, zero weighted residual means can occur, but the “no added intercept” option alone does not guarantee them.

Do not automatically carry over intercept-model mean-point or centered-SST identities after removing columns. Inspect the actual constant direction, normal equations and objective.

기초Foundations

38. 모든 집단 더미와 상수는 한 방향을 중복한다38. All group dummies plus a constant repeat one direction

두 집단 A, B를 표시하는 D_A, D_B가 상호 배타적이고 모든 가용 행이 둘 중 하나에 속하면 D_A+D_B=1입니다. 상수와 두 더미를 모두 넣으면 세 열은 독립이 아닙니다. 그렇다고 집단 평균의 적합값이 사라지는 것은 아닙니다.

가정 집단 평균이 A에서 4, B에서 7이면 상수 t와 계수 (4−t, 7−t)가 모두 같은 집단 예측을 만듭니다. A 더미를 빼고 상수와 B 더미만 쓰면 절편 4, B 계수 3입니다. 상수를 빼고 두 더미를 쓰면 계수는 각각 4와 7입니다.

기준 더미를 뺀 것은 A의 원행을 삭제한 것이 아니라 같은 함수 집합을 덜 중복된 좌표로 쓴 것입니다. 어느 집단이 관측되지 않거나 양수 가중치를 갖지 않으면 그 집단의 평균은 별도 미정의 문제입니다. 빈 집단을 값 0으로 채워 인위적인 비교를 만들지 않습니다.

If two mutually exclusive dummies cover every available row, D_A+D_B=1. A constant plus both dummies is therefore redundant, without eliminating fitted group means.

For assumed group means four and seven, intercept t with dummy slopes 4−t and 7−t always gives the same fits. Dropping the A dummy gives intercept four and B contrast three. Dropping the constant and retaining both dummies gives coefficients four and seven.

Omitting a reference dummy does not delete that group’s records; it reparameterizes the same function class. An unobserved or zero-positive-weight group instead has no identified available mean. Do not fill an empty group with zero to manufacture a comparison.

학부 연결 · 선택Undergraduate bridge · optional

39. 정확한 의존과 수치적으로 가까운 의존을 구별한다39. Separate exact dependence from numerical near-dependence

Z=1+2X는 정확한 열 중복입니다. Z=1+2X+아주 작은 변동이면 열이 독립일 수 있지만 계수 계산이 작은 입력 변화에 민감할 수 있습니다. 이 두 상황을 같은 오류 메시지로 묶으면 정보와 정밀도 문제를 혼동합니다.

작은 표에서는 분수·소거로 정상방정식과 해 가족을 검산할 수 있습니다. 실제 부동소수점 계산에서는 QR·SVD 같은 분해와 랭크 판단 기준을 함께 확인합니다. Gram 행렬을 만들면 조건수가 악화될 수 있어 역행렬을 명시적으로 구하는 것만을 실무 기본 절차로 삼지 않습니다.

정확 분수로 원 입력의 의존을 계산한 것과, 측정 자체가 무오차라는 것은 다릅니다. 원 자료의 반올림·측정·개정·함수 선택은 남습니다. 계산 정밀도·통계 추론·인과 식별을 각각 기록합니다.

Z=1+2X is exact dependence. With a small extra variation, columns can be independent yet coefficients sensitive to tiny input changes. These are distinct information and precision problems.

Use fractions and elimination to check small normal systems and solution families. In floating-point work, inspect QR/SVD decompositions and rank tolerances; forming a Gram matrix can worsen conditioning, so explicit inversion is not the sole practical procedure.

Exact dependence of retained numeric inputs does not establish error-free measurement. Source rounding, measurement, revisions and function choices remain. Record arithmetic precision, statistical inference and causal identification separately.

기초Foundations

40. 실습 E · 계수 가족과 원 단위 예측을 복원한다40. Lab E · Restore coefficient families and original-unit fits

기본 두 설명 열의 척도·중심과 Y 척도를 바꾸고 새 계수 공식을 직접 확인합니다. 각 기여 행에서 새 단위로 예측한 값을 원래 Y 단위로 되돌리면 원 적합값과 같아야 합니다. MSE는 Y 척도의 제곱 배로 바뀝니다.

중복 열 예시에서도 전체 영공간 가족을 변환합니다. 대표 계수만 비교하는 대신 원행 예측과 자유 방향을 함께 읽습니다. 이 실습은 절편을 포함하고 각 척도는 0이 아닌 경우에 한합니다. 0 척도는 정보를 없애므로 역변환 오류로 표시합니다.

Change scales and shifts of both predictors and Y, then verify the coefficient mapping. Every contributing-row prediction restored to original Y units must match the original fit. MSE scales by the squared Y factor.

Transform the entire nullspace family in a redundant-column example too. Inspect original-row predictions and free directions rather than only representative coefficients. This lab includes an intercept and requires nonzero scales; zero loses information and makes the inverse unavailable.

기초Foundations

41. 실제 국가 · 수명과 ILO 모형 실업률을 함께 사용한다41. Actual countries · longevity with ILO-model unemployment

20일 보관한 World Bank 원 API에서 2024년 16개국의 1인당 실질 GDP, 기간 기대수명, 실업률을 국가·연도·지표 코드로 연결합니다. 실업률 SL.UEM.TOTL.ZS는 ILO 모형 추정치라고 표시합니다. GDP 단위는 2015년 불변 USD/명, 수명은 년, 실업률은 퍼센트입니다. 세 지표가 가용한 16개 국가에 같은 작업 비중을 줍니다.

수명과 실업률을 함께 쓴 기술적 회귀에서 수명 계수는 약 4,244.002, 실업률 계수는 약 899.539입니다. 수명만 쓴 기울기 약 3,537.588과 대상 함수 집합이 다릅니다. 실업률 계수가 양수라는 이유로 실업을 늘리는 정책이 생산을 올린다고 해석하지 않습니다. 국가 선택·집계 차이·다른 특성과 역방향 설명이 남습니다.

잔차화 산점도는 수명과 GDP에서 상수·실업률의 선형 예측을 각각 뺀 값입니다. 원 지표의 새 관측이 아니라 같은 국가 행의 가공값입니다. 인구 가중 개인 임금이나 수명 개입 효과를 추정한 결과가 아닙니다.

Join 2024 real GDP/person, period longevity and unemployment for sixteen countries in the World Bank API retained on 20 October. Explicitly label SL.UEM.TOTL.ZS as an ILO modeled estimate. Units are constant-2015 USD/person, years and percent, with working weight one per complete country.

The descriptive two-predictor fit gives longevity slope approximately 4,244.002 and unemployment slope approximately 899.539, compared with longevity-only slope approximately 3,537.588. Function classes differ. A positive unemployment coefficient does not identify a GDP benefit from increasing unemployment; selection, aggregation, other characteristics and reverse explanations remain.

The added-variable plot subtracts constant/unemployment predictions from longevity and GDP on the same country rows. These are derived components, not new observations, population-weighted personal wages or identified longevity-intervention effects.

기초Foundations

42. 실제 개인 · 교육과 연령을 함께 읽는다42. Actual people · schooling and recorded age together

Card 공개 nls.dat의 교육 연수 ed76, 1976년 연령 age76, 원 절단 로그임금 lwage76을 읽습니다. 연령은 원 24~25열이며 24~34세 범위의 기록입니다. 경력을 새로 관측했다고 이름을 바꾸지 않습니다. 원 3,613행과 미관측 로그 603행을 보존하고 같은 3,010 완전행에서 계산합니다.

교육과 연령을 함께 쓴 교육 기울기는 약 0.052511, 연령 기울기는 약 0.040657입니다. 교육만 쓴 약 0.052094와의 차이는 같은 가용 행의 기술적 투영 차이입니다. 연령을 추가했다고 관측하지 않은 모든 능력·선택 차이가 제거되거나 교육 인과 수익률이 식별된 것은 아닙니다.

작업 비중은 1이며 원 조사 가중치를 적용한 대표 모집단 추정이라고 부르지 않습니다. 1976년 남성 코호트·원 결과의 절단·다른 가용성과 시점을 보존합니다. 부분 기울기의 단위는 교육 1년당 원 로그임금이며, 로그의 센트/시간 단위를 달러/시간으로 재표현하는 것과 결과 자체를 바꾸어 채우는 것을 구별합니다.

Read ed76 schooling, age76 recorded age and source-trimmed lwage76 from Card’s public nls.dat. Age occupies original columns 24–25 and ranges from 24 to 34 years. Do not relabel it as newly observed work experience. Preserve 3,613 source rows and 603 unavailable logs, computing on the same 3,010 complete rows.

The two-predictor schooling slope is approximately 0.052511 and age slope approximately 0.040657, compared with schooling-only slope approximately 0.052094. This is a descriptive projection change on identical available rows. Adding age does not remove every unmeasured ability/selection difference or identify a causal schooling return.

Working weights one are not a claim that original survey weights were applied for representative population inference. Preserve the 1976 male cohort, outcome trimming and timing. Distinguish log-unit conversion from replacing the source outcome with another variable.

기초Foundations

43. 실제 점포 · 같은 주 안의 이전 규모와 이후 규모43. Actual establishments · baseline and later size within state

NJ/PA public.dat의 원 410행을 유지합니다. 전후 FTE는 각각 전일제+0.5×시간제+관리자이며 각 시점 세 구성값이 모두 있을 때만 계산합니다. 결과는 후 FTE, 목표 설명 열은 전 FTE, 추가 통제는 원 NJ 지표 0/1입니다. 완전한 384행을 같은 원행 안에서 연결하고 코드 407의 원행 42·168도 각각 보존합니다.

주 지표를 포함한 전 FTE 기울기는 약 0.521439, 주 지표 계수는 약 1.338523입니다. 전 FTE만 쓴 기울기 약 0.515058과 비교할 수 있습니다. 이 수치는 표 안의 기저 규모·주 구분에 따른 예측 요약이며 최저임금 정책 효과나 미래 점포 성능의 검증값이 아닙니다.

상수·주 지표로 잔차화하면 각 주에서 선형 예측한 전후 FTE를 뺀 상대값을 봅니다. 이는 실제로 점포를 주 사이에서 무작위 이동시킨 실험이 아닙니다. 정책 없는 경로·동시 충격·측정과 선택에 관한 식별 조건은 뒤 정책평가 장에서 별도로 다룹니다.

Preserve all 410 NJ/PA public.dat rows. Construct each FTE wave as full-time +0.5×part-time +managers only with all components available. Regress after FTE on target before FTE and the recorded NJ indicator 0/1, using 384 complete within-source-row pairs and retaining both code-407 positions 42 and 168.

The baseline-FTE slope with state included is approximately 0.521439; the state coefficient is approximately 1.338523. Compare with baseline-only slope approximately 0.515058. These are in-table predictions by baseline size and state, not identified minimum-wage effects or validated future-establishment performance.

Residualizing on the constant and state indicator removes their within-table predictions from both FTE waves. It does not randomly move establishments across states. No-policy paths, common shocks, measurement and selection require distinct policy-evaluation assumptions.

기초Foundations

44. 실습 F · 실제 같은 행에서 전체·부분 회귀를 비교한다44. Lab F · Compare full and partial fits on the same actual rows

국가·사람·점포 가운데 자료를 골라 원행 16/3,613/410과 완전행 16/3,010/384를 먼저 확인합니다. 목표와 통제 열의 이름·단위·기간을 적은 뒤 전체 회귀와 부분회귀의 목표 기울기·SSE가 같은지 대조합니다.

산점도의 두 축이 잔차화한 성분인지 원 관측인지 표제를 읽습니다. 결측을 0으로 채우거나 행을 재정렬하지 않았는지 원행 키와 내려받기 표로 추적합니다. 각 자료의 설명 범위를 유지하고, 새 집단·개입 효과·모집단 표준오차를 자동 도출하지 않습니다.

Select country, person or establishment sources and inspect source counts 16/3,613/410 and complete counts 16/3,010/384. State target/control names, units and periods before checking that full and partial target slopes and SSE agree.

Read whether plot axes show original observations or residualized components. Trace positional keys and downloads to verify rows were neither zero-filled nor misaligned. Preserve descriptive scope without automatically asserting transport, intervention effects or population standard errors.

기초Foundations

45. 코드에서도 같은 부분집합을 명시한다45. Declare the shared subset in reproduction code too

전체 회귀의 모든 열과 결과가 가용한 원행 키를 먼저 정하고, 짧은 모형·X 잔차화·Y 잔차화·최종 원점 회귀가 모두 그 키를 쓰게 합니다. 프로그램의 자동 결측 제거에 각각 맡기면 단계마다 다른 행을 사용할 수 있습니다.

공개 Python·R 코드는 원 API·ZIP이 있으면 원 필드에서 재선택하고, 없으면 제공된 최소 원행 선택 CSV를 입력으로 썼음을 기록합니다. 계산된 case JSON 계수를 정답으로 읽어 출력하는 방식을 재현이라고 부르지 않습니다. 분모·열 순서·단위·가공과 입력 해시를 함께 남깁니다.

행렬곱의 합과 원행별 잔차를 각각 확인하고, R의 QR 기반 적합과 정확 분수 계산을 대조합니다. 수치 일치와 실제 표적·인과 설계의 타당성은 별개 검토입니다.

Python · R · 원자료·단위·가공·출처

First fix source keys where the outcome and every full-model predictor are available. Use those identical keys in short regression, both control projections and final origin regression. Independent automatic missing-value removal can otherwise change rows between stages.

The public Python/R replays reread original API/ZIP fields when present, or disclose use of supplied minimal whole-row selections. Copying stored case coefficients is not recalculation. Retain denominators, column order, units, transformations and input hashes.

Check matrix sums and individual residuals, comparing R’s QR-based fit with exact fractions. Numerical agreement and substantive target/causal validity are separate reviews.

Python · R · Inputs, units, transformations and sources

Python·R 코드 실행 방법Run the Python/R companions

자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.

python metr03-reproduce.py
Rscript --vanilla --encoding=UTF-8 metr03-reproduce.R

결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.

기초Foundations

46. 부분회귀 보고서 한 장을 완성한다46. Complete a one-page partial-regression report

실제 자료 하나에서 Y·목표 X·통제 열·관측 단위·시점·단위와 가용 행을 한 문단으로 정의합니다. 두 번째 문단에는 전체 함수 집합과 작업 가중치·절편 여부를 적습니다. 세 번째에는 원행 한 개의 두 잔차화 값과 최종 잔차를 손으로 계산해 코드를 검산합니다.

마지막에는 목표 기울기의 FWL 동일성, 짧은 모형과의 차이, 그 차이를 인과 편향이라고 부르지 않은 이유를 설명합니다. 중복 열·빈 집단·단위 변환 중 하나를 분석하고 어떤 양이 유일한지 확인합니다. 인과나 모집단 추론을 추가하려면 부족한 가정을 명시합니다.

Choose one actual source and define Y, target X, controls, observation units, periods, units and contributing rows. State the full function class, weights and intercept next. Hand-calculate both residualized values and the final residual for one source record to check the code.

Explain FWL equality, the short-model difference and why that difference alone was not called causal bias. Analyze redundant columns, an empty group or a unit change and state which quantities are unique. Name missing assumptions for any causal or population-inference extension.

기초Foundations

47. 실제 원행과 잔차화한 그래프를 함께 읽는다47. Read original records alongside residualized plots

국가 · 수명과 실업 지표를 함께 넣은 생산 집계

2026년 10월 20일 보관한 World Bank 원 다중 지표 API를 10월 27일 다시 읽었습니다. ISO·2024년·지표 코드로 GDP NY.GDP.PCAP.KD, 기대수명 SP.DYN.LE00.IN, 실업률 SL.UEM.TOTL.ZS를 연결하고 세 원 배열 위치를 남겼습니다. 원 다운로드일과 이번 검토일을 구분하며 최신 빈티지를 새 수집한 자료라고 부르지 않습니다.

관측 단위는 선택된 국가×연도 16개입니다. Y는 2015년 불변 USD/명의 1인당 실질 GDP, 목표 X는 출생 시 기대수명 지표의 년, 통제 Z는 실업률의 퍼센트이며 ILO 모형 추정값입니다. 기간 기대수명은 당시 사망률 패턴을 바탕으로 한 집단 지표로 특정 개인의 수명 예측이 아닙니다. 국가 균등 작업 가중치 1은 인구 가중 개인 소득이나 무작위 세계 국가 표본을 뜻하지 않습니다.

실제 2024년 기록 · 화면 소수는 반올림
ISOGDP 원행수명 원행실업 원행X 년Z %Y 2015 USD/명
AUS21612881144183.0513.94261,486.38
BRA22062926148676.0236.8019,566.75
CAN22512971153182.1086.35145,061.39
CHN22963016157678.0174.59013,119.11
DEU23413061162180.7933.40044,027.76
FRA23863106166682.9807.40039,683.40
GBR24313151171181.3874.36147,900.97
IDN24763196175671.2883.3014,367.95
IND25213241180172.2354.1732,366.83
JPN25663286184684.0362.50037,976.64
KOR26113331189183.6292.78437,048.43
MEX26563376193675.2642.67810,284.03
SGP27013421198183.3462.73768,129.70
USA27463466202678.8904.02266,856.51
VNM27913511207174.7361.6024,012.51
ZAF28363556211666.31232.2795,715.48
같은 완전행 · 작업 가중치 1 · 소수는 반올림
양값
원행 / 완전행16 / 16
전체 절편 a-306,773.161689
목표 X 기울기 b4,244.002273
통제 Z 기울기 c899.538959
X만 쓴 짧은 기울기 B3,537.588058
Z-on-X 기울기 δ-0.785307
기울기 차이 B−b-706.414215
FWL 곱합1,193,438.203799
FWL X 제곱합281.205835
전체 MSE177,895,313.511692
짧은 MSE204,617,871.119455
rXi=Xi−X^i(Z)rYi=Yi−Y^i(Z)b=∑irXirYi∑irXi2ei=rYi−brXi\begin{gathered}r_{Xi}=X_i-\widehat X_i(Z)\\r_{Yi}=Y_i-\widehat Y_i(Z)\\b=\frac{\sum_i r_{Xi}r_{Yi}}{\sum_i r_{Xi}^2}\\e_i=r_{Yi}-br_{Xi}\end{gathered}
첫 기여 원행의 가공 좌표 · 반올림 표시
원행원 코드rXrY전체 잔차
2161AUS3.89051128,755.33191312,243.996219

전체 모형은 Y≈−306,773.161689+4,244.002273X+899.538959Z입니다. 소수 계수는 반올림이며 공개 CSV의 정확 분수가 계산 기준입니다. 수명만 쓴 기울기 약 3,537.588058과의 차이는 같은 16행의 함수 집합을 바꾼 결과입니다. X와 Y를 각각 상수·Z에 잔차화한 뒤 원점을 지나는 회귀를 하면 목표 계수 약 4,244.002273과 전체 잔차가 재현됩니다.

그림의 점은 실제 국가 행에서 계산한 잔차화 성분입니다. 가로의 음수는 실제 음수 수명이 아니라 해당 실업률에서 선형 예측한 수명보다 작은 차이를 뜻합니다. 실제 점을 연결하지 않으며 가이드선은 b×rX입니다. 원 지표·가공 좌표·평면 예측을 서로 바꾸어 읽지 않습니다.

실업률 1단위는 1퍼센트포인트이므로 그 계수는 2015 USD/명/퍼센트포인트입니다. 양의 계수가 나왔다고 실업을 늘리는 정책의 GDP 효과가 양수라고 말하지 않습니다. 국가 선택·집계·동시 원인과 역방향 설명은 남으며, 통제 하나를 더했다는 사실만으로 제거되지 않습니다.

왜 통제를 더한 뒤 기울기가 달라졌나요?

같은 행에서 B=b+cδ가 성립합니다. 여기 δ는 실업률을 수명과 상수에 회귀한 기울기입니다. 전체 표에 공개한 B−b와 cδ가 정확히 같으며 인과효과의 차이라는 결론은 추가 식별 없이 나오지 않습니다.

가공 좌표가 음수이면 국가 원지표를 잘못 읽은 것인가요?

아닙니다. 원 지표에서 선언한 통제 예측을 뺀 차이입니다. 원행별 CSV에서 원값·두 잔차화·전체 잔차를 함께 읽어 확인할 수 있습니다.

다운로드 · 실제 원행 선택과 정확 분수 계산

actual16-country-2024-GDP-longevity-ILO-unemployment.csv · actual-multiple-regression-and-FWL-summaries-exact.csv · actual-all-source-rows-full-short-fits-and-FWL-residuals.csv · actual-normal-equation-Gram-and-rhs-exact.csv

개인 · 기록 나이를 더한 교육·로그임금 평면

Card의 보관 proximity.zip에서 nls.dat와 code_bk.txt를 직접 읽었습니다. X는 ed76의 교육 연수, Z는 age76의 1976년 기록 나이, Y는 lwage76의 원자료 절단 로그임금입니다. 고정폭 문자 위치는 각각 18–19, 24–25, 86–97입니다. 원시급을 다시 로그로 만든 결과로 Y를 바꾸지 않습니다. 시간당 임금의 원 단위는 센트이며 조사 시점은 1976년입니다.

남성 코호트 원행 3,613개와 원 개인 코드를 따로 보존합니다. 교육·연령은 가용하고 Y 가용 완전행은 3,010개, 미관측 로그는 603개입니다. 같은 3,010행에서 짧은 모형, 전체 모형, 두 통제 회귀와 최종 원점 회귀를 모두 계산합니다. 작업 가중치 1은 대표 모집단의 원 조사 가중치를 적용했다는 뜻이 아닙니다.

실제 원파일 앞 8행 · 나이는 경력 대용변수가 아님
원행코드교육 년1976년 나이원 로그
127296.30627529
2312276.17586727
3412346.58063914
4511275.52146092
5612346.59167373
6712266.21460810
7818336.33682573
8914296.41017488
같은 완전행 · 작업 가중치 1 · 소수는 반올림
양값
원행 / 완전행3,613 / 3,010
전체 절편 a4.422090
목표 X 기울기 b0.052511
통제 Z 기울기 c0.040657
X만 쓴 짧은 기울기 B0.052094
Z-on-X 기울기 δ-0.010242
기울기 차이 B−b-0.000416
FWL 곱합1,132.152539
FWL X 제곱합21,560.432972
전체 MSE0.161190
짧은 MSE0.177451
첫 기여 원행의 가공 좌표 · 반올림 표시
원행원 코드rXrY전체 잔차
12-6.2568890.0089930.337547

전체 평면의 교육 기울기는 약 0.052510659, 연령 기울기는 약 0.040657365입니다. 교육만 쓴 약 0.052094237과 비교하면 나이에 대한 선형 통제 뒤 기울기 차이는 작지만 0은 아닙니다. 이 차이는 표의 기술적 연관 변화이며, 연령을 추가하면 교육의 인과수익률이 식별되었다고 결론 내리지 않습니다.

나이는 24–34세로 기록된 실제 변수입니다. 측정 경력 또는 새로 구성한 잠재 경력으로 이름을 바꾸지 않습니다. 부분회귀는 두 변수에서 상수·나이 적합을 각각 뺀 뒤 같은 원행을 연결합니다. 작은 음수의 잔차화 교육은 음수 교육 연수가 아니라 같은 연령의 선형 적합보다 작은 편차입니다.

교육 1년당 계수 b는 원 로그임금 차이의 단위입니다. exp(b)는 지수화한 두 평면 예측의 비이며, 오차분포에 관한 추가 조건 없이 산술 평균 임금의 비가 아닙니다. 로그를 센트/시간에서 달러/시간 단위로 바꾸는 Y′=Y−ln(100)은 절편만 옮기고 같은 기울기·잔차·MSE를 보존합니다. 이 변환은 결측을 채우거나 원 결과의 절단을 취소하지 않습니다.

전체 교육행으로 X를 먼저 잔차화하면 왜 안 되나요?

603개의 Y 결측행까지 X 통제 적합에만 넣으면 원점 회귀와 전체 회귀가 다른 부분집합의 투영을 섞습니다. FWL 동일성을 확인하려면 먼저 모든 전체 모형 열·결과의 가용 원행을 고정합니다.

나이 계수 약 0.040657은 경력 1년의 인과수익인가요?

아닙니다. 기록 나이의 관측 투영 계수이며 실제 경력 측정이나 노동시장 개입을 관측한 것이 아닙니다. 변수 정의와 식별 가정을 따로 제시해야 합니다.

다운로드 · 실제 원행 선택과 정확 분수 계산

actual3613-person-schooling-age-trimmed-log-wages.csv · actual-multiple-regression-and-FWL-summaries-exact.csv · actual-all-source-rows-full-short-fits-and-FWL-residuals.csv · actual-normal-equation-Gram-and-rhs-exact.csv

점포 실무 · 이전 규모와 주 지표를 함께 넣은 이후 FTE

Card–Krueger의 보관 njmin.zip에서 public.dat와 check.sas를 읽었습니다. 1992년 두 시점이 같은 원행에 있고, 점포 조사 기록이 관측 단위입니다. 법인 전체의 고용이나 임의 기업의 실제 생산함수가 아닙니다. 각 시점 FTE는 전일제+0.5×시간제+관리자이며 세 원 구성값이 모두 있어야 계산합니다.

Y=후 FTE, X=전 FTE, Z=원 NJ 지표 0/1입니다. 410개 원행과 26개 불완전행을 모두 보존하고 384개 완전짝이 기여합니다. 코드 407은 PA·체인 2의 원행 42와 NJ·체인 4의 원행 168에 각각 존재합니다. 둘을 병합하지 않고 같은 원행 안의 두 시점만 연결합니다. 이 키는 독립성이나 영구 점포 식별의 증거가 아닙니다.

FTEt=FTt+0.5PTt+Managerst\begin{aligned}\mathrm{FTE}_t&=\mathrm{FT}_t+0.5\mathrm{PT}_t\\&\quad+\mathrm{Managers}_t\end{aligned}
실제 코드 407의 두 원행
원행주전 FTE후 FTENJ
42PA11.0011.000
168NJ12.0014.501
같은 완전행 · 작업 가중치 1 · 소수는 반올림
양값
원행 / 완전행410 / 384
전체 절편 a8.905428
목표 X 기울기 b0.521439
통제 Z 기울기 c1.338523
X만 쓴 짧은 기울기 B0.515058
Z-on-X 기울기 δ-0.004767
기울기 차이 B−b-0.006381
FWL 곱합19,197.503495
FWL X 제곱합36,816.408495
전체 MSE58.044177
짧은 MSE58.321802
첫 기여 원행의 가공 좌표 · 반올림 표시
원행원 코드rXrY전체 잔차
14617.1200002.903333-6.023699

전체 적합은 후 FTE≈8.905428+0.521439×전 FTE+1.338523×NJ입니다. 전 FTE만 쓴 기울기 약 0.515058과 비교합니다. 상수·주 지표가 두 주의 서로 다른 평균을 적합하므로, 두 변수의 주별 선형 적합을 빼고 남은 차이 사이의 기울기가 전체 목표 계수와 같습니다.

주 지표 계수는 같은 전 FTE에서 평면이 예측하는 주 간 차이입니다. 단순 전후 평균 변화의 차이, 이중차분 계수 또는 최저임금의 인과효과라고 자동 부르지 않습니다. 이 회귀의 가정 함수 집합과 정책 없는 잠재 경로를 연결하는 별도 설계가 필요합니다. 점포·체인·시점의 의존도 표 안의 직교에서 사라지지 않습니다.

관측 표 안의 MSE와 두 잔차 회귀의 일치는 정확 분수로 재현할 수 있습니다. 이는 새 점포나 다음 시점의 검증 오차가 아니며, 원 조사의 공란을 0으로 바꾸어 성능을 개선한 것도 아닙니다. 가공 좌표와 원 전후 기록을 같은 원행 키로 검산합니다.

왜 단순한 전후 차이를 결과로 삼은 회귀와 같지 않나요?

Y를 후 FTE로 정의했기 때문입니다. Δ=후−전을 결과로 바꾸고 같은 설명 열을 쓰면 전 FTE 기울기는 b−1로 바뀌며 절편·주 계수·잔차는 같습니다. 하지만 어느 식이든 정책 효과의 식별은 별도입니다.

원 410행 중 왜 384행만 같은 계산에 쓰나요?

전체 모형의 전후 구성값이 모두 가용해야 완전짝이 됩니다. 남은 26행을 버려 잊지 않고 각 결측을 보관합니다. FWL의 두 단계도 같은 384행을 사용하여 다른 분모를 섞지 않습니다.

다운로드 · 실제 원행 선택과 정확 분수 계산

actual410-establishment-before-after-FTE-state-and-components.csv · actual-multiple-regression-and-FWL-summaries-exact.csv · actual-all-source-rows-full-short-fits-and-FWL-residuals.csv · actual-normal-equation-Gram-and-rhs-exact.csv

Countries · production aggregates with longevity and unemployment

We reread on 27 October the World Bank multi-indicator API retained on 20 October 2026. We joined GDP NY.GDP.PCAP.KD, longevity SP.DYN.LE00.IN and unemployment SL.UEM.TOTL.ZS by ISO, observation year 2024 and indicator, retaining all three original array positions. Original retrieval and this review are distinct; no new current-vintage collection is claimed.

Units are sixteen selected country-year records. Y is real GDP/person in constant-2015 USD, target X is period life expectancy at birth in years and control Z is unemployment in percent, explicitly an ILO modeled estimate. Period longevity reflects period mortality patterns, not a particular person’s lifespan prediction. Equal-country working weights are neither population-weighted personal earnings nor a certified random sample of world countries.

Actual 2024 records · rounded display
ISOGDP rowLife rowJobless rowX yearsZ %Y 2015 USD/person
AUS21612881144183.0513.94261,486.38
BRA22062926148676.0236.8019,566.75
CAN22512971153182.1086.35145,061.39
CHN22963016157678.0174.59013,119.11
DEU23413061162180.7933.40044,027.76
FRA23863106166682.9807.40039,683.40
GBR24313151171181.3874.36147,900.97
IDN24763196175671.2883.3014,367.95
IND25213241180172.2354.1732,366.83
JPN25663286184684.0362.50037,976.64
KOR26113331189183.6292.78437,048.43
MEX26563376193675.2642.67810,284.03
SGP27013421198183.3462.73768,129.70
USA27463466202678.8904.02266,856.51
VNM27913511207174.7361.6024,012.51
ZAF28363556211666.31232.2795,715.48
Same complete rows · working weights one · rounded decimals
QuantityValue
Source / complete rows16 / 16
Full intercept a-306,773.161689
Target X slope b4,244.002273
Control Z slope c899.538959
Short X-only slope B3,537.588058
Z-on-X slope δ-0.785307
Slope difference B−b-706.414215
FWL cross-product1,193,438.203799
FWL X squared norm281.205835
Full MSE177,895,313.511692
Short MSE204,617,871.119455
rXi=Xi−X^i(Z)rYi=Yi−Y^i(Z)b=∑irXirYi∑irXi2ei=rYi−brXi\begin{gathered}r_{Xi}=X_i-\widehat X_i(Z)\\r_{Yi}=Y_i-\widehat Y_i(Z)\\b=\frac{\sum_i r_{Xi}r_{Yi}}{\sum_i r_{Xi}^2}\\e_i=r_{Yi}-br_{Xi}\end{gathered}
Derived coordinates for the first contributing source row · rounded
Source rowCoderXrYFull residual
2161AUS3.89051128,755.33191312,243.996219

The full descriptive model is Y≈−306,773.161689+4,244.002273X+899.538959Z. These decimals are rounded; exact CSV fractions define the calculation. The longevity-only slope approximately 3,537.588058 belongs to another function class on the same sixteen rows. Residualizing X and Y separately on a constant and Z then fitting through the origin reproduces target slope approximately 4,244.002273 and the full residuals.

Plotted points are residualized components calculated from actual country records. Negative horizontal values are deviations below predicted longevity, not negative observed lifespans. Observed points remain unconnected; the guide is b×rX. Keep original indicators, derived coordinates and fitted plane values distinct.

One unemployment unit is one percentage point, so its coefficient has units of constant-2015 USD/person per percentage point. Its positive value does not identify a positive GDP effect of increasing unemployment. Selection, aggregation, joint causes and reverse explanations remain after adding a control.

Why did adding a control change the slope?

On the same rows B=b+cδ, where δ regresses unemployment on longevity and a constant. The exact downloadable B−b equals cδ; this identity alone does not identify a difference in causal effects.

Do negative derived coordinates mean the original indicator is wrong?

No. They subtract the declared control prediction from original indicators. Check original values, both residualized components and the final residual in the same source-row CSV.

Download · actual source selections and exact fraction calculations

actual16-country-2024-GDP-longevity-ILO-unemployment.csv · actual-multiple-regression-and-FWL-summaries-exact.csv · actual-all-source-rows-full-short-fits-and-FWL-residuals.csv · actual-normal-equation-Gram-and-rhs-exact.csv

People · schooling and source-log wages with recorded age

We directly read nls.dat and code_bk.txt in the retained Card proximity.zip. X is ed76 schooling, Z is recorded 1976 age76 and Y is source-trimmed lwage76. Fixed-width character positions are respectively 18–19, 24–25 and 86–97. We do not replace Y with newly logged raw wages. The source hourly wage unit is cents and the observation year is 1976.

Preserve 3,613 male-cohort source positions separately from original person codes. Schooling and age are available; 3,010 rows have the specified outcome and 603 logs remain unavailable. Short, full, both control fits and final origin regression all use the same complete rows. Working weights one are not a claim of survey-weighted population representation.

Actual first eight source records · recorded age is not an experience proxy
Source rowCodeSchool yearsAge in 1976Source log
127296.30627529
2312276.17586727
3412346.58063914
4511275.52146092
5612346.59167373
6712266.21460810
7818336.33682573
8914296.41017488
Same complete rows · working weights one · rounded decimals
QuantityValue
Source / complete rows3,613 / 3,010
Full intercept a4.422090
Target X slope b0.052511
Control Z slope c0.040657
Short X-only slope B0.052094
Z-on-X slope δ-0.010242
Slope difference B−b-0.000416
FWL cross-product1,132.152539
FWL X squared norm21,560.432972
Full MSE0.161190
Short MSE0.177451
Derived coordinates for the first contributing source row · rounded
Source rowCoderXrYFull residual
12-6.2568890.0089930.337547

The full schooling slope is approximately 0.052510659 and age slope approximately 0.040657365, compared with schooling-only slope approximately 0.052094237. The difference after linear age adjustment is small but nonzero. It is a descriptive association change, not proof that adding age identifies a causal schooling return.

Recorded ages range from 24 to 34. Do not relabel age as measured experience or a newly constructed potential-experience proxy. Partial regression removes separate constant/age fits from both variables while keeping original alignment. Negative residualized schooling is a deviation below its age fit, not negative schooling.

Coefficient b measures source-log-wage change per schooling year. Exp(b) compares exponentiated plane predictions, not automatically arithmetic mean wages without further distributional assumptions. Pure log-unit conversion Y′=Y−ln(100) from cents/hour to dollars/hour changes only the intercept and preserves slopes, residuals and MSE. It neither fills missing outcomes nor undoes source trimming.

Why not residualize schooling on every source row first?

Including the 603 unavailable-outcome rows only in the X control fit mixes projections from different subsets. To verify FWL, first fix rows complete for every full-model column and outcome.

Is the age slope approximately 0.040657 a causal return to a year of experience?

No. It is a projection slope for recorded age, not measured experience or an observed intervention. Variable definition and causal identification need separate justification.

Download · actual source selections and exact fraction calculations

actual3613-person-schooling-age-trimmed-log-wages.csv · actual-multiple-regression-and-FWL-summaries-exact.csv · actual-all-source-rows-full-short-fits-and-FWL-residuals.csv · actual-normal-equation-Gram-and-rhs-exact.csv

Establishments · later FTE with baseline size and a state indicator

We read public.dat and check.sas in the retained Card–Krueger njmin.zip. Each source row holds two 1992 waves for an establishment survey record, not corporate employment totals or an actual production function. Each FTE wave equals full-time +0.5×part-time +managers and requires all three original components.

Set Y=after FTE, X=before FTE and Z=original NJ indicator 0/1. Retain all 410 rows, including 26 incomplete rows, and use 384 complete pairs. Code 407 occurs at PA/chain 2/source row 42 and NJ/chain 4/source row 168. Do not merge them; pair waves only within source rows. These keys do not certify independence or permanent entity identity.

FTEt=FTt+0.5PTt+Managerst\begin{aligned}\mathrm{FTE}_t&=\mathrm{FT}_t+0.5\mathrm{PT}_t\\&\quad+\mathrm{Managers}_t\end{aligned}
Two actual source rows sharing code 407
Source rowStateBefore FTEAfter FTENJ
42PA11.0011.000
168NJ12.0014.501
Same complete rows · working weights one · rounded decimals
QuantityValue
Source / complete rows410 / 384
Full intercept a8.905428
Target X slope b0.521439
Control Z slope c1.338523
Short X-only slope B0.515058
Z-on-X slope δ-0.004767
Slope difference B−b-0.006381
FWL cross-product19,197.503495
FWL X squared norm36,816.408495
Full MSE58.044177
Short MSE58.321802
Derived coordinates for the first contributing source row · rounded
Source rowCoderXrYFull residual
14617.1200002.903333-6.023699

The fit is after FTE≈8.905428+0.521439×before FTE+1.338523×NJ. Compare the before-only slope approximately 0.515058. A constant and state dummy fit the two state means, so the slope between deviations from those separate fits equals the full target slope.

The state coefficient is the plane’s predicted state difference at fixed baseline FTE. It is not automatically a difference in before/after mean changes, a DID coefficient or a causal minimum-wage effect. Linking the chosen function class to no-policy potential paths requires a separate design. Establishment, chain and timing dependence does not disappear through residual orthogonality.

In-table MSE and the two residual-regression identities can be reproduced exactly. They are not validated new-establishment or next-period errors, nor an improvement obtained by replacing survey blanks with zeros. Compare derived coordinates and original wave values using the same positional keys.

Why is this not simply a regression of before/after changes?

Y is defined as after FTE. Replacing it with Δ=after−before using identical predictors changes the before-FTE slope to b−1 while preserving intercept, state coefficient and residuals. Neither specification alone identifies policy effects.

Why do 384 of the 410 source rows contribute?

Complete pairs require all components for both waves. Retain and document the 26 incomplete rows rather than forgetting them. Both FWL stages use exactly the same 384 contributors, avoiding mixed denominators.

Download · actual source selections and exact fraction calculations

actual410-establishment-before-after-FTE-state-and-components.csv · actual-multiple-regression-and-FWL-summaries-exact.csv · actual-all-source-rows-full-short-fits-and-FWL-residuals.csv · actual-normal-equation-Gram-and-rhs-exact.csv

기초Foundations

48. 공식 영상·학자·부분회귀 원문을 연결한다48. Connect an official video, a scholar and partialling-out readings

MIT 18.06의 Gilbert Strang 강의 16을 본문에서 보며 최소제곱을 열공간으로의 투영으로 설명해 보세요. 벡터 공간의 직교와 산점도의 세로 오차를 구별합니다. Yale의 2025년 기관 역사 글에서는 Ragnar Frisch가 1930년 계량경제학회 설립과 1933년 Econometrica 초대 편집에 참여한 맥락을 읽습니다. 역사적 권위가 현재 자료의 식별 가정을 대신하지 않습니다.

Introduction to Econometrics with R 6.2의 핵심개념 6.2에서는 여러 설명 열·계수·오차항의 표기를 읽고, 조건부 평균이 선형이라는 가정과 단지 최선의 선형 투영을 고른 것을 비교합니다. 심화로 MIT 14.382 강의노트 1의 인쇄 3쪽 잔차화 연산 정의와 5쪽 정리 1의 랭크 조건을 읽습니다. 정해진 제곱손실과 같은 표본·가중치 아래 정리를 직접 검산합니다.

Python · R · 원자료·단위·가공·출처

Watch Gilbert Strang’s official MIT 18.06 Lecture 16 in the chapter and explain least squares as a column-space projection, distinguishing observation-space orthogonality from vertical scatterplot errors. Yale’s 2025 institutional history describes Ragnar Frisch’s role in the 1930 Econometric Society founding and as Econometrica’s first editor in 1933. Historical authority does not replace identification assumptions.

Use IEWR 6.2, Key Concept 6.2, for multiple-regressor notation and compare a linear conditional-mean assumption with selecting a best linear projection. For a second pass, read the residualization definition on printed page 3 and rank conditions in Theorem 1 on page 5 of MIT 14.382 Lecture 1. Verify the theorem under the declared squared loss, identical rows and weights.

Python · R · Inputs, units, transformations and sources

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

열공간 투영과 최소제곱을 함께 보기Projection matrices and least squares

MIT OpenCourseWare · Gilbert Strang · 18.06 · Lecture 16

공식 강의에서 결과 벡터와 설계 열공간을 구별합니다. 같은 관측공간의 직교가 산점도의 최단거리와 왜 다른지 설명하고, 본문의 잔차 벡터를 옆에 적어 보세요. 과목은 2010년 공개 자료이며 영상은 1999년 가을 녹화입니다.Distinguish the outcome vector from the design column space. Explain why observation-space orthogonality differs from shortest scatterplot distances, and write this chapter’s residual vector alongside the lecture. The course page is Spring 2010; the video was recorded in Fall 1999.

교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.

보고 읽은 뒤 답하기Respond after watching/reading 계수가 여러 개이면 적합 벡터도 반드시 여러 개인가요?Must nonunique coefficients imply nonunique fitted vectors?

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

아닙니다. 설계의 영방향으로 움직인 계수는 같은 열공간 벡터를 만듭니다. Z=1+2X 예에서 계수 가족 전체가 같은 관측 직선 1/2+2X를 적합합니다.No. Moving coefficients in a design null direction leaves the fitted column-space vector unchanged. The entire family for Z=1+2X fits the same observed line 1/2+2X.

Ragnar Frisch · 수학·자료·제도를 연결한 학회 맥락Ragnar Frisch · institutions connecting mathematics and data

Yale Department of Economics · Cowles Foundation history · 6 January 2025

Yale의 기관 역사에서 1930년 학회 설립 모임과 1933년 Econometrica 초대 편집의 맥락을 읽습니다. 여러 변수를 도입하는 계산과 믿을 만한 실증 설계를 같은 것으로 취급하지 않는 학습 질문으로 연결하세요.Read Yale’s account of Frisch’s role in the 1930 founding meeting and Econometrica’s first editorship in 1933. Connect this institutional history to the distinction between mathematical specification and credible empirical design.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 역사적 학자의 권위가 이번 관측 회귀의 인과성을 보장하나요?Does a historical scholar’s authority make this observational regression causal?

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

아닙니다. 표적 개입·자료 생성·선택·통제의 역할을 따로 정의하고 관측 대비를 반사실에 연결해야 합니다.No. Define interventions, data generation, selection and controls, and justify the connection from observed comparisons to counterfactuals.

함께 읽기 · 다중회귀의 열과 계수 표기Read together · multiple-regression columns and coefficients

Introduction to Econometrics with R · §6.2 · Key Concept 6.2

핵심개념 6.2의 설명 열·상수·계수·오차 표기를 본문의 행렬 순서와 맞춥니다. 조건부 평균이 선형이라는 가정과 선형 함수 집합에서 제곱손실을 최소화했다는 정의를 구별합니다.Match the regressor, constant, coefficient and error notation in Key Concept 6.2 to this chapter’s column order. Separate an assumed linear conditional mean from a definition based on best squared-loss linear approximation.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 전체 잔차의 X·Z 곱합 0이면 모든 (X, Z)에서 평균 잔차가 0인가요?Do zero X/Z residual products imply zero mean residual at every (X, Z)?

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

아닙니다. 본문의 가정 표는 각 조합이 한 행이며 처음 네 조합의 잔차는 −1, 1, 1, −1입니다. 전체 세 직교 조건을 만족해도 각 조건부 평균은 0이 아닙니다.No. Every combination in the teaching table is a singleton, and the first four residuals are −1, 1, 1, −1. All three overall moments can vanish while conditional residual means do not.

심화 읽기 · 잔차화 연산과 부분회귀의 랭크 조건Second pass · residualization and rank conditions for partialling out

MIT OpenCourseWare · 14.382 · Lecture 1 · printed pages 3 and 5

인쇄 3쪽의 잔차화 정의와 5쪽 정리 1의 상자 및 랭크 조건을 지정해 읽습니다. 같은 표본·같은 가중치·제곱손실로 목표와 결과를 잔차화한 뒤 기울기와 잔차가 재현되는지 계산하세요.Read the residualization definition on printed page 3 and boxed Theorem 1 with its rank conditions on page 5. Residualize target and outcome using the same sample, weights and squared loss; then verify coefficient and residual equality.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 잔차화한 목표가 모두 0이면 분모 0을 기울기 0으로 바꾸나요?If residualized target X is identically zero, should a zero denominator become slope zero?

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

아닙니다. 통제로 목표 열을 완전히 표현할 수 있어 목표 계수는 유일하지 않습니다. 전체 적합은 계산할 수 있어도 해당 계수를 0으로 식별했다고 보고하지 않습니다.No. Controls span the target column, so its coefficient is nonunique. Full fitted values can still exist without identifying that slope as zero.

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

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

1. 설계행렬의 한 행One design row

가정 기록 X=2시간, Z=1준비점수, Y=8점의 모형은 Y=a+bX+cZ+e입니다. 계수 순서를 (a, b, c)로 정했을 때 설계행과 예측, 잔차를 쓰세요.

An assumed record has X=2 hours, Z=1 preparation point, Y=8 outcome points. With model Y=a+bX+cZ+e and coefficient order (a, b, c), write its design row, fit and residual.

풀이와 확인할 이유Solution and explanation

상수 열을 포함한 설계행은 (1, 2, 1)입니다. 예측은 a+2b+c, 잔차는 8−a−2b−c입니다. 설명 열의 순서가 바뀌면 계수 순서도 함께 바꿔야 같은 함수를 나타냅니다.

The design row is (1, 2, 1), fit a+2b+c and residual 8−a−2b−c. Reordering predictor columns requires reordering their coefficients to preserve the same function.

2. 행렬곱의 차원Matrix-product dimensions

가정한 가용 기록 8개에서 상수와 설명 열 X, Z로 Y를 적합합니다. 설계행렬 A, 계수 β, Y, 예측 Aβ, 정상행렬 AᵀA의 차원을 구하세요.

Fit eight assumed available records using a constant and predictors X, Z. Give dimensions of design A, coefficients β, outcome Y, fits Aβ and Gram matrix AᵀA.

풀이와 확인할 이유Solution and explanation

A는 8×3, β는 3×1, Y와 Aβ는 8×1, AᵀA는 3×3입니다. 3개 계수라고 원래 관측이 3개인 것은 아닙니다. 한 행은 한 기록, 한 열은 선언한 설명 성분입니다.

Dimensions are 8×3, 3×1, 8×1, 8×1 and 3×3 respectively. Three coefficients do not mean three observations. Rows identify records; columns identify declared explanatory components.

3. 계수의 단위Coefficient units

가정 모형의 Y는 점수, X는 연습시간, Z는 사전 준비점수입니다. a=1, b=2, c=3의 단위를 적고 Z를 고정해 X만 한 시간 늘린 평면 예측 차이를 구하세요.

In an assumed plane, Y is outcome points, X practice hours and Z prior-preparation points. State units of a=1, b=2, c=3 and the fitted change for one more X hour at fixed Z.

풀이와 확인할 이유Solution and explanation

a는 결과 점수, b는 결과 점수/시간, c는 결과 점수/준비점수입니다. 고정 Z에서 예측 차이는 2점입니다. 실제로 연습시간을 바꾼 사람의 인과효과가 2점이라는 결론은 이 단위 계산만으로 나오지 않습니다.

The units are outcome points, outcome points/hour and outcome points/preparation point. At fixed Z, the plane changes by two outcome points. Units and substitution alone do not identify an actual practice intervention effect.

4. 같은 X에서 다른 적합Different fits at the same X

가정 평면은 Ŷ=1+2X+3Z입니다. X=1인 두 기록에서 Z=0과 Z=1일 때 예측을 비교하세요. 두 기록의 Y가 각각 4, 5라면 잔차도 구하세요.

For assumed plane Ŷ=1+2X+3Z, compare records with X=1 and Z=0 or 1. If their Y values are respectively four and five, find both residuals.

풀이와 확인할 이유Solution and explanation

예측은 3과 6이고 차이는 3입니다. 실제값−예측값인 잔차는 1과 −1입니다. 같은 X에서도 Z가 다른 기록을 하나의 X 집단 평균만으로 표시한 것과 두 열의 평면 요약은 다른 규칙입니다.

Fits are three and six, differing by three. Actual-minus-fitted residuals are one and minus one. A two-column plane is a different rule from one mean for every X group.

5. 가용 집합의 분모The available-set denominator

가정 원행 (X, Z, Y, w)은 (0, 0, 1, 1), (1, 결측, 2, 1), (2, 1, 결측, 1), (3, 1, 7, 0)입니다. 완전한 X, Z, Y와 양수 가중치를 요구할 때 기여 행과 W를 구하세요.

Assumed source rows (X, Z, Y, w) are (0, 0, 1, 1), (1, missing, 2, 1), (2, 1, missing, 1), (3, 1, 7, 0). Require complete X, Z, Y and positive weight. Find contributing rows and W.

풀이와 확인할 이유Solution and explanation

첫 행만 기여하여 W=1입니다. 둘째·셋째는 필수값 결측, 넷째는 완전하지만 영가중치입니다. 네 원행을 모두 보관하고 각 제외 이유를 표시합니다. 원행 수 4나 완전행 수 2를 정규화 분모로 대신 쓰지 않습니다.

Only row one contributes, so W=1. Rows two and three lack required values; row four is complete but has zero weight. Retain all four source rows with reasons. Neither source count four nor complete-row count two replaces the weight denominator.

6. 빈 작업 법칙An empty working law

가정 두 행 모두 X, Z, Y는 가용하지만 가중치는 0입니다. L=Σw(Y−a−bX−cZ)²/Σw를 0이라고 보고해도 되나요?

Two assumed rows have available X, Z, Y but both weights are zero. May L=Σw(Y−a−bX−cZ)²/Σw be reported as zero?

풀이와 확인할 이유Solution and explanation

분모가 0이라 정규화 손실은 미정의입니다. 모든 계수가 비정규화 제곱합 0을 만든다는 사실과 양수 질량의 평균 손실이 존재한다는 사실은 다릅니다. 프로그램은 가용 양수 질량이 없다는 상태를 표시해야 합니다.

Normalized loss is undefined because the denominator vanishes. Every coefficient giving unnormalized sum zero does not create an average under positive mass. Report absence of contributing positive weight.

7. 가중치 공통 배수A common weight multiplier

가정한 유한 완전 자료에서 비음수 가중치의 합 W>0이고 L=Σw e²/W입니다. 모든 w를 9배 했을 때 계수 집합, L, 정규화 전 SSE는 어떻게 바뀌나요?

Assume finite complete data, nonnegative weights with W>0 and L=Σw e²/W. Multiply every weight by nine. What happens to minimizers, L and unnormalized SSE?

풀이와 확인할 이유Solution and explanation

분자와 분모가 함께 9배 되어 모든 계수에서 L이 같습니다. 따라서 최소해 집합도 같습니다. 정규화 전 가중 SSE만 9배입니다. 한 집단의 비중만 바꾸는 것과 구별합니다.

Both numerator and denominator multiply by nine, leaving L unchanged for every coefficient and preserving its minimizers. Unnormalized weighted SSE multiplies by nine. Changing just one group weight is different.

8. 정상방정식 만들기Form normal equations

가정 자료의 설계행은 (1, X, Z)이며 AᵀA=[[8, 12, 8], [12, 28, 16], [8, 16, 12]], AᵀY=(56, 116, 76)ᵀ입니다. 세 정상방정식을 쓰세요.

Assumed design rows are (1, X, Z), with AᵀA=[[8, 12, 8], [12, 28, 16], [8, 16, 12]] and AᵀY=(56, 116, 76)ᵀ. Write all three normal equations.

풀이와 확인할 이유Solution and explanation

8a+12b+8c=56, 12a+28b+16c=116, 8a+16b+12c=76입니다. 각 식은 잔차와 상수, X, Z의 곱합이 0이라는 조건입니다. 행렬식이나 입력 순서를 생략하지 않고 (a, b, c)에 맞춰 대조합니다.

The equations are 8a+12b+8c=56, 12a+28b+16c=116 and 8a+16b+12c=76. They set residual products with the constant, X and Z to zero. Keep the declared coefficient order when checking them.

9. 세 계수 대입 검산Verify three coefficients

가정 정상방정식 8a+12b+8c=56, 12a+28b+16c=116, 8a+16b+12c=76에 (a, b, c)=(1, 2, 3)을 대입하세요. Gram 행렬의 행렬식은 192입니다. 해의 유일성도 설명하세요.

Substitute (a, b, c)=(1, 2, 3) into equations 8a+12b+8c=56, 12a+28b+16c=116, 8a+16b+12c=76. The Gram determinant is 192. Explain uniqueness.

풀이와 확인할 이유Solution and explanation

왼쪽은 각각 8+24+24=56, 12+56+48=116, 8+32+36=76입니다. Gram 행렬이 비특이이므로 정상방정식의 해가 유일합니다. 비음수 제곱손실의 정상해이므로 전역 최소 계수도 (1, 2, 3)입니다.

Left sides are 56, 116 and 76. Nonzero Gram determinant makes the normal-equation solution unique. For this squared-loss quadratic, the solution is the unique global minimizing coefficient vector.

10. 잔차와 제곱합Residuals and their sum of squares

가정한 (X, Z, Y) 8행은 (0, 0, 0), (0, 1, 5), (1, 0, 4), (1, 1, 5), (2, 1, 8), (2, 2, 11), (3, 1, 10), (3, 2, 13)입니다. 평면 1+2X+3Z의 잔차, SSE, MSE를 구하세요.

Assume eight rows (X, Z, Y): (0, 0, 0), (0, 1, 5), (1, 0, 4), (1, 1, 5), (2, 1, 8), (2, 2, 11), (3, 1, 10), (3, 2, 13). Find residuals, SSE and MSE for 1+2X+3Z.

풀이와 확인할 이유Solution and explanation

예측은 1, 4, 3, 6, 8, 11, 10, 13입니다. 잔차는 −1, 1, 1, −1, 0, 0, 0, 0이고 SSE=4, MSE=4/8=1/2입니다. 한 행마다 같은 가중치 1을 사용한 분모입니다.

Fits are 1, 4, 3, 6, 8, 11, 10, 13. Residuals are −1, 1, 1, −1, 0, 0, 0, 0, SSE=4 and MSE=1/2, using one unit of weight per row.

11. 세 직교 조건Three orthogonality conditions

가정 X=(0, 0, 1, 1, 2, 2, 3, 3), Z=(0, 1, 0, 1, 1, 2, 1, 2), 잔차 e=(−1, 1, 1, −1, 0, 0, 0, 0)입니다. Σe, ΣXe, ΣZe를 구하고 조건부 평균 0도 따라오는지 설명하세요.

Assume X=(0, 0, 1, 1, 2, 2, 3, 3), Z=(0, 1, 0, 1, 1, 2, 1, 2) and residuals e=(−1, 1, 1, −1, 0, 0, 0, 0). Find Σe, ΣXe, ΣZe and discuss conditional-zero means.

풀이와 확인할 이유Solution and explanation

합은 −1+1+1−1=0, X 곱합은 1−1=0, Z 곱합도 1−1=0입니다. 각 (X, Z) 조합이 한 행뿐이면 그 조합의 경험적 잔차 평균은 해당 잔차라 처음 네 조합은 0이 아닙니다. 유한 직교 조건이 조건부 평균 0을 보장하지 않습니다.

The three sums vanish: −1+1+1−1, 1−1 and 1−1. With one row at each (X, Z), the empirical conditional residual mean equals that row’s residual and is nonzero in the first four cells. Finite orthogonality does not imply conditional-zero means.

12. 결정계수의 분모The denominator of R squared

가정한 절편 포함 최소제곱 적합에서 SSE=4, 평균 중심 총제곱합 SST=128입니다. MSE 분모는 8입니다. R²를 구하고 MSE와 구별하세요.

An assumed intercept OLS fit has SSE=4 and mean-centered SST=128, with eight equal-weight rows. Find R² and distinguish it from MSE.

풀이와 확인할 이유Solution and explanation

R²=1−4/128=31/32이고 MSE=4/8=1/2입니다. 전자는 무차원인 중심 변동 설명 비율, 후자는 Y 단위의 제곱입니다. R²가 크다는 사실만으로 인과 식별이나 새 자료 예측이 보장되지는 않습니다.

R²=31/32 is a dimensionless centered-variation fraction; MSE=1/2 has squared outcome units. A large R² alone establishes neither causal identification nor new-data prediction performance.

13. 평균점 통과Passing through the mean point

가정 절편 모형의 X 평균=3/2, Z 평균=1, Y 평균=7입니다. b=2, c=3일 때 a를 구하고 이 성질의 전제를 쓰세요.

An assumed intercept model has means X=3/2, Z=1, Y=7 and slopes b=2, c=3. Find a and state the conditions behind mean-point passage.

풀이와 확인할 이유Solution and explanation

a=7−2(3/2)−3=1입니다. 같은 가용 행·가중치로 계산한 평균과 상수 방향의 정상방정식이 필요합니다. 절편도 없고 상수 방향도 열공간에 없으면 이 식을 무조건 적용할 수 없습니다.

The intercept is one. Use means from the same contributing rows and weights and a normal equation for the constant direction. Without a constant direction in the design, the identity is not automatic.

14. 계수 변화와 손실Coefficient changes and loss

가정 최적 잔차는 상수, X, Z와 직교하며 MSE=1/2, mean X=3/2, mean X²=7/2입니다. 절편은 1 늘리고 X 기울기는 1 줄이며 Z 기울기는 유지할 때 새 MSE를 구하세요.

Assume optimal residuals are orthogonal to the constant, X, Z, with MSE=1/2, mean X=3/2 and mean X²=7/2. Increase the intercept by one, decrease the X slope by one and leave the Z slope fixed. Find new MSE.

풀이와 확인할 이유Solution and explanation

예측 변화는 d=1−X입니다. 직교로 손실 증가=E[d²]=1−2(3/2)+7/2=3/2입니다. 따라서 새 MSE는 1/2+3/2=2입니다. 잔차와 예측 변화의 교차항이 0인 조건을 썼습니다.

The fit change is d=1−X. Orthogonality makes the loss increase E[d²]=1−3+7/2=3/2. New MSE is two. The vanished cross term depends on orthogonality to the same design.

15. 제곱손실의 충분성Sufficiency under squared loss

유한 설계 A에서 wᵢ≥0, W=Σwᵢ>0, D_w=diag(wᵢ), e=y−Aβ*와 L(β)=Σwᵢ(yᵢ−aᵢᵀβ)²/W를 정의합니다. β*는 AᵀD_we=0을 만족합니다. 임의 변화 d에 대해 L(β*+d)−L(β*)를 쓰고 전역 최소인지 설명하세요.

For a finite design A, define wᵢ≥0, W=Σwᵢ>0, D_w=diag(wᵢ), e=y−Aβ* and L(β)=Σwᵢ(yᵢ−aᵢᵀβ)²/W. Suppose β* satisfies AᵀD_we=0. Express L(β*+d)−L(β*) for arbitrary d and decide whether β* is global.

풀이와 확인할 이유Solution and explanation

차이는 Σw(Ad)²/W≥0입니다. 제곱 전개의 −2Σwe(Ad)/W가 정상방정식으로 0이 됩니다. 따라서 β*는 전역 최소입니다. Ad=0인 비영 방향이 있으면 여러 계수가 같은 최솟값을 만들 수 있습니다.

The difference is Σw(Ad)²/W≥0: the cross term vanishes by the normal equations. Thus β* is global. A nonzero direction with Ad=0 on contributing rows allows multiple minimizing coefficient vectors.

16. 특이 계수 가족A singular coefficient family

가정 기록은 모두 Z=1+2X를 만족하고 유일한 유효 적합 직선은 1/2+2X입니다. a+bX+cZ의 모든 동등 계수와 한 영방향을 쓰세요.

Every assumed record satisfies Z=1+2X, and the unique effective fitted line is 1/2+2X. Find all equivalent coefficients in a+bX+cZ and one null direction.

풀이와 확인할 이유Solution and explanation

a+c=1/2, b+2c=2이므로 c=t, a=1/2−t, b=2−2t입니다. 한 방향은 (−1, −2, 1)이고 어느 t에서도 관측 적합은 같습니다. 개별 b, c가 유일하지 않아도 적합 벡터는 유일할 수 있습니다.

Set c=t, a=1/2−t, b=2−2t. The null direction is (−1, −2, 1), and all t give identical observed fits. Unique fitted values can coexist with nonunique individual slopes.

17. 관계 위의 새 예측A query on the observed relation

가정 평면 a+bX+cZ의 최소 계수 가족은 (a, b, c)=(1/2−t, 2−2t, t), t∈R입니다. 새 X=4, Z=9에서 예측은 유일한가요? 계산하세요.

An assumed plane a+bX+cZ has minimizing coefficient family (a, b, c)=(1/2−t, 2−2t, t), t∈R. Is prediction unique at X=4, Z=9? Calculate it.

풀이와 확인할 이유Solution and explanation

예측은 1/2−t+4(2−2t)+9t=17/2입니다. t 계수가 −1−8+9=0이라 유일합니다. 관측 관계 Z=1+2X 위의 함수값이지만 그 값이 실제 미래 환경에 맞는다는 보장은 별개입니다.

Prediction is 17/2 because the t coefficient −1−8+9 vanishes. It is unique within the fitted family on Z=1+2X; future-environment validity remains separate.

18. 관계 밖의 새 예측A query off the observed relation

가정 평면 a+bX+cZ의 최소 계수 가족은 (1/2−t, 2−2t, t), t∈R입니다. X=0, Z=0에서 가능한 예측 집합을 구하고 신뢰구간인지 설명하세요.

For an assumed plane a+bX+cZ with minimizing coefficient family (1/2−t, 2−2t, t), t∈R, find the prediction set at X=0, Z=0 and say whether it is a confidence interval.

풀이와 확인할 이유Solution and explanation

예측은 1/2−t이므로 모든 실수입니다. 이는 같은 관측 손실을 최소화하는 계수들의 비유일성 때문에 생긴 집합이며 반복표집 확률을 이용한 신뢰구간이 아닙니다.

Prediction is 1/2−t, spanning all real numbers. This reflects nonuniqueness among observational loss minimizers, not a repeated-sampling confidence interval.

19. 더미 함정의 전체 해The whole dummy-trap family

가정 두 집단의 양수 가중치가 있고 집단 평균은 A=4, B=7입니다. D_A+D_B=1일 때 상수 a와 두 더미 계수 b_A, b_B의 최소해 가족을 구하세요.

Both assumed groups have positive weight and means A=4, B=7. With D_A+D_B=1, find the minimizing family for an intercept a and dummy slopes b_A, b_B.

풀이와 확인할 이유Solution and explanation

a=t, b_A=4−t, b_B=7−t입니다. A 더미를 빼면 a=4, b_B=3으로 같은 집단 적합을 얻습니다. 기준 더미를 뺐다고 A 원행을 삭제한 것은 아닙니다.

The family is a=t, b_A=4−t, b_B=7−t. Dropping the A dummy gives a=4, b_B=3 with the same fits. Omitting a reference dummy does not delete that group’s rows.

20. 절편 없는 두 행Two rows without an intercept

가정 X=(1, 2), Y=(2, 3)를 원점 직선 bX로 적합합니다. b, 잔차 합을 구하고 절편을 허용한 결과와 비교하세요.

Fit assumed X=(1, 2), Y=(2, 3) with an origin line bX. Find b and the residual sum, and compare with an intercept model.

풀이와 확인할 이유Solution and explanation

b=(2+6)/(1+4)=8/5입니다. 잔차는 2/5, −1/5로 합 1/5이며 0이 아닙니다. 절편을 허용하면 a=1, b=1이 정확히 맞춥니다. 원점 모형에서도 ΣXe=0이지만 상수 방향의 직교는 강제하지 않습니다.

The slope is 8/5 and residuals 2/5, −1/5 sum to 1/5. An intercept permits exact fit a=1, b=1. Origin regression enforces ΣXe=0 without automatically enforcing constant-direction orthogonality.

21. X를 먼저 잔차화Residualize X first

가정 X=(0, 0, 1, 1, 2, 2, 3, 3), Z=(0, 1, 0, 1, 1, 2, 1, 2)에서 X의 Z·상수 적합이 1/2+Z입니다. rX 목록과 ΣrX²를 구하세요.

Assume X=(0, 0, 1, 1, 2, 2, 3, 3), Z=(0, 1, 0, 1, 1, 2, 1, 2), with fitted X on a constant and Z equal to 1/2+Z. Find rX and ΣrX².

풀이와 확인할 이유Solution and explanation

rX는 −1/2, −3/2, 1/2, −1/2, 1/2, −1/2, 3/2, 1/2입니다. 제곱합은 (1+9+1+1+1+1+9+1)/4=6입니다. 이는 원 X에서 선언한 통제 평면의 예측을 뺀 가공 좌표입니다.

Residuals are −1/2, −3/2, 1/2, −1/2, 1/2, −1/2, 3/2, 1/2. Their squared sum is six. These are derived coordinates obtained by subtracting the declared control fit from original X.

22. Y도 같은 통제로 잔차화Residualize Y on the same controls

가정 Y=(0, 5, 4, 5, 8, 11, 10, 13), Z=(0, 1, 0, 1, 1, 2, 1, 2)이고 상수와 Z의 적합이 2+5Z입니다. rY와 ΣrY²를 구하세요.

Assume Y=(0, 5, 4, 5, 8, 11, 10, 13), Z=(0, 1, 0, 1, 1, 2, 1, 2), with fitted Y on a constant and Z equal to 2+5Z. Find rY and its squared sum.

풀이와 확인할 이유Solution and explanation

rY=(−2, −2, 2, −2, 1, −1, 3, 1)이고 제곱합은 28입니다. 이 잔차는 X를 포함한 전체 모형의 잔차와 아직 다릅니다. 다음 단계에서 rX 방향도 제거해야 합니다.

The residual vector is (−2, −2, 2, −2, 1, −1, 3, 1), with squared sum 28. It is not yet the full-model residual: the residualized X direction remains to be removed.

23. 원점 부분회귀The through-origin partial regression

가정한 동일 8행에서 rX=(−1/2, −3/2, 1/2, −1/2, 1/2, −1/2, 3/2, 1/2), rY=(−2, −2, 2, −2, 1, −1, 3, 1)입니다. rY를 rX에 원점 회귀한 기울기를 구하세요.

For the same eight assumed rows, rX=(−1/2, −3/2, 1/2, −1/2, 1/2, −1/2, 3/2, 1/2), rY=(−2, −2, 2, −2, 1, −1, 3, 1). Find the through-origin slope of rY on rX.

풀이와 확인할 이유Solution and explanation

곱합은 1+3+1+1+1/2+1/2+9/2+1/2=12이고 제곱합은 6이므로 기울기는 2입니다. 같은 행·통제·가중치의 전체 모형에서 X 계수와 같습니다. 별도 상수는 이 잔차 회귀의 정의에 추가하지 않습니다.

The cross-product sum is twelve and rX squared sum six, giving slope two. This equals the full-model X coefficient under the same rows, controls and weights. The residual regression is defined through the origin.

24. 전체 잔차 재현Recover the full residuals

가정 잔차 rX=(−1/2, −3/2, 1/2, −1/2, 1/2, −1/2, 3/2, 1/2), rY=(−2, −2, 2, −2, 1, −1, 3, 1)와 부분 기울기 b=2가 있습니다. rY−brX와 MSE를 구하세요.

Given assumed residuals rX=(−1/2, −3/2, 1/2, −1/2, 1/2, −1/2, 3/2, 1/2), rY=(−2, −2, 2, −2, 1, −1, 3, 1) and b=2, find rY−brX and MSE over eight equal-weight rows.

풀이와 확인할 이유Solution and explanation

벡터는 (−1, 1, 1, −1, 0, 0, 0, 0)입니다. 제곱합 4를 8로 나누면 MSE=1/2입니다. FWL은 해당 기울기뿐 아니라 전체 모형의 관측 잔차와 최소 손실도 재현합니다.

The vector is (−1, 1, 1, −1, 0, 0, 0, 0), giving SSE four and MSE one half. FWL reproduces the full-model residual vector and minimized loss, as well as the target coefficient.

25. 잔차화의 직교Orthogonality after residualization

가정한 유한 자료의 양수 가중 좌표에서 C는 통제 열공간, rX와 rY는 각각 X, Y의 C에 대한 직교 잔차입니다. 왜 rY−brX도 C에 직교하는지 설명하세요.

On positive-weight coordinates of finite assumed data, let C be the control column space, and rX, rY the weighted orthogonal residuals of X, Y on C. Why is rY−brX orthogonal to C?

풀이와 확인할 이유Solution and explanation

모든 통제 벡터 c에 대해 내적(c, rY−brX)=내적(c, rY)−b내적(c, rX)=0입니다. b를 잔차 회귀의 최소해로 고르면 rX와도 직교합니다. 두 조건이 합쳐져 원 통제와 X를 포함한 전체 정상방정식을 충족합니다.

For any control vector c, the product with rY−brX is zero by linearity and the two residual orthogonalities. Choosing b by the residual regression also gives orthogonality to rX, together yielding the full normal equations for controls and X.

26. 한쪽만 제거하면Removing controls on only one side

같은 유한 가정 자료의 가중치 행렬을 D_w=diag(wᵢ)로 둡니다. C가 상수를 포함하고 rX, rY는 같은 양수 가중치 좌표에서 X, Y를 C에 각각 잔차화한 값입니다. rXᵀD_wY=rXᵀD_wrY가 성립하는 이유와, Y만 잔차화하고 원 X로 원점 회귀하는 것이 일반적으로 다른 이유를 설명하세요.

On the same finite assumed rows, define weight matrix D_w=diag(wᵢ). Let C include a constant and residualize X, Y separately on C using the same positive-weight coordinates to obtain rX, rY. Explain rXᵀD_wY=rXᵀD_wrY, and why regressing residualized Y on original X through the origin is generally different.

풀이와 확인할 이유Solution and explanation

Y=rY+Y의 통제 적합으로 분해하고 rX가 통제 적합과 직교함을 쓰면 곱합이 같습니다. 그러나 원 X의 제곱합은 rX의 제곱합과 일반적으로 다릅니다. Y만 제거한 원점 회귀의 분모를 원 X 제곱합으로 쓰면 FWL 기울기를 보장하지 않습니다.

Decompose Y into rY plus its control fit; rX is orthogonal to that fit. Original X generally has a different squared norm from rX, however, so residualizing only Y and using the original-X denominator does not generally yield FWL.

27. 부분 결정계수A partial R squared

가정 같은 8행에서 Y의 통제 잔차 제곱합은 28, 전체 모형 잔차 제곱합은 4, 원 Y의 중심 총제곱합은 128입니다. 잔차 회귀의 부분 R²와 전체 R²를 비교하세요.

On the same eight assumed rows, the control-only residual squared sum is 28, the full SSE is four and centered total Y variation is 128. Compare partial R² and full R².

풀이와 확인할 이유Solution and explanation

부분 R²=1−4/28=6/7, 전체 R²=1−4/128=31/32입니다. 앞 분모는 통제가 이미 제거한 뒤 남은 변동, 뒤 분모는 원 Y의 중심 변동입니다. 값이 달라도 모순이 아니며 분모를 표시해야 합니다.

Partial R²=6/7 and full R²=31/32. Their denominators are remaining variation after controls and original centered Y variation respectively. Different values are consistent; state the denominator.

28. 잔차 X가 모두 0An identically zero residualized X

가정 모든 양수 가중 행에서 X=2+3Z이고 통제는 상수와 Z입니다. X를 통제에서 잔차화한 뒤 부분 기울기를 계산할 수 있나요? 전체 모형의 해를 설명하세요.

Assume X=2+3Z on every positive-weight row and controls are a constant and Z. Can the partial slope be uniquely calculated after residualizing X? Describe the full model.

풀이와 확인할 이유Solution and explanation

rX=0이므로 분모 Σw rX²=0입니다. b를 어떤 값으로 바꾸어도 상수와 Z 계수로 흡수할 수 있어 목표 기울기는 미식별입니다. 편의상 0을 대표로 출력할 수는 있지만 유일한 0이라고 해석하면 안 됩니다. 적합 벡터는 여전히 유일할 수 있습니다.

Since rX=0, the denominator vanishes. Any target slope can be absorbed by the intercept and Z coefficient, so it is unidentified. A representative zero is not a uniquely identified zero. Fitted values can still be unique.

29. 중복 통제와 유일한 목표Redundant controls with a unique target

가정 네 행 (X, Z)=(0, 0), (1, 0), (0, 1), (1, 1)의 Y=1+2X+3Z입니다. 상수, X, Z, 2Z를 모두 넣습니다. X 계수와 두 Z 계수의 식별 상태를 비교하세요.

Assume four rows (X, Z)=(0, 0), (1, 0), (0, 1), (1, 1), with Y=1+2X+3Z. Include a constant, X, Z and 2Z. Compare identification of the X slope and the two control slopes.

풀이와 확인할 이유Solution and explanation

상수는 1, X 기울기는 2로 유일하고 통제 계수는 c1+2c2=3만 정해집니다. 통제 열공간은 상수와 Z만 쓴 것과 같고 잔차 X는 ±1/2로 0이 아니므로 목표 기울기는 유일합니다. 전체 계수 비유일성과 모든 개별 계수 비유일성은 다릅니다.

The intercept is one and X slope two; only c1+2c2=3 is identified for the controls. Their column space is unchanged and residualized X is nonzero, so its slope remains unique despite nonunique control coefficients.

30. 가중 잔차 계산Calculate weighted residuals

가정 (X, Z, Y, w)=(0, 0, 0, 1), (1, 0, 2, 2), (0, 1, 4, 3), (1, 1, 5, 4)에서 통제는 상수와 Z입니다. 각 Z 집단의 가중 X 평균·Y 평균을 구하세요.

Assume (X, Z, Y, w)=(0, 0, 0, 1), (1, 0, 2, 2), (0, 1, 4, 3), (1, 1, 5, 4), with a constant and Z as controls. Find weighted X and Y means within each Z group.

풀이와 확인할 이유Solution and explanation

Z=0의 질량은 3이고 X 평균=2/3, Y 평균=4/3입니다. Z=1의 질량은 7이고 X 평균=4/7, Y 평균=(12+20)/7=32/7입니다. 비가중 평균 1/2 등으로 대신하면 다른 통제 적합입니다.

At Z=0, mass is three, mean X=2/3 and mean Y=4/3. At Z=1, mass is seven, mean X=4/7 and mean Y=32/7. Unweighted means would define different control fits.

31. 가중 부분 기울기A weighted partial slope

가정 가중치는 (1, 2, 3, 4), rX=(−2/3, 1/3, −4/7, 3/7), rY=(−4/3, 2/3, −4/7, 3/7)입니다. 이들은 같은 통제 열·원행·가중치로 X와 Y를 각각 잔차화한 값입니다. 부분 기울기와 전체 X 계수를 구하세요.

Assume weights (1, 2, 3, 4), rX=(−2/3, 1/3, −4/7, 3/7), rY=(−4/3, 2/3, −4/7, 3/7). These separately residualize X and Y using identical controls, rows and weights. Find the weighted partial slope and corresponding full X coefficient.

풀이와 확인할 이유Solution and explanation

가중 제곱합은 2/3+12/7=50/21, 가중 곱합은 4/3+12/7=64/21입니다. 비는 32/25이며 같은 행·가중치·통제를 쓴 전체 X 계수도 같습니다. 각 행 가중치를 곱하는 것은 잔차를 미리 w배한 뒤 다시 제곱하는 것과 다릅니다.

Weighted squared norm is 50/21 and cross-product 64/21, so the slope is 32/25, equal to the full target slope under identical rows, weights and controls. Weighting each squared residual by w is not squaring a residual already multiplied by w.

32. 가중 손실의 정확 분모The exact denominator of weighted loss

가정 네 행의 가중치는 (1, 2, 3, 4)이고 최적 잔차는 (−12/25, 6/25, 4/25, −3/25)입니다. 가중 SSE와 정규화 MSE를 구하세요.

Assume four rows with weights (1, 2, 3, 4) and optimal residuals (−12/25, 6/25, 4/25, −3/25). Find weighted SSE and normalized MSE.

풀이와 확인할 이유Solution and explanation

가중 SSE=(144+72+48+36)/625=12/25입니다. 가중치 합 10으로 나누면 MSE=6/125입니다. 원행 수 4나 잔차 자유도로 나누면 이 장에서 정의한 목적함수와 달라집니다.

Weighted SSE=(144+72+48+36)/625=12/25. Dividing by total weight ten gives MSE=6/125. Dividing by four rows or residual degrees of freedom would change this chapter’s declared objective.

33. 잘못 맞춘 가용 집합Mismatched available subsets

가정 원행은 (X, Z, Y)=(0, 0, 0), (1, 0, 2), (2, 1, 4), (3, 1, 결측)입니다. 올바른 완전 3행의 rX=(−1/2, 1/2, 0), rY=(−1, 1, 0)입니다. X만 4행으로 잔차화해 앞 3행이 (−1/2, 1/2, −1/2)가 되면 두 기울기는 무엇인가요?

Assume rows (X, Z, Y)=(0, 0, 0), (1, 0, 2), (2, 1, 4), (3, 1, missing). Correct complete-row residuals are rX=(−1/2, 1/2, 0), rY=(−1, 1, 0). If X alone uses four rows, its first three residuals become (−1/2, 1/2, −1/2). Compare the slopes.

풀이와 확인할 이유Solution and explanation

올바른 비는 곱합 1/제곱합 1/2=2입니다. 잘못된 비는 곱합 1/제곱합 3/4=4/3입니다. 네 번째 원행을 보관하는 것은 필요하지만 FWL 계산의 투영 부분집합은 양쪽에서 같아야 합니다.

Correct slope is 1/(1/2)=2. The mismatched projection gives 1/(3/4)=4/3. Retaining row four is appropriate, but FWL requires the same contributing projection subset on both sides.

34. 짧은 기울기 계산Calculate a short-model slope

가정 완전 자료의 평균은 X=3/2, Y=7이고 중심 합 Sxx=10, Sxy=32입니다. X만 포함한 절편 회귀의 기울기와 절편을 구하세요.

Assume complete data with means X=3/2, Y=7 and centered sums Sxx=10, Sxy=32. Find slope and intercept of the intercept regression using X alone.

풀이와 확인할 이유Solution and explanation

짧은 기울기 B=32/10=16/5이고 절편 A=7−(16/5)(3/2)=11/5입니다. 통제를 추가한 계수가 아니라 X만 쓴 별도 최적화의 결과입니다.

The short slope is 16/5 and intercept 11/5. These solve the X-only optimization, which is a different function class from the model with controls.

35. 누락 항등식The omission identity

같은 가정 행·가중치의 전체 모형 Y=a+bX+cZ+e는 b=2, c=3이며 잔차는 상수와 X에 직교합니다. Z를 X와 상수에 회귀한 기울기 δ=2/5일 때 짧은 Y-on-X 기울기를 구하세요.

On the same assumed rows and weights, the full model Y=a+bX+cZ+e has b=2, c=3 and residuals orthogonal to the constant and X. The Z-on-X intercept regression has slope δ=2/5. Find the short Y-on-X slope.

풀이와 확인할 이유Solution and explanation

공분산 항등식으로 B=b+cδ=2+3(2/5)=16/5입니다. 차이는 6/5입니다. 이는 기술적 투영 관계이며 b가 인과효과라는 추가 조건 없이 차이를 인과적 누락 편향으로 단정하지 않습니다.

The covariance identity gives B=b+cδ=16/5, and change 6/5. This is a descriptive projection identity. Calling the change causal omitted-variable bias requires additional justification that b identifies the relevant causal effect.

36. 통제를 추가해도 같은 기울기An unchanged slope after controls

같은 가정 행·가중치의 유일한 전체 모형 계수는 b, c이고 Z-on-X 기울기는 δ입니다. B=b+cδ에서 B=b가 되는 두 충분조건을 쓰고 인과 교란이 없다는 증명인지 답하세요.

For a unique full model on the same assumed rows and weights, the short slope satisfies B=b+cδ. Give two sufficient conditions for equality B=b and say whether equality proves absence of causal confounding.

풀이와 확인할 이유Solution and explanation

c=0 또는 δ=0이면 같습니다. 계수 곱이 0인 투영의 대수적 조건이며 충분한 인과 식별 가정은 아닙니다. 누락된 다른 변수·선택·측정 문제가 여전히 있을 수 있습니다.

Either c=0 or δ=0 suffices. These are algebraic projection conditions, not sufficient causal identification assumptions. Other omitted factors, selection or measurement problems may remain.

37. 적합 손실의 비교Compare nested fitting losses

가정 동일 8행·각 행 가중치 1(총 8)에서 상수+X 모형 SSE=128/5, 상수+X+Z 모형 SSE=4입니다. MSE 감소를 계산하고 통제를 늘리면 시험 손실도 반드시 줄어드는지 답하세요.

On the same eight assumed rows, each with weight one (total eight), the intercept-X model has SSE=128/5 and the intercept-X-Z model SSE=4. Calculate the MSE decrease and assess guaranteed test improvement.

풀이와 확인할 이유Solution and explanation

MSE는 16/5에서 1/2로 줄어 차이는 27/10입니다. 더 큰 함수 집합이므로 같은 훈련 행의 최소 손실은 증가하지 않습니다. 새 자료의 손실은 별도 평가가 필요하며 증가할 수도 있습니다.

MSE falls from 16/5 to 1/2, a decrease of 27/10. Nested function classes cannot increase minimized loss on the same training rows. New-data loss needs separate evaluation and may increase.

38. 통제 집합과 인과 목표Controls and a causal target

어떤 실제 관측 자료의 Y-on-X 계수가 Z를 추가하면 바뀌었습니다. 이것만으로 Z가 반드시 넣어야 할 인과 교란변수이며 바뀐 계수가 총효과라고 말할 수 있나요?

In actual observational data, the Y-on-X coefficient changes after adding Z. Does this alone establish that Z must be controlled as a confounder and the new coefficient is a total causal effect?

풀이와 확인할 이유Solution and explanation

아닙니다. Z의 시간순서·원인구조·선택 과정과 표적 개입을 알아야 합니다. 매개변수나 공통결과를 통제하면 다른 목표가 되거나 편향을 만들 수 있습니다. 이 장의 잔차화 항등식은 계산의 일치를 증명하며 적절한 인과 통제 선택을 자동 판정하지 않습니다.

No. Establish the intervention target, timing, causal structure and selection mechanism. Conditioning on a mediator or common effect can change the estimand or introduce bias. Residualization proves computational identities, not automatic causal validity of a control set.

39. 그림의 수직과 벡터 직교Vertical plot errors versus vector orthogonality

다중회귀의 잔차가 설계 열에 직교한다는 말은 각 (X, Z, Y) 점에서 평면까지의 최단 3차원 거리 제곱을 최소화한다는 뜻인가요? 목적함수를 써서 답하세요.

Does residual orthogonality to design columns mean multiple regression minimizes shortest three-dimensional distances from each (X, Z, Y) point to a plane? State the objective.

풀이와 확인할 이유Solution and explanation

아닙니다. X, Z를 고정한 Y−a−bX−cZ의 제곱을 가중해 더합니다. 직교는 n개 결과가 있는 관측공간의 잔차 벡터와 설계 열 벡터 사이입니다. 산점도 좌표공간의 최단거리 적합은 다른 문제입니다.

No. The objective sums weighted squared Y−a−bX−cZ while fixing X, Z. Orthogonality concerns residual and design-column vectors in observation space. Shortest-distance fitting in the plotted coordinate space is a different optimization.

40. 표준오차가 없는 이유Why a coefficient is not its standard error

완전히 보관한 실제 384개 점포쌍의 회귀계수를 정확 분수로 계산했습니다. 이 계산만으로 표준오차·정책효과·다음 시점 예측오차를 함께 알 수 있나요?

Suppose coefficients for 384 retained actual establishment pairs are computed as exact fractions. Does this alone determine standard errors, policy effects and next-period prediction error?

풀이와 확인할 이유Solution and explanation

정확 분수는 선언한 표의 최적화 오차를 없애는 계산 방식입니다. 모집단·표집 또는 시계열 의존·오차 구조·식별·새 환경의 조건은 추가로 필요합니다. 보관 표의 기술적 계수와 각 확장에 필요한 가정을 따로 보고합니다.

Exact arithmetic addresses optimization on the declared table. Population and sampling or time-dependence models, error structure, identification and deployment conditions require additional assumptions. Report the descriptive coefficients and those separate requirements.

41. 중심 이동의 절편The intercept after centering

가정 평면은 Ŷ=1+2X+3Z이고 X 평균=3/2, Z 평균=1입니다. X′=X−3/2, Z′=Z−1로 바꾼 평면과 새 절편의 뜻을 쓰세요.

Assume plane Ŷ=1+2X+3Z with means X=3/2 and Z=1. Express it using X′=X−3/2, Z′=Z−1 and explain the new intercept.

풀이와 확인할 이유Solution and explanation

대입하면 Ŷ=7+2X′+3Z′입니다. 새 절편 7은 원 X, Z의 평균 조합에서 예측한 값입니다. 원점의 의미를 옮긴 것이며 같은 원행의 적합과 잔차는 유지합니다.

Substitution gives Ŷ=7+2X′+3Z′. The intercept predicts the original mean combination. Moving the coordinate origin preserves fits and residuals on the same rows.

42. 시간에서 분으로From hours to minutes

가정 평면 Ŷ=1+2X+3Z에서 X는 시간입니다. X′=60X를 분 단위로 쓰고 Y, Z 단위는 유지할 때 새 세 계수를 구하세요.

In assumed plane Ŷ=1+2X+3Z, X is hours. Use minutes X′=60X while retaining Y, Z units. Find the three transformed coefficients.

풀이와 확인할 이유Solution and explanation

X=X′/60을 대입해 Ŷ=1+(1/30)X′+3Z입니다. 원 X 한 시간이 60분이므로 (1/30)×60=2점이 되어 같은 예측을 복원합니다. 기울기 숫자 감소가 설명력 감소를 뜻하지 않습니다.

Substitution gives intercept one, X′ slope 1/30 and Z slope three. Sixty minutes yields the same two-point fitted change. A smaller numerical slope does not imply reduced explanatory power.

43. 결과 단위와 손실Outcome units and loss

가정 최적 평면은 1+2X+3Z, MSE=1/2입니다. Y′=100Y, X′=60X, Z′=Z로 바꾸면 계수·잔차·MSE는 무엇인가요?

An assumed optimum is 1+2X+3Z with MSE=1/2. Transform Y′=100Y, X′=60X, Z′=Z. Find coefficients, residual transformation and MSE.

풀이와 확인할 이유Solution and explanation

새 평면은 100+(10/3)X′+300Z′입니다. 잔차는 원 잔차의 100배이고 MSE는 100²×1/2=5000입니다. 원 Y 단위로 되돌리면 원 적합과 MSE를 복원합니다.

The transformed plane is 100+(10/3)X′+300Z′. Residuals multiply by 100 and MSE becomes 5000. Restoring original Y units restores the original fits and loss.

44. 통제 단위만 바꾸기Transforming only a control

가정 모형 1+2X+3Z에서 Z′=10+2Z로 바꾸고 상수와 X는 그대로 포함합니다. 새 평면과 원 단위 X 계수의 변화를 구하세요.

Transform only control Z in assumed plane 1+2X+3Z to Z′=10+2Z, retaining the intercept and X. Give the new plane and change in the original-unit X slope.

풀이와 확인할 이유Solution and explanation

Z=(Z′−10)/2이므로 평면은 −14+2X+(3/2)Z′입니다. 통제 열공간은 같고 X 계수는 2로 유지됩니다. 새 통제가 다른 정보를 추가한 것이 아니라 같은 정보를 역변환 가능하게 표시한 것입니다.

The new plane is −14+2X+(3/2)Z′. The control space is unchanged, so the X slope stays two. This invertible re-expression adds no new control information.

45. 두 좌표의 부호 반전Reversing two coordinate directions

가정 평면 Ŷ=1+2X+3Z에서 X′=−X, Y′=−2Y, Z′=Z입니다. 새 계수와 MSE 배수를 구하고 음의 단위척도를 허용하는 수학적 이유를 설명하세요.

For assumed plane Ŷ=1+2X+3Z, use X′=−X, Y′=−2Y, Z′=Z. Find transformed coefficients and the MSE multiplier, and explain mathematical admissibility.

풀이와 확인할 이유Solution and explanation

새 평면은 −2+4X′−6Z′이고 MSE는 4배입니다. 0이 아닌 척도이므로 역변환 가능하지만 일반 물리 단위 변경보다는 축 방향을 뒤집는 연습입니다. 부호만 보고 관계의 인과 방향이 바뀌었다고 하지 않습니다.

The new plane is −2+4X′−6Z′ and MSE multiplies by four. Nonzero scales are invertible; negative scales reverse coordinate orientation rather than establishing a causal reversal.

46. 특이 해의 좌표 대응Coordinates of a singular family

가정 최소해 가족은 (a, b, c)=(1/2−t, 2−2t, t), Z=1+2X입니다. X′=2X, Z′=Z−1, Y′=Y일 때 변환된 전체 계수 가족을 구하세요.

Assume minimizing family (a, b, c)=(1/2−t, 2−2t, t), with Z=1+2X. Transform X′=2X, Z′=Z−1, Y′=Y. Find the entire new coefficient family.

풀이와 확인할 이유Solution and explanation

X=X′/2, Z=Z′+1이므로 새 절편 a′=a+c=1/2, 새 X′ 계수 b′=b/2=1−t, c′=t입니다. 새 관측 관계 Z′=X′에서 기울기 합이 1이 되어 같은 적합을 보존합니다.

The new family is a′=1/2, b′=1−t, c′=t. On the new observed relation Z′=X′, the slopes sum to one and reproduce the same fits. Transform the entire family, not only one displayed representative.

47. 새 조합의 식별 조건Identification of a new combination

가정 설계의 최소해는 β₀+t₁v₁+t₂v₂, t₁, t₂∈R입니다. 새 행 a*에서 a*ᵀv₁=0, a*ᵀv₂=3이면 예측 집합은 무엇인가요?

Assume minimizing family β₀+t₁v₁+t₂v₂ with unrestricted real t₁, t₂. At a query a*, a*ᵀv₁=0 and a*ᵀv₂=3. Find the prediction set.

풀이와 확인할 이유Solution and explanation

예측은 a*ᵀβ₀+3t₂이므로 모든 실수입니다. 하나의 영방향과만 직교하는 것은 충분하지 않습니다. 모든 자유 방향과의 곱이 0일 때에만 계수 가족 전체에서 예측이 유일합니다.

The set is all real numbers because prediction equals a*ᵀβ₀+3t₂. Orthogonality to just one null direction is insufficient; every free-direction product must vanish for a unique prediction.

48. 가까운 열 의존Near column dependence

가정 세 행에서 X=(0, 1, 2), Z=(1, 3, 5+ε), ε=1/1000입니다. 원 Y=(0, 1, 2)의 정확 평면은 (a, b, c)=(0, 1, 0)입니다. 마지막 Y만 ε 늘리면 (−1, −1, 1)이 새 값을 맞추는지 확인하고 해석하세요.

Assume X=(0, 1, 2), Z=(1, 3, 5+ε), ε=1/1000. Original Y=(0, 1, 2) is exactly fit by (a, b, c)=(0, 1, 0). Increase only the last Y by ε. Check new coefficients (−1, −1, 1) and interpret.

풀이와 확인할 이유Solution and explanation

예측은 −1+1=0, −1−1+3=1, −1−2+5+ε=2+ε입니다. 작은 결과 변화에 계수는 크게 달라집니다. ε≠0이므로 설계는 비특이이지만 거의 의존하는 열이 계산·입력 민감도를 키울 수 있습니다. 정확한 중복과 같은 상태는 아닙니다.

The fits are 0, 1, 2+ε. A small outcome perturbation changes coefficients substantially. Since ε is nonzero, the design is nonsingular, but near dependence can amplify input and numerical sensitivity. It is distinct from exact redundancy.

49. Gram 행렬과 실무 계산Gram matrices and computation

어떤 학생은 다중회귀는 언제나 (AᵀA)⁻¹AᵀY를 직접 계산하면 끝난다고 말합니다. 열 중복과 부동소수점 조건수를 고려해 고치세요.

A student claims multiple regression always requires only direct evaluation of (AᵀA)⁻¹AᵀY. Correct the statement using redundant columns and floating-point conditioning.

풀이와 확인할 이유Solution and explanation

열이 중복되면 역행렬은 존재하지 않지만 최소 손실 적합은 존재할 수 있습니다. 비특이여도 Gram 형성은 조건수를 악화할 수 있습니다. 작은 정확 표는 소거와 해 가족으로 검산하고 실제 수치 계산에서는 QR·SVD 및 랭크 기준을 확인합니다.

Redundant columns can eliminate the inverse without eliminating minimizing fits. Even when invertible, forming Gram matrices can worsen conditioning. Use exact elimination and families for small checks; inspect QR or SVD and rank criteria for numerical work.

50. 국가 변수의 실제 단위Actual national-variable units

보관한 World Bank 2024년 16국 표에서 Y는 1인당 실질 GDP(2015 USD), X는 출생 시 기대수명(년), Z는 실업률(ILO 모형 추정, %)입니다. Z 계수 약 899.538959의 단위를 쓰고 실업 증가 정책의 효과인지 답하세요.

In the retained 2024 World Bank 16-country table, Y is real GDP/person in 2015 USD, X period life expectancy in years and Z ILO-modelled unemployment in percent. State units of a Z slope approximately 899.538959 and assess a policy interpretation.

풀이와 확인할 이유Solution and explanation

다른 설명 열을 고정한 평면의 단위는 2015 USD/명/실업률 퍼센트포인트입니다. Z의 1은 비율 1배가 아니라 1퍼센트포인트입니다. 선택한 16국의 기술적 기울기이며 실업을 늘리면 생산성이 증가한다는 인과·정책 결론이 아닙니다.

Its units are 2015 USD/person per unemployment percentage point, holding the other column fixed. A one-unit Z change is one percentage point. This descriptive slope in sixteen selected countries does not identify an unemployment policy effect.

51. 기대수명과 개인 수명Life expectancy and individual lifespan

실제 국가 다중회귀의 X는 2024년 출생 시 기대수명입니다. 이것을 각 나라에서 2024년에 태어난 특정 사람의 관측 사망 나이나 GDP 변화의 원인으로 바로 써도 되나요?

The actual country model uses 2024 life expectancy at birth. May it be treated as an observed lifespan for a specific person born in that year or automatically as a cause of GDP differences?

풀이와 확인할 이유Solution and explanation

아닙니다. 당시 사망률 패턴이 지속된다는 조건의 집단 지표이며 특정 개인의 관측 수명이나 예측 확정값이 아닙니다. 국가 수준의 횡단면 투영은 개인 수준 효과나 기대수명 개입의 인과효과를 식별하지 않습니다.

No. It is a population measure under the period mortality pattern, not an observed lifespan or certain prediction for a particular person. Country-level cross-sectional projection does not identify individual effects or a life-expectancy intervention effect.

52. 사람 원행의 분모Denominators for actual person records

보관 Card 표에는 3,613명 원행이 있고 교육 연수와 1976년 나이는 모두 가용하지만 원자료 절단 log 임금은 3,010개입니다. 원행 보존 수·기여 수·결측 수와 가능한 해석 범위를 쓰세요.

The retained Card table has 3,613 source records, all with schooling and 1976 age, but only 3,010 source-trimmed log wages. State retained, contributing and unavailable counts and the interpretation boundary.

풀이와 확인할 이유Solution and explanation

원행 3,613개를 보존하고 가용 완전행 3,010개가 기여하며 log 결측은 603개입니다. 이 가용 기록들의 균등 투영은 1976년 전체 노동자나 미관측 603명의 임금 관계를 자동 대표하지 않습니다.

Retain 3,613 rows, use 3,010 complete contributors and report 603 unavailable logs. The equal-weight projection of available records does not automatically represent all 1976 workers or the missing outcomes.

53. log 임금 기울기의 뜻Meaning of a log-wage slope

실제 Card 가용 3,010행의 교육·나이 투영에서 교육 계수는 약 0.052510659입니다. Y는 1976년 시간당 임금(센트)의 원자료 절단 log 변수입니다. 한 해 차이에 따른 평면의 log 차이와 수준비를 쓰고 인과효과인지 답하세요.

In the actual Card 3,010-row schooling-age projection, the schooling slope is approximately 0.052510659. Y is the source-trimmed log of 1976 hourly wage in cents. Give the plane’s one-year log change and level ratio, and assess causality.

풀이와 확인할 이유Solution and explanation

나이를 고정한 log 예측 차이는 약 0.052510659이고, 지수화한 평면 예측의 비는 exp(0.052510659)입니다. 이는 log 예측을 지수화한 비이며 산술 조건부 평균 임금의 비와 자동으로 같지 않습니다. 교육의 인과수익률도 이 투영만으로 식별되지 않습니다.

At fixed age, the fitted log change is approximately 0.052510659 and ratio of exponentiated fitted logs is exp(0.052510659). This need not equal a ratio of arithmetic conditional-mean wages, and projection alone does not identify a causal return to schooling.

54. 나이와 경력 구별Age versus experience

실제 Card 다중회귀의 두 번째 설명 열은 원 codebook의 age76이며 관측 범위는 24–34세입니다. 이를 실제 노동시장 경력이나 교육−나이로 만든 가상 경력 변수라고 써도 되나요?

The second predictor in the actual Card model is original age76, observed from 24 to 34 years. May it be labelled actual labour-market experience or a constructed experience proxy?

풀이와 확인할 이유Solution and explanation

아닙니다. 이 장은 1976년 기록 나이를 직접 읽었습니다. 경력을 측정하거나 경력 대용식을 새로 계산한 것이 아닙니다. 변수 이름·정의·단위를 코드북과 맞추고 다른 모형으로 바꿀 때는 별도 가공을 기록합니다.

No. The model directly reads recorded 1976 age, not measured experience or a constructed proxy. Match names, definitions and units to the codebook; document any later alternative transformation separately.

55. 점포 회귀와 정책효과An establishment regression and policy effects

실제 NJ/PA 완전짝 384행의 모형은 후 FTE=a+b×전 FTE+c×NJ입니다. 계산된 c는 약 1.338523204입니다. 이것이 곧 최저임금 인상의 인과효과 또는 이중차분 계수인가요?

The actual NJ/PA 384-complete-pair model is after FTE=a+b×before FTE+c×NJ, with c approximately 1.338523204. Is c automatically a causal minimum-wage effect or a difference-in-differences coefficient?

풀이와 확인할 이유Solution and explanation

아닙니다. 이는 후 FTE를 결과로, 전 FTE와 주 지표를 설명 열로 한 관측 투영입니다. 단순 변화의 집단 차이나 이중차분식과도 모형이 다릅니다. 정책 인과 해석에는 별도 설계·반사실적 가정이 필요합니다.

No. It is an observed projection of after FTE on before FTE and a state indicator. It differs from a simple group difference in changes or a specified DID regression. Causal policy interpretation requires additional design and counterfactual assumptions.

56. 두 시점 FTE 가용성Availability of two-wave FTE

설명용 가정 점포의 전 기록은 FT=10, PT=4, 관리자=2이고 후 기록은 FT=11, PT=결측, 관리자=2입니다. FTE=FT+0.5PT+관리자로 정의할 때 전·후·완전짝 상태를 구하세요.

An assumed establishment has before FT=10, PT=4, managers=2 and after FT=11, PT=missing, managers=2. Under FTE=FT+0.5PT+managers, find both-wave availability and complete-pair status.

풀이와 확인할 이유Solution and explanation

전 FTE=10+2+2=14입니다. 후는 필수 PT가 결측이라 미정의이며 완전짝에 기여하지 않습니다. PT를 0으로 넣어 후 FTE=13이라고 만들지 않습니다. 원행과 가용한 전 값은 계속 보관합니다.

Before FTE is fourteen. After FTE is unavailable because a required component is missing, so the row is not a complete-pair contributor. Do not invent after FTE thirteen by zero-filling PT. Retain the source row and available before value.

57. 중복 원 코드의 키Keys when a source code repeats

NJ/PA 실제 원 코드 407은 원행 42와 168에 각각 존재하며 서로 다른 점포 기록입니다. 전후 회귀를 준비할 때 코드 407을 한 행으로 합쳐야 하나요?

Original NJ/PA code 407 occurs at source rows 42 and 168, representing different establishment records. Must they be merged into one row before preparing the two-wave regression?

풀이와 확인할 이유Solution and explanation

합치지 않습니다. 각 원행의 두 시점을 그대로 짝짓고 sourceRow를 구별 키로 보존합니다. 같은 숫자 코드는 고유 식별자가 보장되지 않습니다. 원행 키가 표본 독립성이나 추가 시점의 동일 점포 추적을 보증하는 것도 아닙니다.

Do not merge them. Preserve both source rows and pair each row’s own two waves, using sourceRow to distinguish them. A repeated numeric code is not a guaranteed unique identifier; an assigned row key does not establish independence or future tracking.

58. 가공 좌표 그림 읽기Reading derived-coordinate plots

실제 부분회귀 그림에서 가로축은 X를 통제에 잔차화한 rX, 세로축은 Y의 통제 잔차 rY입니다. 음의 rX가 실제 음수 나이나 음수 전 FTE를 뜻하나요? 원점을 지나는 선의 의미도 설명하세요.

An actual added-variable plot uses control-residualized X as rX horizontally and control-residualized Y as rY vertically. Does negative rX imply negative actual age or before FTE? Explain the through-origin line.

풀이와 확인할 이유Solution and explanation

음수는 해당 통제 적합보다 원 X가 작다는 가공 차이입니다. 물리 관측이 음수가 된 것이 아닙니다. 선은 같은 행·가중치의 rY≈b rX를 나타내며 전체 모형 목표 계수를 재현합니다. 음수 잔차 좌표를 원래 관측값처럼 표시하지 않습니다.

Negative rX is a derived deviation below its control fit, not a negative physical observation. The line fits rY≈b rX on identical rows and weights, reproducing the full target coefficient. Label residual coordinates explicitly.

59. 행을 삭제한 손실 비교Comparing losses after deleting rows

모형 A는 실제 가용 3,010명, 모형 B는 그중 임의 500명을 빼고 적합했습니다. B의 MSE가 더 작으면 통제 변수를 추가해서 같은 표적에서 성능이 좋아졌다고 말할 수 있나요?

Model A fits 3,010 available actual person records; model B drops an arbitrary 500 before fitting. If B has lower MSE, does this establish improvement from added controls on the same target?

풀이와 확인할 이유Solution and explanation

아닙니다. 평가 행과 균등 법칙이 달라져 어려운 기록 제거의 영향이 섞입니다. 중첩 모형의 훈련 최소 손실 비교는 같은 행·결과·가중치를 고정해야 합니다. 새 표적을 썼다면 선택 이유와 별도 공통 평가를 보고합니다.

No. Different evaluation rows and equal-weight laws mix model changes with selection. Nested training-loss comparisons require the same rows, outcomes and weights. Document any changed target and use a separate common evaluation when needed.

60. 재현 보고서의 최소 내용A reproducible report’s minimum contents

공개 실제 국가·사람·점포 중 하나의 다중회귀와 FWL을 보고하려고 합니다. 자료 기록·계산·해석의 세 측면에서 반드시 남길 내용을 구체적으로 쓰세요.

You will report multiple regression and FWL for one public actual country, person or establishment dataset. Specify the required source, calculation and interpretation records.

풀이와 확인할 이유Solution and explanation

출처 URL·보관 해시·원 다운로드일과 검토일·관측 기간·원행 키·단위·결측 및 가중 분모를 남깁니다. 열 순서·절편·손실 정규화·전체 해 가족 또는 유일성·동일 부분집합 잔차화·계수와 SSE 일치를 재현합니다. 표의 기술적 투영과 모집단 추론·새 환경 예측·인과 개입을 구분하고 추가 가정을 적습니다.

Record URLs, retained hashes, original retrieval versus review dates, periods, row keys, units, missingness and weight denominator. Reproduce column order, intercept, loss normalization, uniqueness or whole families, same-subset residualization and coefficient/SSE equality. Distinguish descriptive projection from population inference, deployment prediction and causal interventions, and state extra assumptions.

자료와 출처Data and sources

실제 자료 사례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