METR-08 · ECONOMETRICS

교란·통제 변수·나쁜 통제Confounding, controls and bad controls

같은 층의 비교에서 매개·충돌 변수와 조정 조건까지From within-stratum comparisons to mediators, colliders and adjustment conditions

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

기초Foundations

1. 비교집단의 구성이 다르면1. When group compositions differ

프로그램을 받은 집단의 평균이 더 높아도, 그 집단에 원래 수준이 높은 사람이 더 많이 들어갔을 수 있습니다. 지난 장의 빠진 반사실 문제를 이번에는 관측된 두 층으로 풀어 봅니다. 다음 표의 인원과 평균은 실제 개인 기록이 아니라 전부 가정한 교육 예입니다.

가정한 두 층 · 같은 기간·소득 단위
층 X대조 인원대조 평균처치 인원처치 평균
낮음8022
높음28810

낮은 층에서는 받은 사람 평균이 2만큼 높고 높은 층에서도 2만큼 높습니다. 전체를 합치면 차이는 2보다 커집니다. 실제 어떤 이유로 두 집단의 구성이 달라졌는지는 이 요약 표만으로 확인할 수 없습니다.

A treated group can have a higher mean partly because it contains more units with high baseline levels. We revisit missing counterfactuals using two observed strata. All counts and means below are assumed teaching values, not actual individual records.

Assumed strata · common outcome period and units
Stratum XControlsControl meanTreatedTreated mean
Low8022
High28810

The treated-minus-control difference is two within either stratum, yet larger after pooling. This summary alone does not establish why the group compositions differ.

기초Foundations

2. 어느 분모로 나누었는가2. Which denominator did you use?

처치 10명 중 낮은 층은 2명이라 20%, 높은 층은 8명이라 80%입니다. 대조 10명은 그 비율이 반대로 80%,20%입니다. 같은 “낮은 층”이라도 전체 20명 중 비율은 10/20=50%입니다.

w1,L=2/10,w1,H=8/10w0,L=8/10,w0,H=2/10wL=wH=1/2\begin{gathered}w_{1,L}=2/10,\quad w_{1,H}=8/10\\w_{0,L}=8/10,\quad w_{0,H}=2/10\\w_L=w_H=1/2\end{gathered}

아래첨자 1과 0은 기록된 처치와 대조입니다. 두 팔의 구성 비율과 전체 표적의 비율은 다른 질문의 가중치입니다. 층별 인원이 많아 보인다는 느낌 대신 어떤 집단 안에서 나눈 것인지 적습니다.

Two of ten treated units are low-stratum and eight high-stratum: 20% and 80%. Controls reverse those shares. In the full twenty-unit frame, each stratum instead represents half.

w1,L=2/10,w1,H=8/10w0,L=8/10,w0,H=2/10wL=wH=1/2\begin{gathered}w_{1,L}=2/10,\quad w_{1,H}=8/10\\w_{0,L}=8/10,\quad w_{0,H}=2/10\\w_L=w_H=1/2\end{gathered}

Subscripts one and zero denote recorded treatment groups. Arm compositions and target-population weights answer different questions. Name the denominator rather than relying on a stratum’s apparent size.

기초Foundations

3. 전체 평균 차이는 6.8이다3. The pooled contrast is 6.8

처치 소득 합은 2명×2+8명×10=84이고 대조 합은 8명×0+2명×8=16입니다. 두 팔 모두 10명이므로 평균은 8.4와 1.6, 차이는 6.8입니다. 모든 층에서 같은 차이 2와 다르게 나옵니다.

Yˉ1=84/10=42/5Yˉ0=16/10=8/5Δpool=34/5=6.8\begin{gathered}\bar Y_1=84/10=42/5\\\bar Y_0=16/10=8/5\\\Delta_{pool}=34/5=6.8\end{gathered}

분수 계산을 더 정밀하게 해도 두 팔의 다른 층 구성은 사라지지 않습니다. 이 수치는 관측된 두 집단의 정확한 평균 차이입니다. 프로그램 효과 6.8이라고 부를 근거는 아직 주지 않았습니다.

The treated total is 2×2+8×10=84; the control total is 8×0+2×8=16. Dividing each by ten gives 8.4 and 1.6, a contrast of 6.8 rather than the within-stratum two.

Yˉ1=84/10=42/5Yˉ0=16/10=8/5Δpool=34/5=6.8\begin{gathered}\bar Y_1=84/10=42/5\\\bar Y_0=16/10=8/5\\\Delta_{pool}=34/5=6.8\end{gathered}

More precise arithmetic does not remove different compositions. This is an exact observed group contrast; no causal effect of 6.8 has yet been justified.

기초Foundations

4. 같은 구성으로 다시 평균낸다4. Average using the same composition

두 층을 각각 50%로 하는 표적 집단을 정합니다. 그 구성에서 처치 평균은 (2+10)/2=6이고 대조 평균은 (0+8)/2=4입니다. 같은 구성으로 맞춘 차이는 2입니다. 이를 표준화한 평균 비교라고 부릅니다.

md(x)=E[Y∣D=d,X=x]Δ(w)=∑xwx[m1(x)−m0(x)]wx≥0,∑xwx=1\begin{gathered}m_d(x)=E[Y\mid D=d,X=x]\\\Delta(w)=\sum_xw_x[m_1(x)-m_0(x)]\\w_x\ge0,\qquad\sum_xw_x=1\end{gathered}

각 가중치가 양수인 층에서 두 관측 평균이 정의되어야 합니다. 이 조정은 먼저 두 집단의 구성을 같은 가중치로 맞추는 계산입니다. 그 뒤 인과 해석을 붙이려면 별도의 조건이 필요합니다.

Choose a target population with half in each stratum. Standardized treated and control means are six and four, giving two. This is a standardized comparison using a common composition.

md(x)=E[Y∣D=d,X=x]Δ(w)=∑xwx[m1(x)−m0(x)]wx≥0,∑xwx=1\begin{gathered}m_d(x)=E[Y\mid D=d,X=x]\\\Delta(w)=\sum_xw_x[m_1(x)-m_0(x)]\\w_x\ge0,\qquad\sum_xw_x=1\end{gathered}

Both observed means must be defined in each positive-weight target stratum. Standardization first equalizes composition mathematically. A causal interpretation requires additional conditions.

기초Foundations

5. 차이의 방향도 뒤집힐 수 있다5. Even the direction can reverse

인원은 같은 채 낮은 층의 대조·처치 평균을 2와 1, 높은 층을 10과 9로 바꿉니다. 각 층에서 처치 평균은 1 작습니다. 하지만 처치 전체 평균은 (2×1+8×9)/10=7.4이고 대조는 (8×2+2×10)/10=3.6이라 전체 차이는 +3.8입니다.

높은 수준 층이 처치 집단에 더 많이 들어간 결과입니다. “층별 차이는 음수인데 전체는 양수”라는 관측 사실은 산술 모순이 아닙니다. 또한 층을 나누면 언제나 인과 답이 나온다는 뜻도 아닙니다. 어떤 X를 조건으로 삼을지의 근거가 다음 질문입니다.

Keep the counts but change low-stratum control/treated means to two and one, and high-stratum means to ten and nine. Each stratum has contrast −1. Yet pooled treated mean is 7.4 and control mean 3.6, giving +3.8.

Treated units disproportionately occupy the high-level stratum. Opposite pooled and within-stratum signs are not an arithmetic contradiction. They also do not mean that stratifying on any chosen X automatically yields a causal answer. The choice of conditioning variable needs justification.

기초Foundations

6. 조정한 대상도 선택해야 한다6. The adjusted target must also be chosen

두 층의 차이가 2와 4라면 가중치에 따라 다른 질문이 됩니다. 전체 구성 (1/2,1/2)은 3, 처치 구성 (1/5,4/5)은 18/5=3.6, 대조 구성 (4/5,1/5)은 12/5=2.4를 줍니다. 어느 하나가 계산상 유일한 정답인 것은 아닙니다.

전체·처치·대조·층 동일 가중 표적을 구별합니다. 처치 구성의 X 가중 평균과 ATT도 조건 없이 같지 않습니다. ATT는 실제 처치된 사람의 개인 효과 평균이고, X별 전체 잠재 평균 효과를 처치 X 구성으로 평균낸 값과 같으려면 해당 조건부 교환 관계가 더 필요합니다.

With stratum contrasts two and four, different target weights give different answers: three for equal halves, 3.6 for treated composition (1/5,4/5), and 2.4 for control composition (4/5,1/5). No target is selected by arithmetic alone.

Distinguish combined, treated, control and equal-stratum targets. Standardizing by treated X shares is not automatically ATT. The latter averages effects among actual treated units; matching it to stratum-level full potential effects needs an appropriate conditional exchangeability relation.

기초Foundations

7. 차이와 구성의 두 성분7. Within-stratum and composition components

두 팔 총가중치가 양수이고 처치가 있는 각 층에 대조 평균도 정의된다고 합시다. 관측 전체 차이에 처치 구성으로 평균낸 대조 평균을 더했다 빼면 다음 식이 나옵니다. 각 합에서는 가중치가 0인 항을 빼고 계산하여, 그 항의 미정의 팔 평균을 평가하지 않습니다. B는 층 구성의 차이를 대조 평균으로 평가한 항입니다.

A=∑xw1x[m1(x)−m0(x)]B=∑x(w1x−w0x)m0(x)Δpool=A+B\begin{gathered}A=\sum_xw_{1x}[m_1(x)-m_0(x)]\\B=\sum_x(w_{1x}-w_{0x})m_0(x)\\\Delta_{pool}=A+B\end{gathered}

기본 예에서는 A=2이고 B=(0.2−0.8)×0+(0.8−0.2)×8=4.8이므로 6.8=2+4.8입니다. 이것은 관측 평균의 대수적 분해입니다. X만으로 모든 교란이 제거되었다는 증명은 아닙니다. 미정의 셀에 양의 기여가 필요하면 분해를 억지로 계산하지 않습니다.

Assume both arm totals are positive and every treated-supported stratum has a defined control mean. Add and subtract the control mean averaged with treated composition. The composition term evaluates changing stratum shares using control means. Omit zero-weight summands without evaluating their undefined arm means.

A=∑xw1x[m1(x)−m0(x)]B=∑x(w1x−w0x)m0(x)Δpool=A+B\begin{gathered}A=\sum_xw_{1x}[m_1(x)-m_0(x)]\\B=\sum_x(w_{1x}-w_{0x})m_0(x)\\\Delta_{pool}=A+B\end{gathered}

The opening example gives A=2 and B=4.8, hence 6.8=2+4.8. This is observed-mean algebra, not a proof that X removes all confounding. Do not fabricate an undefined cell needed with positive weight.

기초Foundations

8. 실습 A · 층 구성과 표적8. Lab A · Composition and the target

층별 두 팔 인원 또는 비음수 가중치와 평균을 넣고 표적을 고릅니다. 빈 팔의 평균은 null로 직접 표시합니다. 전체 차이·표준화 차이·구성 분해를 비교하고 표적 가중치가 양수인데 한쪽 팔이 없는 층을 확인합니다.

Enter stratum-specific arm counts or nonnegative weights and means, then choose a target. An empty-arm mean must be null. Compare pooled and standardized contrasts and composition algebra; inspect target-positive strata lacking an arm.

기초Foundations

9. 조정 계산과 잠재 결과의 진실9. Adjustment arithmetic versus potential-outcome truth

교육 예에서는 각 낮은 층 사람의 Y(0)=0,Y(1)=2, 높은 층은 Y(0)=8,Y(1)=10이라고 추가로 가정할 수 있습니다. 이때 모든 개인 효과가 2여서 전체 ATE도 2입니다. 같은 층의 처치 여부가 두 가능 결과를 바꾸지 않는다는 강한 추가 정보가 생긴 것입니다.

관측된 네 셀 평균만 주었을 때는 이 완전 잠재 표가 유일하지 않습니다. 받은 사람의 무처치 결과와 안 받은 사람의 처치 결과를 다르게 완성할 수도 있습니다. 실습 B는 완전한 유한 가정 법칙을 넣었을 때의 진실과 관측 조정을 비교하며 실제 반사실을 새로 측정하지 않습니다.

For teaching, additionally assume every low-stratum unit has Y(0)=0,Y(1)=2 and every high-stratum unit Y(0)=8,Y(1)=10. Every effect and ATE then equals two. This supplies strong information about potential outcomes within strata.

The four observed cell means alone do not uniquely determine that complete table. Missing counterfactuals can be completed differently. Lab B compares truth and observed adjustment only when an entire assumed finite law is supplied; it does not newly observe actual counterfactuals.

기초Foundations

10. 같은 층 안에서도 선택이 남을 수 있다10. Selection can remain within strata

X가 같은 사람끼리 비교해도 동기·건강·정보가 다르다면 처치 여부와 빠진 잠재 결과가 관련될 수 있습니다. 예를 들어 같은 학력 안에서 소득이 더 높을 사람만 프로그램을 골랐다면 학력 층화만으로 그 차이를 없애지 못합니다.

여기서 교란 문제란 단순히 두 관측 열이 상관된다는 말이 아닙니다. 처치 집단과 대조 집단의 잠재 결과를 어느 조건에서 비교할 수 있는지가 핵심입니다. 관측 변수의 이름이 “통제”라고 붙었다고 그 조건이 성립하지 않습니다.

Within the same X, differences in motivation, health or information can still relate treatment to missing potential outcomes. If higher-earning types select a program even within schooling strata, schooling adjustment alone need not remove that selection.

Confounding is not merely correlation between two observed columns. The central issue is when potential outcomes can be compared across treatment groups. Naming a variable a control does not establish that condition.

기초Foundations

11. 평균 효과에 필요한 조건을 적는다11. State conditions for a mean-effect adjustment

유한 기대값이 존재하고 처치 버전·간섭 없음·관측 일치를 가정합니다. 양의 표적 가중치를 갖는 각 X에서 두 팔의 확률이 양수라고 합시다. 두 잠재 결과 각각의 평균이 X를 조건으로 처치 여부와 무관하면 관측 평균을 잠재 평균과 연결할 수 있습니다.

E[Y(d)∣D=d,X=x]=E[Y(d)∣X=x](d=0,1)0<Pr⁡(D=1∣X=x)<1\begin{gathered}E[Y(d)\mid D=d,X=x]\\=E[Y(d)\mid X=x]\quad(d=0,1)\\0<\Pr(D=1\mid X=x)<1\end{gathered}

이 식은 데이터 평균을 계산하는 정의가 아니라 추가 가정입니다. 완전 잠재 법칙을 가정한 실습에서는 참인지 직접 검사할 수 있지만 실제 자료에서는 빠진 결과 때문에 같은 방식으로 검증할 수 없습니다.

Assume finite expectations, a defined treatment, no interference and consistency. Each positive-weight target stratum must have both arms with positive probability. If each potential-outcome mean is unrelated to treatment conditional on X, observed means can be connected to potential means.

E[Y(d)∣D=d,X=x]=E[Y(d)∣X=x](d=0,1)0<Pr⁡(D=1∣X=x)<1\begin{gathered}E[Y(d)\mid D=d,X=x]\\=E[Y(d)\mid X=x]\quad(d=0,1)\\0<\Pr(D=1\mid X=x)<1\end{gathered}

This is an extra condition, not a definition of an observed mean. A complete assumed law lets the lab inspect it; actual missing outcomes prevent the same direct verification.

학부 심화 · 선택Advanced undergraduate · optional

12. 왜 가중 관측 차이가 표적 효과가 되는가12. Why weighted observed differences identify the target effect

각 d와 양의 표적 층에서 관측 일치로 E[Y|D=d,X]=E[Y(d)|D=d,X]입니다. 앞 절의 조건부 평균 교환 가정을 적용하면 오른쪽은 E[Y(d)|X]가 됩니다. 두 d를 빼고 정한 표적의 X 가중치로 평균내면 됩니다.

md(x)=E[Y(d)∣X=x]τ(x)=E[Y(1)−Y(0)∣X=x]Δ(w)=∑xwxτ(x)\begin{gathered}m_d(x)=E[Y(d)\mid X=x]\\\tau(x)=E[Y(1)-Y(0)\mid X=x]\\\Delta(w)=\sum_xw_x\tau(x)\end{gathered}

전체 X 구성의 가중치라면 전체 평균 효과입니다. 다른 표적이면 그 구성으로 표준화한 잠재 결과 차이입니다. 증명에서 사용한 관측 일치·양수성·조건부 평균 교환·표적 구성을 빠뜨리지 않고 보고합니다.

Consistency gives E[Y|D=d,X]=E[Y(d)|D=d,X]. Conditional mean exchangeability replaces the right side by E[Y(d)|X]. Subtract the two treatment states and average with the declared target X weights.

md(x)=E[Y(d)∣X=x]τ(x)=E[Y(1)−Y(0)∣X=x]Δ(w)=∑xwxτ(x)\begin{gathered}m_d(x)=E[Y(d)\mid X=x]\\\tau(x)=E[Y(1)-Y(0)\mid X=x]\\\Delta(w)=\sum_xw_x\tau(x)\end{gathered}

Population X shares target the full ATE; other weights target a correspondingly standardized potential contrast. Report consistency, positivity, conditional mean exchangeability and the target distribution used in the proof.

기초Foundations

13. 빠진 비교 팔을 식으로 만들 수 없다13. A missing comparison arm cannot be created by notation

어떤 양의 표적 층에 처치자만 있고 대조가 없다면 m₀(x)는 그 관측 표에서 정의되지 않습니다. 처치 평균에서 0을 빼는 것은 없는 평균을 지어낸 계산입니다. 근처 층의 평균을 빌려오면 별도의 평활·외삽 모형을 추가한 것입니다.

반면 표적 가중치가 정확히 0인 층의 미정의 비교는 해당 가중합의 기여를 요구하지 않습니다. 따라서 양수성은 정한 표적의 지지집합에 대해 읽어야 합니다. 관측 비율이 극단적인 경우의 큰 역가중치와 확률이 정확히 0인 경우도 구별합니다.

If a positive-target-weight stratum has only treated units, its observed m₀(x) is undefined. Subtracting zero invents a comparison mean. Borrowing a neighboring mean instead adds smoothing or extrapolation assumptions.

A stratum with exactly zero target weight contributes nothing and need not supply an arm comparison for that sum. Positivity is target-specific. Very small positive probabilities and exact zero probabilities are different boundaries.

