অর্থনীতি · বই 5 · স্নাতক তৃতীয় বর্ষ

University Economics — Year 3

এই বইটি এখনো বাংলা ভাষায় পাওয়া যায় না। সংস্করণ: English।

University Economics — Year 3 · স্নাতক তৃতীয় বর্ষ

4Regression Discontinuity

A candidate who wins an election by a hundred votes and one who loses by a hundred are, for most purposes, the same: the same kind of district, the same campaign, the same party. One of them takes office and the other does not. If the party that barely won does better at the next election than the party that barely lost, the difference is the effect of holding the seat, and almost nothing else. A rule that switches a treatment on at a threshold — a vote margin of zero, a pass mark, an age, an enrolment that forces a school to open a new class — creates, around the threshold, something close to a randomised experiment. This chapter shows how to read it, how to estimate the jump, and how a design that looks this clean can still be fooled.

Simulated close elections: the party’s vote share at the next election against its winning margin at this one (6,000 elections; dots are means over bins of 0.02 in the margin; lines are local linear fits within 0.25 of the threshold). The simulation is calibrated on a published estimate: a jump of 0.077 in the next vote share for a party that barely won.
Simulated close elections: the party’s vote share at the next election against its winning margin at this one (6,000 elections; dots are means over bins of 0.02 in the margin; lines are local linear fits within 0.25 of the threshold). The simulation is calibrated on a published estimate: a jump of 0.077 in the next vote share for a party that barely won. Source: simulated data calibrated on Lee (2008), Table II; the chapter’s seeded script

The dots rise smoothly with the margin on both sides: parties that win big at one election tend to do well at the next. At zero the curve breaks. The two fitted lines meet the threshold at 0.4597 and 0.5353, a jump of 0.0756 in the vote share. The published estimate it is calibrated on is 0.077, with a standard error of 0.011, from close elections to the United States House of Representatives; the same study finds that the party’s vote share at the previous election does not jump at the threshold, an estimate of −0.002-0.002 (0.011). That second number is the reason to believe the first: just above and just below the threshold, the districts were alike before the election.

You already know

Chapter 1 defined the Wald estimator, the ratio of the effect of an instrument on the outcome to its effect on the treatment, and showed that it estimates a local average treatment effect: the effect on the units whose treatment the instrument changes.

Notation 4.1 (Symbols of this chapter)

The running variable is xx, the cutoff cc, and Di=1D_i = 1 marks treatment. Potential outcomes are Yi(1)Y_i(1) and Yi(0)Y_i(0), and μd(x)=E[Yi(d)∣xi=x]\mu_d(x) = \E[Y_i(d) \mid x_i = x] their mean at a value of the running variable. The window is hh.

4.1 A rule that jumps

Definition 4.2 (Running variable; cutoff)

In a design where a rule assigns treatment according to whether an observed variable passes a threshold, the variable is the running variable and the threshold the cutoff.

The examples are many because institutions love thresholds. Scholarships go to those who score above a mark, benefits to those below an income, drinking to those above an age, an extra class to schools above an enrolment. In each case the units on the two sides of the cutoff differ in their running variable, and in everything correlated with it, but only gradually; they differ in the treatment abruptly. If nothing else jumps at the cutoff, a jump in the outcome there is the treatment’s effect.

4.2 The sharp design

Definition 4.3 (Sharp regression discontinuity)

A sharp regression discontinuity design is one in which treatment is a deterministic function of the running variable: Di=1D_i = 1 if xi≥cx_i \ge c and Di=0D_i = 0 otherwise. Its estimand is the jump lim⁡x↓cE[Yi∣xi=x]−lim⁡x↑cE[Yi∣xi=x]\lim_{x \downarrow c} \E[Y_i \mid x_i = x] - \lim_{x \uparrow c} \E[Y_i \mid x_i = x].

Proposition 4.4 (Continuity identifies the effect at the cutoff)

In a sharp design, if μ0(x)\mu_0(x) and μ1(x)\mu_1(x) are continuous at x=cx = c, the jump in the mean outcome at the cutoff equals the average treatment effect at the cutoff, μ1(c)−μ0(c)=E[Yi(1)−Yi(0)∣xi=c]\mu_1(c) - \mu_0(c) = \E[Y_i(1) - Y_i(0) \mid x_i = c].

Proof. For x≥cx \ge c every unit is treated, so E[Yi∣xi=x]=μ1(x)\E[Y_i \mid x_i = x] = \mu_1(x); for x<cx < c, E[Yi∣xi=x]=μ0(x)\E[Y_i \mid x_i = x] = \mu_0(x). The limit from above is μ1(c)\mu_1(c) and the limit from below μ0(c)\mu_0(c), both by continuity. Their difference is μ1(c)−μ0(c)\mu_1(c) - \mu_0(c), which is E[Yi(1)−Yi(0)∣xi=c]\E[Y_i(1) - Y_i(0) \mid x_i = c] by the definition of μd\mu_d. ∎

