METR-05 · ECONOMETRICS

이분산·의존성·강건 및 군집 추론Heteroskedasticity, dependence, robust and clustered inference

여섯 가정 행의 점수에서 HC·군집·HAC와 실제 추론 조건까지From six assumed score rows to HC, cluster, HAC and actual inference premises

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

기초Foundations

1. 기울기와 그 불확실성을 따로 묻는다1. Ask separately about a slope and its uncertainty

같은 관측 표를 같은 직선에 맞추면 최소제곱 기울기는 하나로 정해질 수 있습니다. 그런데 ‘이 기울기가 다른 표에서는 얼마나 흔들릴까?’라는 질문은 표가 달라지는 법칙까지 필요로 합니다. 어떤 행의 오차가 더 큰지, 여러 행이 같은 충격을 받는지에 따라 답이 달라집니다.

이 장에서는 먼저 여섯 가정 행을 손으로 계산합니다. 이어 같은 적합을 유지하면서 공분산을 계산하는 여러 규칙을 비교합니다. 이분산에 대한 HC, 집단 안의 의존을 허용하는 군집 계산, 시간을 따라 움직이는 점수의 HAC를 차례로 전개합니다.

A fixed table and fitting rule can identify one least-squares slope. Asking how that slope would vary over other tables also requires a data-generating law. Unequal error variances and shocks shared across rows can change the answer.

Begin with six wholly assumed rows. Then keep their fit unchanged while comparing covariance recipes: HC for heteroskedasticity, cluster aggregation for within-group dependence, and HAC for serially related scores.

기초Foundations

2. 여섯 가정 행의 적합과 잔차를 계산한다2. Fit six assumed rows and calculate their residuals

아래 표는 전부 가정한 수치입니다. X는 설명 수량, Y는 결과 수량이며 상수 있는 직선 a+bX를 적합합니다. 세 군집 이름과 여섯 시간 지수도 계산을 설명하기 위해 붙였으며 실제 조사 분류나 날짜가 아닙니다.

전부 가정 · 같은 적합에 여러 공분산 규칙을 적용
시간군집XY적합잔차
0A-20-11
1A-111/21/2
2B002-2
3B0220
4C127/2-3/2
5C2752

평균은 X̄=0, Ȳ=2이고 ΣX²=10, ΣXY=15입니다. 따라서 â=2, b̂=3/2입니다. 잔차 제곱합은 23/2, 표 안의 MSE는 (23/2)/6=23/12입니다. 소프트웨어보다 먼저 이 네 숫자를 손으로 확인합니다.

Every number below is assumed. Fit an intercept line a+bX. Cluster names and integer times are also declared teaching inputs, not actual survey categories or dates.

Wholly assumed · several covariance recipes for one fit
TimeClusterXYFitResidual
0A-20-11
1A-111/21/2
2B002-2
3B0220
4C127/2-3/2
5C2752

Here X̄=0, Ȳ=2, ΣX²=10 and ΣXY=15, so â=2, b̂=3/2. Residual SSE is 23/2 and in-table MSE is 23/12. Verify these numbers by hand before using software.

기초Foundations

3. 참 오차와 적합 후 잔차를 바꾸어 부르지 않는다3. Keep target-model errors distinct from fitted residuals

목표 모형이 Yᵢ=aᵢᵀβ+uᵢ라면 uᵢ는 그 목표 β에서 정의한 오차입니다. 반면 êᵢ=Yᵢ−aᵢᵀβ̂는 같은 표를 적합한 뒤 만든 잔차입니다. 상수 포함 OLS가 Σêᵢ=0을 만든다고 미지 법칙의 E[uᵢ|A]=0이 검증되는 것은 아닙니다.

HC·군집·HAC는 잔차로부터 공분산을 추정하는 규칙입니다. 이 추정값이 적절한 극한의 공분산 척도에 가까워지는지는 표집·의존·모멘트·설계와 표적에 대한 별도 조건입니다. 한 표에서 대칭 행렬이 계산되었다는 사실만으로 유효한 신뢰구간이 생기지는 않습니다.

앞 장의 V/n도 정규근사의 척도라는 뜻을 유지합니다. 분포수렴만으로 실제 유한 표본 분산의 존재·수렴을 단정하지 않으며, 필요하면 추가 모멘트 제어를 확인합니다.

In target model Yᵢ=aᵢᵀβ+uᵢ, the error uᵢ is defined at target β. A fitted residual êᵢ=Yᵢ−aᵢᵀβ̂ is constructed after fitting this table. The intercept normal equation does not verify the unknown restriction E[uᵢ|A]=0.

HC, cluster and HAC recipes estimate covariance using residuals. Their consistency for an appropriate limiting covariance scale needs separate sampling, dependence, moment, design and target conditions. Producing a symmetric matrix alone does not validate a confidence interval.

Keep V/n as a normal-approximation scale. Distributional convergence by itself does not ensure existence or convergence of actual finite-sample variances; additional moment control can be needed.

기초Foundations

4. 분산과 공분산에도 단위가 있다4. Variances and covariances have units

Y가 결과 점수, X가 시간이라면 절편의 단위는 점수, 기울기의 단위는 점수/시간입니다. 절편 분산의 단위는 점수², 기울기 분산은 점수²/시간²이고 두 계수의 공분산은 점수²/시간입니다. 단위를 붙이면 행렬에서 어떤 항목을 비교하는지 명확해집니다.

같은 Y를 100배 단위로 표현하면 계수와 잔차는 100배, 계수 공분산은 10,000배, 표준오차는 100배입니다. 표준화 통계량은 귀무값도 같은 방식으로 바꾸었을 때에만 유지됩니다. 금액 센트→달러처럼 실제 단위 변환과 모형의 분산 가정 변경을 구별합니다.

If Y is outcome points and X hours, the intercept has point units and the slope points/hour. Their variances have units points² and points²/hour²; their covariance has units points²/hour. Units clarify which matrix entries can be compared.

Multiplying outcome units by 100 multiplies coefficients/residuals by 100, covariance by 10,000 and standard errors by 100. A standardized statistic is preserved only when its null value is transformed too. Separate unit conversion from changing an error-variance assumption.

기초Foundations

5. 같은 평균 모형과 서로 다른 오차 분산5. One mean model with unequal error variances

고정 설계 A에서 조건부 오차 평균은 0이지만 각 행의 조건부 분산은 다를 수 있습니다. 예를 들어 세 X값 (−1, 0, 1)에 대해 오차 분산을 (100, 1, 1)로 가정할 수 있습니다. 이는 실제 표에서 발견한 세 분산이 아니라 알려져 있다고 선언한 가정 입력입니다.

오차 공분산 행렬이 대각이라는 조건은 서로 다른 행의 공분산이 0이라는 뜻입니다. 일반적으로 독립과 같지 않습니다. 분산 0인 행에서는 상관계수 자체가 미정의일 수 있으므로 ‘공분산 0’이라는 표현을 사용합니다.

분산이 다르다는 이유만으로 모든 OLS 평균 성질이 사라지지는 않습니다. 열 독립 설계와 적절한 평균 조건은 계수 평균을, 오차 공분산은 계수 변동을 따로 결정합니다. 잘못된 평균 모형을 분산식만 바꾸어 고칠 수는 없습니다.

At fixed design A, errors can have conditional mean zero while their variances differ. For X=(−1, 0, 1), we can assume variances (100, 1, 1). These are declared known-model inputs, not three variances discovered from an actual table.

A diagonal error-covariance matrix gives zero cross-row covariances, not generally independence. Correlations can be undefined for zero-variance rows, so use covariance language.

Unequal variances do not automatically destroy every OLS expectation property. Rank and mean restrictions determine centering; error covariance separately determines variation. Changing only a variance formula does not repair a wrong mean specification.

기초Foundations

6. 행 사이 공분산을 버리면 어떤 항을 잃는가6. Identify the terms lost by dropping cross-row covariance

기울기 추정오차가 Σlᵢuᵢ라면 분산은 개별 제곱항과 서로 다른 행의 교차항을 모두 포함합니다. 대각 성분만 사용하는 계산은 교차 공분산을 0이라고 놓는 별도 모형입니다.

Var⁡ ⁣(∑iliui)=∑ili2Ωii+2∑i<jliljΩij\begin{gathered}\operatorname{Var}\!\left(\sum_i l_i u_i\right)\\=\sum_i l_i^2\Omega_{ii}\\+2\sum_{i<j}l_i l_j\Omega_{ij}\end{gathered}

양의 오차 공분산이 있다고 모든 계수의 분산이 반드시 증가하는 것은 아닙니다. lᵢlⱼ의 부호도 함께 작용합니다. 공통 충격이 절편 방향인지, 기울기 방향인지에 따라 결과가 달라집니다. ‘강건 분산은 항상 보통 분산보다 크다’는 규칙도 없습니다.

If a slope error is Σlᵢuᵢ, its variance includes both diagonal squared terms and cross-row terms. Keeping only the diagonal imposes a separate zero-cross-covariance working model.

Var⁡ ⁣(∑iliui)=∑ili2Ωii+2∑i<jliljΩij\begin{gathered}\operatorname{Var}\!\left(\sum_i l_i u_i\right)\\=\sum_i l_i^2\Omega_{ii}\\+2\sum_{i<j}l_i l_j\Omega_{ij}\end{gathered}

Positive error covariances do not necessarily increase every coefficient variance; the signs of lᵢlⱼ matter. A shared intercept-direction shock and a slope-direction shock have different effects. Nor is a robust variance estimate always larger than a conventional one.

학부 연결 · 선택Undergraduate bridge · optional

7. 양의 준정부호 공분산을 구성하고 전달한다7. Construct and propagate a positive-semidefinite covariance

개별 독립 성분의 분산 vᵢ와 공통 충격들의 분산 τₕ를 모두 비음수로 놓고 노출 벡터 gₕ를 선언합니다. 그러면 Ω=diag(vᵢ)+Στₕgₕgₕᵀ는 양의 준정부호입니다. 임의 c에 대한 이차형이 Σvᵢcᵢ²+Στₕ(cᵀgₕ)²로 비음수이기 때문입니다.

L=(ATA)−1ATCov⁡(β^∣A)=LΩLT\begin{gathered}L=(A^{\mathsf T}A)^{-1}A^{\mathsf T}\\\operatorname{Cov}(\widehat\beta\mid A)=L\Omega L^{\mathsf T}\end{gathered}

설계 A의 열이 독립이라고 가정하여 위 L을 정의합니다. 실습은 이 알려진 가정 공분산의 정확 전달과, 교차항을 버린 대각 비교, 평균 대각 분산을 모든 행에 넣은 동일분산 비교를 나란히 계산합니다. 아직 잔차로 Ω를 추정한 것이 아닙니다. 다음 묶음에서 알려진 Ω를 모르는 문제로 넘어갑니다.

Declare nonnegative individual variances vᵢ, nonnegative shared-shock variances τₕ and loading vectors gₕ. Then Ω=diag(vᵢ)+Στₕgₕgₕᵀ is positive semidefinite: its quadratic form is a sum of nonnegative squares.

L=(ATA)−1ATCov⁡(β^∣A)=LΩLT\begin{gathered}L=(A^{\mathsf T}A)^{-1}A^{\mathsf T}\\\operatorname{Cov}(\widehat\beta\mid A)=L\Omega L^{\mathsf T}\end{gathered}

Assume that A has full column rank to define L above. The lab compares exact propagation of this assumed known Ω with a diagonal-only approximation and a working common variance equal to the average diagonal. None is yet an estimate of Ω from residuals. The next block addresses unknown covariance.

기초Foundations

8. 실습 A · 알려진 가정 공분산의 역할8. Lab A · The role of an assumed known covariance

X=(−1, 0, 1), 개별 분산 (100, 1, 1)에서 공통 충격이 없으면 OLS 기울기 분산은 101/4입니다. 개별 분산을 모두 1로 두면 1/2입니다. 같은 설계에서 오차 모형만 바꾼 계산입니다.

공통 노출을 X로 두고 충격 분산을 늘린 경우와, 모든 노출을 1로 둔 경우를 비교하세요. 세 가지 공분산 전달값과 각 행·열의 단위를 읽고 어느 항을 무시한 비교인지 설명합니다. 이 화면의 Ω를 실제 국가·사람·점포에서 검증한 것으로 해석하지 않습니다.

At X=(−1, 0, 1), individual variances (100, 1, 1) with no shared shock give OLS slope variance 101/4. Unit individual variances give 1/2. The design is unchanged; the assumed error model differs.

Compare a shared loading vector X against all-one loadings. Read covariance units and identify the terms omitted by each comparison. This Ω is not verified for actual countries, people or establishments.

학부 연결 · 선택Undergraduate bridge · optional

9. 샌드위치의 양쪽과 가운데를 구별한다9. Separate the two sides and the middle of a sandwich

상수 포함 설계의 한 행을 aᵢᵀ, Gram 행렬을 G=Σaᵢaᵢᵀ라고 둡니다. A의 열이 독립이라고 가정합니다. 계수 공분산 계산에서 양쪽 G⁻¹은 설계의 방향과 척도를 전달하고, 가운데 M은 결과 오차의 변동을 설명하는 곱합입니다. ‘샌드위치’라는 이름은 이 행렬곱 모양을 가리킵니다.

G=ATAC^=G−1M^G−1s^i=aie^i\begin{gathered}G=A^{\mathsf T}A\\\widehat C=G^{-1}\widehat M G^{-1}\\\widehat s_i=a_i\widehat e_i\end{gathered}

정규화 표기를 쓰려면 Qₙ=G/n, Ω̂ₙ=M̂/n으로 놓아 Ĉ=(1/n)Qₙ⁻¹Ω̂ₙQₙ⁻¹입니다. n을 이미 포함한 합과 평균을 섞어 n을 두 번 나누지 않습니다. 이 장의 API는 G와 합 M을 사용하여 원 계수 척도의 공분산 추정식을 반환합니다.

Write an intercept-design row as aᵢᵀ and G=Σaᵢaᵢᵀ. Assume that A has full column rank. The two G⁻¹ sides transmit design direction and scale; the middle M collects variability-related products. The sandwich name describes this matrix arrangement.

G=ATAC^=G−1M^G−1s^i=aie^i\begin{gathered}G=A^{\mathsf T}A\\\widehat C=G^{-1}\widehat M G^{-1}\\\widehat s_i=a_i\widehat e_i\end{gathered}

Normalized notation uses Qₙ=G/n, Ω̂ₙ=M̂/n and Ĉ=(1/n)Qₙ⁻¹Ω̂ₙQₙ⁻¹. Do not divide by n twice by mixing sums and averages. The API uses G and summed M to return a covariance recipe on the original coefficient scale.

기초Foundations

10. 여섯 잔차를 두 성분 점수로 바꾼다10. Turn six residuals into two-component scores

앞 가정 표의 설계행은 (1, Xᵢ)이고 잔차는 (1, 1/2, −2, 0, −3/2, 2)입니다. 각 잔차에 설계행을 곱해 점수 벡터를 만듭니다. 점수 합은 정상방정식에 의해 0이지만 개별 점수는 0이 아닙니다.

가정 여섯 행의 적합 후 점수
행절편 점수기울기 점수
11-2
21/2-1/2
3-20
400
5-3/2-3/2
624

점수의 두 성분을 각각 더하면 0입니다. 곱합 행렬에서는 절편 대각이 23/2, 기울기 대각이 45/2, 비대각이 8입니다. 합이 0이라는 사실과 제곱·교차 곱합이 0이라는 주장을 혼동하지 않습니다.

The assumed intercept-design rows are (1, Xᵢ), with residuals (1, 1/2, −2, 0, −3/2, 2). Multiply each residual by its design row. Score sums vanish by normal equations, while individual scores need not vanish.

Fitted scores in the six assumed rows
RowIntercept scoreSlope score
11-2
21/2-1/2
3-20
400
5-3/2-3/2
624

The two score-component sums are zero. Their product matrix instead has diagonal 23/2, 45/2 and off-diagonal eight. A zero sum does not imply a zero sum of squares or cross-products.

기초Foundations

11. HC0 행렬을 정확 분수로 계산한다11. Calculate HC0 with exact fractions

HC0는 서로 다른 행 사이의 점수 공분산을 직접 넣지 않고, 각 행의 점수 외적을 합합니다. 적합 계수는 원래 OLS 그대로이고 공분산 계산만 이 규칙으로 바꿉니다.

M^HC0=∑iaiaiTe^i2C^HC0=G−1M^HC0G−1\begin{gathered}\widehat M_{HC0}=\sum_i a_i a_i^{\mathsf T}\widehat e_i^2\\\widehat C_{HC0}=G^{-1}\widehat M_{HC0}G^{-1}\end{gathered}

기본 여섯 행은 G=diag(6, 10)입니다. 따라서 HC0의 절편 분산은 (23/2)/36=23/72, 기울기 분산은 (45/2)/100=9/40, 공분산은 8/60=2/15입니다. 이들은 이 표에서 계산한 공분산 추정식의 값이며 알려진 참 오차 공분산이 아닙니다.

점수 외적의 합은 양의 준정부호여서 Ĉ도 양의 준정부호입니다. 그러나 이 대수 성질만으로 어떤 모집단 표집에서 유효한 표준오차인지 결론 낼 수는 없습니다.

HC0 sums individual score outer products without directly adding cross-row score covariances. It keeps OLS coefficients unchanged and changes the covariance recipe.

M^HC0=∑iaiaiTe^i2C^HC0=G−1M^HC0G−1\begin{gathered}\widehat M_{HC0}=\sum_i a_i a_i^{\mathsf T}\widehat e_i^2\\\widehat C_{HC0}=G^{-1}\widehat M_{HC0}G^{-1}\end{gathered}

Here G=diag(6, 10), giving variances 23/72 and 9/40, and cross-covariance 2/15. These are values of an estimated-covariance recipe on this table, not known true error covariances.

Outer-product sums and their sandwiches are positive semidefinite. This algebraic property alone does not establish valid sampling uncertainty for an actual population.

기초Foundations

12. HC1의 보정 분모와 보정의 한계를 구별한다12. Identify HC1’s correction and its limits

열 독립인 설계에서 n은 완전행 수, p는 상수를 포함한 계수 수입니다. HC1은 n> p일 때 HC0에 n/(n−p)를 곱합니다. 기본 여섯 행은 n=6, p=2여서 보정은 3/2입니다.

그 결과 HC1의 절편 분산은 23/48, 기울기 분산은 27/80입니다. 같은 표의 보통 동일분산 작업 공식은 s²=SSE/(n−p)=23/8에 G⁻¹을 곱하여 절편 분산 23/48, 기울기 분산 23/80을 줍니다. 이 예에서 절편 항목이 같다고 두 행렬 전체가 같은 것은 아닙니다.

자유도 보정이 모든 이분산 모형에서 정확한 유한 표본 불편성을 만든다는 뜻은 아닙니다. n=p이면 분모가 0이라 HC1은 미정의입니다. 완전행을 늘리는 것과 원행을 복사해 숫자만 늘리는 것은 다릅니다.

For a full-column-rank design, n is complete-row count and p includes the intercept. HC1 multiplies HC0 by n/(n−p) when n> p. The six-row design gives factor 3/2.

HC1 variances become 23/48 and 27/80. The conventional common-variance working formula instead uses s²=23/8 and G⁻¹, giving 23/48 and 23/80. Equality of one entry does not make the matrices identical.

The correction is not a guarantee of exact finite-sample unbiasedness under every heteroskedastic model. HC1 is undefined at n=p. Copying source rows is not equivalent to obtaining more independent information.

기초Foundations

13. 레버리지는 설계에서 계산하는 수량이다13. Leverage is a design-based quantity

H=A(AᵀA)⁻¹Aᵀ는 결과를 적합 벡터로 보내는 투영 행렬입니다. 대각 hᵢ=aᵢᵀG⁻¹aᵢ는 레버리지라고 부릅니다. 열 독립 설계의 기여 행에서는 0≤hᵢ≤1이며 Σhᵢ=p입니다. 결과 Y가 아니라 설명 열의 배치에서 나옵니다.

기본 여섯 행은 hᵢ=1/6+Xᵢ²/10입니다. X=±2에서는 17/30, ±1에서는 4/15, 0에서는 1/6입니다. 이를 두 개씩 더하면 2가 되어 계수 수와 맞습니다.

레버리지가 큰 행은 같은 표에서 결과를 적합할 때 자기 결과가 더 많이 반영됩니다. 그래서 적합 잔차가 작아질 수 있다는 점이 HC2·HC3 보정의 동기입니다. 큰 레버리지 자체가 원자료 오류나 삭제 명령이라는 뜻은 아닙니다.

The projection H=A(AᵀA)⁻¹Aᵀ maps outcomes to fitted values. Its diagonal hᵢ=aᵢᵀG⁻¹aᵢ is leverage. Contributing rows satisfy 0≤hᵢ≤1 and Σhᵢ=p. Leverage depends on design, not outcome Y.

Here hᵢ=1/6+Xᵢ²/10: 17/30 at X=±2, 4/15 at ±1, and 1/6 at zero. Summing the two copies of each gives two, the coefficient count.

A high-leverage row has more influence on its own fitted outcome and can have a reduced fitted residual. This motivates HC2/HC3 adjustments. High leverage alone neither proves source error nor instructs deleting a record.

기초Foundations

14. HC2·HC3와 레버리지 1의 분모를 보존한다14. Preserve HC2/HC3 and unit-leverage denominator boundaries