기초Foundations

14. 대상이 바뀌면 계산 가능성도 바뀐다14. Changing the target changes estimability

한 층은 대조 5명·처치 0명이고 다른 층은 두 팔이 모두 있다고 합시다. 전체 표적은 첫 층에도 양의 비중을 두므로 그 층의 처치 평균이 필요합니다. 처치 X 구성의 표적은 첫 층의 비중이 0일 수 있어 그 특정 가중 비교는 계산할 수 있습니다.

이는 첫 전체 표적의 효과가 저절로 식별되었다는 뜻이 아닙니다. 계산 가능한 다른 대상을 고른 것입니다. 층 동일 가중은 원래 사람이 없던 빈 층에도 양의 비중을 주는 규칙일 수 있으므로 무엇을 한 층으로 포함했는지도 적어야 합니다.

Suppose one stratum contains five controls and no treated units, while another has both arms. A combined-frame target requires the first stratum’s missing treated mean. A treated-composition target may assign it zero weight and permit that particular comparison.

This does not identify the original full target automatically; it changes the question. Equal-stratum weights can even assign positive weight to an empty listed cell, so specify the set of strata being averaged.

기초Foundations

15. 평균 교환과 전체 분포 교환은 다르다15. Mean exchangeability differs from joint exchangeability

X 한 층에서 D=0인 두 원자의 (Y0,Y1)이 (−1,−1),(1,1), D=1에서는 (−1,1),(1,−1)이라고 가정하고 네 원자는 동확률이라 합시다. 각 팔의 Y0 평균도 Y1 평균도 0이므로 평균 교환 조건은 성립합니다.

그러나 D=0에서는 두 잠재 결과가 같고 D=1에서는 반대여서 잠재 결과 쌍의 전체 분포는 다릅니다. 평균 효과를 조정하는 데 필요한 조건과 두 잠재 결과 쌍 전체의 독립을 구별해야 합니다. 실습은 이 둘을 각각 검사하고 실제 자료에서 검증되었다고 표시하지 않습니다.

Within one X stratum, assume four equally probable atoms: (Y0,Y1)=(−1,−1),(1,1) when D=0 and (−1,1),(1,−1) when D=1. Both potential-outcome means are zero in either arm, satisfying mean exchangeability.

But the pair agrees when D=0 and has opposite signs when D=1, so the joint potential-pair distribution differs. Conditions sufficient for a mean adjustment are distinct from full joint independence. The lab checks both only within the complete assumed law.

기초Foundations

16. 실습 B · 가정 법칙에서 조건을 확인한다16. Lab B · Inspect conditions in an assumed complete law

각 원자의 X,D,Y0,Y1과 비음수 질량을 입력합니다. 양의 질량을 정규화한 유한 법칙에서 진짜 잠재 효과·관측 차이·표적 표준화·양수성·평균 교환과 전체 쌍 교환을 나란히 확인합니다. 원자는 실제 관측 행을 뜻하지 않는 교육 가정입니다.

Enter X,D,Y0,Y1 and nonnegative mass for every atom. The normalized finite law compares potential truth, observed contrasts, target standardization, positivity, mean exchangeability and joint-pair exchangeability. These are assumed atoms rather than actual rows with observed counterfactuals.

기초Foundations

17. 프로그램이 연습을 거쳐 성적을 바꾼다면17. When a program changes outcomes through practice

가정한 프로그램이 연습량을 2단위 늘리고, 연습 1단위가 성적을 3점 늘린다고 합시다. 연습을 거치지 않는 직접 변화도 1점 있습니다. 같은 사람에게 프로그램을 주면 전체 변화는 1+2×3=7점입니다.

연습량을 같은 값에 고정한 채 프로그램 유무를 비교하면 연습 경로를 막아 직접 변화 1점만 남깁니다. 전체 효과를 알고 싶은데 프로그램 뒤 연습을 통제하면 다른 질문에 답할 수 있습니다. “변수를 하나 더 넣어 정밀해졌다”는 말만으로 이 차이를 설명하지 못합니다.

Assume a program raises practice by two units, each practice unit raises the score by three, and a direct path adds one. Giving the same unit the program changes the score by 1+2×3=7.

Holding practice fixed while changing the program blocks that pathway and leaves the direct change one. Controlling post-program practice can answer a different question from the total effect. Adding a variable is not automatically an improvement for the original target.

기초Foundations

18. 어떤 구조를 가정했는지 식으로 적는다18. Write the assumed structural model

D는 확률 p로 1인 배정 지표이고 평균 0의 두 잡음 U,V와 독립이라고 가정합니다. D를 바꾸면 M이 바뀌고 M과 D가 Y로 들어가는 다음 구조를 정합니다. 잡음의 유한 분산과 공분산도 모형의 입력입니다.

M=αD+UY=βD+γM+VE[U]=E[V]=0D ⊥ (U,V)\begin{gathered}M=\alpha D+U\\Y=\beta D+\gamma M+V\\E[U]=E[V]=0\\D\ \perp\ (U,V)\end{gathered}

0≤p≤1, v_U=Var(U)≥0,v_V=Var(V)≥0이며 c=Cov(U,V)는 c²≤v_Uv_V를 만족해야 합니다. 이 조건은 두 잡음의 공분산 행렬이 가능한지를 제한합니다. 실제 자료에서 이 구조나 독립이 입증되었다고 하지 않습니다.

Assume binary D with probability p is independent of mean-zero noises U,V. The following structural equations specify how changing D changes M and how both enter Y. Finite noise variances and covariance are model inputs.

M=αD+UY=βD+γM+VE[U]=E[V]=0D ⊥ (U,V)\begin{gathered}M=\alpha D+U\\Y=\beta D+\gamma M+V\\E[U]=E[V]=0\\D\ \perp\ (U,V)\end{gathered}

Require 0≤p≤1, v_U=Var(U)≥0,v_V=Var(V)≥0 and c²≤v_Uv_V for c=Cov(U,V). The last condition makes the noise covariance matrix feasible. Neither the structure nor independence is certified from actual data.

기초Foundations

19. 전체 변화와 M 고정 변화19. Total change versus changing D with M fixed

같은 U,V를 둔 채 D를 0에서 1로 바꾸면 M은 α만큼 바뀝니다. 따라서 Y의 변화는 β+γα입니다. 반면 M을 외부에서 같은 m으로 고정하면 Y=βD+γm+V이므로 D의 변화는 β입니다.

τtotal=β+γατdirect(m)=β\begin{gathered}\tau_{total}=\beta+\gamma\alpha\\\tau_{direct}(m)=\beta\end{gathered}

여기서는 선형·상호작용 없음의 구조 때문에 직접 변화가 m과 무관합니다. α=2,β=1,γ=3이면 전체 7, 직접 1입니다. 관측된 M이 같은 사람끼리 조건을 거는 것과 외부 개입으로 M을 고정하는 것도 구별해야 합니다.

Holding U,V fixed, changing D from zero to one changes M by α and Y by β+γα. Externally fixing M at the same m instead gives Y=βD+γm+V, with D contrast β.

τtotal=β+γατdirect(m)=β\begin{gathered}\tau_{total}=\beta+\gamma\alpha\\\tau_{direct}(m)=\beta\end{gathered}

The direct contrast is m-invariant because this declared model is linear without interactions. For α=2,β=1,γ=3, total and direct contrasts are seven and one. Conditioning on observed M and intervening to fix M are also different operations.

기초Foundations

20. 무작위 D의 단순 투영 계수20. The simple projection coefficient for randomized D

앞의 구조에서 0<p<1이면 Var(D)>0입니다. M을 대입하면 Y=(β+γα)D+γU+V이고 D는 뒤 두 항과 무상관입니다. 따라서 절편과 D에 대한 모집단 제곱손실 최소 투영의 D 계수는 전체 효과와 같습니다.

τ=β+γαCov⁡(D,Y)=τVar⁡(D)bD=τ\begin{gathered}\tau=\beta+\gamma\alpha\\\operatorname{Cov}(D,Y)=\tau\operatorname{Var}(D)\\b_D=\tau\end{gathered}

이는 선언한 무작위·구조 모형 안의 결론입니다. 실제 관측 D에 단순 회귀를 맞췄다는 사실로 독립 조건이 생기지 않습니다. p=0 또는 1이면 D가 상수라 이 계수 비율은 미정의여도 모형이 가정한 0→1 개입 변화는 여전히 정의될 수 있습니다.

In the preceding structure, 0<p<1 gives positive Var(D). Substitution yields Y=(β+γα)D+γU+V, and D is uncorrelated with the noise terms. The population squared-loss projection on an intercept and D therefore has coefficient equal to the total effect.

τ=β+γαCov⁡(D,Y)=τVar⁡(D)bD=τ\begin{gathered}\tau=\beta+\gamma\alpha\\\operatorname{Cov}(D,Y)=\tau\operatorname{Var}(D)\\b_D=\tau\end{gathered}

This conclusion belongs to the declared structural/randomized model. Fitting a simple regression to actual D does not establish independence. At p=0 or one, D is constant and this coefficient ratio is undefined even if the model still specifies an intervention contrast.

학부 심화 · 선택Advanced undergraduate · optional

21. M을 넣으면 계수가 어떻게 바뀌나21. How does including M change the coefficient?

0<p<1이고 v_U>0이면 절편,D,M은 모집단에서 선형 독립입니다. c=Cov(U,V)라 놓고 V에서 (c/v_U)U를 빼면 그 잔차는 U와 D에 무상관입니다. U=M−αD를 대입하여 제곱손실 투영을 읽습니다.

bM=γ+c/vUbD=β−αc/vUe=V−(c/vU)U\begin{gathered}b_M=\gamma+c/v_U\\b_D=\beta-\alpha c/v_U\\e=V-(c/v_U)U\end{gathered}

이렇게 얻은 e는 상수,D,M에 직교하여 정상 방정식을 만족합니다. 열이 독립이므로 계수는 유일합니다. c=0이어도 b_D는 직접 효과 β이지 일반적으로 전체 효과 β+γα가 아닙니다. c≠0이면 직접 효과와도 달라질 수 있습니다.

For 0<p<1 and v_U>0, intercept, D, M are linearly independent in population. Writing c=Cov(U,V), the residual V−(c/v_U)U is uncorrelated with U and D. Substitute U=M−αD to read the squared-loss projection.

bM=γ+c/vUbD=β−αc/vUe=V−(c/vU)U\begin{gathered}b_M=\gamma+c/v_U\\b_D=\beta-\alpha c/v_U\\e=V-(c/v_U)U\end{gathered}

The residual is orthogonal to the intercept, D, M and satisfies the normal equations; linear independence of the columns gives uniqueness. Even at c=0, b_D is β rather than generally the total effect β+γα. With c≠0 it can differ from the direct effect too.

기초Foundations

22. 직접 효과 1과 전체 효과 722. A direct effect of one and a total effect of seven

α=2,β=1,γ=3,p=1/2,v_U=v_V=1,c=0이라고 가정합니다. M을 빼고 D에 투영하면 계수는 7입니다. M까지 넣으면 D 계수는 1,M 계수는 3입니다. 서로 다른 두 수가 모두 정확히 계산될 수 있습니다.

7은 같은 사람의 M 변화까지 허용한 전체 프로그램 효과이고 1은 이 구조에서 M을 고정한 직접 효과입니다. 전체 효과를 보고해야 하는 상황에서 1을 “더 통제된 같은 효과”로 대체하면 추정 대상을 바꾼 것입니다. 실제 성적·연습 자료로 이 가정을 식별했다고 해석하지 않습니다.

Assume α=2,β=1,γ=3,p=1/2,v_U=v_V=1,c=0. Projecting Y on D without M gives seven; including M gives coefficients one for D and three for M. Both calculations can be exact.

Seven permits M to respond and targets the total program effect. One is the controlled direct effect in this structure. Replacing seven with one as a supposedly better-controlled estimate changes the target. Actual score/practice observations have not identified these structural assumptions.

기초Foundations

23. M을 조건으로 삼아 직접 효과도 잃는 예23. Conditioning can also lose the direct effect

α=2,β=1,γ=3,p=1/2,v_U=1,v_V=2,c=1로 바꿉니다. 공분산 조건 1²≤1×2는 만족합니다. 단순 D 계수는 여전히 전체 효과 7이지만 M을 넣은 계수는 b_D=1−2×1=−1,b_M=3+1=4입니다.

D가 원래 잡음들과 독립이어도 M에는 D와 U가 함께 들어갑니다. M을 조건으로 D를 비교하면 U의 구성이 달라지고, U와 관련된 V도 함께 달라질 수 있습니다. 매개 통제 뒤의 회귀 계수를 직접 개입 효과라고 부르려면 더 많은 조건이 필요하다는 반례입니다.

Now use α=2,β=1,γ=3,p=1/2,v_U=1,v_V=2,c=1, satisfying 1²≤1×2. The simple D coefficient remains total effect seven, while including M gives b_D=−1 and b_M=4.

Although D is originally independent of the noises, M combines D and U. Comparing D conditional on M changes the U composition and potentially correlated V. A post-mediator regression coefficient therefore needs additional justification even as a direct intervention effect.

기초Foundations

24. 실습 C · 전체·직접·투영을 나눈다24. Lab C · Separate total, direct and projected contrasts

α,β,γ와 D확률·잡음 분산·공분산을 정합니다. 가정한 전체·직접 변화와 두 모집단 투영의 모든 계수 해를 함께 봅니다. 공분산이 불가능하면 거절하며 열이 종속이면 한 해만 유일한 계수인 것처럼 보이지 않습니다.

Choose α,β,γ, treatment probability and noise moments. Compare total/direct model contrasts with complete coefficient families for the two population projections. Infeasible covariance is rejected, and dependent columns are not reported as uniquely identified coefficients.

기초Foundations

25. M이 D의 배수이면 전체 해가 필요하다25. When M is a multiple of D, report the whole solution family

v_U=0이면 평균 0인 U는 확률 1로 0이고 M=αD입니다. 0<p<1,α=2, 전체 효과 7의 예에서 절편,D,M 회귀의 적합값은 (b_D+2b_M)D입니다. 같은 적합을 주는 계수는 무한히 많습니다.

b0=0bM=tbD=7−2t(t∈R)\begin{gathered}b_0=0\\b_M=t\\b_D=7-2t\qquad(t\in\mathbb R)\end{gathered}

t=0이면 D계수7,t=3이면1,t=4이면−1입니다. 가정한 구조의 직접 효과 β가 알려져 있다는 것과 관측 투영에서 그 계수가 유일하다는 것은 다릅니다. 실습은 특이 행렬을 억지로 역행렬로 만들지 않고 전체 아핀 해집합을 반환합니다.

If v_U=0, mean-zero U vanishes almost surely and M=αD. With 0<p<1, α=2 and total effect seven, fitted values depend only on b_D+2b_M. Infinitely many coefficient pairs agree.

b0=0bM=tbD=7−2t(t∈R)\begin{gathered}b_0=0\\b_M=t\\b_D=7-2t\qquad(t\in\mathbb R)\end{gathered}

Values t=0,3,4 give D coefficients seven, one and −1. Knowing β by structural assumption differs from identifying a unique projection coefficient. The lab returns the complete affine solution family rather than inventing an inverse.

학부 심화 · 선택Advanced undergraduate · optional

26. 전체 계수가 비유일해도 한 성분은 정해질 수 있다26. One component can be identified within a nonunique coefficient family

0<p<1,α=0,v_U=0이면 M은 항상 0입니다. M의 계수는 어떤 값이어도 적합에 영향을 주지 않습니다. 그러나 절편과 D는 선형 독립이라 D 계수 β는 유일합니다. 따라서 “행렬 특이”를 모든 예측과 모든 계수 성분이 미정의라는 뜻으로 뭉뚱그리지 않습니다.

일반적으로 계수 해를 b=b*+Σt_jv_j로 썼을 때 어떤 성분 k가 유일하려면 모든 영공간 방향의 k성분이 0이어야 합니다. 각 계수의 식별 여부와 전체 해를 함께 표시합니다. 자료 밖 반사실이나 구조 효과까지 그 성질로 알아낸 것은 아닙니다.

For 0<p<1, α=0 and v_U=0, M is always zero. Its coefficient is arbitrary, yet the linearly independent intercept and D columns uniquely determine D coefficient β. Singularity does not make every fitted quantity and every coefficient component undefined.

For a family b=b*+Σt_jv_j, component k is unique exactly when every nullspace direction has zero kth component. Report component identification alongside the full family. This projection property does not identify structural counterfactuals outside the assumed model.

기초Foundations

27. D가 상수인 경계27. The boundary with constant D

p=0이면 D는 항상 0이고 p=1이면 항상 1입니다. 절편과 D를 관측 투영에서 분리할 수 없습니다. p=1일 때 절편에 더한 a를 D 계수에서 빼도 적합값이 같습니다. M에 별도의 잡음이 있으면 M 방향은 여전히 구별될 수 있습니다.

프로그램이 실제로 주어진 팔 하나만 있다는 상황과 구조식이 0→1 개입을 어떻게 정의하는지는 구별합니다. 가정한 전체 변화 β+γα를 계산할 수 있어도 현재 관측 분포의 D계수가 식별되었다고 말하지 않습니다. 실습의 전체 해집합과 성분 식별 표시는 이 경계를 그대로 보존합니다.

At p=0 D is always zero; at p=1 it is always one. The projection cannot separate intercept and D. For p=1, adding a to the intercept and subtracting a from the D coefficient preserves fits. Independent variation in M can still identify its direction.

An observed single arm and a structural definition of a zero-to-one intervention are different matters. Computing β+γα from assumptions does not identify a D coefficient from the observed distribution. The complete solution family retains this boundary.

기초Foundations

28. 둘 중 하나가 있으면 선발되는 집단28. A selected group requiring either of two causes

프로그램 D와 능력 U가 독립이고 각각 확률 1/2로 1이라고 가정합니다. D=1이거나 U=1이면 선발 M=1입니다. 성과 Y=2U라 프로그램 자체의 효과는 0입니다. 전체에서는 D와 능력의 구성이 같지만 선발자만 보면 달라집니다.

