Tarefa paper_repro.lmb_2004.tab1_c3.design
paper_reproagentT3designépoca 1, tentativa 1Execução: 20261015T165744Z-suite-paper_repro-scripted-def9dfVeredito
Família do método (das chamadas de ferramentas): ols (regression)
Pergunta feita ao analista
How large is the incumbent party's advantage in U.S. House elections? Comparing seats the Democratic Party barely won with seats it barely lost, estimate the effect of winning a House election on the probability that the same party wins the seat's next election.
Estimativa (infer.ols): coef.lagdemocrat = 0,4843.
Valores esperados e de onde vêm
lmb_2004.tab1_c3.software
- Fonte
- statsmodels 0.15.0: the reference specification of lmb_2004 tab1_c3 (infer.ols, figure 'coef.lagdemocrat') on an independent code path
- Tipo
- software
- Localização
- lmb_2004: Table I (results based on ADA scores, close elections sample), column (3) 'DEM_t+1', row 'Estimated gap'
- Valor
- 0,484329
0.4843287147634966(se 0,02893220.02893215206729024) - Conferido por
- execução de software · sm.OLS(democrat, add_constant(['lagdemocrat'])).fit(cov_type='HC1') on lmb (the file pinned at sha256 58cf9d8ef80b2871a96c00844fae975051a5aac443dff3d317fe92ffd6a516b7, rows where lagdemvoteshare > 0.48 and lagdemvoteshare < 0.52); n_obs = 915. The tool infer.ols (magi_infer, numpy) does not call statsmodels. Written by scripts/paper_repro_reference.py.
- Implementação
- independente da ferramenta
- Endereço
https://pypi.org/project/statsmodels/0.15.0/
- #12 figura da resposta próxima: 0,484329
0.4843287147634966· relativa 0.000001 · absoluta 2.8932152067290236e-8 - #13 figura da resposta próxima: 0,0289322
0.02893215206729024· relativa 0.000001 · absoluta 2.8932152067290236e-8
lmb_2004.tab1_c3.paper
- Fonte
- Lee, D. S., Moretti, E. and Butler, M. J. (2004). Do Voters Affect or Elect Policies? Evidence from the U.S. House. Quarterly Journal of Economics 119(3): 807-859.
- Tipo
- paper
- Localização
- Table I (results based on ADA scores, close elections sample), column (3) DEM_t+1, row 'Estimated gap'
- Página
- 832
- Trecho
Estimated gap 0.48 (0.02)
- Valor como publicado
0.48- Erro-padrão como publicado
0.02- Valor
- 0,48
0.48(se 0,020.02) probability of a Democratic win at t+1 - Conferido por
- fonte primária · Read on 2026-10-15 from the published QJE version (53 pages, typeset pages 807-859) on Enrico Moretti's Berkeley page, from the text layer and the rendered image of page 832 (Table I). Table notes: 'Standard errors are in parentheses'; the sample keeps elections with the Democrat vote share at time t strictly between 48 and 52 percent; sample size 915. Data check made before any estimate: in the causaldata extract, rows with 0.48 < lagdemvoteshare < 0.52 number 915, as printed, with no missing outcome or treatment, no share exactly at 0.48, 0.50 or 0.52, lagdemocrat equal to (lagdemvoteshare > 0.5) on every row of the window, and id unique within the window.
- sha256 da cópia lida
00983018486cc68079d100de58d46e279f50295ddda3c12c94e075e88340e24d(identifica a cópia lida, não um arquivo canônico)- Desvio conhecido
- convenção de erro-padrãoRecorded before this track's software-reference run and before any dry run, from the paper and the research probe: Table I does not state how its standard errors were computed, and the research note (research-papers.md section 3.13, 2026-10-14) already reported a statsmodels error of 0.029 for this regression on this extract (the Mixtape prints 0.03), against the printed 0.02. The printed cell is recorded and non-required on T1; the reference keeps HC1.
- Endereço
https://eml.berkeley.edu/~moretti/final.pdf- Licença
- Copyright the President and Fellows of Harvard College and MIT (QJE); cited, not reproduced.
- #14 figura da resposta próxima: 0,48
0.48· published_cell d=2 · absoluta 0.0050000010000000004 - #15 figura da resposta próxima: 0,02
0.02· published_cell d=2 (the SE as printed) · absoluta 0.0050000010000000004
Verificações
| # | Verificação | Obrigatória | Resultado | Esperado | Observado | Tolerância | Fonte | Chamada |
|---|---|---|---|---|---|---|---|---|
| 0 | resposta com lastro every number backed | obrigatória | passou | — | [] | — | — | — |
| 1 | figura da resposta escolhida answer figure call_df7c454d:coef.lagdemocrat (infer.ols) | obrigatória | passou | — | "call_df7c454d:coef.lagdemocrat" | — | — | call_df7c454d |
| 2 | uma entre tool_called(infer.ols): ok | tool_called(infer.rdd): answer call is infer.ols | obrigatória | passou | [{"abs_tol":null,"bind":"answer_call","column":null,"failure_class":null,"field":"value","interval":false,"key":null,"kind":"tool_called","min_lre":null,"note":"","open_interval":false,"rel_tol":null,"required":true,"source_id":null,"table":null,"tool":"infer.ols","value":null,"weight":1,"where":null},{"abs_tol":null,"bind":"answer_call","column":null,"failure_class":null,"field":"value","interval":false,"key":null,"kind":"tool_called","min_lre":null,"note":"","open_interval":false,"rel_tol":null,"required":true,"source_id":null,"table":null,"tool":"infer.rdd","value":null,"weight":1,"where":null}] | "infer.ols" | — | — | call_df7c454d |
| 3 | argumento igual infer.ols.y = 'democrat' | obrigatória | passou | "democrat" | "democrat" | — | — | call_df7c454d |
| 4 | argumento igual infer.ols.x[0] = 'lagdemocrat' | obrigatória | passou | "lagdemocrat" | "lagdemocrat" | — | — | call_df7c454d |
| 5 | argumento igual not applicable: the answer call is infer.ols, not infer.rdd | obrigatória | passou | "democrat" | — | — | — | call_df7c454d |
| 6 | argumento igual not applicable: the answer call is infer.ols, not infer.rdd | obrigatória | passou | "lagdemvoteshare" | — | — | — | call_df7c454d |
| 7 | argumento igual infer.ols.y = 'democrat' | registrada | passou | "democrat" | "democrat" | — | — | call_df7c454d |
| 8 | argumento igual infer.ols.x = ['lagdemocrat'] | registrada | passou | ["lagdemocrat"] | ["lagdemocrat"] | — | — | call_df7c454d |
| 9 | argumento igual infer.ols.controls = [] | registrada | passou | [] | [] | — | — | call_df7c454d |
| 10 | argumento igual infer.ols.fe = [] | registrada | passou | [] | [] | — | — | call_df7c454d |
| 11 | diagnóstico 915 vs 915 | registrada | passou | 915915 | 915915 | default rel 1e-6 (abs floor 1e-6) | — | call_df7c454d |
| 12 | figura da resposta próxima 0.4843287148 vs 0.4843287147634966 | registrada | passou | 0,4843290.4843287147634966 | 0,4843290.48432871476349737 | relativa 0.000001 · absoluta 2.8932152067290236e-8 | lmb_2004.tab1_c3.software | call_df7c454d |
| 13 | figura da resposta próxima 0.02893215207 vs 0.02893215206729024 | registrada | passou | 0,02893220.02893215206729024 | 0,02893220.02893215206729027 | relativa 0.000001 · absoluta 2.8932152067290236e-8 | lmb_2004.tab1_c3.software | call_df7c454d |
| 14 | figura da resposta próxima 0.4843287148 vs 0.48 | registrada | passou | 0,480.48 | 0,4843290.48432871476349737 | published_cell d=2 · absoluta 0.0050000010000000004 | lmb_2004.tab1_c3.paper | call_df7c454d |
| 15 | figura da resposta próxima 0.02893215207 vs 0.02 | registrada | falhou | 0,020.02 | 0,02893220.02893215206729027 | published_cell d=2 (the SE as printed) · absoluta 0.0050000010000000004 | lmb_2004.tab1_c3.paper | call_df7c454d |
Caminho de referência e caminho do agente
A chamada de referência ao lado da chamada que deu a resposta, argumento por argumento.
a tarefa T1 do mesmo alvo (paper_repro.lmb_2004.tab1_c3.tool)
| Argumento | Referência | Agente | |
|---|---|---|---|
| cluster | — | — | não fixado pela referência |
| controls | [] | [] | igual |
| dataset | "lmb" | "lmb" | igual |
| fe | [] | [] | igual |
| intercept | — | true | não fixado pela referência |
| level | — | 0,950.95 | não fixado pela referência |
| se | "HC1" | "HC1" | igual |
| subset | "lagdemvoteshare > 0.48 and lagdemvoteshare < 0.52" | "lagdemvoteshare > 0.48 and lagdemvoteshare < 0.52" | igual |
| weights | — | — | não fixado pela referência |
| x | ["lagdemocrat"] | ["lagdemocrat"] | igual |
| y | "democrat" | "democrat" | igual |
Trajetória
Cada evento na ordem em que aconteceu: turnos do modelo, chamadas de ferramentas, guardas, transformações e pontuação.
- 0Início
How large is the incumbent party's advantage in U.S. House elections? Comparing seats the Democratic Party barely won with seats it barely lost, estimate the effect of winning a House election on the probability that the same party wins the seat's next election.
lmb(agent)U.S. House elections and roll-call voting, the extract of the data of Lee, Moretti and Butler (2004), 'Do Voters Affect or Elect Policies? Evidence from the U.S. House', distributed with the causaldata R package: one row per district and congressional session (13,588 rows). Each row pairs a district's election with the one before it for the same seat. Columns: rownames, the row number; state, ICPSR state code; district, district code; id, an election identifier; score, the adjusted ADA voting score of the district's representative in the session that follows the row's election (0 to 100, higher means a more liberal roll-call record); year, year of the election; demvoteshare, the Democratic candidate's share of the two-party vote in the row's election; democrat, 1 if the Democratic candidate won the row's election; lagdemvoteshare, the Democratic share of the two-party vote in the previous election for the same seat; lagdemocrat, 1 if the Democratic candidate won that previous election. In the paper's notation the previous election is time t and the row's election, and the session after it, are time t+1.
file58cf9d8ef80b2871a96c00844fae975051a5aac443dff3d317fe92ffd6a516b7· frame — - 1Turno do modelo
call_7216943dreferenceFim:tool_use0 ms0 de entrada · 0 de saída · 0 de raciocínio · 0 em cacheTexto visívelTable I, column (3): the difference in the probability of a Democratic win at t+1 between districts the Democrat won and lost at t, among elections with the Democratic share at t strictly between 48 and 52 percent (915 observations), as the coefficient of a regression on the win indicator; heteroskedasticity-robust errors.
Chamadas pedidasinfer.ols{ "controls": [], "dataset": "lmb", "fe": [], "se": "HC1", "subset": "lagdemvoteshare > 0.48 and lagdemvoteshare < 0.52", "x": [ "lagdemocrat" ], "y": "democrat" }
- 2Ferramenta
infer.olsv0.1.0call_df7c454ddecidido pelo modeloreexecutávelMotivo: Table I, column (3): the difference in the probability of a Democratic win at t+1 between districts the Democrat won and lost at t, among elections with the Democratic share at t strictly between 48 and 52 percent (915 observations), as the coefficient of a regression on the win indicator; heteroskedasticity-robust errors.
Argumentos
{ "cluster": null, "controls": [], "dataset": "lmb", "fe": [], "intercept": true, "level": 0.95, "se": "HC1", "subset": "lagdemvoteshare > 0.48 and lagdemvoteshare < 0.52", "weights": null, "x": [ "lagdemocrat" ], "y": "democrat" }Figuras call_df7c454d Chave Valor Valor bruto Erro-padrão IC coef.lagdemocrat Coefficient on lagdemocrat in the regression of democrat0,484329 0.484328714763497370,0289322 0.028932152067290270,427547 – 0,54111 Diagnósticosn_obs= 915915k= 22r2= 0,2347720.2347717230713633df_resid= 913913se_type="HC1"n_clusters= —
Tabelas (1)
{ "coefficients": [ { "ci_high": 0.2811938149509847, "ci_low": 0.2023226685654988, "coef": 0.24175824175824176, "p": 4.715920282942519e-31, "se": 0.02009388689657253, "t": 12.031432395465465, "term": "Intercept" }, { "ci_high": 0.5411099640233312, "ci_low": 0.42754746550366346, "coef": 0.48432871476349737, "p": 4.618711084163874e-55, "se": 0.02893215206729027, "t": 16.740155161532673, "term": "lagdemocrat" } ] }- Digests dos dados
lmb6f2fbc93d91c4156cab244ba7581cc8eae45210626f97f85ac8b2d366e4cbc20- sha256 do resultado
ffb92ac67dd0cf4a3c6607ca054a4d6a6580ad9daa8162c777be4de01b260b0e
- 3Turno do modelo
call_97c10c1breferenceFim:tool_use0 ms0 de entrada · 0 de saída · 0 de raciocínio · 0 em cacheChamadas pedidassubmit_answer(meta-ferramenta){ "answer": "Estimativa (infer.ols): coef.lagdemocrat = 0,4843.", "caveats": [], "figure_refs": [ "call_df7c454d:coef.lagdemocrat" ] }
- 4Guardaresposta aceita
- Números encontrados
- 0,4843
- Sem lastro
- —
- Não citados
- —
1 nova(s) tentativa(s) restante(s) - 5Resposta
Estimativa (infer.ols): coef.lagdemocrat = 0,4843.
Figuras citadas:call_df7c454d:coef.lagdemocrat· Parada:answeredFigura da resposta:call_df7c454d:coef.lagdemocrat= 0,4843290.48432871476349737(se 0,02893220.02893215206729027) - 6Pontuação#0resposta com lastropassouobrigatória
every number backed - 7Pontuação#1figura da resposta escolhidapassouobrigatória
answer figure call_df7c454d:coef.lagdemocrat (infer.ols) - 8Pontuação#2uma entrepassouobrigatória
tool_called(infer.ols): ok | tool_called(infer.rdd): answer call is infer.ols - 9Pontuação#3argumento igualpassouobrigatória
infer.ols.y = 'democrat' - 10Pontuação#4argumento igualpassouobrigatória
infer.ols.x[0] = 'lagdemocrat' - 11Pontuação#5argumento igualpassouobrigatória
not applicable: the answer call is infer.ols, not infer.rdd - 12Pontuação#6argumento igualpassouobrigatória
not applicable: the answer call is infer.ols, not infer.rdd - 13Pontuação#7argumento igualpassouregistrada
infer.ols.y = 'democrat' - 14Pontuação#8argumento igualpassouregistrada
infer.ols.x = ['lagdemocrat'] - 15Pontuação#9argumento igualpassouregistrada
infer.ols.controls = [] - 16Pontuação#10argumento igualpassouregistrada
infer.ols.fe = [] - 17Pontuação#11diagnósticopassouregistrada
915 vs 915 - 18Pontuação#12figura da resposta próximapassouregistrada
0.4843287148 vs 0.4843287147634966 - 19Pontuação#13figura da resposta próximapassouregistrada
0.02893215207 vs 0.02893215206729024 - 20Pontuação#14figura da resposta próximapassouregistrada
0.4843287148 vs 0.48 - 21Pontuação#15figura da resposta próximafalhouregistrada
0.02893215207 vs 0.02
Épocas × verificações
| # | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Época 1 | passou | passou | passou | passou | passou | passou | passou | passou | passou | passou | passou | passou | passou | passou | passou | falhou |
Tentativas
Cada tentativa é seu próprio arquivo e é publicada; só a última de cada época é pontuada.
- época 1, tentativa 1passoupontuada(exibindo)
Downloads desta tarefa
3c48d8f0b1e1964e0940ca1f5a7cfe9a25236c4c220677dc64566f6c4f1225beO hash de um zip é só de transporte: o que ancora a integridade é o RUN_SHA256SUMS que vai dentro dele, cópia exata do SHA256SUMS da execução.
| Arquivo | Tamanho | sha256 |
|---|---|---|
| attachments/251e7c2cfdbfced5db2454317671d13e91f0d784e4202bf43d3f9e92036794d3.json | 561 B | 251e7c2cfdbfced5db2454317671d13e91f0d784e4202bf43d3f9e92036794d3 |
| attachments/433a6877aa6a378bbd4b7e2752e484d8cb7499c562d68222be231f62ff2fa420.json | 2,4 KB | 433a6877aa6a378bbd4b7e2752e484d8cb7499c562d68222be231f62ff2fa420 |
| attachments/52ab03d8ec104abb85572294bf8a469d75c5de9e74d6042caabff8017adc572b.json | 64,0 KB | 52ab03d8ec104abb85572294bf8a469d75c5de9e74d6042caabff8017adc572b |
| attachments/93b80d17c4bfa3eebbf8d5cf9b8d29a80977526c3d06f30dcb3dbe31bef3462e.json | 885 B | 93b80d17c4bfa3eebbf8d5cf9b8d29a80977526c3d06f30dcb3dbe31bef3462e |
| attachments/ab68c1e6cf9fb7ba0e3deb699c3fe4045a0847b1b8ca2dd36adc07f681d81169.json | 991 B | ab68c1e6cf9fb7ba0e3deb699c3fe4045a0847b1b8ca2dd36adc07f681d81169 |
| attachments/b464788742358119415ce56dc044de30838474cd0ce71792d48a4fd545c86f9f.json | 1,5 KB | b464788742358119415ce56dc044de30838474cd0ce71792d48a4fd545c86f9f |
| attachments/cd808089ea5f16af8267c2b8b8431d7e98521c987066730b15f6e24886af47b8.json | 287 B | cd808089ea5f16af8267c2b8b8431d7e98521c987066730b15f6e24886af47b8 |
| sources/lmb_2004.tab1_c3.paper.json | 2,2 KB | c6037f81c696e71627fb818e71196269c50b9bab8b6b96faccce051f3e1ede54 |
| sources/lmb_2004.tab1_c3.software.json | 1,2 KB | 00b331d82dc9435ab9fe8804d1d447ae997c2999379c7d536c8261d0bdf67517 |
| specs/paper_repro.lmb_2004.tab1_c3.design.json | 11,9 KB | f132be7b7ed8d80acebbecc2d51679547a29e3e83b81663c9960bc61f420b6de |
| traces/paper_repro.lmb_2004.tab1_c3.design.e1.a1.jsonl | 13,5 KB | 1bbeed364903541f927885e03b6c5a50ffcb941dde832c733627e503067db44d |
| trajectories/paper_repro.lmb_2004.tab1_c3.design.e1.a1.jsonl | 18,0 KB | 97273d2b9139e6d1107542203fd54e1aae687f694713a2f63a3aad6a28cd8f08 |