HC2는 가운데 행렬의 êᵢ²를 êᵢ²/(1−hᵢ)로, HC3는 êᵢ²/(1−hᵢ)²로 바꿉니다. HC1과 달리 행마다 다른 조정입니다. 같은 표와 같은 계수를 유지하면서 공분산 추정식을 달리합니다.

wiHC2=e^i21−hiwiHC3=e^i2(1−hi)2\begin{gathered}w_i^{HC2}=\frac{\widehat e_i^2}{1-h_i}\\w_i^{HC3}=\frac{\widehat e_i^2}{(1-h_i)^2}\end{gathered}

만약 어떤 기여 행의 hᵢ=1이면 분모가 0입니다. 잔차도 0이라고 0/0을 0으로 바꾸지 않습니다. 실습은 그 방법을 미정의로 남기며 어느 원행에 단위 레버리지가 있는지 보여줍니다. HC0가 0으로 계산될 수 있다는 사실과 HC2·HC3의 정의역은 다릅니다.

HC3가 큰 레버리지의 영향을 더 강하게 조정해도 모든 작은 표본·의존 구조에서 적절한 추론을 보장하지는 않습니다. 어느 오차 모형과 근사 정리를 사용하는지 함께 보고합니다.

HC2 replaces êᵢ² in the middle matrix by êᵢ²/(1−hᵢ), while HC3 uses êᵢ²/(1−hᵢ)². These are row-specific adjustments, unlike HC1. The observed table and OLS coefficients stay unchanged.

wiHC2=e^i21−hiwiHC3=e^i2(1−hi)2\begin{gathered}w_i^{HC2}=\frac{\widehat e_i^2}{1-h_i}\\w_i^{HC3}=\frac{\widehat e_i^2}{(1-h_i)^2}\end{gathered}

If a contributing row has hᵢ=1, the denominator is zero. Even zero residual does not turn 0/0 into zero. The lab leaves the method undefined and identifies unit-leverage source rows. HC0 being computable as zero does not extend the domain of HC2/HC3.

A stronger leverage adjustment does not guarantee reliable inference in every small sample or dependence structure. State the error model and approximation argument.

기초Foundations

15. 이분산 강건성은 어떤 조건을 완화하는가15. Which conditions does heteroskedasticity robustness relax?

iid 관측에서 모집단 선형 투영의 점수가 평균 0이고 Q가 비특이며 충분한 모멘트와 레버리지 제어가 있으면, 잔차 점수 곱합을 써서 점근 공분산을 일관되게 추정하는 논리를 세울 수 있습니다. 조건부 분산이 모든 X에서 같아야 한다는 제한을 완화합니다.

그러나 행 사이 점수가 의존하면 HC0의 개별 외적 합만으로는 빠진 교차항을 일반적으로 복구하지 못합니다. 군집과 시계열은 그 의존 구조에 맞춘 합을 따로 구성합니다. ‘robust’ 옵션 이름 하나가 자료 생성 조건을 대신하지 않습니다.

목표가 인과 계수인데 E[au]≠0인 내생성이 남아 있다면 HC로 표준오차만 바꾸어 그 목표를 식별하지 못합니다. 모집단 투영을 대상으로 하는 기술적 추론과 정책·교육 개입의 인과 추론을 구별합니다.

For iid observations, mean-zero population-projection scores, nonsingular Q and suitable moment/leverage controls can justify residual score products as consistent estimators of an asymptotic covariance scale. This relaxes constant conditional error variance.

Cross-row score dependence is different: individual outer products generally omit relevant cross terms. Cluster and time-series methods build sums for those dependence structures. An option named robust does not replace data-generating premises.

If endogeneity leaves E[au]≠0 relative to an intended causal coefficient, changing standard errors does not identify that target. Distinguish descriptive projection inference from inference about interventions.

기초Foundations

16. 실습 B · 같은 계수와 네 공분산 규칙16. Lab B · One fit and four covariance recipes

여섯 가정 행에서 HC0·HC1·HC2·HC3를 바꾸어도 â=2, b̂=3/2는 같습니다. 각 레버리지·잔차·점수를 읽고 공분산 대각과 비대각을 비교하세요. 기본 HC1 기울기 분산 27/80과 HC0의 9/40을 정확 분수로 확인합니다.

서로 다른 X 두 행에 절편과 기울기를 맞춘 경우 n=p=2, 레버리지는 둘 다 1입니다. HC0는 0, HC1과 HC2·HC3는 미정의가 될 수 있습니다. 원래 행·결측과 정의역을 보존하고, 계산 가능성과 추론의 타당성을 구별하세요.

Switching among HC0/HC1/HC2/HC3 keeps the assumed six-row coefficients (2, 3/2). Inspect leverage, residuals and scores before comparing diagonal and cross-covariance entries. Check HC1 slope variance 27/80 against HC0’s 9/40.

For two distinct-X rows and two coefficients, n=p=2 and both leverages equal one. HC0 can be zero while HC1/HC2/HC3 are undefined. Preserve rows, missingness and domains, and separate computability from inferential validity.

기초Foundations

17. 같은 충격을 나누는 행은 평균에서 사라지지 않을 수 있다17. Rows sharing a shock need not average it away

가정한 한 집단에 m개 오차가 있고 각 분산이 σ², 서로 다른 오차의 공분산이 ρσ²라고 합시다. 평균 오차의 분산에는 m개의 대각항과 m(m−1)개의 교차항이 들어갑니다. σ²>0일 때 이 공동 공분산이 가능하려면 −1/(m−1)≤ρ≤1 같은 양의 준정부호 조건도 필요합니다(m> 1). σ²=0이면 Ω=0이며 상관은 정의되지 않고, 이 ρ 범위를 필요조건으로 요구하지 않습니다.

Var⁡(u‾)=σ2m{1+(m−1)ρ}\begin{gathered}\operatorname{Var}(\overline u)\\=\frac{\sigma^2}{m}\{1+(m-1)\rho\}\end{gathered}

σ²>0이고 m=10, ρ=1/5이면 독립을 가정한 σ²/10에 비해 14/5=2.8배입니다. 집단 안 행을 늘려도 공통 부분이 남을 수 있다는 예입니다. 그러나 실제 어느 집단이 이 모형을 따르는지는 원 분류 이름만으로 알 수 없습니다.

Assume m errors in one group each have variance σ² and every distinct pair covariance ρσ². The mean variance contains m diagonal and m(m−1) cross terms. A feasible joint covariance also requires positive-semidefinite conditions such as −1/(m−1)≤ρ≤1 when σ²>0 and m> 1. At σ²=0, Ω=0 and correlations are undefined; that ρ range is not a necessary restriction.

Var⁡(u‾)=σ2m{1+(m−1)ρ}\begin{gathered}\operatorname{Var}(\overline u)\\=\frac{\sigma^2}{m}\{1+(m-1)\rho\}\end{gathered}

For σ²>0, at m=10 and ρ=1/5, the variance is 14/5=2.8 times the independence expression σ²/10. Shared variation can persist as more rows are added within a group. Actual group names alone do not establish this error model.

기초Foundations

18. 군집 안에서는 먼저 점수를 더한다18. Sum scores within clusters first

기본 여섯 가정 행에서 A는 앞 두 행, B는 중간 두 행, C는 뒤 두 행입니다. 군집 점수 Sg는 그 집단에 속한 개별 점수 aᵢêᵢ를 먼저 더한 벡터입니다. 이 합을 만든 뒤 외적을 취하면 집단 안 교차 곱들이 포함됩니다.

가정 세 집단의 점수 합
군집절편 점수 합기울기 점수 합
A3/2-5/2
B-20
C1/25/2

세 집단 점수 합을 다시 더하면 전체 정상방정식에 따라 (0, 0)입니다. 하지만 각 집단 점수가 0인 것은 아닙니다. SgSgᵀ를 더하면 대각은 13/2와 25/2, 비대각은 −5/2가 됩니다.

In the six assumed rows, A contains the first pair, B the middle pair and C the final pair. Cluster score Sg sums individual aᵢêᵢ vectors before taking an outer product. This includes within-cluster cross-products.

Score sums in three assumed clusters
ClusterIntercept-score sumSlope-score sum
A3/2-5/2
B-20
C1/25/2

Summing the three cluster scores gives (0, 0), but each cluster score need not vanish. Their outer-product sum has diagonal 13/2, 25/2 and off-diagonal −5/2.

기초Foundations

19. CR0의 교차항과 기본 행렬을 계산한다19. Compute CR0 and its cross terms

집단 g별 점수 Sg를 사용한 조정 없는 군집 공분산을 여기서는 CR0라고 부릅니다. G는 계속 설계 Gram 행렬이며, 군집 수는 혼동을 피하려고 K라고 씁니다.

Sg=∑i∈gaie^iM^CR0=∑gSgSgTC^CR0=G−1M^CR0G−1\begin{gathered}S_g=\sum_{i\in g}a_i\widehat e_i\\\widehat M_{CR0}=\sum_g S_gS_g^{\mathsf T}\\\widehat C_{CR0}=G^{-1}\widehat M_{CR0}G^{-1}\end{gathered}

기본 가정 표에서 CR0의 절편 분산은 13/72, 기울기 분산은 1/8, 공분산은 −1/24입니다. 같은 표의 HC0와 다릅니다. 이 예에서는 두 대각이 HC0보다 작으므로 군집 표준오차가 언제나 더 크다는 규칙이 없음을 수치로 확인할 수 있습니다.

집단별 외적 합은 양의 준정부호입니다. 올바른 군집 추론에는 집단 사이 의존이 어떤지, 집단 수가 커지는 수열과 모멘트·비지배 조건이 적절한지 따로 확인해야 합니다.

Call the unadjusted cluster-score covariance CR0. Keep G for the design Gram matrix and use K for cluster count.

Sg=∑i∈gaie^iM^CR0=∑gSgSgTC^CR0=G−1M^CR0G−1\begin{gathered}S_g=\sum_{i\in g}a_i\widehat e_i\\\widehat M_{CR0}=\sum_g S_gS_g^{\mathsf T}\\\widehat C_{CR0}=G^{-1}\widehat M_{CR0}G^{-1}\end{gathered}

The assumed table gives variances 13/72, 1/8 and cross-covariance −1/24. Both variances are smaller than HC0 here, so clustered standard errors are not always larger.

A sum of cluster outer products is positive semidefinite. Valid clustered inference additionally depends on between-cluster dependence, a growing-cluster sequence, moments and no-dominating-cluster restrictions.

기초Foundations

20. CR1의 행 수·군집 수 보정을 구별한다20. Separate row-count and cluster-count corrections in CR1

이 장의 CR1은 CR0에 K/(K−1)와 (n−1)/(n−p)를 함께 곱하는 규약입니다. n은 같은 완전행 수, p는 계수 수, K는 그 행들의 관측 군집 수입니다. 다른 프로그램의 옵션 이름만으로 같은 규약이라고 단정하지 않습니다.

C^CR1=KK−1n−1n−pC^CR0\begin{gathered}\widehat C_{CR1}\\=\frac{K}{K-1}\frac{n-1}{n-p}\widehat C_{CR0}\end{gathered}

기본 표는 K=3, n=6, p=2여서 배수는 15/8입니다. 절편 분산 65/192, 기울기 분산 15/64, 공분산 −5/64를 얻습니다. K< 2 또는 n≤p이면 이 보정은 미정의입니다. 유한 배수를 곱했다고 작은 군집 수의 근사 오차가 없어지는 것은 아닙니다.

Our CR1 convention multiplies CR0 by K/(K−1) and (n−1)/(n−p), where n counts the same complete rows, p coefficients and K observed clusters. Check conventions rather than assuming identical option names imply identical corrections.

C^CR1=KK−1n−1n−pC^CR0\begin{gathered}\widehat C_{CR1}\\=\frac{K}{K-1}\frac{n-1}{n-p}\widehat C_{CR0}\end{gathered}

For K=3, n=6, p=2, the multiplier is 15/8. Variances become 65/192 and 15/64, with covariance −5/64. The correction is undefined when K< 2 or n≤p. A finite multiplier does not eliminate approximation error from few clusters.

기초Foundations

21. 각 행이 군집인 경우와 단 하나의 군집21. Singleton clusters and a single overall cluster

각 완전행이 서로 다른 군집이면 Sg는 개별 점수입니다. 따라서 CR0=HC0입니다. K=n이고 n> p이면 CR1 배수는 n/(n−p)로 줄어 HC1과도 같습니다. 같은 관측·같은 적합·같은 분모에서의 대수 항등식입니다.

반대로 모든 행을 한 군집으로 묶으면 전체 점수 합이 정상방정식에 의해 0이므로 CR0가 0 행렬이 될 수 있습니다. 이것은 실제 불확실성이 0이라는 증명이 아닙니다. 같은 모형을 적합한 전체 점수를 하나만 제곱한 결과입니다. K=1의 CR1은 미정의입니다.

군집 라벨이 없는 완전행을 자동 삭제하면 적합 표가 달라집니다. 실습은 X·Y 완전행 적합을 그대로 보존하되 군집 공분산을 미정의로 남기고 라벨이 없는 원행을 표시합니다. 누락 라벨을 임의의 새 독립 군집으로 만들지도 않습니다.

If every complete row has a distinct cluster, cluster scores equal individual scores and CR0=HC0. With K=n and n> p, the CR1 multiplier reduces to n/(n−p), giving HC1. This is an algebraic identity on the same fitted subset.

If all rows form one cluster, the total score vanishes by normal equations, so CR0 can be the zero matrix. This does not prove zero true uncertainty. It squares one full-sample fitted score. CR1 is undefined at K=1.

Dropping complete X/Y rows with missing cluster labels would change the fit. The lab preserves that fit but leaves cluster covariance undefined and identifies missing-label rows. It does not invent independent clusters for unavailable labels.

기초Foundations

22. 행이 많아도 군집은 적을 수 있다22. Many rows can still mean few clusters

한 집단 안의 행 수만 늘리는 수열과, 적절히 독립인 집단 수 K가 늘어나는 수열은 다릅니다. 군집 간 CLT를 사용할 때는 집단 점수의 합을 평균 내는 것이므로, 몇 개 집단이 전체 변동을 지배하지 않는 조건도 중요합니다.

기록 3,010명이라도 지역 군집이 9개이면 3,010개의 독립 지역을 얻은 것이 아닙니다. 실제 점포 사례의 체인 군집은 4개입니다. 이 작은 숫자에 CR1이나 t(K−1) 기준을 붙였다는 이유만으로 정확한 95% 포함률을 주장하지 않습니다.

소수 군집을 위한 보정·wild bootstrap·무작위화 추론 등은 각기 다른 가정과 구현을 갖습니다. 이 장은 그 이름만으로 해결되었다고 표시하지 않고, 기본 합의 의미와 남은 전제를 먼저 익힙니다. 후속 실증 설계와 심화 읽기에서 구체적으로 연결합니다.

Increasing rows inside a fixed set of clusters differs from increasing the number K of appropriately independent clusters. A cluster-level CLT concerns sums of cluster scores, with restrictions preventing a few groups from dominating variation.

Three thousand and ten people in nine regional groups are not 3,010 independent regions. The establishment example has four chain groups. Applying CR1 or a t(K−1) reference does not by itself give exact 95% coverage.

Few-cluster corrections, wild bootstrap and randomization inference have distinct assumptions and implementations. First understand the basic sums and remaining premises; later designs and readings develop these alternatives.

기초Foundations

23. 군집 수준은 자료와 질문에 근거해 선택한다23. Choose a clustering level from the design and question

군집은 표준오차가 가장 커지거나 원하는 결론이 나오는 분류를 찾는 장치가 아닙니다. 표집 단위·처치 할당·공유 충격의 경로와 관심 모집단을 먼저 적고 어떤 집단 사이에 근사 독립을 가정할 수 있는지 설명해야 합니다.

점포의 같은 체인 코드에는 공유되는 경영 요소가 있을 수 있지만, 그 코드만으로 오차 의존 구조가 확정되지는 않습니다. 주별 정책을 연구하는 질문에서는 주 수준의 공통 충격·할당 문제가 별도로 남습니다. 체인 4개로 묶은 작업 공분산을 주 정책의 타당한 인과 표준오차라고 부르지 않습니다.

같은 개인·기업·국가의 여러 기록이라면 실제 개체 식별과 시점 구조를 먼저 확인합니다. 숫자 코드가 같다는 이유만으로 같은 단위라고 합치거나, 원행 키가 다르다는 이유만으로 독립이라고 가정하지 않습니다.

Clustering is not a search for whichever category gives the largest standard error or a desired conclusion. State sampling units, treatment assignment, shared shocks and the target population before justifying approximate independence across groups.

Chain codes can indicate shared management features without establishing the error-dependence structure. A state-policy question also raises state-level assignment and common-shock issues. A four-chain working covariance is not automatically a valid causal state-policy standard error.

Repeated records require verified unit identities and timing. Equal numeric codes do not alone justify merging units, and different source-row keys do not prove independence.

기초Foundations

24. 실습 C · 집단 점수와 전체 보정24. Lab C · Cluster scores and complete correction rules

가정 A·B·C의 점수 합부터 확인하고 CR0·CR1을 바꾸어 계산합니다. 기본 기울기 분산 1/8과 15/64를 대조하세요. 각 행을 별도 군집으로 바꾸면 HC0·HC1과 같아지는지도 확인합니다.

모든 행의 라벨을 하나로 만들거나 한 완전행 라벨을 비워 보세요. 전체 점수 0 때문에 생긴 CR0의 0, 단일 군집 CR1의 미정의, 누락 라벨로 인한 공분산 미정의를 서로 구별합니다. 원행과 계수 적합을 보존하며 그룹 수와 가용 분모를 함께 표시합니다.

Inspect the assumed A/B/C score sums before switching CR0 and CR1. Check slope variances 1/8 and 15/64. Giving every row its own cluster reproduces HC0 and HC1.

Put all rows in one cluster or remove one complete row’s label. Distinguish a zero CR0 from total-score algebra, undefined one-cluster CR1, and undefined covariance from an unavailable label. Preserve source rows and the fit while reporting cluster counts and denominators.

기초Foundations

25. 시간을 따라 의존할 수 있는 것은 점수이다25. Scores can remain dependent over time

시계열의 회귀 공분산에서 필요한 것은 점수 sₜ=aₜuₜ의 시간 의존입니다. 설명 열과 오차가 함께 들어가므로 원 Y의 자기상관만 보아 추론 공분산을 결정하지 않습니다. 적합 후에는 êₜ로 만든 점수 곱합을 사용하지만 참 점수 법칙의 전제는 별도로 남습니다.

HAC는 heteroskedasticity and autocorrelation consistent의 약자입니다. 이름에 consistent가 들어 있어도, 임의의 고정 시차·임의 의존 자료에서 일치성이 자동 성립한다는 뜻은 아닙니다. 먼저 유한 표에서 어떤 곱을 넣는 계산인지 확인합니다.

관측 순서가 실제 시간이라는 근거도 필요합니다. 국가 연도·분기·송장 날짜처럼 원자료가 주는 지수를 사용하고, 정렬된 고객 번호나 익명 사람의 원행 위치를 실제 시간으로 바꾸어 부르지 않습니다.

Regression uncertainty depends on serial relationships among scores sₜ=aₜuₜ, which combine regressors and errors. Autocorrelation in raw Y alone does not determine the covariance recipe. Fitted scores use êₜ, but premises about true scores remain separate.

HAC means heteroskedasticity and autocorrelation consistent. The name does not guarantee consistency for arbitrary fixed lags and arbitrary dependence. First identify the products included in a finite-table calculation.

Actual timing must also be supported. Use source years, quarters or documented dates; do not reinterpret sorted customer codes or anonymous cohort source positions as calendar time.

학부 연결 · 선택Undergraduate bridge · optional

26. Bartlett 가중치로 시차 교차항을 더한다26. Add lagged cross-products with Bartlett weights

정수 시간 지수 t와 비음수 정수 최대 시차 L이 주어졌다고 합시다. 최대 시차 L에서 Bartlett 가중치는 wₗ=1−l/(L+1)입니다. 가운데 행렬은 개별 점수 외적에 두 방향의 시차 교차항을 더합니다. 이 장의 기본값은 L=1, 자유도 보정 없음입니다.

M^0=∑ts^ts^tTCl=∑t−r=ls^ts^rTM^L=M^0+∑l=1Lwl(Cl+ClT)C^L=G−1M^LG−1\begin{gathered}\widehat M_0=\sum_t\widehat s_t\widehat s_t^{\mathsf T}\\C_l=\sum_{t-r=l}\widehat s_t\widehat s_r^{\mathsf T}\\\widehat M_L=\widehat M_0+\sum_{l=1}^Lw_l(C_l+C_l^{\mathsf T})\\\widehat C_L=G^{-1}\widehat M_LG^{-1}\end{gathered}

기본 여섯 행에서 시차 1에서 두 방향을 더한 교차합 C₁+C₁ᵀ의 대각은 −7, −10이고 비대각은 −19/2입니다. 가중치 1/2를 곱하여 HC0 가운데 행렬에 더하면 대각 8, 35/2, 비대각 13/4를 얻습니다. 최종 공분산은 절편 2/9, 기울기 7/40, 비대각 13/240입니다.

Suppose integer time indices and a nonnegative integer maximum lag L are given. Bartlett weights at maximum lag L are wₗ=1−l/(L+1). Add both directions of lagged score cross-products to individual outer products. The default is L=1 with no degrees-of-freedom adjustment.