선발된 D=0 사람은 반드시 U=1입니다. 반면 선발된 D=1 사람의 U는 절반만 1입니다. 두 독립 원인으로 들어오는 화살표가 M에서 만나는 구조를 충돌변수라고 부릅니다. 그 공통 결과를 조건으로 삼아 원인들 사이의 비교를 바꿀 수 있습니다.

Assume independent binary program D and ability U, each with probability half. Selection M=1 occurs if either D=1 or U=1. Outcome Y=2U has no program effect. D groups have the same ability composition before selection but differ among selected units.

A selected D=0 unit must have U=1; only half of selected D=1 units do. Two cause arrows meeting at their common effect M form a collider. Conditioning on that effect can alter the association between its causes.

기초Foundations

29. 네 원자를 먼저 적고 선발한다29. Write four atoms before selecting

독립 공정 이진 D,U의 네 원자는 각각 1/4입니다. M은 OR 규칙이고 Y=2U입니다. 아래 마지막 세 원자만 M=1 안에 남아 각각 조건부 확률 1/3이 됩니다.

가정한 OR 선발과 관측 성과
DUMY확률
00001/4
01121/4
10101/4
11121/4

선발 후 D=1 평균은 (0+2)/2=1,D=0 평균은 2라 차이는 −1입니다. 프로그램이 능력을 바꾸지 않는 이 가정 모형의 진짜 효과 0과 다릅니다. 원자를 버리는 선택 연산이 새로운 비교를 만들었습니다.

Independent fair binary D,U give four atoms of probability 1/4. Let M use the OR rule and Y=2U. Conditioning on M=1 keeps the last three atoms, each now with probability 1/3.

Assumed OR selection and outcomes
DUMYProbability
00001/4
01121/4
10101/4
11121/4

The selected D=1 mean is one and D=0 mean two, giving −1 rather than the model’s true zero effect. Dropping atoms by selection creates a different comparison.

기초Foundations

30. 조건부 상관이 어디서 생겼나30. Where does conditional association come from?

같은 OR 예의 M=1 안에서 E[D]=E[U]=2/3이고 E[DU]=1/3입니다. 따라서 공분산은 1/3−4/9=−1/9입니다. 선택 전 공분산 0과 다릅니다. D=1이 선발에 충분하므로 선발자 중에서는 능력이 낮은 D=1도 들어올 수 있기 때문입니다.

Cov⁡(D,U)=0Cov⁡(D,U∣M=1)=−1/9\begin{gathered}\operatorname{Cov}(D,U)=0\\\operatorname{Cov}(D,U\mid M=1)=-1/9\end{gathered}

M에 조건을 거는 것은 M을 외부에서 1로 개입하여 바꾸는 것과 다릅니다. 이 구조에서 M은 Y의 원인이 아니므로 M만 강제로 바꿔도 Y=2U는 바뀌지 않습니다. 관측 선택과 개입을 같은 연산으로 쓰지 않습니다.

Within M=1 in the OR example, E[D]=E[U]=2/3 and E[DU]=1/3, so covariance is −1/9 instead of zero. Because D=1 already suffices for selection, selected treated units can include lower ability.

Cov⁡(D,U)=0Cov⁡(D,U∣M=1)=−1/9\begin{gathered}\operatorname{Cov}(D,U)=0\\\operatorname{Cov}(D,U\mid M=1)=-1/9\end{gathered}

Conditioning on observed M=1 differs from externally intervening to set M to one. M does not cause Y in this structure, so intervening on M alone leaves Y=2U unchanged. Selection and intervention are different operations.

기초Foundations

31. 두 팔이 모두 있어도 나쁜 조정일 수 있다31. Having both arms does not make a control appropriate

D,U가 독립이며 각각 1일 확률 1/4, 성과 Y=2U, M은 D와 U가 다를 때 1인 XOR라고 가정합니다. 모든 M층에 두 D팔이 양수로 존재합니다. M=0에서 D별 Y차이는 +2,M=1에서는 −2입니다.

M=0의 질량은 (3/4)²+(1/4)²=5/8,M=1은 3/8입니다. 전체 M 구성으로 표준화하면 (5/8)2+(3/8)(−2)=1/2이지만 진짜 프로그램 효과는 0입니다. 양수성이 있어도 조건부 평균 교환이 깨졌기 때문입니다. 겹침 검사 하나가 통제 변수 선택을 정당화하지 않습니다.

Assume independent D,U each with probability 1/4, Y=2U and M=D XOR U. Every M stratum contains both D arms. Within M=0 the outcome contrast is +2; within M=1 it is −2.

Stratum masses are 5/8 and 3/8. Standardizing by them gives 1/2 although the program effect is zero. Positivity holds but conditional mean exchangeability fails. An overlap check alone does not justify choosing a control.

기초Foundations

32. 실습 D · 공통 결과를 조건으로 삼는다32. Lab D · Condition on a common effect

독립 D,U의 확률과 Y=θD+γU, 선발 M의 OR/AND/XOR/합 규칙을 고릅니다. 네 원자의 원확률·선택 후 두 팔·성과 차이·D,U 공분산을 확인합니다. 선택 질량 0과 한쪽 팔 부재는 미정의로 남깁니다. 실제 자료의 화살표를 학습했다고 표시하지 않습니다.

Choose independent D,U probabilities, Y=θD+γU and an OR/AND/XOR/sum selection rule. Inspect all four original atoms, selected arms, outcome contrasts and conditional D,U covariance. Empty selection or an absent arm remains undefined. The lab does not infer actual causal arrows.

기초Foundations

33. 조건부 확률은 무엇의 확률인가33. What probability does a propensity describe?

성향 e(x)는 X=x인 표적 안에서 D=1일 조건부 확률입니다. 관측된 표에서 n₁/(n₀+n₁)를 구할 수 있지만, 작은 표본의 비율이 미지의 모집단 확률과 같다는 보장은 없습니다. M7의 알려진 추첨 확률과 관측 자료에서 추정하는 성향도 구별합니다.

e(x)=Pr⁡(D=1∣X=x)e(x)=\Pr(D=1\mid X=x)

실습 E는 참값으로 선언한 유한 층별 확률을 다룹니다. 실제 성향을 정확히 알아냈다고 표시하지 않습니다. 양쪽 팔이 겹치는 조건과 어떤 X가 적절한 통제인지의 조건은 서로 다른 문제입니다.

A propensity e(x) is P(D=1|X=x) in a defined target. An observed proportion n₁/(n₀+n₁) need not equal an unknown population probability. Also distinguish M7’s known assignment probability from a propensity estimated from observations.

e(x)=Pr⁡(D=1∣X=x)e(x)=\Pr(D=1\mid X=x)

Lab E uses declared finite stratum probabilities. It does not discover true actual propensities. Overlap and whether X is an appropriate control are separate conditions.

기초Foundations

34. 작은 확률과 확률 0은 다르다34. A small probability differs from probability zero

e=1/10이면 처치 역가중치는 10, 대조 역가중치는 10/9입니다. e=1/1000이면 처치 역가중치는 1000으로 커집니다. 확률이 작을 때 드물게 관측된 값에 큰 가중치가 걸리므로 추정량이 불안정해질 수 있습니다.

E[(D/e)2∣X]=1/eE[((1−D)/(1−e))2∣X]=1/(1−e)\begin{gathered}E[(D/e)^2\mid X]=1/e\\E[((1-D)/(1-e))^2\mid X]=1/(1-e)\end{gathered}

두 식은 각각 0<e<1에서 이진 D의 주변 법칙으로 계산한 제곱 가중치 평균입니다. e=0 또는 1이면 한 반사실의 관측 기회가 없고 역가중치가 미정의입니다. 아주 작은 양수의 표시가 0으로 반올림된 것과 수학적 0을 구별합니다.

At e=1/10, treated inverse weight is ten and control inverse weight 10/9. At e=1/1000, treated inverse weight grows to a thousand. Rare observations can then receive large weights, creating instability.

E[(D/e)2∣X]=1/eE[((1−D)/(1−e))2∣X]=1/(1−e)\begin{gathered}E[(D/e)^2\mid X]=1/e\\E[((1-D)/(1-e))^2\mid X]=1/(1-e)\end{gathered}

For 0<e<1 these second moments follow from binary D. At zero or one, an arm has no observation opportunity and its inverse weight is undefined. Distinguish a tiny positive value displayed as zero from an exact zero.

기초Foundations

35. 절사는 범위를 고르지만 표적도 바꾼다35. Trimming selects support and changes the target

0≤ε≤1/2를 정하고 ε≤e(x)≤1−ε인 층만 남기는 규칙을 씁니다. 등호를 포함합니다. 남은 질량으로 다시 나누면 남은 대상의 가중치입니다. 원래 전체 집단의 효과가 저절로 복원되는 것은 아닙니다.

ε=0은 e=0,1인 층도 남기므로 양수성을 보장하지 않습니다. ε>0이면 남은 양의 질량 층의 확률은 양쪽 모두 양수입니다. ε=1/2에서는 e=1/2인 층만 남고, 그런 양의 질량이 하나도 없으면 절사 표적은 비어 있어 평균을 정의하지 않습니다.

Choose 0≤ε≤1/2 and retain strata satisfying ε≤e(x)≤1−ε, including endpoints. Renormalization gives the retained target distribution, not automatic recovery of the original population effect.

At ε=0, zero/one propensities remain, so positivity is not guaranteed. Positive ε ensures positivity on retained positive-mass strata. At ε=1/2 only exact half-propensity strata remain; no retained positive mass means an undefined target mean.

기초Foundations

36. 절사 후 효과가 달라지는 손계산36. A hand calculation of target change after trimming

세 가정 층의 질량이 1,2,1이고 e는 0.01,0.5,0.99, 참 층 효과는 −10,1,10이라고 합시다. 원 전체 효과는 (−10+2+10)/4=1/2입니다. ε=0.1로 절사하면 가운데 층만 남습니다.

Pr⁡(retained)=2/4=1/2τoriginal=1/2τretained=1\begin{gathered}\Pr(\text{retained})=2/4=1/2\\\tau_{original}=1/2\\\tau_{retained}=1\end{gathered}

표적이 바뀌었으므로 절사 후 값 1이 원래 1/2를 더 정확히 추정한 값이라고 결론낼 수 없습니다. 이 예의 원래 확률도 모두 양수입니다. 큰 가중치를 줄이려는 수치 목적과 어떤 사람의 효과를 보고할지의 과학적 목적을 함께 적습니다.

Assume masses 1,2,1, propensities 0.01,0.5,0.99 and stratum effects −10,1,10. Original ATE is 1/2. Trimming at ε=0.1 retains only the middle stratum.

Pr⁡(retained)=2/4=1/2τoriginal=1/2τretained=1\begin{gathered}\Pr(\text{retained})=2/4=1/2\\\tau_{original}=1/2\\\tau_{retained}=1\end{gathered}

The retained effect one is not simply a more accurate estimate of original effect 1/2. Every original propensity was already positive. Report both numerical stability goals and whose effect the changed target describes.

기초Foundations

37. 층별 평균과 선형 통제는 같은 모형이 아니다37. Stratum means and linear controls are different models

X가 두 범주이면 범주별 절편을 자유롭게 두어 두 수준의 평균을 따로 표현할 수 있습니다. X가 연속값인데 Y를 절편+D+bX로만 맞추면 한 직선의 형태를 추가로 가정한 것입니다. 충분한 X를 관측했다는 조건과 그 X를 올바른 함수 형태로 사용했다는 조건은 다릅니다.

상호작용을 빼면 D의 계수를 층마다 다르게 두지 못할 수도 있습니다. 이 장의 셀 표준화는 각 가용 셀 평균을 직접 쓰고 정한 표적 가중치를 적용합니다. 단순히 같은 통제 열 이름을 회귀에 넣은 결과와 항상 같은 숫자가 나오지는 않습니다.

A categorical X can be represented by unrestricted stratum intercepts. A continuous X entered only as one linear term adds a functional-form restriction. Observing sufficient covariates and modeling their conditional relationships adequately are different matters.

Omitting interactions can also restrict treatment coefficients across strata. Our cell standardization uses each available cell mean and declared target weights. Entering the same control names in a regression need not give the same number.

기초Foundations

38. 누락 때문에 비교 표본이 달라지지 않게 한다38. Keep the comparison sample common

Y만 가용한 전체 집단 차이와 X,Y 모두 가용한 조정 차이를 바로 비교하면 통제의 영향과 표본 변화가 섞입니다. 먼저 두 계산을 같은 완전행 집합에서 수행해야 어느 변화가 가중치·모형에서 왔는지 읽을 수 있습니다.

실제 자료 실습은 결과와 통제가 함께 가용한 원행으로 전체 차이와 셀 조정을 모두 계산합니다. 결과 누락 수·통제 누락 수·둘 다 누락·어느 하나 누락을 구별하여 공개합니다. 같은 표본을 썼다는 사실이 결측의 무작위성이나 원래 전체 표적 식별을 증명하지는 않습니다.

Comparing an unadjusted Y-available frame with an adjusted X,Y-complete frame mixes adjustment with sample change. Use a common complete subset before attributing a difference to weights or model structure.

The actual-data lab uses identical control-and-outcome complete rows for pooled and adjusted comparisons, reporting missing outcomes, missing controls, both, and either. A common subset does not verify random missingness or identify the original full target.

대학원 입구Graduate bridge

39. 통제 회귀의 계수는 어떤 층을 가중하나39. Which strata does a controlled regression weight?

유한 기대값과 이차 모멘트가 있고 각 X범주의 절편을 모두 포함한 모집단 회귀를 생각합니다. D를 X에 투영한 잔차는 R=D−e(X)입니다. 공통 D계수는 Frisch–Waugh–Lovell 논리에 따라 E[RY]/E[R²]입니다. 분모는 양수라고 가정합니다. X는 유한한 범주를 가지며, 아래 합은 Pr(X=x)>0이고 0<e(x)<1인 층에 대해서만 계산합니다. e=0 또는 1인 층에서는 R=0이므로 기여는 0이고, 없는 팔의 평균을 평가하지 않습니다.

ax=Pr⁡(X=x)e(x)[1−e(x)]bD=∑xax[m1(x)−m0(x)]∑xax\begin{gathered}a_x=\Pr(X=x)e(x)[1-e(x)]\\b_D=\frac{\sum_x a_x[m_1(x)-m_0(x)]}{\sum_xa_x}\end{gathered}

양쪽 팔이 양수인 층에서 E[RY|X]=e(1−e)(m₁−m₀),E[R²|X]=e(1−e)이므로 식이 나옵니다. 이 계산에는 인과 가정이 아직 필요하지 않습니다. 좋은 통제 조건이 성립해도 효과가 이질적이면 이 회귀 가중치와 ATE의 Pr(X) 가중치는 다를 수 있습니다. 두 층 질량이 각각 1/2,e가 1/2와 1/10, 효과가 2와 4이면 계수는 43/17이고 ATE는 3입니다.

Consider a population projection containing unrestricted intercepts for every X category, with finite second moments. Residualizing D gives R=D−e(X); assume positive E[R²]. The common D coefficient is E[RY]/E[R²]. Take X to have finitely many categories. The sums below include only strata with Pr(X=x)>0 and 0<e(x)<1. At e=0 or 1, R=0 and the contribution is zero without evaluating an absent arm mean.

ax=Pr⁡(X=x)e(x)[1−e(x)]bD=∑xax[m1(x)−m0(x)]∑xax\begin{gathered}a_x=\Pr(X=x)e(x)[1-e(x)]\\b_D=\frac{\sum_x a_x[m_1(x)-m_0(x)]}{\sum_xa_x}\end{gathered}

Within a stratum with both arms positive, E[RY|X]=e(1−e)(m₁−m₀) and E[R²|X]=e(1−e), proving the expression without a causal assumption. Even with valid control conditions, heterogeneous effects can make these weights differ from ATE weights Pr(X). Equal-mass strata with propensities 1/2, 1/10 and effects two, four give coefficient 43/17 versus ATE three.

기초Foundations

40. 실습 E · 역가중치와 절사 표적40. Lab E · Inverse weights and the trimmed target

각 층의 질량·선언 성향과 ε를 넣습니다. 양쪽 역가중치·제곱 가중치 기대·남은 질량과 새 표적 가중치를 봅니다. 질량 0의 층은 행으로 보존하되 양의 표적 지지집합과 구별합니다. 확률 추정 오차나 실제 인과 조건을 자동 검증하지 않습니다.

Enter stratum masses, declared propensities and ε. Inspect inverse weights, their second moments, retained mass and renormalized target weights. Zero-mass rows remain visible but differ from positive target support. Propensity estimation error and actual causal conditions are not automatically verified.

기초Foundations

41. 국가 · 같은 연도 변수를 통제한다고 해서41. Countries · controlling same-year variables

World Bank 보관 원응답에서 2024년 16국의 GDP·출생 시 기간 기대수명·ILO 모형 실업률을 같은 국가 코드로 새로 연결했습니다. GDP 30,000 이상을 관측 집단으로, 실업률 5% 이상을 선택 통제 층으로 둡니다. 문턱은 이 장의 설명을 위한 선택입니다.

같은 해 실업률이 적절한 선행 공통 원인인지, 소득의 결과인지, 선택과 관련된 변수인지는 이 관측 표에서 확정되지 않습니다. 따라서 층별 비교는 조건부 연관이며 “실업을 통제했으니 소득 효과”라고 부르지 않습니다. GDP 단위는 2015년 불변 USD/명, 수명은 년, 실업률은 퍼센트이며 세 지표의 측정 범위를 구별합니다.

Freshly match retained World Bank 2024 GDP, period life expectancy at birth and ILO modeled unemployment by code for sixteen countries. Choose GDP≥30,000 as the observed group and unemployment≥5% as a control stratum. The thresholds are classroom choices.

The table does not establish whether same-year unemployment is a prior common cause, an income consequence or a selection-related variable. Conditional association is therefore not relabeled an income effect. Units are constant 2015 USD/person, years and percent, with distinct measurement scopes.

기초Foundations

42. NSW · 선행 학력 범주와 관측 조정42. NSW · prior schooling categories and observed adjustment

공식 NSW 원파일 대조 260행·처치 185행의 열 10개를 다시 읽습니다. 관측 결과 RE78은 원 논문 Table 2 note a의 1982년 USD이고, 통제는 원 nodegree 지표입니다. 학력 범주 이름이 앞선 변수임을 가리켜도 그것만으로 모든 교란이 통제되었다고 증명하지는 않습니다.