The proof uses nothing about how units came to be on either side: they can have chosen their running variable, as candidates choose how hard to campaign. It needs only that they could not choose it precisely. A candidate can raise the expected margin, but the count on the night has a random element, so that among races within a few votes of a tie, which side won is as good as a coin toss. When units can sort precisely around the cutoff, the continuity of μ0\mu_0 and μ1\mu_1 fails, and so does the design (Section 4.5).

The other price is in the estimand: the effect at the cutoff, for the units there. The effect of incumbency on parties that win by forty points, or of a scholarship on pupils who score twenty marks above the line, is not identified.

4.3 Estimation: local linear fits and the window

The jump is a difference between two limits, and data are never at the limit. The estimator must use observations some distance from the cutoff, and it must not mistake the slope of the curve for a jump.

Definition 4.5 (Window; local linear regression)

The window (or bandwidth) hh is the distance from the cutoff within which observations are used. A local linear regression estimates each limit by the intercept, at the cutoff, of a weighted least-squares line fitted on that side of the cutoff to the observations within the window. With triangular weights, an observation at distance ∣xi−c∣|x_i - c| gets weight 1−∣xi−c∣/h1 - |x_i - c|/h.

The simplest estimator, a local constant, compares the mean outcomes on the two sides within the window. If the curve slopes upward, the mean just above the cutoff sits above the curve’s value at the cutoff, and the mean just below sits beneath it: the difference of means overstates the jump by about the slope times the window. A local linear fit removes that first-order error, leaving one that depends on the curvature, which is of the order of h2h^2.

Proof. Admitted at this level. ∎

The precise statements — the bias of the local constant estimator is proportional to hh and that of the local linear estimator to h2h^2, under smoothness of μ0\mu_0 and μ1\mu_1 — are Taylor expansions of the two limits; the variance of both is proportional to 1/(nh)1/(nh), the number of observations in the window.

"""A sharp regression discontinuity: does winning a close election raise the party's
vote share next time? Local linear fits at three windows, then a balance test."""
from elections import draw
from rdtools import local_linear

margin, share, past = draw()
near = abs(margin) < 0.05
print(f"elections {len(margin)}, within 0.05 of the cutoff {near.sum()}")
print("window   jump    s.e.   elections used")
for h in (0.05, 0.10, 0.25):
    r = local_linear(margin, share, cutoff=0, h=h)
    print(f"{h:5.2f}  {r['jump']:6.3f}  {r['se']:6.3f}  {r['n']:6d}")

means = share[near & (margin >= 0)].mean() - share[near & (margin < 0)].mean()
print(f"difference of means within 0.05: {means:.3f}")

r = local_linear(margin, past, cutoff=0, h=0.10)
print(f"balance: jump in the PAST vote share {r['jump']:6.3f} (s.e. {r['se']:.3f})")
Listing 4.1. A sharp design on the simulated elections; local_linear fits each side with triangular weights. code/bachelor-3/04-regression-discontinuity/listings/rd_sharp.py
$ python rd_sharp.py
elections 6000, within 0.05 of the cutoff 1220
window   jump    s.e.   elections used
 0.05   0.078   0.010    1220
 0.10   0.081   0.007    2366
 0.25   0.076   0.005    4704
difference of means within 0.05: 0.102
balance: jump in the PAST vote share  0.007 (s.e. 0.006)
Output 4.1. True jump 0.077; robust standard errors.

The three local linear estimates are 0.078, 0.081 and 0.076; the difference of means within 0.05 is 0.102, a third too large. The last line is the balance test: the vote share at the previous election, decided before anything happened at the threshold, shows no jump.

Definition 4.6 (Manipulation test; covariate balance test)

A covariate balance test estimates the jump at the cutoff in a variable determined before treatment; under the design’s assumptions it is zero. A manipulation test (or density test) estimates the jump at the cutoff in the density of the running variable; a design in which units cannot sort precisely has none.

How wide a window? A wide one uses more data and is less noisy; a narrow one is less biased. The chart shows the trade-off on 300 simulated samples of the opening chart’s elections.

Estimates of a jump of 0.077 against the window, on 300 simulated samples of 6,000 elections: mean estimate (lines) and one standard deviation either side (bands), for the difference of means and the local linear fit.
Estimates of a jump of 0.077 against the window, on 300 simulated samples of 6,000 elections: mean estimate (lines) and one standard deviation either side (bands), for the difference of means and the local linear fit. Source: simulated data, the chapter’s seeded script

The difference of means drifts away from the truth almost linearly as the window widens; the local linear fit stays on it until about 0.2 and then bends down as the curvature of the cubic catches it. Its band, wide at small windows, narrows steadily. Listing 4.2 puts numbers on the picture.

"""Bias and noise against the window: 500 simulated samples, true jump 0.077,
local constant (difference of means) against local linear."""
import numpy as np
from elections import draw
from rdtools import local_linear