M^0=∑ts^ts^tTCl=∑t−r=ls^ts^rTM^L=M^0+∑l=1Lwl(Cl+ClT)C^L=G−1M^LG−1\begin{gathered}\widehat M_0=\sum_t\widehat s_t\widehat s_t^{\mathsf T}\\C_l=\sum_{t-r=l}\widehat s_t\widehat s_r^{\mathsf T}\\\widehat M_L=\widehat M_0+\sum_{l=1}^Lw_l(C_l+C_l^{\mathsf T})\\\widehat C_L=G^{-1}\widehat M_LG^{-1}\end{gathered}

For the six-row table, the two-direction lag-one cross sum C₁+C₁ᵀ has diagonals −7, −10 and the off-diagonal is −19/2. Weighting by 1/2 gives middle-matrix diagonal 8, 35/2 and off-diagonal 13/4. The resulting covariance has diagonal 2/9, 7/40 and off-diagonal 13/240.

기초Foundations

27. 시차 0과 자유도 보정의 항등식을 확인한다27. Check lag-zero and degrees-of-freedom identities

L=0이면 시차 교차합이 없어서 같은 행·같은 적합에서 조정 없는 HAC는 HC0와 같습니다. 자유도 보정을 선택하여 n/(n−p)를 곱하면 HC1과 같습니다. 이는 프로그램 간 수치를 대조할 수 있는 간단한 불변량입니다.

n은 HAC에 기여하는 완전행 수입니다. 원행이 6개여도 하나의 결과가 미가용이면 n=5일 수 있습니다. n≤p에서는 선택한 자유도 보정이 미정의이며, 이를 1로 대신 넣지 않습니다.

같은 이름의 Newey–West 옵션도 사전백색화·자동 대역폭·유한 표본 보정 설정에 따라 달라질 수 있습니다. 이 장의 결과는 Bartlett·명시 L·사전백색화 없음이라는 규약을 공개해 재현합니다. 다른 규약의 숫자와 차이가 있다고 즉시 산술 오류로 판단하지 않습니다.

With L=0, no lagged terms remain, so unadjusted HAC equals HC0 on identical rows and fits. Multiplying by n/(n−p) gives HC1. These are useful cross-implementation invariants.

Here n counts complete contributing rows. Six source rows with one unavailable outcome can mean n=5. A requested degrees-of-freedom correction is undefined when n≤p; do not silently substitute factor one.

Software options called Newey–West can differ in prewhitening, automatic bandwidth and finite-sample correction. We specify Bartlett weights, explicit L and no prewhitening. Different conventions need not indicate arithmetic errors.

기초Foundations

28. 완전행만 고를 때 달력 간격을 압축하지 않는다28. Do not compress calendar gaps when selecting complete rows

시간 지수 0, 1, 2, 3, 4, 5 중 t=2의 결과가 미관측이면 기여 지수는 0, 1, 3, 4, 5입니다. 시차 1인 쌍은 (1, 0), (4, 3), (5, 4)의 세 개입니다. 남은 다섯 행을 새로 0, 1, 2, 3, 4라고 번호 매기면 원래 두 시점 떨어진 (3, 1)까지 시차 1로 잘못 넣습니다.

실습은 명시한 정수 지수의 차이로 쌍을 찾습니다. 시간 값은 유일하고 엄격히 증가해야 하며 순서를 자동 바꾸지 않습니다. 모든 시간 값이 생략되면 원행 위치를 계산용 지수로 사용했다는 표시를 남기고, 그것이 실제 달력이라고 주장하지 않습니다.

결측을 보존한 시간 곱합을 계산했다고 결측이 추론에 무해해지는 것은 아닙니다. 어떤 시점이 관측되는지의 선택과 시간 의존 정리의 조건도 확인해야 합니다.

If time two is missing among indices 0, 1, 2, 3, 4, 5, the contributing times are 0, 1, 3, 4, 5. Lag-one pairs are (1, 0), (4, 3), (5, 4). Renumbering retained rows consecutively would incorrectly treat (3, 1), a two-period gap, as lag one.

The lab matches differences of declared integer indices. Indices must be unique and strictly increasing; the engine does not reorder them. If every time is absent, it explicitly reports source-position indices rather than claiming calendar time.

Preserving gaps does not make missingness harmless. Selection of observed times and conditions for dependent-data inference still require justification.

기초Foundations

29. 고정 L 계산과 일치성의 수열을 구별한다29. Distinguish a fixed-L recipe from a consistency sequence

실제 점수의 장기 공분산에는 여러 시차의 교차 공분산이 들어갈 수 있습니다. 고정 L=1을 사용하면 그보다 먼 시차를 버립니다. 그 먼 항들이 중요하다면 n이 커져도 같은 고정 L이 올바른 장기 공분산을 추정한다는 보장은 없습니다.

전형적인 점근 설명에서는 Lₙ→∞와 Lₙ/n→0 같은 대역폭 조건을 의존·모멘트·설계 및 더 구체적인 속도 조건과 함께 둡니다. 이 두 비율만 적었다고 모든 시계열에 적용되는 정리가 되지는 않습니다. 대역폭 선택과 근사의 안정성을 함께 보고합니다.

추세가 있는 원 GDP를 회귀했다고 그 잔차 점수가 정상·약의존이라는 전제가 검증되지 않습니다. HAC 표준오차가 시계열의 비정상성·틀린 평균 함수·구조 변화를 모두 수리하는 방법도 아닙니다.

A long-run score covariance can include many lags. Fixed L=1 omits more distant terms; when they matter, increasing n with the same fixed L does not automatically recover the correct long-run covariance.

Typical asymptotic arguments combine bandwidth conditions such as Lₙ→∞ and Lₙ/n→0 with dependence, moments, design and more specific rate restrictions. Those two ratios alone are not a theorem for every time series. Report bandwidth choices and approximation stability.

Regressing trending GDP does not verify stationary, weakly dependent residual scores. HAC is not a universal repair for nonstationarity, wrong mean functions or structural change.

학부 연결 · 선택Undergraduate bridge · optional

30. Bartlett 가운데 행렬이 양의 준정부호인 이유30. Why the Bartlett middle matrix is positive semidefinite

관측하지 않은 정수 시점의 적합 점수를 0으로 확장하되, 원 결과가 0이라고 채우는 것은 아니라고 명확히 합니다. 이는 이미 계산한 유한 점수 배열의 합을 표현하는 대수 표기입니다. 길이 L+1의 이동 합 Rᵣ를 정의합니다.

Rr=∑j=0Ls^r−jM^L=1L+1∑r∈ZRrRrT\begin{gathered}R_r=\sum_{j=0}^L\widehat s_{r-j}\\\widehat M_L=\frac1{L+1}\sum_{r\in\mathbb Z}R_rR_r^{\mathsf T}\end{gathered}

같은 점수 외적은 L+1번, 시차 l≤L인 두 점수의 교차 곱은 L+1−l번 들어갑니다. 따라서 오른쪽을 전개하면 정확히 Bartlett 가중치를 얻습니다. 유한 점수 지지집합 때문에 0이 아닌 이동 합도 유한 개입니다.

임의 c에 대해 cᵀM̂Lc=(1/(L+1))Σ(cᵀRᵣ)²≥0이므로 양의 준정부호이고, 샌드위치도 같은 성질을 가집니다. 이 증명은 수치적 비음수성의 이유이지 표집 일치성이나 실제 시간 법칙을 증명하는 것은 아닙니다.

Extend the finite fitted-score array by zeros at unobserved integer indices solely to express an algebraic sum. This does not fill missing original outcomes with zero. Define moving sums of length L+1.

Rr=∑j=0Ls^r−jM^L=1L+1∑r∈ZRrRrT\begin{gathered}R_r=\sum_{j=0}^L\widehat s_{r-j}\\\widehat M_L=\frac1{L+1}\sum_{r\in\mathbb Z}R_rR_r^{\mathsf T}\end{gathered}

Each self-product appears L+1 times; each lag-l cross-product appears L+1−l times. Expansion therefore gives exactly the Bartlett weights. Finite score support leaves only finitely many nonzero moving sums.

Every quadratic form is a nonnegative sum of squares, so M̂L and its sandwich are positive semidefinite. This explains algebraic nonnegativity, not sampling consistency or an actual time-series law.

기초Foundations

31. 척도·순서·정의역을 함께 기록한다31. Record scales, order and domains together

기본 가정 표의 기울기 분산은 HC0에서 9/40, HAC 시차 1에서 7/40입니다. 이 예의 HAC가 더 작다고 시간 의존은 언제나 표준오차를 줄인다는 뜻은 아닙니다. 점수 교차항의 부호와 설계가 달라지면 반대가 될 수 있습니다.

Y의 단위를 100배 바꾸면 점수는 100배, HC·CR·HAC 가운데 행렬과 계수 공분산은 10,000배가 됩니다. 시간 단위를 바꾸면 L이 뜻하는 실제 기간도 맞추어야 합니다. 연간 시차 1과 월간 시차 1은 같은 의존 범위를 자르는 규칙이 아닙니다.

도구의 최대 시차·행 수 제한은 계산 예산입니다. 이를 넘는 입력은 이전 그림을 남기지 않고 지우며, 그 자료의 공분산이 수학적으로 존재하지 않는다고 표현하지 않습니다.

The assumed slope variance is 9/40 for HC0 and 7/40 for lag-one HAC. This decrease does not mean serial dependence always reduces standard errors. Other score cross-products and designs can reverse the comparison.

Scaling Y by 100 multiplies scores by 100 and HC/CR/HAC middle matrices and coefficient covariances by 10,000. Changing time units also requires matching lag horizons. Lag one annually and lag one monthly cut dependence at different durations.

Tool limits on rows and maximum lag are computational budgets. Exceeding them clears stale results; it does not prove the mathematical covariance nonexistent.

기초Foundations

32. 실습 D · 명시한 시간 차이의 HAC32. Lab D · HAC at declared time differences

기본 여섯 가정 행에서 L=0의 HC0 일치, L=1의 기울기 분산 7/40을 확인합니다. 각 시차의 가중치·실제 사용한 쌍 수·교차 곱합을 읽으세요. 자유도 보정 선택 여부를 함께 기록합니다.

한 결과를 비우되 원 시간 지수는 유지하여 시차 1 쌍 수가 바뀌는지 확인하세요. 시간을 중복시키거나 거꾸로 적으면 계산을 거절합니다. 원행 위치를 시간으로 삼은 예와, 원 연도에서 확인한 실제 국가 사례를 같은 관측 시계열이라고 부르지 않습니다.

Verify lag-zero equality with HC0 and lag-one slope variance 7/40 in the six assumed rows. Inspect weights, eligible pair counts and cross-products by lag, and record whether a degrees-of-freedom correction was applied.

Remove an outcome while preserving its original time index and inspect changed lag-one pair counts. Duplicate or reversed times are rejected. Do not confuse illustrative source-position ordering with the actual source years in the country example.

기초Foundations

33. 공분산 대각과 표준오차를 구별한다33. Distinguish covariance diagonals from standard errors

관심 계수 b̂의 공분산 대각 항목을 v̂라고 하면 표준오차는 √v̂입니다. v̂는 계수 단위의 제곱, 표준오차는 계수와 같은 단위입니다. 공분산 행렬의 비대각을 표준오차라고 부르지 않습니다.

여섯 가정 행의 HC0 기울기 분산은 9/40이고 표준오차는 √(9/40), 약 0.474342입니다. 정확 분수 9/40을 계산했다는 사실과 무리수 제곱근의 소수 표시를 구별합니다. 제곱근이 유리수이면 정확값도 함께 표시합니다.

분산의 소수가 표시 범위 아래로 내려가 0처럼 보여도 양의 제곱근은 표시될 수 있습니다. 실습은 정확 분산에서 제곱근을 한 번 반올림하며, 분산을 먼저 0으로 만든 뒤 제곱근을 취하지 않습니다. 소수 언더플로와 수학적 0을 구별합니다.

If v̂ is the covariance diagonal for coefficient b̂, its standard error is √v̂. Variance has squared coefficient units; standard error has the original coefficient unit. Off-diagonal covariances are not standard errors.

The six-row HC0 slope variance is 9/40, with standard error √(9/40), approximately 0.474342. Exact rational variance differs from a decimal display of an irrational root. A rational root is also shown exactly when available.

A variance display can underflow while its positive square root remains representable. The lab rounds the root from the exact squared value rather than first rounding variance to zero. Keep display underflow distinct from mathematical zero.

기초Foundations

34. 관심 귀무값에서 중심을 뺀다34. Center the statistic at the stated null value

귀무가설이 b=b₀이면 계수 자체가 아니라 차이 b̂−b₀를 표준오차로 나눕니다. v̂> 0일 때의 Wald 형태입니다. 회귀 절편이 있다고 귀무값이 자동으로 0이 되는 것은 아닙니다.

T=b^−b0v^T2=(b^−b0)2v^\begin{gathered}T=\frac{\widehat b-b_0}{\sqrt{\widehat v}}\\T^2=\frac{(\widehat b-b_0)^2}{\widehat v}\end{gathered}

b̂=3/2, v̂=9/40, b₀=0이면 T²=10입니다. b₀=1이면 T²=10/9로 달라집니다. 양수 임계값 c에 대해 |T|> c와 (b̂−b₀)²> c²v̂는 동치이므로 제곱근의 반올림 없이 경계 비교를 할 수 있습니다. 어느 확률 기준에서 c가 적절한지는 별도 추론 조건입니다.

For null b=b₀, divide b̂−b₀ rather than b̂ alone by the standard error. This Wald form requires v̂> 0. Including an intercept does not automatically set the null value to zero.

T=b^−b0v^T2=(b^−b0)2v^\begin{gathered}T=\frac{\widehat b-b_0}{\sqrt{\widehat v}}\\T^2=\frac{(\widehat b-b_0)^2}{\widehat v}\end{gathered}

At b̂=3/2, v̂=9/40, T² is ten for b₀=0 and 10/9 for b₀=1. With c> 0, the cutoff comparison equals (b̂−b₀)²> c²v̂, avoiding root-rounding ambiguity. Choosing a probabilistically appropriate c requires separate justification.

기초Foundations

35. 주어진 임계값과 그 확률 근거를 분리한다35. Separate a supplied cutoff from its reference justification

정규 근사가 정당화되고 양측 5% 기준을 쓴다면 표준정규의 97.5% 분위수 약 1.959964를 사용할 수 있습니다. 편의를 위해 1.96을 입력하면 계산은 그 십진수 자체를 정확한 유리수로 읽습니다. 임계값의 반올림과 정규 근사의 오차는 서로 다른 근사입니다.

실습은 입력한 임계값을 사용하여 비교와 구간을 계산할 뿐, 그 값을 특정 분포의 정확 분위수로 인증하거나 p값을 계산하지 않습니다. t-working을 고르면 작업 자유도도 명시해야 합니다. 임계값·분포 선택·자유도를 함께 기록합니다.

군집에서 t(K−1)을 쓰는 관행이 있더라도 CR1만으로 정확 유한 t 법칙이 생기지는 않습니다. 같은 임계값을 다른 손실·표집·의존 모형으로 무조건 옮기지 않습니다.

With a justified normal approximation, a two-sided 5% rule can use the standard-normal 97.5% quantile, approximately 1.959964. Entering 1.96 treats that decimal itself as an exact rational for calculation. Quantile rounding and normal-approximation error are distinct.

The lab computes comparisons and intervals using the supplied cutoff. It does not certify an exact distributional quantile or calculate p-values. A t-working reference also requires explicit working degrees of freedom. Record the cutoff, reference and degrees of freedom.

The practice of using t(K−1) in clustered settings does not make CR1 an exact finite-t procedure. Reference choices do not transfer automatically across sampling and dependence models.

기초Foundations

36. 정확한 표현과 소수 구간을 나눈다36. Separate a symbolic interval from decimal endpoints

관심 계수의 대칭 구간을 b̂±c√v̂로 구성합니다. b̂, c, v̂가 유리수이어도 끝점은 무리수일 수 있습니다. 실습은 중심·반경 제곱의 정확 분수와 기호식을 보존하고, 반경이 유리수일 때만 끝점의 정확 분수도 제공합니다.

반경이 아주 작으면 소수 두 끝점이 같은 수로 표시될 수 있습니다. 그런 표시가 구간의 정확 폭이 0이라는 뜻은 아닙니다. 반경 제곱의 양수 여부와 ‘표시 끝점 겹침’을 따로 읽습니다. 큰 값의 표시 범위 초과도 정확값의 부재와 구별합니다.

구간을 계산한 행위와 그 구간이 어떤 반복표집 법칙에서 명목 포함률을 가진다는 주장은 다릅니다. 앞에서 사용한 중심·공분산 추정·정규 또는 작업 t 기준의 전제를 연결해야 합니다.

Construct a symmetric interval b̂±c√v̂. Rational inputs can have irrational endpoints. The lab preserves exact center and squared radius plus a symbolic expression; exact fractional endpoints are supplied only when the radius is rational.

Very small radii can make both decimal endpoints display as the same number. This does not make the exact width zero. Inspect positive squared radius and collapsed-endpoint metadata separately. Decimal overflow also differs from absence of an exact expression.

Constructing an interval differs from establishing nominal coverage under a repeated-sampling law. Connect centering, covariance estimation and the normal or working-t reference to their premises.

기초Foundations

37. 분산 추정값 0을 확실성으로 바꾸지 않는다37. Do not turn an estimated zero variance into certainty

잔차가 모두 0이거나 모든 행을 한 군집으로 묶으면 어떤 공분산 추정식은 0이 될 수 있습니다. 추정한 값 0과 알려진 참 분산 0은 다릅니다. 특히 OLS의 전체 점수 합 0 때문에 생긴 CR0의 0은 새로운 독립 정보가 아닙니다.

v̂=0이면 (b̂−b₀)/√v̂의 보통 표준화는 정의되지 않습니다. 실습은 Wald 통계량과 그에 따른 기각 판단을 미정의로 남깁니다. 반경 0인 형식적 집합을 쓸 수 있다는 사실이 명목 포함률을 보장하지도 않습니다.

실제 분산이 양수지만 소수 표시가 0으로 반올림된 경우도 구별합니다. 정확 분수와 표시 메타데이터를 확인하여 반올림된 0을 분모로 쓰지 않습니다. 극소값과 퇴화 모형의 경계를 검산하는 이유입니다.

Perfect fitted residuals or one overall cluster can make a covariance recipe zero. Estimated zero and known true zero variance are different. In particular, CR0 vanishing because the total fitted score is zero adds no independent information.

At v̂=0, the ordinary standardized ratio is undefined. The lab leaves its Wald statistic and corresponding rejection decision undefined. A formal radius-zero set does not establish nominal coverage.

Also distinguish positive exact variance rounded to a zero display. Use the exact fraction and metadata rather than dividing by a rounded zero. This motivates explicit tiny-value and degenerate-model checks.

학부 연결 · 선택Undergraduate bridge · optional

38. 표준화에 필요한 두 수렴을 연결한다38. Connect the two convergence claims needed for standardization

관심 추정량이 √n(b̂−b*)⇒N(0, v), v> 0을 만족하고 선택한 공분산 추정식이 n·v̂→p v를 만족한다고 합시다. 그러면 연속사상과 Slutsky 정리로 (b̂−b*)/√v̂가 표준정규로 분포수렴합니다. 이때 P(v̂>0)→1입니다. 표준화는 v̂>0 사건에서 정의하고 나머지 사건에는 별도의 유한값을 정한 통계량이 같은 극한을 갖습니다. 이는 도구의 v̂=0 미정의를 0으로 바꾸는 규칙이 아닙니다. 두 결론 모두 모형의 조건부 주장입니다.

n(b^−b∗)⇒N(0,v)nv^→pv>0b^−b∗v^⇒N(0,1)\begin{gathered}\sqrt n(\widehat b-b^*)\Rightarrow N(0,v)\\n\widehat v\xrightarrow p v>0\\\frac{\widehat b-b^*}{\sqrt{\widehat v}}\Rightarrow N(0,1)\end{gathered}

이 논리는 실제 유한 표본 Var(b̂)가 반드시 존재하거나 nVar(b̂)→v라는 주장을 필요 없이 자동으로 만들지 않습니다. 그런 모멘트 비교에는 추가 제어가 필요합니다. n·v̂의 일치성은 추정식의 확률수렴이고 실제 분산의 수렴은 다른 문장입니다.

군집에서는 적절한 군집 수의 수열과 그 척도를, 시계열에서는 적절한 장기 점수 공분산과 대역폭 수열을 사용해야 합니다. 단순 iid의 n 표기를 모든 자료에 그대로 옮기지 않습니다.

Assume √n(b̂−b*)⇒N(0, v), v> 0, and n·v̂→p v for the chosen covariance recipe. Continuous mapping and Slutsky then yield a standard-normal limit for (b̂−b*)/√v̂. Here P(v̂>0)→1. Standardize on the event v̂>0 and assign a separate finite value on its complement; this extended statistic has the same limit. This does not change the tool’s undefined result at v̂=0 to zero. Both convergence statements are conditional on their model premises.

n(b^−b∗)⇒N(0,v)nv^→pv>0b^−b∗v^⇒N(0,1)\begin{gathered}\sqrt n(\widehat b-b^*)\Rightarrow N(0,v)\\n\widehat v\xrightarrow p v>0\\\frac{\widehat b-b^*}{\sqrt{\widehat v}}\Rightarrow N(0,1)\end{gathered}

