METR-12 · ECONOMETRICS

회귀불연속·대역폭·연속성 가정Regression discontinuity, bandwidths and continuity

장학금 문턱에서 시작해 국소 회귀·이산 점수·인과 해석의 조건까지From a scholarship threshold to local regression, discrete scores and conditions for causal interpretation

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

기초Foundations

1. 59점과 60점 사이에 무엇이 달라질까1. What changes between scores 59 and 60?

학교가 시험 60점 이상인 학생에게 장학금을 준다고 가정해 봅시다. 59점과 60점은 시험 성적이 가깝지만 장학금 배정은 0에서 1로 달라집니다. 다음 학기의 출석이나 성적이 문턱에서 갑자기 달라지는지 묻는 것이 출발점입니다. 여기의 학교·학생·효과는 설명을 위한 가정이며 실제 조사 결과가 아닙니다.

그렇다고 60점 학생과 59점 학생의 나머지 조건까지 같아지는 것은 아닙니다. 시험 점수 자체, 공부 습관, 가정 환경이 다음 성적과 관련될 수 있습니다. 회귀불연속 설계는 그 모든 차이가 없다고 선언하지 않고, 장학금이 없었을 때의 평균 결과가 문턱에서 갑자기 뛰지 않는다는 조건을 검토합니다. 아주 가까운 점수의 차이와 배정의 갑작스러운 차이를 구분하는 장입니다.

Imagine a school awards a scholarship at an exam score of at least 60. Scores 59 and 60 are close, but assignment changes from zero to one. We ask whether a later outcome, such as attendance, also changes abruptly at that threshold. This school, its students and its effects are assumed for explanation, not measured survey results.

Nearby scores do not automatically make every other condition identical. Study habits, family circumstances and the score itself may predict later performance. A regression discontinuity design examines whether the average outcome without the scholarship would change smoothly at the threshold. Distinguish a small change in score from an abrupt change in assignment.

기초Foundations

2. 점수·배정·실제 수혜·결과를 네 칸으로2. Separate score, assignment, receipt and outcome

X는 장학금 배정 전에 기록한 시험 점수, c=60은 문턱입니다. Z는 규칙에 따라 장학금 대상으로 배정되었는지, D는 실제로 장학금을 받았는지입니다. Y는 그 뒤 관찰한 출석일 수라고 합시다. 점수가 높다는 사실과 장학금을 받았다는 사실, 출석이 많다는 사실은 서로 다른 변수입니다.

배정받아도 신청하지 않거나 행정상 예외가 있으면 Z와 D가 다를 수 있습니다. 반대로 장학금 수혜가 점수 규칙과 완전히 일치하면 D=Z인 sharp RD입니다. 수혜 확률만 문턱에서 변하면 fuzzy RD가 됩니다. 처음부터 Y를 수혜 여부라고 이름 붙이거나, 배정과 수혜가 다름을 숨기면 어떤 효과를 추정하는지도 모호해집니다.

Zi=1{Xi≥c},Di∈{0,1},Yi=later outcomeZ_i=\mathbf 1\{X_i\ge c\},\qquad D_i\in\{0,1\},\qquad Y_i=\text{later outcome}

Let X be the exam score recorded before assignment, with cutoff c=60. Z indicates eligibility under the rule, D indicates actual receipt, and Y is a later number of attendance days. A high score, receipt of money and high attendance are different variables.

An eligible student might not apply, and administrative exceptions may occur. If actual receipt exactly follows assignment, D=Z and the design is sharp RD. If only the probability of receipt changes at the threshold, it is fuzzy RD. Keeping these four columns distinct clarifies which change the analysis can describe.

Zi=1{Xi≥c},Di∈{0,1},Yi=later outcomeZ_i=\mathbf 1\{X_i\ge c\},\qquad D_i\in\{0,1\},\qquad Y_i=\text{later outcome}
기초Foundations

3. 한 점과 1%포인트의 단위를 읽는다3. Read the units of a point and a percentage point

문턱까지의 거리는 X−c입니다. 시험 점수 59이면 −1점, 62이면 +2점입니다. 선거에서 민주당의 득표 차이가 −0.5%포인트라면 아주 조금 패배한 것이며, +0.5%포인트면 조금 승리한 것입니다. 0.5%포인트를 득표율의 0.5% 증가와 혼동하지 않습니다. 점수의 단위가 바뀌면 대역폭의 단위도 함께 바꿉니다.

이 실습은 X<c를 왼쪽, X≥c를 오른쪽으로 분류합니다. 따라서 시험 60점은 오른쪽입니다. 실제 제도의 동점 처리 규칙은 별도로 확인해야 하며, 모든 선거의 동점을 이 규칙으로 처리했다고 주장하는 것은 아닙니다. 실제 상원 선택 자료에는 차이 0인 행이 없습니다. 이후 그래프에서는 선을 그을 위치와 행의 소속을 같은 규칙으로 읽으세요.

ui=Xi−ch,Xi=c ⟹ right sideu_i=\frac{X_i-c}{h},\qquad X_i=c\ \Longrightarrow\ \text{right side}

Distance from the threshold is X−c. A score of 59 is one point below 60; 62 is two points above. In an election, a Democratic margin of −0.5 percentage points indicates a narrow loss and +0.5 a narrow win. Percentage points differ from a percentage increase in a vote share. Changing score units requires changing bandwidth units too.

The lab classifies X<c as left and X≥c as right, so a score exactly 60 belongs on the right. A real institution’s tie rule still needs separate verification. We do not claim every tied election follows this rule; the retained Senate table contains no zero-margin row. Apply one consistent convention to the graph and data rows.

ui=Xi−ch,Xi=c ⟹ right sideu_i=\frac{X_i-c}{h},\qquad X_i=c\ \Longrightarrow\ \text{right side}
기초Foundations

4. 점을 먼저 보고 선은 나중에4. Inspect records before drawing a fitted line

가로축은 배정에 쓰인 점수, 세로축은 나중 결과입니다. 한 점은 어떤 단위의 관찰인지부터 확인하세요. 학생 한 명인지, 같은 점수 학생들의 평균인지, 한 주의 선거인지가 다릅니다. 평균 점을 그린다면 그 점이 몇 명 또는 몇 건을 요약하는지 함께 보여야 합니다. 빈 구간에 관측값 0을 만들어 넣으면 안 됩니다.

문턱 양쪽의 평균 점을 연결하는 꺾은선은 자동으로 인과효과를 나타내지 않습니다. 점을 묶는 구간 수와 회귀를 맞추는 대역폭도 서로 다른 선택입니다. 그래프의 세로축 범위를 바꾸면 같은 차이도 커 보이거나 작아 보입니다. 원관측, 구간 평균, 국소 회귀선을 구분하고 수치 표와 함께 판단하는 습관을 갖습니다.

Place the assignment score on the horizontal axis and the later outcome vertically. First ask what one point represents: a student, an average of students sharing a score, or an election. An averaged point should show its number of underlying records. An empty score interval is missing evidence, not an observed zero.

A line joining averages is not automatically a causal effect. Plot-bin choices differ from the bandwidth used for regression, and axis limits change visual impressions. Keep individual records, binned means and local fitted curves distinguishable, and read the accompanying numbers as well as the picture.

기초Foundations

5. 같은 학생에게 두 결과가 있다는 생각5. Two potential outcomes for one student

한 학생에게 장학금을 주었을 때의 출석일 수를 Y(1), 주지 않았을 때를 Y(0)이라고 상상합니다. 두 수의 차이가 그 학생에게 미치는 효과입니다. 실제로는 같은 학생·같은 시기에 두 상태를 함께 관찰할 수 없습니다. 예를 들어 장학금을 받은 학생의 출석 18일만 보고, 받지 않았다면 13일이었을 것이라고 알 수는 없습니다.

실습의 가상 곡선에서는 두 세계를 모두 입력할 수 있으므로 효과와 배경 차이를 따로 볼 수 있습니다. 실제 사례 파일에는 그런 반사실 결과 열을 만들어 넣지 않습니다. 실제 자료에서 두 세계를 연결하는 논리는 관측된 열 외에 추가로 필요한 가정입니다. 누가 관측되었고 무엇이 가정되었는지를 계속 표시하는 이유입니다.

Yi=(1−Di)Yi(0)+DiYi(1),τi=Yi(1)−Yi(0)Y_i=(1-D_i)Y_i(0)+D_iY_i(1),\qquad \tau_i=Y_i(1)-Y_i(0)

Imagine a student’s attendance with a scholarship, Y(1), and without it, Y(0). Their difference is an individual effect. We cannot observe both for the same student at the same time. Seeing 18 attendance days after receipt does not reveal that the student would otherwise have attended 13 days.

The assumed-curve lab lets you enter both worlds to separate an effect from a background jump. Actual case files do not fabricate counterfactual outcome columns. Connecting the two worlds in real evidence requires assumptions beyond observed columns. Keep observations and assumptions visibly distinct.

Yi=(1−Di)Yi(0)+DiYi(1),τi=Yi(1)−Yi(0)Y_i=(1-D_i)Y_i(0)+D_iY_i(1),\qquad \tau_i=Y_i(1)-Y_i(0)
기초Foundations

6. 관측된 도약에는 두 원인이 섞일 수 있다6. An observed jump can mix two causes

문턱 바로 아래에서 장학금이 없을 때 평균 출석이 10일, 바로 위에서도 없었을 때 10일이라고 가정합시다. 장학금 효과가 5일이면 관측되는 오른쪽 평균은 15일이라 도약은 5일입니다. 그런데 문턱 위에 다른 지원이 함께 시작되어 장학금이 없어도 13일이었다면, 관측 오른쪽은 18일이고 도약은 8일입니다.

따라서 관측 도약 8일만으로 장학금 효과가 8일이라고 단정할 수 없습니다. 효과 5일에 배경 도약 3일이 섞였을 수 있습니다. baselineLeft와 baselineRight는 실습에서 가정한 무처치 평균의 두 한계값입니다. 실제 관측으로 무처치 오른쪽 한계값을 직접 확인한 것처럼 읽지 마세요. 연속성 조건은 바로 이 배경 도약을 0으로 두는 식별 전제입니다.

μ1(c+)−μ0(c−)⏟observed jump=μ1(c+)−μ0(c+)⏟effect at the cutoff+μ0(c+)−μ0(c−)⏟baseline jump\underbrace{\mu_1(c^+)-\mu_0(c^-)}_{\text{observed jump}}=\underbrace{\mu_1(c^+)-\mu_0(c^+)}_{\text{effect at the cutoff}}+\underbrace{\mu_0(c^+)-\mu_0(c^-)}_{\text{baseline jump}}

Assume mean attendance without the scholarship approaches 10 days from both sides. An effect of five days gives an observed right limit of 15, so the jump is five. If another support program starts at the same threshold and the right-side no-scholarship limit is instead 13, the observed right limit becomes 18 and the jump is eight.

The eight-day observed jump need not be an eight-day scholarship effect: it may combine an effect of five with a background jump of three. In the lab, baselineLeft and baselineRight are assumed no-treatment limits, not two counterfactual limits directly observed in actual records. Continuity eliminates that background jump as an identifying assumption.

μ1(c+)−μ0(c−)⏟observed jump=μ1(c+)−μ0(c+)⏟effect at the cutoff+μ0(c+)−μ0(c−)⏟baseline jump\underbrace{\mu_1(c^+)-\mu_0(c^-)}_{\text{observed jump}}=\underbrace{\mu_1(c^+)-\mu_0(c^+)}_{\text{effect at the cutoff}}+\underbrace{\mu_0(c^+)-\mu_0(c^-)}_{\text{baseline jump}}
기초Foundations

7. 가까운 몇 명의 평균과 극한은 다르다7. A nearby-window average is not a limit

문턱을 0으로 옮긴 점수 −2,−1,1,2를 생각합시다. 장학금이 없을 때 출석 평균을 10+2x, 오른쪽 장학금 효과를 5로 가정하면 관측값은 6,8,17,19입니다. 왼쪽 평균은 7, 오른쪽 평균은 18이라 단순 차이는 11입니다. 실제로 가정한 효과 5와 다른 이유는 오른쪽 학생들의 점수 자체가 더 높기 때문입니다.

반면 왼쪽 두 점으로 직선을 연장하면 문턱에서 10, 오른쪽 두 점으로 연장하면 15입니다. 두 절편의 차이는 5입니다. 이 예에서는 직선 가정이 정확해서 성공했지만, 현실의 평균 관계가 휘어지면 연장의 오차가 생깁니다. 표본을 문턱 가까이 제한하는 대역폭과 국소 회귀가 필요한 이유이며, 직선을 그렸다는 사실만으로 그 가정이 검증되지는 않습니다.

가정한 네 관찰과 같은 문턱의 비교
중심 점수 x관측 Y배정 Z
-260
-180
1171
2191

Center scores at zero and take −2, −1, 1 and 2. Suppose no-treatment mean attendance is 10+2x and treatment adds five on the right. Observed values are 6, 8, 17 and 19. Left and right averages are seven and eighteen, giving a raw difference of eleven rather than the assumed effect of five. The right group also has higher scores.

Extrapolating a line through each side to the cutoff gives intercepts ten and fifteen, with difference five. This succeeds because the assumed relations really are linear. Curvature creates approximation error in a real application. Bandwidths and local regression address that problem; drawing a line does not itself verify the approximation.

Four assumed observations and one common cutoff
Centered score xObserved YAssignment Z
-260
-180
1171
2191
기초Foundations

8. 실습 A · 효과와 배경 도약을 따로 바꾼다8. Lab A · Change effect and background separately

먼저 왼쪽 무처치 절편 10, 오른쪽 무처치 절편 10, 효과 5를 입력합니다. 관측 도약 5를 손으로 예측한 뒤 실행하세요. 다음에는 오른쪽 무처치 절편만 13으로 바꾸고 도약 8을 확인합니다. 효과는 그대로인데 관측 도약이 달라진 이유를 자신의 말로 설명합니다. 마지막에는 효과를 0, 배경 도약을 3으로 두어도 관측 도약이 남는지 보세요.

기울기와 곡률을 바꾸면 점들이 그리는 모양은 달라져도, 절편을 고정한 경우 문턱의 극한 도약은 그대로입니다. 문턱에서의 값과 넓은 구간의 평균은 같은 질문이 아닙니다. 그림을 설명할 때 “가정한 곡선에서”라는 조건을 붙이고, 실제 사례의 관측 열만으로 그 모든 곡선을 알아냈다고 쓰지 않습니다.

Begin with left and right no-treatment intercepts ten and effect five. Predict an observed jump of five before running. Change only the right no-treatment intercept to thirteen and check a jump of eight. Explain why the jump changes while the effect stays fixed. Finally set the effect to zero and the baseline jump to three: can an observed jump remain?

Changing slopes and curvature changes the plotted shape, but not the cutoff limits if intercepts remain fixed. A limit at the threshold and an average over a wide interval answer different questions. Describe the output as a result under assumed curves, rather than claiming actual observed columns reveal all counterfactual curves.

기초Foundations

9. 문턱에 다가간다는 말의 뜻9. What does approaching the threshold mean?

점수 60 바로 아래의 평균을 알고 싶다고 합시다. 59, 59.9, 59.99처럼 왼쪽에서 더 가까워지는 값을 생각합니다. 이때 평균 결과가 어느 수에 가까워지면 그것이 왼쪽 극한입니다. 오른쪽에서는 61, 60.1, 60.01처럼 접근합니다. 실제 표본에 이런 점수가 모두 있다는 뜻은 아니며, 모집단의 조건부 평균 관계를 설명하는 수학입니다.

시험 점수가 정수만 가능하면 59와 60 사이에 새 점수를 계속 만들 수 없습니다. 같은 59점 학생을 만 명 더 모아도 59.99점 관측이 생기지는 않습니다. 이산 점수 사례에서 관측 수와 문턱까지의 거리·서로 다른 점수의 수를 함께 보여야 하는 이유입니다. 컴퓨터가 부드러운 선을 그려도 실제 지원점이 촘촘해진 것은 아닙니다.

μY(c−)=lim⁡x↑cE[Y∣X=x],μY(c+)=lim⁡x↓cE[Y∣X=x]\mu_Y(c^-)=\lim_{x\uparrow c}\mathbb E[Y\mid X=x],\qquad \mu_Y(c^+)=\lim_{x\downarrow c}\mathbb E[Y\mid X=x]

To describe the mean just below 60, imagine scores 59, 59.9 and 59.99 approaching from the left. If the conditional mean approaches a number, that is its left limit. From the right consider 61, 60.1 and 60.01. These sequences describe a population mean function; a finite sample need not contain every proposed score.

If scores can only be integers, no sequence of actual possible scores fills the gap between 59 and 60. Ten thousand more students scoring 59 do not create an observation at 59.99. Count observations, distinct score values and nearest distances separately. A smooth computer-drawn curve does not make the observed support dense.

μY(c−)=lim⁡x↑cE[Y∣X=x],μY(c+)=lim⁡x↓cE[Y∣X=x]\mu_Y(c^-)=\lim_{x\uparrow c}\mathbb E[Y\mid X=x],\qquad \mu_Y(c^+)=\lim_{x\downarrow c}\mathbb E[Y\mid X=x]
기초Foundations

10. 무엇이 연속이어야 할까10. Which function must be continuous?

장학금이 없었을 때 평균 출석을 μ0(x), 있었을 때를 μ1(x)라고 합시다. 연속성은 x가 문턱에 접근할 때 각 곡선이 갑자기 뛰지 않는다는 조건입니다. 모든 학생의 출석일 수가 똑같아야 한다거나, 개별 학생 효과가 모두 같아야 한다는 조건이 아닙니다. 개인차가 커도 두 조건부 평균이 문턱에서 매끄럽게 이어질 수 있습니다.

관측된 평균 μY(x)는 장학금 때문에 문턱에서 뛰어도 됩니다. 우리가 찾는 신호가 바로 그 도약입니다. 따라서 “RD에서는 Y가 연속이어야 한다”라고 쓰면 무엇을 가정하는지 잘못 전달합니다. 연속이어야 하는 것은 적절한 반사실 평균이며, 관측 평균의 도약은 그 전제 아래 효과로 해석합니다. 동일한 문턱의 다른 제도가 반사실 평균에 도약을 만들 수 있는지도 살핍니다.

μd(x)=E[Y(d)∣X=x],lim⁡x→cμd(x)=μd(c),d∈{0,1}\mu_d(x)=\mathbb E[Y(d)\mid X=x],\qquad \lim_{x\to c}\mu_d(x)=\mu_d(c),\quad d\in\{0,1\}

Write μ0(x) for mean attendance without the scholarship and μ1(x) with it. Continuity requires each potential-outcome mean to have no jump at the threshold. It does not require identical students or identical individual effects. Considerable individual variation can coexist with smooth conditional means.

The observed mean μY(x) may jump because of treatment; that is the signal under study. Saying “Y must be continuous in RD” confuses the observed outcome relationship with potential-outcome assumptions. It is the appropriate counterfactual means that must connect smoothly. Ask whether another policy at the same threshold could instead make them jump.

μd(x)=E[Y(d)∣X=x],lim⁡x→cμd(x)=μd(c),d∈{0,1}\mu_d(x)=\mathbb E[Y(d)\mid X=x],\qquad \lim_{x\to c}\mu_d(x)=\mu_d(c),\quad d\in\{0,1\}
학부Undergraduate

11. 관측 평균의 차이가 효과가 되는 증명11. Derive the sharp RD interpretation

sharp RD에서는 왼쪽이 실제 무처치이므로 관측 평균이 μ0(x), 오른쪽이 실제 처치이므로 μ1(x)입니다. 오른쪽 관측 극한에서 왼쪽 관측 극한을 뺍니다. 두 잠재결과 평균이 c에서 연속이면 그 차이는 μ1(c)−μ0(c)가 됩니다. 같은 문턱 점수에서의 평균 처치 효과라는 결론은 이 순서로 나옵니다.

연속 점수에서 X=c가 나올 확률은 0일 수 있습니다. 이때 조건부 평균을 “그 점에 실제로 관측된 사람들의 평균”으로 읽지 않습니다. 근방의 평균 함수와 연속성 조건이 문턱에서의 적절한 값을 정하는 방식으로 이해합니다. 실습이 계산하는 유한한 국소 회귀 절편 차이는 이 모집단 표적의 추정·근사치이며, 표본의 정확한 산술과 표적에 가까움은 별도 문제입니다.

τSRD=lim⁡x↓cE[Y∣X=x]−lim⁡x↑cE[Y∣X=x]=μ1(c)−μ0(c)=E[Y(1)−Y(0)∣X=c].\begin{aligned}\tau_{\mathrm{SRD}}&=\lim_{x\downarrow c}\mathbb E[Y\mid X=x]-\lim_{x\uparrow c}\mathbb E[Y\mid X=x]\\&=\mu_1(c)-\mu_0(c)=\mathbb E[Y(1)-Y(0)\mid X=c].\end{aligned}

In sharp RD, the observed mean equals μ0(x) on the left because those units are untreated, and μ1(x) on the right because they are treated. Subtract the left observed limit from the right. Continuity of both potential-outcome means at c turns that difference into μ1(c)−μ0(c), the average treatment effect at that common score.

With a continuous score, the event X=c can have probability zero. Do not read its conditional mean as the average of people literally observed at exactly that score. A suitable version of the conditional mean is defined through nearby behavior and continuity. The lab’s finite local-regression intercept contrast approximates this population target; exact sample arithmetic does not establish its statistical accuracy.

τSRD=lim⁡x↓cE[Y∣X=x]−lim⁡x↑cE[Y∣X=x]=μ1(c)−μ0(c)=E[Y(1)−Y(0)∣X=c].\begin{aligned}\tau_{\mathrm{SRD}}&=\lim_{x\downarrow c}\mathbb E[Y\mid X=x]-\lim_{x\uparrow c}\mathbb E[Y\mid X=x]\\&=\mu_1(c)-\mu_0(c)=\mathbb E[Y(1)-Y(0)\mid X=c].\end{aligned}
학부Undergraduate

12. 문턱의 효과를 모두의 효과로 넓히지 않는다12. A cutoff effect is not everyone’s effect

장학금이 60점 학생에게 출석 5일의 효과를 가져도 30점 학생이나 95점 학생에게 같은 효과라고 알 수는 없습니다. 효과가 점수에 따라 달라질 수 있기 때문입니다. 전국 평균 효과를 구하려면 다른 점수대의 효과와 그 점수대의 인구 비중까지 알아야 합니다. 문턱 근처에서 설계가 설득력 있다는 사실만으로 전체 평균 효과가 따라오지 않습니다.

또 “당선 정당이 다음 선거에서 얻는 이점”과 “특정 정치인 개인이 다시 출마했을 때의 이점”은 다릅니다. 실제 상원 사례의 결과는 정당 득표율이며 후보자가 바뀔 수도 있습니다. 원자료의 관측 단위와 결과 변수를 읽고 표적을 정해야 합니다. 말하기 쉬운 표적을 자료가 뒷받침하는 표적과 바꾸어 쓰지 않습니다.

τ(c)=E[Y(1)−Y(0)∣X=c]need not equalE[Y(1)−Y(0)]\tau(c)=\mathbb E[Y(1)-Y(0)\mid X=c]\quad\text{need not equal}\quad \mathbb E[Y(1)-Y(0)]

A five-day scholarship effect at score 60 does not establish the same effect at 30 or 95. Effects may vary with score. A national average would require effects elsewhere and the population weights of those scores. A credible comparison near one cutoff does not automatically deliver a population average treatment effect.

Likewise, a winning party’s advantage at a later election differs from a particular politician’s personal reelection advantage. Our Senate outcome is a party vote share, and the candidate may change. Define the target using the actual observational unit and outcome rather than substituting a more convenient verbal claim.

τ(c)=E[Y(1)−Y(0)∣X=c]need not equalE[Y(1)−Y(0)]\tau(c)=\mathbb E[Y(1)-Y(0)\mid X=c]\quad\text{need not equal}\quad \mathbb E[Y(1)-Y(0)]
학부 심화 · 선택Advanced undergraduate · optional

13. 점수로 나뉘는데 왜 비교할 수 있을까13. How can comparison work when scores determine treatment?

장학금 규칙이 정확하면 점수 59.9에서는 처치 확률 0, 60.1에서는 1입니다. 같은 점수에서 처치와 무처치를 함께 볼 수 있다는 일반적인 겹침 조건은 성립하지 않습니다. 그래서 단순히 여러 설명 변수를 통제하면 해결되는 문제가 아닙니다. RD는 문턱으로 다가가는 서로 다른 점수의 한계값을 연속성으로 연결합니다.

“문턱 근처니까 무작위다”라는 말을 그 증명 대신 사용할 수 없습니다. 작은 유한 구간 전체에서 배정이 무작위처럼 작동하고, 점수의 직접 영향이 무시된다는 국소 무작위화 접근은 별도의 더 강한 조건을 씁니다. 구간 평균 차이를 그런 설계의 효과로 해석할 수는 있지만, 연속성만 가정한 극한 효과와 표적·전제가 같지는 않습니다.

Pr⁡(D=1∣X=x)=1{x≥c}in a sharp design\Pr(D=1\mid X=x)=\mathbf1\{x\ge c\}\quad\text{in a sharp design}

Under the exact scholarship rule, treatment probability is zero at 59.9 and one at 60.1. The usual overlap condition—both treatment states possible at one score—fails. This is not repaired merely by adding controls. RD connects limiting means from different scores through continuity at the threshold.

“Close to the threshold means random” is not a substitute for that argument. Local randomization over a finite window uses separate, stronger conditions on assignment and on the score’s direct role in outcomes. Its window-average target may be useful, but it differs from a continuity-based limit target and requires its own justification.

Pr⁡(D=1∣X=x)=1{x≥c}in a sharp design\Pr(D=1\mid X=x)=\mathbf1\{x\ge c\}\quad\text{in a sharp design}
학부Undergraduate

14. 문턱 점수를 정밀하게 바꿀 수 있다면14. What if the score can be manipulated?

학생이나 담당자가 장학금 기준을 알고 59점을 60점으로 고칠 수 있다면 문턱 바로 위에 특정한 사람이 몰릴 수 있습니다. 배정 규칙은 여전히 점수의 함수여도, 양쪽의 비교 가능성을 뒷받침하던 반사실 평균의 연속성이 의심됩니다. 기관의 채점·수정 절차, 규칙 발표 시점, 실제 조정 가능성을 자료와 제도로 확인해야 합니다.

점수 분포에 도약이 있는지 보는 밀도 진단은 단서이지 모든 교란을 발견하는 검사도, 연속성의 증명도 아닙니다. 정수 점수의 반복, 반올림, 작은 표본도 모양에 영향을 줍니다. 실제 배정에 사용한 점수와 연구 파일의 오차 섞인 점수가 다르면 도약이 퍼질 수도 있습니다. 이것을 설명 없이 자동으로 fuzzy RD라고 다시 이름 붙이지 않습니다.

If students or officials can change 59 into 60 after learning the rule, selected types may accumulate just above the threshold. Assignment is still a function of the recorded score, but the continuity argument becomes less credible. Investigate scoring, revision procedures, announcement timing and the practical scope for manipulation.

A density diagnostic is evidence, not a universal detector or a proof of continuity. Repeated integer scores, rounding and small samples also affect the distribution. If the researcher’s noisy score differs from the score actually used for assignment, a jump can be blurred. That problem is not automatically equivalent to an ordinary fuzzy RD design.

학부Undergraduate

15. 다른 지원·이웃의 영향·사전 결과15. Other programs, spillovers and prior outcomes

60점부터 장학금과 무료 과외가 동시에 시작하면 관측 도약은 두 지원을 합한 제도의 효과일 수 있습니다. 장학금만의 효과로 분해하려면 더 많은 근거가 필요합니다. 수혜 학생이 친구에게 교재를 빌려주는 식의 파급이 있으면 한 학생의 결과가 본인 D만으로 정해진다는 단순 잠재결과 표현도 점검해야 합니다. 무엇을 처치라고 부르는지 먼저 정합니다.

장학금 지급 전의 출석이나 부모 배경 같은 변수에서 도약이 있는지 살펴보는 것은 설계 진단에 도움이 됩니다. 유의하지 않다는 결과가 비교 가능성을 보증하지는 않습니다. 반대로 지급 뒤 공부 시간을 통제하면 장학금이 공부를 늘려 출석에 영향을 주는 경로를 잘라버릴 수 있습니다. 사전 비교 변수와 처치 이후 매개 변수를 구분하고, 보고할 분석을 사후 유의성에 맞춰 고르지 않습니다.

If scholarships and free tutoring both begin at 60, a jump may describe the combined package. Separating the scholarship alone needs more evidence. Sharing materials with classmates can also make one student’s outcome depend on others’ receipt, challenging a simple outcome indexed only by that student’s D. Define the intervention before naming its effect.

Prior attendance and parental background can provide diagnostic comparisons. A statistically insignificant imbalance does not guarantee comparability. Controlling for study time measured after receipt can instead remove a pathway through which the scholarship operates. Distinguish predetermined covariates from post-treatment mediators, and avoid selecting a reported specification just because it becomes significant.

학부Undergraduate

16. 실습 B · 행 수·거리·실제 무게를 함께 본다16. Lab B · Read counts, distances and positive weights

가정한 네 행 x=−2,−1,1,2와 Y=6,8,17,19를 씁니다. 문턱 0, 대역폭 3, 균등 커널이면 네 행의 무게가 모두 1이고 단순 평균 차이는 11입니다. 삼각 커널로 바꾸면 가까운 ±1의 무게는 2/3, 먼 ±2는 1/3입니다. 왼쪽 평균 22/3, 오른쪽 53/3, 차이 31/3을 한 칸씩 계산해 확인합니다.

삼각 커널에서 대역폭 2로 줄이면 끝점 ±2의 무게가 정확히 0이 되어 양의 무게인 행은 두 개뿐입니다. 대역폭 1이면 ±1도 끝점이 되어 비교가 정의되지 않습니다. 0을 계산한 것이 아니라 분모가 없어진 것입니다. donut을 1.5로 두고 안쪽 ±1을 빼는 경우도 시험하세요. 표본 제외가 설계를 자동으로 고치는 것은 아니며, 유효 행 수와 외삽 거리를 함께 바꿉니다.

Use the assumed records x=−2,−1,1,2 and Y=6,8,17,19. At cutoff zero, bandwidth three and a uniform kernel, all weights are one and the raw mean difference is eleven. With a triangular kernel, the nearer ±1 scores receive weight 2/3 and the farther ±2 receive 1/3. Verify means 22/3 and 53/3 and their difference 31/3.

At triangular bandwidth two, endpoint scores ±2 have exactly zero weight, leaving two positively weighted rows. At bandwidth one, even ±1 are zero-weight endpoints, so the comparison is undefined rather than zero. Also try a donut radius 1.5 that removes the inner ±1 records. Exclusion changes support and extrapolation distance; it does not automatically repair a design.

학부Undergraduate

17. 창 안에서만 작은 모형을 맞춘다17. Fit a small model only inside the window