이 표의 실험 출처와 RE74 가용 남성 부분표 선택에 대한 원저자의 조건을 유지합니다. nodegree별 평균과 정한 가중 표적은 관측 계산이며 역사적 층별 추첨 법칙을 새로 복원한 것이 아닙니다. 원 개입 시점·표본 선택·이행·원표적과 현재 표준화 표적을 구별해 해석합니다.

Reread all ten fields in the official NSW files: 260 controls and 185 treated. RE78 uses the 1982 USD benchmark in Table 2 note a; the control is original nodegree. A prior-sounding variable name alone does not prove complete confounding control.

Retain the original authors’ experimental-source and RE74-available male-subset selection conditions. Nodegree-specific means and target weighting are observed calculations, not reconstruction of historical stratified assignment. Distinguish intervention timing, selection, implementation and the original versus standardized target.

기초Foundations

43. 점포 · 이전 고용 범주와 같은 짝43. Stores · baseline staffing categories on identical pairs

NJ/PA 원 ZIP에서 모든 410원위치와 FTE 구성값을 다시 읽습니다. 선택 통제는 이전 FTE가 20 이상인지이며 이전 구성값이 누락되면 통제도 누락입니다. 결과는 같은 점포의 이후−이전 FTE이고, 두 시점이 가용한 384짝을 공통 비교 집합으로 씁니다.

이전 FTE가 관측상 앞선 값이어도 정책 선택·회귀 평균·측정 오차 등의 문제를 저절로 없애지 못합니다. 이후 FTE 자체를 통제하며 그 이후 고용 효과를 묻는 일과도 다릅니다. 두 주의 변화를 인과 DID로 읽는 평행 추세와 다른 조건은 여전히 별도입니다. 원코드 407의 두 위치 42,168은 보존합니다.

Reread all 410 positions and staffing components in the original NJ/PA ZIP. The chosen control is before FTE≥20, unavailable if required before components are missing. The outcome is same-store after-minus-before FTE, using the identical 384 paired stores for both comparisons.

A prior observation does not automatically remove policy selection, regression-to-the-mean or measurement issues. It also differs from controlling post FTE while asking about post-employment effects. Parallel trends and other causal DID conditions remain separate. Preserve both code-407 positions 42 and 168.

기초Foundations

44. 실습 F · 같은 가용 집합의 조정44. Lab F · Adjust on a common available frame

국가·NSW·점포를 고르고 전체·처치·대조·층 동일 표적을 비교합니다. 원행·통제와 결과의 누락·공통 완전행·두 팔 가용성을 읽고 전체와 조정 차이를 같은 표에서 계산합니다. 실제 조건부 교환이나 통제의 인과적 역할을 인증하는 기능은 아닙니다.

Choose countries, NSW or stores and compare combined, treated, control or equal-stratum targets. Read original counts, control/outcome missingness, common complete rows and arm support. Pooled and adjusted contrasts use the same frame; the lab does not certify actual exchangeability or causal control roles.

기초Foundations

45. 원필드·선택·계산의 근거를 분리한다45. Separate original fields, selection and computation

이 장은 앞 장의 적합계수나 결과표를 숫자 정답으로 복사하지 않고 보관 원본 필드부터 새 통제·결과·가용 집합을 만듭니다. 공개 선택 자료에는 원위치와 원토큰·선택 문턱을 남깁니다. 재현 코드의 표준화 계산과 원본 출처·단위 확인은 서로 다른 근거입니다.

공개 입력만 든 묶음의 Python·R 실행은 그 입력에서 계산을 다시 했다는 뜻입니다. 원본을 다시 내려받거나 실제 교란 조건을 검증한 것이 아닙니다. 브라우저 JavaScript와 별도 언어 프로세스의 실행 기록도 구별하여 보고합니다.

This chapter rereads retained original fields rather than copying earlier fitted coefficients or result tables. Public inputs preserve positions, numeric tokens, chosen thresholds and the common available set. Reproduction of standardization differs from authenticating original source units and provenance.

A Python/R run from a public-only bundle recomputes those selected inputs. It does not newly download originals or verify causal conditions. Browser JavaScript and separate native-language execution records are reported distinctly.

기초Foundations

46. 변수 이름보다 시점과 경로를 적는다46. Report timing and pathways rather than variable names

먼저 전체 효과인지 직접 효과인지, 누구의 어느 기간 결과인지 적습니다. 후보 통제가 처치 전에 측정되었는지, 공통 원인인지, 매개인지, 공통 결과인지의 근거를 밝힙니다. 시간상 앞선 변수도 항상 좋은 통제는 아니며 처치 뒤 변수도 이름 하나로 모든 질문에서 금지되는 것은 아닙니다.

정한 그래프와 평균 교환·관측 일치·양수성·가용 표적을 함께 보고합니다. 통계적 예측력을 높이는 변수와 인과 효과 추정에 적절한 변수는 다를 수 있습니다. 다음 도구변수 장에서도 배제와 외생성은 실제 설계 근거를 요구하며 계산 공식이 대신하지 않습니다.

First state total versus direct effect, units, target and outcome period. Explain evidence that a proposed control is prior, a common cause, mediator or common effect. A prior variable is not always appropriate, and a post-treatment label alone does not settle every possible estimand.

Report the proposed graph alongside mean exchangeability, consistency, positivity and the available target. Predictive usefulness differs from suitability for a causal estimand. The next instrumental-variable chapter also needs design evidence for exclusion and exogeneity; formulas cannot supply it.

기초Foundations

47. 세 실제 사례와 가정한 반례47. Three actual cases and assumed counterexamples

국가 · 같은 해 지표를 통제하면 인과효과인가?

소득이 높은 나라와 낮은 나라의 기대수명 차이가 실업률 범주를 맞추면 얼마나 달라질까요? 같은 16개 나라를 두 번 계산하여 표본 변화와 통제 효과를 섞지 않는 연습입니다. World Bank 원응답의 세 지표를 같은 국가 코드와 2024년으로 새로 짝지었습니다. 2026년 10월 20일 보관한 원바이트를 27일 새 목적으로 읽었으며 새 API 호출이라고 부르지 않습니다.

D=1은 NY.GDP.PCAP.KD가 30,000 이상인 선택 분류입니다. 단위는 2015년 불변 USD/명입니다. X=1은 SL.UEM.TOTL.ZS가 5% 이상인 선택 실업률 범주이며 ILO 모형 추정치입니다. 결과 SP.DYN.LE00.IN은 출생 시 기간 기대수명(년)입니다. 이 값은 현재 연령별 사망률이 평생 유지된다는 기간표 지표이지 실제 신생아가 끝내 살 연수를 관측한 값이 아닙니다. 세 열 모두 가용한 행은 16개이며 전 세계 확률표본이 아닙니다.

같은 완전 행에서 구한 실제 집단·층 평균 · 소수는 근사 표시
XD가용 행합 · 정확분수평균
00518577/5074.308
0175751329512195121/1000000000000082.16185
10228467/20071.1675
1121650885365853659/1000000000000082.544268

동일 완전 행에서 D=1 평균−D=0 평균은 약 8.836118년입니다. 위 표는 X=0과 X=1 안에서도 양쪽 소득 분류가 실제로 관측되는지 보여 줍니다. 두 X층의 차이에 전체 완전 행의 층 비율을 곱해 더하면 약 8.73458년입니다. 표적을 D=1, D=0 또는 같은 층 가중치로 바꾸면 아래처럼 답도 달라집니다.

표적을 먼저 고른 표준화 · 같은 표본의 관측 차이와 비교
표적X=0;X=1 가중치층별 평균 차이의 가중합
전체 완전 행3/4; 1/48.73458
D=1 완전 행7/9; 2/98.636721
D=0 완전 행5/7; 2/78.860398
관측 X층 동일 가중1/2; 1/29.615309

이 차이가 작아지거나 커졌다는 이유만으로 실업률이 적절한 교란 통제라고 결론내리지 않습니다. GDP와 실업률은 같은 해의 거시 집계이며 개입 전 원인인지, 매개인지, 선택 결과인지 이 표로 확인되지 않았습니다. 특정 소득 개입·일관성·교환가능성·표적 양수 조건을 따로 정당화해야 합니다. 관측 두 집단을 각 나라의 잠재 결과 두 개로 바꾸지 않습니다.

그림은 선택한 X=0/1층의 실제 D=0/1 평균을 별도 점으로 표시합니다. 두 계열 모두 관측 요약이며 선으로 잇지 않습니다. 계산에 쓴 국가별 원 세 필드와 지표 단위는 공개 CSV에서 확인할 수 있습니다.

개인 · nodegree 표적을 맞춘 NSW 비교

프로그램 소득 차이를 비교할 때 학위가 없는 사람의 비율을 맞추면 무엇이 달라질까요? Dehejia–Wahba 저자 페이지에 연결된 NSW 원문 대조 260행과 처치 185행을 새로 읽었습니다. 공개 10열과 원파일 위치를 보존한 445행이며 가공한 앞 장의 평균을 복사하지 않았습니다. D는 기록 처치 열, X는 원 nodegree=0/1, Y는 RE78입니다.

JASA 1999 §2.1은 개입 전 이력의 RE74가 있는 남성 실험 출처 부분표 선택을 설명합니다. 처음 무작위 배정이 그 개입 전 특성과 독립이라는 조건 아래 감소한 표적의 실험 근거를 논합니다. 이 출처 설명과 역사적 모든 배정의 전체 확률법칙은 별개입니다. 445와 185라는 인원수만으로 균등 고정 수 추첨을 증명하지 않으며 CPS·PSID 비실험 대조군이 섞인 다른 파일로 부르지 않습니다.

RE78 추정 단위는 원논문 Table 2 note a의 1982년 USD입니다. 결과 연도 표기 78을 명목 1978년 USD라는 뜻으로 바꾸지 않습니다. nodegree 이름은 원코드이며 관측된 두 범주입니다. 이 통제 열 하나가 모든 선택·이행·일반화 문제를 해결했다는 뜻도 아닙니다. X와 Y가 모두 가용한 445행을 모든 아래 비교에 동일하게 씁니다.

같은 완전 행에서 구한 실제 집단·층 평균 · 소수는 근사 표시
XD가용 행합 · 정확분수평균
00432087432013/100004854.493053
01542172559903/50008046.518159
1021748775254573/500004495.415168
11131296031829/4005649.462385

동일 행의 기록 처치−대조 평균 차이는 약 1,794.342404 USD입니다. 전체 완전 행의 nodegree 비율을 공통 가중치로 쓰면 약 1598.2806 USD입니다. 이는 아래 정확 가중합을 소수로 표시한 관측 표준화입니다. 다른 표적의 답도 한 표에서 비교해 보세요.

표적을 먼저 고른 표준화 · 같은 표본의 관측 차이와 비교
표적X=0;X=1 가중치층별 평균 차이의 가중합
전체 완전 행97/445; 348/4451598.2806
D=1 완전 행54/185; 131/1851748.916439
D=0 완전 행43/260; 217/2601491.097407
관측 X층 동일 가중1/2; 1/22173.036162

표준화가 프로그램의 실제 인과효과와 같으려면 표적·일관성·조건부 교환가능성·양수 조건에 알맞은 설계 근거가 필요합니다. 두 층의 양쪽 평균을 구할 수 있다는 사실은 그중 양수 조건의 관측 표본 확인이며 빠진 반사실의 동등성을 검증하지 않습니다. 실험 출처를 지우지도, 인원수만으로 새로운 정확 p값을 만들어 내지도 않습니다.

그림의 두 점 계열은 nodegree 각 층의 기록 대조/처치 RE78 평균입니다. 개인 이름이나 원참여자 고유번호를 지어내지 않으며 새 원위치와 파일 내 위치만 공개합니다. 0소득은 누락이 아니고 실제 원토큰 0으로 유지됩니다.

점포 · 이전 규모와 같은 완전 짝의 변화

점포의 이전 규모를 맞추면 두 주의 고용 변화 차이는 어떻게 달라질까요? Card–Krueger 공식 보관 ZIP의 public.dat와 코드북에서 410개 원위치를 새로 읽었습니다. D는 원 STATE의 PA=0/NJ=1, X는 이전 FTE가 20 이상인지의 선택 범주, Y는 같은 점포의 이후−이전 FTE입니다. 시점별 FTE는 전일제+시간제/2+관리자이며 사람이 몇 명인지와 다른 측정 단위입니다.

필요한 이전 구성값이 하나라도 빠지면 이전 FTE와 X가 미관측입니다. 변화량에는 두 시점의 구성값이 모두 필요합니다. 원행 410개 중 X 누락 12개, Y 누락 26개이고 12개는 둘 다 누락입니다. 제외 합집합은 26개이므로 같은 완전 짝 384개입니다. X·Y 양쪽 모두 가용한 같은 행에서 단순 차이와 표준화 차이를 계산합니다. 원코드 407인 42·168번 행도 별개 원행으로 보존합니다.

같은 완전 행에서 구한 실제 집단·층 평균 · 소수는 근사 표시
XD가용 행합 · 정확분수평균
0035379/42.707143
011631575/42.415644
1040-266-6.65
11146-4991/20-1.709247

같은 384개 점포에서 NJ−PA 변화 차이는 11/4=2.75 FTE입니다. 이전 규모 두 층에 전체 완전 행 비율을 쓰면 약 2.242873 FTE입니다. 이 값은 478248081/213230080입니다. 이전 규모 분포가 다른 사실과 층 안의 관측 변화 차이를 분리해 읽을 수 있습니다.

표적을 먼저 고른 표준화 · 같은 표본의 관측 차이와 비교
표적X=0;X=1 가중치층별 평균 차이의 가중합
전체 완전 행33/64; 31/642.242873
D=1 완전 행163/309; 146/3092.180698
D=0 완전 행7/15; 8/152.499036
관측 X층 동일 가중1/2; 1/22.324627

이전 FTE를 통제했다는 사실만으로 미관측 추세·동시 정책·점포 선택이 해결되지는 않습니다. 변화량의 비교를 인과 DID로 부르려면 적절한 평행 추세와 표본 유지 등의 조건이 더 필요하며 뒤 장에서 다룹니다. 이전 FTE는 이후 무처치 잠재 결과 자체가 아닙니다. 임계값 20은 이 장의 선택 요약이며 원연구의 무작위 층화가 아닙니다.

그림은 X=0/1층의 실제 PA/NJ 같은 짝 평균 변화입니다. 양쪽 계열은 관측값이며 연결하지 않습니다. 원 ZIP을 가진 경우의 측정 재구성과 공개 선택 CSV만 가진 경우의 정확 가중합 재현을 구별합니다.

Countries · does same-year adjustment identify an effect?

How does a higher-versus-lower income longevity contrast change after matching unemployment categories? Recompute on the identical sixteen countries so a sample change is not mistaken for an adjustment change. We newly match three World Bank fields by country code and 2024. The same original bytes retained on 20 October 2026 were reread for this purpose on 27 October; this is not a new API response.

D=1 is our chosen NY.GDP.PCAP.KD threshold of at least 30,000 constant 2015 USD/person. X=1 is our chosen SL.UEM.TOTL.ZS threshold of at least 5 percent, an ILO modeled unemployment estimate. Outcome SP.DYN.LE00.IN is period life expectancy at birth in years. It summarizes a period mortality schedule, not the eventual observed lifetime of a newborn. All sixteen rows have the three fields; they are not a worldwide probability sample.

Observed cells on the identical complete frame · rounded decimals
XDAvailable rowsExact sumMean
00518577/5074.308
0175751329512195121/1000000000000082.16185
10228467/20071.1675
1121650885365853659/1000000000000082.544268

On the common complete frame, mean D=1 minus mean D=0 is about 8.836118 years. The cell table lets you check whether both income groups occur within each X stratum. Weighting the two cell contrasts by the complete-frame X distribution gives about 8.73458 years. Choosing the D=1 distribution, D=0 distribution or equal stratum weights gives different questions and answers below.

Choose the target before standardizing · compare the same-sample pooled contrast
TargetX=0;X=1 weightsWeighted cell-mean contrast
All complete rows3/4; 1/48.73458
Complete D=1 rows7/9; 2/98.636721
Complete D=0 rows5/7; 2/78.860398
Equal observed-X strata1/2; 1/29.615309

A larger or smaller adjusted contrast does not establish that unemployment is a suitable confounding control. These same-year macro aggregates do not verify whether X is a prior cause, mediator or selection result. A specific intervention, consistency, exchangeability and target-specific positivity need separate justification. Group labels are not two observed potential outcomes for each country.

Each plotted pair consists of actual D=0 and D=1 means within an X=0/1 stratum. Both series are observed summaries and are not connected. The public CSV retains the three original fields and their units.

Individuals · NSW comparisons with explicit nodegree targets

What changes when program earnings comparisons use a common share of people without a degree? We newly read the author-linked NSW originals: 260 control rows and 185 treated rows. All ten fields and within-file positions are retained across 445 records; no earlier chapter mean was copied. D is the recorded treatment field, X the original nodegree 0/1 field, and Y is RE78.

Section 2.1 of Dehejia and Wahba’s JASA 1999 paper describes selection of a male experimental-source subset with RE74 histories. Under original assignment independent of those pre-intervention features, it discusses experimental evidence for the reduced target. That provenance differs from verification of the full historical assignment law. Counts 445 and 185 alone do not prove uniform fixed-count assignment. This is not a composite with nonexperimental CPS or PSID controls.

RE78 uses 1982 USD for this benchmark according to Table 2 note a. The outcome-year label does not establish nominal 1978 dollars. The original nodegree field supplies two recorded categories; its name does not solve every selection, implementation or generalization issue. All 445 rows have X and Y, and the identical rows underlie every comparison below.

Observed cells on the identical complete frame · rounded decimals
XDAvailable rowsExact sumMean
00432087432013/100004854.493053
01542172559903/50008046.518159
1021748775254573/500004495.415168
11131296031829/4005649.462385

The same-frame recorded treated-minus-control mean contrast is about 1,794.342404 USD. Using the complete-frame nodegree proportions as common weights gives about 1598.2806 USD. This is a rounded display of an exact observed standardization. Compare the other explicit targets in the same table.

Choose the target before standardizing · compare the same-sample pooled contrast
TargetX=0;X=1 weightsWeighted cell-mean contrast
All complete rows97/445; 348/4451598.2806
Complete D=1 rows54/185; 131/1851748.916439
Complete D=0 rows43/260; 217/2601491.097407
Equal observed-X strata1/2; 1/22173.036162