This does not automatically establish existence of actual finite-sample Var(b̂) or nVar(b̂)→v. Such moment comparisons need additional control. Probability convergence of n·v̂ is a different claim from convergence of the estimator’s actual variance.

Cluster arguments require an appropriate growing-cluster sequence and scale; time-series arguments require suitable long-run score covariance and bandwidth sequences. Do not transfer an iid n notation indiscriminately.

기초Foundations

39. 추정 대상·공분산·임계값의 세 층을 확인한다39. Check the target, covariance and reference layers

먼저 계수가 무엇을 요약하는지 정의합니다. 관측 분포의 최선 선형 투영인지, 올바른 조건부 평균의 계수인지, 특정 개입 효과인지 구별합니다. 두 번째로 그 목표 주변 변동을 추정하는 HC·군집·HAC 규칙의 조건을 확인합니다. 세 번째로 어떤 임계값 근사를 사용할지 적습니다.

첫 층의 식별 문제가 남아 있는데 세 번째 층의 임계값만 바꾸어 해결했다고 말하지 않습니다. 반대로 좋은 인과 설계라도 실제 의존 구조를 무시한 표준오차는 잘못될 수 있습니다. 표적 식별과 추론은 연결되어 있지만 같은 검사가 아닙니다.

여러 공분산 규칙의 결과를 민감도로 제시할 때도 각각의 가정을 적습니다. 유의해지는 규칙만 고른 최종 표는 기준 선택 자체가 자료에 반응한 문제를 숨길 수 있습니다. 분석 질문과 규약을 먼저 명시하고 계산을 재현합니다.

First define the coefficient target: an observational best linear projection, a correct conditional-mean coefficient or an intervention effect. Second state premises for the HC, cluster or HAC covariance recipe around that target. Third specify the critical-value reference.

Changing only the third layer does not solve identification at the first. Conversely, a good causal design can still use an inappropriate dependence model for standard errors. Identification and inference are connected but distinct.

When reporting sensitivity across covariance recipes, state each assumption. Selecting only a significant result can hide data-dependent reference selection. Define the question and conventions before reproducing calculations.

기초Foundations

40. 실습 E · 기호 구간과 정확 제곱 비교40. Lab E · Symbolic intervals and exact squared comparisons

b̂=3/2, v̂=9/40, b₀=0, 임계값 1.96으로 시작합니다. T²=10과 (b̂−b₀)²> c²v̂를 확인합니다. 귀무값을 1로 바꾸면 T²=10/9입니다. 임계값은 계산 입력이며 실제 포함률을 도구가 인증한 것은 아닙니다.

분산을 0, 유리수 제곱, 아주 작은 양수로 바꾸어 보세요. 정확한 반경·기호 구간·소수 끝점·미정의 표준화를 구별합니다. 작업 t 기준을 사용하려면 자유도를 직접 적고, 강건 공분산만으로 정확 t 법칙이 나오지 않는 이유를 설명합니다.

Start with b̂=3/2, v̂=9/40, b₀=0 and supplied cutoff 1.96. Verify T²=10 and the exact squared comparison. Changing the null to one gives T²=10/9. The cutoff is an input, not certified actual coverage.

Try zero variance, a rational square and a tiny positive variance. Distinguish exact radius, symbolic interval, decimal endpoints and undefined standardization. A working-t choice requires explicit degrees of freedom; explain why robust covariance alone does not yield an exact t law.

기초Foundations

41. 실제 국가 · 한국 연도별 GDP와 명시한 시차41. Actual country · Korean annual GDP and declared lags

2026년 10월 20일 보관한 World Bank 원 API에서 한국 KOR의 NY.GDP.PCAP.KD 2014–2024년을 다시 선택합니다. 관측 단위는 한국×연도 11개이고 Y는 2015년 불변 USD/명의 1인당 실질 GDP입니다. 새 빈티지를 수집한 것으로 기록하지 않고 원 배열 위치·관측 연도·원 보관일·현재 검토일을 구별합니다.

설명 열은 연도−2019이며 상수를 포함합니다. 이는 관측 기간의 기술적 직선 추세이지 잠재 산출이나 정책 효과를 식별한 모형이 아닙니다. 실제 연도 지수의 차이로 Bartlett 시차를 계산하며, 기본 L=1·사전백색화 없음·자유도 보정 없음을 명시합니다.

11개 연도가 있다고 잔차 점수의 정상·약의존·장기 모멘트가 검증되지는 않습니다. L을 바꾼 작업 공분산을 민감도로 읽습니다. 한 국가를 한 군집으로 잡은 CR0의 0과 CR1 미정의도 실제 불확실성 0이라는 뜻이 아닙니다.

Reselect KOR observations of NY.GDP.PCAP.KD for 2014–2024 from the World Bank API retained on 20 October 2026. Units are eleven Korean country-year records, with Y real GDP/person in constant-2015 USD. Preserve original array positions and distinguish observation years, original retention and current review; do not claim a newly collected vintage.

Fit an intercept and year−2019 as a descriptive linear trend, not identified potential output or policy effects. Bartlett pairs use actual integer-year differences. The default explicitly uses L=1, no prewhitening and no degrees-of-freedom adjustment.

Eleven years do not verify stationary, weakly dependent residual scores or long-run moments. Read bandwidth changes as working-covariance sensitivity. One-country CR0 zero and CR1 undefined do not mean zero actual uncertainty.

기초Foundations

42. 실제 사람 · 원 지역 코드와 가용 로그임금42. Actual people · original regions and available source logs

Card의 보관 proximity.zip에서 남성 코호트 원행 3,613개를 보존합니다. Y는 1976년 시간당 임금 센트의 원자료 절단 로그 lwage76이며 원시급을 새로 로그로 만들어 대체하지 않습니다. 설명 열은 ed76 교육 연수와 age76 기록 나이입니다. 로그가 가용한 완전행 3,010개와 미가용 603개를 구별합니다.

기본 공분산 규칙은 HC1입니다. 군집 비교에서는 원 reg661–reg669의 1966년 지역 지표를 읽어 9개 분류를 만듭니다. 원행 3,613개 모두 해당 아홉 지표 중 정확히 하나가 1임을 대조합니다. 1966년 분류를 1976년 현재 거주지로 바꾸어 부르지 않습니다.

지역별 기록이 있다는 사실은 지역 사이 오차 독립을 입증하지 않습니다. 작업 가중치 1은 원 조사 가중치를 적용한 것도 아니며, 교육 계수의 강건 표준오차가 교육 개입의 인과 수익률을 식별하지도 않습니다. 익명 원행 순서는 실제 시간으로 쓰지 않습니다.

Preserve 3,613 male-cohort source rows from Card’s retained proximity.zip. Y is source-trimmed lwage76, the log of 1976 hourly wage in cents, not newly logged raw wage. Predictors are ed76 schooling and recorded age76. Retain 3,010 complete rows and 603 unavailable logs.

HC1 is the default. A cluster comparison uses original reg661–reg669 indicators to form nine recorded 1966 regions. Every source row has exactly one active flag. Do not relabel this as current 1976 residence.

Recorded regions do not prove independent errors across regions. Unit working weights do not apply source survey weights, and robust uncertainty for a schooling coefficient does not identify a causal schooling return. Anonymous source order is not calendar time.

기초Foundations

43. 실제 점포 · 원 체인 분류와 소수 군집43. Actual establishments · original chains and few groups

Card·Krueger의 보관 njmin.zip에서 public.dat 필드와 원 SAS INPUT 변수 순서를 대조합니다. 두 1992년 시점의 전일제·시간제·관리자 수로 각 FTE=전일제+0.5×시간제+관리자를 계산합니다. 하나라도 미관측이면 해당 FTE를 미관측으로 남기며 원행 410개·완전짝 384개를 보존합니다.

Y는 후 FTE, 설명 열은 전 FTE와 원 NJ 지표 0/1입니다. 원 체인 코드 1–4를 작업 군집으로 사용하고 기본 CR1을 계산합니다. 네 집단만으로 군집 수가 커지는 점근 근사가 입증되지 않으며, 주 정책의 인과 추론에 적절한 군집 수준이 확인된 것도 아닙니다.

원행 42와 168은 모두 코드 407이지만 서로 다른 체인·주·FTE를 갖습니다. 두 행을 보존합니다. 원행 키는 위치를 식별할 뿐 실제 개체의 고유성·독립성까지 증명하지 않습니다. 두 시점을 각각 독립 표본으로 늘리거나 원행 순서를 달력으로 쓰지도 않습니다.

Compare public.dat fields with the original SAS INPUT variable order in the retained Card–Krueger njmin.zip. At each 1992 wave, calculate FTE as full-time plus half part-time plus managers. Any unavailable component leaves that wave’s FTE unavailable. Preserve 410 source records and 384 complete pairs.

Y is after-wave FTE; predictors are before FTE and original NJ indicator 0/1. Original chain codes 1–4 define a working clustering, with default CR1. Four groups do not establish growing-cluster asymptotics or appropriate causal state-policy clustering.

Positions 42 and 168 both use code 407 but have different chains, states and FTE. Keep both. Positional keys do not prove unique real-world units or independence. Do not turn waves into independent records or source order into calendar time.

기초Foundations

44. 원 입력에서 계수·점수·공분산을 다시 계산한다44. Recalculate coefficients, scores and covariance from original inputs

동반 Python은 Fraction으로 원입력의 평균·회귀·잔차·레버리지·점수 곱합을 정확하게 다시 계산합니다. R은 base 기능으로 같은 원자료 선택과 공분산 규약을 재계산합니다. 저장된 case JSON의 계수나 엔진 출력을 숫자 입력으로 복사하지 않습니다.

원보관 파일이 있으면 그것을 우선 읽고, 공개 묶음만 있는 환경에서는 최소 원행 CSV를 입력으로 사용했다는 사실을 기록합니다. 파생 요약·행별 잔차·공분산 표는 대조 목표입니다. 해시는 어떤 바이트를 사용했는지 나타내지만 실제 iid·군집 독립·정상성의 증거는 아닙니다.

정확 분수와 소수의 상대·절대 오차를 구별하고, 작은 비영 수를 절대 허용오차만으로 0처럼 통과시키지 않습니다. 원 다운로드일과 이번 검토일·실행 환경도 따로 남깁니다.

The Python companion recalculates means, fits, residuals, leverage and score products from raw inputs with Fraction. Base R independently recomputes the same source selections and covariance conventions. Stored case coefficients and engine outputs are not numerical inputs.

Use retained originals when available; otherwise disclose the public minimal-row CSV fallback. Derived summaries, residual rows and covariance tables are validation targets. Hashes identify bytes without proving iid sampling, cluster independence or stationarity.

Distinguish exact fractions from decimal tolerances, and do not excuse small nonzero discrepancies using only absolute error. Keep original download dates, current review and execution environments separate.

기초Foundations

45. 관측 요약과 조건부 추론의 보고서를 쓴다45. Write an observed-summary and conditional-inference report

첫 문단에는 관측 단위·기간·원행·가용 분모·결과 단위를 적고 같은 완전행의 계수와 잔차 계산을 보고합니다. 다음에는 관심 표적과 표집·의존·모멘트·설계 전제를 적습니다. 확인하지 않은 조건은 확인했다고 바꾸어 쓰지 않습니다.

공분산 표에는 방법·레버리지 또는 군집 수·시차·보정 배수·가정 임계값을 함께 둡니다. HC1·CR1·HAC를 나란히 제시하면 각각 무엇을 허용하고 무엇을 제한하는지 설명합니다. 숫자 크기나 유의성만으로 ‘맞는 방법’을 선택하지 않습니다.

마지막에는 실제 추론의 남은 한계를 구체적으로 연결합니다. 국가 11연도, 지역 9개, 체인 4개라는 정보량과 모형 선택을 쓰고, 단순히 ‘강건하므로 안전하다’고 끝내지 않습니다. 계산 재현과 실증 주장의 타당성을 각각 평가합니다.

State observational units, periods, source rows, availability and units before reporting coefficients and residual calculations on one complete subset. Then define the target and sampling, dependence, moment and design premises. Leave unchecked conditions explicitly unchecked.

Covariance tables should show method, leverage or cluster count, lags, correction factor and supplied cutoff. Explain the restrictions behind each HC1, CR1 or HAC comparison. Choose methods from the design, not significance or numerical size alone.

Connect limitations to eleven country-years, nine regional groups or four chains and to model choices. A robust label is not a general assurance. Evaluate reproducible computation separately from empirical validity.

기초Foundations

46. 실습 F · 실제 설계의 작업 공분산 비교46. Lab F · Working covariance comparisons on observed designs

국가·사람·점포 자료를 고르고 가용 분모·계수·원 분류를 확인합니다. 같은 설계에서 HC 또는 군집 규칙을 바꾸어도 관측 계수가 그대로인지, 실제 국가의 명시 연도에서만 HAC를 사용하는지 살펴봅니다.

표시 구간은 선택한 공분산·임계값에 따른 작업 구간입니다. 관측 자료의 iid·군집 독립·시계열 조건·인과 식별을 엔진이 검증했다고 읽지 않습니다. 작은 군집 수, 미정의 보정, 분산 0과 표시 한계도 함께 보존합니다.

Select country, person or establishment data and inspect denominators, coefficients and original grouping. Check that switching covariance recipes leaves the observed fit unchanged, and that actual-source HAC is allowed only for explicitly supported country years.

Displayed intervals use a chosen covariance and cutoff. The engine does not verify actual iid sampling, cluster independence, time-series conditions or causality. Preserve few-group limits, undefined corrections, zero variance and display limits.

기초Foundations

47. 실제 자료 사례 · 단위와 추론의 가정을 함께 읽는다47. Actual cases · read units alongside inferential premises

국가 · 한국 연간 적합의 잔차와 시차 규칙

2026년 10월 20일 보관한 World Bank 원 다중 지표 API를 10월 27일 다시 읽어 한국 KOR의 2014–2024년 11개 GDP 관측을 선택했습니다. 지표는 NY.GDP.PCAP.KD이며 단위는 2015년 불변 USD/명입니다. 이번 검토는 새 빈티지 수집이 아니며 각 원 배열 위치를 보존합니다.

Y를 1인당 실질 GDP, X를 연도−2019로 놓고 상수 있는 직선을 기술적으로 적합합니다. X의 원점 이동은 추세 기울기와 잔차를 바꾸지 않습니다. 한 해를 하나의 관측 행으로 쓰며, 연도 순서는 원 관측 연도로 확인합니다. 11개 연도를 임의 순서로 섞거나 원행 위치를 시간으로 대신하지 않습니다.

실제 원 관측 · 반올림 GDP
연도원 배열 행XY 2015 USD/명
20142621-529,470.67
20152620-430,171.79
20162619-331,005.41
20172618-231,979.90
20182617-132,852.89
20192616033,496.31
20202615133,215.93
20212614234,792.94
20222613335,809.01
20232612436,347.70
20242611537,048.43
같은 완전행 OLS · 소수는 반올림
양값
원행 / 완전행11 / 11
절편33,290.089779
첫 설명 열 기울기754.475929
둘째 설명 열 기울기—
기술적 MSE86,288.055017
잔차 평균0.000000
레버리지 합2
G=ATAe^=Y−Aβ^s^i=aie^iC^=G−1M^G−1\begin{gathered}G=A^{\mathsf T}A\\\widehat e=Y-A\widehat\beta\\\widehat s_i=a_i\widehat e_i\\\widehat C=G^{-1}\widehat M G^{-1}\end{gathered}

첫 기울기는 약 754.475929 (2015 USD/명)/년입니다. 그림의 세로값은 같은 적합에서 만든 ê²이며 단위는 (2015 USD/명)²입니다. 수평 MSE 안내선은 이 11행의 잔차 제곱평균이지 실제 조건부 오차분산 함수나 참 오차 관측이 아닙니다. 관측 점은 연결하지 않습니다.

HC0와 HAC 최대 시차 0은 같은 계산입니다. 시차 1 HAC는 실제 연도 차이가 1인 10개 쌍에 가중치 1/2를 사용합니다. L=2·3과 자유도 배수 11/9를 붙인 L=1 결과도 공개해 규약의 민감도를 비교합니다. 이 유한 계산이 정상성·약의존·대역폭 수열·CLT 또는 실제 포함률을 확인한 것은 아닙니다.

같은 첫 기울기 · 임계값 1.96은 선언한 작업값 · 실제 95% 포함률 보장 아님
규칙분산표준오차작업 구간범위
HC0147.42067440912.141692[730.678213, 778.273644]작업 기준
HC1180.18082427813.423145[728.166564, 780.785293]작업 기준
HC2173.85859303713.185545[728.632261, 780.319596]작업 기준
HC3206.07001399214.355139[726.339856, 782.612001]작업 기준
CR00.0000000000.000000—Wald 미정의
CR1———군집 수 1: CR1 미정의
HAC-L0147.42067440912.141692[730.678213, 778.273644]작업 기준
HAC-L1174.87399151213.223993[728.556902, 780.394955]작업 기준
HAC-L2151.36023411612.302855[730.362333, 778.589524]작업 기준
HAC-L3138.84346652211.783186[731.380884, 777.570973]작업 기준
HAC-L1-df213.73487851514.619674[725.821367, 783.130490]작업 기준
원 분류별 점수 합 · 독립 군집 인증 아님 · 소수 반올림
원 군집원행완전행절편 점수첫 열 점수둘째 열 점수
KOR11110.000000.00000—
한국이라는 한 군집의 CR0가 0이면 불확실성도 없나요?

아닙니다. 같은 OLS에서 전체 점수 합이 0이므로 한 군집으로 합친 CR0가 0이 되는 대수 결과입니다. CR1은 군집 수 1 때문에 미정의이며, 표준오차 0으로 나누는 Wald도 미정의입니다. 실제 오차나 반복표집 분산이 0이라는 증거가 아닙니다.

2020년을 가정하여 가리면 2019년과 2021년을 시차 1로 보나요?

아닙니다. 원 차이는 2년입니다. 원래 11행에서 그 한 행만 빠지면 가용 10행의 시차 1 쌍은 8개입니다. 완전행을 연속 번호로 압축하면 2019–2021을 잘못 인접 처리합니다. 실제 자료에서는 2020 값이 가용하므로 이는 별도 가정 실험입니다.

HAC를 쓰면 추세 기울기가 정책의 효과가 되나요?

HAC는 선택한 기울기 주변 공분산의 작업 규칙입니다. 추세의 인과적 의미·누락 요인·비정상성·표적 모집단은 별도 문제이며 이 직선과 11개 관측만으로 정책 개입 효과를 식별하지 않습니다.

공개 다운로드 · 원행·정확 분수·별도 가정 행

actual11-KOR-annual-GDPpc-year-and-source-positions.csv · actual-descriptive-projection-summary-exact.csv · actual-all-source-rows-fit-leverage-and-scores-exact.csv · actual-working-covariance-recipes-and-selected-slope.csv · actual-working-covariance-elements-exact.csv · actual-cluster-score-sums-exact.csv · actual-KOR-HAC-lag-weights-and-symmetric-cross-products.csv · assumed-six-row-teaching-design-residuals-and-scores.csv · assumed-six-row-covariance-recipe-summary.csv

사람 · 교육 기울기와 원 1966년 지역 분류

보관 Card proximity.zip의 nls.dat와 code_bk.txt를 직접 읽어 남성 코호트 원행 3,613개를 보존합니다. Y는 1976년 시간당 임금 센트의 원자료 절단 로그 lwage76, X는 ed76 교육 연수, 두 번째 설명 열은 age76 기록 나이입니다. 원시급을 새로 로그로 바꾸어 Y를 대체하지 않습니다. 미가용 로그 603개를 0으로 채우지 않으므로 같은 완전행 3,010개로 적합합니다.

군집 비교에는 원 reg661–reg669의 1966년 지역 지시자를 사용합니다. 각 원행에서 아홉 지시자 중 정확히 하나가 1인 것을 대조했으며 원 코드와 원행 위치를 각각 남깁니다. 이는 실제 관측 분류지만 지역 간 오차가 독립이거나 아홉 군집이 점근 근사에 충분하다는 인증은 아닙니다. 원행 순서는 시간이 아니므로 이 자료에 HAC를 자동 적용하지 않습니다.

같은 완전행 OLS · 소수는 반올림
양값
원행 / 완전행3,613 / 3,010
절편4.422090
첫 설명 열 기울기0.052511
둘째 설명 열 기울기0.040657
기술적 MSE0.161190
잔차 평균0.000000
레버리지 합3
같은 첫 기울기 · 임계값 1.96은 선언한 작업값 · 실제 95% 포함률 보장 아님
규칙분산표준오차작업 구간범위
HC00.0000077350.002781[0.047060, 0.057962]작업 기준
HC10.0000077430.002783[0.047057, 0.057964]작업 기준
HC20.0000077490.002784[0.047055, 0.057967]작업 기준
HC30.0000077620.002786[0.047050, 0.057971]작업 기준
CR00.0000519820.007210[0.038379, 0.066642]작업 기준
CR10.0000585190.007650[0.037517, 0.067504]작업 기준
원 분류별 점수 합 · 독립 군집 인증 아님 · 소수 반올림
원 군집원행완전행절편 점수첫 열 점수둘째 열 점수
region1966_1161140-2.77598-45.35978-78.41327
region1966_256048441.36039545.017381,211.50322
region1966_933827229.33816388.91168847.99378
region1966_370158967.54212793.280301,913.11439
region1966_4250193-1.19486-52.02148-56.70566
region1966_5757627-65.02128-769.99106-1,846.31297
region1966_7398331-29.68777-368.71388-834.65993
region1966_6336289-32.51474-378.52488-952.73443
region1966_811285-7.04604-112.59828-203.78514