국소 회귀는 모든 점수대에 한 직선이 정확하다고 말하지 않습니다. 먼저 문턱 주변의 범위를 정하고 그 안에서 평균 관계를 짧은 직선이나 낮은 차수 다항식으로 근사합니다. 왼쪽 학생과 오른쪽 학생은 서로 다른 계수를 갖도록 맞춥니다. 두 선을 비교하는 위치는 각 집단의 평균 점수가 아니라 같은 문턱 c입니다.

입력 행의 질량 m과 커널 K를 곱한 무게를 사용합니다. 원래 개별 행이면 보통 m=1입니다. 같은 점수의 여러 관찰을 묶었다면 m은 그 관찰 수가 될 수 있습니다. 같은 점수에서는 커널 무게도 같기 때문에 평균·빈도·withinSS를 보존한 집계는 계수뿐 아니라 전체 제곱잔차합까지 원자료와 일치시킬 수 있습니다. 집계 행 31개와 원관측 73954개를 혼동하지 않습니다.

min⁡αs,βs∑i: side(i)=smiK(ui)(Yi−αs−βsui)2,ui=Xi−chs\min_{\alpha_s,\beta_s}\sum_{i:\,\mathrm{side}(i)=s}m_iK(u_i)\bigl(Y_i-\alpha_s-\beta_su_i\bigr)^2,\qquad u_i=\frac{X_i-c}{h_s}

Local regression does not claim one line is exact over all possible scores. First choose a neighborhood, then approximate its conditional mean with a line or another low-order polynomial. Fit separate coefficients on either side. Compare them at the common cutoff, not at the two groups’ different average scores.

The observation weight multiplies a declared mass m by a kernel K. Individual records commonly have m=1; an aggregate at one score can use its frequency. Since the kernel depends only on score, retaining mean, frequency and withinSS preserves coefficients and the complete squared-error criterion. Thirty-one aggregate rows are not thirty-one original people when they summarize 73,954 records.

min⁡αs,βs∑i: side(i)=smiK(ui)(Yi−αs−βsui)2,ui=Xi−chs\min_{\alpha_s,\beta_s}\sum_{i:\,\mathrm{side}(i)=s}m_iK(u_i)\bigl(Y_i-\alpha_s-\beta_su_i\bigr)^2,\qquad u_i=\frac{X_i-c}{h_s}
학부Undergraduate

18. 한쪽을 상수로 근사하면 가중평균18. A local constant is a weighted mean

가장 단순한 국소 모형은 한쪽의 평균을 상수 a 하나로 근사하는 것입니다. 무게가 w인 제곱오차 Σw(Y−a)²를 최소화하면 a=ΣwY/Σw입니다. 분모가 양수여야 하며, 모든 행의 무게가 0이면 값을 0으로 채우지 않습니다. 같은 계산을 왼쪽과 오른쪽에서 따로 하고 두 상수의 차이를 구합니다.

앞의 네 행 −2,−1,1,2와 결과 6,8,17,19를 균등하게 쓰면 절편은 7과 18, 차이는 11입니다. 이는 올바르게 계산한 국소 상수 비교이지만, 배경 기울기 2가 있는 예의 문턱 효과 5와 다릅니다. 계산이 틀렸다는 뜻이 아니라 근사 모형과 표적 사이에 편향이 있다는 뜻입니다. 더 많은 소수 자릿수가 이 편향을 없애지는 않습니다.

α^s=∑i∈swiYi∑i∈swi,τ^0=α^+−α^−\hat\alpha_s=\frac{\sum_{i\in s}w_iY_i}{\sum_{i\in s}w_i},\qquad \hat\tau_0=\hat\alpha_+-\hat\alpha_-

The simplest local fit approximates each side by one constant a. Minimizing Σw(Y−a)² gives a=ΣwY/Σw when the denominator is positive. If all weights vanish, no constant is identified by the observations. Fit left and right separately and subtract their constants.

Uniformly weighting scores −2,−1,1,2 and outcomes 6,8,17,19 gives constants seven and eighteen, a contrast of eleven. That arithmetic is correct but differs from the five-unit cutoff effect in the sloped example. The problem is approximation bias, not an arithmetic failure that extra decimal digits would remove.

α^s=∑i∈swiYi∑i∈swi,τ^0=α^+−α^−\hat\alpha_s=\frac{\sum_{i\in s}w_iY_i}{\sum_{i\in s}w_i},\qquad \hat\tau_0=\hat\alpha_+-\hat\alpha_-
학부Undergraduate

19. 두 점으로 문턱의 높이를 구한다19. Use two points to find the height at the cutoff

왼쪽 두 점 (−2,6),(−1,8)은 x가 1 늘 때 Y가 2 늘어 기울기 2입니다. Y=a+2x에 (−1,8)을 넣으면 a=10입니다. 오른쪽 (1,17),(2,19)도 기울기 2이며 a=15입니다. 두 선의 문턱 x=0 높이 차이는 15−10=5입니다. 서로 다른 x에서의 평균을 빼지 않고 같은 x=0에서 비교했습니다.

관측이 각 쪽에 두 개이고 x가 서로 다르면 두 계수 직선이 정확히 지나갈 수 있습니다. 이 예의 잔차 0은 진짜 평균 관계가 직선이라는 증명이 아닙니다. 두 점 밖에서는 휘어지는 다른 곡선도 그 두 관측을 통과할 수 있습니다. 표본의 맞음과 문턱에서의 근사 정확도, 실제 배정의 타당성을 구분하세요.

b^−=8−6−1−(−2)=2,a^−=8−2(−1)=10,a^+=17−2(1)=15\hat b_-=\frac{8-6}{-1-(-2)}=2,\quad \hat a_-=8-2(-1)=10,\qquad \hat a_+=17-2(1)=15

The left points (−2,6) and (−1,8) rise two units in Y per unit of x, giving slope two. Substitution into Y=a+2x gives a=10. Right points (1,17) and (2,19) have slope two and intercept fifteen. Their common-cutoff height difference is five, unlike a comparison at different average scores.

Two distinct score values on each side can fit a two-parameter line exactly. A zero residual here does not establish that the true mean is linear. Other curves can pass through those observations and bend toward the cutoff. Distinguish sample fit, approximation at the threshold and the credibility of assignment.

b^−=8−6−1−(−2)=2,a^−=8−2(−1)=10,a^+=17−2(1)=15\hat b_-=\frac{8-6}{-1-(-2)}=2,\quad \hat a_-=8-2(-1)=10,\qquad \hat a_+=17-2(1)=15
학부Undergraduate

20. 중심을 옮기고 기울기의 단위를 지킨다20. Center the score and track slope units

연도가 1947인 문턱을 다룰 때 원연도 0의 절편을 해석하는 것은 쓸모가 없습니다. x=X−1947로 중심을 옮겨 x=0이 제도 문턱이 되게 합니다. a+bX를 문턱 기준으로 다시 쓰면 (a+bc)+b(X−c)입니다. 문턱의 높이는 a+bc이며 원래 좌표의 a와 다릅니다.

실습 엔진은 수치 크기를 조절하려고 u=(X−c)/h를 씁니다. α+βu를 원점수 단위로 보면 기울기는 β/h입니다. 점수 기울기 2와 h=3인 예에서는 β=6입니다. 양쪽 h가 다르면 β 자체를 바로 비교하지 말고 각 쪽 h로 나누세요. 문턱 절편 α는 같은 위치의 값이므로 좌표 변환을 올바르게 하면 유지됩니다.

a+bX=(a+bc)+b(X−c)=α+βX−ch,α=a+bc, β=bha+bX=(a+bc)+b(X-c)=\alpha+\beta\frac{X-c}{h},\qquad \alpha=a+bc,\ \beta=bh

With a threshold year 1947, an intercept at calendar year zero is not useful. Center x=X−1947 so zero means the policy threshold. Rewriting a+bX gives (a+bc)+b(X−c). The cutoff height is a+bc, not the uncentered intercept a.

The engine uses u=(X−c)/h to control numerical scale. In α+βu, the slope per original score unit is β/h. A physical slope two at h=3 is displayed as β=6. With asymmetric side bandwidths, divide each scaled slope by its own h before comparing. Correct coordinate changes preserve the common-cutoff intercept.

a+bX=(a+bc)+b(X−c)=α+βX−ch,α=a+bc, β=bha+bX=(a+bc)+b(X-c)=\alpha+\beta\frac{X-c}{h},\qquad \alpha=a+bc,\ \beta=bh
학부Undergraduate

21. 가까운 행에 더 큰 무게를 준다21. Give nearby records more weight

균등 커널은 창 안의 행에 같은 커널 무게 1을 줍니다. 삼각 커널은 u=0에서 1, |u|=1에서 0이고 그 사이를 직선으로 줄입니다. h=3이면 문턱에서 1점 떨어진 행은 2/3, 2점 떨어진 행은 1/3입니다. 자료에 행이 존재하는 것과 그 회귀에서 양의 무게를 받는 것은 다른 사실입니다.

빈도 질량 m=3인 집계 행의 최종 무게는 3K(u)입니다. 원자료 세 명의 평균을 한 사람의 관찰처럼 같은 무게로 쓰면 모형이 달라집니다. 반대로 설문 가중치나 분석상 가중치를 실제 사람 수라고 부르면 안 됩니다. 실습의 mass는 선언한 수학적 질량이고, 실제 사례에서 어떤 의미로 정했는지는 원자료·집계 표에 따로 적습니다.

Kuniform(u)=1{∣u∣≤1},Ktriangle(u)=max⁡(0,1−∣u∣),wi=miK(ui)K_{\mathrm{uniform}}(u)=\mathbf1\{|u|\le1\},\qquad K_{\mathrm{triangle}}(u)=\max(0,1-|u|),\qquad w_i=m_iK(u_i)

A uniform kernel gives weight one to records inside the window. A triangular kernel falls linearly from one at u=0 to zero at |u|=1. At h=3, a score one point away receives 2/3 and a score two points away 1/3. Presence in a file differs from positive weight in a specific fit.

An aggregate with frequency mass three has final weight 3K(u). Treating its mean as one equally weighted person changes the problem. Conversely, survey or analytic weights need not count people. The API’s mass is a declared mathematical quantity; each actual case explains whether it represents original frequency.

Kuniform(u)=1{∣u∣≤1},Ktriangle(u)=max⁡(0,1−∣u∣),wi=miK(ui)K_{\mathrm{uniform}}(u)=\mathbf1\{|u|\le1\},\qquad K_{\mathrm{triangle}}(u)=\max(0,1-|u|),\qquad w_i=m_iK(u_i)
학부 심화 · 선택Advanced undergraduate · optional

22. 계수의 해가 하나인지 먼저 묻는다22. Ask whether the coefficients are uniquely determined

한쪽에 x=−1, Y=8인 관찰만 있다고 합시다. h=3이면 직선 조건은 α−β/3=8 하나인데 미지수는 두 개입니다. (α,β)=(8,0)도 (9,3)도 같은 점을 지납니다. 자유 기울기를 임의로 0으로 두고 절편 8이 유일하다고 보고하면 안 됩니다. 엔진은 한 특정해와 모든 자유 방향을 함께 보존합니다.

행렬의 rank가 부족해도 특정 수량은 정해질 수 있습니다. 오른쪽에 문턱 x=0에서 Y=15만 관측되면 α=15지만 기울기 β는 자유입니다. 따라서 “rank가 부족하면 모든 계수가 없다”도 틀립니다. 문턱 절편이 모든 해에서 같은지 확인하고, 양쪽 절편이 모두 정해질 때만 그 차이를 보고합니다. 여기의 정해짐은 유한 근사식 안에서의 대수적 성질입니다.

Gsb^s=rs,Gs=XsTWsXs,rs=XsTWsYs,{bs:Gsbs=rs}=bs,0+Null⁡(Gs)G_s\hat b_s=r_s,\quad G_s=X_s^{\mathsf T}W_sX_s,\quad r_s=X_s^{\mathsf T}W_sY_s,\qquad \{b_s:G_sb_s=r_s\}=b_{s,0}+\operatorname{Null}(G_s)

If one side contains only x=−1,Y=8 at h=3, its equation is α−β/3=8. There are two unknowns but one restriction: both (8,0) and (9,3) fit the point. Setting the free slope to zero does not make intercept eight uniquely determined. The engine retains a particular solution and the entire nullspace family.

Rank deficiency need not make every quantity unidentified. A right-side observation exactly at x=0 with Y=15 fixes α=15 while leaving slope β free. Check whether the cutoff intercept agrees across every solution, and report a contrast only when both side intercepts do. This is algebraic identification within the declared finite approximation, not causal identification.

Gsb^s=rs,Gs=XsTWsXs,rs=XsTWsYs,{bs:Gsbs=rs}=bs,0+Null⁡(Gs)G_s\hat b_s=r_s,\quad G_s=X_s^{\mathsf T}W_sX_s,\quad r_s=X_s^{\mathsf T}W_sY_s,\qquad \{b_s:G_sb_s=r_s\}=b_{s,0}+\operatorname{Null}(G_s)
학부 심화 · 선택Advanced undergraduate · optional

23. 자료 무게가 양수여도 외삽 계수는 음수23. Positive fitting weights can give negative extrapolation weights

왼쪽 점수 −2,−1에서 문턱의 직선 절편은 −Y(−2)+2Y(−1)입니다. 주어진 두 점에 대입하면 −6+16=10입니다. 오른쪽 1,2의 절편은 2Y(1)−Y(2)=34−19=15입니다. 따라서 절편 차이는 원관측의 가중합 Y(−2)−2Y(−1)+2Y(1)−Y(2)입니다.

여기서 −2와 −1은 음수 인원이나 음수 커널 확률이 아닙니다. 관측된 점 바깥인 문턱까지 직선을 연장하는 선형계수입니다. 각 쪽 절편의 계수 합은 1이고, 그 계수로 중심 점수를 가중한 합은 0입니다. 그래서 상수와 직선을 정확히 재현합니다. 음수 계수가 큰 행은 결과가 조금 바뀌어도 절편에 큰 영향을 줄 수 있어 지지점과 레버리지를 함께 살펴봅니다.

τ^=Y(−2)−2Y(−1)+2Y(1)−Y(2),∑i∈sℓs,i=1,∑i∈sℓs,i(Xi−c)=0\hat\tau=Y(-2)-2Y(-1)+2Y(1)-Y(2),\qquad \sum_{i\in s}\ell_{s,i}=1,\quad \sum_{i\in s}\ell_{s,i}(X_i-c)=0

The line through left scores −2 and −1 has cutoff intercept −Y(−2)+2Y(−1), giving ten. Right scores one and two give intercept 2Y(1)−Y(2), equal to fifteen. The intercept contrast is therefore Y(−2)−2Y(−1)+2Y(1)−Y(2).

These negative coefficients are not negative people or kernel probabilities. They extrapolate fitted lines toward the cutoff. Each side’s intercept coefficients sum to one and their score-weighted sum is zero, reproducing constants and linear functions. Large absolute coefficients can make a cutoff fit sensitive to a few observations, so inspect support and leverage.

τ^=Y(−2)−2Y(−1)+2Y(1)−Y(2),∑i∈sℓs,i=1,∑i∈sℓs,i(Xi−c)=0\hat\tau=Y(-2)-2Y(-1)+2Y(1)-Y(2),\qquad \sum_{i\in s}\ell_{s,i}=1,\quad \sum_{i\in s}\ell_{s,i}(X_i-c)=0
학부 심화 · 선택Advanced undergraduate · optional

24. 실습 C · 평균·직선·식별된 절편을 비교24. Lab C · Compare means, lines and identified intercepts

네 행 x=−2,−1,1,2와 Y=6,8,17,19에서 문턱 0, 균등 h=3을 사용합니다. 차수 0이면 평균 차이 11, 차수 1이면 절편 차이 5를 확인하세요. 실습 표의 β는 u=(X−c)/h의 계수라 양쪽 6입니다. 원점수 기울기 6/3=2와 연결해 설명합니다. 어느 경우에도 계산된 수를 그 자체로 실제 인과효과라고 부르지는 않습니다.

다음에는 차수를 2로 올립니다. 각 쪽의 서로 다른 점수가 두 개뿐인데 계수는 세 개이므로 문턱 절편이 정해지지 않습니다. 더 복잡한 다항식이 언제나 더 좋은 답을 주지 않는 이유를 확인합니다. 마지막에는 문턱 점수의 행을 오른쪽에 추가해 오른쪽 절편만 정해질 수 있는지 보세요. 결과가 미정의일 때 이전 그래프를 남겨 새 답처럼 보이지 않게 합니다.

Use the four assumed records, cutoff zero and uniform h=3. Degree zero gives mean contrast eleven; degree one gives cutoff contrast five. The displayed β is the coefficient of u=(X−c)/h, so each is six, corresponding to physical slope 6/3=2. Neither output is automatically an actual causal effect.

Raise the degree to two. Each side has only two distinct scores for three coefficients, so its cutoff intercept is not determined. A more complex polynomial need not supply a better answer. Then add a right-side record exactly at the cutoff and inspect whether only that intercept becomes identified. Undefined results should clear stale figures rather than appear as a new numeric answer.

학부Undergraduate

25. 선을 잘 맞추어도 문턱에서 빗나갈 수 있다25. A fitted line can miss the cutoff

관측 점 두 개를 정확히 통과하는 직선도 진짜 평균 곡선이 휘어지면 문턱에서 틀릴 수 있습니다. 왼쪽 평균은 10+2x, 오른쪽 처치 평균은 15+2x+x²라고 가정합시다. 문턱의 진짜 차이는 5입니다. x=−2,−1,1,2에서 평균 관측은 6,8,18,23입니다. 오른쪽 직선 기울기는 5, 절편은 13이라 왼쪽 절편 10과의 차이는 3입니다.

이 예에는 표본 잡음을 넣지도 않았지만 국소 직선의 문턱 비교가 2 작습니다. 원인은 휘어진 곡선을 직선으로 근사한 오차입니다. “두 선의 제곱잔차합이 0이므로 효과도 정확하다”는 추론이 깨집니다. 더 좁은 이웃을 쓰면 보통 곡선 근사 오차를 줄일 여지가 있지만, 서로 다른 점수가 부족해져 절편 자체를 못 구할 수도 있습니다.

μ0(x)=10+2x,μ1(x)=15+2x+x2,τ(0)=5,τ^=3\mu_0(x)=10+2x,\quad \mu_1(x)=15+2x+x^2,\qquad \tau(0)=5,\quad \hat\tau=3

A line can pass exactly through its observed points and still miss the true conditional mean at the cutoff. Assume left mean 10+2x and treated right mean 15+2x+x². The true cutoff difference is five. At scores −2,−1,1,2 the mean outcomes are 6,8,18,23. The right fitted line has slope five and intercept thirteen, so its contrast with left intercept ten is only three.

There is no sampling noise in this example, yet the local-linear contrast is two units low because the right curve bends. Zero squared residuals do not make the cutoff approximation exact. A narrower neighborhood can reduce curvature error but may leave too few distinct scores to determine an intercept.

μ0(x)=10+2x,μ1(x)=15+2x+x2,τ(0)=5,τ^=3\mu_0(x)=10+2x,\quad \mu_1(x)=15+2x+x^2,\qquad \tau(0)=5,\quad \hat\tau=3
학부 심화 · 선택Advanced undergraduate · optional

26. 자료가 흔들리면 절편도 흔들린다26. Noisy outcomes make intercepts variable

앞에서 관측 평균 곡선을 정확히 안다고 가정한 예와 달리, 실제 Y에는 같은 점수에서도 개인차가 있습니다. 각 행의 평균이 고정이고 서로 독립인 오차가 더해진다고 가정하면, 절편 차이 ΣℓY의 분산은 Σℓ²σ²입니다. 큰 양수·음수 선형계수는 잡음도 증폭합니다. 이 식은 독립 오차 가정 아래의 계산이지 모든 자료의 표준오차를 자동으로 정한 결과가 아닙니다.

가정한 네 행의 대비 계수 (1,−2,2,−1)와 각 오차 분산 4를 쓰면 분산은 (1+4+4+1)×4=40입니다. 두 집단 평균 차이의 계수 (−1/2,−1/2,1/2,1/2)는 분산 4지만, 기울기 예에서는 큰 편향이 있습니다. 덜 흔들린다는 사실과 올바른 표적에 가깝다는 사실을 따로 봐야 합니다. 주별 반복 선거와 집계 연도에는 독립성을 그대로 적용하지 않습니다.

Var⁡ ⁣(∑iℓiYi∣X)=∑iℓi2σi2if the errors are independent\operatorname{Var}\!\left(\sum_i\ell_iY_i\mid X\right)=\sum_i\ell_i^2\sigma_i^2\quad\text{if the errors are independent}

Actual outcomes vary even among people with the same score. If row means are fixed and errors are independent, a linear contrast ΣℓY has variance Σℓ²σ². Large positive or negative coefficients amplify noise. This is a calculation under an explicit independence model, not a universal standard-error formula for every dataset.

For contrast coefficients (1,−2,2,−1) and error variance four per row, variance is forty. The raw-mean contrast coefficients (−1/2,−1/2,1/2,1/2) instead give variance four, but that contrast can have large bias in a sloped example. Stability and proximity to the correct target are different properties. Repeated state elections or cohort aggregates need further dependence assumptions.

Var⁡ ⁣(∑iℓiYi∣X)=∑iℓi2σi2if the errors are independent\operatorname{Var}\!\left(\sum_i\ell_iY_i\mid X\right)=\sum_i\ell_i^2\sigma_i^2\quad\text{if the errors are independent}
학부 심화 · 선택Advanced undergraduate · optional

27. 대역폭은 포함할 범위를 정하는 선택27. Bandwidth chooses the neighborhood

대역폭 h가 크면 더 먼 점수까지 포함합니다. 대체로 관측이 많아져 흔들림을 줄일 수 있지만, 더 넓은 범위의 곡선을 하나의 낮은 차수 식으로 근사해야 합니다. h가 작으면 문턱에 가까운 자료를 쓰지만 양쪽에 충분한 관측과 서로 다른 점수가 남는지 확인해야 합니다. 모든 자료에서 “작을수록 좋다”도 “많을수록 좋다”도 성립하지 않습니다.

평균제곱오차는 편향의 제곱과 분산을 합한 기준입니다. 연속 점수·충분한 밀도·매끄러운 평균·적절한 표본 조건에서 국소 직선은 흔히 편향이 h² 정도, 분산이 1/(nh) 정도로 변하는 근사를 씁니다. 그로부터 h가 n의 −1/5승 정도인 균형이 나옵니다. 이는 조건을 갖춘 점근 근사이며, 영국 자료의 31개 고정된 연도 점수에 무조건 적용할 공식이 아닙니다.

MSE⁡(τ^)=Bias⁡(τ^)2+Var⁡(τ^),MSE⁡(h)≈A2h4+Bnh\operatorname{MSE}(\hat\tau)=\operatorname{Bias}(\hat\tau)^2+\operatorname{Var}(\hat\tau),\qquad \operatorname{MSE}(h)\approx A^2h^4+\frac{B}{nh}

A larger h includes more distant scores. More observations can reduce variability, but the low-order approximation must work over a wider curved region. A smaller h uses closer evidence but may lose observations or distinct support on one side. Neither “smaller is always better” nor “more is always better” is a general rule.

Mean squared error adds squared bias and variance. Under regular continuous-score density, smoothness and sampling conditions, local-linear bias often has order h² and variance order 1/(nh). Their balance gives an n^(-1/5) bandwidth rate. This conditional asymptotic approximation is not a universal formula for thirty-one fixed integer cohort scores.

MSE⁡(τ^)=Bias⁡(τ^)2+Var⁡(τ^),MSE⁡(h)≈A2h4+Bnh\operatorname{MSE}(\hat\tau)=\operatorname{Bias}(\hat\tau)^2+\operatorname{Var}(\hat\tau),\qquad \operatorname{MSE}(h)\approx A^2h^4+\frac{B}{nh}
학부 심화 · 선택Advanced undergraduate · optional

28. 73954개 기록과 31개 연도는 함께 읽는다28. Read 73,954 records and 31 years together

실제 영국 준비 자료는 73954개 노동자 기록이며 14세가 된 연도는 1935~1965의 정수 31개입니다. 기본 문턱 1947, 삼각 대역폭 6이면 양의 무게가 있는 연도는 1942~1952의 11개뿐입니다. 왼쪽은 서로 다른 연도 5개, 오른쪽은 6개입니다. 반복 관측을 많이 가진 연도가 있다는 사실과 문턱 가까이 서로 다른 연도가 있다는 사실은 구별합니다.

삼각 대역폭 1에서는 1946과 1948이 무게 0인 끝점이고, 1947만 양수입니다. 왼쪽 평균·절편 비교가 정의되지 않는데도 전체 표본 73954를 보여 주며 “자료가 충분하다”고 말하면 안 됩니다. 균등 h=1에서는 1946·1947·1948이 남지만 왼쪽 직선은 한 점수만 있어 문턱 절편이 정해지지 않습니다. 국소 표의 질량 합·최근접 거리·서로 다른 점수 수를 같이 확인하세요.

The actual prepared UK table has 73,954 worker records but only thirty-one integer years, 1935–1965, for turning fourteen. At cutoff 1947 and triangular h=6, only eleven years, 1942–1952, have positive weight: five on the left and six on the right. Repeated observations at one year do not supply new nearby score values.

At triangular h=1, 1946 and 1948 are zero-weight endpoints and only 1947 receives positive weight. The left comparison is undefined despite the large total sample. Uniform h=1 retains three years, but the left linear fit still has only one score and cannot identify its cutoff intercept. Read selected mass, nearest distance and distinct-score counts together.

학부 심화 · 선택Advanced undergraduate · optional

29. 문턱 가까운 자료를 뺄 때 잃는 것29. What is lost when near-cutoff records are removed?

문턱 점수의 기록 오류나 정밀 조정이 의심되어 안쪽 작은 범위를 빼는 분석을 donut RD라고 부르기도 합니다. 이 장의 실습은 donut>0일 때 |X−c|<donut인 행의 무게를 0으로 둡니다. donut 경계 자체는 남기고, 0이면 문턱의 행도 남깁니다. 제외 규약이 달라지면 같은 숫자 설정도 같은 표본이 아닐 수 있어 명시합니다.

제외 뒤에도 남은 자료에서 문턱까지의 값을 연장해야 합니다. 안쪽 구간을 비울수록 그 거리가 커져 곡률 가정에 더 의존할 수 있습니다. 결과가 비슷하다는 사실은 한 민감도 단서이고, 결과가 달라지면 원인과 새 표적을 살펴볼 필요가 있습니다. 어떤 donut에서 원하는 유의성이 나오는지를 골라 최종 분석처럼 제시하지 않습니다.

Donut analyses remove a small inner region when near-threshold recording or manipulation is a concern. In this lab, a positive donut removes |X−c|<donut, retains its boundary, and a zero donut keeps exact-cutoff records. State the convention because different boundary rules can yield different samples at the same displayed radius.

Remaining observations still need extrapolation toward the cutoff. A larger empty inner region may increase reliance on curvature restrictions. Similar results are one sensitivity clue, not proof; changed results deserve explanation. Do not select the donut merely because it produces a desired significant result.

학부Undergraduate

30. 그림의 구간 수와 회귀의 창은 다르다30. Plot bins and fitting windows are different choices

자료가 많으면 가까운 점수를 묶어 구간 평균으로 그릴 수 있습니다. 같은 구간을 만들더라도 원자료를 그대로 회귀한 결과와 구간 평균을 같은 무게로 회귀한 결과는 다를 수 있습니다. 각 평균이 담는 행 수와 구간 내부의 x 변동도 사라지기 때문입니다. 같은 정확한 x에서 빈도와 withinSS까지 보존해 묶는 앞의 집계와 일반적인 넓은 그림 구간은 다릅니다.

문턱을 가로질러 하나의 구간을 만들면 처치와 무처치 결과가 한 점에 섞여 도약을 숨길 수 있습니다. 그림은 양쪽을 구분해 그리고, 구간 평균·관측값·국소 적합선을 다른 기호로 표시합니다. 구간 수를 바꾸어 시각적 인상을 점검하되, 회귀 창 h와 원자료 기반 계산을 몰래 바꾸지 않습니다. 표의 수치와 축 범위도 함께 공개합니다.

For large datasets, neighboring scores can be displayed as bin means. Regressing equally weighted bin means need not reproduce a fit to all original records: bin sizes and within-bin score variation are lost. A broad plotting bin differs from aggregating identical exact scores while preserving frequency and withinSS.

A bin spanning the threshold can mix treated and untreated outcomes and conceal the jump. Keep sides separate and distinguish observations, bin means and local fitted curves. Vary plot-bin choices to inspect visual sensitivity without silently changing h or the raw-data calculation. Show numeric tables and axis scales too.

대학원 연결Graduate bridge

31. 곡률을 제한하면 근사 오차에 상한을 줄 수 있다31. Bound approximation error under a curvature restriction

국소 직선 절편의 선형계수 ℓ는 합이 1이고 중심 점수와 곱한 합은 0입니다. 한쪽 평균 함수가 문턱부터 각 선택 점수까지의 전 구간에서 두 번 미분 가능하고 |μ″(x)|≤M이라고 가정하면 Taylor 나머지의 절댓값은 M(X−c)²/2 이하입니다. 도넛으로 뺀 안쪽 틈에도 이 곡률 제한이 성립해야 하며, 관측이 남은 부분에서만 성립해서는 충분하지 않습니다. 계수로 합할 때 상수와 일차 항은 정확히 맞아 사라지고, 남은 나머지를 절댓값으로 묶을 수 있습니다. 양쪽 대비 계수의 절댓값을 모두 더하면 아래 상한이 됩니다.

네 점의 대비 계수 (1,−2,2,−1)와 문턱 거리 (−2,−1,1,2)에서는 Σ|ℓ|x²=12라 상한은 6M입니다. M=2를 가정하면 12입니다. 실제 편향이 12라는 뜻도, 자료가 M=2를 입증했다는 뜻도 아닙니다. 이 상한은 조건부 평균 곡선의 근사에 관한 것이며 표본 잡음까지 포함한 95% 신뢰구간이 아닙니다. 실제 사례에서 구간처럼 표시해 확률적 보장으로 읽지 않습니다.

∣E[τ^∣X]−τ(c)∣≤M2∑i∣ℓi∣(Xi−c)2under the stated side-mean restrictions\left|\mathbb E[\hat\tau\mid X]-\tau(c)\right|\le\frac M2\sum_i|\ell_i|(X_i-c)^2\quad\text{under the stated side-mean restrictions}

A local-linear intercept’s coefficients sum to one and reproduce the zero centered score. If each side mean is twice differentiable with |μ″(x)|≤M along every segment from the cutoff to each selected score, Taylor’s remainder is bounded by M(X−c)²/2. This restriction must also hold across any unobserved or donut-excluded gap, not only where observations remain. Constant and linear terms cancel under the intercept weights; applying the triangle inequality to the remaining weighted terms yields the displayed two-sided bound.