A causal interpretation needs design evidence for the target, consistency, conditional exchangeability and positivity. Being able to compute both cell means is an observed support check; it does not verify equality of missing counterfactuals. We preserve the experimental-source evidence while declining to invent a new historical exact p-value from counts.

The chart shows recorded control and treated RE78 means in each nodegree stratum. We invent neither participant names nor original unique IDs; only new source positions and within-file positions are public. Recorded zero earnings remain observed zeros rather than missing values.

Stores · prior size and changes on identical complete pairs

How does the between-state employment-change contrast change when prior store size is matched? A new read of public.dat and the codebook in Card–Krueger’s official retained ZIP preserves all 410 source positions. D is original STATE, PA=0 and NJ=1. X is our chosen before-FTE threshold of at least 20, and Y is after minus before FTE for the same store. FTE is full-time plus half part-time plus managers, a measurement unit distinct from headcount.

A missing required before component makes both before FTE and X unavailable. Change needs all components from both waves. Among 410 rows, 12 lack X and 26 lack Y; 12 lack both. The excluded union is 26, leaving 384 common complete pairs. Pooled and adjusted contrasts both use these identical rows. Original code 407 at source positions 42 and 168 remains two distinct records.

Observed cells on the identical complete frame · rounded decimals
XDAvailable rowsExact sumMean
0035379/42.707143
011631575/42.415644
1040-266-6.65
11146-4991/20-1.709247

Across the same 384 stores, the NJ-minus-PA change contrast is 11/4=2.75 FTE. Applying the complete-frame distribution of the two prior-size strata gives about 2.242873 FTE, exactly 478248081/213230080. This separates differences in prior-size composition from observed within-stratum change contrasts.

Choose the target before standardizing · compare the same-sample pooled contrast
TargetX=0;X=1 weightsWeighted cell-mean contrast
All complete rows33/64; 31/642.242873
Complete D=1 rows163/309; 146/3092.180698
Complete D=0 rows7/15; 8/152.499036
Equal observed-X strata1/2; 1/22.324627

Controlling prior FTE does not automatically remove unobserved trends, concurrent policies or store selection. Causal DID interpretation of a change contrast needs additional conditions on trends and sample retention, studied later. Prior FTE is not the untreated post-period potential outcome. The threshold 20 is our summary choice, not historical randomized stratification.

Each plotted pair shows actual PA and NJ paired-change means within X=0/1. Both series are observed and unconnected. Reconstructing measurements from the original ZIP differs from reproducing the exact weighted comparisons using public selected CSVs alone.

기초Foundations

48. 공식 원문에서 조정 조건을 찾아 읽는다48. Find adjustment conditions in primary readings

공식 교란 강의와 지정 원문에서는 어떤 평균을 비교하며 어떤 경로를 막거나 여는지 찾습니다. 조건부 교환·표준화·선택 편향의 설명을 이 장의 원자 표와 연결하고, 주장에 필요한 가정을 각 식 옆에 적어 보세요.

읽은 뒤 “관측 차이를 계산했다”,“정한 가정 아래 표적 효과와 같다”,“실제 자료에서 그 가정을 정당화했다”를 구별하여 세 문장을 만듭니다. 통제를 늘릴수록 언제나 더 좋은 인과 답이라는 주장은 어느 반례에서 깨지는지도 설명합니다.

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

In the official confounding lecture and designated primary passages, identify the compared means and pathways blocked or opened. Connect conditional exchangeability, standardization and selection bias to the atom tables, writing each required assumption beside its equation.

Write separate statements for computing an observed contrast, equating it to a target effect under assumptions, and justifying those assumptions in actual data. Explain which counterexample defeats the claim that more controls always improve a causal answer.

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

교란: 비교하기 전에 어떤 차이를 알아야 하나?Confounding: which differences matter before comparison?

MIT Open Learning Library · HST.953x · Causal Inference

강의의 교란 질문을 첫 두 층 예제로 설명해 보세요. 같은 층 가중치가 무엇을 바꾸며 무엇을 추가 가정해야 하는지 구분하세요.Explain the lecture’s confounding question using the two-stratum example. Separate what common weights change from assumptions still required.

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

보고 읽은 뒤 답하기Respond after watching/reading 평균 차이가 줄어들면 좋은 통제였다고 결론낼 수 있나요?Does a smaller contrast prove a control is appropriate?

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

통계적 변화만으로 변수의 인과 역할을 알 수 없습니다. 표적과 개입, 변수의 시간·원인 관계를 먼저 정당화해야 합니다.A numerical change does not determine causal role. Justify the target, intervention and temporal-causal relations first.

Miguel Hernán · 비교 질문과 가정을 먼저 쓴다Miguel Hernán · state the comparison and assumptions first

Harvard T.H. Chan School of Public Health · official profile

소개에 나오는 관측 자료와 가상 실험의 연결을 읽고, 이 장의 실제 세 비교에서 아직 빠진 설계 근거를 적어 보세요.Read how the profile connects observational data with hypothetical experiments. List missing design evidence in the three actual comparisons.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 정확분수 계산은 교환가능성을 검증하나요?Does exact arithmetic verify exchangeability?

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

산술의 정확성과 빠진 잠재 결과의 비교 가능성은 다른 주장입니다. 후자는 실질 지식과 설계 가정이 필요합니다.Arithmetic accuracy differs from comparability of missing potential outcomes. The latter needs substantive knowledge and design assumptions.

표준화·교환가능성·양수 조건Standardization, exchangeability and positivity

Hernán and Robins · Causal Inference: What If · Technical Point 2.3, printed page 25

인쇄 25쪽 Technical Point 2.3을 읽고, 표준화의 관측 항등식에 인과 해석을 더할 때 쓰는 양수·교환가능성·일관성 단계를 표시하세요.Read Technical Point 2.3 on printed page 25. Mark where positivity, exchangeability and consistency add causal meaning to the observed standardization identity.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 표적 가중치가 양수인 층에 대조가 없으면 어떻게 하나요?What if a positive-target-weight stratum has no controls?

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

그 층의 관측 대조 평균은 미정의입니다. 가정 없이 0으로 채우지 않으며 외삽이나 표적 변경은 별도 선택입니다.Its observed control mean is undefined. Filling zero is not justified; extrapolation or changing the target is a separate choice.

좋은 통제와 나쁜 통제를 그림으로 비교한다Compare good and bad controls graphically

Cinelli, Forney and Pearl · UCLA R-493 · printed pages 5–10, selected models

Model 1, 7, 11과 16의 경로를 비교하세요. 공통 원인·충돌 변수·매개 변수를 통제할 때 어떤 경로가 닫히거나 열리는지 직접 그리세요.Compare paths in Models 1, 7, 11 and 16. Draw what closes or opens when adjusting for a common cause, collider or mediator.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 개입 전에 측정한 변수는 언제나 좋은 통제인가요?Is every pretreatment variable a good control?

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

충돌 변수라면 미리 측정했어도 조건을 걸 때 경로를 열 수 있습니다. 시간 순서만으로 충분하지 않습니다.A pretreatment collider can open a path when conditioned on. Temporal order alone is insufficient.

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

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

1. 전체 두 평균Two pooled means

가정한 낮은 층은 대조 8명·평균 0, 처치 2명·평균 2이고 높은 층은 대조 2명·평균 8, 처치 8명·평균 10이다. 같은 결과 단위에서 전체 처치·대조 평균과 차이를 구하라.

Assume low-stratum controls number eight with mean zero, treated two with mean two; high-stratum controls number two with mean eight, treated eight with mean ten. Compute pooled means and their contrast.

풀이와 확인할 이유Solution and explanation

처치 합은 2×2+8×10=84, 인원은 10이라 평균 42/5이다. 대조 합은 8×0+2×8=16, 인원은 10이라 평균 8/5이다. 차이는 34/5=6.8이다. 각 층 차이 2보다 크며 두 팔의 층 구성이 다르기 때문이다.

Treated total eighty-four over ten gives 42/5; control total sixteen over ten gives 8/5. Their contrast is 34/5=6.8, larger than each stratum’s contrast two because the arm compositions differ.

2. 전체 구성으로 표준화Standardize to the combined composition

낮은 층의 대조·처치 평균은 0, 2이고 높은 층은 8, 10이다. 두 층이 각각 절반인 표적을 정한다. 표준화한 두 평균과 차이를 구하고 무엇을 추가로 알아야 인과 효과로 읽을 수 있는지 설명하라.

Control/treated means are (0, 2) in the low stratum and (8, 10) in the high. Use a half-half target. Find standardized means and contrast, and explain the additional causal conditions.

풀이와 확인할 이유Solution and explanation

처치 표준화 평균은 6, 대조는 4이므로 차이는 2이다. 이는 두 관측 집단에 같은 구성을 사용한 계산이다. 잘 정의된 처치·관측 일치·간섭 없음과 표적 층에서의 양수성·조건부 평균 교환이 있어야 그 차이를 표적 잠재 효과와 연결할 수 있다. 평균 공식이 이 조건을 증명하지 않는다.

Standardized treated mean is six and control mean four, giving two. This applies a common composition to observed groups. A defined treatment, consistency, no interference, target positivity and conditional mean exchangeability are needed to connect it to a potential-outcome effect.

3. 층별 음수와 전체 양수Negative within strata but positive after pooling

낮은 층은 대조 8명 평균 2, 처치 2명 평균 1, 높은 층은 대조 2명 평균 10, 처치 8명 평균 9이다. 두 층 차이와 전체 차이를 구하라. 모순인가?

Low-stratum controls: eight with mean two; treated: two with mean one. High-stratum controls: two with mean ten; treated: eight with mean nine. Find within-stratum and pooled contrasts. Is this contradictory?

풀이와 확인할 이유Solution and explanation

두 층 모두 차이는 −1이다. 전체 처치 평균은 74/10=7.4, 대조는 36/10=3.6이라 차이는 +3.8이다. 높은 수준의 층이 처치 집단에 더 많이 포함되어 생긴 가중 평균 차이다. 산술 모순이나 어느 한 표의 오류를 뜻하지 않는다.

Each stratum has contrast −1. Pooled treated and control means are 7.4 and 3.6, giving +3.8. Different composition weights explain the reversal; it is neither an arithmetic contradiction nor evidence that one table must be wrong.

4. 구성 분해를 손으로 확인Verify the composition decomposition

층 평균 (m0, m1)은 낮음 (0, 2), 높음 (8, 10)이고 처치 층 비중은 (1/5, 4/5), 대조는 (4/5, 1/5)이다. A=Σw1(m1−m0), B=Σ(w1−w0)m0를 구하여 관측 차이와 연결하라.

Stratum means (m0, m1) are low (0, 2), high (8, 10); treated shares (1/5, 4/5), control shares (4/5, 1/5). Calculate A=Σw1(m1−m0), B=Σ(w1−w0)m0 and their sum.

풀이와 확인할 이유Solution and explanation

A=(1/5)2+(4/5)2=2이다. B=(−3/5)0+(3/5)8=24/5이다. 합은 34/5로 전체 차이와 같다. B는 관측 대조 평균을 기준으로 구성 변화를 평가한 대수 항이며 빠진 개인 반사실을 관측했다는 뜻은 아니다.

A is two and B=24/5. Their sum 34/5 equals the pooled contrast. B is an observed-mean composition term relative to control means, not a newly observed individual counterfactual.

5. 서로 다른 가중 표적Different target weights

두 층의 관측 차이는 2와 4이다. 전체 표적 (1/2, 1/2), 처치 구성 (1/5, 4/5), 대조 구성 (4/5, 1/5)에서 각각 표준화 차이를 구하라.

Two stratum contrasts are two and four. Compute standardized contrasts for combined target (1/2, 1/2), treated composition (1/5, 4/5) and control composition (4/5, 1/5).

풀이와 확인할 이유Solution and explanation

전체 표적은 3, 처치 구성은 18/5, 대조 구성은 12/5이다. 표적이 서로 달라 숫자가 달라도 모순이 아니다. 어느 집단의 효과를 알고 싶은지를 먼저 정해야 하며 계산이 그 선택을 대신하지 않는다.

The three values are three, 18/5 and 12/5. They answer different target questions. Choose whose effect is relevant rather than letting the arithmetic choose a target.

6. 대조 평균이 없는 층A stratum lacking controls

층 A는 대조 0명·평균 미정의, 처치 2명·평균 5이고 층 B는 대조 3명·평균 1, 처치 3명·평균 2이다. A, B를 각각 절반으로 가중한 표준화 차이가 정의되는가?

Stratum A has no controls and two treated with mean five. B has three controls with mean one and three treated with mean two. Is a half-half standardized contrast defined?

풀이와 확인할 이유Solution and explanation

A의 표적 비중이 양수인데 대조 평균이 없으므로 정의되지 않는다. 평균을 0으로 넣으면 대조 결과가 0이라는 별도 가정을 더한 것이다. B의 평균을 A에 빌려오는 것도 외삽 가정이다. 계산 불가능을 결과 0과 구별한다.

No: A has positive target weight but no observed control mean. Filling zero adds an assumption, and borrowing B’s mean adds extrapolation. Undefined is not a numerical zero.

7. 표적 비중이 0인 층A zero-target-weight stratum

층 A는 대조만 5명 있고 층 B는 양쪽 팔 평균 차이가 3이다. 처치 구성의 표적이 A비중 0, B비중 1이라면 이 표준화 차이를 계산할 수 있는가? 전체 표적과 구별하라.

A contains five controls only; B has both arms with contrast three. A treated-composition target weights A zero and B one. Can its standardized contrast be calculated? Distinguish the combined target.

풀이와 확인할 이유Solution and explanation

정한 처치 구성 표적의 차이는 3이다. A의 미정의 처치 평균이 0가중 기여에 필요하지 않기 때문이다. 하지만 A에도 양의 비중을 주는 전체 표적은 여전히 그 평균이 필요하다. 다른 계산 가능한 표적을 택했다고 원 전체 표적이 식별되는 것은 아니다.

The specified treated-composition contrast is three because A contributes zero weight. A combined target giving A positive mass still needs its missing treated mean. Choosing an estimable alternative target does not identify the original one.

8. 인원 비율의 공통 배율A common rescaling of counts

각 층의 양쪽 팔 인원 또는 가중치에 같은 양수 c를 곱하고 셀 평균은 그대로 둔다. 전체·처치·대조 구성 표적의 표준화 차이와 관측 전체 차이가 바뀌는가?

Multiply every arm count or weight in every stratum by the same c>0, leaving cell means fixed. Do pooled and combined/treated/control standardized contrasts change?

풀이와 확인할 이유Solution and explanation

각 평균의 분자와 분모가 함께 c배가 되어 관측 팔 평균이 보존된다. 각 구성 비율도 c가 약분되므로 표준화 가중치와 차이는 같다. 인원수라는 해석은 달라질 수 있어도 이 가중 평균 계산은 불변이다. c=0은 총가중치를 없애므로 이 논거에 포함되지 않는다.

Both numerator and denominator of each arm mean scale by c. Composition shares also cancel c, so contrasts remain unchanged. The count interpretation can differ, but this weighted-average arithmetic is invariant. The argument excludes c=0, which removes all mass.

9. 관측 셀은 잠재 진실을 정하는가Do observed cells determine potential truth?

X 한 층에 처치 관측 Y=5, 대조 관측 Y=1인 두 사람만 있다. 빠진 Y0처치=1, Y1대조=5로 완성한 표와 Y0처치=5, Y1대조=1인 표의 ATE를 비교하라.

One X stratum contains two people: treated observed Y=5 and control observed Y=1. Compare completions (Y0 for treated=1, Y1 for controls=5) and (Y0 for treated=5, Y1 for controls=1). Find each ATE.

풀이와 확인할 이유Solution and explanation

첫 완성은 두 개인 효과가 모두 4라 ATE=4이다. 두 번째는 둘 다 0이라 ATE=0이다. 두 완성 모두 같은 관측 셀 평균 차이 4를 만든다. X가 같다는 사실만으로 빠진 반사실이나 평균 교환이 정해지지 않는다.

The first completion gives effect four for both units and ATE four; the second gives zero effects and ATE zero. Both match observed contrast four. Equal X values do not determine missing counterfactuals or exchangeability.

10. 가정한 완전 법칙의 진짜 효과Truth under an assumed complete law

낮은 층은 Y0=0, Y1=2, 높은 층은 Y0=8, Y1=10이며 각 층의 전체 질량은 1/2이다. 층 안 처치 여부와 이 결과는 무관하고 각 층에서 0<P(D=1|X)<1이라고 가정한다. 관측 일치 Y=Y(D)가 성립한다. 진짜 ATE와 전체 층 구성 표준화 차이를 구하라.

Low-stratum potential outcomes are Y0=0, Y1=2 and high-stratum outcomes Y0=8, Y1=10. Each stratum has mass half and treatment does not vary potentials within strata. In each stratum assume 0<P(D=1|X)<1. Assume consistency Y=Y(D). Find true ATE and combined-stratum standardized contrast.

풀이와 확인할 이유Solution and explanation

각 개인·원자 효과가 2라 진짜 ATE는 2이다. 두 팔이 각 층에서 양수이면 관측 층 차이도 2여서 절반씩 평균낸 표준화 값은 2이다. 같은 결론은 완전한 잠재 법칙과 양수성 가정에 의존한다. 관측된 네 평균만으로 이 법칙이 유일하게 확인된 것은 아니다.

Every effect is two, so ATE is two. With both arms present in each stratum, each observed contrast is two and the standardized value is two. The agreement relies on the full assumed potential law and positivity, not on unique recovery from four observed means.

11. 평균 조정 공식의 증명Prove the mean adjustment formula

유한한 X층에 비음수 표적 가중치 w(x)를 두고 합이 1이라고 하자. 이진 D, 유한 잠재 평균, 관측 일치가 성립하고 양의 표적 층에서 0<P(D=1|X)<1 및 E[Y(d)|D=d, X]=E[Y(d)|X], d=0, 1을 가정한다. 가중 관측 차이가 Σw(X)E[Y1−Y0|X]임을 보이라.