교육 기울기는 약 0.052511 로그단위/교육년으로 모든 표의 규칙에서 같습니다. HC1의 기울기 표준오차는 약 0.002783, 원 지역 CR1은 약 0.007650입니다. 차이는 같은 적합에서 점수를 행별로 제곱하는지 지역 안에서 먼저 합치는지에 따라 생깁니다. 더 큰 값이 언제나 더 옳다는 판정도, 교육의 인과 수익률이 확인되었다는 판정도 아닙니다.

HC1 배수는 3010/3007, 지역 CR1 배수는 (9/8)(3009/3007)=27081/24056입니다. 표준오차 단위는 로그단위/교육년이며 분산은 그 제곱입니다. 작업 구간은 1.96이라는 선언한 임계값으로 계산한 수치 비교이며 실제 95% 신뢰도·표본 대표성·선택 편향 해결을 보장하지 않습니다. 각 지역 점수 합이 0일 필요는 없지만 아홉 지역을 모두 합친 점수는 OLS 항등식으로 0입니다.

3,613행을 원래 순서로 두면 시계열 의존을 알 수 있나요?

아닙니다. 원행 위치는 보관 기록의 식별 키이지 실제 시간 척도가 아닙니다. 지역 지시자는 1966년 분류이고 임금은 1976년 결과입니다. 표집·시간·군집 의미를 별도로 설명하지 않은 순번 HAC는 실제 달력 HAC가 아닙니다.

결측 로그 603개를 0으로 채우면 강건 추론으로 해결되나요?

0은 로그임금의 실제 수치입니다. 그렇게 채우면 가용 자료·계수·잔차·점수가 모두 달라집니다. 강건 공분산은 미관측 결과를 복원하거나 결측 선택을 식별하는 방법이 아닙니다. 공개 원행 CSV는 미가용 상태와 기여 분모를 보존합니다.

아홉 군집이면 자유도 8의 정확 t 분포인가요?

그렇지 않습니다. 소수 군집에서 유한 분포는 일반적으로 정해지지 않습니다. t 작업 기준을 쓰려면 자유도와 임계값을 명시하되 정확 법칙·포함률이 검증되었다고 부르지 않습니다.

공개 다운로드 · 원행·정확 분수·별도 가정 행

actual3613-schooling-age-source-log-and-original1966-regions.csv · actual-descriptive-projection-summary-exact.csv · actual-all-source-rows-fit-leverage-and-scores-exact.csv · actual-working-covariance-recipes-and-selected-slope.csv · actual-working-covariance-elements-exact.csv · actual-cluster-score-sums-exact.csv · actual-KOR-HAC-lag-weights-and-symmetric-cross-products.csv · assumed-six-row-teaching-design-residuals-and-scores.csv · assumed-six-row-covariance-recipe-summary.csv

점포 · 원 체인 네 개에서 먼저 합치는 점수

보관 Card–Krueger njmin.zip의 public.dat 필드와 원 SAS INPUT 변수 순서를 대조합니다. 원 관측 단위는 1992년 NJ·PA 음식점의 두 조사 시점이 같은 행에 있는 410개 기록입니다. 시점별 FTE는 아래 식이며 전일제·시간제·관리자 중 하나라도 미관측이면 그 시점 FTE도 미관측입니다.

FTEt=FTt+0.5PTt+Managerst\begin{aligned}\mathrm{FTE}_t&=\mathrm{FT}_t+0.5\mathrm{PT}_t\\&\quad+\mathrm{Managers}_t\end{aligned}

Y=후 FTE, X=전 FTE, 두 번째 설명 열=원 NJ 지표 0/1로 기술적 평면을 적합합니다. 완전짝은 384개이고 불완전 26행은 다운로드에 그대로 남깁니다. 군집은 원 chain 1–4이며, 같은 체인 안의 점수를 먼저 더한 뒤 외적합니다. 네 체인이 독립 군집이라는 확인이나 많은 군집의 극한은 이 원표만으로 얻지 못합니다.

실제 원 코드 407 · 두 원행 모두 보존
원행코드체인주전 FTE후 FTE
424072PA11.0011.00
1684074NJ12.0014.50
같은 완전행 OLS · 소수는 반올림
양값
원행 / 완전행410 / 384
절편8.905428
첫 설명 열 기울기0.521439
둘째 설명 열 기울기1.338523
기술적 MSE58.044177
잔차 평균0.000000
레버리지 합3
같은 첫 기울기 · 임계값 1.96은 선언한 작업값 · 실제 95% 포함률 보장 아님
규칙분산표준오차작업 구간범위
HC00.0021911450.046810[0.429692, 0.613186]작업 기준
HC10.0022083990.046994[0.429331, 0.613546]작업 기준
HC20.0022658710.047601[0.428141, 0.614737]작업 기준
HC30.0023453270.048429[0.426519, 0.616359]작업 기준
CR00.0084448780.091896[0.341323, 0.701555]작업 기준
CR10.0113189450.106391[0.312913, 0.729964]작업 기준
원 분류별 점수 합 · 독립 군집 인증 아님 · 소수 반올림
원 군집원행완전행절편 점수첫 열 점수둘째 열 점수
chain_1171159294.395133,803.88366224.21095
chain_28079-247.45742-3,279.86951-229.58740
chain_4605258.10326476.5250352.83244
chain_39994-105.04098-1,000.53918-47.45599

전 FTE 기울기는 약 0.521439로 같습니다. HC1의 첫 기울기 표준오차는 약 0.046994, 원 체인 CR1은 약 0.106391입니다. CR1 배수는 (4/3)(383/381)=1532/1143입니다. 기울기와 그 표준오차의 단위는 FTE/FTE이며 둘째 주 지표 기울기는 FTE 단위라 공분산 성분의 단위도 따로 읽어야 합니다.

같은 코드 407의 원행 42는 체인 2·PA·FTE 11→11, 원행 168은 체인 4·NJ·FTE 12→14.5입니다. 원 코드가 반복된다는 이유만으로 합치지 않습니다. 이 평면의 NJ 계수는 관측 대비이며 임금 정책의 인과효과라는 추가 식별은 여기서 나오지 않습니다. 군집 규칙을 바꾸는 것은 정책 식별을 대신하지 않습니다.

384짝을 두 시점 768개의 독립 행으로 늘려도 되나요?

아닙니다. 이번 회귀는 같은 원행의 전 FTE와 후 FTE를 한 쌍으로 사용합니다. 시점 행을 늘려 다른 회귀로 바꾸려면 관측 단위·설계·표적·의존 구조를 새로 정의해야 합니다. 숫자를 늘렸다고 독립 정보가 늘었다고 볼 수 없습니다.

체인 네 개의 CR1이면 모든 정책 불확실성을 반영했나요?

아닙니다. 원 체인은 관측 분류이고 실제 공통 충격의 범위는 별도 근거가 필요합니다. 소수 군집·주 수준 공통성·선택·모형 오차·인과 표적 문제를 자동 해결하지 않습니다. 다른 규칙을 비교할 때는 그 규칙마다 전제를 함께 적습니다.

어떤 표준오차가 유의한지 보고 규칙을 고르면 되나요?

분석 기준 선택도 자료에 반응하는 절차가 됩니다. 먼저 표적·군집/시차의 근거·공분산 규약·작업 임계값을 밝히고 민감도를 공개합니다. 표에는 동일한 기울기의 여러 계산을 나란히 두되 최종 선택의 근거를 감추지 않습니다.

공개 다운로드 · 원행·정확 분수·별도 가정 행

actual410-within-source-FTE-state-and-chain-records.csv · actual-descriptive-projection-summary-exact.csv · actual-all-source-rows-fit-leverage-and-scores-exact.csv · actual-working-covariance-recipes-and-selected-slope.csv · actual-working-covariance-elements-exact.csv · actual-cluster-score-sums-exact.csv · actual-KOR-HAC-lag-weights-and-symmetric-cross-products.csv · assumed-six-row-teaching-design-residuals-and-scores.csv · assumed-six-row-covariance-recipe-summary.csv

Country · annual Korean residuals and lag conventions

On 27 October 2026 we reread the World Bank multi-indicator API retained on 20 October, selecting eleven KOR GDP observations from 2014–2024. Indicator NY.GDP.PCAP.KD is measured in constant-2015 USD/person. This review is not a new vintage collection; each original array position is preserved.

Fit an intercept line descriptively with Y=real GDP/person and X=year−2019. Shifting the time origin leaves the trend slope and residuals unchanged. Each year supplies one observed row, ordered by its source observation year. Do not shuffle years or replace calendar time with source-array position.

Actual source observations · rounded GDP
YearSource rowXY 2015 USD/person
20142621-529,470.67
20152620-430,171.79
20162619-331,005.41
20172618-231,979.90
20182617-132,852.89
20192616033,496.31
20202615133,215.93
20212614234,792.94
20222613335,809.01
20232612436,347.70
20242611537,048.43
OLS on the same complete rows · rounded decimals
QuantityValue
Source / complete rows11 / 11
Intercept33,290.089779
First-predictor slope754.475929
Second-predictor slope—
Descriptive MSE86,288.055017
Residual mean0.000000
Leverage sum2
G=ATAe^=Y−Aβ^s^i=aie^iC^=G−1M^G−1\begin{gathered}G=A^{\mathsf T}A\\\widehat e=Y-A\widehat\beta\\\widehat s_i=a_i\widehat e_i\\\widehat C=G^{-1}\widehat M G^{-1}\end{gathered}

The first slope is approximately 754.475929 (constant-2015 USD/person)/year. Vertical plot values are fitted ê² in (constant-2015 USD/person)². The horizontal MSE guide averages these eleven squared residuals; it is neither a known conditional error-variance function nor observed true errors. Observed points are unconnected.

HC0 equals HAC at maximum lag zero. Lag-one HAC uses ten pairs one actual calendar year apart with weight one-half. We also expose L=2 and 3 and L=1 with the df multiplier 11/9. These finite calculations establish neither stationarity, weak dependence, bandwidth-sequence conditions, a CLT nor actual coverage.

Same first slope · declared working cutoff 1.96 · no certified actual 95% coverage
RecipeVarianceSEWorking intervalScope
HC0147.42067440912.141692[730.678213, 778.273644]Working reference
HC1180.18082427813.423145[728.166564, 780.785293]Working reference
HC2173.85859303713.185545[728.632261, 780.319596]Working reference
HC3206.07001399214.355139[726.339856, 782.612001]Working reference
CR00.0000000000.000000—Wald undefined
CR1———One cluster: CR1 undefined
HAC-L0147.42067440912.141692[730.678213, 778.273644]Working reference
HAC-L1174.87399151213.223993[728.556902, 780.394955]Working reference
HAC-L2151.36023411612.302855[730.362333, 778.589524]Working reference
HAC-L3138.84346652211.783186[731.380884, 777.570973]Working reference
HAC-L1-df213.73487851514.619674[725.821367, 783.130490]Working reference
Score sums by original classification · no independence certification · rounded decimals
Original groupSource rowsComplete rowsIntercept scoreFirst scoreSecond score
KOR11110.000000.00000—
Does zero CR0 for the single Korean cluster mean no uncertainty?

No. The total OLS score sum is zero, so aggregating everything into one group makes CR0 zero algebraically. CR1 is undefined with one cluster, as is division by a zero SE in a Wald statistic. None proves zero actual error or sampling variance.

If 2020 is hypothetically hidden, are 2019 and 2021 lag one?

No. Their original gap is two years. Removing only that row from the eleven leaves ten rows and eight lag-one pairs. Consecutive renumbering incorrectly adds 2019–2021. The actual 2020 value is available, so this is a separate hypothetical experiment.

Does HAC make the trend slope a policy effect?

HAC is a working covariance recipe around a chosen slope. Causal meaning, omitted factors, nonstationarity and the target population remain separate; one line and eleven observations do not identify a policy intervention effect.

Public downloads · source positions, exact fractions and separately assumed rows

actual11-KOR-annual-GDPpc-year-and-source-positions.csv · actual-descriptive-projection-summary-exact.csv · actual-all-source-rows-fit-leverage-and-scores-exact.csv · actual-working-covariance-recipes-and-selected-slope.csv · actual-working-covariance-elements-exact.csv · actual-cluster-score-sums-exact.csv · actual-KOR-HAC-lag-weights-and-symmetric-cross-products.csv · assumed-six-row-teaching-design-residuals-and-scores.csv · assumed-six-row-covariance-recipe-summary.csv

People · schooling slope and original 1966 region classifications

Read nls.dat and code_bk.txt in the retained Card proximity.zip, preserving all 3,613 male-cohort source rows. Y is source-trimmed lwage76, the log of 1976 hourly wages in cents; X is ed76 schooling and the second predictor is recorded age76. Do not replace Y with a newly logged raw wage. Retain 603 unavailable logs, fitting the same 3,010 complete rows without zero filling.

The cluster comparison uses original reg661–reg669 indicators for regions in 1966. We checked exactly one active indicator per source row and preserved both original codes and positional keys. These are observed classifications, not certification of independent errors across regions or adequate large-cluster approximation with nine groups. Source-row order is not time, so HAC is not automatically available here.

OLS on the same complete rows · rounded decimals
QuantityValue
Source / complete rows3,613 / 3,010
Intercept4.422090
First-predictor slope0.052511
Second-predictor slope0.040657
Descriptive MSE0.161190
Residual mean0.000000
Leverage sum3
Same first slope · declared working cutoff 1.96 · no certified actual 95% coverage
RecipeVarianceSEWorking intervalScope
HC00.0000077350.002781[0.047060, 0.057962]Working reference
HC10.0000077430.002783[0.047057, 0.057964]Working reference
HC20.0000077490.002784[0.047055, 0.057967]Working reference
HC30.0000077620.002786[0.047050, 0.057971]Working reference
CR00.0000519820.007210[0.038379, 0.066642]Working reference
CR10.0000585190.007650[0.037517, 0.067504]Working reference
Score sums by original classification · no independence certification · rounded decimals
Original groupSource rowsComplete rowsIntercept scoreFirst scoreSecond score
region1966_1161140-2.77598-45.35978-78.41327
region1966_256048441.36039545.017381,211.50322
region1966_933827229.33816388.91168847.99378
region1966_370158967.54212793.280301,913.11439
region1966_4250193-1.19486-52.02148-56.70566
region1966_5757627-65.02128-769.99106-1,846.31297
region1966_7398331-29.68777-368.71388-834.65993
region1966_6336289-32.51474-378.52488-952.73443
region1966_811285-7.04604-112.59828-203.78514

The schooling slope is approximately 0.052511 log units/schooling year under every recipe. Its HC1 SE is approximately 0.002783 versus 0.007650 for original-region CR1. The difference comes from squaring row scores versus first summing within regions. It proves neither that a larger value is always correct nor that a causal schooling return is identified.

HC1 multiplies by 3010/3007; regional CR1 uses (9/8)(3009/3007)=27081/24056. SE units are log units/schooling year, and variance units are their square. Intervals use a declared 1.96 cutoff for numerical comparison, without certified 95% coverage, representativeness or correction of selection bias. Individual region scores need not be zero, but their total is zero by the OLS identity.

Does keeping the original order of 3,613 rows establish serial dependence?

No. Source position identifies a retained record rather than calendar time. Region indicators refer to 1966 and wages to 1976. A positional HAC calculation without a sampling/time interpretation is not actual calendar HAC.

Can robust inference justify filling 603 missing logs with zero?

Zero is a numerical log-wage outcome. Filling it changes the sample, coefficients, residuals and scores. A robust covariance recipe neither recovers missing outcomes nor identifies missingness selection. The source-row CSV preserves availability and contribution denominators.

Do nine groups imply an exact t distribution with eight df?

No. A finite distribution is generally not determined merely by the group count. If a t working reference is used, specify its df and cutoff without claiming an established exact law or coverage.

Public downloads · source positions, exact fractions and separately assumed rows

actual3613-schooling-age-source-log-and-original1966-regions.csv · actual-descriptive-projection-summary-exact.csv · actual-all-source-rows-fit-leverage-and-scores-exact.csv · actual-working-covariance-recipes-and-selected-slope.csv · actual-working-covariance-elements-exact.csv · actual-cluster-score-sums-exact.csv · actual-KOR-HAC-lag-weights-and-symmetric-cross-products.csv · assumed-six-row-teaching-design-residuals-and-scores.csv · assumed-six-row-covariance-recipe-summary.csv

Establishments · sum scores first within four original chains

Compare public.dat fields with the original SAS INPUT variable order in the retained Card–Krueger njmin.zip. Units are 410 NJ/PA restaurant records with two 1992 survey waves on the same source row. Define each wave’s FTE below; an unavailable full-time, part-time or manager component makes that wave’s FTE unavailable.

FTEt=FTt+0.5PTt+Managerst\begin{aligned}\mathrm{FTE}_t&=\mathrm{FT}_t+0.5\mathrm{PT}_t\\&\quad+\mathrm{Managers}_t\end{aligned}

Fit a descriptive plane with Y=after FTE, X=before FTE and the original NJ indicator 0/1 as the second predictor. Preserve all 26 incomplete rows alongside 384 complete pairs. Use original chain 1–4 classifications, summing scores within a chain before its outer product. The source table alone establishes neither independent chain clusters nor a many-cluster limit.

Actual code 407 · preserve both source rows
Source rowCodeChainStateBefore FTEAfter FTE
424072PA11.0011.00
1684074NJ12.0014.50
OLS on the same complete rows · rounded decimals
QuantityValue
Source / complete rows410 / 384
Intercept8.905428
First-predictor slope0.521439
Second-predictor slope1.338523
Descriptive MSE58.044177
Residual mean0.000000
Leverage sum3
Same first slope · declared working cutoff 1.96 · no certified actual 95% coverage
RecipeVarianceSEWorking intervalScope
HC00.0021911450.046810[0.429692, 0.613186]Working reference
HC10.0022083990.046994[0.429331, 0.613546]Working reference
HC20.0022658710.047601[0.428141, 0.614737]Working reference
HC30.0023453270.048429[0.426519, 0.616359]Working reference
CR00.0084448780.091896[0.341323, 0.701555]Working reference
CR10.0113189450.106391[0.312913, 0.729964]Working reference
Score sums by original classification · no independence certification · rounded decimals
Original groupSource rowsComplete rowsIntercept scoreFirst scoreSecond score
chain_1171159294.395133,803.88366224.21095
chain_28079-247.45742-3,279.86951-229.58740
chain_4605258.10326476.5250352.83244
chain_39994-105.04098-1,000.53918-47.45599

The before-FTE slope remains approximately 0.521439. Its HC1 SE is approximately 0.046994 versus 0.106391 for original-chain CR1. The CR1 multiplier is (4/3)(383/381)=1532/1143. This slope and its SE have FTE/FTE units; the state-indicator slope instead has FTE units, so covariance components require separate unit interpretation.

Repeated code 407 refers to source row 42, chain 2 / PA / FTE 11→11, and row 168, chain 4 / NJ / FTE 12→14.5. Do not merge records merely because a code repeats. The NJ coefficient is an observed conditional-plane contrast, without additional identification of a causal wage-policy effect. Changing a clustering recipe cannot replace identification.

May 384 pairs become 768 independent wave rows?

No. This regression uses before and after FTE from one source record as a pair. A different wave-row analysis needs a newly defined unit, design, target and dependence structure. More rows alone do not establish more independent information.

Does CR1 with four chains capture every policy uncertainty?

No. An original chain is an observed classification; the extent of actual shared shocks needs evidence. Few groups, state-level shocks, selection, misspecification and causal targeting are not automatically resolved. State each recipe’s premises when comparing alternatives.

May the rule be selected after seeing which SE gives significance?

That makes reference selection itself data dependent. Declare the target, justification for clustering/lags, covariance convention and working cutoff, then report sensitivity. Show multiple calculations on the same slope without hiding how a final rule was selected.

Public downloads · source positions, exact fractions and separately assumed rows

actual410-within-source-FTE-state-and-chain-records.csv · actual-descriptive-projection-summary-exact.csv · actual-all-source-rows-fit-leverage-and-scores-exact.csv · actual-working-covariance-recipes-and-selected-slope.csv · actual-working-covariance-elements-exact.csv · actual-cluster-score-sums-exact.csv · actual-KOR-HAC-lag-weights-and-symmetric-cross-products.csv · assumed-six-row-teaching-design-residuals-and-scores.csv · assumed-six-row-covariance-recipe-summary.csv

기초Foundations

48. 강의·학자·함께 읽기로 조건을 다시 확인한다48. Revisit assumptions through a lecture, scholar and readings

Francis DiTraglia의 공식 Core Empirical Research Methods 과목 페이지에서 W6 ‘Heteroskedasticity and Clustering’ 영상을 연결합니다. 주제와 제작자 페이지의 실제 링크를 확인했으며, 재생 확인은 별도입니다. 영상의 공분산 계산을 이 장의 작은 표와 대조하되 실제 자료의 생성 법칙으로 바꾸어 읽지 않습니다.