For coefficients (1,−2,2,−1) at scores −2,−1,1,2, the sum of absolute weighted squared distances is twelve, giving bound 6M. Assumed M=2 gives twelve. This is neither the actual bias nor evidence that M=2 is true. It bounds approximation of conditional means, not sampling noise, and must not be labeled a 95% confidence interval.

∣E[τ^∣X]−τ(c)∣≤M2∑i∣ℓi∣(Xi−c)2under the stated side-mean restrictions\left|\mathbb E[\hat\tau\mid X]-\tau(c)\right|\le\frac M2\sum_i|\ell_i|(X_i-c)^2\quad\text{under the stated side-mean restrictions}
학부 심화 · 선택Advanced undergraduate · optional

32. 실습 D · 같은 기본 자료에서 여러 창을 비교32. Lab D · Compare windows over one base dataset

가정한 곡선 자료를 고릅니다. 왼쪽 x=−3,−2,−1에서는 Y=10+2x, 오른쪽 x=1,2,3에서는 Y=15+2x+x²입니다. 균등 커널과 국소 직선으로 h=2이면 문턱 대비가 3, h=3이면 5/3입니다. 원래 곡선의 문턱 효과는 5이므로 더 넓은 창의 근사 편향이 더 커진 예입니다. h=1에서는 양쪽 한 점씩이라 직선 대비가 정해지지 않습니다.

각 창의 원자료 행 수, 완전한 기본 행 수, 양의 무게 행 수, 서로 다른 점수와 문턱 대비를 기록합니다. 수동으로 살펴본 창 목록은 MSE 최적 대역폭을 계산한 결과가 아닙니다. 실제 상원 사례에서도 여러 h를 비교하되 결과의 부호나 크기가 마음에 드는 창만 보고하지 않습니다. 잔차·행 수·원점수 기울기·그래프를 함께 읽어 변화의 이유를 설명합니다.

Choose the assumed curved example. At left scores −3,−2,−1 use Y=10+2x; at right scores 1,2,3 use Y=15+2x+x². Uniform local-linear fits give contrast three at h=2 and 5/3 at h=3. The underlying cutoff effect is five, so widening the window increases approximation bias here. At h=1 each side has one point and cannot determine a linear cutoff contrast.

Record total base rows, complete base rows, positive-weight rows, distinct scores and the contrast at each h. A manually inspected list is not an MSE-optimal bandwidth selection. Compare several windows for actual Senate data without reporting only a preferred sign or magnitude. Use support, residuals, physical slope units and graphics to explain changes.

학부 심화 · 선택Advanced undergraduate · optional

33. 배정 문턱과 실제 수혜 확률33. Eligibility and the probability of actual receipt

장학금 대상이 된다고 모두 받는 것은 아닙니다. 문턱 아래에서도 다른 절차로 받을 수 있고, 위에서도 신청하지 않을 수 있습니다. 예를 들어 문턱 아래 수혜 확률 1/5, 위 4/5라면 수혜의 첫 단계 도약은 3/5입니다. 배정 지시자 Z는 0에서 1로 변하지만 실제 D의 확률은 0에서 1까지 전부 바뀐 것이 아닙니다.

fuzzy RD에서 결과 Y의 도약과 수혜 D의 도약은 같은 문턱·같은 기본 관측 프레임에서 계산해야 합니다. 결과가 있는 사람만 쓴 표와 수혜가 있는 사람만 쓴 다른 표를 그냥 나누면 모집단과 비교대상이 섞일 수 있습니다. 실습은 x·y·d가 모두 있는 공통 행을 선택하고 두 국소 회귀에 같은 커널과 질량을 적용합니다.

ΔD=lim⁡x↓cE[D∣X=x]−lim⁡x↑cE[D∣X=x]\Delta_D=\lim_{x\downarrow c}\mathbb E[D\mid X=x]-\lim_{x\uparrow c}\mathbb E[D\mid X=x]

Eligibility does not guarantee receipt. Some below the threshold may receive assistance through another route, and some above may not apply. Receipt probabilities 1/5 below and 4/5 above imply a first-stage jump of 3/5. Z changes from zero to one, while the probability of D changes only partially.

In fuzzy RD, estimate the Y jump and D jump at the same cutoff using one common analysis frame. Dividing a result from Y-complete records by a first stage from a different D-complete set can mix populations. The lab retains jointly complete x,y,d records and applies the same kernel and masses to both fits.

ΔD=lim⁡x↓cE[D∣X=x]−lim⁡x↑cE[D∣X=x]\Delta_D=\lim_{x\downarrow c}\mathbb E[D\mid X=x]-\lim_{x\uparrow c}\mathbb E[D\mid X=x]
학부 심화 · 선택Advanced undergraduate · optional

34. 두 도약의 비율이 뜻하는 것34. Interpret a ratio of two jumps

결과의 도약 ΔY=3일, 실제 수혜 확률 도약 ΔD=3/5라고 합시다. 두 수의 비율은 3/(3/5)=5일입니다. 수혜 확률을 1만큼 바꿀 때의 결과 변화로 읽을 후보 수치입니다. 이 비율 계산은 분모가 0이 아니면 할 수 있지만, 그 자체로 어떤 사람의 인과효과인지가 결정되지는 않습니다.

배정 문턱이 결과에 영향을 주는 경로가 실제 장학금 수혜뿐이라는 배제 조건, 관련 잠재평균의 국소 연속성, 적절히 정의한 수혜 상태, 단조성 같은 조건이 필요합니다. 배정 자체가 무료 과외나 낙인 효과도 만들면 단순 비율을 장학금 수혜만의 효과로 해석하기 어렵습니다. 이 장은 대수적 비율과 인과 해석의 전제를 따로 표시합니다.

τFRD=ΔYΔD,ΔD≠0\tau_{\mathrm{FRD}}=\frac{\Delta_Y}{\Delta_D},\qquad \Delta_D\ne0

Suppose the outcome jump is three attendance days and the receipt-probability jump is 3/5. Their ratio is five days. It is a candidate change per unit increase in receipt probability. A nonzero denominator makes the ratio calculable, but does not by itself determine a causal population or effect.

A causal interpretation needs appropriate local continuity, a well-defined treatment, exclusion of other effects of eligibility and a suitable monotonicity condition. If assignment also changes tutoring or stigma, the simple ratio need not isolate receipt of scholarship money. Keep the algebraic ratio separate from the assumptions giving it causal meaning.

τFRD=ΔYΔD,ΔD≠0\tau_{\mathrm{FRD}}=\frac{\Delta_Y}{\Delta_D},\qquad \Delta_D\ne0
대학원 연결Graduate bridge

35. 누구에게 효과를 묻는가 · 국소 순응자35. Whose effect? Local compliers

배정되면 받을지 D(1), 배정되지 않으면 받을지 D(0)를 생각합니다. 순응자는 (D(0),D(1))=(0,1)인 사람입니다. 항상 수혜자는 (1,1), 절대 수혜하지 않는 사람은 (0,0)입니다. (1,0)처럼 배정이 오히려 수혜를 막는 유형을 배제하는 것이 단조성의 핵심입니다. 이는 모든 사람의 수혜 결과를 동시에 관측했다는 사실이 아니라 가정입니다.

적절한 연속성·배제·단조성 아래 fuzzy RD 비율은 문턱의 순응자에게 미치는 평균 효과로 해석할 수 있습니다. 항상 수혜자나 모든 국민의 평균 효과와는 다릅니다. 연속 점수의 문턱에서 순응자를 정의하는 기술적 조건도 필요하므로 단순히 “분모가 양수니까 LATE”라고 말하지 않습니다. 실제 영국 준비 표에는 교육 수혜 열이 없어 이 비율을 새로 추정한 것처럼 꾸미지 않습니다.

Di(1)≥Di(0),compliers: Di(0)=0, Di(1)=1D_i(1)\ge D_i(0),\qquad \text{compliers: }D_i(0)=0,\ D_i(1)=1

Consider receipt D(1) under assignment and D(0) without it. Compliers have (D(0),D(1))=(0,1), always-takers (1,1) and never-takers (0,0). Monotonicity excludes the (1,0) type whose receipt is prevented by assignment. This is an assumption about unobserved joint potential treatments, not something learned by observing everyone in both conditions.

With suitable continuity, exclusion and monotonicity, the fuzzy-RD ratio can identify an average effect for compliers at the threshold. It is not automatically the effect for always-takers or the whole population. Technical local conditions still matter; a positive fitted denominator alone is not LATE. The actual UK prepared table lacks education-uptake data, so it cannot supply a newly estimated schooling first stage here.

Di(1)≥Di(0),compliers: Di(0)=0, Di(1)=1D_i(1)\ge D_i(0),\qquad \text{compliers: }D_i(0)=0,\ D_i(1)=1
학부 심화 · 선택Advanced undergraduate · optional

36. 분모가 0이거나 아주 작을 때36. A zero or very small first stage

ΔY=3인데 ΔD=0이면 비율은 정의되지 않습니다. 0을 대신 답으로 넣을 수 없습니다. ΔD=1/100이면 비율은 300이지만, 분모를 2/100으로 조금만 바꾸면 150으로 줄어듭니다. 실제 자료에서 작은 첫 단계가 추정 오차에 민감하다는 점과, 무한 정밀도의 계산으로 그 불확실성을 없앨 수 없다는 점을 구분합니다.

국소 직선으로 확률을 외삽하면 문턱의 적합 확률이 0보다 작거나 1보다 클 수도 있습니다. 엔진은 실제 입력 d가 [0,1] 범위인지 확인하지만, 적합 절편이나 도약을 몰래 [0,1]로 잘라 비율을 바꾸지 않습니다. 그런 결과가 나오면 창·지원점·모형과 추론 방법을 다시 검토합니다. 약한 도구에 강한 신뢰집합 등은 별도 이론이 필요하며 이 실습이 구현했다고 주장하지 않습니다.

If ΔY=3 and ΔD=0, the ratio is undefined, not zero. A first stage of 1/100 gives ratio 300, but changing it to 2/100 gives 150. Small estimated denominators can be highly sensitive to sampling error; exact arithmetic does not remove that uncertainty.

Local-linear extrapolation can produce fitted receipt probabilities outside [0,1]. The engine checks that observed input d lies within that range, but does not silently clip fitted intercepts or jumps. Inspect support, bandwidth, specification and inference when this happens. Weak-identification-robust confidence sets require additional methods not claimed by this lab.

대학원 연결Graduate bridge

37. 이산 점수에서는 연속성만으로 부족하다37. Continuity alone can fail with discrete scores

연도가 1946,1947,1948처럼 고정된 정수만 가능하면 문턱 바로 아래에서 무한히 가까워지는 관측 가능한 점수열이 없습니다. 1946의 무처치 평균을 정확히 알아도 1947의 무처치 반사실 값은 그 사이 곡선의 모양에 의존합니다. 관측 지점에서는 같지만 사이에서 다르게 휘는 연속 함수들이 모두 가능합니다.

따라서 이산 점수의 표본이 커졌다는 사실만으로 통상적인 연속 점수 RD의 한계값 표적이 비모수적으로 식별되지는 않습니다. 국소 직선 같은 외삽 구조, 정당화한 곡률 제한, 또는 다른 표적과 국소 무작위화 가정을 사용할 수 있지만 무엇을 추가했는지 밝혀야 합니다. “동일 점수로 묶어 군집 표준오차를 구했다”는 조치만으로 식별의 빈틈이 없어지는 것도 아닙니다.

With fixed integer years such as 1946,1947,1948, there is no sequence of supported scores approaching the cutoff arbitrarily closely from below. Even exact knowledge of the untreated mean at 1946 leaves the untreated counterfactual at 1947 dependent on the intervening function. Continuous curves can agree at observed scores and bend differently in between.

A large repeated sample on that fixed support therefore does not nonparametrically identify the usual continuous-score limit effect from continuity alone. Local-linear extrapolation, justified curvature restrictions, or a local-randomization framework with a different target add structure that must be stated. Clustering a standard error by score does not itself solve this identification problem.

대학원 연결Graduate bridge

38. 표준오차가 근사 편향을 없애지는 않는다38. A standard error does not remove approximation bias

정한 창에서 가중회귀를 실행하면 계수와 잔차를 얻을 수 있습니다. 하지만 평균 관계가 그 창 전체에서 정확히 직선이라고 보지 않는다면, 보통의 회귀 표준오차만으로 문턱 효과에 올바른 신뢰구간을 준다고 할 수 없습니다. 추정치가 흔들리는 표본 오차 외에 곡선 근사의 편향도 고려해야 합니다. 단순히 표준오차에 1.96을 곱했다고 RD 추론이 완성되지 않습니다.

견고한 편향 보정(RBC)은 선도 편향을 추정해 중심을 고치는 데 더해 그 보정 자체가 가져오는 불확실성도 반영합니다. 보정한 중심에 예전 표준오차를 그대로 붙이는 것과 다릅니다. 전문 패키지의 선택 대역폭·편향 추정 대역폭·분산 방식·군집과 지원점 처리를 문서에서 확인해야 합니다. 이 장의 실시간 엔진은 정확한 유한 국소 적합과 결정론적 근사 상한을 계산하며 전문 RBC 신뢰구간을 구현한 것은 아닙니다.

bias-corrected center=τ^−B^,Var⁡(τ^−B^) includes correction uncertainty\text{bias-corrected center}=\hat\tau-\widehat B,\qquad \operatorname{Var}(\hat\tau-\widehat B)\ \text{includes correction uncertainty}

A weighted regression returns coefficients and residuals for a chosen window. If the mean is only approximated by a line, ordinary regression standard errors alone do not guarantee valid inference for the cutoff effect. Sampling variability and approximation bias are different. Multiplying an ordinary standard error by 1.96 does not complete an RD analysis.

Robust bias correction estimates a leading bias, adjusts the center and accounts for uncertainty introduced by the correction. Keeping an old standard error after changing the center is different. Check a professional package’s estimation and bias bandwidths, variance method, clustering and mass-point handling. This live engine computes exact finite fits and a deterministic approximation bound, not professional RBC confidence intervals.

bias-corrected center=τ^−B^,Var⁡(τ^−B^) includes correction uncertainty\text{bias-corrected center}=\hat\tau-\widehat B,\qquad \operatorname{Var}(\hat\tau-\widehat B)\ \text{includes correction uncertainty}
학부 심화 · 선택Advanced undergraduate · optional

39. 반복 단위와 재현 범위를 밝힌다39. State repeated units and reproduction scope

상원 자료에는 같은 주의 여러 시점 선거가 있습니다. 넓은 창을 쓸 때 모든 선거 오차가 서로 독립이라는 조건을 무심코 붙이지 않습니다. 주별 군집 여부나 시간적 의존, 반복 의석 구조가 추론에 미칠 영향을 살펴야 합니다. 원논문의 아주 좁은 창에서 같은 주가 중복되지 않는다는 설명을, 우리가 선택한 넓은 창에도 그대로 복사해서는 안 됩니다.

영국 자료는 같은 출생 코호트에 여러 사람이 있고 기업 표는 한 회사의 여러 상품 줄입니다. 관측 행 수가 크다고 독립적인 배정 단위가 그 수만큼 생기지 않습니다. 공개 CSV와 독립 Python/R 코드로 이 장의 계수·지지점·제곱잔차합을 재현할 수 있지만, 그 계산이 원논문의 모든 표본 제한·로그 변환·표준오차·인과 해석까지 재현했다고 쓰지 않습니다. 재현한 통계량과 재현하지 않은 연구 결론을 구분합니다.

The Senate table contains multiple elections from the same state. A broad window should not silently assume independent election errors. Consider state clustering, temporal dependence and the seat structure. A statement that no state repeats in the original paper’s very narrow window cannot automatically be copied to our broader choice.

The UK table repeats cohorts, and business records are product lines from one company. Many rows do not create equally many independent assignment units. Public CSVs and standalone Python/R reproduce this chapter’s fits, support and full squared-error criteria, not every original-paper restriction, log transformation, variance calculation or causal conclusion. Name exactly which statistics are reproduced.

학부 심화 · 선택Advanced undergraduate · optional

40. 실습 E · 분자와 분모의 관측을 맞춘다40. Lab E · Align the numerator and denominator records

가정한 점수 x=−2,−1,1,2에서 Y=10,10,13,13, d=1/5,1/5,4/5,4/5를 입력합니다. 균등 h=3과 국소 상수 또는 직선에서 결과 도약 3, 수혜 도약 3/5, 비율 5를 예측하고 확인합니다. d는 이 가상 예의 수혜 비중이며 실제 영국 교육 연수 자료에서 얻은 수치가 아닙니다.

한 행의 d를 null로 바꾸어 결과 회귀와 첫 단계 회귀에서 같은 행이 함께 빠지는지 보세요. 이어 d를 모든 행에서 1/2로 두면 분모 0으로 비율이 미정의입니다. 가까운 두 비중의 차이를 1/100,2/100으로 바꿔 비율의 민감도도 비교합니다. 계산된 비율을 해석할 때 배제·단조성·국소 비교 가능성과 실제 수혜 변수가 무엇인지 자신의 말로 적습니다.

Enter assumed scores −2,−1,1,2, outcomes 10,10,13,13 and uptake fractions 1/5,1/5,4/5,4/5. With uniform h=3 and a local constant or line, predict an outcome jump three, receipt jump 3/5 and ratio five. These are hypothetical fractions, not measured education uptake in the UK case.

Set one d to null and verify the same row leaves both regressions. Then make every d equal 1/2: the fitted first stage is zero and the ratio undefined. Compare first-stage gaps 1/100 and 2/100 to inspect sensitivity. Explain the ratio only after stating exclusion, monotonicity, local comparability and what actual receipt means.

학부Undergraduate

41. 국가 제도 사례 · 미국 상원 선거 1390건41. National institution case · 1,390 U.S. Senate elections

국가 제도 사례는 공식 RD 연구 소프트웨어가 공개한 미국 상원 선거 준비 표를 사용합니다. 1914~2010년 50개 주의 1390개 선거 행이며, 국가별 GDP 패널이나 유권자 개인 기록이 아닙니다. 원래 주·연도·민주당 득표 차이·미래 득표율과 다른 공개 열을 보존합니다. 행 번호는 보존한 위치 식별자이지 실제 정치인의 개인 ID가 아닙니다.

running variable은 민주당의 득표 차이 demmv이고 문턱은 0입니다. 결과 demvoteshfor2가 함께 있는 완전 행은 1297개라 93개 행은 결과 회귀에서 빠집니다. 빠진 결과를 0%로 채우지 않습니다. 기본 삼각 커널 h=10의 양의 무게 행은 왼쪽 245·오른쪽 206으로 총 451개입니다. 같은 파일도 창과 결과 열에 따라 쓰는 분모가 달라짐을 먼저 확인합니다.

The national-institution case uses a prepared U.S. Senate table released by the official RD software project. It contains 1,390 election rows from fifty states over 1914–2010, not a country-level GDP panel or individual voter records. Original state, year, Democratic margin, future vote share and other released columns are retained. Source row numbers identify retained positions, not individual politicians.

The running variable demmv is the Democratic vote margin, with cutoff zero. Both margin and outcome demvoteshfor2 are present for 1,297 rows, leaving ninety-three out of this outcome fit rather than assigning them zero vote shares. Default triangular h=10 uses 451 positive-weight rows: 245 left and 206 right. Read these denominators before comparing results.

학부 심화 · 선택Advanced undergraduate · optional

42. t+2는 2년 뒤가 아니다42. The election index t+2 does not mean two years later

원연구는 같은 주의 연속 선거를 t,t+1,t+2로 부릅니다. 한 주의 두 상원 의석은 서로 다른 시점에 선거를 치러, t+1은 다른 의석의 선거이고 t+2는 원래 의석의 다음 선거입니다. 따라서 demvoteshfor2를 “2년 뒤 득표율”이라고 번역하면 틀립니다. t+2는 선거 순서의 두 번 뒤이며, 같은 의석의 통상적인 다음 임기는 6년 구조와 연결됩니다.

관심은 특정 정치인 개인이 아니라 정당이 근소하게 승리한 뒤 같은 의석의 다음 선거에서 받는 득표율입니다. 기본 h=10의 국소 직선 대비는 약 7.985%포인트입니다. 원논문의 다른 대역폭·추론 방법의 수치와 같다고 주장하지 않습니다. 선거 제도의 배정 규칙이 있어도 연속성·선택·후보 교체와 주별 의존을 검토해야 하며, 계산 엔진은 그 전제를 인증하지 않습니다.

The study indexes consecutive elections within a state as t,t+1,t+2. The two Senate seats are elected at different times: t+1 concerns the other seat and t+2 the next election for the original seat. Translating demvoteshfor2 as “vote share two years later” is wrong. It is two steps in the election sequence and relates to the original seat’s usual six-year term structure.

The target concerns the party’s later vote share, not necessarily one politician’s personal reelection prospects. Our default h=10 local-linear contrast is approximately 7.985 percentage points, not a claimed reproduction of every published bandwidth or inference result. Institutional assignment still needs scrutiny of continuity, selection, candidate changes and within-state dependence; the engine does not certify those conditions.

학부 심화 · 선택Advanced undergraduate · optional

43. 개인 사례 · 영국 노동자 소득과 31개 코호트43. Individual case · UK worker earnings and thirty-one cohorts

RDHonest가 공개한 cghs 준비 표의 73954개 노동자 기록을 사용합니다. 두 열은 14세가 된 연도와 연간 소득이며, 소득 단위는 제공 코드북의 1998년 영국 파운드입니다. 원래 RDA에 저장된 binary64 수치를 17개 유효 숫자로 다시 읽을 수 있게 내보내 원값으로 돌아가는지 확인합니다. 이것이 원조사 측정값이 17자리까지 정확했다는 뜻이나, underlying AER 조사 원파일을 직접 복원했다는 뜻은 아닙니다.

1947년 학교 이탈 연령 개정이 배경이지만, 이 준비 표에는 실제 교육 연수·수혜·정확한 생일·모든 원조사 통제 변수가 없습니다. 1947은 공개 예제의 거친 연도 문턱이고, 이 장은 소득 수준의 국소 대비를 계산합니다. 기본 삼각 h=6에서는 원관측 17240개가 11개 연도 평균으로 묶여 쓰이며 대비는 약 −302.48파운드입니다. 이를 추가 교육 1년의 수익률이나 원논문의 로그 소득 IV 추정치라고 부르지 않습니다. 2008년 저자 정오표가 존재한다는 사실과 표본·자료 처리의 중요성도 함께 읽습니다.

Use 73,954 worker records in RDHonest’s released cghs prepared table. Its columns are the year of turning fourteen and annual earnings in 1998 UK pounds according to the supplied codebook. Exporting retained RDA binary64 values with seventeen significant digits preserves roundtrip values; it does not claim seventeen-digit measurement accuracy or direct reconstruction of the underlying AER raw survey files.

The institutional background is the 1947 school-leaving-age reform, but this table lacks actual schooling, uptake, exact birth dates and the full survey controls. The public example’s annual threshold is coarse. We calculate an earnings-level contrast: default triangular h=6 uses 17,240 source records across eleven year means and gives approximately −302.48 pounds. This is not an additional year’s return to schooling or a reproduction of the paper’s log-earnings IV estimate. Read the author’s 2008 corrigendum alongside the source and sampling choices.

학부 심화 · 선택Advanced undergraduate · optional

44. 기업 사례 · 문턱선 하나가 RD를 만들지는 않는다44. Business case · A drawn threshold does not create an RD

실제 UCI Online Retail 원본의 첫 1000개 상품 줄과 원래 수량·파운드 단가·송장·시각·상품 코드 등을 보존합니다. 한 회사의 여러 상품 줄이지 1000개 기업이 아닙니다. 양의 수량·양의 단가인 989줄을 분석 대상으로 삼고, 같은 수량의 줄들을 빈도·평균 단가·withinSS로 묶으면 39개 지원점입니다. 첫 1000줄은 전체 기간의 무작위 표본이 아닙니다.

수량 6이라는 선은 학습자가 선택한 기준일 뿐, 실제 할인·배송비·처치 배정 규칙으로 관측되지 않았습니다. 기본 삼각 h=5의 국소 직선 단가 대비는 약 0.2507파운드/개지만 이를 대량 주문 할인 효과라고 해석할 근거가 없습니다. 상품 종류·주문 선택이 동시에 다르고 수량은 이산적입니다. 이 사례의 목표는 실제 데이터에 회귀선을 그릴 수 있다는 사실과 RD 연구 설계가 성립한다는 사실을 분리하는 것입니다.

Retain the first one thousand product lines of the actual UCI Online Retail workbook, including original quantities, sterling unit prices, invoice fields, times and product codes. These are records within one company, not one thousand firms. The analysis uses 989 positive-quantity, positive-price lines, summarized at thirty-nine distinct quantities with frequency, mean price and withinSS. The first thousand lines are not a random sample of the full period.

The threshold quantity six is chosen for teaching; no actual discount, shipping or treatment-assignment rule at six is observed. Default triangular h=5 gives an approximately 0.2507-pound-per-item local price contrast, which does not identify a quantity-discount effect. Product composition and ordering choices differ, and quantity is discrete. The case separates the ability to draw a regression from the existence of an RD research design.

학부Undergraduate

45. 원자료에서 같은 비교를 다시 만드는 순서45. Rebuild the same comparison from public records

먼저 각 실제 사례의 전체 선택 CSV를 읽고 원행 수·단위·결측과 제외 조건을 확인합니다. 다음으로 문턱·커널·대역폭·다항식 차수를 정합니다. 양쪽의 완전 행과 양의 무게 행을 구분한 뒤 정규방정식과 절편 대비를 계산합니다. 분모와 서로 다른 지원점 수가 맞지 않으면 소수 결과만 맞추려 하지 말고 어떤 행이 달라졌는지부터 찾습니다.

개인과 기업은 같은 정확한 x에서 평균·빈도·withinSS를 보존합니다. 공개 Python/R 코드는 전체 개인·상품 줄부터 그 집계를 다시 만들 수 있어야 합니다. 단순히 미리 저장된 최종 계수만 읽는 것은 재계산이 아닙니다. 계수 해가 유일하지 않을 때는 특정해·자유 방향과 절편의 식별 여부를 확인합니다. 공개 결과에는 전체 선택과 계산 조건을 남겨 같은 표적을 비교할 수 있게 합니다.

Begin with each complete selected CSV and verify row counts, units, missingness and exclusions. Set the cutoff, kernel, bandwidth and polynomial degree. Distinguish complete base rows from positive-weight rows before forming normal equations and the intercept contrast. If counts or distinct supports differ, locate the changed records instead of merely chasing matching decimals.

Individual and business aggregates retain mean, frequency and withinSS at identical exact x values. Public Python/R code should rebuild these from the complete selected records, not simply load final coefficients. For nonunique coefficients, inspect the particular solution, free directions and whether the cutoff intercept is identified. Preserve selection and settings so reported results refer to the same target.

대학원 연결Graduate bridge

46. 심화 · 같은 관측과 다른 반사실 곡선46. Graduate bridge · Same observations, different counterfactual curves

문턱 아래의 가능한 점수가 유한한 집합 S−이고 문턱 c와 떨어져 있다고 합시다. 연속인 무처치 함수 μ0에, S−의 모든 점에서 0이지만 c에서는 a인 함수를 더할 수 있습니다. 아래의 다항식 g가 한 예입니다. 관측된 왼쪽 무처치 평균은 그대로인데 문턱의 무처치 반사실 값은 a만큼 달라집니다. 오른쪽 관측 처치 평균은 그대로 둘 수 있어 관측 분포는 같고 문턱 효과는 달라질 수 있습니다.

따라서 이산 지원점에서 반복 관측을 늘리기만 하면 연속성에 의한 한계값 식별이 생긴다는 논리는 성립하지 않습니다. 곡률 제한을 추가하면 허용되는 a의 범위를 줄일 수 있지만 그 제한도 전제입니다. 이 구성은 유한 표본에 늘 오차가 있다는 일반적인 이야기보다 강합니다. 가능한 점수의 모집단 지원 자체가 고정되어 촘촘해지지 않는 상황을 말합니다. 잠재결과의 범위 제한이 있으면 그 조건을 유지하는 서로 다른 작은 a를 비교하면 됩니다.

g(x)=a∏s∈S−x−sc−s,g(s)=0 (s∈S−),g(c)=ag(x)=a\prod_{s\in S_-}\frac{x-s}{c-s},\qquad g(s)=0\ (s\in S_-),\quad g(c)=a

Let the finite left-side score support S− be separated from c. Add to a continuous no-treatment mean μ0 a function that is zero at every left support point but equals a at c. The displayed polynomial is one construction. Observed untreated means on the left stay unchanged while the counterfactual no-treatment value at c moves by a. Leave observed treated means on the right unchanged: the observations can agree while the cutoff effect differs.

More repetitions on fixed discrete support do not create limit identification from continuity alone. A curvature restriction can constrain a, but adds an assumption. This argument concerns population score support that never becomes dense, not merely ordinary error from observing a finite sample of a continuous score. If potential-outcome bounds apply, compare distinct small a values that respect them.

g(x)=a∏s∈S−x−sc−s,g(s)=0 (s∈S−),g(c)=ag(x)=a\prod_{s\in S_-}\frac{x-s}{c-s},\qquad g(s)=0\ (s\in S_-),\quad g(c)=a
학부Undergraduate

47. 세 사례의 전체 원행·집계·국소 대비47. Complete records, aggregates and fits for all three cases

아래 자료 묶음은 전체 원행의 내려받기, 추출 위치, 단위, 집계 규칙과 여러 대역폭의 결과를 연결합니다. 국가 제도 사례는 정당의 미래 득표율, 개인 사례는 준비된 노동자 소득, 기업 사례는 외생적 처치 문턱이 없는 상품 단가라는 서로 다른 표적입니다. 데이터가 실제라는 공통점만으로 인과 해석까지 같아지지는 않습니다.

표에서 한 가지 설정을 골라 분모·지원점·절편·대비를 확인하고, 직접 코드로 재계산해 보세요. 원값은 정확값 펼치기와 전체 결과 파일에서 볼 수 있고 기본 표는 읽기 쉬운 짧은 수치로 비교합니다. 값이 미정의이거나 표시 범위를 벗어난 경우도 계산상 0과 구분합니다. 그림과 모든 설정을 함께 읽으며 원하는 수치 하나만 고르지 않습니다.

국가 제도 · 실제 상원 선거

이 사례의 단위는 미국 상원 선거입니다. 공식 rdlocrand 준비 표 1390행의 원래 주·연도·득표 차이·미래 득표율 등을 그대로 보존했습니다. 국가별 패널이나 유권자 개인 자료가 아닙니다. 주·연도가 겹쳐도 원행 위치를 따로 보존하고 정치인 ID를 만들어내지 않습니다.

선택·완전 프레임·기본 창의 분모

선택·완전 프레임·기본 창의 분모
구분수
공개 원행1390
공통 완전 행1297
결과 회귀 결측 제외93
기본 양의 무게 좌/우245 / 206
전체 기간·주1914–2010 / 50