On finitely many X strata use nonnegative target weights w(x) summing to one. Assume binary D, finite potential means, consistency, positivity on positive target strata and E[Y(d)|D=d, X]=E[Y(d)|X] for d=0, 1. Prove the weighted observed contrast equals Σw(X)E[Y1−Y0|X].

풀이와 확인할 이유Solution and explanation

관측 일치로 E[Y|D=d, X]를 E[Y(d)|D=d, X]로 바꾼다. 평균 교환 가정으로 이를 E[Y(d)|X]로 바꾼다. 두 d의 식을 빼고 표적 가중치로 더하면 결론이다. 양수성은 조건부 관측 평균이 그 표적 층에서 정의되게 한다.

Consistency replaces each observed arm mean by E[Y(d)|D=d, X]. Mean exchangeability replaces this by E[Y(d)|X]. Subtract and average with target weights. Positivity makes the needed observed arm means available in the target support.

12. 평균만 같고 쌍 분포는 다르다Equal means with different joint distributions

네 동확률 원자의 (D, Y0, Y1)는 (0, −1, −1), (0, 1, 1), (1, −1, 1), (1, 1, −1)이다. 각 팔의 두 잠재 평균과 조건부 평균 교환 여부, 잠재 쌍의 D와 독립 여부를 구하라.

Four equally probable atoms (D, Y0, Y1) are (0, −1, −1), (0, 1, 1), (1, −1, 1), (1, 1, −1). Check each arm’s potential means, mean exchangeability and independence of the joint potential pair from D.

풀이와 확인할 이유Solution and explanation

두 팔에서 Y0평균과 Y1평균이 모두 0이므로 두 잠재 결과의 평균 교환은 성립한다. D=0에서만 Y0=Y1이므로 쌍의 사건 확률은 팔마다 1과 0으로 다르다. 따라서 전체 쌍 독립은 성립하지 않는다. 평균 효과 질문에 충분한 조건과 더 강한 분포 독립을 구별한다.

Both potential means are zero in both arms, satisfying mean exchangeability. But Y0=Y1 has probability one in D=0 and zero in D=1, so joint-pair independence fails. Conditions sufficient for a mean target differ from stronger distributional independence.

13. 같은 X 안에 남은 선택Selection remaining within the same X

X가 모두 같은 두 원자에서 D=0은 (Y0, Y1)=(0, 2), D=1은 (8, 10)이며 질량은 각각 1/2이다. 관측 차이와 진짜 ATE를 구하고 X통제가 해결하는지 설명하라.

With constant X, equally probable atoms have D=0, (Y0, Y1)=(0, 2) and D=1, (Y0, Y1)=(8, 10). Find the observed contrast and true ATE. Does controlling X solve the problem?

풀이와 확인할 이유Solution and explanation

관측 대조는 0, 처치는 10이라 차이는 10이다. 두 원자의 효과는 모두 2라 진짜 ATE는 2이다. X가 상수이므로 층화해도 같은 비교이며 차이는 그대로 10이다. 처치와 무처치 잠재 결과 사이의 조건부 선택이 남아 있다.

The observed contrast is ten, but both effects are two, so ATE is two. Constant X cannot change the comparison. Conditional selection between treatment and untreated potentials remains.

14. 사전 변수도 충돌변수일 수 있다A prior variable can also be a collider

독립 공정 이진 U, V가 처치 전에 정해지고 Z=OR(U,V)도 먼저 측정된다. 이후 D=U이고 성과 Y=2V이며 D를 개입해도 V는 바뀌지 않는다고 가정한다. Z=1을 조건으로 D별 성과 차이와 진짜 D효과를 구하라.

Independent fair binary U, V and prior Z=OR(U,V) are determined before treatment. Later D=U, Y=2V, and intervening on D does not change V. Find the D outcome contrast conditional on Z=1 and the true D effect.

풀이와 확인할 이유Solution and explanation

Z=1 안의 세 원자는 (U, V)=(0, 1), (1, 0), (1, 1)이다. D=0 평균은 2, D=1 평균은 1이라 차이는 −1이다. 하지만 구조에서 Y는 D에 의존하지 않아 진짜 효과는 0이다. Z가 시간상 앞서 측정되어도 두 원인의 공통 결과에 조건을 거는 편향은 가능하다.

Selected pairs are (0, 1), (1, 0), (1, 1). D=0 has mean two and D=1 mean one, giving −1, while the structural effect is zero. Being measured before treatment does not prevent a control from being a common effect of causes of treatment and outcome.

15. 매개 경로의 전체 변화Total change through a mediator

가정 구조 M=2D+U, Y=D+3M+V에서 같은 U, V를 고정하고 D를 0에서 1로 바꾼다. M, Y의 변화와 전체 효과를 구하라.

In the assumed structure M=2D+U, Y=D+3M+V, hold U, V fixed and change D from zero to one. Find changes in M and Y and the total effect.

풀이와 확인할 이유Solution and explanation

M은 2만큼 늘어난다. Y는 D의 직접 변화 1과 M변화의 3배인 6이 더해져 7만큼 늘어난다. 전체 효과는 7이다. 실제로 관측한 서로 다른 두 사람의 차이와 같은 연산은 아니다.

M rises by two. Y rises by direct change one plus mediated change six, totaling seven. This same-unit structural intervention differs from comparing two observed people.

16. M을 고정한 직접 변화Direct change with M fixed

가정 구조 M=2D+U, Y=D+3M+V에서 외부 개입으로 M=m을 두 D값에서 같게 고정한다. 직접 효과와 전체 효과의 차이를 구하라.

For M=2D+U, Y=D+3M+V, externally fix M=m at both treatment values. Find the controlled direct effect and compare with total effect.

풀이와 확인할 이유Solution and explanation

고정한 식은 Y=D+3m+V라 D변화는 1이다. 전체 효과 7에서 매개 경로 6이 막혀 직접 변화만 남는다. 관측 M이 같은 사람끼리 고르는 것과 이 외부 고정 개입이 같다고 가정하지 않는다.

The intervened equation Y=D+3m+V gives direct effect one. Blocking the mediated six leaves one rather than total seven. Conditioning on observed M is not automatically this intervention.

17. 잡음 상관이 있을 때의 계수Projection coefficients with correlated noises

D~Bernoulli(1/2)는 평균 0 잡음 U, V와 독립이며 M=2D+U, Y=D+3M+V, Var(U)=1, Var(V)=2, Cov(U,V)=1이다. 절편, D, M 모집단 투영의 D, M 계수를 구하라.

D~Bernoulli(1/2) is independent of mean-zero U, V, M=2D+U, Y=D+3M+V, Var(U)=1, Var(V)=2, Cov(U,V)=1. Find D and M coefficients in the population projection on intercept, D, M.

풀이와 확인할 이유Solution and explanation

b_M=3+1/1=4, b_D=1−2×1/1=−1이다. 잔차 V−U는 D, U와 무상관이므로 D, M에도 직교하여 정상식을 만족한다. 단순 D계수는 여전히 7이고 구조 직접 효과는 1이다. 조정계수 −1을 그 두 효과와 혼동하지 않는다.

Coefficients are b_M=4 and b_D=−1. Residual V−U is uncorrelated with D, U and therefore D, M, verifying the normal equations. Simple D coefficient remains seven and structural direct effect one; the adjusted −1 is neither.

18. 잡음 공분산의 가능성Feasibility of noise covariance

유한 분산이 Var(U)=1/4, Var(V)=1, Cov(U,V)=3/4라고 제안되었다. 가능한 공분산 행렬인가? Var(U)=0인 경우 공분산은 무엇이어야 하는가?

Proposed moments are Var(U)=1/4, Var(V)=1, Cov(U,V)=3/4. Is the covariance matrix feasible? What must covariance be when Var(U)=0?

풀이와 확인할 이유Solution and explanation

공분산 제곱 9/16이 분산 곱 1/4보다 커서 양의 준정부호 조건을 위반한다. 어떤 실제 이차 모멘트도 이 제안을 만족하지 못하므로 입력을 거절해야 한다. Var(U)=0이면 공분산 제곱이 0이하이어야 하므로 공분산도 0이다.

Squared covariance 9/16 exceeds variance product 1/4, violating positive semidefiniteness. The proposed second moments are impossible and must be rejected. Zero Var(U) forces covariance zero.

19. 특이 매개 회귀의 전체 해The full solution family for a singular mediator regression

D~Bernoulli(p), 0<p<1, E[V²]<∞, 평균 0 U의 분산 0, M=2D, Y=7D+V이고 E[V|D]=0이라 하자. 절편, D, M 투영의 모든 계수 해와 D계수의 유일성을 구하라.

Let D~Bernoulli(p), 0<p<1, E[V²]<∞, M=2D, Y=7D+V and E[V|D]=0. Find every coefficient solution for projection on intercept, D, M and decide whether the D coefficient is unique.

풀이와 확인할 이유Solution and explanation

적합값은 b0+(bD+2bM)D이므로 b0=0, bD+2bM=7이다. 모든 해는 bM=t, bD=7−2t, t∈R이다. t를 바꾸면 D계수가 달라져 유일하지 않다. 정상식 한 해를 반환하더라도 그 값을 유일한 구조 효과라고 읽을 수 없다.

Fits depend on b0 and bD+2bM, requiring b0=0 and bD+2bM=7. The full family is bM=t, bD=7−2t for any real t. D coefficient is not unique; one returned solution is not a uniquely identified structural effect.

20. 영 열과 한 성분의 식별A zero column and component identification

D~Bernoulli(p), 0<p<1, E[V²]<∞, M=0, Y=5D+V, E[V|D]=0이다. 절편, D, M 회귀의 모든 해와 유일하게 정해지는 성분을 구하라.

Let D~Bernoulli(p), 0<p<1, E[V²]<∞, M=0, Y=5D+V with E[V|D]=0. Find the full intercept, D, M coefficient family and identify which components are unique.

풀이와 확인할 이유Solution and explanation

M은 영 열이라 그 계수 t는 임의이다. 절편과 D는 선형 독립이므로 b0=0, bD=5는 유일하다. 전체 해는 (0, 5, t)이다. 전체 계수 벡터가 비유일하다고 모든 성분이 식별되지 않는 것은 아니다.

M is a zero column with arbitrary coefficient t. Linearly independent intercept and D columns uniquely give b0=0, bD=5. The family is (0, 5, t). A nonunique full coefficient vector need not make every component unidentified.

21. 항상 처치된 경우의 계수Coefficients when everyone is treated

U,V의 이차모멘트는 유한하다. D=1이 확률 1이고 M=U, E[U]=0, Var(U)>0, Y=2+3U+V, E[V]=0, Cov(U,V)=0이다. 절편, D, M 투영의 모든 해를 구하라. 구조상 0→1 D효과를 관측 변동으로 확인했다고 할 수 있는가?

U and V have finite second moments. D=1 almost surely, M=U with mean zero and positive variance, Y=2+3U+V, E[V]=0, Cov(U,V)=0. Find all intercept, D, M projection solutions. Does observed D variation identify a zero-to-one effect?

풀이와 확인할 이유Solution and explanation

D는 절편과 같으므로 b0+bD=2, bM=3만 정해진다. 모든 해는 (2−t, t, 3), t∈R이다. D가 바뀐 관측이 없어 bD를 따로 식별하지 못한다. 구조 효과를 추가 가정으로 정할 수 있어도 이 투영 데이터가 그 가정을 입증한 것은 아니다.

Only b0+bD=2 and bM=3 are determined, giving (2−t, t, 3) for any real t. No observed D variation identifies its separate coefficient. A structurally assumed effect is not verified by this projection.

22. 잡음 투영의 잔차 분산Residual variance after projecting the noise

D~Bernoulli(p)는 평균 0 U, V와 독립이고 0<p<1, Var(U)=2, Var(V)=5, Cov(U,V)=1이다. M=αD+U, Y=βD+γM+V의 절편, D, M 투영 잔차 e=V−U/2의 분산을 구하라.

D~Bernoulli(p) is independent of mean-zero U, V with 0<p<1, Var(U)=2, Var(V)=5, Cov(U,V)=1. For M=αD+U, Y=βD+γM+V, find variance of the projection residual e=V−U/2.

풀이와 확인할 이유Solution and explanation

Var(e)=5+(1/4)2−2(1/2)1=9/2이다. 일반식 Var(V)−Cov(U,V)²/Var(U)와도 같다. 양의 준정부호 조건으로 이 값은 비음수이다. 잔차 분산이 줄었다고 D계수가 전체 인과 효과에 더 가까워졌다고 결론낼 수는 없다.

Variance is 5+1/2−1=9/2, also 5−1²/2. Positive semidefiniteness ensures nonnegativity. Reduced projection residual variance does not establish that the D coefficient is closer to a total causal effect.

23. 매개 모형의 Gram 행렬The mediator model’s Gram matrix

평균 0 U, V와 독립인 Bernoulli(p) D에 M=αD+U, Y=τD+γU+V, τ=β+γα, v=Var(U), c=Cov(U,V)를 가정한다. 절편, D, M의 E[XXᵀ]와 E[XY]를 구하라.

Assume mean-zero U, V independent of Bernoulli(p) D, M=αD+U, Y=τD+γU+V, τ=β+γα, v=Var(U), c=Cov(U,V). Find E[XXᵀ] and E[XY] for X=(1, D, M).

풀이와 확인할 이유Solution and explanation

E[D]=E[D²]=p, E[M]=E[DM]=αp, E[M²]=α²p+v이다. 따라서 Gram행은 (1, p, αp), (p, p, αp), (αp, αp, α²p+v)이다. 오른쪽은 (τp, τp, ατp+γv+c)이다. D와 잡음의 독립·잡음 평균 0을 사용했으며 실제 표에서 자동으로 주어지는 모멘트식은 아니다.

Use E[D]=E[D²]=p, E[M]=E[DM]=αp, E[M²]=α²p+v. Gram rows are (1, p, αp), (p, p, αp), (αp, αp, α²p+v), and the right side is (τp, τp, ατp+γv+c). These use declared independence and zero means.

24. 계수 성분 식별의 영공간 조건Nullspace condition for identifying a component

제곱손실 최소 계수의 전체 집합이 b=b*+Σt_jv_j, t_j∈R라고 주어졌다. k번째 계수가 유일할 필요충분조건을 증명하라.

All squared-loss minimizing coefficients are b=b*+Σt_jv_j for unrestricted real t_j. Prove the necessary and sufficient condition for component k to be unique.

풀이와 확인할 이유Solution and explanation

모든 v_j의 k성분이 0이면 어떤 자유모수를 바꿔도 b_k=b*_k이다. 반대로 어떤 v_j, k가 0이 아니면 그 t_j만 바꿔 b_k를 바꿀 수 있으므로 유일하지 않다. 따라서 모든 영공간 방향의 해당 성분이 0인 것이 필요충분하다. 이는 계수 성분에 관한 선형대수 조건이다.

If every v_j has zero kth component, all solutions share b*_k. If one direction has a nonzero kth component, varying that parameter changes b_k. Thus all nullspace directions must vanish in that component. This is coefficient identification within a projection problem.

25. OR 선발의 관측 차이Observed contrast after OR selection

독립 공정 이진 D,U에 M=OR(D,U),Y=2U를 가정한다. M=1의 확률, 선발 후 D별 Y 평균과 차이, 구조상 D 효과를 구하라.

Assume independent fair binary D, U, M=OR(D,U), Y=2U. Find selection probability, selected arm means and contrast, and structural D effect.

풀이와 확인할 이유Solution and explanation

선발은 (0,0) 외 세 원자이므로 확률은 3/4이다. 선발된 D=0에서는 U=1이라 Y 평균은 2이고,D=1에서는 U가 0과 1에 반씩 놓여 평균이 1이다. 차이는 −1이다. D가 U나 Y를 바꾸지 않는 구조의 진짜 효과 0과 선택으로 생긴 차이는 다르다.

Selection has probability 3/4. Selected controls have U=1 and mean 2; selected treated have U equally 0/1 and mean 1. Contrast is −1, while D has no structural effect on U or Y.

26. 선택 전 비교The comparison before selection

독립 공정 이진 D,U와 Y=2U에서 M에 조건을 걸기 전 D별 Y 평균을 구하라. OR 선발 후 차이 −1과 비교하라.

For independent fair binary D, U and Y=2U, find Y means by D before conditioning on M. Compare with the OR-selected contrast −1.

풀이와 확인할 이유Solution and explanation

두 D팔 모두 U가 절반의 확률로 1이므로 Y 평균은 1이고 차이는 0이다. 선발 후에는 D와 U의 조건부 구성이 달라져 차이가 −1이 된다. 자료를 더 좁히는 조건이 원래 독립을 보존하지 않을 수 있음을 보여 준다.

Each D arm has half U=1, so both means are 1 and contrast 0. OR selection changes conditional composition and creates −1. Restricting data need not preserve original independence.

27. OR선발 후 공분산Covariance after OR selection

독립 공정 이진 D,U를 M=OR(D,U)=1로 조건짓는다. E[D|M],E[U|M],E[DU|M]과 조건부 공분산을 계산하라.

Condition independent fair binary D, U on M=OR(D,U)=1. Calculate the three moments and conditional covariance.

풀이와 확인할 이유Solution and explanation

남은 세 원자는 조건부 동확률이다. D와 U 각각의 평균은 2/3, 곱 DU의 평균은 1/3이다. 공분산은 1/3−(2/3)²=−1/9이다. 선택 전 공분산 0과 다르며, 실제 화살표를 자료에서 추정한 결과가 아니라 선언한 구조의 계산이다.

The three retained atoms are equiprobable. Means of D and U are 2/3 and mean DU is 1/3, giving covariance −1/9 rather than the original zero. This is a calculation under a declared structure.

28. 양수성이 있는 XOR 나쁜 통제XOR bad control despite positivity

독립 D,U의 1 확률이 각각 1/4이고 Y=2U,M=D XOR U이다. M층 질량과 각 층의 D별 Y 차이, 전체 M 구성으로 조정한 차이를 구하라. 진짜 D 효과는 0이다.

Independent D, U each have probability 1/4, with Y=2U and M=D XOR U. Find M masses, within-M D contrasts and the M-standardized contrast. True D effect is zero.

풀이와 확인할 이유Solution and explanation

M=0의 질량은 9/16+1/16=5/8이고,D=U라 Y 차이는 2이다. M=1의 질량은 6/16=3/8이고,U=1−D라 차이는 −2이다. 조정값은 (5/8)2−(3/8)2=1/2이다. 두 층의 양쪽 팔이 모두 양수여도 조건부 평균 교환이 깨져 인과 조정은 잘못될 수 있다.