UC San Diego의 2012년 Halbert White 추모 글에서 1980년 강건 표준오차 연구의 맥락을 읽습니다. 기관 글의 소개가 모든 모형 오류를 수정할 수 있다는 수학 정리는 아니므로, 이 장에서는 평균·분산·의존·식별 조건을 구체적으로 따릅니다.

함께 읽기는 IEWR §5.4의 핵심개념 5.4 정의에 한정합니다. 심화는 Cameron–Miller(2015)의 §II.C, 인쇄 324–325쪽 식 (10)–(12), 그리고 인쇄 340쪽 §VI 도입을 지정합니다. 군집 점수를 먼저 합하는 이유와 유한 보정·작업 t 기준 이후에도 남는 소수 군집 문제를 설명하세요. HAC의 명칭·역사는 NBER의 Newey–West 공식 논문 소개 메타데이터와 연결하되, 그 소개만 읽고 논문 전체를 읽었다고 하지 않습니다.

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

Use Francis DiTraglia’s official Core Empirical Research Methods page for the W6 Heteroskedasticity and Clustering video. Its topic and creator-page link were checked; playback is separate. Compare its covariance ideas with the small teaching table rather than treating them as an established actual data law.

UC San Diego’s 2012 Halbert White tribute supplies historical context for the 1980 robust-standard-error work. An institutional introduction is not a theorem repairing every model error; retain specific mean, variance, dependence and identification premises.

Restrict the introductory reading to IEWR §5.4 Key Concept 5.4 definitions. For a second pass, use Cameron–Miller (2015) §II.C, equations (10)–(12) on printed pages 324–325, and the §VI opening on printed page 340. Explain cluster-score aggregation and why finite corrections or a working-t reference do not eliminate few-cluster problems. NBER’s Newey–West landing metadata supplies HAC history; it is distinct from reading the whole paper.

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 metr05-reproduce.py
Rscript --vanilla --encoding=UTF-8 metr05-reproduce.R

결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. 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.

본문 영상 · 이분산과 군집 점수Core video · heteroskedasticity and clustered scores

Francis DiTraglia · Core Empirical Research Methods · Week 6

공식 과목 페이지의 W6 Heteroskedasticity and Clustering을 봅니다. 같은 OLS 적합과 다른 공분산 계산을 구별하고, 집단 점수를 먼저 합치는 이유를 여섯 가정 행에서 재현하세요.Use the official course page’s W6 Heteroskedasticity and Clustering. Separate the unchanged OLS fit from covariance recipes, and reproduce why scores are summed within groups before squaring.

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

보고 읽은 뒤 답하기Respond after watching/reading 강건 공분산을 선택하면 내생성도 사라지나요?Does selecting a robust covariance eliminate endogeneity?

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

그렇지 않습니다. 선택한 계수 표적의 식별과 공분산 근사의 조건은 서로 다른 층입니다. 관측 잔차의 직교만으로 실제 조건부 평균 0이나 인과효과가 확인되지 않습니다.No. Identification of a coefficient target and premises for a covariance approximation are different layers. Fitted residual orthogonality does not verify actual conditional centering or causality.

Halbert White · 이분산에 강건한 추론의 맥락Halbert White · context for heteroskedasticity-robust inference

UC San Diego · institutional obituary · 3 April 2012

공식 추모 글에서 White의 1980년 이분산 강건 연구 맥락을 읽습니다. 연구자의 이름은 이번 원자료의 독립성이나 HC1의 유한 불편성을 인증하지 않습니다.Read the institutional obituary for the context of White’s 1980 work on heteroskedasticity-robust inference. A scholar’s name certifies neither independence in these data nor finite-sample unbiasedness of HC1.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading HC1의 n/(n−p)만 붙이면 모든 이분산에서 정확한가요?Does multiplying by n/(n−p) make HC1 exact under every heteroskedastic law?

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

아닙니다. 이는 계산 규약의 유한 보정입니다. 일치성·정규근사·유한 표본 정확성은 다른 주장이고 각각 별도 전제가 필요합니다.No. It is a finite adjustment within a recipe. Consistency, a normal approximation and finite-sample exactness are different claims with separate premises.

함께 읽기 · 이분산과 표준오차의 뜻Read together · heteroskedasticity and standard-error definitions

Introduction to Econometrics with R · §5.4 · Key Concept 5.4 only

핵심개념 5.4의 이분산·동분산 정의에 범위를 한정합니다. 이 장에서는 직접 유도한 샌드위치 식을 쓰며 주변의 SER 표시식은 권장 범위에 넣지 않습니다.Restrict reading to the definitions in Key Concept 5.4. Use this chapter’s independently derived sandwich formulas; surrounding SER display formulas are outside the assigned range.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 잔차 제곱 그림이 조건부 참 분산을 직접 관측하나요?Does a squared-residual plot directly observe true conditional variance?

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

아닙니다. ê는 같은 표의 적합으로 만든 값입니다. 패턴은 진단 질문을 만들 수 있으나 미지의 참 오차나 그 조건부 분산 함수와 동일하지 않습니다.No. Fitted ê is constructed from the same table. Patterns can motivate diagnostics but are not identical to unknown true errors or their conditional-variance function.

심화 읽기 · 군집 점수와 소수 군집의 한계Second pass · cluster scores and limits with few clusters

Cameron and Miller · Journal of Human Resources · 2015 · §II.C and §VI opening

인쇄 324–325쪽 §II.C의 식 10–12와 340쪽 §VI 도입을 읽습니다. CR1 배수 K/(K−1)·(n−1)/(n−p), 군집 안 점수 합, 군집 수가 적을 때 작업 t 기준의 한계를 각각 확인하세요.Read §II.C, equations 10–12 on printed pages 324–325, and the opening of §VI on page 340. Check the CR1 factor K/(K−1)·(n−1)/(n−p), within-group score aggregation and limits of working t references with few groups.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading K−1 자유도를 붙이면 소수 군집 과잉기각이 항상 사라지나요?Does a K−1 df reference always eliminate over-rejection with few groups?

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

그렇지 않습니다. 선택한 유한 보정·기준 분포와 실제 포함률을 구별합니다. 네 체인 예는 원 분류의 작업 계산이며 정확한 t 법칙을 선언하지 않습니다.No. Distinguish a chosen finite adjustment/reference distribution from actual coverage. The four-chain example is a working calculation on source classifications, not an exact t-law declaration.

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

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

1. 여섯 가정 행의 직선A line through six assumed rows

가정 X=(-2, -1, 0, 0, 1, 2), Y=(0, 1, 0, 2, 2, 7)를 상수 있는 직선으로 적합합니다. X̄, Ȳ, ΣX², ΣXY와 두 최소제곱 계수를 구하세요.

Fit an intercept line to assumed X=(-2, -1, 0, 0, 1, 2), Y=(0, 1, 0, 2, 2, 7). Find X̄, Ȳ, ΣX², ΣXY and both coefficients.

풀이와 확인할 이유Solution and explanation

X̄=0, Ȳ=2, ΣX²=10, ΣXY=15입니다. 따라서 b̂=15/10=3/2, â=2입니다. 이 여섯 행은 학습자가 선언한 설명용 표이며 실제 국가·사람·점포에서 관측했다고 표시하지 않습니다.

The quantities are 0, 2, 10 and 15, so b̂=3/2 and â=2. These are declared teaching records, not claimed observations of actual countries, people or establishments.

2. 같은 적합의 잔차 위험Residual loss for one fit

가정 X=(-2, -1, 0, 0, 1, 2), Y=(0, 1, 0, 2, 2, 7)에 Ŷ=2+(3/2)X를 사용합니다. 잔차, SSE, MSE를 구하고 참 계수에 대한 추정량 MSE인지 설명하세요.

For assumed X=(-2, -1, 0, 0, 1, 2), Y=(0, 1, 0, 2, 2, 7), use Ŷ=2+(3/2)X. Find residuals, SSE and MSE. Is this estimator MSE relative to true coefficients?

풀이와 확인할 이유Solution and explanation

잔차는 (1, 1/2, -2, 0, -3/2, 2), SSE=23/2, MSE=23/12입니다. 이는 표 안의 결과 잔차 제곱평균입니다. 참 계수와 표집 법칙이 주어지지 않았으므로 계수 추정량의 반복표집 MSE라고 바꿔 부를 수 없습니다.

Residuals are (1, 1/2, -2, 0, -3/2, 2), SSE=23/2 and MSE=23/12. This is in-table outcome residual loss. Without target coefficients and a sampling law, it is not repeated-sampling coefficient MSE.

3. 점수 합과 외적 합Score sums and outer-product sums

가정 적합 점수는 (1, -2), (1/2, -1/2), (-2, 0), (0, 0), (-3/2, -3/2), (2, 4)입니다. 점수 합과 외적 합의 두 대각·비대각을 구하세요.

Assumed fitted scores are (1, -2), (1/2, -1/2), (-2, 0), (0, 0), (-3/2, -3/2), (2, 4). Find their sum and the diagonal/off-diagonal entries of the outer-product sum.

풀이와 확인할 이유Solution and explanation

합은 (0, 0)입니다. 외적 합은 [[23/2, 8], [8, 45/2]]입니다. 합이 0이라는 정상방정식은 개별 점수나 그 곱합이 0이라는 뜻이 아니므로 잔차 공분산 추정이 반드시 0이 되지는 않습니다.

The sum is (0, 0), but the outer-product sum is [[23/2, 8], [8, 45/2]]. Zero normal-equation sums do not make individual scores or product sums vanish.

4. 분산 단위Variance units

가정 회귀의 Y는 점수, X는 시간이며 계수 순서는 절편 a와 기울기 b입니다. Var(â), Var(b̂), Cov(â, b̂), SE(b̂)의 단위를 쓰세요.

In an assumed regression, Y is points and X hours, with intercept a and slope b. State units of Var(â), Var(b̂), Cov(â, b̂) and SE(b̂).

풀이와 확인할 이유Solution and explanation

각각 점수², 점수²/시간², 점수²/시간, 점수/시간입니다. 공분산 비대각은 기울기의 표준오차와 단위부터 다릅니다. 수치가 비슷하다는 이유로 서로 바꾸어 읽지 않습니다.

The units are points², points²/hour², points²/hour and points/hour. An off-diagonal covariance differs from a slope standard error even in units.

5. 결과 단위 100배Multiplying outcome units by 100

가정 회귀에서 기울기 추정값 3/2, 추정 분산 9/40, 귀무값 1입니다. 같은 Y를 100배 단위로 표현할 때 기울기·분산·귀무값과 중심화 통계량의 변화를 쓰세요.

An assumed fit has slope 3/2, estimated variance 9/40 and null value one. Express Y in units multiplied by 100. How do slope, variance, null and the centered standardized statistic change?

풀이와 확인할 이유Solution and explanation

기울기는 150, 분산은 2250, 귀무값은 100입니다. 표준오차도 100배이므로 (150−100)/√2250은 원래 (3/2−1)/√(9/40)와 같습니다. 귀무값만 원 단위에 남기면 같은 검정이 아닙니다.

The slope is 150, variance 2250 and null 100. Standard error also multiplies by 100, so the centered standardized ratio is preserved. Leaving the null untransformed would define a different comparison.

6. 알려진 이분산 모형A known heteroskedastic model

고정 가정 X=(-1, 0, 1)과 상수를 사용하며 평균 오차 0, 오차 공분산 diag(100, 1, 1)을 선언합니다. 기울기 가중치 (-1/2, 0, 1/2)로 정확 기울기 분산을 구하세요.

Assume fixed X=(-1, 0, 1), an intercept, zero mean errors and covariance diag(100, 1, 1). Use slope weights (-1/2, 0, 1/2) to find the exact slope variance.

풀이와 확인할 이유Solution and explanation

분산은 (1/4)100+0+(1/4)1=101/4입니다. 여기 공분산은 알고 있다고 가정한 입력이므로 정확히 전달한 값입니다. 실제 잔차로부터 계산한 HC 추정값이나 실제 자료의 검증된 오차분산과 구별합니다.

Variance is 101/4. This exactly propagates a declared known covariance. It is different from an HC estimate based on fitted residuals or a verified covariance for actual data.

7. 공통 기울기 충격A shared slope-direction shock

가정 X=(-1, 0, 1), uᵢ=εᵢ+VXᵢ이며 εᵢ와 V는 모두 독립 평균 0·분산 1입니다. OLS 기울기의 전체 분산과 오차 공분산의 대각만 사용한 분산을 비교하세요.

Assume X=(-1, 0, 1), uᵢ=εᵢ+VXᵢ, with mutually independent mean-zero, unit-variance εᵢ and V. Compare the full OLS slope variance with the diagonal-only error-covariance calculation.

풀이와 확인할 이유Solution and explanation

기울기 오차는 (ε₃−ε₁)/2+V라 전체 분산은 3/2입니다. 오차 대각 분산은 (2, 1, 2)이어서 대각만 쓰면 1입니다. Ω₁₃=−1과 기울기 가중치의 음의 곱이 만들어 내는 교차항 1/2를 빠뜨린 차이입니다.

The slope error is (ε₃−ε₁)/2+V, with variance 3/2. Error diagonal entries (2, 1, 2) give diagonal-only variance one. The omitted cross term is 1/2, from Ω₁₃=−1 and opposite-signed slope weights.

8. 공분산 0과 독립Zero covariance versus independence

가정 V가 -1, 0, 1을 각 확률 1/3로 갖고 u₁=V, u₂=V²−2/3입니다. 두 평균과 공분산을 구하고 독립인지 판단하세요.

Let V take -1, 0, 1 equally, and define assumed u₁=V, u₂=V²−2/3. Find their means and covariance, and decide independence.

풀이와 확인할 이유Solution and explanation

두 평균과 공분산은 모두 0입니다. 하지만 u₁=0이면 u₂=−2/3이 확률 1인 반면 주변확률은 1/3입니다. 따라서 독립이 아닙니다. 대각 공분산만으로 행 독립을 결론 내리지 않습니다.

Both means and covariance are zero. Yet u₁=0 forces u₂=−2/3, whose marginal probability is only 1/3. They are dependent. Diagonal covariance alone does not imply independence.

9. 원 오차와 적합 잔차Model errors and fitted residuals

상수 포함 OLS를 실제 관측 표에 적합하여 Σêᵢ=0을 확인했습니다. 이를 실제 E[u|A]=0이나 같은 행의 독립성을 증명했다고 보고해도 되나요?

An intercept OLS fitted to an actual table gives Σêᵢ=0. May this be reported as proof of actual E[u|A]=0 or row independence?

풀이와 확인할 이유Solution and explanation

아닙니다. ê는 같은 표에서 적합해 만든 잔차이고 정상방정식의 합은 최적화 항등식입니다. u는 정의한 목표 모형의 오차입니다. 실제 조건부 법칙·의존·표집 가정은 별도 근거가 필요합니다.

No. Fitted residual sums are optimization identities. Model errors are defined relative to a target, and actual conditional laws, dependence and sampling require separate justification.

10. 공분산의 양의 준정부호Positive-semidefinite covariance

고정 열 독립 설계에서 L=(AᵀA)⁻¹Aᵀ이고 알려진 가정 Ω가 양의 준정부호입니다. LΩLᵀ도 같은 성질임을 임의 벡터 c로 증명하세요.

For a fixed full-column-rank design, let L=(AᵀA)⁻¹Aᵀ and assumed known Ω be positive semidefinite. Prove that LΩLᵀ is positive semidefinite using an arbitrary vector c.

풀이와 확인할 이유Solution and explanation

cᵀLΩLᵀc=(Lᵀc)ᵀΩ(Lᵀc)≥0입니다. 모든 방향에서 비음수이므로 양의 준정부호입니다. 어떤 방향은 0일 수 있어 양의 정부호까지 주장하지 않으며, 이 대수 증명이 실제 Ω의 타당성을 입증하는 것도 아닙니다.

Its quadratic form is (Lᵀc)ᵀΩ(Lᵀc)≥0. Some directions may be zero, so positive definiteness is not guaranteed. This algebra also does not verify the assumed actual-error covariance.

11. HC0 가운데 행렬The HC0 middle matrix

가정한 두 성분 점수는 (1, -2), (1/2, -1/2), (-2, 0), (0, 0), (-3/2, -3/2), (2, 4)입니다. HC0 가운데 행렬 M̂=Σsᵢsᵢᵀ를 계산하세요.

Assumed scores are (1, -2), (1/2, -1/2), (-2, 0), (0, 0), (-3/2, -3/2), (2, 4). Calculate the HC0 middle matrix M̂=Σsᵢsᵢᵀ.

풀이와 확인할 이유Solution and explanation

첫 대각은 1+1/4+4+0+9/4+4=23/2, 둘째는 4+1/4+0+0+9/4+16=45/2입니다. 비대각은 −2−1/4+0+0+9/4+8=8입니다. 개별 외적을 더하므로 다른 행 사이 곱은 넣지 않습니다.

Diagonal entries are 23/2 and 45/2; the cross term is eight. This sums individual outer products, without cross-row products.

12. HC0의 양쪽 행렬The two sides of HC0

가정 설계 G=diag(6, 10), HC0 가운데 행렬 M̂=[[23/2, 8], [8, 45/2]]입니다. Ĉ=G⁻¹M̂G⁻¹의 두 분산과 공분산을 구하세요.

Assume G=diag(6, 10) and HC0 middle matrix M̂=[[23/2, 8], [8, 45/2]]. Find both variances and their covariance in Ĉ=G⁻¹M̂G⁻¹.

풀이와 확인할 이유Solution and explanation

각각 23/72, 9/40, 2/15입니다. 절편 대각은 6²로, 기울기 대각은 10²로, 비대각은 6×10으로 나눕니다. G를 합으로 정의했으므로 여기서 다시 n으로 나누지 않습니다.

The entries are 23/72, 9/40 and 2/15. Divide by 6², 10² and 6×10 respectively. Because G was defined as a sum, do not divide by n again.

13. HC1의 자유도 배수The HC1 degrees-of-freedom multiplier

가정 완전행 n=6, 상수 포함 계수 p=2이고 HC0 기울기 분산은 9/40입니다. HC1을 HC0의 n/(n−p)배로 정의합니다. HC1 배수와 기울기 분산을 구하고 유한 불편성을 보장하는지 설명하세요.

Assume n=6 complete rows, p=2 coefficients including the intercept, and HC0 slope variance 9/40. Define HC1 as n/(n−p) times HC0. Find the HC1 multiplier and variance. Does it guarantee finite-sample unbiasedness?

풀이와 확인할 이유Solution and explanation

배수는 6/(6−2)=3/2, HC1 기울기 분산은 27/80입니다. 이 유한 보정이 모든 이분산 모형에서 정확 불편 추정량을 만든다는 뜻은 아닙니다. 추정 규약과 타당성의 전제를 함께 보고합니다.

The multiplier is 3/2, giving variance 27/80. This finite correction does not guarantee exact unbiased covariance estimation under every heteroskedastic model.

14. 보통 작업 공분산과 비교Comparing conventional working covariance

가정 n=6, p=2, SSE=23/2, G=diag(6, 10)입니다. 동일분산 작업 식 s²G⁻¹, s²=SSE/(n−p)의 대각을 구하고 HC1 대각 (23/48, 27/80)과 비교하세요.

Assume n=6, p=2, SSE=23/2 and G=diag(6, 10). Find the diagonal of the common-variance working recipe s²G⁻¹, s²=SSE/(n−p), and compare with HC1 diagonal (23/48, 27/80).

풀이와 확인할 이유Solution and explanation

s²=23/8이고 대각은 (23/48, 23/80)입니다. 절편 항목은 같지만 기울기 항목은 다릅니다. 한 항목이 같다고 두 공분산 규칙이 같거나 실제 동일분산이 확인되었다고 말하지 않습니다.

Here s²=23/8 and the diagonal is (23/48, 23/80). One entry agrees but the slope entry differs. Equality of one entry does not equate recipes or verify actual homoskedasticity.

15. 한 행의 레버리지Leverage of one row

가정 설계의 행은 (1, X), G=diag(6, 10)입니다. X=2와 X=0인 행의 h=aᵀG⁻¹a를 구하세요.

An assumed design row is (1, X), with G=diag(6, 10). Find h=aᵀG⁻¹a for X=2 and X=0.

풀이와 확인할 이유Solution and explanation

h=1/6+X²/10이므로 각각 17/30과 1/6입니다. 이는 Y가 아니라 설계에서 나온 수량입니다. 값이 더 큰 행이 반드시 오기록이라는 뜻도 아니며 별도 근거 없이 삭제하지 않습니다.

The values are 17/30 and 1/6. Leverage comes from the design rather than Y. A larger value does not prove a source error or justify unsupported deletion.

16. 레버리지 합Sum of leverages

가정 X=(-2, -1, 0, 0, 1, 2)와 상수 설계에서 hᵢ=1/6+Xᵢ²/10입니다. 합을 구하고 계수 수와 연결하세요.

For assumed X=(-2, -1, 0, 0, 1, 2) with an intercept, hᵢ=1/6+Xᵢ²/10. Find the sum and relate it to coefficient count.

풀이와 확인할 이유Solution and explanation

Σh=6/6+ΣX²/10=1+1=2입니다. 열 독립 투영 행렬의 trace가 랭크 p=2인 성질과 같습니다. 원행 수 6과 계수 수 2를 혼동하지 않습니다.

The sum is 6/6+10/10=2, the trace/rank of this full-column-rank projection. It is the coefficient count, not the six-row count.