t,t+1,t+2는 같은 주의 연속 선거 순서입니다. t+1은 다른 상원 의석, t+2는 원래 의석의 다음 선거라 “2년 뒤”로 번역하지 않습니다. 결과 demvoteshfor2는 그 미래 선거의 민주당 정당 득표율이며 후보 개인의 재선 여부가 아닙니다. 아래는 문턱 양쪽에서 가장 가까운 각 12행의 명시한 미리보기입니다. 전체1390행은 CSV에 있습니다.

문턱에 가까운 24개 실제 행 미리보기 · 행 위치 보존

문턱에 가까운 24개 실제 행 미리보기 · 행 위치 보존
원행주연도득표 차이(%p)같은 의석 미래 득표율(%)
920Kentucky1998≈-0.590706
정확값-5907059/10000000
≈49.3432
정확값2467159/50000
901Kentucky1920≈-0.551429
정확값-2757147/5000000
≈51.8369
정확값5183689/100000
889Texas1978≈-0.528726
정확값-264363/500000
≈41.4468
정확값103617/2500
977Oklahoma1974≈-0.484332
정확값-1210831/2500000
≈43.5478
정확값4354781/100000
35Maine1934≈-0.430465
정확값-4304647/10000000
≈41.2734
정확값4127341/100000
1317Oregon1968≈-0.423017
정확값-4230171/10000000
≈44.8404
정확값4484039/100000
915Kentucky1984≈-0.421676
정확값-105419/250000
≈47.8135
정확값956269/20000
634Virginia1978≈-0.38625
정확값-309/800
≈29.945
정확값5989/200
1178Nevada1974≈-0.368199
정확값-920497/2500000
≈37.2987
정확값1864937/50000
207New Jersey1954≈-0.190335
정확값-380671/2000000
≈43.2111
정확값2160557/50000
511Missouri1944≈-0.115547
정확값-577733/5000000
≈53.5883
정확값2679413/50000
577North Dakota1974≈-0.0789285
정확값-157857/2000000
≈28.9563
정확값2895627/100000
1176Nevada1964≈0.0356555
정확값71311/2000000
≈57.6491
정확값1152983/20000
1355Washington2000≈0.0905573
정확값905573/10000000
≈56.8527
정확값568527/10000
1186Nevada1998≈0.0982136
정확값122767/1250000
≈61.0819
정확값6108191/100000
614South Dakota2002≈0.155255
정확값194069/1250000
≈62.4917
정확값6249169/100000
601South Dakota1962≈0.234747
정확값2347469/10000000
≈56.7896
정확값5678963/100000
324Indiana1970≈0.246477
정확값2464771/10000000
≈40.4627
정확값161851/4000
426Iowa1938≈0.337204
정확값3372043/10000000
≈48.3733
정확값2418667/50000
782Louisiana1996≈0.34045
정확값1702249/5000000
≈51.7005
정확값5170049/100000
936Maryland1946≈0.352451
정확값110141/312500
≈47.4624
정확값4746243/100000
264Pennsylvania1956≈0.396696
정확값3966957/10000000
≈51.0641
정확값1276603/25000
171Delaware1922≈0.433964
정확값867927/2000000
≈39.05
정확값781001/20000
1089Colorado1956≈0.434866
정확값869733/2000000
≈45.5765
정확값911529/20000

기본 삼각 커널·h=10·차수1의 대비는 약7.985%포인트입니다. 수동 창의 유한 국소 적합이며, 원논문의 최적 대역폭·무작위화 검정·RBC 신뢰구간을 복제한 주장이 아닙니다. 표에서 폭을 바꾸면 양의 행과 지지점·근사 대상이 어떻게 바뀌는지 비교하세요. 같은 주의 반복 선거 의존과 설계 전제는 별도로 검토합니다.

전체 8개 설정 · 같은 완전 기본 프레임, 창·커널·차수는 명시

전체 8개 설정 · 같은 완전 기본 프레임, 창·커널·차수는 명시
설정h차수적합 행원행 질량지원점 좌/우rank 좌/우왼쪽 절편오른쪽 절편대비
삼각 · 상수100451451245/2061/1≈44.7272
정확값55803417483542547/1247640404900000
≈53.433
정확값57837605493319653/1082433148100000
≈8.70579
정확값11757064674682257024545289/1350487331172665665690000
삼각 · 직선 기본101451451245/2062/2≈43.8329
정확값4998001629124494878783503170298655733151/114024097400228895681636503816637500000
≈51.8175
정확값211197831053363679203393309750799115631/4075797979547096434855326377721297600
≈7.98469
정확값4638496396233892984465509367743966329792880038545012143445694870794632203/580923982254417830414847009352420559636198380333651249340836211025000000
삼각 · 이차식102451451245/2063/3≈40.8415
정확값157253624990221349256617732605491057887507835149253368557660521928646729140063/3850335041234392695835582369850575131138111827610176002770998991271724600000
≈52.7634
정확값2049105474204940905308827633402728956806028015459426972596323455930911877247191/38835763171473161275103245180180660208723790690222048424081634188268163700000
≈11.9218
정확값3565356145081222205764247219804283866636261091017344683944913133472995481624597857011786967214144660009033538003687973564625405448185503823163926571/299061399584406447346336172454560544847572317776319883926169941247103847793030344683199606058418764879217272523740906820695196134552636348234040000
균등 · 직선101451451245/2062/2≈45.3018
정확값70715260935229632145960731/1560980125716346154800000
≈52.2006
정확값31957905723602607618276601/612213063324511010950000
≈6.89879
정확값131856983462225565014814157656987331067056607/19113048491069691745348994720685863901200000
절반 h · 직선51245245128/1172/2≈40.6932
정확값224470036452370786233437100968903695341/5516155581545943589100545444640500000
≈52.9641
정확값655564903226712365640942723144167824783/12377534307812879328381770116073340000
≈12.2709
정확값1309081910522544921259025453541354735683691569442197259871779381020629/106681882746591283929929893274890179266870752991362983228449897296875
두 배 h · 직선201735735389/3462/2≈45.2591
정확값339464475279417344423674700816391111062939/7500468341238374314526185344910613750000
≈52.5295
정확값946084345892493367573685512978153285139/18010547845838557099177244685938889200
≈7.27036
정확값306917034539198727920472146893031624442055977063114036338891312027823473091/42214857476897218161403922202516563944023542608026827460878209051639531250
h=1 · 직선11434318/252/2≈40.7255
정확값68934265997691122048467438544365081/1692656238977627155852853078500000
≈56.1406
정확값45503260565138379704269003334421503/810523871696013363894814144640000
≈15.4151
정확값1057425486021732563912043182333532099538015463202844960162383483/68596914413327940378246874336784057468649734632078413712000000
안쪽 1 제외 · 직선101408408227/1812/2≈45.0975
정확값11990724699507100505693355938032833251/265884359449894744317557764333800000
≈51.4198
정확값3821332986016170604045074639671570547/74316336588447274503403286323600000
≈6.32231
정확값24985188104737025414938416609311919252874411494948426001011906113/3951910310096415926942295144671139815626676276562042681043536000

기본 직선의 계수 단위·전체 잔차합

기본 직선의 계수 단위·전체 잔차합
쪽문턱 절편u 계수 β원점수 기울기 β/hrank/계수 수원행 질량전체 RSS
왼쪽≈43.8329
정확값4998001629124494878783503170298655733151/114024097400228895681636503816637500000
≈-2.64936
정확값-217505180981786547401363111449808/82097350128164804890778282747979
≈-0.264936
정확값-108752590490893273700681555724904/410486750640824024453891413739895
2/2245≈12273.6
정확값62976773759572124168533436187544045639720876391237153629/5131084383010300305673642671748687500000000000000000
오른쪽≈51.8175
정확값211197831053363679203393309750799115631/4075797979547096434855326377721297600
≈5.21418
정확값39847412737533353295044838872504500/7642121211650805815353736958227433
≈0.521418
정확값3984741273753335329504483887250450/7642121211650805815353736958227433
2/2206≈7939.68
정확값6067598872624058180595932105391275156015671432786203059/764212121165080581535373695822743300000000000000000

기본 대비의 가까운 원행 선형계수 미리보기 · 전체 계수는 정확 결과 파일

기본 대비의 가까운 원행 선형계수 미리보기 · 전체 계수는 정확 결과 파일
원행득표 차이대비 선형계수
920≈-0.590706
정확값-5907059/10000000
≈-0.0209839
정확값-47853303936702991622138129024703/2280481948004577913632730076332750
901≈-0.551429
정확값-2757147/5000000
≈-0.0212618
정확값-96974396203360933228114203198691/4560963896009155827265460152665500
889≈-0.528726
정확값-264363/500000
≈-0.0214232
정확값-9771052130836788475844560586497/456096389600915582726546015266550
977≈-0.484332
정확값-1210831/2500000
≈-0.0217403
정확값-49578444624295743932369332708173/2280481948004577913632730076332750
35≈-0.430465
정확값-4304647/10000000
≈-0.0221278
정확값-25231078250830605797196202331604/1140240974002288956816365038166375
1317≈-0.423017
정확값-4230171/10000000
≈-0.0221817
정확값-10116974058841227695186664382549/456096389600915582726546015266550
915≈-0.421676
정확값-105419/250000
≈-0.0221914
정확값-5060698133121547537933237305261/228048194800457791363273007633275
634≈-0.38625
정확값-309/800
≈-0.0224481
정확값-409540656315148426369552695775/18243855584036623309061840610662
1178≈-0.368199
정확값-920497/2500000
≈-0.0225795
정확값-51492102224930741082395022967659/2280481948004577913632730076332750
207≈-0.190335
정확값-380671/2000000
≈-0.0238915
정확값-10896823942160724805221647226861/456096389600915582726546015266550
511≈-0.115547
정확값-577733/5000000
≈-0.0244529
정확값-4461145940206082673184663648161/182438555840366233090618406106620
577≈-0.0789285
정확값-157857/2000000
≈-0.0247298
정확값-22558363904812664202662578461929/912192779201831165453092030533100
1176≈0.0356555
정확값71311/2000000
≈0.025944
정확값264355953405328900142933650281185/10189494948867741087138315944303244
1355≈0.0905573
정확값905573/10000000
≈0.0255026
정확값129929312309083336324425882658417/5094747474433870543569157972151622
1186≈0.0982136
정확값122767/1250000
≈0.0254413
정확값64808532286723090985428367357651/2547373737216935271784578986075811
614≈0.155255
정확값194069/1250000
≈0.0249867
정확값21216840667846261833448311828251/849124579072311757261526328691937
601≈0.234747
정확값2347469/10000000
≈0.0243592
정확값124103828019478537774152963858895/5094747474433870543569157972151622
324≈0.246477
정확값2464771/10000000
≈0.0242672
정확값82423347269652130506384352701463/3396498316289247029046105314767748
426≈0.337204
정확값3372043/10000000
≈0.0235605
정확값80023340769184884570105027405163/3396498316289247029046105314767748
782≈0.34045
정확값1702249/5000000
≈0.0235354
정확값239814167321796067243872857334659/10189494948867741087138315944303244
936≈0.352451
정확값110141/312500
≈0.0234427
정확값19905756208408285009580232412876/849124579072311757261526328691937
264≈0.396696
정확값3966957/10000000
≈0.0231021
정확값39233132243525119215433057424077/1698249158144623514523052657383874
171≈0.433964
정확값867927/2000000
≈0.0228169
정확값77497567629363802045946561347215/3396498316289247029046105314767748
1089≈0.434866
정확값869733/2000000
≈0.02281
정확값19368540072391413581876718537290/849124579072311757261526328691937

가까운 점을 강조하는 커널은 음수가 아니지만 문턱 외삽의 선형계수는 음수가 될 수 있습니다. 계수 합·일차 재현 조건과 특정 행의 영향도를 확인하세요. 민주당·공화당 중 어느 정당이 바람직하다는 판단을 이 통계량에 넣지 않습니다.

상원 원연구 · 선거 순서와 서로 다른 두 표적

전체 자료와 재현

전체 선택 CSV를 받아 원행과 단위를 확인하고 Python 또는 R을 실행하세요. 이 코드는 24개 설정의 대비와 양쪽 계수 해의 가족을 다시 계산합니다. Python은 정확 분수, R은 유한 정밀도 수치 계산이므로 작은 마지막 자릿수 차이는 가능합니다. 미정의 절편·대비는 0으로 채우지 않습니다. 신뢰구간·인과 전제는 이 계수 재현만으로 인증되지 않습니다.

원자료·저자: rdlocrand · Cattaneo, Frandsen & Titiunik · GPL-3.0 notice

선택·단위·변환·전체 출처 기록 · GNU GPL v3

전체 CSV · actual1390-US-Senate-original-prepared-records.csv

독립 Python 코드 · 독립 R 코드 · 전체 정확 결과·가중치 · R 수치 결과 · R 계수 해의 가족 · R 실행 환경 · 전체 설정 표 · 전체 해의 가족 표 · 전체 기준 수치

개인 기록 · 준비 소득과 이산 코호트

개인 사례는 RDHonest의 cghs 준비 표73954개 기록입니다. 제공 코드북의 단위는 연간 소득·1998년 영국 파운드이며, 연도는 개인이14세가 된 해입니다. 관측 위치를 보존하지만 두 열만으로 고유 개인 ID·가구 병합·원조사 모든 통제를 새로 알아냈다고 주장하지 않습니다. 원RDA의 binary64 값을17개 유효숫자로 내보내 다시 같은 값으로 돌아가는지 확인한 CSV입니다.

원행·연도 집계·기본 창의 서로 다른 수

원행·연도 집계·기본 창의 서로 다른 수
구분수
준비 원행73954
서로 다른 연도31
기본 양의 연도 좌/우5 / 6
기본 원행 빈도 좌/우5739 / 11501
기본 원행 총빈도17240

기본1947문턱은 공개 예제의 연도 비교입니다. 실제 법의 시행 시점과 생일을 이 거친 연도가 완벽히 구분한다고 보지 않으며, 실제 교육 수혜 열도 없습니다. 아래31개 연도는 모든 원기록을 정확히 집계한 것으로 평균뿐 아니라 빈도·평균 주위 제곱합을 보존합니다. 같은 연도의 빈도 증가는 새로운 점수 지원점을 만들지 않습니다.

전체31개 연도 · 빈도와 평균·withinSS 보존

전체31개 연도 · 빈도와 평균·withinSS 보존
14세 연도빈도평균 소득(£)withinSS(£²)최소 소득최대 소득
1935118≈5427.28
정확값320209497867584228513/59000000000000000
≈2.72328e+09
정확값40168365639064791571566468085811376572759/14750000000000000000000000000000
≈44.72
정확값1465385/32768
≈40816.4
정확값2612247/64
1936224≈6423.85
정확값102781528485093797957/16000000000000000
≈7.06059e+09
정확값56484725860505332654729955711731558400241/8000000000000000000000000000000
≈9.88
정확값4940000057220459/500000000000000
≈39614.6
정확값2535337/64
1937319≈5874.34
정확값468478267259836196901/79750000000000000
≈6.89971e+09
정확값1100504012949706442791989936230571180597113/159500000000000000000000000000000
≈11.96
정확값11960000038146973/1000000000000000
≈33981.5
정확값8699259/256
1938414≈7236.89
정확값374509133564233779907/51750000000000000
≈1.98853e+10
정확값2058126750599683186594967539644443750384771/103500000000000000000000000000000
≈9.88
정확값4940000057220459/500000000000000
≈59999.7
정확값7679959/128
1939517≈7131.68
정확값3687078705508232116683/517000000000000000
≈2.80034e+10
정확값3619434025158440131226457096117220252770081/129250000000000000000000000000000
≈14.56
정확값14560000419616699/1000000000000000
≈85999.7
정확값11007959/128
1940628≈7444.86
정확값46753704267692565917403/6280000000000000000
≈2.56121e+10
정확값1608437488088107032567767689246515145466399883/62800000000000000000000000000000000
≈7.8
정확값78000001907348633/10000000000000000
≈49999.6
정확값12799887/256
1941749≈8039.27
정확값60214112383999824523823/7490000000000000000
≈4.47071e+10
정확값13080330026177271494082687016417230730905697/292578125000000000000000000000000
≈4.68
정확값4679999828338623/1000000000000000
≈63758.8
정확값16322243/256
1942880≈8178.5
정확값7197083384840965270889/880000000000000000
≈5.42513e+10
정확값47741113386759377479650205146156214390807679/880000000000000000000000000000000
≈4.68
정확값4679999828338623/1000000000000000
≈79049.9
정확값10118385/128
19431027≈8320.33
정확값1708994765598869323737/205400000000000000
≈5.13242e+10
정확값1317749352364663243551388672916809597680887/25675000000000000000000000000000
≈9.88
정확값4940000057220459/500000000000000
≈66880.8
정확값2140187/32
19441166≈9312.07
정확값128040967097799733/13750000000000
≈3.55743e+11
정확값978293406501064691008636974128477501138359/2750000000000000000000000000000
≈19.76
정확값4940000057220459/250000000000000
≈519999
정확값16639983/32
19451231≈8924.74
정확값3433234182447418570509/384687500000000000
≈8.18938e+10
정확값252028213653123637362248515664120214196382537/3077500000000000000000000000000000
≈3.64
정확값9100000262260437/2500000000000000
≈120000
정확값15359985/128
19461435≈9764.55
정확값70060655361412763595139/7175000000000000000
≈5.3824e+11
정확값2413670125094935933959679179514370204909526983/4484375000000000000000000000000000
≈3.64
정확값9100000262260437/2500000000000000
≈519999
정확값16639983/32
19471419≈9684.5
정확값68711494281924962997409/7095000000000000000
≈1.30054e+11
정확값1153412051885070836126873023381272006123551297/8868750000000000000000000000000000
≈3.64
정확값9100000262260437/2500000000000000
≈145200
정확값4646387/32
19481563≈10138.2
정확값15846018393085479736319/1563000000000000000
≈2.31229e+11
정확값180705671739912485469630480570464777469763879/781500000000000000000000000000000
≈29.64
정확값14819999694824219/500000000000000
≈239999
정확값15359951/64
19491776≈10269.2
정확값6079383964018821716299/592000000000000000
≈1.94893e+11
정확값115376500152075730068869144229932139128558277/592000000000000000000000000000000
≈9.88
정확값4940000057220459/500000000000000
180000
19501943≈10330.4
정확값100360284870893955230673/9715000000000000000
≈2.22714e+11
정확값5409168407894456133462982817795427032229546109/24287500000000000000000000000000000
≈7.28
정확값9100000262260437/1250000000000000
≈219992
정확값7039735/32
19512244≈11039.7
정확값247730542120952606201161/22440000000000000000
≈6.67737e+11
정확값149840237598700902763795132142039792473359793043/224400000000000000000000000000000000
≈4.24
정확값42399997711181641/10000000000000000
≈500000
정확값1999999/4
19522556≈10951.5
정확값5598402362608242034907/511200000000000000
≈4.61009e+11
정확값1178339686041781677605030014693911179073698243/2556000000000000000000000000000000
≈4.68
정확값4679999828338623/1000000000000000
≈296292
정확값9481339/32
19532894≈11812.2
정확값17092198570063591003447/1447000000000000000
≈6.78253e+11
정확값490716035311498040072315608680103582831176413/723500000000000000000000000000000
6≈519999
정확값16639983/32
19542943≈11499.8
정확값338440536079869270324647/29430000000000000000
≈4.60808e+11
정확값67807904077840696951155926612117582893542940249/147150000000000000000000000000000000
2300800
19553223≈11808.5
정확값3805878371861087530850269/322300000000000000000
≈6.14125e+11
정확값9896628219692320719379581251657208838576823396481/16115000000000000000000000000000000000
≈0.12
정확값11999999731779099/100000000000000000
≈242707
정확값15533245/64
19563709≈12479.9
정확값462880136304588317870731/37090000000000000000
≈1.60996e+12
정확값74641864539159610323764605257707546280444925637/46362500000000000000000000000000000
≈4.68
정확값4679999828338623/1000000000000000
≈519999
정확값16639983/32
19574029≈12481.9
정확값5028943366920673102140899/402900000000000000000
≈8.36059e+11
정확값8421208287177262012728472344834469976894022584507/10072500000000000000000000000000000000
≈0.12
정확값11999999731779099/100000000000000000
368380
19584324≈13445.7
정확값290696764229407310485723/21620000000000000000
≈9.60018e+11
정확값103777894609988294204767212098626905930816118387/108100000000000000000000000000000000
≈8.84
정확값44200000762939453/5000000000000000
260000
19594215≈13436.7
정확값283178461467059850692479/21075000000000000000
≈1.05355e+12
정확값55508717406062936278500587382276504345951887887/52687500000000000000000000000000000
≈3.64
정확값9100000262260437/2500000000000000
325950
19604675≈14239.6
정확값41606303675626218318969/2921875000000000000
≈1.90741e+12
정확값111464447588972814635893459728754632471479685473/58437500000000000000000000000000000
2487500
19615458≈13966.9
정확값7623125470950137823819499/545800000000000000000
≈1.41083e+12
정확값77003290733070681729947447335925741644282633638857/54580000000000000000000000000000000000
≈0.12
정확값11999999731779099/100000000000000000
395602
19624892≈14276.8
정확값69841939117362022399871/4892000000000000000
≈1.55542e+12
정확값7609133937455491100230936105540551092656309171/4892000000000000000000000000000000
1440232
19634654≈14896.8
정확값693294885403842926025323/46540000000000000000
≈1.54657e+12
정확값719772696070681953256542335304930479693603921677/465400000000000000000000000000000000
1460000
19644417≈15537.5
정확값686289453440113067627059/44170000000000000000
≈2.09608e+12
정확값115729977155524619578114066246441764838982221469/55212500000000000000000000000000000
1420240
19654312≈15017.7
정확값578181884988069534301/38500000000000000
≈1.36776e+12
정확값300906390846327170757544985226558558941509/220000000000000000000000000000
1336000

기본 소득 수준 대비는 약−302.48파운드이며 추가 교육1년의 수익률이 아닙니다. 원논문·정오표의 로그 소득·교육 첫 단계·통제 변수·표본을 모두 복제한 것이 아닙니다. 정오표에서 자료 병합·샘플 조건과 추가 조사 연도가 중요한 이유를 확인하세요. 연속성만으로 이31개 이산 지원점의 문턱 반사실을 비모수적으로 식별할 수는 없습니다.

전체 8개 설정 · 같은 완전 기본 프레임, 창·커널·차수는 명시

전체 8개 설정 · 같은 완전 기본 프레임, 창·커널·차수는 명시
설정h차수적합 행원행 질량지원점 좌/우rank 좌/우왼쪽 절편오른쪽 절편대비
삼각 · 상수6011172405/61/1≈9220.59
정확값142388921639374693234261/15442500000000000000
≈10257
정확값58186059973708018660507/5672812500000000000
≈1036.42
정확값96845415047062214615357993/93442567500000000000000
삼각 · 직선 기본6111172405/62/2≈10046.7
정확값12241081390055519189759419523/1218416345000000000000000
≈9744.24
정확값8697077598883819271717576461/892535510000000000000000
≈-302.478
정확값-65787664242262518332003779479021337/217495970775382190000000000000000
삼각 · 이차식6211172405/63/3≈10160.3
정확값19044279359935466665793791442771/1874385874595000000000000000
≈9734.98
정확값18689818548094176650820209101833/1919862083398000000000000000
≈-425.297
정확값-1530457963487878591748183459331809223583223/3598562370291739059473810000000000000000
균등 · 직선6113208836/72/2≈9972.56
정확값11727118484762772681671632247/1175939030000000000000000
≈9630.05
정확값12944232897796575820427872187/1344149990000000000000000
≈-342.506
정확값-13534437902342538621144786588599223/39515960885377742500000000000000
절반 h · 직선31574242/32/2≈10604.4
정확값46831138335402746796172789/4416212500000000000000
≈9720.98
정확값39775733646030513405787883/4091740500000000000000
≈-883.386
정확값-15962773263799474193087424496117/18069995542856250000000000000
두 배 h · 직선121234121311/122/2≈9989.42
정확값533724152062089506436982569757/53428962595000000000000000
≈9690.34
정확값69571431838244257254794431767593/7179463863900000000000000000
≈-299.078
정확값-22944766730859153850346744559907274777693/76718261247293454164100000000000000000
h=1 · 직선11114190/10/1미정의≈9684.5
정확값68711494281924962997409/7095000000000000000
미정의
안쪽 1 제외 · 직선6110158215/52/2≈10046.7
정확값12241081390055519189759419523/1218416345000000000000000
≈9831.86
정확값3557457826595832039511383261/361829510000000000000000
≈-214.853
정확값-18943943732273983082178521025944537/88171797817468190000000000000000

기본 직선의 계수 단위·전체 잔차합

기본 직선의 계수 단위·전체 잔차합
쪽문턱 절편u 계수 β원점수 기울기 β/hrank/계수 수원행 질량전체 RSS
왼쪽≈10046.7
정확값12241081390055519189759419523/1218416345000000000000000
≈2288.73
정확값1394315790420315445612118469/609208172500000000000000
≈381.456
정확값464771930140105148537372823/1218416345000000000000000
2/25739≈7.0738e+11
정확값12928253507821380976649273611329974843510478007116767/18276245175000000000000000000000000000000
오른쪽≈9744.24
정확값8697077598883819271717576461/892535510000000000000000
≈1590.2
정확값709656567074319846629816113/446267755000000000000000
≈265.034
정확값709656567074319846629816113/2677606530000000000000000
2/211501≈8.63561e+11
정확값17342065067545662886527267479165349704907188714471489/20082048975000000000000000000000000000000

첫6개 실제 준비 기록 미리보기 · 전체73954행 CSV

첫6개 실제 준비 기록 미리보기 · 전체73954행 CSV
원행연도준비 소득 값(£)
11945≈1614.6
정확값13226803/8192
21953≈25460.8
정확값13035909/512
31949≈1859.52
정확값3808297/2048
41956≈12551.8
정확값6426501/512
51957≈5009.68
정확값10259825/2048
61939≈1399.84
정확값11467489/8192

저자의2008년 정오표 · 표본과 처리 기록 확인

전체 자료와 재현

전체 선택 CSV를 받아 원행과 단위를 확인하고 Python 또는 R을 실행하세요. 이 코드는 24개 설정의 대비와 양쪽 계수 해의 가족을 다시 계산합니다. Python은 정확 분수, R은 유한 정밀도 수치 계산이므로 작은 마지막 자릿수 차이는 가능합니다. 미정의 절편·대비는 0으로 채우지 않습니다. 신뢰구간·인과 전제는 이 계수 재현만으로 인증되지 않습니다.

원자료·저자: RDHonest cghs · Oreopoulos · 공급 코드북 · GPL-3 package notice

선택·단위·변환·전체 출처 기록 · GNU GPL v3

전체 CSV · actual73954-UK-worker-prepared-earnings-17digit.csv · 전체 CSV · derived31-worker-year-mean-count-and-withinSS.csv

독립 Python 코드 · 독립 R 코드 · 전체 정확 결과·가중치 · R 수치 결과 · R 계수 해의 가족 · R 실행 환경 · 전체 설정 표 · 전체 해의 가족 표 · 전체 기준 수치

기업 반례 · 실제 단가와 임의 기준

기업 사례는 UCI Online Retail 원워크북의 첫1000상품 줄입니다. 원래8필드와 워크시트 행 위치를 모두 보존합니다. 양의 수량·양의 단가989줄을 분석하고 같은 수량에서39개 그룹으로 집계합니다. 상품 종류가 서로 다르고 한 회사 안의 줄이므로 이를 서로 다른989개 기업이나 무작위1000개 주문이라고 부르지 않습니다.

실제 첫 송장536365의7개 줄 · 원상품 코드 유지

실제 첫 송장536365의7개 줄 · 원상품 코드 유지
워크시트 행송장상품 코드수량원단가(£/개)
253636585123A6≈2.55
정확값12749999999999999/5000000000000000
3536365710536≈3.39
정확값339/100
453636584406B8≈2.75
정확값11/4
553636584029G6≈3.39
정확값339/100
653636584029E6≈3.39
정확값339/100
7536365227522≈7.65
정확값153/20
8536365217306≈4.25
정확값17/4

수량6의 기준은 교육용으로 선택했습니다. 파일에서6개부터 할인·무료배송을 준다는 외생 배정 규칙을 찾은 것이 아닙니다. 따라서 기본 대비 약0.2507파운드/개를 할인 효과나 인과적 가격 변화라고 부르지 않습니다. 상품 종류·구매 선택·단가와 수량이 함께 결정될 수 있다는 반례입니다.

원선택과 실제 분석 단위

원선택과 실제 분석 단위
구분수
첫 원상품 줄1000
양의 수량·단가989
제외한 원줄11
전체 수량 그룹39
기본 양의 그룹 좌/우4 / 5
기본 원행 빈도 좌/우301 / 196

전체39개 수량 그룹 · 원가격 토큰에서 계산