windows = (0.02, 0.05, 0.10, 0.25, 0.50)
est = {(d, h): [] for d in (0, 1) for h in windows}
for s in range(500):
    margin, share, _ = draw(seed=s)
    for d in (0, 1):
        for h in windows:
            est[d, h].append(local_linear(margin, share, 0, h, degree=d)["jump"])

print("fit       window    bias   s.d.   root mean squared error")
for d, name in ((0, "constant"), (1, "linear")):
    for h in windows:
        e = np.array(est[d, h]) - 0.077
        rmse = np.sqrt(np.mean(e**2))
        bias = round(e.mean(), 3) + 0.0          # + 0.0 prints -0.000 as 0.000
        print(f"{name:9s} {h:5.2f}   {bias:6.3f} {e.std():6.3f}   {rmse:6.3f}")
Listing 4.2. Bias, noise and their combination against the window. code/bachelor-3/04-regression-discontinuity/listings/rd_bandwidth.py
$ python rd_bandwidth.py
fit       window    bias   s.d.   root mean squared error
constant   0.02    0.006  0.009    0.011
constant   0.05    0.015  0.005    0.016
constant   0.10    0.030  0.004    0.030
constant   0.25    0.071  0.003    0.071
constant   0.50    0.119  0.002    0.119
linear     0.02    0.000  0.016    0.016
linear     0.05    0.000  0.010    0.010
linear     0.10    0.000  0.007    0.007
linear     0.25   -0.003  0.005    0.006
linear     0.50   -0.015  0.004    0.016
Output 4.2. 500 samples; true jump 0.077.

The local linear fit has its smallest root mean squared error, 0.006, at a window of 0.25; the difference of means has its own at the narrowest window, 0.02, and even there it does worse than the local linear fit at its best.

How it is measured — Choosing the window

The root mean squared error trades a bias that grows with hh against a variance that shrinks with it, and its minimum depends on the curvature of μ0\mu_0 and μ1\mu_1 near the cutoff and on the noise — both estimable. Imbens and Kalyanaraman (2012) derived a window that minimises an estimate of that error; Calonico, Cattaneo and Titiunik (2014) showed that intervals built around an error-minimising window are centred on a biased estimate and cover the truth too rarely, and corrected them by estimating and subtracting the bias, with a standard error that accounts for the correction. Two habits follow. Report the estimate at the chosen window and at half and twice that window: an estimate that moves a great deal is not one to trust. And never fit one high-order polynomial to all the data on each side; such fits give large weight to observations far from the cutoff and produce erratic jumps (Exercise 4.5).

4.4 The fuzzy design

Many rules do not bind exactly. A scholarship is offered above a mark, but not everyone takes it up, and some below the mark find funding elsewhere. Treatment then jumps at the cutoff by less than one.

Definition 4.7 (Fuzzy regression discontinuity)

A fuzzy regression discontinuity design is one in which the probability of treatment jumps at the cutoff by less than one: 0<lim⁡x↓cPr⁡(Di=1∣x)−lim⁡x↑cPr⁡(Di=1∣x)<10 < \lim_{x \downarrow c} \Pr(D_i = 1 \mid x) - \lim_{x \uparrow c} \Pr(D_i = 1 \mid x) < 1. Its estimand is the ratio of the jump in the mean outcome to the jump in the probability of treatment.

The probability of treatment against the running variable. In a sharp design it jumps from 0 to 1 at the cutoff; in a fuzzy design it jumps by less.
The probability of treatment against the running variable. In a sharp design it jumps from 0 to 1 at the cutoff; in a fuzzy design it jumps by less.

Proposition 4.8 (Fuzzy regression discontinuity as a Wald ratio)

Suppose that near the cutoff the jump in treatment is caused by the rule, that crossing the cutoff affects the outcome only through treatment, that no unit is treated below the cutoff and untreated above it who would have been the opposite way round (monotonicity), and that the mean potential outcomes and treatment shares of each type of unit are continuous at cc. Then the fuzzy estimand equals the average treatment effect at the cutoff for the compliers, the units treated if and only if they are above it.

Proof. Let Zi=1Z_i = 1 if xi≥cx_i \ge c: ZZ is an instrument for DD for the units at the cutoff. Taking limits from each side plays the role of comparing Z=1Z = 1 with Z=0Z = 0 among units with the same x=cx = c. The proof of the LATE theorem in Chapter 1 then applies term by term with expectations replaced by these limits: the jump in E[Y]\E[Y] is the share of compliers at cc times their mean effect, the jump in Pr⁡(D=1)\Pr(D = 1) is the share of compliers, and the ratio is their mean effect. ∎

The classic fuzzy design is in schools. Angrist and Lavy (1999) noticed that Israeli schools split a grade into classes of at most 40, so that a grade of 40 pupils sits in one class of 40 and a grade of 41 in two classes of 20 or 21.