17. HC2와 HC3의 행 조정Row adjustments in HC2 and HC3

가정한 한 기여 행의 잔차는 1, 레버리지는 17/30입니다. HC2는 ê²/(1−h), HC3는 ê²/(1−h)²를 사용합니다. HC2와 HC3에서 가운데 행렬에 사용할 잔차 제곱 조정값을 구하세요.

One assumed contributing row has residual one and leverage 17/30. HC2 uses ê²/(1−h) and HC3 uses ê²/(1−h)². Find its adjusted squared-residual weight for HC2 and HC3.

풀이와 확인할 이유Solution and explanation

1−h=13/30이므로 HC2는 30/13, HC3는 900/169입니다. 이것은 해당 행의 점수 외적에 사용할 가중 항목입니다. 공분산 전체를 이 한 수로 대체하거나 계수를 다시 적합하는 것은 아닙니다.

The weights are 30/13 and 900/169. These modify this row’s contribution to the middle matrix, not the whole covariance or the fitted coefficient vector.

18. 단위 레버리지의 0/0Zero over zero at unit leverage

가정한 기여 행의 잔차는 0, 레버리지는 1입니다. HC2의 ê²/(1−h)와 HC3의 ê²/(1−h)²를 0으로 둘 수 있나요?

An assumed contributing row has residual zero and leverage one. May HC2’s ê²/(1−h) or HC3’s ê²/(1−h)² be set to zero?

풀이와 확인할 이유Solution and explanation

둘 다 0/0으로 미정의입니다. 잔차 0은 분모 0을 없애지 않습니다. 해당 규칙을 미정의로 표시하고 어느 원행에서 생겼는지 보존해야 합니다. HC0가 계산될 수 있다는 사실은 다른 규칙의 정의역을 늘리지 않습니다.

Both ratios are undefined 0/0. Report the method’s domain failure and the responsible source row. HC0 being computable does not enlarge HC2/HC3’s domain.

19. 두 관측·두 계수Two observations and two coefficients

가정 X=(-1, 1), Y=(0, 3)를 상수와 기울기로 적합합니다. n=p=2이며 각 h=1입니다. HC0, HC1, HC2, HC3의 계산 상태를 설명하세요.

Fit an intercept and slope to assumed X=(-1, 1), Y=(0, 3). Here n=p=2 and each h=1. Describe the computational status of HC0, HC1, HC2 and HC3.

풀이와 확인할 이유Solution and explanation

적합이 정확하여 HC0는 0 행렬입니다. HC1은 n−p=0, HC2·HC3는 1−h=0 때문에 미정의입니다. HC0의 0이 실제 계수의 불확실성 0을 입증하지는 않습니다.

HC0 is the zero matrix from exact fit. HC1 is undefined because n−p=0; HC2/HC3 are undefined because 1−h=0. The zero HC0 does not prove zero actual coefficient uncertainty.

20. 강건 공분산과 내생성Robust covariance and endogeneity

관심 구조 모형의 목표 β에 대해 E[au]≠0이 남아 있습니다. OLS 기울기는 그대로 두고 HC3 표준오차를 썼다면 그 구조 계수의 인과 식별 문제가 해결되나요?

For an intended structural target β, an endogeneity problem E[au]≠0 remains. If the OLS slope is unchanged but HC3 standard errors are used, is the causal-identification problem solved?

풀이와 확인할 이유Solution and explanation

아닙니다. 공분산 추정식을 바꾸어도 관심 구조 계수와 관측 투영 목표의 차이를 없애지 못합니다. 어떤 β를 목표로 하고 어떤 모멘트·표집·의존 조건 아래 추론하는지 먼저 정의해야 합니다.

No. Changing covariance estimation does not remove a difference between the structural target and the observational projection. Define the target and justify moment, sampling and dependence conditions separately.

21. 군집 점수부터 더하기Sum cluster scores first

가정 개별 점수는 (1, -2), (1/2, -1/2), (-2, 0), (0, 0), (-3/2, -3/2), (2, 4)입니다. 앞 두 행 A, 중간 두 행 B, 뒤 두 행 C의 점수 합을 구하세요.

Assumed scores are (1, -2), (1/2, -1/2), (-2, 0), (0, 0), (-3/2, -3/2), (2, 4). Sum within clusters A=first pair, B=middle pair, C=last pair.

풀이와 확인할 이유Solution and explanation

A=(3/2, -5/2), B=(-2, 0), C=(1/2, 5/2)입니다. 전체 합은 (0, 0)이지만 각 집단 합은 비영입니다. 군집 계산은 이 집단 합의 외적을 사용하므로 개별 외적만 합한 HC0와 다를 수 있습니다.

The cluster scores are (3/2, -5/2), (-2, 0), (1/2, 5/2). Their total is zero but each group score is nonzero. Outer products of these sums include terms absent from HC0.

22. 군집 가운데 행렬The cluster middle matrix

가정 군집 점수 S_A=(3/2, -5/2), S_B=(-2, 0), S_C=(1/2, 5/2)입니다. M_CR0=ΣS_gS_gᵀ의 두 대각·비대각을 구하세요.

Assume cluster scores S_A=(3/2, -5/2), S_B=(-2, 0), S_C=(1/2, 5/2). Find the diagonal and cross entries of M_CR0=ΣS_gS_gᵀ.

풀이와 확인할 이유Solution and explanation

대각은 9/4+4+1/4=13/2와 25/4+0+25/4=25/2입니다. 비대각은 −15/4+0+5/4=−5/2입니다. 비대각이 음수여도 외적 합은 양의 준정부호일 수 있습니다. 모든 항목이 양수여야 하는 조건은 아닙니다.

The entries are 13/2, 25/2 and −5/2. A negative cross entry is compatible with a positive-semidefinite outer-product sum; positive semidefiniteness does not require every entry positive.

23. CR0 공분산CR0 covariance

가정 G=diag(6, 10), 군집 가운데 행렬 M=[[13/2, -5/2], [-5/2, 25/2]]입니다. G⁻¹MG⁻¹의 분산 두 개와 공분산을 구하세요.

Assume G=diag(6, 10) and cluster middle matrix M=[[13/2, -5/2], [-5/2, 25/2]]. Find the two variances and covariance of G⁻¹MG⁻¹.

풀이와 확인할 이유Solution and explanation

분산은 13/72와 1/8, 공분산은 −1/24입니다. 같은 표의 HC0 기울기 분산 9/40보다 1/8이 작습니다. 작업 군집 추정값이 항상 다른 표준오차보다 커야 한다는 규칙은 없습니다.

The entries are 13/72, 1/8 and −1/24. The slope variance is smaller than HC0’s 9/40 for this table. A cluster covariance recipe need not always be larger.

24. CR1의 두 보정The two CR1 corrections

가정 완전행 n=6, 상수 포함 계수 p=2, 군집 K=3이고 CR0 기울기 분산은 1/8입니다. 이 장의 CR1 배수 K/(K−1)×(n−1)/(n−p)와 기울기 분산을 구하세요.

Assume n=6 complete rows, p=2 coefficients, K=3 clusters and CR0 slope variance 1/8. Find our CR1 multiplier K/(K−1)×(n−1)/(n−p) and the corrected slope variance.

풀이와 확인할 이유Solution and explanation

배수는 (3/2)(5/4)=15/8, 기울기 분산은 15/64입니다. 이는 선택한 유한 표본 규약의 계산입니다. 보정 후 세 군집만으로 정확 정규·t 추론이 보장되는 것은 아닙니다.

The multiplier is 15/8 and variance 15/64. This computes a specified correction convention; three clusters do not thereby provide exact normal or t inference.

25. 한 군집의 0A zero from one overall cluster

가정한 열 독립 OLS 설계에서 전체 적합 점수 합 Σaᵢêᵢ=0입니다. 모든 완전행을 한 군집으로 묶으면 CR0와 CR1은 어떻게 되나요?

A full-column-rank assumed OLS fit satisfies Σaᵢêᵢ=0. What happens to CR0 and CR1 if all complete rows are assigned to one cluster?

풀이와 확인할 이유Solution and explanation

유일한 군집 점수가 0이므로 CR0는 0 행렬입니다. K=1이어서 CR1의 K/(K−1)은 미정의입니다. CR0의 0은 정상방정식의 결과이지 참 추정량 분산이 0이라는 정보가 아닙니다.

CR0 is the zero matrix because its only cluster score vanishes. CR1 is undefined at K=1. The zero reflects fitted-score algebra, not knowledge of zero true estimator variance.

26. 각 행이 자기 군집이면If each row is its own cluster

가정한 같은 n개 완전행과 같은 OLS 적합에서 각 행의 군집 라벨이 모두 다릅니다. n>p일 때 CR0·CR1을 HC0·HC1과 연결하세요.

On the same n complete rows and OLS fit, every row has a distinct cluster label. For n>p, relate CR0/CR1 to HC0/HC1.

풀이와 확인할 이유Solution and explanation

집단 점수가 개별 점수와 같아 CR0=HC0입니다. K=n이므로 CR1 배수는 [n/(n−1)][(n−1)/(n−p)]=n/(n−p), 따라서 CR1=HC1입니다. 표집 독립성이 검증되어서가 아니라 같은 합을 썼기 때문입니다.

CR0=HC0 because group scores equal individual scores. Setting K=n reduces the CR1 factor to n/(n−p), so CR1=HC1. This is an identity of calculations, not evidence of sampling independence.

27. 군집 라벨의 결측An unavailable cluster label

가정 X, Y가 완전한 행 6개 중 하나의 군집 라벨만 null입니다. 같은 6행의 OLS를 이미 적합했습니다. 이 장의 군집 규칙은 그 행을 삭제하거나 독립 새 군집으로 만들어도 되나요?

Six assumed rows have complete X, Y, but one cluster label is null. OLS was fitted on all six. May this chapter’s cluster recipe delete the row or invent a new independent cluster?

풀이와 확인할 이유Solution and explanation

둘 다 자동으로 하지 않습니다. 같은 X/Y 적합과 원행은 보존하고, 군집 공분산은 누락 라벨 때문에 미정의로 남깁니다. 해당 원행을 표시하여 분류 근거를 보완하게 합니다. 임의 처리로 분모·적합·의존 가정을 바꾸지 않습니다.

No automatic deletion or invented grouping is used. Preserve the fit and source rows, leave cluster covariance undefined, and identify the missing-label position. Unsupported handling would alter the denominator or dependence assumptions.

28. 군집 외적 합의 성질A cluster outer-product sum

가정 M=ΣS_gS_gᵀ입니다. 임의 벡터 c에 대해 M이 양의 준정부호임을 보이고, 그 사실만으로 실제 군집 사이 독립이나 명목 신뢰구간 포함률을 알 수 있는지 설명하세요.

Let assumed M=ΣS_gS_gᵀ. Prove positive semidefiniteness using arbitrary c. Does that property establish actual cluster independence or nominal confidence-interval coverage?

풀이와 확인할 이유Solution and explanation

cᵀMc=Σ(cᵀS_g)²≥0입니다. 이 대수 성질은 주어진 숫자만으로 성립합니다. 실제 오차의 집단 간 의존·집단 수 수열·모멘트·근사 정확성은 별도 전제여서 양의 준정부호만으로 확인되지 않습니다.

The quadratic form is Σ(cᵀS_g)²≥0. This algebra holds for the supplied numbers. Actual between-group dependence, a growing-cluster sequence, moments and coverage accuracy remain separate questions.

29. 집단 안 평균의 분산Variance of a within-group mean

가정한 한 군집의 오차 m=10개는 각 분산 σ²>0이고 서로 다른 모든 쌍의 공분산은 σ²/5입니다. 평균 오차 분산과 독립일 때에 대한 배수를 구하세요.

Assume one cluster of m=10 errors, each variance σ²>0, with every distinct-pair covariance σ²/5. Find the mean-error variance and its multiplier relative to independence.

풀이와 확인할 이유Solution and explanation

분산은 (σ²/10)[1+9/5]=7σ²/25입니다. 독립 분산 σ²/10의 14/5배입니다. 이는 가능한 공동 공분산을 선언한 가정 예이며 실제 지역·체인에 이 상관이 관측되었다는 뜻은 아닙니다.

The variance is 7σ²/25, a factor 14/5 above σ²/10. This is a declared feasible covariance example, not an observed correlation estimate for actual regions or chains.

30. 많은 행과 적은 집단Many rows and few groups

관측 완전행이 3010개이지만 원 지역 분류는 9개입니다. 군집 간 CLT를 적용할 때 독립 정보 단위를 자동으로 3010개 지역이라고 계산할 수 있나요?

There are 3010 complete observations but nine original regional categories. For a cluster-level CLT, may these be treated automatically as 3010 independent regions?

풀이와 확인할 이유Solution and explanation

아닙니다. 군집 점수는 9개 집단에서 만들어집니다. 그 집단 사이 독립과 비지배·모멘트 조건도 확인되지 않았습니다. 한 집단 안 행 수 증가와 적절히 독립인 집단 수 증가를 구별해야 합니다.

No. Cluster scores come from nine groups, and their independence, moments and no-dominating-group conditions are not established. Increasing within-group rows differs from increasing independent clusters.

31. t 기준의 한계Limits of a working t reference

가정한 군집 공분산에 CR1을 쓰고 군집 수 K=4여서 t(3) 임계값을 선택했습니다. 이것만으로 정확 유한 t₃ 분포와 95% 포함률이 성립하나요?

A cluster covariance uses CR1 and K=4, so a t(3) cutoff is chosen. Does that alone establish an exact finite t₃ law and 95% coverage?

풀이와 확인할 이유Solution and explanation

그렇지 않습니다. 유한 군집 보정과 작업 임계값은 정당화가 필요한 근사 규약입니다. 군집 점수의 실제 분포·의존·설계가 별도로 필요하며, 정규 오차를 언급하는 것만으로도 일반 군집 Wald 통계량의 정확 t 법칙이 보장되지 않습니다.

No. Finite correction and a working cutoff are approximation conventions needing justification. Even a Gaussian error premise does not generally give an exact finite-t law for a clustered Wald statistic.

32. 체인과 주의 분류Chain and state groupings

실제 NJ·PA 점포 기록에는 원 체인 코드 4개와 주 2개가 있습니다. 체인별 CR1이 더 작거나 유의해진다는 이유만으로 주 정책 인과 추론의 군집 수준을 선택해도 되나요?

Actual NJ/PA establishment records have four chain codes and two states. May chain CR1 be chosen for causal state-policy inference merely because it gives a smaller standard error or significance?

풀이와 확인할 이유Solution and explanation

안 됩니다. 표집·정책 할당·공유 충격과 관심 표적을 먼저 정의해야 합니다. 체인과 주는 다른 의존 경로를 담을 수 있고 집단 수도 적습니다. 이 장의 체인 작업 계산은 정책 인과 추론의 타당성을 인증하지 않습니다.

No. Start from sampling, assignment, shared shocks and the target. Chains and states can reflect different dependence paths, and both group counts are small. The chapter’s chain calculation does not certify causal policy inference.

33. 시차 1 교차합A lag-one cross-product sum

가정 시간 0–5의 점수는 (1, -2), (1/2, -1/2), (-2, 0), (0, 0), (-3/2, -3/2), (2, 4)입니다. M의 시차 1 항 Σ(sₜsₜ₋₁ᵀ+sₜ₋₁sₜᵀ)의 두 대각과 비대각을 구하세요.

At assumed times 0–5, scores are (1, -2), (1/2, -1/2), (-2, 0), (0, 0), (-3/2, -3/2), (2, 4). Find both diagonal and cross entries of Σ(sₜsₜ₋₁ᵀ+sₜ₋₁sₜᵀ) at lag one.

풀이와 확인할 이유Solution and explanation

대각은 2(1/2−1−3)=−7과 2(1−6)=−10입니다. 비대각은 −3/2+1−9=−19/2입니다. 시차 1의 다섯 인접 쌍을 모두 사용했으며 이 값에 Bartlett 가중치를 아직 곱하지 않았습니다.

The diagonals are −7 and −10; the cross entry is −19/2. All five adjacent pairs are included, before multiplying by the Bartlett weight.

34. 시차 1 HAC 행렬The lag-one HAC matrix

가정 G=diag(6, 10), 시차 0 가운데 행렬은 [[23/2, 8], [8, 45/2]], 시차 1 양방향 교차합은 [[-7, -19/2], [-19/2, -10]]입니다. Bartlett 가중치를 wₗ=1−l/(L+1)로 정의합니다. L=1 Bartlett HAC 공분산을 구하세요.

Assume G=diag(6, 10), lag-zero middle matrix [[23/2, 8], [8, 45/2]], and lag-one symmetric cross sum [[-7, -19/2], [-19/2, -10]]. Use Bartlett weights wₗ=1−l/(L+1). Find Bartlett HAC covariance for L=1.

풀이와 확인할 이유Solution and explanation

가중치 1/2이므로 가운데 행렬은 [[8, 13/4], [13/4, 35/2]]입니다. 양쪽에 G⁻¹을 곱하면 대각 2/9, 7/40, 비대각 13/240입니다. 이 작업 계산 자체가 실제 시계열 조건을 검증하지는 않습니다.

The half-weighted addition gives [[8, 13/4], [13/4, 35/2]]. Sandwiching yields diagonal 2/9, 7/40 and off-diagonal 13/240. This calculation does not verify actual time-series conditions.

35. 시차 0 불변량A lag-zero invariant

같은 가정 완전행과 같은 OLS 잔차로 HAC를 계산하며 L=0, 자유도 보정 없음을 선택했습니다. 어떤 HC 규칙과 같고 왜 그런가요?

Compute HAC from the same assumed complete rows and OLS residuals, with L=0 and no degrees-of-freedom adjustment. Which HC recipe matches, and why?

풀이와 확인할 이유Solution and explanation

HC0와 같습니다. 모든 시차 교차항이 사라져 개별 점수 외적 합만 남기 때문입니다. 행·가중치·적합·보정 규약이 달라졌다면 이 비교를 그대로 요구할 수 없습니다.

It equals HC0 because no lagged cross-products remain. The equality requires identical rows, weights, fit and correction conventions.

36. HAC 자유도 보정A HAC degrees-of-freedom correction

가정 n=6, p=2에서 L=0 HAC의 기울기 분산은 9/40입니다. n/(n−p) 보정을 선택하면 얼마이며 어떤 HC 규칙과 같나요?

At assumed n=6, p=2, lag-zero HAC slope variance is 9/40. What does the n/(n−p) adjustment produce, and which HC recipe matches?

풀이와 확인할 이유Solution and explanation

배수 3/2를 곱해 27/80이고 같은 행의 HC1과 같습니다. n=p이면 이 보정은 미정의입니다. 시차를 0보다 크게 바꾼 일반 HAC가 항상 HC1과 같다는 뜻은 아닙니다.

It becomes 27/80, equal to HC1 on the same rows. The factor is undefined at n=p. General positive-lag HAC does not thereby equal HC1.

37. 시간 결측과 쌍 수Time gaps and pair counts

원 가정 시간 0, 1, 2, 3, 4, 5 중 시간 2의 결과만 미관측입니다. 원 시간 차이를 보존하면 시차 1의 가용 쌍은 몇 개이고, 완전행을 연속 번호로 압축하면 무엇을 잘못 더하나요?

Among assumed source times 0, 1, 2, 3, 4, 5, only time two has an unavailable outcome. How many lag-one pairs remain at original time differences, and what goes wrong if complete rows are renumbered consecutively?

풀이와 확인할 이유Solution and explanation

(1, 0), (4, 3), (5, 4)의 3개입니다. 압축하면 원래 두 시점 차이인 (3, 1)도 인접으로 잘못 넣어 4개가 됩니다. 결측 뒤 OLS 적합도 다시 계산하되 시간 지수를 별도로 보존해야 합니다.

Three pairs remain: (1, 0), (4, 3), (5, 4). Compression wrongly adds (3, 1), a two-period gap, giving four. Refit on the available data while preserving original time indices.

38. 시간 순서를 자동 추정하지 않기Do not infer time order automatically

설명용 HAC 입력의 시간 지수가 (0, 1, 1, 3)이거나 (0, 2, 1, 3)입니다. 이 장의 규칙이 자동 정렬·중복 삭제로 계산을 계속해도 되나요?

Illustrative HAC time inputs are (0, 1, 1, 3) or (0, 2, 1, 3). May this chapter’s engine continue by automatically sorting or dropping duplicates?

풀이와 확인할 이유Solution and explanation

아닙니다. 유일하고 엄격히 증가하는 정수 지수라는 입력 계약을 거절 상태로 표시합니다. 중복이 다른 관측 단위인지, 순서가 어떻게 정의되는지 원자료 근거가 필요합니다. 분모·대응 행을 임의로 바꾸지 않습니다.

No. Reject violation of unique, strictly increasing integer indices. Source evidence is needed to resolve units and ordering; do not silently change denominators or row correspondence.

39. Bartlett 가중치Bartlett weights

가정 HAC의 최대 시차 L=3이고 wₗ=1−l/(L+1)입니다. 시차 1, 2, 3의 가중치와 시차 4 처리 방식을 쓰세요.

For an assumed HAC recipe with L=3 and wₗ=1−l/(L+1), give weights at lags 1, 2, 3 and describe lag four.

풀이와 확인할 이유Solution and explanation

가중치는 3/4, 1/2, 1/4이고 시차 4 이상은 이 유한 규칙에서 제외합니다. 먼 시차가 실제로 무관하다는 관측 사실은 아닙니다. 대역폭 선택과 점근 일치성 조건을 구별합니다.