M=0 has mass 5/8 and contrast 2 because D=U; M=1 has mass 3/8 and contrast −2. Standardization gives 1/2, not zero. Both arms have positive probability in every stratum, but conditional mean exchangeability fails.

29. AND 선발의 빈 팔An absent arm under AND selection

독립 공정 이진 D,U에서 M=AND(D,U),Y=θD+γU이다. M=1을 조건으로 관측 D 차이를 계산할 수 있는가?

For independent fair binary D, U, M=AND(D,U), Y=θD+γU. Can an observed D contrast be computed conditional on M=1?

풀이와 확인할 이유Solution and explanation

M=1에는 (D,U)=(1,1)만 남아 D=0팔이 없다. 따라서 관측 차이는 미정의이다. 구조 모형이 가정한 D 개입 효과 θ를 계산하는 것과 이 선택 집단에서 두 관측 평균을 비교하는 것은 다르다. 없는 대조 평균을 0으로 넣지 않는다.

Only (D, U)=(1, 1) remains, leaving no D=0 arm. The observed contrast is undefined. A structurally specified effect θ differs from a two-arm observed comparison within this selected group.

30. 합을 고정한 선발Conditioning on the sum

독립 공정 이진 D,U에 M=D+U,Y=θD+γU를 가정한다. M=1에서 D별 Y 차이와 D,U 공분산을 구하라.

Assume independent fair binary D, U, M=D+U, Y=θD+γU. Find the D contrast and D, U covariance conditional on M=1.

풀이와 확인할 이유Solution and explanation

M=1에는 (0,1),(1,0)이 각각 조건부 확률 1/2로 남는다. D=1의 Y는 θ,D=0의 Y는 γ라 차이는 θ−γ이다. E[D]=E[U]=1/2,E[DU]=0이므로 공분산은 −1/4이다. 선발은 양의 구조 효과를 작게 보이게 하거나 부호를 바꿀 수도 있다.

The retained pairs (0, 1), (1, 0) each have conditional mass 1/2. Their outcome contrast is θ−γ. Means are 1/2 and mean product zero, so covariance is −1/4. Selection can attenuate or reverse a structural effect.

31. 확률0인 선택 사건A zero-probability selection event

D=U=0이 확률 1이고 M=OR(D,U)이다. M=1의 조건부 평균과 공분산은 무엇인가? 원 네 원자 표에서 확률 0 행을 유지하는 것과 구별하라.

D=U=0 almost surely and M=OR(D,U). What are means and covariance conditional on M=1? Distinguish retaining zero-mass atoms in the original table.

풀이와 확인할 이유Solution and explanation

선택 확률이 0이므로 이 유한 법칙에서 그 사건의 조건부 평균과 공분산은 미정의이다. 확률 0인 원자를 표에 보존한다고 조건부 질량을 양수로 만들 수 없다. 네 원자의 구조상 가능한 값과 실제 법칙의 양의 지지집합은 다르다.

Selection probability is zero, so these conditional moments are undefined in the finite law. Retaining zero-mass atoms does not give them positive conditional mass. Structural labels and positive support differ.

32. 변동 없는 D와 구조 효과Constant D versus a structural effect

D=0이 확률 1이고,U는 확률 1/2로 1이며 Y=3D+2U이다. 관측 D별 차이와 선언한 구조의 0→1 효과를 구별하라.

D=0 almost surely, U is binary with probability 1/2, and Y=3D+2U. Distinguish the observed D contrast from the declared zero-to-one structural effect.

풀이와 확인할 이유Solution and explanation

처치 관측 팔이 없어 두 평균 차이는 미정의이다. 그러나 U를 같게 두고 구조식에서 D만 개입하여 바꾸면 Y는 3 증가한다. 이는 입력한 구조의 효과이지 관측 D 변동에서 식별한 값이 아니다. 모형 계산 가능성과 실제 관측 비교 가능성을 구별한다.

The treated observed arm is absent, so its contrast is undefined. Intervening on D while holding U fixed changes the structural Y by 3. That is specified by the model, not identified from observed treatment variation.

33. ε=0절사의 경계The boundary of trimming at ε=0

층별 성향은 0,1/2,1이고 각 층의 질량은 양수이다. ε≤e≤1−ε에서 ε=0이면 어느 층이 남는가? 남은 표적의 양수성은 보장되는가?

Positive-mass strata have propensities 0, 1/2, 1. Under inclusive ε≤e≤1−ε, which remain at ε=0? Is retained-target positivity guaranteed?

풀이와 확인할 이유Solution and explanation

세 층 모두 등호를 포함한 범위 [0,1]에 있어 남는다. 확률 0과 1인 층이 그대로이므로 양쪽 팔의 양수성은 실패한다. 절사라는 이름만으로 끝점 제거를 추정해서는 안 된다. 규칙의 부등호와 ε값을 함께 보고한다.

All three remain in the inclusive range [0, 1]. Zero and one propensities still violate positivity. The name trimming does not imply endpoint removal; report the exact inequalities and ε.

34. 아주 작은 양수 성향A very small positive propensity

성향은 e=10^(−400)이고 표적 질량은 양수이다. 처치 역가중치와 양수성 상태를 구하라. 일반 숫자 표시가 e를 0처럼 보이게 해도 어떻게 구별해야 하는가?

A positive-mass stratum has e=10^(−400). Find its treated inverse weight and positivity status. How should this differ from numerical display rounding e to zero?

풀이와 확인할 이유Solution and explanation

e는 정확히 양수이고 1보다 작아 양쪽 팔의 관측 기회가 수학적으로 존재한다. 역가중치는 10^400이다. 일반 표시 범위에서는 e가 0, 그 역수가 무한대처럼 보일 수 있어도 정확분수와 비영수·표시 범위 상태를 보존해야 한다. 정확한 e=0인 불가능한 팔과 혼동하지 않는다.

Mathematically 0<e<1, and the inverse is 10^400. Ordinary display can underflow e or overflow its inverse, so retain exact value and nonzero/display-range metadata. This is distinct from an exactly impossible arm at e=0.

35. 절사 표적이 비는 경우An empty trimmed target

성향이 1/4,3/4인 두 층의 질량은 각각 1이다. ε=1/2의 포함 절사에서 남은 질량과 새 가중치를 구하라.

Two strata have mass one each and propensities 1/4, 3/4. At inclusive ε=1/2, find retained mass and target weights.

풀이와 확인할 이유Solution and explanation

허용 성향은 정확히 1/2뿐인데 둘 다 그 값이 아니므로 남은 질량은 0이다. 새 가중치의 정규화 분모가 0이라 표적 평균은 미정의이다. 두 원가중치를 0으로 표시하는 것과 합이 1인 새 표적을 만드는 것은 다르다.

Only exact propensity 1/2 is retained, and neither stratum qualifies. Retained mass is zero, so normalization and a target mean are undefined. Zeroing both original weights does not create a probability target summing to one.

36. 절사가 바꾼 효과The effect of changing the target by trimming

세 층의 질량은 1,2,1, 성향은 .01,.5,.99, 층 효과는 −10,1,10이다. ε=.1로 절사할 때 남는 비율, 원 ATE와 절사 ATE를 구하라.

Three strata have masses 1, 2, 1, propensities .01, .5, .99, and effects −10, 1, 10. At ε=.1, find retained share, original ATE and retained ATE.

풀이와 확인할 이유Solution and explanation

가운데 질량 2만 남아 비율은 1/2이다. 원 ATE는 (−10+2+10)/4=1/2이고 남은 ATE는 1이다. 숫자 차이는 표적 변화에서 왔다. 원확률이 모두 양수여도 절사는 여전히 누구의 효과를 평균내는지 바꾼다.

Only middle mass 2 remains, retaining half. Original ATE is 1/2 and retained ATE one. The changed number reflects a changed population target, even though all original propensities were positive.

37. 제곱 역가중치 기대Expected squared inverse weight

고정 층에서 D는 Bernoulli(e),e=1/5이다. W=D/e의 기대·제곱 기대·분산을 구하라.

Within a fixed stratum, D is Bernoulli(e), e=1/5. Find mean, second moment and variance of W=D/e.

풀이와 확인할 이유Solution and explanation

W는 확률 1/5로 5이고 나머지 확률로 0이다. 기대는 1, 제곱 기대는 (1/5)25=5, 분산은 5−1=4이다. e가 작아지면 제곱 기대 1/e가 커져 드문 큰 기여가 생긴다. 이 계산만으로 추정량의 실제 유한 표본 분포를 모두 정한 것은 아니다.

W equals 5 with probability 1/5 and otherwise zero. Mean is one, second moment five, and variance four. Smaller e increases 1/e and rare large contributions. This alone does not specify an entire actual estimator sampling law.

38. 통제 회귀와 ATE 가중치Controlled-regression versus ATE weights

두 층의 질량은 각각 1/2, 성향은 1/2와 1/10, 조건부 차이는 2와 4이다. 모든 층 절편을 포함한 공통 D 회귀 계수는 a_x∝P(X=x)e_x(1−e_x)로 차이를 가중한다. 그 계수와 전체 층 가중 차이를 구하라.

Two equal-mass strata have propensities 1/2, 1/10 and contrasts 2, 4. A common-D projection with unrestricted stratum intercepts weights by P(X)e(1−e). Compute its coefficient and the combined-target contrast.

풀이와 확인할 이유Solution and explanation

비정규화 가중치는 1/8과 9/200이다. 정규화하면 25/34와 9/34이므로 계수는 (50+36)/34=43/17이다. 전체 층 가중 차이는 3이다. 층 효과가 이질적이면 같은 X를 통제해도 회귀 계수와 정한 ATE 표준화 가중합은 다를 수 있다.

Raw weights are 1/8 and 9/200, normalizing to 25/34 and 9/34. Coefficient is 43/17, while the combined-target contrast is three. Heterogeneous strata can make a controlled coefficient differ from the chosen ATE standardization.

39. 공통 완전행과 표본 변화Common complete rows and sample change

Y가 가용한 100행의 단순 차이와 X,Y가 가용한 80행의 조정 차이가 다르다. 차이를 모두 통제의 영향이라고 설명할 수 있는가? 먼저 어떤 두 계산을 같은 표본에서 해야 하는가?

A pooled contrast on 100 Y-available rows differs from adjustment on 80 X, Y-complete rows. Can the whole change be attributed to control? Which calculations should first use the same sample?

풀이와 확인할 이유Solution and explanation

두 계산의 표본도 달라 통제와 행 구성 변화가 섞였다. 먼저 같은 80개 완전행에서 전체 단순 차이와 조정 차이를 모두 구한다. 그 후 100행과 80행의 전체 차이도 별도로 보고하여 표본 변화를 읽는다. 같은 표본을 썼다는 사실도 누락의 무작위성을 입증하지 않는다.

Adjustment and sample composition are mixed. First compute both pooled and adjusted contrasts on the same 80 complete rows. Separately compare pooled contrasts on 100 versus 80 rows to expose sample change. A common frame still does not prove random missingness.

40. 잘 예측하는 변수와 좋은 통제A predictive variable versus an appropriate causal control

처치 뒤 매개변수 M을 넣자 Y의 제곱손실은 줄고 D 계수도 바뀌었다. 이것만으로 전체 처치 효과 추정이 개선되었다고 결론낼 수 있는가? 필요한 표적·구조 질문을 적어라.

Including post-treatment mediator M reduces squared prediction loss and changes the D coefficient. Does this prove improvement for the total treatment effect? State the needed target and structural questions.

풀이와 확인할 이유Solution and explanation

예측 손실 감소는 투영 문제의 성과이며 전체 인과 표적의 타당성과 다르다. 전체 효과인지 M 고정 직접 효과인지 먼저 정한다. M의 처치 이후 시점과 매개·공통 결과·미관측 원인 구조를 검토하고, 교환·양수성·모형 조건을 따로 정당화해야 한다. 큰 예측력만으로 좋은 통제라고 부르지 않는다.

Prediction loss concerns projection quality, not validity for a total causal target. Specify total versus controlled-direct effect, then justify timing, mediating/common-effect pathways, unobserved causes, exchangeability, positivity and modeling assumptions. Predictive strength alone does not make a good control.

41. 국가 지표의 역할과 단위Roles and units of country indicators

2024년 16국에서 D는 1인당 GDP가 30,000 이상, X는 ILO 모형 실업률이 5% 이상인 지표이고 Y는 출생 시 기간 기대수명이다. GDP의 단위는 2015년 불변 USD/명, 실업률은 퍼센트, Y는 년이다. X로 조정하면 GDP정책의 인과 효과가 확인되는가?

For sixteen countries in 2024, D indicates GDP/person≥30,000 constant 2015 USD/person, X indicates modeled ILO unemployment≥5%, and Y is period life expectancy at birth in years. Does adjustment for X verify a GDP policy effect?

풀이와 확인할 이유Solution and explanation

계산은 같은 연도의 선택 소득 분류와 수명의 조건부 연관이다. 실업률이 선행 공통 원인인지 소득의 결과인지 또는 선택 변수인지를 이 표로 정하지 못한다. 소득 문턱도 하나의 동일 정책 개입을 뜻하지 않는다. 세 지표의 단위와 측정 범위·정한 표적을 보고하고 인과 해석의 추가 근거를 따로 제시해야 한다.

This computes conditional association of chosen same-year income labels and longevity. The table does not establish whether unemployment is a prior common cause, a consequence or a selection variable. The threshold also does not define one common policy intervention. Report measurement scope, units, target and separate causal evidence.

42. NSW 선행 통제의 조건Conditions for a prior NSW control

NSW 공개 445행의 관측 D와 RE78에 대해 원 nodegree를 X로 나눈다. 원저자의 RE74가용 남성 부분표와 개입 전 선택 조건을 유지한다. nodegree라는 이름 또는 층별 평균 계산만으로 무엇을 증명할 수 없는가?

Partition the 445 public NSW records by original nodegree when comparing D and RE78. Retain the authors’ RE74-available male-subset and pre-intervention selection conditions. What is not proved by the variable name or conditional means alone?

풀이와 확인할 이유Solution and explanation

조건부 평균 계산은 그 X범주 안의 관측 비교를 준다. 변수 이름만으로 모든 미관측 잠재 결과가 교환 가능하거나 원 실험이 이 X로 층별 추첨되었다고 증명하지 않는다. 원 실험 출처의 근거를 버릴 필요도 없지만 그 범위와 새 표준화 표적을 구별한다. 이행·표본 선택·일반화 조건은 별도로 읽는다.

Conditional means describe observed comparisons within X. Neither the name nor the calculation proves exchangeability of missing potential outcomes or historical randomization stratified on X. Experimental provenance still matters, but its scope and the new standardized target differ. Implementation, selection and generalization remain separate.

43. RE78을 어떤 달러로 읽나Which dollars does RE78 use?

공식 NSW 원토큰 RE78의 평균 차이를 계산했다. 원 JASA 논문 Table2notea가 이 벤치마크 추정을 1982년 달러로 명시한다. RE78이라는 열 이름만 보고 명목 1978년 USD로 표시해도 되는가?

A mean contrast is computed from official NSW RE78 tokens. Table 2 note a in the primary JASA paper specifies 1982 dollars for the benchmark estimates. Can the column name alone justify labeling nominal 1978 USD?

풀이와 확인할 이유Solution and explanation

안 된다. 결과 연도와 소득의 가격 기준은 다른 메타데이터이다. 이 벤치마크의 차이는 1982년 USD로 표시하며 별도로 확인되지 않은 다른 소득 열의 가격 기준까지 임의 확대하지 않는다. 같은 숫자라도 단위를 틀리면 비교와 정책 해석이 달라진다.

No. Outcome year and price base are different metadata. Use 1982 USD for this benchmark and do not extrapolate an unverified price base to other earnings fields. Incorrect units alter interpretation even when arithmetic is unchanged.

44. 두 누락 수를 더하면 안 되는 이유Why two missingness counts cannot simply be added

점포 410행에서 이전 FTE가용 398행, 같은 짝 변화가용 384행이다. 변화가 정의되려면 이전 FTE가 반드시 가용해야 한다. X=이전 FTE≥20, Y=짝변화로 둘 때 X 누락, Y 누락, 둘 다 누락, 공통완전행 수를 구하라.

Among 410 stores, before FTE is available for 398 and paired change for 384. A defined change requires before FTE available. With X=beforeFTE≥20 and Y=paired change, find missing X, missing Y, both missing and common complete counts.

풀이와 확인할 이유Solution and explanation

X누락은 12, Y누락은 26이다. X가 없으면 변화도 없으므로 X누락 12행은 모두 Y누락에 포함된다. 둘다누락 12, 어느하나누락 26, 공통완전 384행이다. 12+26을 그대로 제외하면 같은 누락을 두 번 센다.

Missing X is 12 and missing Y 26. Every missing-X row also lacks change, so both missing is 12, either missing 26, and common complete 384. Adding 12+26 would double-count the overlap.

45. 원코드가 반복되는 점포Stores with repeated source codes

원점포 코드 407이 원위치 42와 168에 있다. 통제 범주를 만들기 전에 코드를 고유키라고 가정해 한 행을 제거하면 무엇이 바뀔 수 있는가?

Source store code 407 occurs at positions 42 and 168. What can change if a row is removed under an unverified unique-code assumption before forming control strata?

풀이와 확인할 이유Solution and explanation

층별 인원·평균·같은 짝 가용 집합과 가중 표적이 달라질 수 있다. 원위치 또는 원파일 지문과 위치를 행 재현 키로 두고 두 기록을 보존한다. 반복 코드는 자동으로 동일 관측의 중복을 의미하지 않는다. 식별키 약속을 확인하는 작업과 통제의 인과 타당성도 별개이다.

Stratum counts, means, paired availability and target weights can change. Retain both records with position or file-hash-plus-position identifiers. Repeated labels do not automatically establish duplicate observations. Row identity and causal control validity are distinct issues.

46. FTE 차이의 단위Units of an FTE contrast

FTE=FT+PT/2+관리자이며 같은 점포 변화의 두 집단 차이를 구한다. 이 값을 그대로 해고·고용된 사람 수로 읽어도 되는가? 관리자 0인 (FT, PT)=(10, 0), (0, 20)을 이용해 설명하라.

