What does Regression Discontinuity at Membership Tiers conclude, in numbers, about “Sources East and West: Rank for Count in the Book of Lord Shang and the Scholarship Discontinuity of 1960”?
Answer: Under rule A there are 666 units at a count of 24 and 675 at 25, a ratio of 1.014; the distribution is smooth. Under rule B the number at 25 jumps to 2656 while only 65 remain at 24, a ratio of 40.862; every count from 20 to 24 has been hollowed out, and 1981 units in all have been pushed onto the threshold.
Scope of the numbers: Parameters are illustrative; all calculations are generated by the book's programs. This is general analysis, not individualised business advice, and the book neither recommends nor supplies misleading threshold copy designed to provoke top-ups.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 1.014, 1981, 20, 24, 25, 2656
| count | rule A (linear) | rule B (quota at 25) |
| 19 | 675 | 675 |
| 20 | 706 | 501 |
| 21 | 677 | 386 |
| 22 | 610 | 218 |
| 23 | 667 | 175 |
| 24 | 666 | 65 |
| 25 | 675 | 2656 |
| 26 | 644 | 644 |
| 27 | 722 | 722 |
| 28 | 632 | 632 |
| mass at Q / mass at Q - 1: A 1.014, B 40.862 | ||
| units pushed to the quota: 1981 of 20000 |
Show the full program
# Chapter 7. p71: a quota on a counted score invites piling at the quota.
# Abstract model of a rank-for-count rule in the spirit of the Book of
# Lord Shang (illustrative numbers, no historical data): each of 20000
# units has a baseline count S ~ Poisson(m), m ~ Uniform(10, 40). Rule
# A pays a fixed reward per counted unit (a linear schedule). Rule B
# adds a quota Q = 25 for the unit leader's promotion: a unit whose
# baseline lies k = 1 to 5 short of Q makes up the gap with probability
# 0.9 - 0.15 (k - 1). We print the counts around Q under both rules, the
# ratio of mass at Q to mass at Q - 1, and how many units were pushed.
# Seed 20261171 for both rules (same baselines).
import math
import random
Q, N = 25, 20000
def poisson(rng, m):
# Knuth's product method, adequate for m <= 40
lim, k, p = math.exp(-m), 0, 1.0
while True:
p = p * rng.random()
if p <= lim:
return k
k = k + 1
def counts(quota):
rng = random.Random(20261171)
out, pushed = [], 0
for _ in range(N):
s = poisson(rng, rng.uniform(10.0, 40.0))
r = rng.random()
k = Q - s
if quota and 1 <= k <= 5 and r < 0.9 - 0.15 * (k - 1):
s = Q
pushed = pushed + 1
out.append(s)
return out, pushed
if __name__ == "__main__":
a, _ = counts(False)
b, pushed = counts(True)
print("count rule A (linear) rule B (quota at {})".format(Q))
for s in range(Q - 6, Q + 4):
print("{:5d} {:15d} {:19d}".format(
s, a.count(s), b.count(s)))
print("mass at Q / mass at Q - 1: A {:.3f}, B {:.3f}".format(
a.count(Q) / a.count(Q - 1), b.count(Q) / b.count(Q - 1)))
print("units pushed to the quota: {} of {}".format(pushed, N))Single source and citation
Fan, Y. (2026). Regression-Discontinuity Designs at Membership-Tier Thresholds: Local Causal Identification on Either Side of a Spend-Based Upgrade Line (Version 1.0.0), Chapter 7: Sources East and West: Rank for Count in the Book of Lord Shang and the Scholarship Discontinuity of 1960. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-303 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026303,
author = {Fan, Yafu},
title = {Regression-Discontinuity Designs at Membership-Tier Thresholds: Local Causal Identification on Either Side of a Spend-Based Upgrade Line},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Either Side of the VIP Line: Selection Bias, the Naive Gap and a Local Comparison at the Threshold
- Chapter 2 · Local Linear Regression: Triangular-Kernel Weighted Least Squares, Boundary Bias and an Effect That Holds Only at the Threshold
- Chapter 3 · Choosing the Bandwidth: Trading Bias for Variance, a Monte Carlo Optimum and Boundary Cross-Validation
- Chapter 4 · The McCrary Density Test: Local Lines on Either Side of a Histogram, Power and Blind Spots
- Chapter 5 · Topping Up to Upgrade: How Precisely Manipulable Spending Breaks the Design
- Chapter 6 · Three Robustness Checks: High-Order Polynomials, Placebo Thresholds and the Fuzzy Design
- Chapter 8 · Closing the Loop: Evaluating a Membership-Tier Threshold, the Distilled Tool and a Pre-Registered Plan