Class size predicted by the rule falls abruptly at enrolments of 41, 81 and 121, and actual class size follows, though not exactly.

Class size against grade enrolment. Line: the size predicted by a cap of 40 per class, r/( (r-1)/40 + 1). Dots: mean class size at each enrolment in 4,000 simulated schools, three quarters of which follow the rule and the rest a target size of their own.
Class size against grade enrolment. Line: the size predicted by a cap of 40 per class, r/(⌊(r−1)/40⌋+1)r/(\lfloor (r-1)/40 \rfloor + 1). Dots: mean class size at each enrolment in 4,000 simulated schools, three quarters of which follow the rule and the rest a target size of their own. Source: the rule as stated in Angrist, Lavy, Leder-Luis and Shany (2019); simulated schools, the chapter’s seeded script
"""A fuzzy discontinuity: Maimonides' rule on simulated schools. Most schools split a
grade into classes of at most 40; the rest follow their own target size.
True effect of one more pupil per class on the class's mean score: -0.25 points."""
import numpy as np
from rdtools import local_linear

rng = np.random.default_rng(1999)
S = 4000
enrol = rng.integers(15, 131, S)                       # pupils in the grade
rule = enrol / ((enrol - 1) // 40 + 1)                 # Maimonides' rule
target = rng.uniform(28, 38, S)                        # other schools' own target
own = enrol / np.ceil(enrol / target)
size = np.where(rng.uniform(size=S) < 0.75, rule, own)
score = 75 - 0.25 * size + 0.02 * enrol + rng.normal(0, 6, S)

first = local_linear(enrol, size, cutoff=40.5, h=10)
reduced = local_linear(enrol, score, cutoff=40.5, h=10)
print(f"schools within 10 of the cutoff {first['n']}")
for name, r in (("first stage: jump in class size", first),
                ("reduced form: jump in score", reduced)):
    print(f"{name:32s}{r['jump']:7.2f} (s.e. {r['se']:.2f})")
print(f"fuzzy RD (Wald ratio)           {reduced['jump'] / first['jump']:7.3f}")
Listing 4.3. A fuzzy design at the first cutoff: first stage, reduced form and their ratio. code/bachelor-3/04-regression-discontinuity/listings/rd_fuzzy.py
$ python rd_fuzzy.py
schools within 10 of the cutoff 689
first stage: jump in class size  -14.01 (s.e. 1.01)
reduced form: jump in score        4.04 (s.e. 1.15)
fuzzy RD (Wald ratio)            -0.289
Output 4.3. True effect −0.25-0.25 points per pupil.

Crossing from 40 to 41 pupils cuts class size by 14.0 pupils and raises the mean score by 4.0 points; the ratio is −0.29-0.29 points per extra pupil, against a true −0.25-0.25. (From the printed numbers, 4.04/(−14.01)=−0.2884.04/(-14.01) = -0.288; the script divides the unrounded jumps.)

On the record — Class size in Israel

In 1991 Israeli test data, Angrist and Lavy (1999) found that the up-and-down pattern of class size induced by the rule was matched by a down-and-up pattern in test scores: smaller classes raised the reading and mathematics scores of fifth graders, with smaller gains for fourth graders and little for third graders. Twenty years later the same authors and two colleagues repeated the study on Israeli data from 2002–2011. The rule still moved class size strongly, but the estimated effect of class size on achievement was now zero. They also found too many schools with enrolments just above the cutoffs — one pupil more buys a whole extra class — and checked that this sorting did not explain either the old effect or the new zero.

4.5 Can the running variable be manipulated?

The design’s weak point is sorting. If those just above the cutoff got there on purpose — a pupil who pleads for one more mark, a school that enrols one more child, a household that earns a little less to stay under a benefit threshold — then those just above differ from those just below in their wish and ability to sort, and continuity fails. Sorting leaves a trace: too many units just above the cutoff, too few just below.

Exam scores (whole marks) of 20,000 simulated candidates, with a pass mark of 70, after a marker has moved half of the scripts on 66–69 up to 70. Bars: the re-marked scores; line: the scores before re-marking.
Exam scores (whole marks) of 20,000 simulated candidates, with a pass mark of 70, after a marker has moved half of the scripts on 66–69 up to 70. Bars: the re-marked scores; line: the scores before re-marking. Source: simulated data, the chapter’s seeded script

The density test of McCrary (2008) estimates the density of the running variable just above and just below the cutoff by local linear fits to a histogram, and tests whether the log of their ratio is zero.

"""Manipulation at a cutoff: exam scores (whole marks) with a pass mark of 70, before
and after a marker moves half of the scripts on 66-69 up to 70."""
import numpy as np
from rdtools import density_test

rng = np.random.default_rng(70)
clean = np.clip(np.round(rng.normal(58, 12, 20000)), 0, 100)
moved = clean.copy()
pick = (moved >= 66) & (moved <= 69) & (rng.uniform(size=moved.size) < 0.5)
moved[pick] = 70
print(f"scripts moved {pick.sum()}")
for name, x in (("clean", clean), ("re-marked", moved)):
    r = density_test(x, cutoff=69.5, h=10, bin=1)
    print(f"{name:10s} log jump in density {r['theta']:6.3f}  (s.e. {r['se']:.3f})"
          f"  t = {r['theta'] / r['se']:5.1f}")
Listing 4.4. The density test on the clean and the re-marked scores. code/bachelor-3/04-regression-discontinuity/listings/density_test.py
$ python density_test.py
scripts moved 982
clean      log jump in density -0.052  (s.e. 0.048)  t =  -1.1
re-marked  log jump in density  1.864  (s.e. 0.062)  t =  29.9
Output 4.4. Log ratio of the densities just above and just below 70.

On the clean scores the test finds nothing, t=−1.1t = -1.1; after 982 scripts are moved, the log density jumps by 1.86, t=29.9t = 29.9. Real manipulation is rarely so blatant, and the test has an obvious blind spot: if some units are pushed up and an equal number pushed down, the density is smooth while the composition on each side is not. Balance tests on predetermined covariates complement it. Neither can prove the design valid; a failure of either is hard to explain away. When sorting is confined to a few units at the cutoff, a donut design drops the observations closest to it and estimates from the rest (Exercise 4.8).

4.6 Thresholds in practice

On the record — The minimum legal drinking age

In the United States the minimum legal drinking age is 21, and age is a running variable nobody can manipulate. Carpenter and Dobkin (2009) found that at 21 the number of days on which young adults drink jumps by 21 %, and the mortality rate jumps by 9 %. The design answers one question cleanly: what happens to people who turn 21 under a law of 21. Whether a different age would change total mortality, or only move it, is a question the threshold cannot answer.

Model — Regression discontinuity

Assumes. Treatment, or its probability, jumps at a known cutoff of an observed running variable; units cannot place themselves precisely on one side; the mean potential outcomes are continuous at the cutoff; in a fuzzy design, crossing the cutoff affects the outcome only through treatment.

Predicts. A jump in the outcome at the cutoff equal to the effect there; no jump in predetermined covariates; a smooth density of the running variable; no jump at placebo cutoffs where nothing changes.

Tested. In close elections, the vote share before the election does not jump while the one after does; histograms of the running variable have caught real sorting, as at enrolment cutoffs in Israeli schools.

Breaks. When units sort precisely (enrolments, re-marked exams, income just under a threshold); when another policy uses the same cutoff (the age of 21 may also change other rules); when the curve is fitted too far from the cutoff; and for questions about units far from the cutoff, where it says nothing.

4.7 Exercises

Exercise 4.1 ★

Read the opening chart: the values of the two fitted lines at the cutoff and the jump. Why are the dots near ±0.4\pm 0.4 more scattered than those near the cutoff?

Solution

Solution of Exercise 4.1.

The left line reaches 0.4597 at the cutoff and the right line 0.5353; the jump is 0.5353−0.4597=0.07560.5353 - 0.4597 = 0.0756. Margins are drawn mostly near zero, so the bins near ±0.4\pm 0.4 hold few elections and their means are noisier.

Exercise 4.2 ★

Compute the class size predicted by Maimonides’ rule at enrolments of 40, 41, 80, 81 and 121. At which enrolments does it jump, and by how much at each?

Solution

Solution of Exercise 4.2.

40: one class of 40. 41: 41/2=20.541/2 = 20.5. 80: 80/2=4080/2 = 40. 81: 81/3=2781/3 = 27. 121: 121/4=30.25121/4 = 30.25. The rule jumps at 41 (from 40 to 20.5, by −19.5-19.5), at 81 (from 40 to 27, by −13-13) and at 121 (from 120/3=40120/3 = 40 to 30.25, by −9.75-9.75); the jumps shrink because the extra class is shared among more pupils.

Exercise 4.3 ★

Among applicants scoring 68 or 69 on an entrance test, 40 % find a job within a year; among those scoring 70 or 71, admitted to a training scheme, 52 %. Estimate the scheme’s effect on employment. What does the estimate assume, and why might it overstate the effect if the employment rate rises with the score?

Solution

Solution of Exercise 4.3.

52−40=1252 - 40 = 12 percentage points. It assumes that applicants on 68–69 are comparable to those on 70–71 apart from the scheme. If employment rises with the score, the two groups differ by about two marks of that slope as well: the difference of means adds the slope times two marks to the effect.

Exercise 4.4 ★

A balance test finds that parents’ income jumps by 8 % at a scholarship’s cutoff. What does that suggest, and what would you look at next?

Solution

Solution of Exercise 4.4.

That pupils on the two sides differ in background, so something other than the scholarship changes at the cutoff: sorting (better-connected families obtain re-marks), or another programme using the same mark. Look at the density of scores at the cutoff, at other predetermined covariates, at the rules for re-marking, and at whether any other benefit uses the same mark.

Exercise 4.5 ★★

On 300 samples of 800 simulated elections, compare global polynomials of order 1, 2, 4 and 6 on each side, fitted to all the data, with a local linear fit within 0.25. Report the bias and the standard deviation of each, and say which you would use.

Solution

Solution of Exercise 4.5.

The tested solution is ex05_global_polynomial.py, in the chapter’s exercises/ folder. Bias and standard deviation: order 1, −0.034-0.034 and 0.010; order 2, 0.010 and 0.012; order 4, −0.001-0.001 and 0.022; order 6, −0.002-0.002 and 0.029; local linear within 0.25, −0.003-0.003 and 0.013. Low orders are biased because they cannot follow the curve; high orders are unbiased here but noisy, because observations far from the cutoff pull the fitted value at the cutoff about. The local linear fit has a small bias and half the noise of the order-6 polynomial. Here the true curve is a cubic, which an order-4 fit contains; with real data no order is known to be right.

Exercise 4.6 ★★

At an age threshold, the share of people with health insurance jumps from 0.60 to 0.85 and the share who visit a doctor in a year jumps from 0.70 to 0.75.

  1. Estimate the effect of insurance on visits, and say for whom.
  2. Why is the ratio not the effect of insurance on the 60 % already insured below the threshold?
Solution

Solution of Exercise 4.6.

  1. (0.75−0.70)/(0.85−0.60)=0.05/0.25=0.20(0.75 - 0.70)/(0.85 - 0.60) = 0.05/0.25 = 0.20: insurance raises the probability of a visit by 20 percentage points, for the people at the threshold who are insured because they crossed it.
  2. Those insured below the threshold are always-takers: crossing does not change their insurance, so they contribute nothing to either jump, and the ratio says nothing about them.

Exercise 4.7 ★★

Students who score just below a scholarship’s cutoff can ask for their exam to be re-marked, and the most determined ones do. If determination raises later earnings, in which direction is a sharp estimate of the scholarship’s effect biased?

Solution

Solution of Exercise 4.7.

Upward. The determined pupils move from just below the cutoff to just above it, raising later earnings above the cutoff and lowering them below it for reasons other than the scholarship.

Exercise 4.8 ★★

Give the re-marked exams of Listing 4.4 an outcome: log earnings that rise with the true score by 0.01 per mark and jump by 0.10 for those who pass. Estimate the jump with all the recorded scores and with donuts that drop the one and two marks on each side of the cutoff. Explain the results.

Solution

Solution of Exercise 4.8.

The tested solution is ex08_donut.py, in the chapter’s exercises/ folder. With all recorded scores the jump is 0.076 (s.e. 0.015); dropping the marks 69 and 70 gives 0.089 (0.022); dropping 68–71 gives 0.087 (0.028).

The re-marked pupils, all recorded at 70, have the earnings of pupils on 66–69, so they pull the mean just above the cutoff down and the estimate below the true 0.10. The donut removes them; the estimate moves toward the truth, and its standard error rises because the observations closest to the cutoff, the most informative, are gone.

Exercise 4.9 ★★

A city announces that households below an income line will receive a subsidy, but sets the line only after the year’s incomes have been reported. What pattern in the data would suggest the line was chosen to include particular households, and why would that matter for a regression discontinuity study?

Solution

Solution of Exercise 4.9.

A heap of households just below the line and a gap just above it, or households just below it that differ in their characteristics (connections to the council, a particular district) from those just above. If the line was chosen to include particular households, the units on the two sides are not alike, continuity fails, and the jump mixes the subsidy with the reasons those households were chosen.

Exercise 4.10 ★★★

Show that with uniform weights the local linear estimate of the limit from above, a^1\hat a_1, is a weighted mean of the outcomes in the window above the cutoff, a^1=∑iωiYi\hat a_1 = \sum_i \omega_i Y_i, with weights ωi=(S2−S1xi)/(n1S2−S12)\omega_i = (S_2 - S_1 x_i)/(n_1 S_2 - S_1^2), where xix_i is measured from the cutoff, n1n_1 is the number of observations and Sk=∑ixikS_k = \sum_i x_i^k. Show that the weights sum to one, that some are negative, and which.

Solution

Solution of Exercise 4.10.

The OLS intercept of YY on (1,x)(1, x) is a^1=(S2∑iYi−S1∑ixiYi)/(n1S2−S12)\hat a_1 = (S_2 \sum_i Y_i - S_1 \sum_i x_i Y_i)/(n_1 S_2 - S_1^2), from the normal equations, which is ∑iωiYi\sum_i \omega_i Y_i with ωi=(S2−S1xi)/(n1S2−S12)\omega_i = (S_2 - S_1 x_i)/(n_1 S_2 - S_1^2). The weights sum to (n1S2−S12)/(n1S2−S12)=1(n_1 S_2 - S_1^2)/(n_1 S_2 - S_1^2) = 1. The denominator is positive (it is n1n_1 times the sum of squared deviations of xx). Above the cutoff all xi≥0x_i \ge 0, so S1>0S_1 > 0, and ωi<0\omega_i < 0 exactly when xi>S2/S1x_i > S_2/S_1: the observations farthest from the cutoff get negative weight, as the line is extrapolated back to x=0x = 0.

Exercise 4.11 ★★★

On 500 simulated samples of the opening chart’s elections, compute how often the 95 % interval of the local linear estimate covers the true jump, at windows 0.02, 0.10, 0.25 and 0.50. Explain the pattern using Output 4.2.

Solution

Solution of Exercise 4.11.

The tested solution is ex11_coverage.py, in the chapter’s exercises/ folder. Coverage is 0.944 at a window of 0.02, 0.932 at 0.10, 0.882 at 0.25 and 0.018 at 0.50. The interval is built for noise only. At 0.50 the bias is −0.015-0.015 and the standard deviation 0.004 (Output 4.2): the interval is centred nearly four standard errors from the truth and almost never covers it. At 0.25, where the error-minimising window lies, the bias is already a large part of the standard error and coverage falls short of 95 %.

Exercise 4.12 ★★★

A regression discontinuity study finds that a scholarship offered from a score of 70 raises earnings by 12 % for pupils at 70. A minister proposes lowering the cutoff to 50. Give two reasons why the effect at 50 might differ, and describe a design that could estimate it.

Solution

Solution of Exercise 4.12.

The pupils at 50 differ from those at 70: they may gain more from funding (if money, not ability, is what holds them back) or less (if they are less prepared for the course the scholarship pays for). And a scholarship given to many more pupils may change what it pays for: crowded courses, a weaker signal to employers. A design: if the cutoff differed between years or towns, a discontinuity at 50 where the cutoff was 50 estimates the effect there; or a lottery among applicants between 50 and 70.

4.8 Problem: The Brenmoor Scholarship

Problem 4.1

Weekend problem — the Brenmoor scholarship

Brenmoor, the capital of Brenland (invented), offers a scholarship to every school-leaver who scores 70 or more out of 100 in the final exam. Scores are whole marks. A study follows 6,000 school-leavers to the age of 30 and records their log earnings, whether they received the scholarship or an equivalent award from elsewhere, and their parents’ log income at the time of the exam. A statistician fits local linear regressions with triangular weights, with the cutoff placed at 69.5, first for all pupils and then for all pupils except those of one school, where, it emerged, a teacher had re-marked scripts, moving some scripts marked 67–69 up to 70. Robust standard errors are in parentheses.

“Earnings” and “award” are at the cutoff of 70; “earnings at 60” places the cutoff at 59.5 instead, where nothing happens. A density test at the cutoff (window 10) gives a log jump in the density of scores of 0.3036 (0.0798) for all pupils and 0.0623 (0.0841) without the school.

Part I — the offer.

  1. Is the design sharp or fuzzy for the offer? For the award?
  2. Interpret the jump in earnings at a window of 10, for all pupils, as an effect of being offered the scholarship.
  3. Give its 95 % confidence interval. Is the effect of the offer distinguishable from zero?
  4. Compare the estimates at windows 5, 10 and 20. What does their stability suggest, and why do the standard errors fall?
  5. Interpret the jump in parents’ income. Why is it reassuring?
  6. Why is the effect of the offer smaller than the effect of the scholarship itself?

Part II — take-up.

  1. Interpret the jump in the award at a window of 10.
  2. Compute the fuzzy estimate of the effect of the award on log earnings at a window of 10, and convert it into a percentage.
  3. Compute it at windows 5 and 20.
  4. Approximate the standard error of the fuzzy estimate at a window of 10 by dividing the standard error of the earnings jump by the award jump, and give a 95 % interval.
  5. For whom is the fuzzy estimate an effect? Describe the two kinds of pupil it leaves out.
  6. State the assumption that the offer affects earnings only through the award, and give one way it could fail.

Part III — checks.

  1. Interpret the jump in earnings at 60.
  2. The placebo uses scores from 50 to 69 only. Why must the window of a placebo cutoff stop short of the real cutoff?
  3. At what window would you report the main estimate, and what else would you report beside it?
  4. The study’s critics say the scholarship’s effect is mostly the effect of passing a prestigious threshold, which employers see. What evidence could separate the two?

Part IV — the teacher.

  1. Compute the tt-statistic of the density test for all pupils and without the school. What do they show?
  2. Convert the log jump for all pupils into a ratio of densities.
  3. Who are the re-marked pupils, and how do they differ from the others just above 70?
  4. In which direction should the re-marking bias the jump in earnings? Compare the estimates with and without the school at each window.
  5. Why does the jump in parents’ income not reveal the re-marking?
  6. Dropping the school removes the manipulation but also some honest pupils. When would that be a problem?
  7. Propose a donut design for the full sample and say what it would drop.
  8. State the result: the effect of the scholarship on earnings at the threshold, with its interval and the evidence from the density test.
Solution

Solution of Problem 4.1.

1. Sharp for the offer, which goes to everyone from 70 and to no one below; fuzzy for the award, which jumps by about two thirds.

2. Being offered the scholarship raises log earnings at 30 by 0.0792, about 8 %, for pupils at the cutoff.

3. 0.0792±1.96×0.0323=0.0792±0.06330.0792 \pm 1.96 \times 0.0323 = 0.0792 \pm 0.0633: from 0.0159 to 0.1425. It excludes zero.

4. 0.0784, 0.0792 and 0.0738: the estimate barely moves, so curvature is not driving it. The standard errors, 0.0442, 0.0323 and 0.0241, fall because a wider window uses more pupils; doubling the window divides them by about 2\sqrt 2 (0.0442/0.0323=1.370.0442/0.0323 = 1.37).

5. −0.0101-0.0101 with a standard error of 0.0309: no jump in a variable fixed before the exam. Pupils just above and just below are alike in family background, as the design requires.

6. Only part of those offered take an award because of the offer; the effect of the offer is the effect of the award diluted by that share.

7. Crossing 70 raises the probability of receiving an award by 0.6675.

8. 0.0792/0.6675=0.1190.0792/0.6675 = 0.119; e0.119−1=0.126\eu^{0.119} - 1 = 0.126: earnings 12.6 % higher.

9. 0.0784/0.6552=0.1200.0784/0.6552 = 0.120 and 0.0738/0.6525=0.1130.0738/0.6525 = 0.113.

10. 0.0323/0.6675=0.04840.0323/0.6675 = 0.0484; 0.119±1.96×0.0484=0.119±0.09490.119 \pm 1.96 \times 0.0484 = 0.119 \pm 0.0949, from 0.024 to 0.214. The approximation ignores the noise in the award jump, which is small here.

11. For compliers at 70: pupils who receive an award if and only if they are offered one. It leaves out never-takers, who decline even when offered, and always-takers, who obtain an equivalent award below 70.

12. Crossing 70 changes earnings only by changing whether a pupil receives the award. It fails if the offer itself matters: if pupils list it on their applications and employers reward it, or if being offered raises a pupil’s ambition even when the award is declined.

13. 0.0211 (0.0277), t=0.76t = 0.76: no jump where nothing changes, so the local linear fits are not manufacturing jumps out of the curve’s shape.

14. A window that crossed 70 would include the real jump in the fit on one side and could turn it into a spurious jump at the placebo cutoff.

15. At 10, with the estimates at 5 and 20 beside it, the balance test, the placebo cutoff and the density test — and the fuzzy estimate with its interval, since the award, not the offer, is the policy’s instrument.

16. A cohort or a town where the mark of 70 carried no scholarship (or the scholarship’s cutoff was elsewhere) but the same standing with employers: a jump at 70 there would be the signal alone.

17. All pupils: 0.3036/0.0798=3.800.3036/0.0798 = 3.80. Without the school: 0.0623/0.0841=0.740.0623/0.0841 = 0.74. Too many pupils just above 70, all coming from the one school; elsewhere the density is smooth.

18. e0.3036=1.35\eu^{0.3036} = 1.35: about 35 % more pupils per mark just above 70 than just below.

19. Pupils of that school whose true score was 67, 68 or 69. They are on average about two marks weaker than the honest pupils on 70.

20. Downward, since weaker pupils are added just above the cutoff; but the bias should be small, as few pupils were moved and they were only two marks weaker. The estimates without the school are 0.0628, 0.0770 and 0.0729, against 0.0784, 0.0792 and 0.0738: they are not higher, and the differences are well inside a standard error. The re-marking is detected but does no visible harm.

21. Parents’ income moves little with the score, and the moved pupils are few and only slightly weaker: the jump they cause in mean parents’ income is far below what a standard error of 0.03 can detect.

22. If that school’s pupils differ from the rest (a richer district), the population at the cutoff changes, and the estimate is for a different group; and if other teachers re-marked without being caught, dropping one school does not remove the problem.

23. Drop the pupils recorded on 69 and 70 (or on 68 to 71) and estimate from the rest; the re-marked pupils, all on 70, are gone, at the cost of the observations nearest the cutoff.

24. The scholarship raises earnings at 30 by 0.119 log points, 12.6 %, for pupils at the cutoff of 70 whose award depends on the offer, with an approximate 95 % interval of 0.024 to 0.214. The density test finds re-marking in one school (t=3.80t = 3.80) and none elsewhere (t=0.74t = 0.74); without that school the estimate is 0.0770/0.6613=0.1160.0770/0.6613 = 0.116.

এই অধ্যায়ে সংজ্ঞায়িত পরিভাষা-শব্দ

পরিভাষায় সব 1086 টি শব্দ দেখো