FTE=FT+PT/2+managers, and group contrasts compare same-store changes. Can this be read directly as headcount hired or fired? Use zero-manager compositions (FT, PT)=(10, 0), (0, 20).

풀이와 확인할 이유Solution and explanation

두 구성 모두 FTE 10이지만 사람 수는 10명과 20명이다. 따라서 FTE 차이는 그 가중 노동량 척도의 차이이며 같은 수의 사람 변화와 일반적으로 같지 않다. 통제의 이전 FTE 문턱도 사람 20명이라는 조건으로 바꾸지 않는다. 원 구성값과 단위를 보존한다.

Both have 10 FTE but headcounts 10 and 20. An FTE contrast is a weighted labor-unit contrast, not generally the same number of people. A baseline FTE threshold 20 must not be relabeled twenty people.

47. 평균 교환 가정의 점검 가능성When can mean exchangeability be checked directly?

실습에는 각 원자의 X, D, Y0, Y1과 질량을 모두 가정해 넣는다. 실제 자료는 X, D, Y만 관측한다. 전자에서 계산한 조건부 평균 교환 참/거짓 표시를 후자에서도 같은 방식으로 검증했다고 할 수 있는가?

A lab supplies every assumed atom’s X, D, Y0, Y1 and mass; actual data reveal only X, D, Y. Can a direct mean-exchangeability check in the former be claimed in the latter?

풀이와 확인할 이유Solution and explanation

완전 가정 법칙에서는 빠진 결과가 없으므로 두 잠재 평균을 직접 비교할 수 있다. 실제 자료는 각 사람의 반대 처치 결과가 없어 같은 검사가 일반적으로 불가능하다. X별 관측 평균이나 균형만으로 미관측 평균 조건이 증명되지 않는다. 실습의 참/거짓은 선언한 법칙 내부의 논리 검사이다.

The complete assumed law lets us compare both potential means directly. Actual missing counterfactuals generally prevent that same test. Conditional observed means or balance do not prove the unobserved condition. The lab’s verdict is internal to the declared law.

48. 분포 독립이 평균 교환을 함의한다Distributional independence implies mean exchangeability

각 양의 표적 층에서 (Y0, Y1)와 D가 조건부 독립이며 두 잠재 평균이 유한하고 양수성이 성립한다. 왜 각 잠재 결과의 조건부 평균 교환도 성립하는가? 역명제는 일반적으로 참인가?

Within each positive target stratum, (Y0, Y1) is independent of D, finite means exist and positivity holds. Why does mean exchangeability follow? Is the converse generally true?

풀이와 확인할 이유Solution and explanation

쌍의 조건부 분포가 D에 따라 바뀌지 않으면 각 좌표의 주변분포도 바뀌지 않는다. 적분 가능한 좌표의 평균도 같아진다. 역으로 평균 두 개가 같아도 분산이나 쌍의 관련 구조가 다를 수 있어 전체 독립은 따르지 않는다. 앞의 일치·반대 부호 원자표가 반례이다.

An unchanged joint conditional distribution gives unchanged coordinate marginals and therefore equal finite means. Equal means need not fix variances or dependence between potentials, so the converse fails. The matching/opposite-sign atom table gives a counterexample.

49. ATT와 처치 X가중 표준화ATT and standardizing by treated X shares

P(D=1)>0이고 두 잠재 결과는 적분 가능하다고 하자. 관측 일치와 필요한 양수성 아래 E[Y(d)|D=1, X]=E[Y(d)|X]가 d=0, 1에서 성립한다고 하자. ATT가 E[τ(X)|D=1], τ(X)=E[Y1−Y0|X]임을 보이라.

Assume P(D=1)>0, integrable potential outcomes, consistency, needed positivity and E[Y(d)|D=1, X]=E[Y(d)|X] for d=0, 1. Show ATT=E[τ(X)|D=1] where τ(X)=E[Y1−Y0|X].

풀이와 확인할 이유Solution and explanation

ATT=E[Y1−Y0|D=1]에 반복기대를 적용하면 X별 처치자 잠재 평균 차이의 처치 X가중 평균이다. 각 잠재 평균에 주어진 교환 관계를 쓰면 차이는τ(X)가 된다. 따라서 처치 X구성으로 평균낸다. 이 조건이 없으면 동일 X안에서 처치자 효과가 달라 처치 X가중 진실과 ATT가 다를 수 있다.

Apply iterated expectation within D=1, then replace both conditional treated potential means by their X-specific full means. The difference is τ(X), averaged over treated X. Without that relation, treated effects within X can differ from full-stratum effects.

50. 층별 절편 회귀의 가중치 증명Prove the stratum-intercept regression weights

유한 이차모멘트와 이진 D에 유한한 각 X층 절편을 자유롭게 포함한다. R=D−e(X), e(X)=E[D|X], E[R²]>0이다. m_d(x)=E[Y|D=d,X=x]로 두고, 두 팔 평균을 사용하는 식과 최종 합은 Pr(X=x)>0, 0<e(x)<1인 층에 한정한다. e=0 또는 1인 층은 R=0이므로 없는 팔 평균을 계산하지 않고 기여 0으로 처리한다. E[RY|X]=e(1−e)(m1−m0)와 E[R²|X]=e(1−e)를 보이고 공통 D계수의 가중치를 도출하라.

With finite second moments, binary D, finitely many X strata and unrestricted stratum intercepts, let e(X)=E[D|X], R=D−e(X) and E[R²]>0. Define m_d(x)=E[Y|D=d,X=x]. Restrict expressions using both arm means and the final sums to Pr(X=x)>0, 0<e(x)<1. At e=0 or 1, R=0 contributes zero without evaluating an absent arm mean. Then prove E[RY|X]=e(1−e)(m1−m0) and E[R²|X]=e(1−e) and derive the common-D coefficient weights.

풀이와 확인할 이유Solution and explanation

양쪽 팔이 양수인 층에서 E[DY|X]=e m1이고 E[Y|X]=e m1+(1−e)m0이다. 따라서 E[(D−e)Y|X]=e(1−e)(m1−m0)이다. 이진 D의 조건부 분산은 e(1−e)이다. FWL 비율 E[RY]/E[R²]를 X에 대해 평균내면 가중치는 P(X)e(1−e)의 정규화 값이다.

Within strata with both arms positive, use E[DY|X]=e m1 and E[Y|X]=e m1+(1−e)m0, then subtract eE[Y|X]. Binary D has conditional variance e(1−e). Averaging the numerator and denominator in the FWL ratio produces normalized weights P(X)e(1−e).

51. 정확 예측과 인과 효과Exact prediction versus a causal effect

관측 표에서 Y=D가 항상 성립하여 Y를 D로 완벽히 예측한다. D도 공정 이진인 첫 구조 Y=D와 U가 공정 이진이며 D=U, Y=U인 구조를 비교하라. 관측 분포와 D개입 효과는 같은가?

Observed Y=D almost surely gives perfect prediction. Compare a first structure with fair binary D and Y=D with a second structure with fair binary U, D=U, Y=U. Are the observed law and the effect of intervening on D the same?

풀이와 확인할 이유Solution and explanation

두 구조 모두 (D, Y)=(0, 0), (1, 1)을 각각 1/2로 관측한다. 첫 구조에서 D개입은 Y를 1만큼 바꾸지만 둘째에서는 U를 고정하고 D만 바꿔도 Y가 바뀌지 않아 효과 0이다. 완벽한 예측과 같은 관측 분포만으로 방향이나 인과 효과가 정해지지 않는다.

Both observe (0, 0) and (1, 1) with probability half. Intervening on D changes Y by one in the first structure, but leaves U and Y unchanged in the second, whose effect is zero. Perfect prediction and observational equivalence do not determine causal direction or effect.

52. 공분산 제약을 제곱식에서 유도Derive the covariance bound from a variance quadratic

평균 0 U, V의 유한 분산은 v>0, w≥0이고 공분산은 c이다. 모든 실수t에서 Var(V−tU)≥0를 이용해 c²≤vw를 증명하라.

Mean-zero U, V have finite variances v>0, w≥0 and covariance c. Use Var(V−tU)≥0 for every real t to prove c²≤vw.

풀이와 확인할 이유Solution and explanation

분산 이차식은 w−2tc+t²v이다. t=c/v를 대입하면 w−c²/v≥0이므로 양수v를 곱해 결론을 얻는다. v=0인 경계는 별도로 U=0이 확률 1이라 c=0이다. 실습의 PSD 거절은 이 필요조건을 정확히 검사한다.

The quadratic is w−2tc+t²v. At t=c/v it gives w−c²/v≥0, hence c²≤vw. If v=0, mean-zero U vanishes almost surely and c=0. The PSD input check enforces this necessary moment condition.

53. 비유일 계수의 유일한 선형 대비An identified linear contrast of nonunique coefficients

전체 계수 해가 (b0, bD, bM)=(0, 7−2t, t), t∈R이다. bD+2bM과 bD+bM의 식별 여부를 구하고 일반 대비lᵀb의 유일성 조건을 적어라.

The full coefficient family is (0, 7−2t, t), t∈R. Are bD+2bM and bD+bM identified? State the general condition for uniqueness of lᵀb.

풀이와 확인할 이유Solution and explanation

첫 대비는 항상 7로 유일하고 둘째는 7−t여서 비유일하다. 일반적으로 모든 영공간 방향v_j에 대해 lᵀv_j=0이면 대비가 일정하다. 하나라도 0이 아니면 그 자유모수를 바꿔 대비를 바꿀 수 있다. 계수 자체의 비유일성과 목적 대비의 식별을 구별한다.

The first contrast is always seven; the second is 7−t. Generally lᵀb is unique iff lᵀv_j=0 for every nullspace direction. Otherwise varying a free parameter changes the contrast. Coefficient nonuniqueness and target-contrast identification differ.

54. 조정 편향의 층별 항등식A stratum-level adjustment discrepancy identity

관측 일치 Y=Y(D)가 성립하고, 유한한 X층의 비음수 표적 가중치는 합이 1이며 양의 표적 층에서 필요한 평균들이 존재한다. m_d(x)=E[Y(d)|D=d, X=x], μ_d(x)=E[Y(d)|X=x]라 하자. 표준화 관측 차이와 표적 잠재 차이의 차이를 두 잠재 평균 선택 항으로 분해하라.

Assume consistency Y=Y(D) and nonnegative target weights summing to one on finitely many X strata. On target support, let m_d(x)=E[Y(d)|D=d, X=x] and μ_d(x)=E[Y(d)|X=x], with all needed means defined. Decompose standardized observed contrast minus the target potential contrast.

풀이와 확인할 이유Solution and explanation

층별 차이의 차이는 (m1−m0)−(μ1−μ0)=(m1−μ1)−(m0−μ0)이다. 따라서 전체 차이는 Σw[(m1−μ1)−(m0−μ0)]이다. 두 선택 항이 각각 0이면 조정이 맞지만, 관측 자료는 빠진 잠재 평균 μ를 일반적으로 알려주지 않는다. 우연한 상쇄도 평균 교환 가정 전체를 입증하지 않는다.

Subtract within each stratum to obtain (m1−μ1)−(m0−μ0), then average with w. Both terms vanish under the relevant mean exchangeability conditions. Missing potential means are not generally observed, and accidental cancellation does not establish the full assumption.

55. 새 표적의 관측 지지집합Support for a new target

관측 자료에는 X=A, B만 있고 새 정책 표적은 A비중 1/2, C비중 1/2이다. C에 대한 추가 결과·교환·외삽 가정 없이 관측 A, B셀 표준화만으로 새 표적 효과를 구할 수 있는가?

Observed data contain only X=A, B, but a new policy target weights A half and C half. Can standardizing observed cells identify the new effect without additional C data or transport/extrapolation assumptions?

풀이와 확인할 이유Solution and explanation

C의 양의 표적 비중에 필요한 두 잠재 평균을 자료가 제공하지 않는다. B의 평균으로 C를 대체하면 외삽 가정을 추가한다. 관측 지지집합 안의 양수성과 새 표적으로 옮기는 지원 조건을 함께 확인해야 한다. 없는 C를 목록에서 지우고 재정규화하면 다른 표적을 만든다.

The data do not supply C’s needed potential means. Substituting B adds extrapolation. Check both within-data positivity and support for transport. Dropping C and renormalizing would change the target.

56. 조건부 비교와 M개입Conditioning versus intervening on M

가정 구조 M=2D+U, Y=D+3M+V에서 D~Bernoulli(p), 0<p<1이고 U,V는 유한 이차모멘트를 가지며 D와 독립이지만 Var(U)=1, Cov(U,V)=1이다. 왜 M 고정 개입의 D 효과 1과 관측 M 조건부 투영 D 계수 −1이 다를 수 있는가?

For M=2D+U, Y=D+3M+V, D~Bernoulli(p), 0<p<1, is independent of U, V, which have finite second moments, but Var(U)=1, Cov(U,V)=1. Why can the controlled intervention effect one differ from the adjusted projection coefficient −1?

풀이와 확인할 이유Solution and explanation

개입으로 M을 고정하면 구조의 M방정식을 바꾸고 같은 V아래 D만 비교하여 1이 남는다. 관측 M을 같게 조건지으면 D가 큰 경우 U=M−2D가 작아지고 U와 관련된 V구성도 바뀐다. 그 선택 항으로 회귀 계수는 1−2=−1이 된다. 조건부 관측 연산과 방정식을 바꾸는 개입은 다르다.

Intervening on M replaces its equation and compares D with the same V, giving one. Conditioning on observed M forces U=M−2D to shift with D, and correlated V composition shifts too. The projection coefficient becomes 1−2=−1. Conditioning and intervening are different operations.

57. 전체 효과와 직접 효과의 차이Difference between total and direct effects

선형 구조 M=αD+U, Y=βD+γM+V에서 두 효과는 τtotal=β+γα, τdirect=β이다. 두 효과가 같은 필요충분조건과 각자의 부호가 다른 예를 주어라.

For M=αD+U, Y=βD+γM+V, total effect is β+γα and controlled direct effect β. Give the necessary and sufficient equality condition and an example of opposite signs.

풀이와 확인할 이유Solution and explanation

차이는 γα이므로 같을 필요충분조건은 γα=0이다. 예를 들어 β=1, α=1, γ=−3이면 직접 효과 1은 양수지만 전체 효과−2는 음수이다. 어떤 효과를 묻는지 정하지 않고 통제계수의 방향을 평가하면 질문이 바뀔 수 있다.

They agree exactly when γα=0. With β=1, α=1, γ=−3, direct effect is positive one while total effect is negative two. Specify the estimand before evaluating the sign of an adjusted coefficient.

58. 절사된 집단 밖 효과의 유계 범위Bounds for effects outside a trimmed target

원 표적 중 비율r=1/2가 남고 그 집단 평균 효과는 1이라고 알려져 있다. 버린 집단의 평균 효과는[−10, 10]안이라는 가정만 둔다. 원 ATE의 날카로운 범위를 구하고 절사 ATE와 구별하라.

Half the original target is retained with mean effect one. Assume only that the discarded group’s mean effect lies in [−10, 10]. Find sharp bounds for original ATE and distinguish the retained effect.

풀이와 확인할 이유Solution and explanation

원 ATE는 r×1+(1−r)τdiscarded이다. 따라서 하한은 1/2−5=−9/2, 상한은 1/2+5=11/2이다. 버린 평균이 각 끝점이면 범위끝이 달성되어 이 정보에서 날카롭다. 절사 집단의 효과 1만으로 원효과도 1이라고 결론낼 수 없다.

Original ATE is 1/2+(1/2)τdiscarded, giving [−9/2, 11/2]. The endpoints are attained when the discarded mean hits its allowed endpoints, so the bounds are sharp for the given information. Retained effect one does not determine the original effect.

59. 상호작용을 추가하면 직접 효과도 달라진다An interaction changes the direct effect

M=αD+U, Y=βD+γM+λDM+V이고 E[U]=0, 유한 평균이라고 하자. M=m고정 직접 효과와 D를 0에서 1로 바꿀 때의 평균 전체 효과를 구하라. 이 장의 λ=0공식을 그대로 써도 되는가?

Let M=αD+U, Y=βD+γM+λDM+V with E[U]=0 and finite means. Find the direct effect fixing M=m and the mean total effect from changing D zero to one. Can the chapter’s λ=0 formulas be reused unchanged?

풀이와 확인할 이유Solution and explanation

M고정 직접 효과는 β+λm이다. 같은 U, V에서 전체변화는 β+γα+λα+λU이므로 평균은 β+γα+λα이다. λ=0인 실습에서는 직접 효과가 m과 무관했지만 이 확장에서는 달라진다. 상호작용을 추가했다면 구조·추정 대상·공식도 함께 바꿔야 한다.

Fixing M gives direct effect β+λm. The same-unit total change is β+γα+λα+λU, whose mean is β+γα+λα. The no-interaction lab had an m-invariant direct effect; this extension does not. Update the structure, estimand and formulas together.

60. 최종 통제 선택 보고A final control-selection report

실제 국가의 동년 실업률, NSW의 nodegree, 점포의 이전 FTE 범주를 각각 통제로 사용한 관측 조정표를 보고한다. 예측·표준화·인과 효과·매개/충돌 반례의 주장을 어떻게 분리할지 설명하라.

Report observed adjusted tables using same-year country unemployment, NSW nodegree and stores’ baseline FTE category. Explain how to separate prediction, standardization, causal-effect claims and assumed mediator/collider examples.

풀이와 확인할 이유Solution and explanation

먼저 결과 단위·원자료 빈티지·통제와 처치의 시점·같은 가용 집합과 표적 가중치를 적는다. 표의 관측 표준화값과 인과 효과를 구별하고, 각 통제가 선행 공통 원인인지 등을 정당화할 외부 근거를 밝힌다. NSW 실험 출처의 부분표 조건은 유지하되 역사적 층별 추첨을 지어내지 않는다. 가정한 매개·충돌 모형의 계수와 화살표를 실제 나라·개인·점포에서 검증된 구조로 옮기지 않는다.

State units, vintage, timing, common available rows and target weights. Separate observed standardization from causal effects and provide outside evidence for each control’s proposed role. Retain the NSW experimental-source subset condition without inventing historical stratified assignment. Do not transfer assumed mediator/collider parameters or arrows into verified structures for actual countries, people or stores.

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