전체39개 수량 그룹 · 원가격 토큰에서 계산
수량빈도평균 단가(£)withinSS(£²)최소 단가최대 단가
1232≈3.61737
정확값41961499999999999891/11600000000000000000
≈27656.9
정확값3208197719949999999284806200000000092419/116000000000000000000000000000000000
≈0.29
정확값14499999999999999/50000000000000000
165
2132≈4.34621
정확값9561666666666666599/2200000000000000000
≈3323.49
정확값365583427666666662467443333333333607753/110000000000000000000000000000000000
≈0.42
정확값21/50
≈35.75
정확값143/4
395≈3.21389
정확값200868421052631579/62500000000000000
≈578.738
정확값904277904605263162478763157894737597/1562500000000000000000000000000000
≈0.42
정확값21/50
18
452≈4.7
정확값2443999999999999971/520000000000000000
≈492.525
정확값512225999999999980645600000000001527/1040000000000000000000000000000000
≈0.85
정확값17/20
≈16.95
정확값339/20
522≈1.85455
정확값203999999999999999/110000000000000000
≈20.1845
정확값11101499999999999847000000000000021/550000000000000000000000000000000
≈0.85
정확값17/20
≈4.95
정확값99/20
6122≈2.7118
정확값1654199999999999987/610000000000000000
≈289.385
정확값882625480000000002566200000000001417/3050000000000000000000000000000000
≈0.42
정확값21/50
≈8.5
정확값17/2
74≈2.2
정확값11/5
≈0.885
정확값177/200
≈1.65
정확값33/20
≈2.95
정확값59/20
840≈3.873
정확값1549199999999999997/400000000000000000
≈148.167
정확값592666559999999981895200000000004511/4000000000000000000000000000000000
≈1.45
정확값29/20
≈10.95
정확값219/20
94≈3.325
정확값66499999999999999/20000000000000000
≈12.0075
정확값1200750000000000031000000000000003/100000000000000000000000000000000
≈0.85
정확값17/20
≈4.95
정확값99/20
1026≈1.98923
정확값1293000000000000001/650000000000000000
≈43.2234
정확값28095199999999999925160000000000001/650000000000000000000000000000000
≈0.42
정확값21/50
≈6.75
정확값27/4
12116≈1.58284
정확값4590249999999999983/2900000000000000000
≈111.463
정확값8081035687500000052654500000000025927/72500000000000000000000000000000000
≈0.29
정확값14499999999999999/50000000000000000
≈5.95
정확값119/20
141≈0.42
정확값21/50
0≈0.42
정확값21/50
≈0.42
정확값21/50
168≈2.88125
정확값461/160
≈87.7283
정확값7018263/80000
≈0.42
정확값21/50
≈10.95
정확값219/20
181≈2.95
정확값59/20
0≈2.95
정확값59/20
≈2.95
정확값59/20
202≈1.25
정확값5/4
≈0.32
정확값8/25
≈0.85
정확값17/20
≈1.65
정확값33/20
231≈4.25
정확값17/4
0≈4.25
정확값17/4
≈4.25
정확값17/4
2451≈1.31765
정확값1120000000000000009/850000000000000000
≈58.9113
정확값1251865499999999982603500000000000363/21250000000000000000000000000000000
≈0.12
정확값3/25
≈4.25
정확값17/4
251≈0.42
정확값21/50
0≈0.42
정확값21/50
≈0.42
정확값21/50
281≈0.21
정확값21/100
0≈0.21
정확값21/100
≈0.21
정확값21/100
301≈0.21
정확값21/100
0≈0.21
정확값21/100
≈0.21
정확값21/100
325≈3.46
정확값86499999999999999/25000000000000000
≈72.4356
정확값2263612500000000011375000000000001/31250000000000000000000000000000
≈0.42
정확값21/50
≈10.95
정확값219/20
3611≈2.08636
정확값459/220
≈22.8187
정확값627513/27500
≈0.65
정확값13/20
≈4.95
정확값99/20
406≈2.76667
정확값20749999999999999/7500000000000000
≈6.68833
정확값125406250000000006500000000000001/18750000000000000000000000000000
≈1.45
정확값29/20
≈4.95
정확값99/20
4817≈1.62176
정확값68925000000000001/42500000000000000
≈18.0726
정확값120013671875000016087500000000001/6640625000000000000000000000000
≈0.65
정확값13/20
≈4.65
정확값11625000000000001/2500000000000000
502≈1.65
정확값33/20
≈0.08
정확값2/25
≈1.45
정확값29/20
≈1.85
정확값37/20
642≈2.55
정확값12749999999999999/5000000000000000
0≈2.55
정확값12749999999999999/5000000000000000
≈2.55
정확값12749999999999999/5000000000000000
723≈1.9
정확값19/10
≈3.3482
정확값16741/5000
≈1.06
정확값53/50
≈3.39
정확값339/100
801≈2.55
정확값12749999999999999/5000000000000000
0≈2.55
정확값12749999999999999/5000000000000000
≈2.55
정확값12749999999999999/5000000000000000
9610≈1.288
정확값161/125
≈3.56756
정확값89189/25000
≈0.38
정확값19/50
≈1.85
정확값37/20
1004≈1.4175
정확값567/400
≈0.648675
정확값25947/40000
≈0.72
정확값18/25
≈1.65
정확값33/20
1201≈0.42
정확값21/50
0≈0.42
정확값21/50
≈0.42
정확값21/50
1281≈2.55
정확값12749999999999999/5000000000000000
0≈2.55
정확값12749999999999999/5000000000000000
≈2.55
정확값12749999999999999/5000000000000000
1445≈0.59
정확값73750000000000001/125000000000000000
≈0.1108
정확값86562499999999997500000000000001/781250000000000000000000000000000
≈0.32
정확값8/25
≈0.72
정확값18/25
1923≈3.52
정확값88/25
≈0.135
정확값27/200
≈3.37
정확값337/100
≈3.82
정확값191/50
2001≈1.06
정확값53/50
0≈1.06
정확값53/50
≈1.06
정확값53/50
2881≈0.1
정확값1/10
0≈0.1
정확값1/10
≈0.1
정확값1/10
4322≈1.35
정확값27/20
≈0.02
정확값1/50
≈1.25
정확값5/4
≈1.45
정확값29/20
4801≈3.39
정확값339/100
0≈3.39
정확값339/100
≈3.39
정확값339/100
6001≈0.24
정확값6/25
0≈0.24
정확값6/25
≈0.24
정확값6/25

전체 8개 설정 · 같은 완전 기본 프레임, 창·커널·차수는 명시

전체 8개 설정 · 같은 완전 기본 프레임, 창·커널·차수는 명시
설정h차수적합 행원행 질량지원점 좌/우rank 좌/우왼쪽 절편오른쪽 절편대비
삼각 · 상수5094974/51/1≈3.67622
정확값10403699999999999933/2830000000000000000
≈2.86215
정확값111623999999999999287/39000000000000000000
≈-0.814065
정확값-8984837999999999940479/11037000000000000000000
삼각 · 직선 기본5194974/52/2≈2.51709
정확값1267355937499999984557/503500000000000000000
≈2.76782
정확값3575463999999999973039/1291800000000000000000
≈0.250723
정확값1630757239375000063744039/6504213000000000000000000
삼각 · 이차식5294974/53/3≈0.706786
정확값12572841399999999550767/17788760000000000000000
≈2.69836
정확값67071069999999999475423/24856200000000000000000
≈1.99158
정확값11007476334581500022933136751/5527012203900000000000000000
균등 · 직선51107295/52/2≈3.50694
정확값17078814499999999821811/4870000000000000000000
≈2.86882
정확값1447607999999999989519/504600000000000000000
≈-0.638121
정확값-7840594183499999805641503/12287010000000000000000000
절반 h · 직선≈2.5
정확값5/2
152402/32/2≈-0.990909
정확값-1133599999999999957/1144000000000000000
≈2.70185
정확값711938399999999994419/263500000000000000000
≈3.69276
정확값278290282399999995571209/75361000000000000000000
두 배 h · 직선101128465/72/2≈3.34896
정확값676649986249999992798081/202048000000000000000000
≈2.92841
정확값265466528499999998210623/90652000000000000000000
≈-0.420543
정확값-1925673350791749927167920727/4579013824000000000000000000
h=1 · 직선1111220/10/1미정의≈2.7118
정확값1654199999999999987/610000000000000000
미정의
안쪽 1 제외 · 직선5183754/42/2≈2.51709
정확값1267355937499999984557/503500000000000000000
≈4.46378
정확값184353999999999999689/41300000000000000000
≈1.94669
정확값202402193906250002406037/103972750000000000000000

기본 직선의 계수 단위·전체 잔차합

기본 직선의 계수 단위·전체 잔차합
쪽문턱 절편u 계수 β원점수 기울기 β/hrank/계수 수원행 질량전체 RSS
왼쪽≈2.51709
정확값1267355937499999984557/503500000000000000000
≈-2.18981
정확값-220513437500000001331/100700000000000000000
≈-0.437961
정확값-220513437500000001331/503500000000000000000
2/2301≈1297.09
정확값10204484857988281075260943125000013082783/7867187500000000000000000000000000000
오른쪽≈2.76782
정확값3575463999999999973039/1291800000000000000000
≈0.958124
정확값82513666666666668931/86120000000000000000
≈0.191625
정확값82513666666666668931/430600000000000000000
2/2196≈419.592
정확값135507353035999999430350168000000373906057/322950000000000000000000000000000000000

직접 해보기: 기준을6에서 다른 수량으로 바꾸면 어떤 상품과 행이 바뀌는지 보세요. 실제 처치 배정이 없는 상태에서 대비가 변하는 것은 새로운 정책 효과를 발견한 것이 아닙니다. 미리보기보다 많은 원줄, 날짜의 원워크북 수치 표현, 송장·상품·원단가 모두는 전체 CSV에서 추적할 수 있습니다.

전체 자료와 재현

전체 선택 CSV를 받아 원행과 단위를 확인하고 Python 또는 R을 실행하세요. 이 코드는 24개 설정의 대비와 양쪽 계수 해의 가족을 다시 계산합니다. Python은 정확 분수, R은 유한 정밀도 수치 계산이므로 작은 마지막 자릿수 차이는 가능합니다. 미정의 절편·대비는 0으로 채우지 않습니다. 신뢰구간·인과 전제는 이 계수 재현만으로 인증되지 않습니다.

원자료·저자: Daqing Chen (2015), Online Retail, UCI · CC BY 4.0

선택·단위·변환·전체 출처 기록 · GNU GPL v3

전체 CSV · actual1000-first-retail-worksheet-records.csv · 전체 CSV · derived39-retail-quantity-mean-count-and-withinSS.csv

독립 Python 코드 · 독립 R 코드 · 전체 정확 결과·가중치 · R 수치 결과 · R 계수 해의 가족 · R 실행 환경 · 전체 설정 표 · 전체 해의 가족 표 · 전체 기준 수치

The case bundle connects complete selected records, extraction positions, units, aggregation rules and results across bandwidths. Its targets differ: a party’s future vote share, prepared worker earnings, and product prices without an externally assigned treatment threshold. Authentic records do not make their causal interpretations identical.

Choose one setting and verify denominators, support, intercepts and contrast before reproducing it in code. Short display values support comparison; exact-value disclosures and full result files preserve original numeric detail. Undefined results and display-range limits remain distinct from exact zero. Read figures and all settings rather than choosing one favored number.

National institution · Actual Senate elections

The unit is a U.S. Senate election. All 1,390 released rdlocrand prepared rows preserve the original states, years, margins, future vote shares and other fields. These are neither observations of a panel of countries nor individual voters. Original row positions remain separate even where state/year labels repeat; no politician identity is invented.

Selection, complete frame and default-window denominators

Selection, complete frame and default-window denominators
StageCount
Released original rows1390
Complete margin/outcome rows1297
Incomplete outcome-frame exclusions93
Default positive rows L/R245 / 206
Years and states1914–2010 / 50

The indices t, t+1 and t+2 denote successive elections in one state. The t+1 election concerns its other Senate seat, and t+2 is the next election for the original seat. The latter does not mean two calendar years. The outcome demvoteshfor2 is the later Democratic party vote share, not one candidate’s reelection indicator. The displayed preview selects the twelve closest complete records on each side; the full 1,390 rows remain in the CSV.

Preview of 24 actual near-cutoff records with retained source positions

Preview of 24 actual near-cutoff records with retained source positions
Source rowStateYearMargin (pp)Later same-seat vote share (%)
920Kentucky1998≈-0.590706
Exact value-5907059/10000000
≈49.3432
Exact value2467159/50000
901Kentucky1920≈-0.551429
Exact value-2757147/5000000
≈51.8369
Exact value5183689/100000
889Texas1978≈-0.528726
Exact value-264363/500000
≈41.4468
Exact value103617/2500
977Oklahoma1974≈-0.484332
Exact value-1210831/2500000
≈43.5478
Exact value4354781/100000
35Maine1934≈-0.430465
Exact value-4304647/10000000
≈41.2734
Exact value4127341/100000
1317Oregon1968≈-0.423017
Exact value-4230171/10000000
≈44.8404
Exact value4484039/100000
915Kentucky1984≈-0.421676
Exact value-105419/250000
≈47.8135
Exact value956269/20000
634Virginia1978≈-0.38625
Exact value-309/800
≈29.945
Exact value5989/200
1178Nevada1974≈-0.368199
Exact value-920497/2500000
≈37.2987
Exact value1864937/50000
207New Jersey1954≈-0.190335
Exact value-380671/2000000
≈43.2111
Exact value2160557/50000
511Missouri1944≈-0.115547
Exact value-577733/5000000
≈53.5883
Exact value2679413/50000
577North Dakota1974≈-0.0789285
Exact value-157857/2000000
≈28.9563
Exact value2895627/100000
1176Nevada1964≈0.0356555
Exact value71311/2000000
≈57.6491
Exact value1152983/20000
1355Washington2000≈0.0905573
Exact value905573/10000000
≈56.8527
Exact value568527/10000
1186Nevada1998≈0.0982136
Exact value122767/1250000
≈61.0819
Exact value6108191/100000
614South Dakota2002≈0.155255
Exact value194069/1250000
≈62.4917
Exact value6249169/100000
601South Dakota1962≈0.234747
Exact value2347469/10000000
≈56.7896
Exact value5678963/100000
324Indiana1970≈0.246477
Exact value2464771/10000000
≈40.4627
Exact value161851/4000
426Iowa1938≈0.337204
Exact value3372043/10000000
≈48.3733
Exact value2418667/50000
782Louisiana1996≈0.34045
Exact value1702249/5000000
≈51.7005
Exact value5170049/100000
936Maryland1946≈0.352451
Exact value110141/312500
≈47.4624
Exact value4746243/100000
264Pennsylvania1956≈0.396696
Exact value3966957/10000000
≈51.0641
Exact value1276603/25000
171Delaware1922≈0.433964
Exact value867927/2000000
≈39.05
Exact value781001/20000
1089Colorado1956≈0.434866
Exact value869733/2000000
≈45.5765
Exact value911529/20000

The default triangular kernel with h=10 and degree 1 gives a contrast of approximately 7.985 percentage points. This is a declared finite local fit. It does not replicate the study’s optimal bandwidth, randomization tests or RBC intervals. Compare the positive-weight records, score support and approximation as windows change. Within-state dependence and causal design assumptions require separate analysis.

All eight settings on one complete base frame; window, kernel and degree are declared

All eight settings on one complete base frame; window, kernel and degree are declared
SettinghDegreeFit rowsSource massScores L/RRank L/RLeft interceptRight interceptContrast
Triangular constant100451451245/2061/1≈44.7272
Exact value55803417483542547/1247640404900000
≈53.433
Exact value57837605493319653/1082433148100000
≈8.70579
Exact value11757064674682257024545289/1350487331172665665690000
Default triangular linear101451451245/2062/2≈43.8329
Exact value4998001629124494878783503170298655733151/114024097400228895681636503816637500000
≈51.8175
Exact value211197831053363679203393309750799115631/4075797979547096434855326377721297600
≈7.98469
Exact value4638496396233892984465509367743966329792880038545012143445694870794632203/580923982254417830414847009352420559636198380333651249340836211025000000
Triangular quadratic102451451245/2063/3≈40.8415
Exact value157253624990221349256617732605491057887507835149253368557660521928646729140063/3850335041234392695835582369850575131138111827610176002770998991271724600000
≈52.7634
Exact value2049105474204940905308827633402728956806028015459426972596323455930911877247191/38835763171473161275103245180180660208723790690222048424081634188268163700000
≈11.9218
Exact value3565356145081222205764247219804283866636261091017344683944913133472995481624597857011786967214144660009033538003687973564625405448185503823163926571/299061399584406447346336172454560544847572317776319883926169941247103847793030344683199606058418764879217272523740906820695196134552636348234040000
Uniform linear101451451245/2062/2≈45.3018
Exact value70715260935229632145960731/1560980125716346154800000
≈52.2006
Exact value31957905723602607618276601/612213063324511010950000
≈6.89879
Exact value131856983462225565014814157656987331067056607/19113048491069691745348994720685863901200000
Half-h linear51245245128/1172/2≈40.6932
Exact value224470036452370786233437100968903695341/5516155581545943589100545444640500000
≈52.9641
Exact value655564903226712365640942723144167824783/12377534307812879328381770116073340000
≈12.2709
Exact value1309081910522544921259025453541354735683691569442197259871779381020629/106681882746591283929929893274890179266870752991362983228449897296875
Double-h linear201735735389/3462/2≈45.2591
Exact value339464475279417344423674700816391111062939/7500468341238374314526185344910613750000
≈52.5295
Exact value946084345892493367573685512978153285139/18010547845838557099177244685938889200
≈7.27036
Exact value306917034539198727920472146893031624442055977063114036338891312027823473091/42214857476897218161403922202516563944023542608026827460878209051639531250
h=1 linear11434318/252/2≈40.7255
Exact value68934265997691122048467438544365081/1692656238977627155852853078500000
≈56.1406
Exact value45503260565138379704269003334421503/810523871696013363894814144640000
≈15.4151
Exact value1057425486021732563912043182333532099538015463202844960162383483/68596914413327940378246874336784057468649734632078413712000000
Donut-one linear101408408227/1812/2≈45.0975
Exact value11990724699507100505693355938032833251/265884359449894744317557764333800000
≈51.4198
Exact value3821332986016170604045074639671570547/74316336588447274503403286323600000
≈6.32231
Exact value24985188104737025414938416609311919252874411494948426001011906113/3951910310096415926942295144671139815626676276562042681043536000

Default linear coefficient units and full squared-error criterion

Default linear coefficient units and full squared-error criterion
SideCutoff interceptScaled βPhysical slope β/hRank/parametersSource massFull RSS
left≈43.8329
Exact value4998001629124494878783503170298655733151/114024097400228895681636503816637500000
≈-2.64936
Exact value-217505180981786547401363111449808/82097350128164804890778282747979
≈-0.264936
Exact value-108752590490893273700681555724904/410486750640824024453891413739895
2/2245≈12273.6
Exact value62976773759572124168533436187544045639720876391237153629/5131084383010300305673642671748687500000000000000000
right≈51.8175
Exact value211197831053363679203393309750799115631/4075797979547096434855326377721297600
≈5.21418
Exact value39847412737533353295044838872504500/7642121211650805815353736958227433
≈0.521418
Exact value3984741273753335329504483887250450/7642121211650805815353736958227433
2/2206≈7939.68
Exact value6067598872624058180595932105391275156015671432786203059/764212121165080581535373695822743300000000000000000

Near-cutoff source linear coefficients; complete weights in the exact-results file

Near-cutoff source linear coefficients; complete weights in the exact-results file
Source rowMarginContrast coefficient
920≈-0.590706
Exact value-5907059/10000000
≈-0.0209839
Exact value-47853303936702991622138129024703/2280481948004577913632730076332750
901≈-0.551429
Exact value-2757147/5000000
≈-0.0212618
Exact value-96974396203360933228114203198691/4560963896009155827265460152665500
889≈-0.528726
Exact value-264363/500000
≈-0.0214232
Exact value-9771052130836788475844560586497/456096389600915582726546015266550
977≈-0.484332
Exact value-1210831/2500000
≈-0.0217403
Exact value-49578444624295743932369332708173/2280481948004577913632730076332750
35≈-0.430465
Exact value-4304647/10000000
≈-0.0221278
Exact value-25231078250830605797196202331604/1140240974002288956816365038166375
1317≈-0.423017
Exact value-4230171/10000000
≈-0.0221817
Exact value-10116974058841227695186664382549/456096389600915582726546015266550
915≈-0.421676
Exact value-105419/250000
≈-0.0221914
Exact value-5060698133121547537933237305261/228048194800457791363273007633275
634≈-0.38625
Exact value-309/800
≈-0.0224481
Exact value-409540656315148426369552695775/18243855584036623309061840610662
1178≈-0.368199
Exact value-920497/2500000
≈-0.0225795
Exact value-51492102224930741082395022967659/2280481948004577913632730076332750
207≈-0.190335
Exact value-380671/2000000
≈-0.0238915
Exact value-10896823942160724805221647226861/456096389600915582726546015266550
511≈-0.115547
Exact value-577733/5000000
≈-0.0244529
Exact value-4461145940206082673184663648161/182438555840366233090618406106620
577≈-0.0789285
Exact value-157857/2000000
≈-0.0247298
Exact value-22558363904812664202662578461929/912192779201831165453092030533100
1176≈0.0356555
Exact value71311/2000000
≈0.025944
Exact value264355953405328900142933650281185/10189494948867741087138315944303244
1355≈0.0905573
Exact value905573/10000000
≈0.0255026
Exact value129929312309083336324425882658417/5094747474433870543569157972151622
1186≈0.0982136
Exact value122767/1250000
≈0.0254413
Exact value64808532286723090985428367357651/2547373737216935271784578986075811
614≈0.155255
Exact value194069/1250000
≈0.0249867
Exact value21216840667846261833448311828251/849124579072311757261526328691937
601≈0.234747
Exact value2347469/10000000
≈0.0243592
Exact value124103828019478537774152963858895/5094747474433870543569157972151622
324≈0.246477
Exact value2464771/10000000
≈0.0242672
Exact value82423347269652130506384352701463/3396498316289247029046105314767748
426≈0.337204
Exact value3372043/10000000
≈0.0235605
Exact value80023340769184884570105027405163/3396498316289247029046105314767748
782≈0.34045
Exact value1702249/5000000
≈0.0235354
Exact value239814167321796067243872857334659/10189494948867741087138315944303244
936≈0.352451
Exact value110141/312500
≈0.0234427
Exact value19905756208408285009580232412876/849124579072311757261526328691937
264≈0.396696
Exact value3966957/10000000
≈0.0231021
Exact value39233132243525119215433057424077/1698249158144623514523052657383874
171≈0.433964
Exact value867927/2000000
≈0.0228169
Exact value77497567629363802045946561347215/3396498316289247029046105314767748
1089≈0.434866
Exact value869733/2000000
≈0.02281
Exact value19368540072391413581876718537290/849124579072311757261526328691937

Kernel weights are nonnegative, but the linear coefficients used for extrapolation can be negative. Check the coefficient-sum and linear-reproduction conditions and the influence of individual records. These statistics express no judgment about which political party is preferable.

Original Senate study: election sequence and the two targets

Complete records and reproduction

Download the complete selected records, check their units and rerun Python or R. The code rebuilds twenty-four settings and the full coefficient families on both sides. Python uses exact fractions and R uses finite-precision arithmetic, so final digits can differ slightly. Undefined intercepts and contrasts remain undefined. Reproducing coefficients certifies neither confidence intervals nor causal assumptions.

Data and creators: rdlocrand · Cattaneo, Frandsen & Titiunik · GPL-3.0 notice

Selection, units, transformations and full provenance · GNU GPL v3

Complete CSV · actual1390-US-Senate-original-prepared-records.csv

Standalone Python · Standalone R · Complete exact results and weights · R numeric results · R coefficient families · R execution environment · All-setting table · All-family table · Complete reference metrics

Individual records · Prepared earnings and discrete cohorts

The individual case uses 73,954 records in the released RDHonest cghs prepared table. The supplied codebook describes annual earnings in 1998 UK pounds and the year the person turned fourteen. Retained row positions do not recover a unique person ID, a household merge or the full set of survey controls. The CSV uses seventeen-significant-digit tokens that roundtrip to the retained RDA binary64 values.

Original records, year aggregates and default-window counts

Original records, year aggregates and default-window counts
StageCount
Prepared records73954
Distinct years31
Default positive-score groups L/R5 / 6
Default underlying frequency L/R5739 / 11501
Default total underlying frequency17240

The 1947 cutoff is the public example’s annual comparison. A coarse year does not perfectly recover the reform’s precise timing and birth dates, and actual schooling uptake is unavailable. The thirty-one year rows aggregate every retained record while preserving frequency, mean and the within-group sum of squares. More records within one year do not create new score support.

All 31 year groups with frequency, mean and withinSS

All 31 year groups with frequency, mean and withinSS
Year turned 14FrequencyMean earnings (£)WithinSS (£²)MinimumMaximum
1935118≈5427.28
Exact value320209497867584228513/59000000000000000
≈2.72328e+09
Exact value40168365639064791571566468085811376572759/14750000000000000000000000000000
≈44.72
Exact value1465385/32768
≈40816.4
Exact value2612247/64
1936224≈6423.85
Exact value102781528485093797957/16000000000000000
≈7.06059e+09
Exact value56484725860505332654729955711731558400241/8000000000000000000000000000000
≈9.88
Exact value4940000057220459/500000000000000
≈39614.6
Exact value2535337/64
1937319≈5874.34
Exact value468478267259836196901/79750000000000000
≈6.89971e+09
Exact value1100504012949706442791989936230571180597113/159500000000000000000000000000000
≈11.96
Exact value11960000038146973/1000000000000000
≈33981.5
Exact value8699259/256
1938414≈7236.89
Exact value374509133564233779907/51750000000000000
≈1.98853e+10
Exact value2058126750599683186594967539644443750384771/103500000000000000000000000000000
≈9.88
Exact value4940000057220459/500000000000000
≈59999.7
Exact value7679959/128
1939517≈7131.68
Exact value3687078705508232116683/517000000000000000
≈2.80034e+10
Exact value3619434025158440131226457096117220252770081/129250000000000000000000000000000
≈14.56
Exact value14560000419616699/1000000000000000
≈85999.7
Exact value11007959/128
1940628≈7444.86
Exact value46753704267692565917403/6280000000000000000
≈2.56121e+10
Exact value1608437488088107032567767689246515145466399883/62800000000000000000000000000000000
≈7.8
Exact value78000001907348633/10000000000000000
≈49999.6
Exact value12799887/256
1941749≈8039.27
Exact value60214112383999824523823/7490000000000000000
≈4.47071e+10
Exact value13080330026177271494082687016417230730905697/292578125000000000000000000000000
≈4.68
Exact value4679999828338623/1000000000000000
≈63758.8
Exact value16322243/256
1942880≈8178.5
Exact value7197083384840965270889/880000000000000000
≈5.42513e+10
Exact value47741113386759377479650205146156214390807679/880000000000000000000000000000000
≈4.68
Exact value4679999828338623/1000000000000000
≈79049.9
Exact value10118385/128
19431027≈8320.33
Exact value1708994765598869323737/205400000000000000
≈5.13242e+10
Exact value1317749352364663243551388672916809597680887/25675000000000000000000000000000
≈9.88
Exact value4940000057220459/500000000000000
≈66880.8
Exact value2140187/32
19441166≈9312.07
Exact value128040967097799733/13750000000000
≈3.55743e+11
Exact value978293406501064691008636974128477501138359/2750000000000000000000000000000
≈19.76
Exact value4940000057220459/250000000000000
≈519999
Exact value16639983/32
19451231≈8924.74
Exact value3433234182447418570509/384687500000000000
≈8.18938e+10
Exact value252028213653123637362248515664120214196382537/3077500000000000000000000000000000
≈3.64
Exact value9100000262260437/2500000000000000
≈120000
Exact value15359985/128
19461435≈9764.55
Exact value70060655361412763595139/7175000000000000000
≈5.3824e+11
Exact value2413670125094935933959679179514370204909526983/4484375000000000000000000000000000
≈3.64
Exact value9100000262260437/2500000000000000
≈519999
Exact value16639983/32
19471419≈9684.5
Exact value68711494281924962997409/7095000000000000000
≈1.30054e+11
Exact value1153412051885070836126873023381272006123551297/8868750000000000000000000000000000
≈3.64
Exact value9100000262260437/2500000000000000
≈145200
Exact value4646387/32
19481563≈10138.2
Exact value15846018393085479736319/1563000000000000000
≈2.31229e+11
Exact value180705671739912485469630480570464777469763879/781500000000000000000000000000000
≈29.64
Exact value14819999694824219/500000000000000
≈239999
Exact value15359951/64
19491776≈10269.2
Exact value6079383964018821716299/592000000000000000
≈1.94893e+11
Exact value115376500152075730068869144229932139128558277/592000000000000000000000000000000
≈9.88
Exact value4940000057220459/500000000000000
180000
19501943≈10330.4
Exact value100360284870893955230673/9715000000000000000
≈2.22714e+11
Exact value5409168407894456133462982817795427032229546109/24287500000000000000000000000000000
≈7.28
Exact value9100000262260437/1250000000000000
≈219992
Exact value7039735/32
19512244≈11039.7
Exact value247730542120952606201161/22440000000000000000
≈6.67737e+11
Exact value149840237598700902763795132142039792473359793043/224400000000000000000000000000000000
≈4.24
Exact value42399997711181641/10000000000000000
≈500000
Exact value1999999/4
19522556≈10951.5
Exact value5598402362608242034907/511200000000000000
≈4.61009e+11
Exact value1178339686041781677605030014693911179073698243/2556000000000000000000000000000000
≈4.68
Exact value4679999828338623/1000000000000000
≈296292
Exact value9481339/32
19532894≈11812.2
Exact value17092198570063591003447/1447000000000000000
≈6.78253e+11
Exact value490716035311498040072315608680103582831176413/723500000000000000000000000000000
6≈519999
Exact value16639983/32
19542943≈11499.8
Exact value338440536079869270324647/29430000000000000000
≈4.60808e+11
Exact value67807904077840696951155926612117582893542940249/147150000000000000000000000000000000
2300800
19553223≈11808.5
Exact value3805878371861087530850269/322300000000000000000
≈6.14125e+11
Exact value9896628219692320719379581251657208838576823396481/16115000000000000000000000000000000000
≈0.12
Exact value11999999731779099/100000000000000000
≈242707
Exact value15533245/64
19563709≈12479.9
Exact value462880136304588317870731/37090000000000000000
≈1.60996e+12
Exact value74641864539159610323764605257707546280444925637/46362500000000000000000000000000000
≈4.68
Exact value4679999828338623/1000000000000000
≈519999
Exact value16639983/32
19574029≈12481.9
Exact value5028943366920673102140899/402900000000000000000
≈8.36059e+11
Exact value8421208287177262012728472344834469976894022584507/10072500000000000000000000000000000000
≈0.12
Exact value11999999731779099/100000000000000000
368380
19584324≈13445.7
Exact value290696764229407310485723/21620000000000000000
≈9.60018e+11
Exact value103777894609988294204767212098626905930816118387/108100000000000000000000000000000000
≈8.84
Exact value44200000762939453/5000000000000000
260000
19594215≈13436.7
Exact value283178461467059850692479/21075000000000000000
≈1.05355e+12
Exact value55508717406062936278500587382276504345951887887/52687500000000000000000000000000000
≈3.64
Exact value9100000262260437/2500000000000000
325950
19604675≈14239.6
Exact value41606303675626218318969/2921875000000000000
≈1.90741e+12
Exact value111464447588972814635893459728754632471479685473/58437500000000000000000000000000000
2487500
19615458≈13966.9
Exact value7623125470950137823819499/545800000000000000000
≈1.41083e+12
Exact value77003290733070681729947447335925741644282633638857/54580000000000000000000000000000000000
≈0.12
Exact value11999999731779099/100000000000000000
395602
19624892≈14276.8
Exact value69841939117362022399871/4892000000000000000
≈1.55542e+12
Exact value7609133937455491100230936105540551092656309171/4892000000000000000000000000000000
1440232
19634654≈14896.8
Exact value693294885403842926025323/46540000000000000000
≈1.54657e+12
Exact value719772696070681953256542335304930479693603921677/465400000000000000000000000000000000
1460000
19644417≈15537.5
Exact value686289453440113067627059/44170000000000000000
≈2.09608e+12
Exact value115729977155524619578114066246441764838982221469/55212500000000000000000000000000000
1420240
19654312≈15017.7
Exact value578181884988069534301/38500000000000000
≈1.36776e+12
Exact value300906390846327170757544985226558558941509/220000000000000000000000000000
1336000

The default earnings-level contrast is approximately −302.48 pounds. It is not the return to an extra year of schooling. This exercise does not reproduce every log-earnings specification, schooling first stage, control or sample in the study and corrigendum. Read why merges, sampling restrictions and additional survey years matter. Continuity alone does not nonparametrically identify a cutoff counterfactual from these thirty-one fixed score points.