The weights are 3/4, 1/2, 1/4; lag four and beyond are omitted. Omission is not evidence that actual distant dependence vanishes. Separate bandwidth choice from consistency conditions.

40. 이동 합의 양의 준정부호Positive semidefiniteness from moving sums

비음수 정수 L을 둡니다. 가정 유한 점수 배열을 정수 시점 밖과 미관측 시점에서 대수 합을 위해 0으로 확장합니다. 이 배열에서 Rᵣ=Σⱼ₌₀ᴸsᵣ₋ⱼ이고 M=(L+1)⁻¹ΣᵣRᵣRᵣᵀ입니다. 임의 c에 대한 이차형과 Bartlett HAC의 양의 준정부호 이유를 설명하세요.

Let L be a nonnegative integer. Extend a finite assumed score array by zero outside its integer times and at unobserved times for the algebraic sum. For this array, let Rᵣ=Σⱼ₌₀ᴸsᵣ₋ⱼ and M=(L+1)⁻¹ΣᵣRᵣRᵣᵀ. Give its quadratic form and explain Bartlett HAC positive semidefiniteness.

풀이와 확인할 이유Solution and explanation

cᵀMc=(L+1)⁻¹Σ(cᵀRᵣ)²≥0입니다. 이동 합을 전개하면 시차 l 곱은 L+1−l번 들어가 Bartlett 가중치를 만듭니다. 이 대수 성질은 실제 시간 법칙·약의존·일치성의 검증과 다릅니다.

The quadratic form is a nonnegative sum of squares. Expanding moving sums counts lag-l products L+1−l times, giving Bartlett weights. This is algebra, not verification of actual weak dependence or consistency.

41. 고정 시차의 의미The meaning of a fixed lag

어떤 실제 점수 시계열에 시차 2 이상의 중요한 교차 공분산이 남습니다. 모든 n에서 Bartlett 최대 시차 L=1만 사용하면 n이 커질 때 올바른 장기 공분산을 자동으로 추정하나요?

A score time series has important covariance beyond lag one. Does using fixed Bartlett L=1 for every n automatically estimate the correct long-run covariance as n grows?

풀이와 확인할 이유Solution and explanation

아닙니다. 먼 시차를 계속 버리므로 일반적인 장기 공분산과 다른 목표가 남을 수 있습니다. 대역폭이 변하는 수열·의존·모멘트·성장속도 조건을 함께 검토해야 합니다. HAC라는 이름만으로 일치성을 보장하지 않습니다.

No. The recipe keeps omitting distant terms and can target something different. Consistency requires appropriate bandwidth, dependence, moment and rate conditions, not the HAC label alone.

42. 시간 단위와 시차Time units and lag meaning

한 분석은 연도 지수로 L=1, 다른 분석은 월 지수로 L=1을 사용합니다. 두 입력이 같은 기간의 의존을 허용한다고 볼 수 있나요? Y를 100배 바꾸는 경우와도 구별하세요.

One analysis uses annual indices with L=1, another monthly indices with L=1. Do these allow the same temporal horizon? Distinguish this from multiplying Y units by 100.

풀이와 확인할 이유Solution and explanation

연간 1시차와 월간 1시차는 다른 기간입니다. 같은 실제 의존 범위를 비교하려면 시간 단위와 대역폭을 함께 맞춰야 합니다. 반면 같은 자료의 Y만 100배로 바꾸면 계수 공분산은 10,000배인 단위 변환이며 시간 차이는 그대로입니다.

One annual lag and one monthly lag are different durations. Match index units and bandwidths for a common horizon. Multiplying only Y by 100 instead rescales coefficient covariance by 10,000 without changing time differences.

43. 중심화 Wald 제곱A centered squared Wald statistic

가정 추정 기울기 b̂=3/2, 추정 분산 v̂=9/40, 귀무값 b₀=0입니다. T²를 구하고, 이 숫자만으로 실제 표준정규 근사가 입증되는지 설명하세요.

Assume b̂=3/2, v̂=9/40 and null b₀=0. Find T² and state whether that number alone validates an actual standard-normal approximation.

풀이와 확인할 이유Solution and explanation

T²=(9/4)/(9/40)=10입니다. 이는 입력한 추정값·분산의 대수 계산입니다. 표적 중심·공분산 일치성·CLT 같은 추론 조건은 별도라 T²=10 자체가 실제 정규 근사를 증명하지 않습니다.

T²=10. This is algebra from the supplied estimate and variance. Target centering, covariance consistency and a CLT are separate premises; the numerical statistic does not verify them.

44. 귀무값이 바뀌면Changing the null value

가정 b̂=3/2, v̂=9/40에서 귀무값을 0이 아니라 1로 둡니다. 중심 차이와 T²를 구하세요.

Assume b̂=3/2 and v̂=9/40, but set the null value to one instead of zero. Find the centered difference and T².

풀이와 확인할 이유Solution and explanation

차이는 1/2이고 T²=(1/4)/(9/40)=10/9입니다. 계수와 공분산은 같아도 질문한 귀무값이 달라져 통계량이 달라집니다. 표준오차가 같다는 이유로 같은 검정이라고 부르지 않습니다.

The difference is 1/2 and T²=10/9. The estimate and covariance stay fixed but the null comparison changes, so this is not the same test.

45. 정확한 임계 경계An exact cutoff boundary

가정 b̂=1, b₀=0, v̂=1/4, 양수 임계값 c=2입니다. 엄격한 규칙 |T|>c의 기각 여부를 제곱 비교로 판단하세요.

Assume b̂=1, b₀=0, v̂=1/4 and positive cutoff c=2. Decide the strict rule |T|>c using squared values.

풀이와 확인할 이유Solution and explanation

(b̂−b₀)²=1, c²v̂=1이어서 엄격한 부등식은 거짓입니다. 경계의 동률을 기각으로 바꾸지 않습니다. 이 판단은 선언한 규칙의 산술이며 c가 실제 분포에서 어떤 확률을 갖는지는 별도입니다.

Both squared quantities equal one, so the strict inequality is false. Do not turn a boundary tie into rejection. This checks the declared rule; the reference probability of c is separate.

46. 유리수 끝점의 구간An interval with rational endpoints

가정 b̂=3/2, v̂=1/4, c=2로 대칭 구간 b̂±c√v̂를 구성합니다. 정확 반경과 끝점을 구하고 포함률 보장과 구별하세요.

Construct b̂±c√v̂ for assumed b̂=3/2, v̂=1/4, c=2. Find the exact radius and endpoints, and distinguish construction from a coverage guarantee.

풀이와 확인할 이유Solution and explanation

반경은 1, 끝점은 1/2와 5/2입니다. 정확 유리수로 구간을 계산했어도 실제 반복표집 포함률이 95%라는 뜻은 아닙니다. 표적·분산 추정·임계값 근사의 전제를 따로 제시해야 합니다.

The radius is one and endpoints 1/2, 5/2. Exact arithmetic does not establish 95% repeated-sampling coverage. Target, variance-estimation and reference premises require justification.

47. 무리수 반경을 정확 분수로 부르지 않기Do not label an irrational radius an exact fraction

가정 b̂=3/2, v̂=9/40, c=1.96=49/25입니다. 반경 제곱과 구간의 정확한 기호 표현을 쓰세요. 끝점의 소수는 어떤 의미인가요?

Assume b̂=3/2, v̂=9/40, c=1.96=49/25. Give squared radius and an exact symbolic interval. What do decimal endpoints represent?

풀이와 확인할 이유Solution and explanation

반경 제곱은 21609/25000이고 구간은 3/2±√(21609/25000)입니다. 반경은 무리수이므로 일반적인 유한 소수 끝점을 정확 분수 끝점으로 표시하지 않습니다. 소수는 기호 구간의 표시 근사입니다.

Squared radius is 21609/25000 and the interval is 3/2±√(21609/25000). The irrational radius does not give exact finite-decimal endpoints; decimals are display approximations.

48. 극소 분산과 표시 가능한 제곱근Tiny variance with a representable root

정확 분수 분산 v=2⁻²¹⁴⁸을 생각합니다. binary64에서 v는 0으로 반올림되지만 √v=2⁻¹⁰⁷⁴는 최소 양수 subnormal입니다. 분산 표시를 먼저 0으로 만든 뒤 제곱근을 취하면 왜 잘못인가요?

Consider exact fractional variance v=2⁻²¹⁴⁸. Its binary64 display rounds to zero, but √v=2⁻¹⁰⁷⁴ is the smallest positive subnormal. Why is taking a square root after first rounding variance to zero wrong?

풀이와 확인할 이유Solution and explanation

정확한 양수 분산의 제곱근을 잃기 때문입니다. 정확 분수에서 제곱근을 계산해 마지막 표시에서 반올림해야 양수 표시가 보존됩니다. v를 입력할 때는 도구가 지원하는 분자/분모 표기를 사용하며 거듭제곱 문자열을 자동 해석한다고 가정하지 않습니다.

It loses the root of a positive exact variance. Round only after computing the root from the exact fraction. Supply a supported numerator/denominator text rather than assuming the tool evaluates power notation.

49. 추정 분산 0의 표준화Standardization at estimated variance zero

가정 b̂=1, b₀=0, v̂=0입니다. 보통 Wald 통계량과 그 기준에 따른 기각 판단을 어떻게 보고하나요?

Assume b̂=1, b₀=0 and v̂=0. How should the ordinary Wald statistic and its reference-based rejection decision be reported?

풀이와 확인할 이유Solution and explanation

표준오차가 0이라 보통 표준화는 미정의이고 이 기준의 기각 판단도 미정의로 남깁니다. 차이가 0이 아니라는 산술은 알 수 있지만 추정 분산 0만으로 참 변동·명목 포함률·정확 기각을 인증하지 않습니다.

Ordinary standardization and its reference-based rejection decision are undefined. A nonzero centered difference is arithmetic information, but estimated zero variance does not certify true variability or calibrated rejection.

50. Slutsky의 두 전제Two premises for Slutsky

가정한 추정량 수열에서 √n(b̂−b*)⇒N(0, v), v>0이고 n·v̂→p v입니다. v̂>0 사건에서 (b̂−b*)/√v̂를 정의하고 나머지 사건에는 별도 유한값을 둡니다. 도구의 v̂=0 미정의는 유지합니다. 이 확장 통계량의 극한을 유도하고 실제 nVar(b̂)의 수렴까지 자동 보장하는지 설명하세요.

Assume √n(b̂−b*)⇒N(0, v), v>0, and n·v̂→p v. Define (b̂−b*)/√v̂ on v̂>0 and assign a separate finite value otherwise, retaining the tool’s undefined result at v̂=0. Derive the limit of this extended statistic. Does this automatically establish convergence of actual nVar(b̂)?

풀이와 확인할 이유Solution and explanation

P(v̂>0)→1이고 그 사건에서 비율은 [√n(b̂−b*)]/√(n·v̂)여서 Slutsky로 표준정규에 분포수렴합니다. 그러나 분포수렴과 실제 모멘트 수렴은 다르므로 실제 유한 Var(b̂)의 존재나 nVar(b̂)→v까지는 추가 모멘트 제어가 필요합니다.

P(v̂>0)→1, and on that event the ratio equals [√n(b̂−b*)]/√(n·v̂), so Slutsky gives a standard-normal limit. Actual finite variance existence or nVar(b̂)→v needs additional moment control; distributional convergence is different.

51. 실제 국가의 단위와 자유도Actual country units and degrees of freedom

실제 보관 KOR의 2014–2024년 GDPpc 11개가 모두 가용하고 상수·연도−2019를 적합합니다. 관측 단위, n, p, n−p와 기본 L=1의 연속 연도 쌍 수를 쓰세요.

All eleven retained KOR GDP/person observations for 2014–2024 are available. Fit an intercept and year−2019. Give observational unit, n, p, n−p and the number of consecutive-year pairs at L=1.

풀이와 확인할 이유Solution and explanation

관측 단위는 한국×연도이며 n=11, p=2, n−p=9, 연속 연도 쌍은 10개입니다. GDP 단위는 2015년 불변 USD/명입니다. 이런 행 수·단위 계산은 잔차의 정상성·약의존·HAC 포함률을 입증하지 않습니다.

Units are Korean country-years; n=11, p=2, n−p=9, and there are ten consecutive-year pairs. GDP units are constant-2015 USD/person. These counts do not verify stationary scores, weak dependence or HAC coverage.

52. 국가 연도 제외의 가정 실험An assumed omission of a country year

실제 2014–2024년 연속 국가 자료에서 가정 민감도 실험으로 2020년만 제외합니다. 원 연도 지수를 보존하면 시차 1 쌍 수와, 압축 번호를 쓰면 생기는 잘못된 쌍을 구하세요.

As an explicit sensitivity exercise, omit only 2020 from actual consecutive years 2014–2024. Preserving original years, find lag-one pair count and the erroneous pair produced by compressed indices.

풀이와 확인할 이유Solution and explanation

원래 10개에서 2019→2020과 2020→2021 두 쌍이 빠져 8개입니다. 압축하면 2019→2021을 1시차로 잘못 넣습니다. 원 11행은 보존하고 제외한 분석 선택을 표시해야 하며 실제 2020년 값이 미관측이었다고 바꾸어 쓰지 않습니다.

Eight pairs remain after removing the two touching 2020. Compression incorrectly adds 2019→2021 as lag one. Preserve all eleven source rows and disclose the analytical omission; do not relabel the actual 2020 value as originally missing.

53. 개인 자료의 두 보정 배수Two correction factors for the cohort

실제 Card 가용 3010행에서 상수·교육·기록 나이를 적합하여 p=3이고 원 1966년 지역은 9개입니다. HC1 배수와 이 장의 지역 CR1 배수를 구하세요.

There are 3010 available Card rows, with p=3 for an intercept, schooling and recorded age, and nine original 1966 regions. Find HC1 and this chapter’s regional CR1 multipliers.

풀이와 확인할 이유Solution and explanation

HC1은 3010/3007입니다. CR1은 (9/8)(3009/3007)=27081/24056입니다. 원 3613행이 아니라 같은 완전행 분모를 사용합니다. 두 유한 배수가 9지역의 독립성이나 정확 포함률을 인증하지는 않습니다.

HC1 uses 3010/3007; CR1 uses 27081/24056. Use the same complete-row count rather than 3613 source rows. Neither factor verifies independence or exact coverage with nine regions.

54. 점포 자료의 CR1 배수A CR1 multiplier for establishments

실제 점포 완전짝 n=384에서 상수·전 FTE·NJ 지표의 p=3을 적합하고 원 체인 K=4개를 작업 군집으로 둡니다. CR1 배수를 구하고 정보량의 한계를 설명하세요.

Fit p=3 coefficients to n=384 actual complete establishment pairs and use K=4 original chain groups as a working clustering. Find the CR1 multiplier and explain the information limit.

풀이와 확인할 이유Solution and explanation

배수는 (4/3)(383/381)=1532/1143입니다. 384행이 있어도 독립 체인 384개를 얻은 것은 아닙니다. 네 관측 분류의 실제 오차 독립·주 정책 식별·소수 군집 근사는 각각 추가 근거가 필요합니다.

The multiplier is 1532/1143. The 384 rows are not 384 independent chains. Actual between-chain error independence, state-policy identification and few-cluster approximation each require justification.

55. 원 코드 407의 두 행Two rows with original code 407

실제 점포 원행 42와 168은 둘 다 코드 407이지만 각각 체인 2 · PA · FTE 11→11, 체인 4 · NJ · FTE 12→14.5입니다. 코드가 같다는 이유로 병합한 뒤 군집 점수를 계산해도 되나요?

Actual source positions 42 and 168 both have code 407, but respectively chain 2 / PA / FTE 11→11 and chain 4 / NJ / FTE 12→14.5. May they be merged before cluster-score calculation just because the code repeats?

풀이와 확인할 이유Solution and explanation

아닙니다. 서로 다른 원행과 원 측정을 각각 보존하고 원 체인 분류를 사용합니다. 단순 병합은 행·점수·분모를 바꾸며 같은 실제 점포라는 근거도 없습니다. 원행 키 역시 독립성을 증명하는 것은 아닙니다.

No. Retain separate source records, measurements and original chain labels. An unsupported merge changes rows, scores and denominators without proving one actual establishment. Source keys also do not prove independence.

56. 원행 위치와 실제 시간Source position versus actual time

익명 Card 사람 원행을 1, 2, … 순서로 놓고 HAC를 계산할 수 있다는 대수 사실이 있습니다. 이것을 실제 시간 의존에 강건한 표준오차라고 부를 수 있나요?

An anonymous Card cohort can algebraically be ordered by source positions 1, 2, … for a HAC calculation. Does this make it robust to actual temporal dependence?

풀이와 확인할 이유Solution and explanation

아닙니다. 원행 위치가 달력이라는 근거가 없습니다. 설명용 위치 지수 계산과 실제 연도가 검증된 국가 계산을 구별해야 합니다. 이 장의 실제 자료 adapter는 사람·점포의 원행 순서를 시간으로 인증하지 않으며 해당 실제 HAC 선택을 허용하지 않습니다.

No. There is no evidence source positions are calendar time. Separate illustrative positional arithmetic from actual source-year calculations. The actual-data adapter does not certify cohort or establishment order as time and rejects that actual HAC choice.

57. 공분산을 바꿔도 같은 계수Covariance changes with an unchanged fit

같은 실제 완전행 A, Y에서 HC1 대신 CR1 또는 HAC 규칙을 사용합니다. OLS 목적함수는 그대로입니다. 관측 계수·잔차·공분산과 인과 해석은 각각 어떻게 되나요?

On identical actual complete rows A, Y, switch from HC1 to CR1 or HAC without changing the OLS objective. What happens to coefficients, residuals, covariance and causal interpretation?

풀이와 확인할 이유Solution and explanation

계수와 잔차는 그대로이고 공분산 추정식은 달라질 수 있습니다. 변화는 다른 교차항·보정·의존 전제를 반영합니다. 실제 인과 식별이 자동으로 생기거나 사라지는 것이 아니며 관심 개입·평균·선택 가정을 따로 검토해야 합니다.

Coefficients and residuals stay fixed while the covariance recipe can change. Different cross terms, corrections and dependence assumptions do not automatically create causal identification.

58. 군집 수 배수만으로 순위를 정할 수 없는 이유Why correction factors alone do not rank covariances

같은 점포 표를 체인 4개 또는 주 2개로 묶으면 CR1 보정 배수가 달라집니다. 배수가 더 크다는 이유만으로 그 최종 표준오차가 항상 더 크다고 말해도 되나요?

The same establishment table is grouped into four chains or two states, changing the CR1 factor. Does a larger factor guarantee a larger final standard error?

풀이와 확인할 이유Solution and explanation

아닙니다. 집단 점수와 그 외적 합도 분류에 따라 달라집니다. 배수 하나만 비교해서 전체 샌드위치 행렬을 순위 매길 수 없습니다. 어느 분류가 질문·표집·공유 충격에 적절한지도 별도 근거가 필요합니다.

No. Group scores and their outer-product sum also change. A multiplier alone cannot rank entire sandwich matrices. Appropriate clustering still depends on the question, sampling and shared shocks.

59. 원 자료일과 재현 범위Retention dates and reproducibility scope

원 World Bank/Card 자료는 2026년 10월 20일 보관했고 10월 27일 검토합니다. 같은 해시에서 Python/R 공분산이 일치하면 새 수집·실제 독립 군집·정규 포함률까지 검증되나요?

World Bank/Card originals were retained on 20 October 2026 and reviewed on 27 October. If Python/R reproduce covariance from identical hashes, does that verify a new collection, actual independent clusters or normal-reference coverage?

풀이와 확인할 이유Solution and explanation

아닙니다. 원 보관일과 검토일을 구별합니다. 해시와 교차 언어 계산은 어떤 입력·변환·규약을 재현했는지 확인합니다. 실제 표집·의존·모멘트·인과 식별·근사 포함률의 타당성은 별도 주장입니다.

No. Distinguish original retention and review. Hashes and cross-language calculations establish input and computational reproducibility, not actual sampling, dependence, identification or coverage assumptions.

60. 세 층의 결론을 다시 쓰기Rewrite a three-layer conclusion

실제 회귀의 잔차 합이 0이고 HC3·CR1·HAC가 모두 계산되었습니다. 보고서가 ‘모든 규칙이 돌아가므로 추정 인과효과는 정확하고 95% 구간도 보장된다’고 합니다. 표적·공분산·임계값의 세 층으로 고치세요.

An actual regression has zero fitted-residual sum and computable HC3, CR1 and HAC. A report claims this proves a correct causal effect and guaranteed 95% intervals. Rewrite it by separating target, covariance and reference layers.

풀이와 확인할 이유Solution and explanation

먼저 관측 투영인지 인과효과인지 목표와 식별 근거를 적습니다. 다음 같은 가용행에서 공분산 규칙·군집 또는 시차·모멘트·의존 전제를 보고합니다. 마지막 임계값·근사 분포·소수 집단·0분산 등의 한계를 명시합니다. 계산 가능성과 명목 포함률·인과성은 같은 결론이 아닙니다.

Define the target and identification first. Report covariance conventions, availability, groups/lags, moments and dependence second. State cutoff/reference and small-group or zero-variance limits third. Computability does not itself establish causality or nominal coverage.

자료와 출처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