같은 개체의 변화에서 전체 해집합·작업 공분산·조건부 평균까지From changes within a unit to complete solution families, working covariance and conditional means
실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions
기초Foundations
1. 같은 세 대상을 두 번 봅니다1. Observe the same three units twice
학생 세 명의 점수와 연습 시간을 두 번 기록했다고 상상합시다. 아래 여섯 행은 설명용 가정이며 실제 자료가 아닙니다. A의 x가 0에서 1로 늘 때 y는 0에서 2가 됩니다. B와 C도 x 한 단위 증가에 y가 2 늘지만 출발점은 다릅니다.
행을 모두 섞어 높은 x와 높은 y를 연결하는 질문과, 같은 대상을 따라가며 변화를 비교하는 질문은 다릅니다. 패널 자료는 개체 i와 시점 t라는 두 주소를 함께 가진 자료입니다.
가정 여섯 행
개체
시점
x
y
A
0
0
0
A
1
1
2
B
0
1
5
B
1
2
7
C
0
2
10
C
1
3
12
Imagine recording practice and a score twice for three students. These six rows are assumed for explanation, not actual data. For A, x rises from 0 to 1 and y from 0 to 2. B and C also gain two y units per x unit but start at different levels.
Mixing every row to compare high and low values differs from following the same unit through time. Panel data carry two addresses: unit i and time t.
Six assumed rows
Unit
Time
x
y
A
0
0
0
A
1
1
2
B
0
1
5
B
1
2
7
C
0
2
10
C
1
3
12
기초Foundations
2. 개체별 기준점을 만듭니다2. Build a separate baseline for each unit
A의 평균은 x=1/2, y=1입니다. B는 x=3/2, y=6, C는 x=5/2, y=11입니다. 전체 평균 하나만 빼면 이 세 출발점의 차이는 남습니다. 각자의 평균을 빼면 A의 두 행은 (−1/2,−1), (1/2,1)이 됩니다. B와 C도 같은 두 점이 됩니다.
이 장의 물결 표시는 자기 개체 평균에서 벗어난 값입니다. 평균은 선택된 가용 행과 작업 가중치로 정하므로, 결측 행을 바꾸면 기준점도 바뀔 수 있습니다.
xit=xit−xˉi
yit=yit−yˉi
A has means x=1/2 and y=1; B has 3/2 and 6; C has 5/2 and 11. Subtracting only one overall mean leaves their baseline differences. Subtracting each unit’s mean gives A the points (−1/2,−1), (1/2,1). B and C give the same pair.
A tilde denotes departure from the unit’s own mean. The selected available rows and working weights define that mean; changing missing-row selection can change the baseline.
xit=xit−xˉi
yit=yit−yˉi
기초Foundations
3. 같은 개체 안의 기울기는 2입니다3. The within-unit slope is two
S^W_xy를 편차 곱합, S^W_xx를 편차 제곱합이라 합시다. 각 행의 x 편차 제곱은 1/4입니다. 여섯 행 합은 3/2입니다. x 편차와 y 편차의 곱은 각 행 1/2여서 합이 3입니다. 따라서 기울기는 3을 3/2로 나눈 2입니다. 원래 x에 이 기울기를 곱한 뒤 남는 개체별 상수는 A=0, B=3, C=6입니다.
이 계산은 관측 공간의 제곱오차 최소화입니다. 같은 개체에 일정하게 더해지는 차이를 제거하지만, 시간에 따라 달라지는 원인이나 측정오차를 자동으로 제거하지는 않습니다.
β^W=SxxWSxyW=2
Let S^W_xy and S^W_xx denote the deviation cross-product and squared variation. Each squared x deviation is 1/4, totaling 3/2 over six rows. Each cross-product of x and y deviations is 1/2, totaling 3. Dividing gives a slope of two. Subtracting twice x from original y leaves unit constants A=0, B=3 and C=6.
This minimizes squared error in observation space. It removes an additive constant within each unit; it does not automatically remove time-varying causes or measurement error.
β^W=SxxWSxyW=2
기초Foundations
4. 평균 세 점의 기울기는 5입니다4. The three unit means have slope five
개체 평균 세 점은 (1/2,1), (3/2,6), (5/2,11)입니다. 평균 x가 1 늘 때 평균 y는 5 늘어납니다. 절편은 1−5/2=−3/2입니다. 이 개체 간 기울기 5와 개체 내 기울기 2는 서로 다른 비교입니다.
가정 표에서는 높은 평균 x를 가진 개체가 더 큰 고유 상수도 가집니다. 개체 간 비교는 이 상수 차이를 함께 담습니다. 평균으로 바꾼다고 선택·교란이 사라지는 것은 아닙니다.
y^iB=−23+5xˉi
The three unit means are (1/2,1), (3/2,6) and (5/2,11). A one-unit rise in mean x accompanies five more mean y units. The intercept is 1−5/2=−3/2. This between slope of five answers a different comparison from the within slope of two.
In the assumed table, units with higher mean x also have larger unit constants. Between comparisons include that baseline difference. Replacing rows by means does not remove selection or confounding.
y^iB=−23+5xˉi
기초Foundations
5. 모든 행의 기울기는 어떻게 섞이나요?5. How does the pooled slope mix comparisons?
전체 평균은 x=3/2, y=6입니다. 전체 중심화 곱의 합 23은 개체 내 3과 개체 간 20으로 나뉩니다. x 제곱합 11/2도 3/2와 4로 나뉩니다. 따라서 모든 행의 절편 포함 기울기는 46/11입니다. 2와 5 사이에 있는 것은 이 단일 설명변수의 양의 제곱합 가중 평균이기 때문입니다.
벡터 설명변수에서는 이런 단순 스칼라 가중 평균 문장을 그대로 쓰지 않습니다. 먼저 분자와 분모의 분해를 각각 확인합니다.
Sxy=3+20=23
Sxx=23+4=211
β^P=1146
Overall means are x=3/2 and y=6. The total centered cross-product 23 splits into within three and between twenty. The x sum of squares 11/2 splits into 3/2 and four. The pooled slope with an intercept is therefore 46/11. It lies between two and five because this single-regressor calculation uses nonnegative squared-variation weights.
Do not carry this scalar weighted-average statement unchanged to a vector of regressors. Check numerator and denominator decompositions separately.
Sxy=3+20=23
Sxx=23+4=211
β^P=1146
기초Foundations
6. 주소·결측·0을 먼저 구별합니다6. Separate identities, missing entries and zero
개체 A의 시점 0이 두 번 들어오면 같은 개체·시점 주소가 중복됩니다. 엔진은 이를 거절합니다. 숫자 1과 문자열 "1"은 선언한 타입이 달라 별도 키입니다. 점포 코드가 중복돼도 원위치가 다른 두 개체를 합치지 않습니다.
y나 포함 x 중 하나가 결측이면 실제 비교의 공통 가용 집합에서 그 행을 제외하되 공개 원행은 남깁니다. 숫자 0은 결측이 아닙니다. 가용 행이 한 개인 개체의 자기 평균 편차는 0이므로 unit-only within의 기울기 정보가 없습니다. 이 사실은 원자료를 삭제할 이유가 아닙니다.
Duplicate unit A/time zero addresses are rejected. Numeric 1 and string "1" are different typed keys under the declared contract. Repeated store codes do not merge distinct original positions.
If y or an included x is missing, exclude that entry from the common comparison frame while retaining its public source row. Numeric zero is not missing. A single available entry has zero deviation from its own mean, so it adds no slope information to unit-only within fitting. That is not a reason to erase the original record.
기초Foundations
7. 가중 평균도 같은 원리입니다7. Weighted means use the same principle
양의 작업 가중치 w를 먼저 선언하고 개체별 합을 W_i라 합시다. 가중치 1과 3의 값 2·6이면 평균은 (2+18)/4=5입니다. 두 편차는 −3과 1이며 가중 편차합은 −3+3=0입니다. 이 영합 성질이 분해의 교차항을 없앱니다.
작업 가중치는 계산 목표입니다. 실제 표집 확률이나 신뢰도를 관측한 값이라고 자동 해석하지 않습니다. 이 장의 실제 사례는 모두 작업 가중치 1을 사용합니다.
Wi=t∑wit>0
vˉi=Wi∑twitvit
t∑wit(vit−vˉi)=0
Declare positive working weights w and their unit sum W_i. Values two and six with weights one and three have mean (2+18)/4=5. Deviations −3 and one sum to zero after weighting: −3+3=0. This zero-sum property removes cross terms.
Working weights define a calculation target. They are not automatically observed sampling probabilities or reliability measures. Every actual case here uses working weights of one.
Wi=t∑wit>0
vˉi=Wi∑twitvit
t∑wit(vit−vˉi)=0
기초Foundations
8. 실습 · 행과 평균을 추적합니다8. Lab · track rows and their means
여섯 행에서 B의 둘째 행 y를 7에서 9로 바꾸세요. B 평균과 B의 두 편차가 함께 바뀌지만 A·C의 자기 평균은 그대로입니다. 전체 곱=개체 내 곱+개체 간 곱이 여전히 성립하는지 확인하세요.
개체·시점 중복, 0과 결측, 양의 가중치를 각각 시험하고 오류가 어떤 조건을 가리키는지 읽습니다. 정확 분수와 화면 소수는 별개입니다. 극소 비영 값이 소수에서 0으로 보이더라도 정확 값의 비영 표시를 유지합니다.
Change B’s second y from seven to nine. B’s mean and both deviations change together; A and C keep their own means. Verify that total cross-product still equals within plus between.
Try duplicate addresses, zero versus missingness and positive weights. Read the condition behind each error. Exact fractions differ from screen decimals: a nonzero value rounded to zero must retain its nonzero status.
기초Foundations
9. 개체마다 절편 하나를 둡니다9. Give each unit its own intercept
개체 상수 a_i와 공통 기울기 β를 골라 가중 제곱오차를 최소화합니다. 이름이 고정효과라고 해서 실제 상수가 무작위로 생성될 수 없다는 뜻은 아닙니다. 여기서는 각 관측 개체의 절편을 자유롭게 허용하는 계산 방식입니다.
시점 효과가 없고 x가 벡터일 때도 다음 목적함수는 같습니다. 모든 가중치는 양수이며 같은 가용 행에서 계산합니다. 인과 의미를 붙이는 모집단 모형과 오차 조건은 뒤에서 추가합니다.
Q(a,β)=i,t∑witrit2
rit=yit−ai−xitTβ
Choose unit constants a_i and a common slope vector β to minimize weighted squared error. The label fixed effects does not imply that actual unit constants cannot arise randomly. It describes a fit allowing a free intercept for each observed unit.
Without time effects, the same objective applies to vector x. All weights are positive and the available frame is fixed. A population model and error restrictions for causal interpretation will be added separately.
Q(a,β)=i,t∑witrit2
rit=yit−ai−xitTβ
기초Foundations
10. 절편을 먼저 풀면 평균 제거가 나옵니다10. Solve intercepts first to obtain demeaning
β를 잠시 고정하면 개체 i의 오차 제곱합은 a_i에 대한 양의 이차식입니다. 미분을 0으로 두면 잔차 가중합이 0이어야 하므로 a_i=평균 y−평균 x′β입니다. 이를 원 목적함수에 넣으면 개체 상수가 사라지고 편차끼리의 제곱오차만 남습니다.
따라서 평균 제거는 임의 요령이 아니라 원래 최소화 문제의 정확한 축약입니다. β가 유일하지 않으면 이 식도 전체 β 해집합에 대응하는 모든 절편을 반환합니다.
a^i(β)=yˉi−xˉiTβ
rit=yit−xitTβ
QW(β)=i,t∑witrit2
Hold β fixed. Unit i’s objective is a strictly convex quadratic in a_i. Setting its derivative to zero makes the weighted residual sum zero, giving mean y minus mean x′β. Substituting leaves only squared errors between within deviations.
Demeaning is therefore an exact reduction of the original minimization problem. If β is not unique, this formula maps its entire solution set into every corresponding unit intercept.
a^i(β)=yˉi−xˉiTβ
rit=yit−xitTβ
QW(β)=i,t∑witrit2
대학원 입구Graduate bridge
11. 역행렬보다 전체 해집합을 먼저 봅니다11. Start with the full solution set, not an inverse
편차 행렬을 X̃, 결과 벡터를 ỹ, 가중치 대각행렬을 W라 합시다. 정상방정식 Gβ=h는 항상 최소화 해를 가집니다. G가 가역이면 β=G⁻¹h이고, 특이면 한 특정 해에 G의 영공간을 더한 모든 벡터가 해입니다.
랭크는 실제로 구별되는 포함 방향의 수입니다. 영공간 방향에서 어떤 좌표가 바뀐다면 그 좌표는 따로 식별되지 않습니다. 선택한 특정 해의 0을 추정된 0이라고 부르지 않습니다.
G=XTWX
h=XTWy
B={β0+v:Gv=0}
Let X̃ be the deviation design, ỹ the outcome vector and W the positive diagonal weight matrix. Normal equations Gβ=h always have minimizers. Invertible G gives G⁻¹h; singular G gives one solution plus every vector in its nullspace.
Rank counts distinguishable included directions. A coordinate that changes along a nullspace direction is not separately identified. A zero in one chosen particular solution is not an estimated zero.
G=XTWX
h=XTWy
B={β0+v:Gv=0}
기초Foundations
12. 시간불변 변수의 0편차는 무엇을 뜻하나요?12. What does a zero deviation for a constant variable mean?
한 사람의 1976년 교육 연수를 모든 시점에 똑같이 넣으면 자기 평균을 빼도 0입니다. 이 열의 계수 b를 1 늘리고 각 개체 절편을 그 교육 값만큼 줄이면 원 예측은 그대로입니다. b의 전체 허용 집합은 실수 전체입니다.
이는 교육이 임금에 아무 영향이 없다는 결론이 아닙니다. 자유로운 개체 절편과 시간불변 교육의 별도 역할을 이 관측 공간에서 구별할 수 없다는 뜻입니다. 같은 논리가 주 지시자·성별처럼 분석에서 고정한 열에 적용됩니다.
Repeat a person’s 1976 schooling at every wave. Demeaning makes that column zero. Increasing its coefficient b by one while subtracting schooling from each unit intercept leaves original fitted values unchanged. Every real b remains allowed.
This does not conclude that schooling has no wage effect. The observation space cannot separate its coefficient from free unit intercepts. The same issue arises for state indicators or any column held constant within a unit.
대학원 입구Graduate bridge
13. 계수가 여러 개여도 적합값은 같을 수 있습니다13. Coefficients may vary while fitted values agree
양의 가중치에서 두 최소화 계수의 차이 v는 편차 설계의 영공간에 있습니다. 따라서 X̃v=0이고 관측된 원행의 적합값은 같습니다. 절편도 평균식에 따라 함께 바뀝니다.
관측 밖 새 x와 개체 절편을 따로 고정해서 예측하면 이 상쇄가 성립하지 않을 수 있습니다. 전체 계수 가족과 어떤 선형 조합이 불변인지 확인한 다음 새 예측의 식별을 말해야 합니다.
vTGv=i,t∑wit(xitTv)2
Gv=0⟹Xv=0
With positive weights, differences v between minimizing coefficients lie in the deviation design’s nullspace. Thus X̃v=0 and fitted values at observed rows agree. Intercepts change with the mean formula.
The cancellation need not persist for a new regressor vector outside observed support if a unit intercept is separately held fixed. Inspect the full family and invariant linear combinations before claiming an identified new prediction.
vTGv=i,t∑wit(xitTv)2
Gv=0⟹Xv=0
기초Foundations
14. 두 시점이면 차분과 연결됩니다14. With two waves, connect within and differencing
각 개체가 정확히 두 가용 시점을 갖고 행 가중치가 모두 1이면 두 편차는 −Δ/2와 Δ/2입니다. 개체가 목적함수에 주는 값은 (Δy−Δx′β)²/2입니다. 공통 배수 1/2를 버리면 절편 없는 차분 회귀와 같은 β 해집합입니다.
가중치가 다르면 개체별 계수는 w₁w₂/(w₁+w₂)입니다. 세 시점 이상에서는 인접 차분을 단순히 같은 가중치로 회귀하는 계산과 within이 일반적으로 같지 않습니다.
QW,i=21(Δyi−ΔxiTβ)2
If every unit has exactly two available waves and all row weights are one, its deviations are −Δ/2 and Δ/2. Its objective contribution is half the squared differenced residual. Dropping the common half gives the same β solution set as differencing without an intercept.
Unequal row weights give unit factor w₁w₂/(w₁+w₂). With three or more waves, equally weighted adjacent differences generally do not reproduce within estimation.
A의 모든 y에 100을 더하고 B·C는 그대로 두어 보세요. A의 평균도 100 늘어 두 편차는 그대로입니다. 같은 가용 집합·가중치에서 within의 전체 β 해집합은 바뀌지 않고 A 절편만 100 이동합니다.
반대로 한 시점 y만 바꾸면 평균 제거 뒤에도 변화가 남습니다. 평균 제거가 무엇을 지우고 무엇을 남기는지 구체적으로 구별하세요. 개체 간 평균 비교와 pooled 기울기는 A의 새 출발점 때문에 바뀔 수 있습니다.
Add one hundred to every A outcome while leaving B and C unchanged. A’s mean also rises one hundred, preserving both deviations. On the same frame and weights, the complete within β family stays fixed and only A’s intercept shifts.
Changing only one wave leaves a difference after demeaning. State concretely what the transformation removes and retains. Between means and the pooled slope may change when A’s baseline changes.
기초Foundations
16. 실습 · 흡수된 열과 공통 시점16. Lab · absorbed columns and common time effects
기본 표에서 시간불변 열을 추가하고 그 계수의 전체 가족을 읽으세요. 특정 해의 0·식별된 0·수학적으로 비영이지만 소수에서 0인 값을 구별합니다. 다음으로 공통 시점 효과를 켜세요. 기본 x는 개체별 상수+시점이므로 공통 기울기와 시점 효과가 겹칩니다.
한 개체의 한 시점만 바꾸어 겹침을 깨면 랭크가 달라질 수 있습니다. 같은 관측 행의 예측은 어떤 계수 가족에서도 불변인지, 개체 절편은 어떻게 이동하는지 확인하세요.
Add a time-constant column and inspect its complete family. Distinguish a particular-solution zero, an identified zero and a nonzero value rounded to zero. Then enable common time effects. In the default table x equals a unit constant plus time, so its slope overlaps the time effect.
Change one unit at one wave to break that overlap and inspect rank. Check invariance of observed fitted values and the corresponding movement in unit intercepts.
기초Foundations
17. 평균의 가중치도 목표를 바꿉니다17. Weights on unit means change the target
평균 한 점을 개체당 똑같이 세는 방법과 가용 행 수만큼 세는 방법은 다릅니다. 두 시점 개체 A와 한 시점 개체 B가 있으면 동일 개체 가중치는 1:1, 동일 행의 개체 간 분해 가중치는 2:1입니다. 모든 행의 작업 가중치가 같고 패널도 균형이면 개체별 총 가중치 W_i가 같아 두 방식의 계수 해집합이 같습니다. 균형이라는 말은 관측 시점 구성이 같다는 뜻이며, 행 가중치를 다르게 주면 균형이어도 W_i가 달라 두 목표가 달라질 수 있습니다. 목적함수 값은 공통 배수만큼 달라도 됩니다.
실습의 between 기본값은 총 행 작업 가중치 W_i를 사용합니다. equal-unit을 선택하면 1을 씁니다. 어느 선택도 표집 확률이나 모집단 대표성을 저절로 보장하지 않습니다.
riB=yˉi−a−xˉiTb
QB(a,b)=i∑vi(riB)2
Giving every unit mean one vote differs from weighting it by available row count. A two-wave unit A and single-wave unit B receive weights 1:1 under equal-unit fitting and 2:1 in the equal-row between decomposition. A balanced panel with identical working weight on every row gives equal W_i and identical coefficient solution sets; objectives may differ by a common factor. Balance describes the observation schedule. Different working weights can produce different W_i even in a balanced panel, so balance alone does not establish equivalence.
The default between method uses total working row weight W_i. Equal-unit uses one. Neither choice automatically supplies sampling probabilities or population representativeness.
riB=yˉi−a−xˉiTb
QB(a,b)=i∑vi(riB)2
기초Foundations
18. 관측 적합과 모집단 식을 구별합니다18. Separate sample fitting from a population model
여섯 행의 기울기 2를 계산하는 데 무작위 표집이나 정규분포는 필요 없습니다. 그러나 그 계수가 다른 개체들에도 적용되는 공통 구조 β를 추정한다고 말하려면 새 전제가 필요합니다. 아래 모집단 식은 오차 ε, 개체 고유 성분 a, 설명변수 경로의 관계를 선언합니다.
패널이라는 배열만으로 ε가 x와 무관해지지 않습니다. 모든 시점에 β가 같은지도 모형 전제입니다. 시간에 따라 달라지는 기울기가 있으면 within이 어떤 가중 평균을 계산하는지 별도로 유도해야 합니다.
yit=ai+xitTβ+εit
Computing slope two from six rows requires neither random sampling nor normality. Interpreting it as an estimator of a common structural β for other units requires additional premises. The population equation declares relations among errors, unit components and the regressor path.
A panel-shaped array does not make ε unrelated to x. A common β across time is itself a model restriction. With heterogeneous slopes, derive the particular weighted comparison instead of assuming one universal effect.
yit=ai+xitTβ+εit
기초Foundations
19. 현재뿐 아니라 경로 전체를 조건으로 둡니다19. Condition on the whole path, not only the present
가용 시점 집합과 양의 가중치를 고정하고 모든 포함 설명변수 경로를 X_i라 합시다. 엄격 외생성의 한 충분조건은 a_i와 X_i를 알 때 각 시점 오차의 조건부 평균이 0이라는 것입니다. 이때 평균 제거 뒤의 오차와 포함 편차의 조건부 곱도 평균 0입니다.
동시점 x_it만 알 때 오차 평균 0인 조건보다 강합니다. 미래 선택이 현재 충격에 반응하면 동시점 조건이 맞아도 전체 경로 조건이 깨질 수 있습니다. 관측 이탈이 오차에 반응하면 선택된 가용 집합에서도 같은 조건이 유지되는지 따져야 합니다.
Xi=(xit:t∈Ti)
E[εit∣Xi,ai]=0
Fix available time sets and positive weights; let X_i contain every included regressor observation for unit i. One sufficient strict-exogeneity condition sets each error’s conditional mean to zero given a_i and the entire X_i. Demeaned errors then have zero conditional cross-moment with included deviations.
This is stronger than conditioning only on current x_it. Future choices may react to present shocks even when contemporaneous restrictions hold. If attrition reacts to errors, ask whether the restriction survives on the selected available frame.
Xi=(xit:t∈Ti)
E[εit∣Xi,ai]=0
기초Foundations
20. 현재 충격이 미래 x를 바꾸는 반례20. A current shock changes future x
한 개체를 두 시점 관측하고 a=β=0이라 합시다. 공정한 U=±1을 뽑아 x₁=0, x₂=U, ε₁=U, ε₂=0으로 둡니다. 현재 x₁은 항상 0이어서 E[ε₁|x₁]=0이고 둘째 오차도 0입니다. 하지만 미래 x₂를 보면 첫 오차를 정확히 압니다.
관측 y=(U,0)의 편차는 (U/2,−U/2), x 편차는 (−U/2,U/2)입니다. 따라서 within 기울기는 두 세계 모두 −1입니다. 참 구조 β=0과 다릅니다. 일정한 a를 완벽히 지워도 피드백 편향은 남습니다.
Observe a unit twice with a=β=0. Draw fair U=±1 and set x₁=0, x₂=U, ε₁=U and ε₂=0. Current x₁ is constant, so E[ε₁|x₁]=0; the second error is also zero. Yet future x₂ reveals the first error exactly.
Outcome deviations are (U/2,−U/2), whereas x deviations are (−U/2,U/2). The within slope is −1 in both worlds, although structural β=0. Perfect removal of a constant a leaves this feedback bias intact.
대학원 입구Graduate bridge
21. 불편성은 조건과 랭크를 붙여 말합니다21. State conditions and rank when claiming unbiasedness
선택된 설계·가중치·개체 성분을 고정하고 E[ε|X,a]=0을 가정합시다. 편차 설계가 열 전랭크이면 추정오차는 G⁻¹X̃′Wε̃입니다. 이 선형식의 조건부 평균은 0이므로 β̂는 그 고정 설계에서 조건부 불편입니다.
특이 설계에서는 β 자체가 모두 식별되지 않을 수 있습니다. 식별된 선형 조합과 적합값에 대해 말을 좁힙니다. 불편성은 실제 자료가 전제를 충족했다거나 개별 표본에서 참값과 같다는 뜻이 아닙니다.
β^−β=G−1XTWε
E[β^−β∣X,a]=0
Fix the selected design, weights and unit components and assume E[ε|X,a]=0. With full column rank after demeaning, estimation error is G⁻¹X̃′Wε̃. Its conditional mean is zero, giving conditional unbiasedness at that fixed design.
Under singularity, β may not be entirely identified; narrow the claim to estimable linear combinations and fitted values. Unbiasedness neither verifies premises in actual data nor makes every sample estimate equal the truth.
β^−β=G−1XTWε
E[β^−β∣X,a]=0
기초Foundations
22. 불균형 패널의 시점 효과는 투영으로 풉니다22. Use projection for time effects in an unbalanced panel
포함 공통 시점 지시자 벡터를 d_t라 하고 x 옆에 둔 설계 z를 만듭니다. 기준 시점 하나는 빼고 각 개체에서 z와 y의 평균을 제거한 뒤 함께 최소화합니다. 이 방식은 원래 개체·시점 절편 목적함수와 정확히 같습니다.
불균형 패널에서 개체 평균과 시점 평균을 원값에서 한 번씩 빼고 전체 평균을 더하는 단순 이중 중심화는 일반적으로 같은 투영이 아닙니다. 개체별 관측 시점 구성이 달라 두 평균 제거 연산이 교환되지 않을 수 있기 때문입니다.
zit=(xit,dt)
Let d_t contain included common time indicators and append them to x to form design z, omitting one reference wave. Demean z and y within units, then minimize jointly. This is exactly the original unit/time-intercept objective.
For unbalanced panels, subtracting raw unit and time means once and adding the overall mean generally fails to produce that projection. Different observation schedules can make the two centering operators fail to commute.
zit=(xit,dt)
기초Foundations
23. 연결되지 않은 시점에는 추가 자유도가 있습니다23. Disconnected times create additional freedoms
A는 시점 0만, B는 시점 1만 관측되면 각 y를 자기 개체 절편으로 맞출 수 있습니다. 시점 1 효과를 1 늘리고 B 절편을 1 줄여도 예측은 그대로입니다. 기준 시점 하나를 정했다고 모든 시점 차이가 자동으로 식별되지는 않습니다.
개체와 시점을 이분 그래프로 보고 관측 행을 연결선으로 생각하면 연결 성분마다 상수 이동이 남는 이유를 볼 수 있습니다. 그 밖에도 x와 시점 열의 선형 종속이 있으면 추가 영공간이 생깁니다.
Suppose A is observed only at time zero and B only at time one. Each y can be fitted by its own unit intercept. Raising the time-one effect by one and lowering B’s intercept by one leaves predictions unchanged. One reference wave does not automatically identify every time contrast.
Think of observed rows as edges of a bipartite unit/time graph. Separate connected components allow separate constant shifts. Additional linear dependence between x and time columns can create further nullspace directions.
기초Foundations
24. 실습 · 두 평균 가중치를 비교합니다24. Lab · compare the two weights on means
기본 균형 표에서 equal-unit과 total-row-weight를 바꾸면 계수는 같고 목적함수 값만 두 배 차이입니다. C의 한 시점을 지워 불균형으로 바꾸고 다시 비교하세요. 결과가 달라지면 선택한 목표가 달라진 이유를 개체별 가중치로 설명합니다.
실습은 누락 행을 임의 0으로 채우지 않습니다. 실제 사례의 같은 공통 가용 집합을 유지한 방법 비교와, 완전한 개체만 새로 고른 비교도 구별하세요.
Switch equal-unit and total-row-weight on the balanced default table. Coefficients agree while the objective differs by factor two. Remove one C wave and compare again. Explain any change through the resulting unit weights.
The lab does not fill missing entries with invented zeros. Distinguish method comparisons on the same complete-entry frame from a new selection restricted to complete units.
기초Foundations
25. 확률효과는 공분산도 선언합니다25. Random effects also declare a covariance
공통 절편과 기울기 뒤에 남는 오차를 u_it=a_i+ε_it라 합시다. 작업 분산 v_a≥0, v_e>0을 알고 있다고 선언하고 같은 개체의 a는 공유한다고 놓습니다. 가중치 w가 있으면 개별 ε 분산은 v_e/w입니다. 서로 다른 개체 사이 공분산 0도 별도 가정입니다.
예를 들어 두 시점, 가중치 1, v_e=v_a=1이면 대각은 2, 비대각은 1입니다. 실제 사례의 기본값 1·1은 이론 비교를 위한 작업 모형이지 실제 오차에서 추정한 분산이 아닙니다.
Di=diag(wit)
Ωi=veDi−1+va11T
ve>0,va≥0
Write the remaining error after common regressors as u_it=a_i+ε_it. Declare known working components v_a≥0 and v_e>0. The unit component a is shared; with weights w, individual ε variance is v_e/w. Zero covariance between different units is another assumption.
For two equally weighted waves with both components one, diagonal entries are two and off-diagonals one. Actual-case defaults one/one are working choices for comparison, not estimated error variances.
Di=diag(wit)
Ωi=veDi−1+va11T
ve>0,va≥0
기초Foundations
26. 큰 역행렬을 작은 합으로 바꿉니다26. Replace a large inverse with small sums
D_i=diag(w_it), W_i=Σw_it라 합시다. 양의 v_e 덕분에 Ω_i는 양의 정부호입니다. 랭크가 1인 갱신의 역행렬 공식으로 두 열 u·v의 GLS 내적을 가중 곱합과 두 가중합만으로 계산할 수 있습니다. 개체별로 합치면 큰 전체 역행렬을 저장할 필요가 없습니다.
s_u=Σw_it u_it, s_v=Σw_it v_it, s_uv=Σw_it u_it v_it로 정의합니다. 다음 항들은 새로운 적합 규칙이 아니라 같은 선언 공분산의 정확한 계산입니다.
ci=ve(ve+vaWi)va
⟨u,v⟩i=vesuv−cisusv
Let D_i=diag(w_it) and W_i=Σw_it. Positive v_e makes Ω_i positive definite. The rank-one inverse identity reduces the GLS inner product of columns u and v to weighted product sums and two weighted sums. Sum over units without storing a large full inverse.
Define s_u=Σw_it u_it, s_v=Σw_it v_it and s_uv=Σw_it u_it v_it. These terms implement the same declared covariance, rather than a new fitting rule.
ci=ve(ve+vaWi)va
⟨u,v⟩i=vesuv−cisusv
기초Foundations
27. 평균을 조금만 빼는 변환27. Subtract only part of the unit mean
모든 행 가중치가 1일 때 θ_i=1−sqrt(v_e/(v_e+v_aT_i))라 놓고 각 열에서 θ_i×개체 평균을 뺀 뒤 v_e의 제곱근으로 나누면 GLS 목적함수가 됩니다. y와 x뿐 아니라 절편 열도 변환해야 합니다. 두 시점·두 분산 1이면 θ=1−1/√3입니다.
엔진은 θ를 정확한 근호 식으로 표시하고 (1−θ)²의 유리수를 별도로 보존합니다. θ의 소수 근사를 정확값이라고 부르지 않습니다. 양의 일반 가중치에서는 같은 평균식과 W_i를 쓰되 가중 내적을 적용합니다.
(1−θi)2=ve+vaWive
With every row weight equal to one, set θ_i=1−sqrt(v_e/(v_e+v_aT_i)). Subtract θ_i times the unit mean from every column, then divide by sqrt(v_e), to reproduce the GLS objective. Transform the intercept as well as y and x. Two waves and components one give θ=1−1/√3.
The engine retains the exact radical expression and a separate rational value for (1−θ)². A decimal θ is not an exact radical. General positive weights use the weighted mean, W_i and weighted inner product.
(1−θi)2=ve+vaWive
기초Foundations
28. 여섯 행의 선언 RE 기울기28. Declared RE slope in the six-row table
v_e=v_a=1이고 T=2인 기본 표에서 개체 내 제곱합은 그대로, 개체 간 제곱합은 1/3로 반영됩니다. 따라서 분자는 3+20/3=29/3, 분모는 3/2+4/3=17/6입니다. 나눈 기울기는 58/17, 절편은 전체 평균 6−(58/17)(3/2)=15/17입니다.
이 값이 2와 5 사이에 있다는 것은 이 표와 양의 작업 분산의 계산입니다. 실제 단위 성분이 x와 무관하다는 증명도, 모든 다변량 계수가 두 추정치 사이에 있어야 한다는 정리도 아닙니다.
β^RE=17/629/3=1758
a^RE=1715
For v_e=v_a=1 and T=2, within squared variation is unchanged while between variation receives factor 1/3. The numerator is 3+20/3=29/3; the denominator is 3/2+4/3=17/6. Their ratio is 58/17 and the intercept is 6−(58/17)(3/2)=15/17.
Its position between two and five is a calculation for this table and working covariance. It neither proves unit-effect orthogonality nor forces all multivariate coefficients between two estimates.
β^RE=17/629/3=1758
a^RE=1715
기초Foundations
29. 개체 분산 0의 경계는 pooled입니다29. Zero unit variance gives pooled fitting
v_a=0이면 Ω_i=v_e diag(1/w)입니다. GLS는 가중 OLS 목적함수를 양의 상수 1/v_e로 나눈 것이라 전체 계수 해집합이 같습니다. θ도 정확히 0입니다. 이때 참 개체 차이가 실제로 없다는 결론은 입력 0이라는 선언을 넘어서지 않습니다.
v_e=0은 이 엔진의 선언 정의역 밖입니다. 그 경계에서는 Ω가 특이할 수 있으므로 양의 v_e에서 쓴 역행렬 공식을 그대로 적용하지 않습니다.
If v_a=0, Ω_i=v_e diag(1/w). GLS is weighted OLS multiplied by positive constant 1/v_e, giving the same complete coefficient family. θ is exactly zero. An entered zero does not empirically establish absence of unit differences.
v_e=0 lies outside this engine’s declared domain. Ω can become singular there, so do not substitute it into an inverse formula derived for positive v_e.
기초Foundations
30. 큰 개체 분산과 within의 관계30. Large unit variance and within fitting
v_e를 고정하고 v_a를 키우면 개체 평균 잔차의 벌점 W_i/(v_e+v_aW_i)는 작아집니다. 개체 내 잔차 벌점 1/v_e는 그대로입니다. 이 때문에 식별된 변동 방향의 RE 기울기가 within에 가까워질 수 있습니다.
유한 v_a에서는 평균 성분이 완전히 사라진 것은 아닙니다. 극한에서 전체 설계 랭크나 계수의 유일성이 달라질 수 있으므로 모든 좌표의 극한을 무조건 단정하지 않습니다. 정확한 within 정보를 갖는 열과 시간불변 열을 구별합니다.
Holding v_e fixed while increasing v_a reduces the mean-residual penalty W_i/(v_e+v_aW_i). The within-residual penalty 1/v_e stays fixed. This explains why identified changing-direction RE slopes can approach within slopes.
Finite v_a does not erase mean information completely. Rank or uniqueness may change at a limit, so do not assert convergence of every coordinate without conditions. Distinguish within-varying columns from time-constant columns.
기초Foundations
31. 공분산과 평균 전제는 별개입니다31. Covariance and mean restrictions are separate
GLS는 선언한 Ω로 제곱오차를 재는 계산입니다. 모집단 β를 추정하려면 포함 경로와 합성 오차의 적절한 평균·직교 조건이 추가로 필요합니다. 예를 들어 E[a_i|X_i]=상수와 엄격 외생성을 함께 두는 방식은 일반 FE보다 강한 개체 성분 제약을 둡니다.
공분산 구조가 맞는 것과 평균 조건이 맞는 것은 다른 주장입니다. 잘못된 작업 공분산으로도 어떤 일관성 조건이 유지될 수 있지만, 통상 효율성·표준오차 식이 자동으로 유지되지는 않습니다. 이 장의 실습은 분산 성분 추정·표준오차·유의성 검정을 반환하지 않습니다.
GLS measures squared error using declared Ω. Estimating a population β additionally needs suitable mean or orthogonality conditions between included paths and composite errors. For example, E[a_i|X_i]=constant plus strict exogeneity restricts unit components more strongly than FE.
A correct covariance structure differs from a correct conditional mean. Some consistency arguments can survive a misspecified working covariance, while conventional efficiency and standard errors need not. Labs here return no estimated variance components, standard errors or significance tests.
기본 표에서 v_a를 0, 1, 10으로 바꾸고 같은 여섯 행의 기울기를 비교하세요. v_a=0의 계수는 pooled 46/11과 같아야 합니다. v_a=1은 58/17입니다. 각 개체의 (1−θ)²와 근호 식을 읽습니다.
작은 양의 v_e를 입력해 화면 근사와 정확 유리수의 차이를 확인하세요. 양의 값의 표시 언더플로를 실제 분산 0이라고 읽지 않습니다. 실제 공분산을 이 자료가 검증했는지 묻는 질문은 별도로 남깁니다.
Compare the same six rows at v_a zero, one and ten. Zero gives pooled 46/11; one gives 58/17. Read each unit’s rational (1−θ)² and radical expression.
Try a tiny positive v_e and compare exact fractions with screen approximations. Display underflow does not make a positive variance mathematically zero. Keep empirical validation of the covariance model as a separate question.
기초Foundations
33. 고유 성분과 개체 평균의 관련성을 씁니다33. Model association with unit means explicitly
가정 여섯 행에서 개체 상수는 평균 x와 함께 커집니다. 이를 숨긴 채 a_i가 x와 무관하다고 두는 대신, a_i=α+평균 x′γ+v_i라는 평균 모형을 씁니다. 남은 v_i가 전체 x 경로와 적절히 직교한다는 전제는 여전히 필요합니다.
원 식에 대입하면 x와 개체 평균 x가 함께 포함됩니다. 일반적으로 개체 평균이 관련성의 모든 비선형·시점별 패턴을 충분히 나타내는지는 실질 가정입니다. 이름은 상관된 확률효과, 또는 Mundlak 평균 추가 방식입니다.
yit−α=xitTβ+xˉiTγ+vi+εit
In the six assumed rows, unit constants grow with mean x. Instead of hiding that association behind orthogonality, write a_i=α+mean x′γ+v_i. The remaining v_i still needs suitable orthogonality to the whole x path.
Substitution includes both original x and its unit mean. Whether means sufficiently represent nonlinear or time-specific dependence is a substantive restriction. This is a correlated-random-effects or Mundlak mean-augmentation approach.
yit−α=xitTβ+xˉiTγ+vi+εit
대학원 입구Graduate bridge
34. 같은 within 기울기가 나오는 이유34. Why the within slope is reproduced
z를 x와 포함 시점 열 전체라 합시다. 원 z와 그 개체 평균을 모두 넣으면 잔차는 개체 내 성분과 평균 성분으로 나뉩니다. δ=β+γ로 재매개화하면 첫 성분은 β만, 평균 성분은 α·δ만 포함합니다. 양의 가중치의 영합 성질 때문에 두 성분의 교차항은 0입니다.
선언한 RE 블록 내적은 개체 내 제곱합에 1/v_e, 평균 잔차 제곱에 W_i/(v_e+v_aW_i)를 곱합니다. 따라서 β의 전체 최소화 집합은 within의 것과 같고, 식별된 β 좌표도 정확히 같습니다. 이것은 표본 대수입니다. 실제 조건부 평균 전제가 참임을 증명하지 않습니다.
rit=ritW+riB
ritW=yit−zitTβ
riB=yˉi−α−zˉiTδ
Let z contain x and every included time column. Include both z and its unit mean. Reparameterize with δ=β+γ: the within residual depends only on β, while the mean residual depends on α and δ. Zero weighted sums make cross terms vanish.
The declared RE inner product weights within squared error by 1/v_e and mean squared error by W_i/(v_e+v_aW_i). Thus its complete β minimizer set matches within fitting, and every identified β coordinate agrees exactly. This sample algebra does not verify the actual conditional-mean restriction.
rit=ritW+riB
ritW=yit−zitTβ
riB=yˉi−α−zˉiTδ
기초Foundations
35. 개체 내 2와 평균 계수 3을 연결합니다35. Connect within two with mean coefficient three
여섯 행에서 y=−3/2+2x+3평균 x가 정확히 성립합니다. A 첫 행은 −3/2+0+3/2=0, B 첫 행은 −3/2+2+9/2=5입니다. β=2는 개체 내 기울기, β+γ=5는 평균 사이 기울기이므로 γ=3입니다.
이 식은 모든 여섯 행을 오차 없이 맞춥니다. 선언 분산이 달라져도 같은 정확 적합이 가능하므로 이 예의 계수는 같습니다. 일반 자료에서 between·CRE 절편과 평균 계수의 가중 방식은 구별해야 합니다.
y=−23+2x+3xˉi
All six rows satisfy y=−3/2+2x+3 mean x exactly. At A’s first row this is −3/2+0+3/2=0; at B’s first row it is −3/2+2+9/2=5. Within β is two and between β+γ is five, giving γ=three.
The model fits every row without error. Changing positive working covariance cannot alter this exact-fit coefficient result. For general data, distinguish weighting of between fits and CRE intercept/mean coefficients.
y=−23+2x+3xˉi
기초Foundations
36. 같은 열을 두 번 넣어도 새 정보는 없습니다36. Repeating a column adds no information
시간불변 z_i는 자기 평균과 같습니다. 원 z와 평균 z를 CRE에 함께 넣으면 두 열이 동일합니다. 두 계수의 합만 구별되거나 절편과도 겹칠 수 있습니다. 한 계수는 0, 다른 계수는 어떤 값이라는 특정 해를 보고 두 효과가 분리됐다고 말하지 않습니다.
within에서 사라졌던 교육·주 열이 RE에서 숫자 계수로 나온다고 그 효과가 자동 식별되는 것도 아닙니다. 자유로운 개체 절편을 제한한 추가 모형 안에서만 그 좌표를 구별합니다.
A time-constant z equals its own unit mean. CRE then includes two identical columns. Only their sum may be distinguishable, potentially with further overlap with an intercept. A particular solution assigning one coefficient zero does not separate two effects.
A numerical RE coefficient for schooling or state does not automatically identify an unrestricted unit-effect model’s coefficient. It distinguishes that coordinate only within the additionally restricted model.
기초Foundations
37. 관측 시점 구성의 평균도 포함합니다37. Include means of the observation-time columns
불균형 패널에 시점 지시자를 넣으면 각 개체의 그 지시자 평균은 관측 구성에 따라 다릅니다. 두 시점 모두 가진 개체의 after 평균은 1/2, after만 가진 개체는 1입니다. CRE에 x 평균만 넣고 시점 열 평균을 빼면 앞의 분해에 필요한 전체 평균 공간이 달라질 수 있습니다.
엔진은 시점 효과를 켠 경우 모든 포함 시점 열의 개체 평균도 추가합니다. 완전한 균형 패널에서는 이 평균들이 상수여서 추가 종속이 생기지만 전체 해집합을 보존하면 계산이 가능합니다.
With unbalanced timing, a time indicator’s unit mean depends on the observation schedule. An after indicator averages one-half for a two-wave unit and one for an after-only unit. Including only x means can omit part of the mean space needed for the preceding decomposition.
When time effects are enabled, the engine augments means of every included time column too. In balanced data those means are constant and add dependencies; retaining the full family handles them.
기초Foundations
38. 두 계수 차이는 검정 그 자체가 아닙니다38. A coefficient difference is not itself a test
FE와 RE가 다르면 개체 성분과 x의 관련성을 의심할 수 있지만 차이만으로 어느 모형이 참인지 결정되지 않습니다. 다른 가용 집합·가중치·포함 열을 썼을 수도 있습니다. 먼저 동일 자료·표적을 맞춥니다.
통상 Hausman 검정의 이차형은 차이의 공분산·랭크·귀무가설 아래 기준분포에 대한 조건을 필요로 합니다. 강건 표준오차를 붙였다는 이유만으로 임의의 공분산 차이를 역행렬에 넣지 않습니다. 이 장은 그 검정을 계산했다고 주장하지 않습니다.
Different FE and RE slopes can prompt questions about regressor/unit-effect association, but the difference alone selects no true model. Frames, weights or included columns may also differ. Align data and targets first.
A conventional Hausman quadratic requires conditions on the covariance of the difference, rank and a null reference law. Robust standard errors do not license inversion of any arbitrary covariance difference. This chapter does not claim to compute that test.
기초Foundations
39. 개체 수가 늘어도 한 절편의 잡음은 남습니다39. More units need not remove one intercept’s noise
xβ를 알고 각 개체에 독립 평균 0·분산 σ²인 오차가 T번 있다면 â_i−a_i는 자기 오차 평균입니다. 분산은 σ²/T입니다. 다른 개체를 많이 더해도 이 개체의 T가 고정이면 이 분산은 줄지 않습니다.
공통 β의 일관성과 개별 절편 추정의 일관성은 다른 문제입니다. 짧은 선형 패널에서 β가 잘 추정될 가능성과, 개별 고유 성분을 잡음 없이 알아낸다는 주장을 구별합니다. 동적·비선형 모형에는 추가 편향 문제가 생길 수 있습니다.
Var(a^i−ai∣X)=Tσ2
Suppose xβ is known and each unit has T independent mean-zero errors with variance σ². Its intercept error is its own average error, with variance σ²/T. Adding other units does not reduce that variance when this unit’s T stays fixed.
Consistency of a common β differs from consistency of each unit intercept. A short linear panel may estimate common slopes well without learning every unit component without noise. Dynamic or nonlinear models can raise additional bias issues.
Var(a^i−ai∣X)=Tσ2
기초Foundations
40. 실습 · 평균 열과 같은 기울기40. Lab · mean columns and matching slopes
기본 여섯 행에 평균 열을 추가하면 within 기울기 2와 평균 계수 3을 확인할 수 있습니다. 불균형으로 바꾸고 공통 시점 효과를 켠 뒤 모든 포함 열의 평균을 추가하는 규약을 확인하세요.
시간불변 열도 넣어 계수 가족이 늘어나되 식별된 within 기울기 일치가 유지되는지 봅니다. 같은 수치가 나온 대수적 이유와 실제 평균 전제가 성립한다는 경험적 주장을 구별해 한 문장으로 보고하세요.
Mean augmentation in the default six rows gives within slope two and mean coefficient three. Make the panel unbalanced, enable time effects and inspect augmentation of every included column’s mean.
Add a time-constant column and inspect the larger family while checking identified within-slope correspondence. Report separately why the numbers agree algebraically and whether actual conditional-mean premises are supported.
기초Foundations
41. 실제 국가 · 같은 나라의 다섯 시점41. Actual countries · five waves of the same country
보관 World Bank 원응답에서 16국의 2020–2024년 GDP/인·출생 시 기간 기대수명을 새로 읽었습니다. GDP는 10,000 고정 2015USD/인, 결과는 연수입니다. 80행 모두 선택 필드가 가용하며 이전 장의 계수를 복사하지 않았습니다.
나라별 평균 차이, 같은 나라 안 변화, 공통 연도 효과를 포함한 변화를 같은 행으로 비교합니다. 나라별 시변 교란·구성·측정·상호 의존이 실제로 제거됐다고 말하지 않습니다. 실제 원자료·관측 점·공개 분수는 사례 절에 있습니다.
Newly read 2020–2024 GDP per capita and period life expectancy at birth for sixteen countries from retained World Bank responses. GDP is in 10,000 constant-2015 USD/person and y in years. All eighty chosen entries are complete; no previous fitted coefficient is copied.
Compare country-mean differences, within-country changes and changes after common year effects on identical rows. Do not claim removal of time-varying confounding, composition, measurement or dependence across countries. Cases provide original fields, observed points and public exact fractions.
기초Foundations
42. 실제 개인 · 0편차 교육과 불균형 시점42. Actual people · absorbed schooling and uneven waves
원 Card 파일의 3,613위치에서 1976·1978·1980년 시급·혼인 상태와 고정 1976년 교육을 읽어 10,839행을 남깁니다. 8,186공통 가용 행·3,270개체 중 세 시점 모두 가진 개체는 2,105입니다. 점(.)을 0으로 바꾸지 않습니다.
원 시급 센트를 각 연도의 명목 USD/시간으로 바꾼 결과입니다. 공통 연도 지시자를 넣는 일은 물가로 나누는 변환과 다릅니다. within 교육 계수의 미식별과 혼인 선택·임금 충격·이탈에 대한 가정을 함께 읽어야 합니다.
From 3,613 original Card positions, retain wages and marital status at 1976/1978/1980 with constant 1976 schooling: 10,839 entries. The 8,186 common complete entries cover 3,270 units, including 2,105 with every wave. Do not turn original dots into zero.
Convert raw wage cents to nominal USD/hour of each year. Common year indicators are not division by a price index. Read schooling nonidentification alongside premises about marital choices, wage shocks and attrition.
기초Foundations
43. 실제 점포 · 파동과 FTE 단위43. Actual stores · waves and FTE units
원 NJ/PA ZIP의 410위치×두 파동을 새로 읽습니다. 선택된 수준 필드가 가용한 것은 760행·409점포이고 완전한 두 시점은 351점포입니다. 원 코드 407의 위치 42와 168은 다른 개체 키로 보존합니다.
FTE=정규직+0.5×시간제+관리자이며 시작임금은 명목 1992USD/시간입니다. 시점은 before/after 원 표지로 남기고 정확 면담 날짜를 만들어 넣지 않습니다. 주 지시자는 unit effects에 흡수됩니다. 이 장의 관측 수준 비교를 다음 장의 인과 DID 결론과 혼동하지 않습니다.
Freshly read both waves at 410 original NJ/PA positions. Complete selected level fields give 760 entries from 409 stores, including 351 complete pairs. Keep code-407 positions 42 and 168 under distinct unit keys.
FTE=full-time+0.5×part-time+managers; starting wages use nominal-1992 USD/hour. Retain before/after labels without inventing interview dates. Unit effects absorb the state indicator. These descriptive level fits do not establish next chapter’s causal DID conclusions.
기초Foundations
44. 공개 CSV에서 두 언어로 다시 계산합니다44. Recompute from public CSVs in two languages
공개 Python은 세 원필드 선택 CSV만 읽고 정확 Fraction으로 평균·정상방정식·전체 가족을 계산합니다. 별도 base R은 QR과 선언 GLS 변환을 사용합니다. 24개 방법 프로필·204지표 중 16개는 없는 열 또는 미식별 좌표여서 미정의입니다.
공개 입력 위치와 원 ZIP 없는 격리 복사본에서 각각 Python/R을 실행한 최종 네 프로세스를 기록합니다. 이것은 저자 재현 근거이며 독립 원본 감사·전체 원고·실제 브라우저 검증과 다른 범위입니다. R의 소수 계산과 Python의 정확 분수를 같다고 혼동하지 말고 허용오차·원 토큰·해시를 확인하세요.
Public Python reads only three original-field selection CSVs and uses exact Fraction means, normal equations and full families. Separate base R uses QR and the declared GLS transformation. Of 204 metrics across twenty-four profiles, sixteen mark absent or unidentified coordinates as undefined.
Final execution records contain Python/R at the public-input location and in an isolated copy without original ZIPs: four processes. This is author reproduction evidence, separate from independent originals, whole-manuscript and native-browser gates. Distinguish R decimal approximations from exact Python fractions and inspect tolerances, raw tokens and hashes.
대학원 입구Graduate bridge
45. 개체별 점수와 큰 N의 조건45. Unit scores and conditions for large N
짧은 패널에서 각 개체의 여러 행은 독립 반복이 아닐 수 있습니다. within 점수 ψ_i=Σ_t w_it x̃_it ε̃_it를 개체별로 합친 뒤 개체 간 법칙을 검토합니다. 독립 개체 또는 적절한 약한 의존, 모멘트·랭크 안정성·중심극한 조건이 있어야 통상 큰 N 근사를 정당화할 수 있습니다.
N개의 개체를 NT개의 독립 표본처럼 세면 같은 개체 안 상관을 놓칩니다. 시간 공통 충격·나라 간 상호작용은 개체 간 독립도 깨뜨릴 수 있습니다. 이 장의 실제 표에 표준오차·정규 근사 신뢰구간을 임의로 붙이지 않습니다.
ψi=t∑witxitεit
Rows within one short-panel unit need not be independent repetitions. Aggregate its within score ψ_i=Σ_t w_it x̃_it ε̃_it, then study the law across units. Conventional large-N approximation needs independence or suitable weak dependence, moments, stable rank and a central limit argument.
Counting NT rows as independent misses within-unit correlation. Shared shocks or cross-country interactions can also defeat independence across units. Do not attach invented standard errors or normal confidence intervals to this chapter’s actual tables.
ψi=t∑witxitεit
대학원 입구Graduate bridge
46. 전체 분해를 영합 성질로 증명합니다46. Prove the decomposition with zero weighted sums
전체 평균을 μ_x,μ_y라 합시다. x−μ_x를 (x−개체 평균)+(개체 평균−μ_x)로, y도 같은 방식으로 나눕니다. 곱을 전개하면 네 항이지만 두 교차항은 각 개체의 가중 편차합이 0이라 사라집니다. 남는 두 항이 within과 between입니다.
같은 계산을 x와 x에 적용하면 제곱합도 분해됩니다. 벡터에는 교차곱 행렬 분해가 남습니다. 양의 가중치·같은 가용 집합·같은 평균 정의가 중요하며 서로 다른 결측 표본의 두 항을 더해서 전체라고 부를 수 없습니다.
Sxy=SxyW+SxyB
dix=xˉi−μx
diy=yˉi−μy
SxyB=i∑Widixdiy
Write x−μ_x as (x−unit mean)+(unit mean−μ_x), and similarly for y. Expansion has four terms, but two cross terms vanish because every unit’s weighted deviation sum is zero. The surviving terms are within and between.
Applying the same argument to x with itself decomposes squared variation; vector x gives a cross-product matrix decomposition. Positive weights, identical available rows and consistent means matter. Terms from different missing-data samples cannot be added and called the original total.
Sxy=SxyW+SxyB
dix=xˉi−μx
diy=yˉi−μy
SxyB=i∑Widixdiy
기초Foundations
47. 세 실제 사례와 직접 비교합니다47. Compare the three actual cases directly
국가 · 나라 사이 차이와 같은 나라의 변화
한 나라의 GDP/인이 늘 때 기대수명도 늘었는지와, 평균 GDP/인이 큰 나라의 기대수명이 긴지는 다른 질문입니다. 보관 World Bank 원응답에서 16국×2020–2024년의 두 지표를 새로 읽었습니다. y는 출생 시 기간 기대수명 연수이고 x₀는 고정 2015USD/인 GDP를 10,000으로 나눈 값입니다. 실제 장기 출생 코호트의 수명이나 명목 소득이 아닙니다.
원 GDP·기대수명 토큰과 두 응답 원위치, 국가·연도 키를 80행 CSV에 남겼습니다. 16국 모두 다섯 시점의 선택 필드가 가용합니다. 개체 내 적합은 같은 나라의 평균에서 벗어난 변화를, 개체 간 적합은 나라 평균의 차이를 사용합니다. 두 기울기의 부호가 다르더라도 계산 모순이 아닙니다.
원 개체별 가용 시점 수
가용 시점
개체 수
0
0
1
0
2
0
3
0
4
0
5
16
같은 가용 집합의 실제 시점 평균 · 관측 요약·소수 근사
시점
행 수
x₀ 평균
y 평균
2020
16
2.822934
77.454378
2021
16
3.000556
76.731363
2022
16
3.071456
77.79222
2023
16
3.080102
78.218015
2024
16
3.110024
78.38103
식별된 x₀ 기울기만 표시 · 표준오차·인과 인증 없음
적합
같은 행
랭크/열 수
x₀ 기울기
개체 내
80
1/1
1.02432
개체·시점
80
5/5
-1.279246
개체 간·행수 가중
80
2/2
1.931473
개체 간·동일 가중
80
2/2
1.931473
선언 RE
80
2/2
1.910255
선언 RE·시점
80
6/6
1.895654
평균 추가 CRE
80
3/3
1.02432
CRE·시점
80
7/11
-1.279246
처음 세 가용 원 개체 · x₁ 없는 사례는 빈칸
개체
행 수
y 평균
x₀ 평균
x₁ 평균
AUS
5
83.160488
6.047985
—
BRA
5
74.8574
0.902422
—
CAN
5
81.562146
4.468906
—
공통 시점 효과를 더하면 같은 연도에 공통으로 나타나는 변화를 분리합니다. 이때 남는 변동이 작아지거나 기울기가 바뀌는 것을 세계 공통 충격의 인과 분해라고 단정하지 않습니다. 시변 보건·제도·측정과 나라별 반응은 여전히 다를 수 있습니다.
RE/CRE의 두 작업 분산은 모두 1로 선언한 비교이며 실제 기대수명 오차의 분산을 추정한 값이 아닙니다. 국가 간 독립성·엄격 외생성·분산 구조가 실제로 검증됐다는 뜻도 아닙니다. CRE의 x₀ 기울기가 같은 행의 within과 일치하는 것은 이 포함 공간과 작업 공분산의 대수적 성질입니다.
그림은 각 연도 같은 16국의 관측 평균 기대수명 다섯 점입니다. 국가를 새로 대표 표집한 추정치나 개인 생존율이 아니며 점은 연결하지 않습니다. 원응답 보관일 2026년 10월 20일, 이 장의 새 목적 재선택일 27일을 2020–2024 관측연도와 구별하세요.
개인 · 혼인 상태 변화와 명목 임금
같은 사람의 혼인 상태가 바뀐 시점에 임금도 바뀌었는지 보려면 먼저 같은 사람을 연결해야 합니다. Card 공개 proximity.zip의 nls.dat·코드북에서 3,613원위치×1976·1978·1980년 세 시점, 총 10,839행을 새로 읽었습니다. 원 개인 코드와 원위치를 모두 남기며 개체 키는 원위치입니다.
y는 원 시급 센트를 100으로 나눈 각 기록연도의 명목 USD/시간입니다. x₀는 가용 혼인 코드가 1일 때 1, 다른 관측 코드일 때 0인 배우자 동거 혼인 지시자입니다. 원 점(.)은 결측으로 남깁니다. x₁은 원 1976년 교육 연수로 모든 시점에 같은 값을 사용합니다. 임금을 로그로 바꾸거나 물가로 나누지 않습니다.
y와 두 x가 함께 가용한 8,186행·3,270개체를 먼저 고정해 모든 방법을 비교합니다. 세 시점 전부 가용한 사람은 2,105명입니다. 한 시점만 가용한 사람도 공개 행과 between/RE 비교에는 남지만 unit-only within의 기울기 정보에는 기여하지 않습니다.
원 개체별 가용 시점 수
가용 시점
개체 수
0
343
1
459
2
706
3
2105
같은 가용 집합의 실제 시점 평균 · 관측 요약·소수 근사
시점
행 수
x₀ 평균
y 평균
1976
3010
0.712292
5.762492
1978
2656
0.730422
7.245591
1980
2520
0.740079
8.69894
식별된 x₀ 기울기만 표시 · 표준오차·인과 인증 없음
적합
같은 행
랭크/열 수
x₀ 기울기
개체 내
8186
1/2
0.484933
개체·시점
8186
3/4
0.275713
개체 간·행수 가중
8186
3/3
1.682624
개체 간·동일 가중
8186
3/3
1.744076
선언 RE
8186
3/3
1.168665
선언 RE·시점
8186
5/5
1.048055
평균 추가 CRE
8186
4/5
0.484933
CRE·시점
8186
8/9
0.275713
처음 세 가용 원 개체 · x₁ 없는 사례는 빈칸
개체
행 수
y 평균
x₀ 평균
x₁ 평균
person:1
3
6.01
1
7
person:2
2
6.25
0.5
12
person:3
1
7.21
1
12
1976 교육은 개체 평균을 빼면 정확히 0이 됩니다. within의 교육 계수는 0으로 추정된 것이 아니라 임의 실수여도 개체 절편으로 상쇄되는 전체 해집합입니다. 교육·개체 특성의 별도 효과를 이 표만으로 구별하지 못합니다.
공통 시점 지시자를 넣어도 개인별 구매력을 물가지수로 조정한 것은 아닙니다. 표의 혼인 기울기는 명목 시급의 관측 비교이며 혼인의 인과 수익이 아닙니다. 임금 충격 뒤 혼인 선택이 달라지거나 관측 이탈이 관련되면 엄격 외생성·선택 조건을 따로 검토해야 합니다.
그림은 세 시점의 가용 공통 행에서 구한 평균 명목 시급입니다. 시점마다 남은 개체 수가 다르므로 같은 사람들의 동일 구성 평균 변화라고 읽지 않습니다. 원 공개 자료에 단순 접근 가능하다는 이유로 별도 포괄 재배포 허가를 추론하지 않고 저자·코드북 출처를 유지합니다.
점포 · 고용 수준을 같은 점포 안에서 비교하기
앞 장의 고용 변화 계수를 복사하지 않고 NJ/PA 원 ZIP의 410원위치에서 이전·이후 수준 필드를 다시 읽었습니다. 각 시점 y는 정규직+0.5×시간제+관리자라는 FTE, x₀는 시작임금 수준, x₁은 원 NJ=1·PA=0 지시자입니다. 시작임금 단위는 명목 1992USD/시간이며 FTE는 실제 총인원과 다릅니다.
820원행을 모두 남기고 y·두 x가 가용한 760행·409개체에서 방법을 비교합니다. 두 시점 완전한 점포는 351개, 한 시점은 58개, 선택 필드 완전 행이 하나도 없는 원 점포는 1개입니다. 원 코드 407의 위치 42와 168을 별도 개체로 유지합니다. 원 코드 중복을 한 점포라고 합치지 않습니다.
before/after는 원 조사 파동의 표지입니다. 정확한 면담 일자나 공통 노출 일수를 만들어 넣지 않습니다. 같은 주의 점포라도 임금·고용 측정과 시장 상황은 다를 수 있습니다.
원 개체별 가용 시점 수
가용 시점
개체 수
0
1
1
58
2
351
같은 가용 집합의 실제 시점 평균 · 관측 요약·소수 근사
시점
행 수
x₀ 평균
y 평균
before
379
4.616359
21.006728
after
381
4.995144
21.496719
식별된 x₀ 기울기만 표시 · 표준오차·인과 인증 없음
적합
같은 행
랭크/열 수
x₀ 기울기
개체 내
760
1/2
1.528026
개체·시점
760
2/3
2.94253
개체 간·행수 가중
760
3/3
3.085724
개체 간·동일 가중
760
3/3
3.936924
선언 RE
760
3/3
1.95372
선언 RE·시점
760
4/4
2.77207
평균 추가 CRE
760
4/5
1.528026
CRE·시점
760
6/7
2.94253
처음 세 가용 원 개체 · x₁ 없는 사례는 빈칸
개체
행 수
y 평균
x₀ 평균
x₁ 평균
store:1
1
24
4.3
0
store:2
1
11.5
4.45
0
store:3
1
10.5
5
0
주 지시자는 같은 점포에서 바뀌지 않아 within에서 흡수됩니다. 임의의 주 계수와 조정한 개체 절편이 같은 예측값을 만들 수 있으므로 이를 주 효과 0이라고 읽지 않습니다. 공통 after 효과를 넣으면 임금 변화와 겹치는 시간 변동을 추가로 분리합니다.
RE는 실제 점포의 시작임금과 고유 특성이 독립이라고 검증한 모형이 아니라 두 작업 분산 1을 선언한 GLS 비교입니다. CRE도 원자료가 모든 조건부 평균 가정을 증명하지 않습니다. 제도 변화의 인과 효과·평행 추세·비교 집단은 다음 DID 장에서 별도 질문으로 다룹니다.
그림의 두 점은 각 파동 공통 가용 행의 평균 FTE이며 구성은 같지 않을 수 있습니다. 351개 완전 짝만을 별도로 택한 비교와 현재 760행 비교는 다른 계산 목표입니다. 먼저 분모와 선택 규칙을 적고 계수를 비교하세요.
Countries · differences across countries versus changes within one
Does rising income within a country accompany rising longevity, or do richer countries have higher average longevity? These are different questions. Newly read two indicators for sixteen countries over 2020–2024 from retained World Bank responses. y is period life expectancy at birth in years; x₀ is GDP per capita divided by 10,000 constant-2015 USD/person. Neither describes a followed birth cohort or nominal income.
The eighty-row CSV retains original numeric tokens, both response positions and country/year keys. All sixteen units have five complete chosen waves. Within fitting uses departures from each country mean; between fitting uses differences in country means. Different signs do not constitute an arithmetic contradiction.
Available entries per original unit
Available waves
Units
0
0
1
0
2
0
3
0
4
0
5
16
Actual common-frame wave means · descriptive, rounded
Wave
Entries
Mean x₀
Mean y
2020
16
2.822934
77.454378
2021
16
3.000556
76.731363
2022
16
3.071456
77.79222
2023
16
3.080102
78.218015
2024
16
3.110024
78.38103
Identified x₀ slope only · no standard errors or causal certification
Fit
Same rows
Rank/columns
x₀ slope
Within
80
1/1
1.02432
Within + time
80
5/5
-1.279246
Between · row-count weight
80
2/2
1.931473
Between · equal unit
80
2/2
1.931473
Declared RE
80
2/2
1.910255
Declared RE + time
80
6/6
1.895654
Mean-augmented CRE
80
3/3
1.02432
CRE + time
80
7/11
-1.279246
First three available original units · mean x₁ blank when absent
Unit
Entries
Mean y
Mean x₀
Mean x₁
AUS
5
83.160488
6.047985
—
BRA
5
74.8574
0.902422
—
CAN
5
81.562146
4.468906
—
Common time effects separate shared year patterns in the fitted space. Changing a slope or leaving little variation does not establish a causal decomposition of global shocks. Time-varying health systems, institutions, measurement and heterogeneous reactions remain possible.
Both RE/CRE working variances are declared equal to one, rather than estimated actual longevity-error variances. Independence across countries, strict exogeneity and the covariance model are not certified. The CRE/within slope equality on identical rows is an algebraic property of these spaces and working covariance.
The five unconnected plotted points are observed year means over the same sixteen countries, rather than new representative samples or individual survival rates. Distinguish observation years 2020–2024, original retention on 20 October 2026 and this purpose-specific reselection on the 27th.
People · marital-status changes and nominal wages
Link the same people before comparing marital changes and wages. Newly read nls.dat and its codebook in Card’s public proximity.zip: 3,613 original positions at 1976, 1978 and 1980, giving 10,839 retained entries. Keep original person codes and use original positions as unit keys.
y converts original wage cents to nominal USD/hour of each recorded year. x₀ equals one for observed marital code one, zero for other observed codes; original dots remain missing. x₁ repeats original 1976 schooling years at every wave. No fresh logarithm or price deflation is substituted.
Fix the 8,186 entries complete in y and both x columns before comparing methods. They cover 3,270 units, including 2,105 with all three waves. Single-wave people remain in public data and between/RE comparisons but contribute no slope information to unit-only within fitting.
Available entries per original unit
Available waves
Units
0
343
1
459
2
706
3
2105
Actual common-frame wave means · descriptive, rounded
Wave
Entries
Mean x₀
Mean y
1976
3010
0.712292
5.762492
1978
2656
0.730422
7.245591
1980
2520
0.740079
8.69894
Identified x₀ slope only · no standard errors or causal certification
Fit
Same rows
Rank/columns
x₀ slope
Within
8186
1/2
0.484933
Within + time
8186
3/4
0.275713
Between · row-count weight
8186
3/3
1.682624
Between · equal unit
8186
3/3
1.744076
Declared RE
8186
3/3
1.168665
Declared RE + time
8186
5/5
1.048055
Mean-augmented CRE
8186
4/5
0.484933
CRE + time
8186
8/9
0.275713
First three available original units · mean x₁ blank when absent
Unit
Entries
Mean y
Mean x₀
Mean x₁
person:1
3
6.01
1
7
person:2
2
6.25
0.5
12
person:3
1
7.21
1
12
Subtracting unit means makes 1976 schooling exactly zero. Its within coefficient is not estimated as zero: any real value can be offset by unit intercepts. The complete solution family cannot separate schooling from those unit baselines.
Time indicators do not individually deflate purchasing power. The marital slope is an observed nominal-wage association, not a causal marriage return. Feedback from wage shocks to marital choices or related attrition needs separate strict-exogeneity and selection arguments.
The plot shows three observed complete-entry means of nominal hourly wages. Different numbers remain at each wave, so this is not a constant-composition mean change for identical people. Preserve author/codebook attribution; public access alone does not imply a blanket redistribution license.
Stores · comparing employment levels within a store
Reread level fields at all 410 original positions in the NJ/PA archive instead of copying prior change coefficients. At each wave y is FTE=full-time+0.5×part-time+managers, x₀ the starting-wage level and x₁ recorded NJ=1/PA=0. Wages are nominal-1992 USD/hour; FTE differs from actual headcount.
Retain all 820 entries and compare methods on 760 complete entries from 409 units. There are 351 complete two-wave stores, 58 single-wave stores and one original store without a complete selected entry. Keep code-407 positions 42 and 168 as distinct units rather than merging by a repeated source code.
Before/after are original survey-wave labels. Do not invent exact interview dates or equal exposure days. Stores within one state may still differ in measurement and market conditions.
Available entries per original unit
Available waves
Units
0
1
1
58
2
351
Actual common-frame wave means · descriptive, rounded
Wave
Entries
Mean x₀
Mean y
before
379
4.616359
21.006728
after
381
4.995144
21.496719
Identified x₀ slope only · no standard errors or causal certification
Fit
Same rows
Rank/columns
x₀ slope
Within
760
1/2
1.528026
Within + time
760
2/3
2.94253
Between · row-count weight
760
3/3
3.085724
Between · equal unit
760
3/3
3.936924
Declared RE
760
3/3
1.95372
Declared RE + time
760
4/4
2.77207
Mean-augmented CRE
760
4/5
1.528026
CRE + time
760
6/7
2.94253
First three available original units · mean x₁ blank when absent
Unit
Entries
Mean y
Mean x₀
Mean x₁
store:1
1
24
4.3
0
store:2
1
11.5
4.45
0
store:3
1
10.5
5
0
The state indicator is constant within a store and absorbed by unit effects. Arbitrary state coefficients offset by unit intercepts yield the same fitted values; this does not estimate a zero state effect. Adding a common after effect further separates shared time variation.
RE here is a GLS comparison under two declared working variances of one, not a verified independence model for store characteristics and wages. CRE also does not establish its conditional-mean premises from the data. Policy effects, parallel trends and comparison groups remain distinct questions for the next DID chapter.
The two plotted FTE means use each wave’s complete entries, whose compositions may differ. Restricting instead to 351 complete pairs changes the calculation target. State denominators and selection rules before comparing coefficients.
기초Foundations
48. 다음 장으로 넘길 질문을 적습니다48. Write the questions to carry into the next chapter
공식 제작자 영상과 지정 읽기에서 어떤 성분을 제거하고 어떤 평균·공분산 조건을 추가하는지 찾아보세요. 같은 개체의 변화라는 말과 인과 효과라는 말 사이에 필요한 조건을 자신의 실제 사례 단위로 설명합니다.
다음 DID·사건연구 장에서는 처리 시점·비교 집단·평행 추세·서로 다른 효과의 가중을 따로 검토합니다. 지금의 FE 계산이 그 조건을 자동으로 제공하지 않는다는 점을 작은 피드백 반례와 함께 기억하세요.
In the creator video and designated readings, identify what is removed and which mean/covariance restrictions are added. Explain, in your actual case’s units, the premises between within-unit change and a causal effect.
The next DID/event-study chapter separately examines treatment timing, comparison groups, parallel trends and weighting of heterogeneous effects. Carry the small feedback counterexample: FE computation does not supply those premises automatically.
자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.
결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.
영상·학자·함께 읽기Videos, thinkers and guided reading
본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.
패널의 within·between·REWithin, between and random effects
Ani Katchova · Econometrics Academy · creator lecture
영상의 within 설명과 RE 설명에서 각각 무엇을 빼고 무엇을 가정하는지 비교하세요.Compare what is removed and assumed in the video’s within and RE explanations.
교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.
보고 읽은 뒤 답하기Respond after watching/readingwithin을 쓰면 시간에 따라 변하는 교란도 사라지나요?Does within remove time-varying confounding?
생각을 점검하는 해설Check your reasoning
일반적으로 아닙니다. 같은 개체에 일정하게 더해지는 성분을 제거하는 대수와 오차 조건을 구별합니다.Generally no. Distinguish removal of an additive unit constant from error restrictions.
Yair Mundlak · 농업·성장·계량경제학Yair Mundlak · agriculture, growth and econometrics
Hebrew University of Jerusalem · official biography
공식 소개의 연구 분야를 읽고 개체 특성과 설명변수 평균이 관련될 수 있는 실제 예를 적으세요.Read the research fields and give an example linking unit characteristics to regressor means.
보고 읽은 뒤 답하기Respond after watching/reading개체 평균을 넣는 이유는 무엇인가요?Why include unit means?
생각을 점검하는 해설Check your reasoning
고유 성분과 설명변수 경로의 관련성을 명시한 평균 모형으로 드러내기 위해서입니다.To make their association explicit in a conditional-mean model.
엄격 외생성과 개체 내 변환Strict exogeneity and the within transformation
MIT OCW · 14.382 Spring 2017 · Chernozhukov/Fernandez-Val · physical pages 5–9
동시점 직교와 모든 시점 경로에 대한 조건을 구별하고, 평균을 뺀 뒤 필요한 모멘트를 찾아보세요.Distinguish contemporaneous orthogonality from whole-path restrictions; locate the needed demeaned moment.
개체 평균을 추가하는 식과 검정의 분산 전제를 비교하고, 이 장이 계산하지 않은 추론 조건을 적으세요.Compare mean augmentation with covariance premises for specification tests; state inference conditions not computed here.
보고 읽은 뒤 답하기Respond after watching/reading두 기울기가 같으면 RE 전제가 증명되나요?Does equality of two slopes prove RE assumptions?
생각을 점검하는 해설Check your reasoning
아닙니다. 표본의 대수적 일치·검정 설계·모집단 전제를 구별해야 합니다.No. Separate sample algebra, test design and population restrictions.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 두 주소Two addresses
A를 시점 0·1, B를 시점 1에서 관측했다. 행 수·개체 수·가용 시점 수를 각각 구하고 균형 패널인지 설명하라.
Observe A at times zero/one and B at time one. Count rows, units and distinct times; is the panel balanced?
풀이와 확인할 이유Solution and explanation
행은 3, 개체는 A·B 두 개, 시점은 0·1 두 개이다. A는 두 시점, B는 한 시점이라 불균형이다. 시점 0의 B를 임의 0으로 만들어 균형이라고 부르면 자료를 바꾸게 된다.
Three rows, two units and two times. A has both times but B only one, so the panel is unbalanced. Inventing a zero for B at time zero changes the data.
2. 자기 평균Own-unit means
A의 (x,y)가 (0,0),(1,2)이다. 두 평균과 두 행의 편차를 구하라.
A has (x, y)=(0, 0), (1, 2). Find means and both deviations.
풀이와 확인할 이유Solution and explanation
평균은 x=1/2, y=1이다. 첫 편차는 (−1/2,−1), 둘째는 (1/2,1)이다. 각 열 편차합이 0인지 확인하면 산술을 검산할 수 있다.
Means are 1/2 and one. Deviations are (−1/2, −1) and (1/2, 1). Their column sums are zero, providing a direct check.
3. 여섯 행 withinSix-row within
A:(0,0),(1,2), B:(1,5),(2,7), C:(2,10),(3,12)를 동일 가중치로 적합한다. 자유로운 개체 절편과 공통 x 기울기의 최소화 해를 구하라.
Fit A:(0, 0), (1, 2), B:(1, 5), (2, 7), C:(2, 10), (3, 12) with equal row weights, free unit intercepts and one common slope. Find minimizers.
풀이와 확인할 이유Solution and explanation
모든 개체 편차가 (−1/2,−1),(1/2,1)이다. 곱합 3, x 제곱합 3/2이므로 β=2로 유일하다. 평균 y−2평균 x에서 절편은 A=0, B=3, C=6이며 모든 행의 잔차가 0이다.
Every unit has deviations (−1/2, −1), (1/2, 1). Cross-product three divided by squared variation 3/2 gives unique β=2. Mean y minus twice mean x yields intercepts zero, three and six; all residuals vanish.
4. 평균 사이 직선Line through unit means
개체 평균 세 점이 (1/2,1),(3/2,6),(5/2,11)이다. 절편을 포함한 동일 개체 가중 최소제곱의 기울기·절편을 구하라.
Unit means are (1/2, 1), (3/2, 6), (5/2, 11). Find the equal-unit least-squares slope and intercept.
풀이와 확인할 이유Solution and explanation
x가 1 증가할 때 y가 5 늘어 세 점은 한 직선 위에 있다. b=5, a=1−5/2=−3/2이고 목적함수 최소값은 0이다. 이 between 기울기는 같은 개체 안의 변화 기울기와 다른 비교이다.
Every one-unit increase in x adds five y units. Thus b=5 and a=−3/2, with minimum zero. This between comparison differs from change within a unit.
5. pooled 분해Pooled decomposition
절편 포함 단일 x 회귀에서 전체 Sxy=23, Sxx=11/2이고 개체 내 Sxy=3, Sxx=3/2이다. between 성분과 pooled 기울기를 구하라.
In a single-x regression with an intercept, total Sxy=23 and Sxx=11/2; within components are three and 3/2. Find between components and the pooled slope.
풀이와 확인할 이유Solution and explanation
between 곱합은 23−3=20, 제곱합은 11/2−3/2=4이다. pooled 기울기는 23/(11/2)=46/11이다. within 2와 between 5를 각각 제곱합 3/2·4로 가중한 값과 같다.
Between components are twenty and four. The pooled slope is 23/(11/2)=46/11. It equals the average of within two and between five weighted by squared variations 3/2 and four.
6. 가중 평균 영합Weighted zero sum
양의 가중치 1·3이 붙은 값 2·6의 가중 평균과 가중 편차합을 구하라.
Values two/six have weights one/three. Compute their weighted mean and weighted deviation sum.
풀이와 확인할 이유Solution and explanation
평균은 (1×2+3×6)/4=5이다. 편차는 −3·1이고 가중합은 −3+3=0이다. 단순 편차합 −2와 혼동하면 안 된다.
Mean is (2+18)/4=5. Deviations −3 and one have weighted sum zero; their unweighted sum is −2 and answers a different question.
7. 한 시점 개체A one-wave unit
한 개체의 유일한 가용 행은 x=8,y=13,가중치2이다. 자유로운 개체 절편을 두는 within 기울기에 이 행이 주는 정보와 전체 해를 설명하라.
A unit has one available row x=8, y=13, weight two. With a free unit intercept, describe its within slope information and full fit family.
풀이와 확인할 이유Solution and explanation
자기 평균과 원값이 같아 두 편차가 0이다. 모든 β가 가능하고 a=13−8β이면 잔차는 0이다. 이 행은 unit-only within 기울기 정보를 주지 않지만 원자료·between 계산에서 없어져야 하는 행은 아니다.
Both deviations are zero. Every β is allowed with a=13−8β and zero residual. It gives no unit-only within slope information but need not disappear from public data or between fitting.
8. 0과 결측Zero versus missing
두 행 (x,y)=(0,0),(1,결측)을 공개 선택자료에 남겼다. 모든 포함 x와 y가 가용해야 한다면 실제 비교 행 수와 첫 행의 처리 방법을 말하라.
Retain public rows (x, y)=(0, 0), (1, missing). If every included x and y must be available, how many rows enter comparison and what happens to the first?
풀이와 확인할 이유Solution and explanation
첫 행은 두 값이 실제 0이어서 가용하다. 둘째만 제외해 비교 행은 1개이다. 둘째의 결측 y를 0으로 대체하면 새 결과를 가정한 것이며, 첫 행을 결측으로 제외해도 잘못이다.
One row enters: genuine zeros are available. Only the second is excluded. Filling its missing y with zero invents an outcome, while treating the first row as missing is also wrong.
9. 주소의 타입Typed identities
계약이 숫자 1과 문자열 "1"을 다른 개체 키로 취급한다. (숫자1,시점0),(문자열1,시점0)을 중복이라고 합칠 수 있는가? 같은 숫자1·시점0을 한 번 더 넣으면 어떠한가?
The contract treats numeric 1 and string "1" as distinct unit keys. May their time-zero rows be merged as duplicates? What if numeric 1/time zero appears twice?
풀이와 확인할 이유Solution and explanation
앞의 두 키는 타입이 달라 별개이다. 같은 숫자 키·같은 시점이 다시 나오면 중복 주소여서 거절한다. 키 문자열의 화면 모양만 보고 원 개체를 합치지 않는다.
The first pair has distinct typed keys. Repeating numeric 1 at time zero duplicates an address and is rejected. Screen appearance alone is insufficient for merging source units.
10. 절편 프로파일Profile a unit intercept
양의 w와 고정 β 아래 Σ_t w_t(y_t−a−x_t′β)²를 a에 대해 최소화하라. 평균은 같은 w로 정의한다.
For positive weights and fixed β, minimize Σ_t w_t(y_t−a−x_t′β)² over a. Define means using those same weights.
풀이와 확인할 이유Solution and explanation
미분은 −2Σw(y−a−x′β)이다. 합을 0으로 두면 a=(Σwy−Σwx′β)/Σw=평균 y−평균 x′β이다. 이차 미분 2Σw>0이라 유일한 최소이고, 대입하면 편차 회귀가 된다.
Derivative is −2Σw(y−a−x′β). Setting it to zero gives a=mean y−mean x′β. Second derivative 2Σw is positive, proving a unique minimum for fixed β; substitution yields the demeaned objective.
11. 상수 이동Constant shifts
동일 가중치·가용 집합의 FE 목적함수에서 한 개체의 모든 y에 c를 더한다. β의 전체 해집합과 그 개체 절편은 어떻게 바뀌는가?
Add c to every y of one unit in FE fitting on the same frame and weights. How do the full β family and that unit intercept change?
풀이와 확인할 이유Solution and explanation
그 개체 평균도 c 증가하므로 y 편차는 불변이다. 축약 목적함수가 같아 β 전체 집합은 불변이고, 대응 절편만 c 증가한다. 한 시점만 바꾸는 경우에는 이 결론이 일반적으로 성립하지 않는다.
Its mean rises by c, leaving deviations unchanged. The reduced objective and full β set stay fixed; the corresponding intercept rises by c. A change to only one wave generally has a different effect.
12. 시간불변 교육Constant schooling
한 개체의 두 행에서 z=4이고 y=(5,7)이다. 자유 절편 a와 계수 b로 y≈a+bz를 적합한다. 전체 최소화 해와 적합값을 구하라.
For one unit z=4 in both rows and y=(five, seven). Fit y≈a+bz with free a, b. Find every minimizer and fitted values.
풀이와 확인할 이유Solution and explanation
상수 적합값의 최선은 평균 6이다. 따라서 a+4b=6인 직선 전체, 즉 b∈R,a=6−4b가 최소화 해이다. 두 적합값은 모두 6이고 최소 제곱합은 1+1=2이다. b=0은 한 특정 해일 뿐 식별된 효과 0이 아니다.
The best constant fit is mean six. Every b∈R with a=6−4b minimizes, fitting six twice with SSE two. b=0 is one particular choice, not an identified zero effect.
13. 중복 편차 열Duplicate deviation columns
가중치1에서 편차 설계 두 열이 모두 (−1,1)이고 y 편차가 (−3,3)이다. β₁,β₂의 전체 해집합과 식별된 조합을 구하라.
Both demeaned columns equal (−1, 1), and demeaned y=(−3, 3), with unit weights. Find the full coefficient family and identified combination.
풀이와 확인할 이유Solution and explanation
두 열 합성 예측은 (−β₁−β₂,β₁+β₂)이다. 정확 적합 조건은 β₁+β₂=3이다. 따라서 (3−t,t),t∈R이며 합만 식별된다. 관측 적합값은 가족 전체에서 같지만 각 좌표는 미식별이다.
Exact fitting requires β₁+β₂=3, giving (3−t, t) for all real t. Only the sum is identified. Observed fitted values agree across the family while individual coordinates vary.
14. 두 시점 차분Two-wave differencing
모든 개체가 두 시점, 가중치1이다. Δr_i=Δy_i−Δx_i′β로 두고 unit-profiled SSE와 절편 없는 차분 SSE의 관계를 증명하라.
Every unit has two waves with row weights one. Let Δr_i=Δy_i−Δx_i′β. Relate unit-profiled SSE to the differenced SSE without an intercept.
풀이와 확인할 이유Solution and explanation
프로파일한 두 잔차는 −Δr_i/2와 Δr_i/2이다. 제곱합은 Δr_i²/2이고 모든 개체에서 합치면 차분 SSE의 절반이다. 양의 공통 배수이므로 전체 β 최소화 집합이 같다.
The profiled residuals are −Δr_i/2 and Δr_i/2, yielding Δr_i²/2. Summing gives half the differenced SSE. A common positive factor preserves the entire β minimizer set.
15. 차분의 가중치Weights after differencing
두 시점의 양의 가중치가 w₁,w₂일 때 절편을 프로파일한 잔차 r₁,r₂의 가중 제곱합을 원 차이 d=y₂−y₁−(x₂−x₁)′β로 나타내라.
Two waves have positive weights w₁, w₂. After profiling a unit intercept, express weighted SSE in d=y₂−y₁−(x₂−x₁)′β.
풀이와 확인할 이유Solution and explanation
잔차는 r₁=−w₂d/(w₁+w₂),r₂=w₁d/(w₁+w₂)이다. 대입하면 w₁w₂d²/(w₁+w₂)이다. w₁=1,w₂=3이면 계수 3/4이며 모든 개체에 무조건 같은 차분 가중치를 쓰면 다른 목표가 될 수 있다.
Residuals are −w₂d/(w₁+w₂) and w₁d/(w₁+w₂). Substitution gives w₁w₂d²/(w₁+w₂). Weights one and three yield factor 3/4; equal differenced weights across all units may therefore change the target.
16. 세 시점의 반례A three-wave counterexample
한 개체의 가중치1 자료 x=(0,1,3),y=(0,2,2)이다. within 기울기와 절편 없는 인접 차분 회귀 기울기를 각각 구하라.
One unit has x=(0, 1, 3), y=(0, 2, 2), all weights one. Compare the within slope with equally weighted adjacent-difference regression without an intercept.
풀이와 확인할 이유Solution and explanation
두 평균은 4/3이다. 중심화 곱합 8/3, x 제곱합 14/3이므로 within은 4/7이다. 인접 차분은 Δx=(1,2),Δy=(2,0)이므로 기울기는 2/(1+4)=2/5이다. 두 시점의 동등성을 세 시점에 그대로 확장할 수 없다.
Both means are 4/3. Centered cross-product 8/3 divided by x variation 14/3 gives 4/7. Adjacent differences (1, 2) and (2, 0) give slope 2/5. Two-wave equivalence does not extend unchanged to three waves.
17. 불균형 평균 가중Unbalanced mean weights
개체 평균은 A:(1/2,1),B:(3/2,6),C:(2,10), 가용 행 수는 2,2,1이다. 절편 포함 between 기울기를 총 행수 가중과 동일 개체 가중으로 구하라.
Unit means are A:(1/2, 1), B:(3/2, 6), C:(2, 10), with available counts two, two, one. Compute between slopes with row-count versus equal-unit weights.
풀이와 확인할 이유Solution and explanation
행수 가중 전체 평균은 x=6/5,y=24/5이다. 중심화 곱합/제곱합에서 b=17/3,a=−2이다. 동일 개체 평균은 x=4/3,y=17/3이며 b=41/7,a=−15/7이다. 같은 평균 점이라도 목표 가중치가 달라 결과가 다르다.
Row-count means are x=6/5, y=24/5, yielding b=17/3, a=−2. Equal-unit means are x=4/3, y=17/3, yielding b=41/7, a=−15/7. The same mean points give different fits under different target weights.
18. 전체 곱 분해Decompose total cross-products
양의 w,같은 가용 집합에서 개체 평균과 전체 가중 평균 μ를 정의한다. Sxy=Σw(x−μ_x)(y−μ_y)가 within+Σ_i W_i(평균x_i−μ_x)(평균y_i−μ_y)로 나뉨을 증명하라.
Using positive w and the same available frame, define unit and overall weighted means. Prove total centered Sxy equals within plus Σ_i W_i(mean x_i−μ_x)(mean y_i−μ_y).
풀이와 확인할 이유Solution and explanation
각 중심화 값을 자기 평균 편차와 자기 평균−전체 평균으로 나누어 곱을 전개한다. 두 혼합항은 개체마다 Σw(x−평균x)=Σw(y−평균y)=0이라 사라진다. 상수끼리의 항은 개체 가중치 합 W_i가 곱해진 between 성분이다.
Expand each centered variable into its within deviation plus unit-minus-overall mean. The two mixed terms vanish by zero weighted deviation sums. The remaining constant-product term receives total unit weight W_i, giving the stated between component.
19. 예측의 범위Scope of prediction
한 개체에서 관측 z=2인 행의 식별된 적합값은 5이고 모형은 a+bz이다. 전체 가족 a=5−2b를 쓴다. 새 z=3의 예측은 식별되는가?
A unit’s identified fitted value at observed z=2 is five in model a+bz. Use family a=5−2b. Is prediction at new z=3 identified?
풀이와 확인할 이유Solution and explanation
새 예측은 5−2b+3b=5+b이다. b가 모든 실수를 움직이므로 새 예측도 실수 전체이다. 관측 적합값 불변은 관측 밖 새 설명변수 벡터의 예측 불변을 뜻하지 않는다.
New prediction equals five plus b. Since b ranges over all reals, so does this prediction. Invariance of observed fitted values does not establish invariance outside observed design support.
20. 양의 가중치와 영공간Positive weights and nullspaces
유한 행렬 X와 양의 대각 W에 대해 ker(X′WX)=ker(X)를 증명하고, 0가중치 행을 허용하면 어떤 부분이 바뀌는지 설명하라.
For finite X and positive diagonal W, prove ker(X′WX)=ker(X). What changes if zero-weight rows are allowed?
풀이와 확인할 이유Solution and explanation
Xv=0이면 정상행렬 곱도 0이다. 역으로 v′X′WXv=Σw_i(x_i′v)²=0이고 모든 w_i>0이므로 각 행곱이 0이다. 0가중치 행은 이 합에 기여하지 않아 그 행의 적합값 불변까지 결론낼 수 없다.
One direction is immediate. Conversely, the nonnegative weighted sum of squared row products is zero; strictly positive weights force every product to zero. Zero-weight rows impose no such restriction, so their fitted values need not be invariant.
21. 불편성의 조건Conditions for unbiasedness
고정 설계·가중치에서 y=Xβ+a+ε, E[ε|X,a]=0이고 개체 편차 설계가 열 전랭크이다. within 추정량이 조건부 불편임을 증명하라.
At fixed design and weights, assume y=Xβ+a+ε, E[ε|X, a]=0 and full column rank after unit demeaning. Prove conditional unbiasedness of within.
풀이와 확인할 이유Solution and explanation
평균 제거로 a가 사라져 ỹ=X̃β+ε̃이다. β̂−β=(X̃′WX̃)⁻¹X̃′Wε̃이며 행렬은 조건부로 고정이다. ε̃의 조건부 평균도 0이므로 추정오차 기대가 0이다. 이 증명은 가정한 오차 조건을 실제 자료에서 확인해 주지 않는다.
Demeaning removes a. The estimation error is (X̃′WX̃)⁻¹X̃′Wε̃, with a conditionally fixed matrix and mean-zero ε̃. Its conditional mean is zero. This proof does not establish the actual-data error assumption.
22. 동시점 조건의 반례Contemporaneous exogeneity is insufficient
공정 U=±1, a=β=0, x=(0,U), ε=(U,0), y=ε인 두 시점 법칙을 둔다. 동시점 평균 조건과 엄격 외생성을 비교하고 within 기울기를 구하라.
Take fair U=±1, a=β=0, x=(0, U), ε=(U, 0), y=ε at two waves. Compare contemporaneous and strict exogeneity; find the within slope.
풀이와 확인할 이유Solution and explanation
첫 x는 0이라 첫 오차 평균은 0이고 둘째 오차도 0이다. 따라서 동시점 평균 조건은 맞지만 x₂가 ε₁을 드러내 전체 경로 조건은 실패한다. 편차 y는 x 편차의 음수라 β̂=−1이며 참 β=0과 다르다.
The first x is constant and its error averages zero; the second error is zero. Contemporaneous means hold, but x₂ reveals ε₁, violating the whole-path condition. Demeaned y is minus demeaned x, so β̂=−1 rather than structural zero.
23. 시점과 x의 겹침Overlap between time and x
개체 i=0,1,2의 두 시점 t=0,1에서 x=i+t,y=5i+2t이다. 모형 y=a_i+bx+λt의 전체 정확 적합 가족을 구하라.
For i=0, 1, 2 and t=0, 1, let x=i+t, y=5i+2t. Find all exact fits y=a_i+bx+λt.
풀이와 확인할 이유Solution and explanation
t=0에서 a_i=(5−b)i이다. t=1의 변화는 b+λ=2여야 하므로 모든 b∈R,λ=2−b가 가능하다. 각 좌표는 따로 식별되지 않지만 관측 적합은 정확하고 불변이다. 기준 시점 t=0을 뺐어도 x와 남은 시간 열이 겹친다.
Time zero requires a_i=(5−b)i; the one-wave change requires b+λ=2. Every real b with λ=2−b fits exactly. Coordinates are not separately identified, although observed predictions agree. Omitting the reference wave does not remove x/time overlap.
24. 단순 이중 중심화의 실패Failure of naive double demeaning
Three equally weighted observations are A0:y=0, A1:y=2, B1:y=5. Form r=y−unit mean−time mean+overall mean. Is it orthogonal to unit indicators?
풀이와 확인할 이유Solution and explanation
개체 평균은 A=1,B=5, 시점 평균은 0과7/2, 전체는7/3이다. r=(4/3,−1/6,−7/6)이다. A의 합은7/6로 0이 아니므로 개체 지시자에 직교하지 않는다. 따라서 이것은 두 효과 공간을 제거한 최소제곱 잔차가 아니다.
Unit means are one/five; time means zero/7/2; overall mean 7/3. Thus r=(4/3, −1/6, −7/6). A’s sum is 7/6, not zero, so it is not orthogonal to unit indicators and cannot be the residual from projecting out both effect spaces.
25. 불연결 시점Disconnected waves
A0:y=2,B1:y=7만 있고 y=a_i+λ1{t=1}로 적합한다. λ의 전체 집합과 두 절편을 구하라.
Only A0:y=2 and B1:y=7 are observed. Fit y=a_i+λ1{t=1}. Find the full λ set and intercepts.
풀이와 확인할 이유Solution and explanation
a_A=2,a_B=7−λ이면 모든 λ∈R가 잔차0을 만든다. A와 B를 연결하는 시점 관측이 없어 기준 시점을 정하는 것만으로 λ가 식별되지 않는다. 관측 두 적합값은 2·7로 불변이다.
Every real λ fits with a_A=2, a_B=7−λ. No observed unit connects the waves, so a reference time alone does not identify λ. Both observed fitted values remain two/seven.
26. 선언 공분산Declared covariance
u_t=a+ε_t에서 a와 두 ε가 서로 무상관, Var(a)=1,Var(ε_t)=1이다. 두 시점 Ω와 그 역행렬을 구하라.
Let a and two ε errors be mutually uncorrelated, all variances one, with u_t=a+ε_t. Find the two-wave Ω and inverse.
풀이와 확인할 이유Solution and explanation
각 분산은2, 공유 a 때문에 공분산은1이다. Ω=[[2,1],[1,2]],행렬식3이며 역은(1/3)[[2,−1],[−1,2]]이다. 음의 역행렬 비대각은 원 공분산이 음수라는 뜻이 아니다.
Variances are two and covariance one from shared a. Ω=[[2, 1], [1, 2]] has determinant three and inverse (1/3)[[2, −1], [−1, 2]]. Negative inverse off-diagonals do not make original covariance negative.
27. 블록 내적 손계산A block inner product
w=(1,1),v_e=v_a=1에서 Ω=[[2,1],[1,2]]이다. u=(1,2),v=(3,4)의 u′Ω⁻¹v를 직접 곱과 합 공식으로 각각 구하라.
For w=(1, 1), v_e=v_a=1, Ω=[[2, 1], [1, 2]]. Compute u′Ω⁻¹v for u=(1, 2), v=(3, 4) both directly and by sums.
풀이와 확인할 이유Solution and explanation
직접 Ω⁻¹v=(2/3,5/3)이므로 내적은2/3+10/3=4이다. 합 공식은 s_uv=11,s_u=3,s_v=7,W=2라서11−21/3=4이다. 같은 공분산의 두 구현이 일치한다.
Direct multiplication gives Ω⁻¹v=(2/3, 5/3), so the product is four. The sum formula has s_uv=11, s_u=3, s_v=7, W=2, yielding eleven minus seven=4.
28. 변환된 절편Transform the intercept too
모든 개체가 두 시점을 가진 균형 패널이고 모든 행의 작업 가중치는1이며 v_e=v_a=1이어서 θ=1−1/√3이다. 절편 열1의 준평균 제거 값과 그 제곱을 구하라. 변환 후 절편 열을1로 쓰면 원 절편 a의 매개변수가 어떻게 달라지는지, 기울기·적합 공간도 반드시 달라지는지 설명하라.
Every unit has two waves in a balanced panel, every working row weight is one, and both variance components are one, so θ=1−1/√3. Transform intercept column one and give its square. If the transformed intercept column is instead written as one, explain the change in the original intercept parameter a. Must slopes or the fitted space change?
풀이와 확인할 이유Solution and explanation
개체 평균도1이라 변환 열은1−θ=1/√3, 제곱은1/3이다. 원 절편 a의 변환 기여는 a/√3이다. 이 균형 패널에서는 새 절편 α*=a/√3로 바꾸면 열1을 써도 같은 변환 적합 공간과 기울기 해집합을 얻는다. 다만 α*를 원 a라고 읽으면 안 되며 a=√3α*로 복원해야 한다. 불균형 패널에서는 1−θ_i가 개체마다 다를 수 있어 하나의 공통 절편 재척도만으로 일반적으로 바꿀 수 없다.
The transformed column is 1−θ=1/√3, whose square is 1/3. Original intercept a contributes a/√3. In this balanced panel, reparameterizing α*=a/√3 allows an intercept column of one with the same transformed fit space and slope solution set. Do not interpret α* as original a: recover a=√3α*. In an unbalanced panel, 1−θ_i can vary by unit, so one common intercept rescaling generally cannot replace the correctly transformed column.
29. 기본 REDefault RE
균형 두 시점 표의 SxyW=3,SxyB=20,SxxW=3/2,SxxB=4,전체 평균 x=3/2,y=6이다. v_e=v_a=1일 때 절편 포함 RE 기울기와 절편을 구하라.
For a balanced two-wave table, within/between Sxy are three/twenty and Sxx are 3/2/four; overall means are x=3/2, y=6. Find the RE slope/intercept at both components one.
풀이와 확인할 이유Solution and explanation
평균 성분 가중인자는1/(1+2)=1/3이다. 기울기는(3+20/3)/(3/2+4/3)=58/17이다. 절편은6−(58/17)(3/2)=15/17이다. 선언 작업 분산으로 얻은 계수이지 실제 모형 검증이 아니다.
Between variation gets factor 1/3. The slope is (3+20/3)/(3/2+4/3)=58/17; intercept six minus this slope times 3/2 is 15/17. These are working-model coefficients, not validation of the actual model.
30. 더 큰 개체 분산Larger unit variance
앞 문제와 같은 SxyW=3,SxyB=20,SxxW=3/2,SxxB=4,평균 x=3/2,y=6을 사용한다. 두 시점·v_e=1,v_a=10의 RE 기울기·절편을 구하라.
Use SxyW=3, SxyB=twenty, SxxW=3/2, SxxB=4, means x=3/2, y=6. For two waves, v_e=1, v_a=10, find the RE slope/intercept.
풀이와 확인할 이유Solution and explanation
between 가중은1/21이다. 기울기는(3+20/21)/(3/2+4/21)=166/71,절편은177/71이다. v_a=1의58/17보다 within2에 가까우나 유한 값에서2와 같지는 않다.
The between factor is 1/21, giving slope 166/71 and intercept 177/71. It is closer to within two than 58/17, but not equal to two at this finite component value.
31. 분산 0 경계Zero-variance boundary
양의 v_e와 w 아래 v_a=0의 GLS 목적함수가 가중 pooled OLS와 같은 전체 계수 가족을 가짐을 증명하라.
For positive v_e and row weights, prove that GLS at v_a=0 has the same complete coefficient family as weighted pooled OLS.
풀이와 확인할 이유Solution and explanation
Ω=v_e diag(1/w)이므로 역은diag(w)/v_e이다. GLS 목적함수는 Σw r²/v_e이고 가중 OLS와 양의 공통 배수만 다르다. 따라서 유일·특이 어느 경우든 최소화 집합이 같다.
The inverse covariance is diag(w)/v_e. Thus the objective is weighted SSE divided by positive v_e. The entire minimizer set is unchanged, whether unique or singular.
32. 정부호 증명Prove positive definiteness
v_e>0,v_a≥0,w_t>0, Ω=v_e diag(1/w)+v_a11′이다. 모든 비영 q에 q′Ωq>0을 증명하라.
Let v_e>0, v_a≥0, w_t>0 and Ω=v_e diag(1/w)+v_a11′. Prove q′Ωq>0 for every nonzero q.
풀이와 확인할 이유Solution and explanation
q′Ωq=v_eΣq_t²/w_t+v_a(Σq_t)²이다. 첫 항은 비영 q에서 엄격 양수이고 둘째는 비음수이다. 따라서 Ω는 가역이다. v_e=0으로 바꾸면 이 엄격 양수 논거가 사라진다.
The quadratic is v_eΣq_t²/w_t+v_a(Σq_t)². Its first term is strictly positive for nonzero q; its second is nonnegative. Hence Ω is invertible. Setting v_e to zero removes this strict argument.
33. 분산의 동시 스케일Scale both components
양의 c로 v_e,v_a를 동시에 c배한다. 동일 설계의 GLS 계수 가족과 목적함수 최소값은 어떻게 바뀌는가?
Multiply both declared variance components by positive c. What happens to the GLS coefficient family and minimum criterion on the same design?
풀이와 확인할 이유Solution and explanation
Ω가 c배,역은1/c배가 된다. 목적함수 전체가1/c배여서 계수 가족은 불변이고 최소값만1/c배이다. θ를 정하는 비율 v_e/(v_e+v_aW)는 그대로이다.
Ω scales by c and its inverse by 1/c. Every criterion scales by 1/c, preserving minimizers and scaling the minimum accordingly. The ratio defining θ stays fixed.
34. 기본 평균 추가Default mean augmentation
여섯 행 A:(0,0),(1,2),B:(1,5),(2,7),C:(2,10),(3,12)에 y=α+βx+γ평균x_i를 적합한다. 정확 계수와 원 상수를 구하라.
Fit y=α+βx+γ mean x_i to A:(0, 0), (1, 2), B:(1, 5), (2, 7), C:(2, 10), (3, 12). Find exact coefficients and unit constants.
풀이와 확인할 이유Solution and explanation
within β=2,between β+γ=5여서 γ=3이다. α=−3/2이고 α+3평균x_i는0·3·6이다. 원 x의 계수와 평균 간 전체 기울기5를 혼동하지 않는다.
Within gives β=2; between gives β+γ=5, so γ=3 and α=−3/2. The implied unit constants are zero, three, six. The original-x coefficient differs from the total between slope five.
35. CRE 목적함수 분리Separate the CRE objective
양의 행 가중치, v_e>0,v_a≥0에서 y−α−z′β−평균z_i′γ를 선언 블록 GLS로 최소화한다. δ=β+γ로 두어 within β의 전체 해집합이 왜 같아지는지 증명하라.
Use positive row weights and components v_e>0, v_a≥0 to minimize y−α−z′β−mean z_i′γ by block GLS. Set δ=β+γ and prove correspondence of the complete within β family.
풀이와 확인할 이유Solution and explanation
잔차는 ỹ−z̃′β와 평균y_i−α−평균z_i′δ의 합이다. 개체 내 가중합0으로 교차항이 사라진다. 목적함수는 within SSE/v_e와 Σ_i[W_i/(v_e+v_aW_i)]평균잔차²의 합이다. β와(α,δ)를 독립 선택할 수 있어 β 최소화 집합은 within과 정확히 같다.
Split residuals into within ỹ−z̃′β and mean residual depending on α, δ. Zero weighted within sums remove cross terms. The criterion becomes within SSE/v_e plus mean-residual squares weighted W_i/(v_e+v_aW_i). β and (α, δ) are freely chosen, so the complete β minimizer set equals within.
36. CRE의 중복 열Duplicate CRE columns
시간불변 z_i를 원 열과 평균 열에 모두 넣었고 두 열은 (2,2,5,5)이다. 계수 b,c의 어떤 조합만 관측되는가? 영공간 방향 하나를 주라.
A constant-within-unit z is included both raw and as its mean, each column (2, 2, 5, 5). Which combination of b, c is observed? Give a nullspace direction.
풀이와 확인할 이유Solution and explanation
예측은 z_i(b+c)이므로 합 b+c만 들어간다. (b,c)에(t,−t)를 더해도 동일하므로 영공간 방향은(1,−1)이다. 특정 해의 한 계수가0이어도 그 효과가0으로 추정됐다고 할 수 없다.
Predictions depend only on b+c. Adding (t, −t) leaves them unchanged, so (1, −1) is a nullspace direction. A particular coefficient zero does not identify a zero effect.
37. 불균형 시간 평균Unbalanced time-indicator means
A는 before/after를 모두, B는 after만 관측된다. after 지시자의 개체 평균을 구하고 time effects를 포함한 CRE에 어떤 평균 열이 필요한지 말하라.
A has before/after and B only after. Compute unit means of the after indicator; which means are needed in CRE with time effects?
풀이와 확인할 이유Solution and explanation
A는1/2,B는1이다. 원 x뿐 아니라 포함 after 열의 이 평균도 추가해야 전체 포함 설계에 대한 within/mean 분리가 맞는다. 이 열을 빠뜨리고 일반적인 동등성을 주장하지 않는다.
A’s mean is one-half and B’s one. Augment the mean of the included after column as well as original x to preserve the decomposition for the full design. Omitting it does not justify a general equivalence claim.
38. 표본 일치와 전제Equality versus a population premise
같은 표본에서 CRE의 식별된 x 기울기와 within 기울기가 정확히 같았다. 이것만으로 E[a_i|X_i]가 평균x_i의 선형식이라고 증명되는가?
Identified CRE and within x slopes agree exactly on the same sample. Does this alone prove E[a_i|X_i] is linear in mean x_i?
풀이와 확인할 이유Solution and explanation
아니다. 모든 포함 평균 열을 추가한 작업 GLS의 대수적 분해가 같은 β를 만들 수 있다. 관측 일치에서 실제 잠재 개체 성분의 조건부 법칙을 역으로 증명할 수 없다.
No. Algebraic decomposition of the mean-augmented working GLS can force the same β. Equality does not reveal the true conditional law of latent unit components.
39. Hausman의 전제Premises for a Hausman comparison
FE와 RE 기울기 차이가 크고 두 적합에 강건 표준오차가 따로 있다. 임의로 두 공분산을 뺀 역행렬만으로 카이제곱 검정을 주장해도 되는가? 필요한 구별을 적어라.
FE/RE slopes differ substantially and each fit has robust standard errors. Can an inverse of their covariance difference automatically justify a chi-square test? Explain needed distinctions.
풀이와 확인할 이유Solution and explanation
안 된다. 같은 표본·표적·포함 열부터 맞추고 차이의 실제 공분산·공분산 간 교차항·랭크·귀무 기준분포 조건을 확인해야 한다. 각 추정량에 강건 표준오차가 있다는 사실은 임의 공분산 차이 공식의 타당성을 보장하지 않는다.
No. Align sample, target and columns, then justify the difference’s covariance, cross-covariance, rank and null law. Separate robust standard errors do not validate an arbitrary covariance-difference formula.
40. 절편 잡음의 분산Variance of intercept noise
xβ를 알고 한 개체에 독립 평균0·분산4인 오차가 T=2번 있다. â_i=평균(y−xβ)의 오차 분산을 구하고 다른 개체 수 N만 늘리면 변하는지 설명하라.
Suppose xβ is known and one unit has T=2 independent mean-zero errors of variance four. Find variance of its average-residual intercept error. Does increasing only N reduce it?
풀이와 확인할 이유Solution and explanation
오차는(ε₁+ε₂)/2라 분산은(4+4)/4=2이다. 다른 개체를 더해도 이 개체의 두 관측은 그대로이므로2가 줄지 않는다. 공통 기울기 추정과 개별 절편의 일관성을 구별해야 한다.
Variance is (four+four)/four=2. More other units leave this unit’s two errors unchanged, so the variance remains two. Distinguish common-slope estimation from consistency of individual intercepts.
41. 절편 가족 복원Recover intercept families
어떤 within 해집합이 β=(3−t,t),t∈R이다. 한 개체의 평균 y=10,평균 x=(2,5)일 때 대응하는 전체 개체 절편을 구하라.
A within family is β=(3−t, t), t∈R. For a unit with mean y=10 and mean x=(two, five), recover its entire intercept family.
풀이와 확인할 이유Solution and explanation
a=10−[2(3−t)+5t]=4−3t이다. β만 움직이고 a를4로 고정하면 일반적으로 원행 적합값이 달라진다. 전체 가족 복원에서는 두 변화가 함께 움직여야 한다.
The intercept is ten minus [two(3−t)+five t], giving 4−3t. Moving β while fixing a at four generally changes fits. Corresponding intercept movement is part of the complete family.
42. 개체별 선형 조합Unit-specific fitted combinations
양의 가중치의 within 최소화 해 차이 v가 X̃v=0을 만족한다. 대응 절편 차이 −평균x_i′v를 써서 관측 원행 적합값이 불변임을 증명하라.
Suppose minimizer difference v satisfies X̃v=0 under positive weights. Use intercept differences −mean x_i′v to prove invariance of original observed fitted values.
풀이와 확인할 이유Solution and explanation
원행 예측 차이는 −평균x_i′v+x_it′v=(x_it−평균x_i)′v이다. 이는 X̃v의 해당 행이므로0이다. 개체 평균 x와 원 x가 함께 쓰이는 점이 중요하다.
The prediction difference is (x_it−mean x_i)′v, exactly the corresponding row of X̃v, hence zero. Both unit-mean and original-x contributions are required.
43. 매개변수 공간의 재표현Reparameterize the coefficient space
CRE 목적함수에서 β,γ는 각각 R^k 전체를 움직인다. δ=β+γ로 바꿀 때 β와 δ를 독립적으로 고를 수 있음을 보이고, γ=0을 강제하면 왜 다른지 말하라.
In CRE, β and γ each range freely over R^k. Show that β and δ=β+γ can be chosen independently. Why is γ=0 different?
풀이와 확인할 이유Solution and explanation
원하는 β,δ마다 γ=δ−β를 택하면 되므로 일대일 재매개화이다. γ=0을 강제하면 δ=β가 되어 within과 mean 목적함수가 같은 계수에 묶인다. 이것이 평균 추가 없는 RE에서 두 정보가 섞이는 이유다.
For any β, δ choose γ=δ−β, giving a bijection. Constraining γ to zero forces δ=β and ties within and mean objectives to the same coefficient, explaining their mixture in unaugmented RE.
44. 관측만으로 인과를 고르지 못합니다Observation alone does not choose a causal model
모든 관측 행이 y=a_i+2x이고 오차 전제는 주어지지 않았다. β=2,ε=0인 구조와 β=0,ε=2x인 구조가 같은 관측을 만드는지 확인하고 의미를 설명하라.
Observed rows satisfy y=a_i+2x, with no error restrictions supplied. Compare structures β=2, ε=0 and β=0, ε=2x. Do they agree observationally?
풀이와 확인할 이유Solution and explanation
둘 다 같은 y를 만든다. 둘째 오차는 x와 관련되므로 보통 외생성 전제를 위반하겠지만 그 전제는 질문에서 주어지지 않았다. 따라서 정확 within2만으로 어느 구조가 인과적으로 타당한지 고를 수 없다.
Both produce identical observed y. The second error generally violates exogeneity, but no such restriction was supplied. An exact within slope two alone cannot select the causal structure.
45. 선택된 가용 집합A selected available frame
한 개체가 두 결과 y=(−1,1)를 가졌으나 y>0인 행만 남긴다. 원 평균과 선택 평균, 남은 행의 within 편차를 구하라.
A unit has outcomes (−one, one), but retain only positive outcomes. Find original and selected means and the remaining within deviation.
풀이와 확인할 이유Solution and explanation
원 평균은0,선택 평균은1이다. 남은 한 행의 편차는0이다. 선택 뒤 평균0 오차 조건이 자동 유지된다고 할 수 없으며, 한 행이 된 뒤 기울기 정보도 사라질 수 있다.
The original mean is zero and selected mean one; the remaining deviation is zero. Mean-zero error restrictions need not survive outcome-based selection, and slope information may disappear when only one entry remains.
46. 시점 순서와 범주Time order and categories
within에 공통 시점 지시자만 쓰며 가중치·행 대응을 보존한다. 시점 이름을 일대일로 바꾸면 적합 공간이 변하는가? 이를 시간 간격이나 정확 면담 일자가 필요 없다는 주장과 구별하라.
Use only common time indicators in within fitting and preserve row correspondence/weights. Does a one-to-one relabeling change the fit space? Distinguish this from claims about actual time gaps or interview dates.
풀이와 확인할 이유Solution and explanation
지시자 열을 재명명·기준 재표현한 것이므로 포함 공간과 관측 적합값은 같다. 그러나 시간차·성장률·노출 일수·동적 모형을 해석할 때는 실제 시간 정보가 중요하다. 범주 적합의 불변성이 정확 일자를 만들어도 된다는 뜻은 아니다.
Indicator relabeling and reference recoding preserve the span and observed fits. Actual gaps matter for growth, exposure and dynamics. Categorical-fit invariance does not license invented dates.
47. 부호가 다른 비교Comparisons with opposite signs
가중치1의 두 개체 A:(x,y)=(0,10),(1,11),B:(10,0),(11,1)이다. within과 pooled 절편 포함 기울기를 구하라.
Two equally weighted units have A:(0, 10), (1, 11), B:(10, 0), (11, 1). Compute within and pooled slopes with intercepts.
풀이와 확인할 이유Solution and explanation
각 개체의 변화 기울기는1이므로 within은1이다. 전체 평균은 x=y=11/2이다. within 곱·제곱합은1·1,between은−100·100이어서 pooled는−99/101이다. 부호 차이는 출발점과 변화의 다른 비교를 반영한다.
Within equals one. Overall means are both 11/2. Within cross-product/squared variation are one/one; between components are −100/100. Pooled is therefore −99/101. Opposite signs reflect different baseline versus change comparisons.
48. 독립 행으로 잘못 세기Miscounting independent rows
서로 독립인 a_A,a_B가 평균0·분산1이고 각 개체의 두 y가 모두 자기 a_i이다. 네 행 전체 평균의 실제 분산과 행 독립으로 잘못 계산한 분산을 구하라.
Independent unit effects a_A, a_B each have mean zero and variance one. Both outcomes within a unit equal its a_i. Compare the actual variance of the four-row mean with a mistaken independent-row calculation.
풀이와 확인할 이유Solution and explanation
전체 평균은(a_A+a_B)/2라 분산은1/2이다. 네 행을 독립 분산1로 잘못 세면1/4이다. 같은 개체의 완전 상관을 무시하면 불확실성을 절반으로 낮춰 계산한다.
The mean is (a_A+a_B)/two, giving variance one-half. Treating all four rows as independent variance-one observations gives one-quarter, halving actual uncertainty by ignoring within-unit dependence.
49. 국가 행 수와 단위Country counts and units
실제 선택은16국×2020–2024 다섯 해,모두 가용이며 y는 기간 기대수명 연수,x는 GDP/인÷10000 고정2015USD이다. 행·개체 수와 기울기 단위를 쓰고 균형이라는 사실이 인과를 보장하는지 설명하라.
Actual selection has sixteen countries at five complete years 2020–2024. y is period-life-expectancy years and x GDP/person divided by 10,000 constant-2015 USD. State counts, slope units and whether balance ensures causality.
풀이와 확인할 이유Solution and explanation
80행·16개체이다. 기울기는 10,000 고정2015USD/인당 기대수명 연수이다. 균형은 같은 시점 구성을 뜻할 뿐 시변 교란·외생성·독립·인과를 보장하지 않는다.
Eighty entries and sixteen units. Slope units are life-expectancy years per 10,000 constant-2015 USD/person. Balance describes timing coverage, not exogeneity, independence or causal validity.
50. 개인 가용 파동 계산Count available personal waves
원3,613명이 세 시점이고 공통 가용8,186행·3,270명 중 세 시점 완전한 사람이2,105명이다. 가용 한 시점·두 시점 사람 수와 전부 결측 사람 수를 구하라.
There are 3,613 original people and three waves. Common completeness gives 8,186 entries from 3,270 people, including 2,105 with three waves. Find one-wave, two-wave and zero-wave counts.
풀이와 확인할 이유Solution and explanation
n₁+n₂=3270−2105=1165,n₁+2n₂=8186−6315=1871이다. 빼면 n₂=706,n₁=459이다. 완전 행이 없는 사람은3613−3270=343이다. 459명은 원래 중요하지 않다는 뜻이 아니라 현재 unit-only within 정보가0이라는 뜻이다.
The remaining counts satisfy n₁+n₂=1165 and n₁+2n₂=1871, so n₂=706 and n₁=459. Zero-wave count is 343. Single-wave units have no unit-only within slope information, not no substantive importance.
51. 명목과 실질Nominal versus real
명목 시급이10에서12,해당 가격지수가1에서3/2로 변했다. 실질 시급의 두 값·증가율을 구하고 단순 시점 지시자가 이 나눗셈을 수행하는지 설명하라.
Nominal wages rise from ten to twelve while a price index rises from one to 3/2. Find real wages and growth; does a time indicator perform this division?
풀이와 확인할 이유Solution and explanation
실질 값은10과12/(3/2)=8이다. 성장률은8/10−1=−1/5,즉−20%이다. 명목+20%와 다르며 공통 시점 절편을 추가하는 계산은 실제 가격지수로 각 값을 나누는 변환이 아니다.
Real wages are ten and eight, giving −20% growth despite nominal +20%. A common time intercept is not numerical division of each wage by its price index.
52. 고정 교육의 해석Interpret constant schooling
실제 개인 패널은 원1976교육을 세 시점에 반복한다. within 결과에서 그 계수가 미식별이면 "교육 효과가0"이라는 문장을 왜 고쳐야 하는가?
Original 1976 schooling is repeated at three waves in the actual personal panel. Why must an unidentified within coefficient not be reported as a zero schooling effect?
풀이와 확인할 이유Solution and explanation
그 열은 자기 평균을 빼면0이다. 자유 개체 절편과 상쇄되는 계수 방향이 남아 별도 계수의 전체 집합이 실수 전체일 수 있다. "현재 포함 공간에서 교육 계수를 고유 성분과 분리하지 못한다"로 좁혀야 한다.
Demeaning makes the column zero and leaves coefficient directions offset by free unit intercepts. Its full set may be all reals. Report inability to separate schooling from unit components in this space.
53. 점포 분모Store denominators
원410점포 두 파동820행 중 공통 가용760행·409점포이고 완전 두 파동 점포351개이다. 한 파동·영 파동 점포 수를 구하고 코드407 두 원위치42·168의 처리도 쓰라.
Among 410 original stores and 820 entries, there are 760 complete entries from 409 stores, including 351 complete pairs. Find single-/zero-wave counts and treatment of code 407 positions 42/168.
풀이와 확인할 이유Solution and explanation
한 파동은409−351=58개이며702+58=760행이다. 영 파동은1개이다. 코드407의 두 원위치는 별도 개체로 남긴다. FTE는 사람 수와 다르고, 두 파동 완전 표본으로만 제한하면 현재760행과 다른 목표가 된다.
There are 58 single-wave and one zero-wave store; 702+58=760. Retain both code 407 positions as distinct units. FTE differs from headcount; restricting to complete pairs changes the current entry-frame target.
54. 구성 변화의 반례A composition-change counterexample
before에 A:y=0만,after에 A:y=0,B:y=10이 가용하다. 각 파동 평균 차이와 같은 개체 A의 변화를 구하라.
Before has only A:y=0; after has A:y=0, B:y=10. Compare the difference in wave means with A’s own change.
풀이와 확인할 이유Solution and explanation
파동 평균은0과5라 차이는5이다. A의 실제 변화는0이다. 전체 가용 파동 평균의 차이에는 구성 변화가 섞이므로 같은 사람들의 평균 변화라고 부를 수 없다.
Wave means zero/five differ by five, while A’s own change is zero. Available-entry wave means mix composition changes and cannot automatically represent changes for identical units.
55. 분수와 화면 소수Fractions and displayed decimals
정확한 (1−θ)²=1/3이고 화면은0.333333이다. 이 소수와 정확 근호 θ=1−√(1/3)을 어떻게 표시해야 하는가?
Exact (1−θ)² is 1/3 while the screen shows 0.333333. How should this decimal and θ=1−√(1/3) be described?
풀이와 확인할 이유Solution and explanation
1/3과 근호 식은 정확 표현이다. 유한 소수0.333333은1/3보다 작고 근사라고 표시해야 한다. θ의 소수 근사를 제곱해서 원 정확 비율을 대체하면 다른 수를 계산한다.
The fraction and radical are exact expressions. The finite decimal is below 1/3 and must be labeled approximate. Squaring a rounded θ cannot replace the original exact ratio.
56. 미정의 지표 수Count undefined metrics
재현 결과204지표 중16개는 존재하지 않는 열 또는 미식별 좌표라 null이다. 정의된 지표 수를 구하고 null을0으로 채우면 어떤 주장을 만들어 내는지 설명하라.
Of 204 reproduction metrics, 16 are null because a column is absent or a coordinate unidentified. Count defined metrics; what does filling null with zero falsely assert?
풀이와 확인할 이유Solution and explanation
정의된 것은188개이다. null을0으로 바꾸면 없는 열의 계수를 정의하거나, 임의 계수 가족을 식별된0으로 축소한다. 원문 분수·미정의 이유·가용 집합을 함께 남겨야 한다.
There are 188 defined metrics. Zero-filling either invents a coefficient for an absent column or collapses an unidentified family to an identified zero. Preserve reasons, exact fractions and the available frame.
57. GLS 목적함수의 두 성분Two components of the GLS criterion
양의 w와 v_e>0,v_a≥0을 두고 한 개체 잔차 r_t=δ_t+m,Σwδ=0이다. Ω=v_e diag(1/w)+v_a11′에서 r′Ω⁻¹r를 δ와m으로 나타내라.
For positive w and components v_e>0, v_a≥0, write one unit’s residual r_t=δ_t+m with Σwδ=0. Express r′Ω⁻¹r.
풀이와 확인할 이유Solution and explanation
가중 제곱합은Σwδ²+Wm²이고 가중 잔차합은Wm이다. 블록 역식에 대입하면Σwδ²/v_e+[W/v_e−v_aW²/(v_e(v_e+v_aW))]m²이다. 괄호는W/(v_e+v_aW)이므로 두 성분 분해가 완성된다.
Weighted squares equal Σwδ²+Wm² and the weighted sum is Wm. Substituting the inverse formula leaves within term Σwδ²/v_e and mean coefficient W/(v_e+v_aW) times m².
58. 잔차 자유도와 분포Residual degrees and a reference law
가용 n=8,관측 개체3개,개체 평균 제거 뒤 추가 포함 설계의 랭크2이다. 원 전체 설계 랭크와 잔차 공간 차원을 구하라. 이것만으로 정확 t분포가 생기는가?
There are n=8 entries, three observed units and rank two for the additional demeaned design. Find full rank and residual-space dimension. Does this alone imply an exact t law?
풀이와 확인할 이유Solution and explanation
개체 지시자 공간 차원3과 그에 직교한 추가 공간2가 합쳐 전체 랭크5이다. 잔차 차원은8−5=3이다. 정확 t법칙에는 정규·분산·검정 대상 등의 추가 조건이 필요하며 차원 계산만으로 생기지 않는다.
Full rank is three+two=5 and residual dimension three. Exact t inference additionally needs suitable normality, covariance and target conditions; dimension alone supplies no reference law.
59. 조건부 분산 유도Derive conditional variance
가중치1,단위 편차 행렬 M은 대칭·멱등이고 MX=X̃,편차 설계 열 전랭크이다. E[ε|X,a]=0,Var(ε|X,a)=σ²I 아래 within β̂의 조건부 분산을 구하라.
With equal weights, unit-demeaning matrix M is symmetric/idempotent, MX=X̃ and X̃ has full column rank. Under mean-zero errors and Var(ε|X, a)=σ²I, derive the within estimator covariance.
풀이와 확인할 이유Solution and explanation
G=X̃′X̃라 두면 β̂−β=G⁻¹X̃′Mε이다. MX̃=X̃와M²=M을 써서 분산은σ²G⁻¹X̃′MX̃G⁻¹=σ²G⁻¹이다. 개체 내 상관·이분산이 있으면 이 단순식의 전제가 바뀐다.
Let G=X̃′X̃. Estimation error is G⁻¹X̃′Mε. Symmetry/idempotence and MX̃=X̃ give covariance σ²G⁻¹. Heteroskedasticity or within-unit dependence changes these premises.
60. 여섯 행에서 보고서까지From six rows to a report
가정 여섯 행 A:(0,0),(1,2),B:(1,5),(2,7),C:(2,10),(3,12)에 대해 within·between·pooled·선언 RE(v_e=v_a=1)·CRE 기울기와 각 해석 범위를 짧게 보고하라. CRE는 원x와개체평균x·절편을 모두 포함한다.
For A:(0, 0), (1, 2), B:(1, 5), (2, 7), C:(2, 10), (3, 12), report within, between, pooled, declared RE (both components one) and CRE slopes and their scope. CRE includes original x, unit mean x and intercept.
풀이와 확인할 이유Solution and explanation
within2,between5,pooled46/11,RE58/17이다. CRE의 원x 계수2,평균x 계수3,절편−3/2이며 개체 내와 평균 간 정보를 분리한다. 모두 가정된 표의 계산이다. 실제 효과를 말하려면 관측 단위·분모·선택·오차 경로·평균/공분산·표적 조건을 추가해야 한다.
Within is two, between five, pooled 46/11 and RE 58/17. CRE has original-x coefficient two, mean-x coefficient three and intercept−3/2, separating within and mean information. These are assumed-table calculations. Actual effects require explicit units, denominators, selection, error paths, mean/covariance restrictions and targets.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.