All eight settings on one complete base frame; window, kernel and degree are declared

All eight settings on one complete base frame; window, kernel and degree are declared
SettinghDegreeFit rowsSource massScores L/RRank L/RLeft interceptRight interceptContrast
Triangular constant6011172405/61/1≈9220.59
Exact value142388921639374693234261/15442500000000000000
≈10257
Exact value58186059973708018660507/5672812500000000000
≈1036.42
Exact value96845415047062214615357993/93442567500000000000000
Default triangular linear6111172405/62/2≈10046.7
Exact value12241081390055519189759419523/1218416345000000000000000
≈9744.24
Exact value8697077598883819271717576461/892535510000000000000000
≈-302.478
Exact value-65787664242262518332003779479021337/217495970775382190000000000000000
Triangular quadratic6211172405/63/3≈10160.3
Exact value19044279359935466665793791442771/1874385874595000000000000000
≈9734.98
Exact value18689818548094176650820209101833/1919862083398000000000000000
≈-425.297
Exact value-1530457963487878591748183459331809223583223/3598562370291739059473810000000000000000
Uniform linear6113208836/72/2≈9972.56
Exact value11727118484762772681671632247/1175939030000000000000000
≈9630.05
Exact value12944232897796575820427872187/1344149990000000000000000
≈-342.506
Exact value-13534437902342538621144786588599223/39515960885377742500000000000000
Half-h linear31574242/32/2≈10604.4
Exact value46831138335402746796172789/4416212500000000000000
≈9720.98
Exact value39775733646030513405787883/4091740500000000000000
≈-883.386
Exact value-15962773263799474193087424496117/18069995542856250000000000000
Double-h linear121234121311/122/2≈9989.42
Exact value533724152062089506436982569757/53428962595000000000000000
≈9690.34
Exact value69571431838244257254794431767593/7179463863900000000000000000
≈-299.078
Exact value-22944766730859153850346744559907274777693/76718261247293454164100000000000000000
h=1 linear11114190/10/1Undefined≈9684.5
Exact value68711494281924962997409/7095000000000000000
Undefined
Donut-one linear6110158215/52/2≈10046.7
Exact value12241081390055519189759419523/1218416345000000000000000
≈9831.86
Exact value3557457826595832039511383261/361829510000000000000000
≈-214.853
Exact value-18943943732273983082178521025944537/88171797817468190000000000000000

Default linear coefficient units and full squared-error criterion

Default linear coefficient units and full squared-error criterion
SideCutoff interceptScaled βPhysical slope β/hRank/parametersSource massFull RSS
left≈10046.7
Exact value12241081390055519189759419523/1218416345000000000000000
≈2288.73
Exact value1394315790420315445612118469/609208172500000000000000
≈381.456
Exact value464771930140105148537372823/1218416345000000000000000
2/25739≈7.0738e+11
Exact value12928253507821380976649273611329974843510478007116767/18276245175000000000000000000000000000000
right≈9744.24
Exact value8697077598883819271717576461/892535510000000000000000
≈1590.2
Exact value709656567074319846629816113/446267755000000000000000
≈265.034
Exact value709656567074319846629816113/2677606530000000000000000
2/211501≈8.63561e+11
Exact value17342065067545662886527267479165349704907188714471489/20082048975000000000000000000000000000000

First 6 prepared records; all 73,954 rows in the CSV

First 6 prepared records; all 73,954 rows in the CSV
Source rowYearPrepared earnings (£)
11945≈1614.6
Exact value13226803/8192
21953≈25460.8
Exact value13035909/512
31949≈1859.52
Exact value3808297/2048
41956≈12551.8
Exact value6426501/512
51957≈5009.68
Exact value10259825/2048
61939≈1399.84
Exact value11467489/8192

Author’s 2008 corrigendum: sample and processing corrections

Complete records and reproduction

Download the complete selected records, check their units and rerun Python or R. The code rebuilds twenty-four settings and the full coefficient families on both sides. Python uses exact fractions and R uses finite-precision arithmetic, so final digits can differ slightly. Undefined intercepts and contrasts remain undefined. Reproducing coefficients certifies neither confidence intervals nor causal assumptions.

Data and creators: RDHonest cghs · Oreopoulos · Supplied codebook · GPL-3 package notice

Selection, units, transformations and full provenance · GNU GPL v3

Complete CSV · actual73954-UK-worker-prepared-earnings-17digit.csv · Complete CSV · derived31-worker-year-mean-count-and-withinSS.csv

Standalone Python · Standalone R · Complete exact results and weights · R numeric results · R coefficient families · R execution environment · All-setting table · All-family table · Complete reference metrics

Business counterexample · Actual prices and a chosen threshold

The business case retains the first 1,000 product lines in the original UCI Online Retail workbook, including all eight source fields and worksheet positions. The analysis uses 989 lines with positive quantity and positive price, aggregated into 39 distinct quantities. These are heterogeneous product lines within one company. They are not 989 different firms or a random sample of 1,000 orders.

Seven actual lines of invoice 536365 with original product identifiers

Seven actual lines of invoice 536365 with original product identifiers
Worksheet rowInvoiceStockCodeQuantitySource price (£/item)
253636585123A6≈2.55
Exact value12749999999999999/5000000000000000
3536365710536≈3.39
Exact value339/100
453636584406B8≈2.75
Exact value11/4
553636584029G6≈3.39
Exact value339/100
653636584029E6≈3.39
Exact value339/100
7536365227522≈7.65
Exact value153/20
8536365217306≈4.25
Exact value17/4

Quantity six is chosen for teaching. The file does not establish an external rule offering discounts or free shipping from six items. The default contrast of approximately 0.2507 pounds per item is therefore not a causal discount effect. Products, purchase choices, prices and quantities can be jointly determined.

Source selection and actual analysis units

Source selection and actual analysis units
StageCount
First source product lines1000
Positive quantity and price989
Excluded original lines11
All quantity groups39
Default positive groups L/R4 / 5
Default original frequency L/R301 / 196

All 39 quantity groups computed from original price tokens

All 39 quantity groups computed from original price tokens
QuantityFrequencyMean price (£)WithinSS (£²)MinimumMaximum
1232≈3.61737
Exact value41961499999999999891/11600000000000000000
≈27656.9
Exact value3208197719949999999284806200000000092419/116000000000000000000000000000000000
≈0.29
Exact value14499999999999999/50000000000000000
165
2132≈4.34621
Exact value9561666666666666599/2200000000000000000
≈3323.49
Exact value365583427666666662467443333333333607753/110000000000000000000000000000000000
≈0.42
Exact value21/50
≈35.75
Exact value143/4
395≈3.21389
Exact value200868421052631579/62500000000000000
≈578.738
Exact value904277904605263162478763157894737597/1562500000000000000000000000000000
≈0.42
Exact value21/50
18
452≈4.7
Exact value2443999999999999971/520000000000000000
≈492.525
Exact value512225999999999980645600000000001527/1040000000000000000000000000000000
≈0.85
Exact value17/20
≈16.95
Exact value339/20
522≈1.85455
Exact value203999999999999999/110000000000000000
≈20.1845
Exact value11101499999999999847000000000000021/550000000000000000000000000000000
≈0.85
Exact value17/20
≈4.95
Exact value99/20
6122≈2.7118
Exact value1654199999999999987/610000000000000000
≈289.385
Exact value882625480000000002566200000000001417/3050000000000000000000000000000000
≈0.42
Exact value21/50
≈8.5
Exact value17/2
74≈2.2
Exact value11/5
≈0.885
Exact value177/200
≈1.65
Exact value33/20
≈2.95
Exact value59/20
840≈3.873
Exact value1549199999999999997/400000000000000000
≈148.167
Exact value592666559999999981895200000000004511/4000000000000000000000000000000000
≈1.45
Exact value29/20
≈10.95
Exact value219/20
94≈3.325
Exact value66499999999999999/20000000000000000
≈12.0075
Exact value1200750000000000031000000000000003/100000000000000000000000000000000
≈0.85
Exact value17/20
≈4.95
Exact value99/20
1026≈1.98923
Exact value1293000000000000001/650000000000000000
≈43.2234
Exact value28095199999999999925160000000000001/650000000000000000000000000000000
≈0.42
Exact value21/50
≈6.75
Exact value27/4
12116≈1.58284
Exact value4590249999999999983/2900000000000000000
≈111.463
Exact value8081035687500000052654500000000025927/72500000000000000000000000000000000
≈0.29
Exact value14499999999999999/50000000000000000
≈5.95
Exact value119/20
141≈0.42
Exact value21/50
0≈0.42
Exact value21/50
≈0.42
Exact value21/50
168≈2.88125
Exact value461/160
≈87.7283
Exact value7018263/80000
≈0.42
Exact value21/50
≈10.95
Exact value219/20
181≈2.95
Exact value59/20
0≈2.95
Exact value59/20
≈2.95
Exact value59/20
202≈1.25
Exact value5/4
≈0.32
Exact value8/25
≈0.85
Exact value17/20
≈1.65
Exact value33/20
231≈4.25
Exact value17/4
0≈4.25
Exact value17/4
≈4.25
Exact value17/4
2451≈1.31765
Exact value1120000000000000009/850000000000000000
≈58.9113
Exact value1251865499999999982603500000000000363/21250000000000000000000000000000000
≈0.12
Exact value3/25
≈4.25
Exact value17/4
251≈0.42
Exact value21/50
0≈0.42
Exact value21/50
≈0.42
Exact value21/50
281≈0.21
Exact value21/100
0≈0.21
Exact value21/100
≈0.21
Exact value21/100
301≈0.21
Exact value21/100
0≈0.21
Exact value21/100
≈0.21
Exact value21/100
325≈3.46
Exact value86499999999999999/25000000000000000
≈72.4356
Exact value2263612500000000011375000000000001/31250000000000000000000000000000
≈0.42
Exact value21/50
≈10.95
Exact value219/20
3611≈2.08636
Exact value459/220
≈22.8187
Exact value627513/27500
≈0.65
Exact value13/20
≈4.95
Exact value99/20
406≈2.76667
Exact value20749999999999999/7500000000000000
≈6.68833
Exact value125406250000000006500000000000001/18750000000000000000000000000000
≈1.45
Exact value29/20
≈4.95
Exact value99/20
4817≈1.62176
Exact value68925000000000001/42500000000000000
≈18.0726
Exact value120013671875000016087500000000001/6640625000000000000000000000000
≈0.65
Exact value13/20
≈4.65
Exact value11625000000000001/2500000000000000
502≈1.65
Exact value33/20
≈0.08
Exact value2/25
≈1.45
Exact value29/20
≈1.85
Exact value37/20
642≈2.55
Exact value12749999999999999/5000000000000000
0≈2.55
Exact value12749999999999999/5000000000000000
≈2.55
Exact value12749999999999999/5000000000000000
723≈1.9
Exact value19/10
≈3.3482
Exact value16741/5000
≈1.06
Exact value53/50
≈3.39
Exact value339/100
801≈2.55
Exact value12749999999999999/5000000000000000
0≈2.55
Exact value12749999999999999/5000000000000000
≈2.55
Exact value12749999999999999/5000000000000000
9610≈1.288
Exact value161/125
≈3.56756
Exact value89189/25000
≈0.38
Exact value19/50
≈1.85
Exact value37/20
1004≈1.4175
Exact value567/400
≈0.648675
Exact value25947/40000
≈0.72
Exact value18/25
≈1.65
Exact value33/20
1201≈0.42
Exact value21/50
0≈0.42
Exact value21/50
≈0.42
Exact value21/50
1281≈2.55
Exact value12749999999999999/5000000000000000
0≈2.55
Exact value12749999999999999/5000000000000000
≈2.55
Exact value12749999999999999/5000000000000000
1445≈0.59
Exact value73750000000000001/125000000000000000
≈0.1108
Exact value86562499999999997500000000000001/781250000000000000000000000000000
≈0.32
Exact value8/25
≈0.72
Exact value18/25
1923≈3.52
Exact value88/25
≈0.135
Exact value27/200
≈3.37
Exact value337/100
≈3.82
Exact value191/50
2001≈1.06
Exact value53/50
0≈1.06
Exact value53/50
≈1.06
Exact value53/50
2881≈0.1
Exact value1/10
0≈0.1
Exact value1/10
≈0.1
Exact value1/10
4322≈1.35
Exact value27/20
≈0.02
Exact value1/50
≈1.25
Exact value5/4
≈1.45
Exact value29/20
4801≈3.39
Exact value339/100
0≈3.39
Exact value339/100
≈3.39
Exact value339/100
6001≈0.24
Exact value6/25
0≈0.24
Exact value6/25
≈0.24
Exact value6/25

All eight settings on one complete base frame; window, kernel and degree are declared

All eight settings on one complete base frame; window, kernel and degree are declared
SettinghDegreeFit rowsSource massScores L/RRank L/RLeft interceptRight interceptContrast
Triangular constant5094974/51/1≈3.67622
Exact value10403699999999999933/2830000000000000000
≈2.86215
Exact value111623999999999999287/39000000000000000000
≈-0.814065
Exact value-8984837999999999940479/11037000000000000000000
Default triangular linear5194974/52/2≈2.51709
Exact value1267355937499999984557/503500000000000000000
≈2.76782
Exact value3575463999999999973039/1291800000000000000000
≈0.250723
Exact value1630757239375000063744039/6504213000000000000000000
Triangular quadratic5294974/53/3≈0.706786
Exact value12572841399999999550767/17788760000000000000000
≈2.69836
Exact value67071069999999999475423/24856200000000000000000
≈1.99158
Exact value11007476334581500022933136751/5527012203900000000000000000
Uniform linear51107295/52/2≈3.50694
Exact value17078814499999999821811/4870000000000000000000
≈2.86882
Exact value1447607999999999989519/504600000000000000000
≈-0.638121
Exact value-7840594183499999805641503/12287010000000000000000000
Half-h linear≈2.5
Exact value5/2
152402/32/2≈-0.990909
Exact value-1133599999999999957/1144000000000000000
≈2.70185
Exact value711938399999999994419/263500000000000000000
≈3.69276
Exact value278290282399999995571209/75361000000000000000000
Double-h linear101128465/72/2≈3.34896
Exact value676649986249999992798081/202048000000000000000000
≈2.92841
Exact value265466528499999998210623/90652000000000000000000
≈-0.420543
Exact value-1925673350791749927167920727/4579013824000000000000000000
h=1 linear1111220/10/1Undefined≈2.7118
Exact value1654199999999999987/610000000000000000
Undefined
Donut-one linear5183754/42/2≈2.51709
Exact value1267355937499999984557/503500000000000000000
≈4.46378
Exact value184353999999999999689/41300000000000000000
≈1.94669
Exact value202402193906250002406037/103972750000000000000000

Default linear coefficient units and full squared-error criterion

Default linear coefficient units and full squared-error criterion
SideCutoff interceptScaled βPhysical slope β/hRank/parametersSource massFull RSS
left≈2.51709
Exact value1267355937499999984557/503500000000000000000
≈-2.18981
Exact value-220513437500000001331/100700000000000000000
≈-0.437961
Exact value-220513437500000001331/503500000000000000000
2/2301≈1297.09
Exact value10204484857988281075260943125000013082783/7867187500000000000000000000000000000
right≈2.76782
Exact value3575463999999999973039/1291800000000000000000
≈0.958124
Exact value82513666666666668931/86120000000000000000
≈0.191625
Exact value82513666666666668931/430600000000000000000
2/2196≈419.592
Exact value135507353035999999430350168000000373906057/322950000000000000000000000000000000000

Try changing the threshold from six and inspect which records and products enter. A changed contrast without actual treatment assignment is not a newly discovered policy effect. The complete CSV preserves all selected lines, original workbook date tokens, invoices, products and unit prices beyond the preview.

Complete records and reproduction

Download the complete selected records, check their units and rerun Python or R. The code rebuilds twenty-four settings and the full coefficient families on both sides. Python uses exact fractions and R uses finite-precision arithmetic, so final digits can differ slightly. Undefined intercepts and contrasts remain undefined. Reproducing coefficients certifies neither confidence intervals nor causal assumptions.

Data and creators: Daqing Chen (2015), Online Retail, UCI · CC BY 4.0

Selection, units, transformations and full provenance · GNU GPL v3

Complete CSV · actual1000-first-retail-worksheet-records.csv · Complete CSV · derived39-retail-quantity-mean-count-and-withinSS.csv

Standalone Python · Standalone R · Complete exact results and weights · R numeric results · R coefficient families · R execution environment · All-setting table · All-family table · Complete reference metrics

학부 심화 · 선택Advanced undergraduate · optional

48. 공식 강의·학자·방법론·정오표 읽기48. Read official lectures, researchers, methods and corrections

NIH의 Matias Cattaneo 공식 RD 강의를 본문에서 재생하며 점수·문턱·배정·수혜를 자신의 사례에 표시해 보세요. 발표자는 국소 다항식과 국소 무작위화라는 다른 접근, 그래프의 유용성과 위험, 설계 진단을 구분합니다. 재생 시각을 임의로 지정하지 않고 관심 주제를 기준으로 찾아보도록 합니다. 영상 시청만으로 데이터의 전제가 검증된 것은 아닙니다.

Cattaneo·Idrobo·Titiunik의 Foundations와 Extensions는 국소 적합·편향 보정, fuzzy RD·이산 점수의 표적을 더 읽을 자료입니다. 상원 원연구에서는 t+1과 t+2의 다른 의석 표적을 확인합니다. Oreopoulos의 2008년 정오표에서는 자료 병합·표본 조건·추가 조사 연도가 결과를 어떻게 바꾸는지 읽습니다. 유명한 논문도 원자료와 정정 기록까지 추적하는 태도, 계산이 재현되는 것과 결론이 타당한 것을 구분하는 태도를 기릅니다.

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

Play the official NIH lecture by Matias Cattaneo within the chapter and mark score, cutoff, assignment and receipt in your own example. Distinguish local-polynomial and local-randomization approaches, the uses and risks of graphs, and design diagnostics. No unverified precise timestamps are prescribed. Viewing a lecture does not establish the assumptions of a dataset.

Foundations and Extensions by Cattaneo, Idrobo and Titiunik develop local fitting, bias correction, fuzzy designs and discrete-score targets. In the Senate study, identify the different-seat t+1 and same-seat t+2 outcomes. In Oreopoulos’s 2008 corrigendum, read how merges, sample restrictions and additional survey years matter. Track corrections and source records even for influential papers, and distinguish reproducible arithmetic from warranted conclusions.

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

회귀불연속의 설계·그래프·추론RD designs, graphs and inference

NIH Office of Disease Prevention · Matias Cattaneo

본문에서 공식 강의를 재생하며 점수·문턱·수혜, 국소 다항식과 국소 무작위화의 전제를 구분하세요. 정확한 재생 시각은 지정하지 않습니다.Play the official lecture in the chapter. Distinguish score, cutoff and receipt, and compare the premises of local polynomial and local randomization approaches. No precise timestamps are prescribed.

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

보고 읽은 뒤 답하기Respond after watching/reading 부드러운 점수 밀도가 인과성을 보증하나요?Does smooth score density guarantee causal validity?

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

아닙니다. 제도·반사실 평균·다른 지원·파급과 선택을 함께 확인해야 합니다.No. Examine institutional rules, counterfactual means, other interventions, spillovers and selection.

Matias D. Cattaneo · 설계와 구현을 함께 점검하기Matias D. Cattaneo · Examine design and implementation together

NIH official presenter biography

NIH 공식 소개는 프로그램 평가·인과 추론과 통계 방법의 연결을 설명합니다. 이름을 외우기보다 설계·추정·추론이 왜 서로 다른 질문인지 자신의 사례로 설명합니다.The official NIH biography connects program evaluation, causal inference and statistical methods. Explain design, estimation and inference as different questions using your own example.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 좋은 알고리즘이면 배정 규칙이 없어도 RD인가요?Does a good algorithm create an RD without an assignment rule?

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

아닙니다. 기업 반례처럼 회귀선을 계산하는 것과 RD 설계를 갖추는 것은 다릅니다.No. The business counterexample distinguishes calculating a regression from having an RD design.

Foundations · 국소 적합과 편향 보정Foundations · Local fitting and bias correction

Original authors · official research materials

식별의 극한 표적과 유한 창의 적합을 구분하고 보정된 중심의 불확실성을 읽습니다. 공식 정오표·현재 소프트웨어 링크도 확인합니다.Distinguish limiting targets from finite-window fits and read why bias correction changes uncertainty. Check the official erratum and current software links.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 0잔차면 신뢰구간도 정확한가요?Do zero fitted residuals establish interval coverage?

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

아닙니다. 곡선 근사 편향과 표본 변동·설계 전제는 별도입니다.No. Approximation bias, sampling variation and design assumptions are separate.

Extensions · 이산 점수와 fuzzy 표적Extensions · Discrete scores and fuzzy targets

Original authors · official research materials

이산 지원점에서 외삽이 필요한 이유와 국소 순응자 해석의 추가 조건을 읽습니다.Read why fixed discrete support needs extrapolation and which added conditions support a local complier interpretation.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 정수 연도에서 표본만 늘리면 충분한가요?Are more repetitions at integer years sufficient?

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

지원점 사이의 빈틈은 남습니다. 추가 구조나 다른 표적·전제를 명시해야 합니다.Gaps in score support remain. State additional structure or a different target and its premises.

상원 원연구 · 선거 순서와 두 표적Senate study · Election sequence and two targets

Original authors · official research materials

t+1의 다른 의석과 t+2의 같은 의석을 구분하고 국소 무작위화가 연속성과 다른 조건임을 읽습니다.Distinguish the other seat at t+1 from the original seat at t+2, and local randomization from continuity alone.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading t+2는 2년 뒤인가요?Does t+2 mean two calendar years later?

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

아닙니다. 같은 주의 연속 선거를 두 번 지난 순서 지표입니다.No. It indexes two successive election steps within a state.

교육 연구 정오표 · 자료 처리와 표본의 중요성Education corrigendum · Processing and samples matter

Original authors · official research materials

2008년 저자 정정에서 누락한 표본 조건·병합·소득 기록과 추가 조사 연도를 읽습니다. 현재 준비 표만으로 전체 원조사 재구성을 주장하지 않습니다.Read the author’s 2008 corrections to selection, merging, earnings and additional survey years. A prepared table alone does not prove reconstruction of the underlying survey.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 같은 행 수면 논문 전체 재현인가요?Do matching row counts establish full replication?

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

관측·변수·단위·표본·변환·추론까지 대조해야 합니다.Compare records, variables, units, selection, transformations and inference.

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

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

1. 배정과 수혜는 다른 열Assignment and receipt are different columns

장학금 배정 규칙은 시험 점수 60점 이상이다. 점수 59인 A는 장학금을 받지 않았고, 60인 B는 배정받았지만 신청하지 않아 받지 않았으며, 62인 C는 받았다. 각 학생의 Z와 D를 적고 완전한 sharp RD인지 판단하라.

A scholarship assigns eligibility at scores of at least 60. A scores 59 and receives none; B scores 60 but does not apply and receives none; C scores 62 and receives it. Give Z and D for each and assess perfect sharp compliance.

풀이와 확인할 이유Solution and explanation

A는 (Z,D)=(0,0), B는 (1,0), C는 (1,1)이다. B에서 배정과 수혜가 다르므로 이 세 행은 D=Z인 완전 수혜 규칙이 아니다. 이것만으로 fuzzy RD의 인과 가정이나 충분한 첫 단계가 입증되지는 않으며, 더 많은 점수별 수혜 자료가 필요하다.

The pairs are A=(0,0), B=(1,0), C=(1,1). B violates D=Z, so these records do not show perfect sharp compliance. The three rows alone establish neither fuzzy-RD causal conditions nor a sufficiently informative first-stage jump.

2. 득표 차이와 대역폭의 단위Units of a vote margin and bandwidth

선거 자료의 running variable은 이미 계산된 민주당 득표 차이이며 단위는 %포인트다. 한 행의 차이는 −0.4, 문턱은 0, 대역폭은 1이다. 이 행의 쪽과 표준화 거리 u를 구하라. 이를 달러 금액이나 민주당 득표율의 0.4% 변화로 해석해도 되는가?

The running variable is a recorded Democratic vote margin in percentage points. One margin is −0.4, cutoff zero and bandwidth one. Find its side and scaled distance u. May it be read as a dollar amount or a 0.4% change in Democratic vote share?

풀이와 확인할 이유Solution and explanation

문턱보다 작으므로 왼쪽이고 u=(−0.4−0)/1=−0.4다. 분자와 대역폭이 같은 %포인트 단위여서 u는 무차원이다. 득표 차이의 %포인트와 득표율 자체의 상대적 % 변화는 다른 수량이다. 결과 변수의 단위도 따로 확인해야 한다.

u=−0.4−01=−25u=\frac{-0.4-0}{1}=-\frac25

The record is left of the cutoff, with u=−0.4. Margin and bandwidth share percentage-point units, so u is dimensionless. A percentage-point margin differs from a relative percentage change in a vote share; neither is a dollar amount. Check the outcome units separately.

u=−0.4−01=−25u=\frac{-0.4-0}{1}=-\frac25

3. 같은 점수 단위를 바꾸기Rescale score and bandwidth together

중심 시험 점수 x=−2, 대역폭 h=3으로 u를 계산한다. 점수를 10배 단위로 바꾸어 x′=−20으로 썼다. 같은 관측의 커널 무게를 유지하려면 h′는 얼마이며 u′는?

A centered score is x=−2 with bandwidth h=3. Scores are rescaled to x′=−20. What h′ preserves this observation’s kernel weight, and what is u′?

풀이와 확인할 이유Solution and explanation

대역폭도 10배인 h′=30으로 바꾼다. 그러면 u′=−20/30=−2/3으로 원래와 같다. h를 3으로 그대로 두면 u′=−20/3이 되어 같은 창이 아니며 관측을 제외할 수도 있다. 단위 변경과 더 좁은 표본 선택을 혼동하지 않는다.

Use h′=30, giving u′=−20/30=−2/3, unchanged from the original. Leaving h at three gives u′=−20/3 and can exclude the record. A change of units should not inadvertently become a different neighborhood.

4. 관측한 한 결과와 반사실An observed result and its counterfactual

장학금을 받은 학생의 실제 출석이 18일이다. 연구 파일에는 점수와 장학금 수혜, 출석만 있다. Y(0)=13이라고 써서 개인 효과 5일을 계산해도 되는가? Y(0)=13을 별도로 가정했다면 계산의 성격은?

A scholarship recipient attends 18 days. The file contains score, receipt and attendance only. May Y(0)=13 be inserted to claim a five-day individual effect? What if 13 is explicitly assumed?

풀이와 확인할 이유Solution and explanation

관측 자료만으로 13을 채울 근거가 없다. Y(1)=18은 관측되지만 Y(0)는 같은 사람·시기의 미관측 결과다. 13을 명시적으로 가정한 연습에서는 18−13=5를 계산할 수 있으나 실제로 식별한 개인 효과라고 보고하지 않는다.

The recorded columns do not justify inserting 13. Y(1)=18 is observed, while Y(0) for the same person and time is not. An explicitly hypothetical exercise can compute 18−13=5, but cannot label that calculation an identified individual effect from these records.

5. 효과와 배경 도약 더하기Add effect and background jump

가정한 문턱의 무처치 평균은 왼쪽 10, 오른쪽 13이다. 오른쪽 처치 효과는 5다. 관측 오른쪽 평균과 관측 도약을 구하고, 도약을 효과라고 읽으려면 어떤 부분을 없애야 하는가?

Assume no-treatment limits of ten on the left and thirteen on the right, with treatment effect five on the right. Find the observed right limit and jump. What must vanish to interpret the jump as the effect?

풀이와 확인할 이유Solution and explanation

관측 오른쪽은 13+5=18이고 관측 도약은 18−10=8이다. 이는 효과 5와 배경 도약 13−10=3의 합이다. 도약을 처치 효과로 읽으려면 관련 반사실 평균의 문턱 도약이 없다는 연속성 전제가 필요하다.

18−10=5+(13−10)=818-10=5+(13-10)=8

The observed right limit is 18 and its jump over the left limit is eight. This combines effect five with baseline jump three. Interpreting the jump as the treatment effect needs the relevant potential-outcome mean to have no baseline jump at the threshold.

18−10=5+(13−10)=818-10=5+(13-10)=8

6. 관측 도약만으로 구분할 수 없는 두 모형Two models sharing one observed jump

관측 왼쪽 극한 10, 오른쪽 극한 15만 안다. 모형 A는 무처치 오른쪽 10·효과 5, 모형 B는 무처치 오른쪽 15·효과 0이다. 두 모형은 같은 관측 극한을 만들 수 있는가? 어느 것을 고르려면 무엇이 필요한가?

Only observed left and right limits ten and fifteen are known. Model A assumes right no-treatment limit ten and effect five; model B assumes right no-treatment limit fifteen and effect zero. Can both match the observations? What distinguishes them?

풀이와 확인할 이유Solution and explanation

두 모형 모두 관측 오른쪽을 15로 만들어 같은 도약 5를 보인다. 관측 도약 계산만으로는 두 반사실을 구분하지 못한다. 무처치 평균의 연속성은 A의 배경 도약 0과 양립하지만 B의 배경 도약 5를 제외한다. 그 전제가 현실에서 타당한지 제도와 자료로 검토해야 한다.

Both generate observed right limit fifteen and observed jump five. Arithmetic on those two limits cannot distinguish the counterfactuals. Continuity of the no-treatment mean admits A’s zero baseline jump and excludes B’s jump of five, but that identifying premise needs substantive justification.

7. 네 행의 평균 차이A raw difference across four rows

중심 점수 x=−2,−1,1,2와 관측 Y=6,8,17,19를 같은 무게로 사용한다. 왼쪽·오른쪽 평균과 차이를 구하라. 무처치 평균 10+2x, 오른쪽 효과 5라는 가정과 비교하라.

Use equally weighted centered scores −2,−1,1,2 and outcomes 6,8,17,19. Find both side means and their difference. Compare with an assumed no-treatment relation 10+2x and right-side effect five.

풀이와 확인할 이유Solution and explanation

왼쪽 평균은 (6+8)/2=7, 오른쪽은 (17+19)/2=18이라 차이는 11이다. 무처치 배경의 집단 평균 차이는 6이며 효과 5가 더해졌다. 문턱에서의 두 직선 절편 10과 15의 차이 5와 유한 구간 평균 차이 11을 같은 수량으로 읽지 않는다.

The means are seven and eighteen, so the raw difference is eleven. Different score distributions contribute a six-unit no-treatment mean difference, in addition to the assumed effect of five. This window difference is not the five-unit contrast between cutoff intercepts ten and fifteen.

8. 정확히 문턱인 행A record exactly at the cutoff

실습 규칙이 왼쪽 X<c, 오른쪽 X≥c다. c=60에서 X=59.999와 X=60, X=60.001을 분류하라. 실제 기관의 동점 규칙을 조사하지 않았어도 이 코딩 규칙을 실제 제도의 사실로 보고할 수 있는가?

The lab defines left by X<c and right by X≥c. Classify 59.999, 60 and 60.001 at cutoff 60. Does that coding choice establish a real institution’s tie policy without checking it?

풀이와 확인할 이유Solution and explanation

59.999는 왼쪽, 60과 60.001은 오른쪽이다. 이는 선언한 실습 분류의 결과다. 실제 배정이 동점 추첨이나 다른 규칙을 사용하면 자료 설계에 그 규칙을 반영해야 한다. 편의상 정한 컴퓨터 규약을 조사한 제도 사실과 구분한다.

59.999 is left; 60 and 60.001 are right. This follows the declared lab convention. An institution might use a lottery or another tie rule, which would need to enter the actual design. A coding convention is not evidence about an institution.

9. 관측 수와 지원점 수Observation count versus support count

점수는 59와 60만 가능하고 각 점수에 학생 10000명이 있다. 관측 수·서로 다른 점수 수와 60 아래에서 가장 가까운 관측 점수의 거리를 적어라. 표본이 커졌으니 59.99의 평균도 직접 관측했다고 할 수 있는가?

Scores can only be 59 or 60, with ten thousand students at each. Give the observation count, distinct-score count and nearest left-side distance from 60. Does the large sample directly observe a mean at 59.99?

풀이와 확인할 이유Solution and explanation

관측은 20000개지만 지원점은 2개다. 왼쪽 최근접 점수는 59라 거리는 1이다. 반복 관측은 각 점수의 평균을 더 잘 알려줄 수 있어도 두 점수 사이의 미관측 관계를 직접 채우지 않는다. 59.99로의 외삽에는 추가 구조가 필요하다.

There are twenty thousand observations but only two support points. The nearest left score is 59, at distance one. More repeats can improve knowledge of those two means, but do not reveal the relationship at 59.99. Extrapolating there needs additional structure.

10. 관측 평균에 도약이 있어도 되는가May the observed mean jump?

sharp RD에서 μ0(x)=10+2x, μ1(x)=15+3x가 문턱 0 양쪽에서 정의된다고 가정한다. 잠재평균은 연속인가? 관측 평균도 반드시 연속이어야 하는가?

Assume sharp RD at zero with potential means μ0(x)=10+2x and μ1(x)=15+3x, each defined around the cutoff. Are they continuous? Must the observed mean also be continuous?

풀이와 확인할 이유Solution and explanation

두 잠재평균은 직선이므로 0에서 연속이다. 관측 왼쪽은 μ0라 극한 10, 오른쪽은 μ1이라 극한 15다. 관측 평균에는 도약 5가 있다. 잠재평균의 연속성과 관측 평균의 도약은 모순이 아니라 식별 논리의 서로 다른 요소다.

Both potential means are continuous lines. Observed outcomes use μ0 on the left, with limit ten, and μ1 on the right, with limit fifteen. The observed jump is five. Continuity of potential means and a discontinuity of observed means are compatible parts of the identifying argument.

11. 극한 효과와 기울기 차이A limit effect and different slopes

문턱 0에서 무처치 평균은 10+2x, 처치 평균은 15+3x다. 문턱의 효과와 점수 x=2에서의 효과를 구하라. 같은 기울기를 강제로 쓰는 이유가 있는가?

At cutoff zero, potential means are 10+2x without treatment and 15+3x with it. Find the effect at the cutoff and at x=2. Do these assumptions justify forcing equal slopes?

풀이와 확인할 이유Solution and explanation

효과 함수는 (15+3x)−(10+2x)=5+x다. 문턱에서는 5, x=2에서는 7이다. 두 평균 기울기가 2와 3으로 다르므로 같게 묶는 것은 이 가정과 다르다. 국소 회귀에서는 양쪽 기울기를 별도로 허용하고 절편을 같은 문턱에서 비교한다.

(15+3x)−(10+2x)=5+x(15+3x)-(10+2x)=5+x

The effect function is 5+x, giving five at zero and seven at two. The potential means have slopes two and three, so forcing a common slope changes the stated model. Separate-side local fits compare intercepts at one cutoff while allowing different slopes.

(15+3x)−(10+2x)=5+x(15+3x)-(10+2x)=5+x

12. 문턱 효과와 전체 평균 효과Cutoff effect versus average effect

두 잠재평균의 차이가 τ(x)=5+x이고 모집단 점수 X가 [−1,5]에서 균등하다고 가정한다. c=0의 효과와 전체 평균 효과를 구하라. 이 예에서 둘이 같은가?

Assume the potential-mean difference is τ(x)=5+x and X is uniform on [−1,5]. Compute the effect at cutoff zero and the population average effect.

풀이와 확인할 이유Solution and explanation

문턱 효과는 τ(0)=5다. E[X]=(−1+5)/2=2이므로 전체 평균은 E[5+X]=7이다. 실제 RD로 문턱 효과를 식별하더라도 다른 점수에서의 효과 함수와 인구 분포를 모르면 이 전체 평균 7까지 자동으로 얻지는 못한다.

The cutoff effect is five. Since E[X]=2, the population average is seven. Identifying a cutoff effect in a real RD does not automatically supply effects elsewhere or their population weights.

13. 연속성과 유한 창의 무작위화Continuity versus randomization in a window

무처치 평균 10+2x가 연속이고, 창 [−2,2]의 관측 점수는 왼쪽 −2,−1, 오른쪽 1,2다. 연속성만으로 양쪽의 무처치 평균이 같은가? 그렇지 않다면 평균 차이는?

The no-treatment mean 10+2x is continuous. A window contains left scores −2,−1 and right scores 1,2. Does continuity alone make the two groups’ no-treatment means equal? Find the difference.

풀이와 확인할 이유Solution and explanation

왼쪽 무처치 평균은 7, 오른쪽은 13이라 6 차이다. 곡선이 문턱에서 이어진다는 사실은 유한 창 전체에서 점수의 직접 영향이 없다는 말이 아니다. 유한 창 평균 차이에 무작위 배정 해석을 붙이려면 국소 무작위화의 별도 조건이 필요하다.

The no-treatment means are seven and thirteen, differing by six. Smooth connection at the cutoff does not eliminate the score’s direct role throughout a finite window. A randomization interpretation for that window requires separate assumptions.

14. 밀도가 매끄러워도 배경이 뛸 수 있다Smooth density does not prove counterfactual continuity

X는 [−1,1]의 균등분포라 문턱 0에서 밀도 도약이 없다. 그러나 무처치 평균이 x<0에서 10, x≥0에서 13이고 처치 효과는 0이라고 가정한다. 관측 도약과 밀도 검사의 한계를 설명하라.

X is uniform on [−1,1], with no density jump at zero. Suppose the no-treatment mean is ten below zero and thirteen at or above zero, with treatment effect zero. Explain the observed jump and the limit of a density check.

풀이와 확인할 이유Solution and explanation

관측 평균 도약은 3이지만 처치 효과는 가정상 0이다. 점수 밀도가 매끄럽다는 사실은 잠재결과 평균의 연속성을 논리적으로 보장하지 않는다. 밀도 진단은 점수 정밀 조정에 관한 단서이며 모든 동시 제도·교란을 검증하는 검사가 아니다.

The observed mean jumps by three even though the assumed treatment effect is zero. Smooth score density does not logically imply continuous potential-outcome means. Density diagnostics provide evidence about sorting, not a universal test of other policies or confounding.

15. 동일 문턱의 두 지원Two programs at one threshold

같은 60점 규칙에서 장학금과 과외가 함께 시작한다. 문턱의 관측 도약은 8일이다. 추가 정보 없이 장학금만의 효과가 8일이라고 말할 수 있는가? 장학금 5·과외 3·상호작용 0을 별도로 가정하면?

Scholarship and tutoring both begin at score 60 and the observed jump is eight attendance days. Can the scholarship-alone effect be called eight without further information? What if effects five and three with zero interaction are explicitly assumed?

풀이와 확인할 이유Solution and explanation

관측은 지원 묶음에 관한 비교이며 개별 효과를 분해하지 못한다. 별도의 가정 아래에는 5+3=8로 분해할 수 있지만 그 분해가 새로 관측된 것은 아니다. 처치 정의를 묶음으로 정할지, 별도 비교 설계로 개별 효과를 연구할지 구분해야 한다.

The observed comparison concerns the combined package, not a decomposition. Assumed additive effects five and three reproduce eight, but that decomposition is not newly measured. Define a package effect or find additional variation to separate the programs.

16. 사전 변수와 매개 변수Prior covariates and mediators

장학금 전에 기록한 부모 학력과, 지급 뒤 기록한 공부 시간이 있다. 설계 진단용 비교 변수와 처치 경로를 바꿀 수 있는 통제 변수를 구분하라. 부모 학력의 도약이 유의하지 않으면 연속성이 입증되는가?

Parental education is measured before scholarship assignment; study time is measured afterward. Distinguish a diagnostic predetermined variable from a possible mediator. Does insignificant imbalance in parental education prove continuity?

풀이와 확인할 이유Solution and explanation

부모 학력은 사전 비교 변수로 활용할 수 있다. 지급 뒤 공부 시간은 장학금이 공부를 통해 결과에 영향을 주는 매개일 수 있어 통제하면 표적이 달라질 수 있다. 사전 변수의 유의하지 않은 차이는 비교 가능성의 증명이 아니며 검정력과 다른 미관측 조건도 고려한다.

Parental education is predetermined and can inform diagnostics. Later study time may mediate a scholarship effect, so controlling for it can change the target. Insignificant imbalance is not proof of comparability; power and other unobserved conditions still matter.

17. 삼각 커널의 평균을 직접 계산Compute triangular-kernel means

x=−2,−1,1,2, Y=6,8,17,19, 문턱 0과 h=3이다. 각 행의 질량은 1이고 K(u)=1−|u|를 쓴다. 양쪽 무게와 가중평균 차이를 구하라.

Use x=−2,−1,1,2, Y=6,8,17,19, cutoff zero, h=3 and unit masses. With K(u)=1−|u|, compute weights and the side weighted-mean difference.

풀이와 확인할 이유Solution and explanation

무게는 순서대로 1/3,2/3,2/3,1/3이다. 양쪽 총무게가 각각 1이라 왼쪽 평균은 6/3+16/3=22/3, 오른쪽은 34/3+19/3=53/3이다. 차이는 31/3이다. 이는 가중 구간 평균 차이이며 국소 직선 절편 차이와 구분한다.

Weights are 1/3,2/3,2/3,1/3. Each side totals one, giving means 22/3 and 53/3 and difference 31/3. This weighted window contrast is distinct from a local-linear cutoff-intercept contrast.

18. 창 끝점의 0무게Zero weight at a window boundary

x=−2,−1,1,2와 h=2, c=0이다. 삼각 커널과 균등 커널의 양의 무게 행 수를 비교하라. 삼각 h=1로 바꾸면 두 평균을 0이라고 채워도 되는가?

At x=−2,−1,1,2, h=2 and c=0, compare positive-weight counts for triangular and uniform kernels. If triangular h becomes one, may undefined means be filled with zero?

풀이와 확인할 이유Solution and explanation

삼각 커널에서는 ±2가 끝점이라 무게 0이고 ±1만 양수여서 2행이다. 균등 커널은 끝점을 포함하므로 4행이다. 삼각 h=1에서는 모든 행이 끝점 또는 창 밖이라 양의 분모가 없다. 평균은 정의되지 않으며 관측된 평균 0으로 바꿀 수 없다.

Triangular weights vanish at ±2, leaving two positive-weight rows. A uniform kernel includes both boundaries and uses four. At triangular h=1 no positive-weight denominator remains. The means are undefined, not observed zeros.

19. 도넛 제외가 바꾸는 것What donut exclusion changes

x=−2,−1,1,2, c=0, h=3에서 균등 커널을 쓴다. donut=1.5이면 |x|<1.5를 뺀다. 남는 점수와 양쪽 서로 다른 점수 수를 구하라. 각 쪽 국소 직선의 절편이 유일하게 정해지는가?

Use x=−2,−1,1,2, cutoff zero, uniform h=3 and donut radius 1.5, removing |x|<1.5. Which scores remain? Is each side’s linear intercept uniquely determined?

풀이와 확인할 이유Solution and explanation

−2와 2만 남아 각 쪽 지원점이 하나다. 한 점으로 절편과 기울기 두 계수를 동시에 정할 수 없다. 예를 들어 왼쪽은 α−(2/3)β=Y(−2)라는 해의 가족이다. 문턱에서의 절편을 0으로 채우지 않고 미식별로 보고한다. 도넛은 행 수와 외삽 거리를 바꾸며 설계를 자동 복구하지 않는다.

Only −2 and 2 remain, one distinct score per side. One point cannot determine both intercept and slope. The left family satisfies α−(2/3)β=Y(−2). Report the cutoff intercept as unidentified rather than filling a free coefficient with zero. Donut exclusion changes support and extrapolation, not automatically design validity.

20. 빈도 집계에서 사라지면 안 되는 제곱합Preserve within-group variation when aggregating

같은 점수의 세 관측 Y=1,3,5를 한 행으로 묶는다. 평균과 질량 n, 평균 주위 제곱합 withinSS를 구하라. 적합값이 2일 때 원자료 제곱잔차합과 집계식 withinSS+n(평균−2)²를 비교하라.

Aggregate outcomes 1,3,5 at one common score. Find the mean, mass n and withinSS. For fitted value two, compare the raw squared-residual sum with withinSS+n(mean−2)².

풀이와 확인할 이유Solution and explanation

평균은 3, n=3, withinSS=(1−3)²+(3−3)²+(5−3)²=8이다. 원자료의 제곱잔차합은 (1−2)²+(3−2)²+(5−2)²=11이고 집계식도 8+3(3−2)²=11이다. 평균과 빈도만 남기면 계수는 같아질 수 있지만 전체 잔차합 8을 잃는다. 이 장은 withinSS도 보존한다.

∑i=1ng(Yi−v)2=∑i(Yi−Yˉg)2⏟withinSSg+ng(Yˉg−v)2\sum_{i=1}^{n_g}(Y_i-v)^2=\underbrace{\sum_i(Y_i-\bar Y_g)^2}_{\mathrm{withinSS}_g}+n_g(\bar Y_g-v)^2

The mean is three, n=3 and withinSS=8. Raw squared residuals around fitted value two total eleven, matching 8+3(3−2)². Mean and frequency can preserve coefficients while losing the within-group part of the full criterion. Our aggregation therefore retains withinSS too.

∑i=1ng(Yi−v)2=∑i(Yi−Yˉg)2⏟withinSSg+ng(Yˉg−v)2\sum_{i=1}^{n_g}(Y_i-v)^2=\underbrace{\sum_i(Y_i-\bar Y_g)^2}_{\mathrm{withinSS}_g}+n_g(\bar Y_g-v)^2

21. 국소 상수의 도함수Differentiate the local-constant objective

한쪽 관측이 Y=6,8이고 무게는 각각 1,3이다. Q(a)=(6−a)²+3(8−a)²를 최소화하는 상수 a를 구하고 양의 분모 조건을 설명하라.

One side has outcomes six and eight with weights one and three. Minimize Q(a)=(6−a)²+3(8−a)² and explain why a positive denominator matters.

풀이와 확인할 이유Solution and explanation

Q′(a)=2(a−6)+6(a−8)=8a−60이므로 a=15/2다. 가중평균 (6+3×8)/(1+3)과 같다. Q″=8>0이라 유일한 최소다. 두 무게가 모두 0이면 목적식이 모든 a에서 같아 관측이 상수를 정하지 못한다.

a^=6+3⋅81+3=152\hat a=\frac{6+3\cdot8}{1+3}=\frac{15}{2}

The derivative is 8a−60, so a=15/2, matching the weighted mean. The second derivative eight is positive, giving a unique minimum. If both weights vanish, the objective is constant for all a and no value is identified by observations.

a^=6+3⋅81+3=152\hat a=\frac{6+3\cdot8}{1+3}=\frac{15}{2}

22. 양쪽 직선의 절편Intercepts of two side-specific lines

왼쪽 점 (−2,6),(−1,8), 오른쪽 점 (1,17),(2,19)를 각기 Y=a+bx로 맞춘다. 두 기울기·절편과 문턱 0 대비를 직접 구하라.

Fit Y=a+bx separately to left points (−2,6),(−1,8) and right points (1,17),(2,19). Find both slopes, intercepts and the cutoff-zero contrast.

풀이와 확인할 이유Solution and explanation

왼쪽 b=(8−6)/(−1+2)=2이고 a=8−2(−1)=10이다. 오른쪽 b=(19−17)/(2−1)=2, a=17−2=15다. 문턱 대비는 15−10=5다. 비교 위치는 양쪽 모두 x=0이며 각 집단의 평균 점수 위치가 아니다.

Left slope is two and intercept ten; right slope is two and intercept fifteen. Their cutoff contrast is five. Both intercepts evaluate one common x=0, rather than their groups’ different mean-score locations.

23. 1947년을 원점으로 옮기기Make 1947 the origin

원연도 X의 식은 Y=−3884+2X다. c=1947에서 x=X−c로 중심을 옮겼을 때 식과 문턱 높이를 구하라. 원래 절편 −3884를 문턱 결과라고 읽어도 되는가?

The original-year equation is Y=−3884+2X. At cutoff 1947, rewrite it using x=X−1947 and give the cutoff height. Is −3884 that height?

풀이와 확인할 이유Solution and explanation

X=x+1947을 대입하면 Y=−3884+2x+3894=10+2x다. 문턱 x=0의 높이는 10이다. −3884는 원연도 0에 대응하는 절편이지 제도 문턱의 값이 아니다.

Substitution gives Y=10+2x. At the cutoff x=0, the height is ten. The original intercept refers to calendar year zero, not the policy threshold.

24. 표준화 기울기의 단위Units of a scaled slope

원점수 식 Y=10+2(X−c)를 u=(X−c)/h의 식으로 쓴다. h=3의 β와 h=5의 β를 구하라. 둘의 β가 다르면 원점수 기울기도 달라졌는가?

Rewrite Y=10+2(X−c) using u=(X−c)/h. Find β at h=3 and h=5. Does changing β here change the physical slope?

풀이와 확인할 이유Solution and explanation

Y=10+2hu이므로 β는 각각 6과 10이다. 원점수 기울기는 각각 6/3=2와 10/5=2로 같다. 표준화 좌표 계수를 직접 비교하면 단위 변경을 관계 변화로 오해할 수 있다.

Since Y=10+2hu, β is six and ten respectively. Dividing by h recovers physical slope two in both cases. Comparing scaled coefficients directly can confuse units with a changed relationship.

25. 정규방정식을 손으로 확인Verify normal equations by hand

왼쪽 x=−2,−1, Y=6,8, 균등 질량 1과 h=3이다. 설계 열이 (1,u), u=x/3일 때 G=XᵀX와 v=XᵀY를 구하고 계수 (α,β)=(10,6)이 해인지 확인하라.

For left scores −2,−1, outcomes 6,8, unit weights and h=3, use columns (1,u) with u=x/3. Form G=XᵀX and v=XᵀY, then verify coefficients (10,6).

풀이와 확인할 이유Solution and explanation

G=[[2,−1],[−1,5/9]], v=(14,−20/3)이다. G(10,6)=(20−6,−10+10/3)=(14,−20/3)이다. 행렬식은 10/9−1=1/9>0이므로 두 계수가 유일하다.

(2−1−15/9)(106)=(14−20/3)\begin{pmatrix}2&-1\\-1&5/9\end{pmatrix}\binom{10}{6}=\binom{14}{-20/3}

G=[[2,−1],[−1,5/9]] and v=(14,−20/3). Multiplication by (10,6) gives v. Determinant 1/9 is nonzero, so both coefficients are unique in this fit.

(2−1−15/9)(106)=(14−20/3)\begin{pmatrix}2&-1\\-1&5/9\end{pmatrix}\binom{10}{6}=\binom{14}{-20/3}

26. 한 점을 지나는 해의 가족The family through one point

한쪽에는 x=−1,Y=8만 있고 h=3이다. α+β(x/h)=8의 모든 해를 나타내고, (8,0)을 유일한 절편·기울기라고 보고할 수 있는지 설명하라.

One side contains only x=−1,Y=8 at h=3. Describe every solution of α+β(x/h)=8. Is (8,0) the unique intercept-slope pair?

풀이와 확인할 이유Solution and explanation

α−β/3=8이므로 (α,β)=(8+t/3,t), t는 임의의 실수다. (8,0)은 t=0인 한 해다. t=3이면 (9,3)도 같은 점을 지나다. 절편은 t에 따라 달라 문턱 값을 식별하지 못한다.

Every solution is (α,β)=(8+t/3,t). The pair (8,0) is merely t=0; t=3 gives (9,3). Because the intercept varies across the family, its cutoff value is not identified.

27. 기울기는 자유지만 절편은 고정A free slope with an identified intercept

문턱 x=0에 Y=15와 17 두 행이 있고 각 무게는 1이다. Y=α+βu를 맞춘다. 최소 절편·기울기 가족과 제곱잔차합을 구하라. rank가 1이면 절편도 항상 미식별인가?

Two records at cutoff x=0 have outcomes fifteen and seventeen, each with weight one. Fit Y=α+βu. Find the minimizing family and squared-residual sum. Does rank one necessarily make the intercept unidentified?

풀이와 확인할 이유Solution and explanation

u=0이므로 목적식은 (15−α)²+(17−α)²이고 β에 의존하지 않는다. 최소 가족은 (α,β)=(16,t)이며 잔차합은 1+1=2다. 절편은 모든 해에서 16으로 같다. rank 부족이 모든 개별 계수를 미식별로 만드는 것은 아니다.

The objective depends only on α and is minimized at sixteen. All (16,t) are solutions, with residual sum two. The intercept is fixed across the family despite an unrestricted slope. Rank deficiency does not make every coefficient unidentified.

28. 차수를 올려 생기는 자유 방향A free direction introduced by a quadratic

왼쪽 x=−2,−1에서 관측값을 맞춘 이차식 a+bx+qx²가 있다. g(x)=(x+2)(x+1)을 더해도 두 관측의 적합값이 바뀌는가? 문턱 x=0의 높이는?

A quadratic a+bx+qx² fits observations at x=−2 and −1. Does adding g(x)=(x+2)(x+1) change their fitted values? What happens at cutoff zero?

풀이와 확인할 이유Solution and explanation

g(−2)=g(−1)=0이라 관측 적합값은 같다. 하지만 g(0)=2라 문턱 절편은 2 커진다. 계수에 (2,3,1)을 더하는 자유 방향이 존재한다. 두 점에 이차식을 쓸 때 절편이 유일하지 않은 이유이며, 자유 계수를 0으로 정해도 그 문제는 해결되지 않는다.

g vanishes at both observed scores, leaving their fitted values unchanged, but g(0)=2 changes the cutoff height. Adding coefficient vector (2,3,1) gives a free direction. A chosen zero free coefficient does not make the quadratic cutoff intercept unique.

29. 절편 대비의 네 선형계수Four linear coefficients for the contrast

좌우 점수 −2,−1,1,2의 두 점 직선 대비가 Y(−2)−2Y(−1)+2Y(1)−Y(2)라고 한다. 상수 결과 Y=7이면 대비는? 공통 직선 Y=10+2x이면?

The two-point-per-side contrast is Y(−2)−2Y(−1)+2Y(1)−Y(2). Evaluate it for constant outcomes seven and for the common line Y=10+2x.

풀이와 확인할 이유Solution and explanation

상수는 7(1−2+2−1)=0이다. 공통 직선의 값 6,8,12,14를 넣으면 6−16+24−14=0이다. 대비 계수의 총합과 점수와의 내적이 0이어서 공통 상수·공통 직선 성분이 상쇄된다. 실제 처치 도약까지 없다는 뜻은 아니다.

The constant gives zero. The common-line values 6,8,12,14 also give 6−16+24−14=0. Total coefficient sum and the score-weighted coefficient sum vanish, canceling common constant and linear components. This does not exclude an additional treatment jump.

30. 한 행의 변화가 대비에 미치는 영향How one changed outcome affects the contrast

x=−2,−1,1,2에서 Y=6,8,17,19를 두 점 직선으로 맞춘 대비는 5다. 마지막 Y(2)만 20으로 바꾸면 다른 조건이 같을 때 대비는 얼마인가?

Two side-specific lines through outcomes 6,8,17,19 at scores −2,−1,1,2 give contrast five. Change only Y(2) to twenty. What is the new contrast?

풀이와 확인할 이유Solution and explanation

대비에서 마지막 행의 계수는 −1이므로 Y가 1 늘면 대비가 1 줄어 4다. 직접 계산해도 6−16+34−20=4다. 양의 Y 변화가 추정 대비를 반드시 올리지는 않으며, 외삽 선형계수를 확인해야 한다.

The final row’s contrast coefficient is −1, so increasing it by one reduces the contrast to four. Direct substitution gives 6−16+34−20=4. An increased outcome need not increase an extrapolated contrast.

31. 모든 적합 무게를 두 배로Double every fitting weight

한쪽 가중 제곱오차 Q(b)=Σwᵢ(Yᵢ−Xᵢb)²의 모든 양의 무게를 같은 수 2배로 바꾼다. 최소해의 집합과 최소 제곱잔차합은 어떻게 되는가?

Every weight in Q(b)=Σwᵢ(Yᵢ−Xᵢb)² is multiplied by two. What happens to the set of minimizers and the minimum criterion?

풀이와 확인할 이유Solution and explanation

새 목적식은 2Q(b)이므로 대소 순서와 최소해의 집합은 같다. 최소 목적함수값은 두 배다. 정규방정식의 행렬과 우변도 모두 두 배라 해는 같아진다. 무게의 공통 척도 변화와 특정 행의 상대 무게 변화는 다르다.

The new objective 2Q has the same ordering and minimizing set, while its minimum value doubles. Both sides of the normal equations scale together. This differs from changing relative weights for particular records.

32. withinSS에 커널을 곱하는 위치Where the kernel multiplies withinSS

같은 x의 세 결과 1,3,5를 평균 3, 질량 3, withinSS=8로 묶었다. 커널 무게 K=1/2이며 적합값은 2다. 전체 가중 제곱잔차합은? withinSS에도 다시 질량 3을 곱해야 하는가?

Outcomes 1,3,5 at one x are summarized by mean three, mass three and withinSS eight. Kernel weight is 1/2 and fitted value two. Find the full weighted squared-error sum. Should withinSS be multiplied by mass again?

풀이와 확인할 이유Solution and explanation

K[withinSS+n(평균−적합)²]=(1/2)[8+3(1)]=11/2다. withinSS는 이미 세 원관측의 합이므로 다시 3을 곱하면 중복 집계다. 원자료에 직접 (1/2)[1+1+9]를 계산해도 11/2다.

The criterion is (1/2)[8+3(3−2)²]=11/2. withinSS already sums the three original observations; multiplying it by mass again double-counts them. Direct calculation on raw records gives the same value.

33. 잡음 없이도 생기는 근사 편향Approximation bias without sampling noise

문턱 0에서 왼쪽 평균 10+2x, 오른쪽 평균 15+2x+x²를 그대로 관측했다고 하자. 점수 −2,−1,1,2에서 두 점 직선 절편 대비와 진짜 문턱 차이, 편향을 구하라.

Observe exact means 10+2x on the left and 15+2x+x² on the right at scores −2,−1,1,2. Find the two-line cutoff contrast, true cutoff difference and approximation bias.

풀이와 확인할 이유Solution and explanation

관측값은 6,8,18,23이다. 대비는 6−16+36−23=3, 진짜 차이는 15−10=5라 편향은 −2다. 오른쪽 선은 두 점을 정확히 지나 잔차가 0이어도 곡률 때문에 문턱에서 빗나간다.

Values are 6,8,18,23. The linear contrast is three versus true cutoff difference five, giving bias −2. Exact fit through the two right observations does not eliminate curvature error at the threshold.

34. 양쪽 곡률 편향이 우연히 상쇄Curvature biases can happen to cancel

왼쪽 평균이 10+2x+x²이고 오른쪽은 그 함수에 5를 더한 것이다. 점수 −2,−1,1,2에서 두 점 직선을 맞춘다. 각 절편과 대비를 구하고 곡률이 언제나 무해하다고 결론내릴 수 있는지 설명하라.

The left mean is 10+2x+x² and the right is that mean plus five. Fit two-point lines at scores −2,−1,1,2. Find intercepts and contrast. Does the answer make curvature universally harmless?

풀이와 확인할 이유Solution and explanation

값은 10,9,18,23이다. 왼쪽 절편은 −10+18=8, 오른쪽은 36−23=13이라 대비는 5다. 실제 문턱 높이 10·15에 비해 두 절편이 모두 2 작아 우연히 상쇄했다. 곡률·창·점수 배치가 달라지면 상쇄하지 않을 수 있다.

Values are 10,9,18,23, giving intercepts eight and thirteen and contrast five. Both intercepts are two below their true cutoff heights, so their biases cancel. Different curvature, support or bandwidth choices need not produce that cancellation.

35. 대비의 잡음 분산Variance of a contrast under assumed independent errors

네 행 오차가 서로 독립이고 각각 분산 4다. 대비 계수가 (1,−2,2,−1)일 때 분산을 구하라. 이 독립 가정을 반복된 주 선거에 자동으로 적용해도 되는가?

Four row errors are independent, each with variance four. Calculate variance for contrast coefficients (1,−2,2,−1). May independence automatically be assumed for repeated elections within a state?

풀이와 확인할 이유Solution and explanation

분산은 Σℓ²σ²=(1+4+4+1)×4=40이다. 반복된 주 선거의 오차에는 같은 주의 공통 충격이나 시간적 상관이 있을 수 있어 별도 추론 가정이 필요하다. 40은 정한 독립 잡음 예의 값이지 실제 상원 표준오차가 아니다.

The variance is forty. Repeated state elections can share shocks or temporal dependence, requiring separate assumptions. Forty belongs to this hypothetical independent-error example, not to an estimated Senate standard error.

36. 작은 분산과 작은 MSE는 다르다Small variance and small MSE differ

목표 효과는 5다. 독립 분산 4의 잡음이 평균 6,8,17,19에 더해진다. 원집단 평균 차이 계수는 (−1/2,−1/2,1/2,1/2), 직선 대비는 (1,−2,2,−1)이다. 두 추정량의 편향·분산·MSE를 구하라.

The target effect is five. Independent noise with variance four is added to means 6,8,17,19. Compare raw-mean coefficients (−1/2,−1/2,1/2,1/2) with linear-contrast coefficients (1,−2,2,−1): give bias, variance and MSE.

풀이와 확인할 이유Solution and explanation

원평균 차이의 기대값은 11이라 편향 6, 분산은 4×4×(1/4)=4, MSE는 36+4=40이다. 직선 대비의 기대값은 5라 편향 0, 분산은 40, MSE도 40이다. 이 가정한 숫자에서 MSE가 같을 뿐 다른 잡음 크기·곡률에서는 비교가 달라진다.

The raw difference has expectation eleven, bias six, variance four and MSE forty. The linear contrast has expectation five, zero bias, variance forty and the same MSE. This equality belongs to the chosen example; different noise levels or curvature can change the comparison.

37. 곡률 상한을 신뢰구간으로 읽지 않기A curvature bound is not a confidence interval

문턱 거리 −2,−1,1,2와 대비 계수 (1,−2,2,−1)에서 문턱부터 각 점수까지의 양쪽 전 구간(도넛으로 뺀 틈 포함)에 |μ″|≤M=2를 가정한다. MΣ|ℓ|x²/2의 값을 구하라. 추정 대비에 이 값을 더하고 빼면 자동으로 95% 신뢰구간인가?

At distances −2,−1,1,2 with coefficients (1,−2,2,−1), assume |μ″|≤2 along both cutoff-to-score intervals, including any donut-excluded gap. Evaluate MΣ|ℓ|x²/2. Does adding and subtracting it automatically give a 95% confidence interval?

풀이와 확인할 이유Solution and explanation

합은 4+2+2+4=12이고 M/2=1이라 상한 12다. 이는 가정한 평균 곡선의 근사 오차 상한이며 표본 잡음의 확률분포를 포함하지 않는다. M=2도 자료가 입증한 값이 아니다. 신뢰수준 95%를 붙일 근거가 없다.

The squared-distance sum is twelve and M/2 is one, giving bound twelve. It restricts approximation under assumed mean curvature, without a sampling distribution. Neither M=2 nor 95% coverage is established by this arithmetic.

38. 같은 기본 프레임의 창 비교Compare windows without changing the base frame

기본 네 행은 x=−2,−1,1,2, Y=6,8,17,19다. 균등 커널의 국소 직선으로 h=1,2,3을 비교한다. 각 창의 양의 무게 행 수와 대비의 정의 여부·값은?

For base records x=−2,−1,1,2 and Y=6,8,17,19, compare uniform local-linear fits at h=1,2,3. Give positive-weight counts and whether the contrast is defined, including its value when defined.

풀이와 확인할 이유Solution and explanation

h=1은 끝점 ±1을 포함해 2행이지만 각 쪽 한 점수라 절편 대비가 정해지지 않는다. h=2와 3은 4행을 모두 포함하고 각 쪽 두 점수라 대비 5다. 완전한 기본 행 4개는 그대로이며 창에 따른 포함만 달라진다. β는 h에 따라 달라도 원점수 기울기는 2다.

h=1 includes two boundary records but only one score per side, so the cutoff contrast is unidentified. h=2 and h=3 include all four and give contrast five. The four complete base rows remain fixed; only window membership changes. Scaled β changes with h while physical slope stays two.

39. 대역폭 비율을 유도하는 간단한 모형Derive a bandwidth rate in a hypothetical model

차원 없는 h>0와 n>0에서 근사 MSE(h)=h⁴+4/(nh)를 가정한다. 미분으로 최소 h를 구하고 n=32일 때 값을 구하라. 이 식이 모든 이산 점수 자료의 선택 규칙인가?

Assume the dimensionless approximation MSE(h)=h⁴+4/(nh), h,n>0. Find its minimizing h by differentiation, evaluate at n=32 and discuss whether it applies to every discrete-score dataset.

풀이와 확인할 이유Solution and explanation

도함수 4h³−4/(nh²)=0에서 h⁵=1/n, h=n^(−1/5)다. 이차 도함수 12h²+8/(nh³)>0이라 유일한 최소이며 n=32이면 h=1/2다. 정한 근사식의 결과일 뿐 연속 밀도·매끄러움·표본 가정이 없는 이산 지원점에 그대로 적용할 수 없다.

4h3−4nh2=0 ⟹ h5=1n ⟹ h=n−1/54h^3-\frac4{nh^2}=0\ \Longrightarrow\ h^5=\frac1n\ \Longrightarrow\ h=n^{-1/5}

Setting 4h³−4/(nh²)=0 gives h=n^(-1/5). The positive second derivative gives a unique minimum. At n=32, h=1/2. This follows the hypothetical approximation, not a universal rule for discrete supports lacking its regularity assumptions.

4h3−4nh2=0 ⟹ h5=1n ⟹ h=n−1/54h^3-\frac4{nh^2}=0\ \Longrightarrow\ h^5=\frac1n\ \Longrightarrow\ h=n^{-1/5}

40. 0잔차가 인증하지 않는 것What a zero residual does not certify

각 쪽 두 점을 통과하는 직선의 제곱잔차합이 0이고 컴퓨터 정규방정식 잔차도 0이다. 이것으로 진짜 문턱 효과·연속성·95% 신뢰구간까지 모두 정확하다고 말할 수 있는가?

A line through two points on each side has zero squared residuals and the computed normal equations have zero residual. Does this certify the true cutoff effect, continuity and a correct 95% interval?

풀이와 확인할 이유Solution and explanation

아니다. 정규방정식 잔차는 선언한 유한 가중회귀의 내부 계산을 확인하고, 표본 잔차는 관측된 점에 대한 맞음을 확인한다. 문턱까지의 곡률 근사, 표본 변동, 잠재평균 연속성, 다른 제도의 부재와 같은 인과·추론 전제는 별도다. 무잡음 곡률 예에서도 0잔차인 대비 3이 진짜 차이 5와 달랐다.

No. Normal-equation residuals check internal solution consistency, and sample residuals check fit at observed points. Curvature toward the cutoff, sampling variation, potential-mean continuity and other interventions remain separate. Even the noise-free curved example has zero residuals but contrast three instead of true difference five.

41. 첫 단계와 비율의 단위First stage and ratio units

문턱의 결과 도약은 출석 3일, 실제 장학금 수혜 확률은 왼쪽 1/5·오른쪽 4/5다. 첫 단계 도약과 Wald 비율을 구하라. 비율 계산만으로 모든 학생의 효과라고 결론낼 수 있는가?

The outcome jump is three attendance days and receipt probabilities are 1/5 left and 4/5 right. Compute the first-stage jump and Wald ratio. Does the calculation establish an effect for every student?

풀이와 확인할 이유Solution and explanation

첫 단계는 4/5−1/5=3/5이고 비율은 3/(3/5)=5일이다. 수혜 변화 1에 대응하는 결과 단위다. 국소 연속성·배제·단조성 등을 더 가정하면 문턱 순응자의 효과로 해석할 수 있지만, 비율 계산만으로 전체 학생의 평균 효과가 되지 않는다.

The first stage is 3/5 and the ratio five days. It has outcome units per unit change in receipt. Suitable continuity, exclusion and monotonicity can support a local-complier interpretation, not an automatic effect for all students.

42. 0분모와 작은 분모Zero and small denominators

결과 도약 ΔY=3에서 첫 단계가 0,1/100,2/100인 세 경우의 비율을 비교하라. 첫 경우를 0으로 채워도 되는가? 작은 분모를 정확한 분수로 계산하면 통계적 불확실성도 사라지는가?

With outcome jump three, compare first stages zero, 1/100 and 2/100. May the first ratio be filled with zero? Does exact fractional arithmetic remove uncertainty from a small estimated denominator?

풀이와 확인할 이유Solution and explanation

첫 경우는 미정의이고 나머지는 300과 150이다. 0분모는 효과 0이라는 관측이 아니다. 작은 첫 단계의 변화가 비율을 크게 바꿀 수 있으며, 분수 계산은 산술 오차를 줄여도 표본 오차와 약한 식별을 없애지 않는다.

The ratios are undefined, 300 and 150. Zero denominator is not evidence of zero effect. Exact fractions remove rounding ambiguity, not sampling error or weak identification.

43. 결과와 수혜의 공통 완전 행One joint complete frame

x=−2,−1,1,2, Y=10,20,30,40, d=0,null,1,1이다. 문턱 0, 균등 h=3, 국소 상수로 x·y·d 공통 완전 행만 쓴다. 결과 도약·수혜 도약·비율을 구하라. Y만 네 행을 모두 쓰면 어떤 다른 분자가 생기는가?

Use x=−2,−1,1,2, Y=10,20,30,40 and d=0,null,1,1. At cutoff zero, uniform h=3 and degree zero, retain only jointly complete x,y,d rows. Find both jumps and their ratio. What different numerator results if all four Y records are used instead?

풀이와 확인할 이유Solution and explanation

공통 프레임은 −2,1,2다. Y 왼쪽은 10·오른쪽은 35라 도약 25, d는 0과 1이라 도약 1, 비율 25다. Y만 네 행을 쓰면 왼쪽 평균 15로 도약이 20이 된다. 이 다른 분자를 공통 첫 단계와 섞지 않는다.

The common frame contains −2,1,2. Outcome means ten and thirty-five give jump twenty-five; receipt means zero and one give jump one, hence ratio twenty-five. Using all four Y rows instead gives numerator twenty by changing its left population. Do not silently mix those frames.

44. 적합 확률을 몰래 자르면Silently clipping fitted probabilities changes the ratio

x=−2,−1,1,2에서 d=1,0,1,0이고 Y=0,0,3,3이다. 균등 h=3으로 각 쪽 직선을 맞춘다. 수혜 절편·도약과 비율은? 절편을 [0,1]로 자르면 같은 계산인가?

At x=−2,−1,1,2 use d=1,0,1,0 and Y=0,0,3,3. Fit side-specific lines with uniform h=3. Find receipt intercepts, first stage and ratio. Is clipping intercepts into [0,1] the same computation?

풀이와 확인할 이유Solution and explanation

왼쪽 d 직선은 −1−x라 절편 −1, 오른쪽은 2−x라 절편 2다. 도약은 3이고 Y 도약 3을 나눈 비율은 1이다. 절편을 0과 1로 자르면 분모 1·비율 3이 되어 다른 계산이다. 관측 d는 0·1이어도 외삽 확률은 범위 밖일 수 있으며 모형과 인과 해석을 재검토해야 한다.

Receipt intercepts are −1 and two, giving fitted jump three. The Y jump three yields ratio one. Clipping to zero and one changes the denominator to one and ratio to three. Valid observed binary inputs do not guarantee valid extrapolated probability levels; inspect the specification and interpretation.

45. 순응자만 변하는 가상 모집단A hypothetical local-complier population

가상 국소 모집단은 항상 수혜자 1/5, 순응자 3/5, 절대 미수혜자 1/5이며 배정에 따라 유형 구성은 달라지지 않는다. 배제·단조성을 가정하고 순응자의 평균 효과가 5다. 배정에 따른 수혜 도약·결과 도약·비율은? 전체 평균 효과도 5인가?

An assumed local population contains always-takers 1/5, compliers 3/5 and never-takers 1/5, with the same composition under assignment. Under exclusion and monotonicity, compliers have mean effect five. Find receipt jump, outcome jump and ratio. Is the population ATE necessarily five?

풀이와 확인할 이유Solution and explanation

배정 전 수혜는 1/5, 후에는 4/5라 첫 단계 3/5다. 수혜가 바뀌는 순응자 효과만 반영되어 결과 도약은 (3/5)5=3, 비율은 5다. 항상 수혜자·절대 미수혜자의 처치 효과는 이 비교에서 알려지지 않으므로 전체 평균까지 5라고 할 수 없다.

Receipt increases from 1/5 to 4/5, a jump of 3/5. Only compliers change treatment, giving outcome jump three and ratio five. Effects for always-takers and never-takers remain unknown, so the population ATE need not equal five.

46. 역순응자가 섞인 비율A ratio with defiers

가상 유형 비중은 순응자 1/2·역순응자 1/10·항상 수혜자 1/5·절대 미수혜자 1/5다. 배정 유형 구성이 같고 배제 조건은 성립하지만 단조성은 없다. 순응자 효과 4, 역순응자 효과 10이면 첫 단계·결과 도약과 비율을 구하라.

Assume compliers 1/2, defiers 1/10, always-takers 1/5 and never-takers 1/5, with stable composition and exclusion but no monotonicity. Complier effects are four and defier effects ten. Compute first stage, outcome jump and ratio.

풀이와 확인할 이유Solution and explanation

첫 단계는 1/2−1/10=2/5다. 배정은 순응자의 처치를 늘리고 역순응자의 처치를 줄이므로 결과 도약은 (1/2)4−(1/10)10=1이다. 비율은 1/(2/5)=5/2로 순응자 효과 4와 다르다. 양의 첫 단계만으로 단조성이나 순응자 평균 해석이 보장되지 않는다.

The first stage is 2/5. Outcome jump is (1/2)4−(1/10)10=1 because defiers lose treatment. The ratio 5/2 differs from the complier effect four. A positive first stage does not establish monotonicity or a complier-average interpretation.

47. 이산 지원점에서 같은 관측 만들기Construct observationally identical discrete-support means

왼쪽 지원점은 −2와 −1, 문턱은 0이다. 연속인 무처치 평균 μ0(x)에 g(x)=a(x+2)(x+1)/2를 더한다. 왼쪽 관측과 문턱의 무처치 값은 어떻게 달라지는가? 오른쪽 처치 평균을 유지하면 문턱 효과는?

Left support is −2 and −1, cutoff zero. Add g(x)=a(x+2)(x+1)/2 to a continuous no-treatment mean μ0(x). What changes at observed left scores and at the cutoff? Keep right treated means unchanged.

풀이와 확인할 이유Solution and explanation

g(−2)=g(−1)=0이라 왼쪽 관측은 같고 g(0)=a라 무처치 문턱 값은 a 늘어난다. 오른쪽 처치 평균은 같으므로 효과 μ1(0)−μ0(0)는 a 줄어든다. 두 함수가 연속이어도 고정 이산 지원점의 관측만으로 그 효과를 구분하지 못할 수 있다. 필요한 범위 제약은 a 선택에도 유지한다.

g(−2)=g(−1)=0,g(0)=a,τ′(0)=τ(0)−ag(-2)=g(-1)=0,\quad g(0)=a,\qquad \tau^{\prime}(0)=\tau(0)-a

The added function vanishes at both left support points but equals a at zero. Keeping treated means fixed reduces the cutoff effect by a. Continuous functions can therefore give the same discrete-support observations and different cutoff effects. Choose a values consistent with any required outcome bounds.

g(−2)=g(−1)=0,g(0)=a,τ′(0)=τ(0)−ag(-2)=g(-1)=0,\quad g(0)=a,\qquad \tau^{\prime}(0)=\tau(0)-a

48. 반복 관측이 rank를 늘리는가Do repeated records increase design rank?

왼쪽 점수는 −1, 오른쪽은 0만 가능하며 각 점수에 관측 100000개가 있다. 국소 직선 열은 (1,x)다. 각 쪽 설계 rank와 문턱 절편의 식별 여부를 설명하라.

Only score −1 occurs on the left and zero on the right, with one hundred thousand observations at each. Local-linear columns are (1,x). Explain each side’s rank and cutoff-intercept identification.

풀이와 확인할 이유Solution and explanation

각 쪽 동일한 설계 행의 반복이라 rank는 각각 1이다. 오른쪽 x=0에서는 절편이 그 평균으로 정해지지만 왼쪽은 α−β가 정해질 뿐 α가 자유다. 따라서 대비는 미식별이다. 관측을 더 반복해도 서로 다른 점수가 생기지 않아 rank 부족을 해결하지 않는다.

Each side repeats one design row and has rank one. At right x=0 the intercept is fixed by its mean, but the left only identifies α−β, leaving α free. The contrast is unidentified. More repetitions do not introduce new score values or increase rank.

49. 상원 사례의 세 분모Three denominators in the Senate case

공개 상원 준비 표는 1390행, running·결과 공통 완전 행은 1297개다. 기본 삼각 h=10의 양의 무게는 왼쪽 245·오른쪽 206이다. 결측으로 빠진 수, 완전하지만 양의 무게를 받지 않는 수, 실제 양의 무게 행 수를 구하라.

The Senate table contains 1,390 rows, 1,297 complete for running variable and outcome. Default triangular h=10 has 245 positive-weight rows left and 206 right. Compute missing-frame exclusions, complete rows without positive weight, and positive-weight rows.

풀이와 확인할 이유Solution and explanation

결측 제외는 1390−1297=93개, 양의 무게 행은 245+206=451개다. 완전하지만 이번 회귀에서 양의 무게가 없는 행은 1297−451=846개다. 1390·1297·451은 서로 다른 분모이며 결측 결과를 0으로 바꾸거나 창 밖을 사용한 것처럼 쓰지 않는다.

There are ninety-three incomplete rows, 451 positive-weight rows, and 846 complete rows without positive weight in this fit. These three denominators describe different stages. Do not fill missing outcomes with zero or imply all complete rows enter the local fit.

50. 선거 인덱스의 t+2The meaning of election index t+2

가정한 주에서 의석 A 선거는 2000년, 의석 B는 2004년, 다음 의석 A는 2006년이다. 원연구처럼 연속 선거를 t,t+1,t+2로 부른다. 2000년 행의 t+2 결과는 언제·어느 의석인가? 정당 결과와 특정 후보 결과는 같은가?

In an illustrative state, seat A is elected in 2000, seat B in 2004 and seat A again in 2006. Consecutive elections are t,t+1,t+2 as in the study. Which election is the 2000 row’s t+2 outcome? Is a party outcome identical to one candidate’s outcome?

풀이와 확인할 이유Solution and explanation

t+2는 2006년 같은 의석 A이며 2002년이 아니다. t+1인 2004년은 다른 의석 B다. 미래 정당 득표율은 후보자가 교체되어도 기록될 수 있어 특정 정치인 개인의 재선 효과와 구분한다.

The t+2 outcome concerns seat A in 2006, not calendar year 2002. The t+1 election in 2004 concerns the other seat. Party vote share can be observed with a replacement candidate, so it is not identical to a particular politician’s reelection effect.

51. 소득 수준 대비와 교육 수익률An earnings-level contrast is not a schooling return

영국 준비 자료에는 연간 소득과 14세가 된 연도만 있고 교육 수혜 열은 없다. 기본 국소 소득 수준 대비가 약 −302.48파운드다. 이를 추가 교육 1년의 −302.48% 수익률이나 법의 확정된 피해라고 보고할 수 있는가?

The prepared UK table contains annual earnings and the year of turning fourteen, but no schooling-uptake column. A local earnings-level contrast is about −302.48 pounds. Can it be reported as a −302.48% return to one additional school year or as established policy harm?

풀이와 확인할 이유Solution and explanation

아니다. 수치는 소득 수준의 파운드 단위 대비이며 %나 로그 소득 변화가 아니다. 실제 교육 첫 단계가 없어 교육 1년당 효과도 새로 계산하지 못한다. 이산 코호트의 외삽·표본 구성·통제와 연속성 전제를 더 검토해야 하므로 부호만으로 법의 인과적 피해를 확정하지 않는다.

No. It is a level contrast in pounds, not a percent or log-earnings change. Without a schooling first stage, it does not estimate a per-year schooling return. Discrete-cohort extrapolation, sampling, controls and identification assumptions prevent a causal harm claim from the sign alone.

52. 같은 행 수는 같은 데이터인가Equal row counts do not prove identical data

현재 준비 표의 73954행이 과거 논문 정오표의 한 표본 수와 같다. 이것만으로 원논문의 변수·표본 제한·병합·로그 변환·추론까지 완전히 재현했다고 할 수 있는가? 확인해야 할 근거를 설명하라.

A prepared table has 73,954 rows, matching one sample count in a published corrigendum. Does this prove full reproduction of variables, restrictions, merges, transformations and inference? Explain needed evidence.

풀이와 확인할 이유Solution and explanation

행 수 일치는 한 단서일 뿐이다. 관측 위치나 키, 포함 조건, 변수 정의와 단위, 결측 처리, 원조사 병합, 적용 코드·변환과 추론 조건까지 대조해야 한다. 이 장은 현재 공개 준비 표와 그 보존 값의 계산을 재현하며, 행 수만으로 underlying 원조사 재구성과 논문 전체 재현을 주장하지 않는다.

Matching counts are one clue. Compare record keys or positions, selection rules, definitions, units, missingness, merges, code, transformations and inference. This chapter reproduces calculations on the released prepared table, not a reconstruction of the underlying survey or the entire publication inferred merely from a matching count.

53. 기업 원행·집계·창의 수Business records, aggregates and a window

실제 한 회사의 첫 1000상품 줄 중 양의 수량·단가인 989줄이 39개 수량으로 집계된다. 기본 창은 9개 수량 그룹, 원행 질량 497개를 사용한다. 원선택 제외 수와 유효 판매 중 이번 창에 쓰이지 않는 수를 구하라. 9그룹을 9개 회사라고 해도 되는가?

Of one company’s first one thousand product lines, 989 positive-quantity, positive-price records form thirty-nine quantity groups. A default window uses nine groups with total original frequency 497. Find initial exclusions and eligible records not used in this window. Are the nine groups nine companies?

풀이와 확인할 이유Solution and explanation

초기 제외는 1000−989=11줄이고 유효 판매 중 창에서 양의 무게가 없는 수는 989−497=492줄이다. 9는 서로 다른 수량 그룹 수이지 기업 수가 아니다. 같은 회사 안의 상품 조합·주문 선택과 표본 기간 편의를 함께 밝힌다.

Initial exclusions total eleven; 492 otherwise eligible records lack positive weight in this window. Nine counts quantity groups, not firms. State that product composition and order choices occur within one company and that the selected beginning records are not a random period sample.

54. 임의 수량 문턱과 실제 할인A chosen quantity threshold versus a measured discount rule

기업 데이터에 수량·상품·단가만 있다. 분석자가 수량 6을 기준으로 선을 그리고 단가 대비 약 0.2507파운드/개를 얻었다. 파일에는 6개부터 할인한다는 규칙이나 실제 처치 열이 없다. 이 수치를 수량 할인 효과라고 부를 수 있는가?

A business table contains quantity, product and unit price. An analyst draws a threshold at six and gets a contrast around 0.2507 pounds per item. No rule of discount eligibility or treatment at six is documented. Is this a quantity-discount effect?

풀이와 확인할 이유Solution and explanation

그렇게 부를 근거가 없다. 임의 기준의 조건부 단가 비교이며 상품 종류나 주문 선택도 달라질 수 있다. 실제 배정 규칙·수혜와 식별 전제 없이 선을 그리는 행위만으로 RD 연구 설계가 만들어지지 않는다. 실제 자료인 점과 인과 해석이 가능한 점은 별개다.

That label is unsupported. It is a conditional price contrast at a chosen threshold, with product and order composition potentially different. An RD design requires an assignment setting and identifying assumptions, not merely a line. Real records do not by themselves establish a causal interpretation.

55. 공분산을 빠뜨리면What omitted covariance can change

두 오차의 분산이 각각 4, 공분산이 4라고 가정한다. 합 e1+e2와 차 e1−e2의 분산을 구하라. 독립이라고 잘못 계산한 값과 비교하고 의존성을 무조건 표준오차 증가로만 읽어도 되는지 설명하라.

Two errors each have variance four and covariance four. Compute variances of their sum and difference, compare with an incorrect independence calculation, and discuss whether dependence always increases standard errors.

풀이와 확인할 이유Solution and explanation

합의 분산은 4+4+2×4=16, 차는 4+4−2×4=0이다. 독립으로 계산하면 둘 다 8이다. 대비 계수의 부호와 공분산 구조에 따라 의존성의 영향이 달라진다. 실제 주별 반복 자료에서는 자료 구조에 맞는 추론을 선택해야 하며 무조건 한 방향이라고 가정하지 않는다.

The sum has variance sixteen and the difference zero; independence would incorrectly give eight for each. Coefficient signs and covariance structure determine the change. Repeated-unit inference should reflect the actual structure, not an assumption that all dependence effects have one direction.

56. 편향 보정 추정량의 분산Variance after estimating a bias correction

추정치 T의 분산은 4, 편향 추정치 B의 분산은 1, 공분산 Cov(T,B)=−1이라고 가정한다. T−B의 분산을 구하라. 중심만 바꾸고 T의 원래 표준오차 2를 그대로 써도 되는가?

Assume Var(T)=4, Var(B)=1 and Cov(T,B)=−1. Find Var(T−B). Is retaining T’s original standard error two justified merely by changing the center?

풀이와 확인할 이유Solution and explanation

Var(T−B)=Var(T)+Var(B)−2Cov(T,B)=4+1+2=7이다. 표준오차는 √7이며 2가 아니다. 실제 편향 보정에서는 공분산까지 포함한 조건이 필요하다. 여기의 숫자는 원리를 보여 주는 가정이며 특정 RD 패키지의 실제 분산 출력이라고 부르지 않는다.

Var⁡(T−B)=Var⁡(T)+Var⁡(B)−2Cov⁡(T,B)=7\operatorname{Var}(T-B)=\operatorname{Var}(T)+\operatorname{Var}(B)-2\operatorname{Cov}(T,B)=7

The variance is seven and its standard deviation √7, not two. A bias-adjusted center needs the variance of the adjusted estimator, including covariance. These are assumed illustrative moments, not a claimed output from a professional RD package.

Var⁡(T−B)=Var⁡(T)+Var⁡(B)−2Cov⁡(T,B)=7\operatorname{Var}(T-B)=\operatorname{Var}(T)+\operatorname{Var}(B)-2\operatorname{Cov}(T,B)=7

57. 처치가 왼쪽에 주어지는 규칙A treatment rule on the left

어떤 장학금은 점수 60 미만에만 준다. 무처치 평균은 문턱에서 10으로 연속이고 실제 처치 효과는 5라고 가정한다. 관측 오른쪽 극한−왼쪽 극한은? 이를 처치 효과 +5와 같은 방향으로 표시하려면 좌표나 대비를 어떻게 바꿀 수 있는가?

A scholarship is instead given only below sixty. Assume a continuous no-treatment mean ten and effect five at the cutoff. What is observed right-minus-left? How can the score orientation or contrast align it with the treatment effect +5?

풀이와 확인할 이유Solution and explanation

왼쪽 처치 평균은 15, 오른쪽 무처치 평균은 10이라 오른쪽−왼쪽은 −5다. 왼쪽−오른쪽을 쓰거나 새 점수 x′=60−X로 처치가 높은 점수 쪽이 되게 맞출 수 있다. 이때 수혜 조건은 x′>0이며 동점 x′=0은 비수혜다. 좌표를 바꿔도 엄격 부등식과 실제 동점 규칙을 유지한다. 대비의 부호와 실제 배정 방향을 함께 읽어야 한다.

Right-minus-left is 10−15=−5. Reverse the contrast, or orient a new score as x′=60−X so eligibility is on the high-score side. The rule is then x′>0, with no receipt at the tie x′=0; preserve the strict inequality when changing coordinates. The algebraic contrast’s sign must be aligned with assignment direction.

58. sharp RD에서 통상적 겹침Ordinary overlap in sharp RD

D=1{X≥0}인 sharp 규칙을 그대로 쓴다. x=−0.1과 x=0.1에서 수혜 확률 e(x)를 구하고 1/[e(x)(1−e(x))]를 계산할 수 있는지 설명하라. RD는 대신 무엇을 연결하는가?

With sharp assignment D=1{X≥0}, give e(x) at −0.1 and 0.1. Can 1/[e(x)(1−e(x))] be used there? What does RD connect instead?

풀이와 확인할 이유Solution and explanation

e는 각각 0과 1이라 두 경우 모두 분모가 0이다. 같은 점수에서의 처치·무처치 겹침을 전제한 가중치 논리를 그대로 적용할 수 없다. RD는 문턱을 향해 다른 쪽에서 접근하는 잠재평균을 연속성 등으로 연결한다. 유한 창을 무작위 실험으로 보는 접근은 별도 전제와 표적을 쓴다.

The probabilities are zero and one, so the proposed denominator vanishes on both sides. A weighting argument requiring overlap at each score cannot be copied unchanged. RD instead links appropriate limiting potential means at the cutoff; finite-window local randomization requires separate conditions and a different target.

59. 곡률 0과 관측 잡음Zero curvature does not mean no sampling noise

문턱부터 각 선택 점수까지의 양쪽 전 구간(도넛으로 뺀 틈 포함)에서 평균 곡선은 정확한 직선이라 M=0이고 절편 대비도 식별된다. 실제 관측에는 독립 잡음이 있다. 결정론적 곡률 편향 상한은 얼마이며 추정값이 진짜 효과와 반드시 정확히 같은가?

The mean curves are exactly linear on both full intervals from the cutoff to each selected score, including any donut-excluded gap, so M=0, and the cutoff contrast is identified. Observations still contain independent noise. What is the curvature-bias bound? Must the estimate equal the true effect exactly?

풀이와 확인할 이유Solution and explanation

상한 MΣ|ℓ|(X−c)²/2는 0이다. 정한 평균 관계에 대한 국소 직선 근사 편향이 없다는 뜻이지 무작위 잡음의 표본 변동이 0이라는 뜻은 아니다. 추정량이 평균적으로 맞아도 개별 표본의 값은 달라질 수 있다. 인과 연속성 등 설계 전제도 별도로 필요하다.

The deterministic curvature bound is zero, meaning no local-linear approximation bias under the stated mean model. Sampling variation can remain, so an unbiased estimate need not equal the target in each realized sample. Causal design conditions are still separate.

60. 실제 사례를 재현하고 해석하기Reproduce and interpret an actual case

실제 세 사례 중 하나를 골라 보고서를 쓴다. 다른 사람이 같은 비교를 다시 계산하고 인과 범위를 오해하지 않도록, 표본·단위·배정·계산 조건·미정의 결과에 관해 무엇을 적어야 하는가?

Choose one actual case for a reproducible report. What must be stated about sample, units, assignment, computation and undefined results so another reader can recalculate the same contrast and understand its causal scope?

풀이와 확인할 이유Solution and explanation

원파일·선택 행·결측과 제외 조건·단위를 적고 문턱과 배정 규칙이 실제인지 가정인지 밝힌다. 같은 기본 프레임에서 커널·좌우 h·donut·차수·질량과 집계 withinSS를 명시하고, 사용 행·원행 질량·서로 다른 점수·rank·절편 식별과 대비를 대조한다. 전체 CSV와 독립 코드를 함께 제공하고 0분모·빈 쪽·미식별을 0으로 채우지 않는다. 상원은 선거 순서의 같은 의석 정당 득표율, 영국은 준비 소득 수준의 이산 코호트 비교, 기업은 외생 배정이 없는 단가 반례임을 구분한다. 정확한 산술이 연속성·인과성·RBC 신뢰구간을 인증하지 않는다.

State source files, selected records, missingness, exclusions and units; distinguish actual assignment from chosen thresholds. Specify kernel, side bandwidths, donut, degree, masses and aggregate withinSS on one base frame. Compare active rows, underlying frequency, distinct scores, ranks, identified intercepts and contrast. Supply complete CSVs and standalone code, leaving zero denominators, empty sides and unidentified targets undefined. Distinguish the Senate party outcome indexed by election sequence, prepared UK earnings-level cohort comparison, and business non-RD price example. Exact arithmetic does not certify continuity, causality or RBC interval coverage.

자료와 출처Data and sources

실습에 추가한 실제 입력과 출처Additional observed lab inputs and provenance

실제 자료 사례Actual-data cases · 원자료·단위·결측·변환·출처Inputs, units, missingness, transformations and sources

자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.

자료사전·출처·이용 조건Data dictionary, sources and terms