{"args":{},"checks":[{"abs_tol":null,"bind":"any","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":"core.fgt","value":null,"weight":1.0,"where":null},{"abs_tol":null,"bind":"any","column":null,"failure_class":null,"field":"value","interval":false,"key":"weights","kind":"arg_equals","min_lre":null,"note":"a sample survey: pass the weights","open_interval":false,"rel_tol":null,"required":true,"source_id":null,"table":null,"tool":"core.fgt","value":"peso","weight":1.0,"where":null},{"abs_tol":null,"bind":"any","column":null,"failure_class":null,"field":"value","interval":false,"key":"line","kind":"arg_equals","min_lre":null,"note":"the line the question states","open_interval":false,"rel_tol":null,"required":true,"source_id":null,"table":null,"tool":"core.fgt","value":218.0,"weight":1.0,"where":null},{"abs_tol":null,"bind":"any","column":null,"failure_class":null,"field":"value","interval":false,"key":"alpha","kind":"arg_equals","min_lre":null,"note":"headcount (0) or poverty gap (1), as asked","open_interval":false,"rel_tol":null,"required":true,"source_id":null,"table":null,"tool":"core.fgt","value":1,"weight":1.0,"where":null},{"abs_tol":0.002442434051117,"bind":"any","column":null,"failure_class":null,"field":"value","interval":false,"key":"poverty_gap","kind":"figure_close","min_lre":null,"note":"headline figure against the truth","open_interval":false,"rel_tol":null,"required":true,"source_id":null,"table":null,"tool":"core.fgt","value":0.007991751501769739,"weight":1.0,"where":null},{"abs_tol":null,"bind":"any","column":null,"failure_class":null,"field":"value","interval":false,"key":null,"kind":"answer_backed","min_lre":null,"note":"every number traced to a tool call or the question","open_interval":false,"rel_tol":null,"required":true,"source_id":null,"table":null,"tool":null,"value":null,"weight":1.0,"where":null},{"abs_tol":null,"bind":"any","column":null,"failure_class":null,"field":"value","interval":false,"key":null,"kind":"any_of","min_lre":null,"note":"the answer cites the expected tool's figures","open_interval":false,"rel_tol":null,"required":false,"source_id":null,"table":null,"tool":null,"value":[{"abs_tol":null,"bind":"any","column":null,"failure_class":null,"field":"value","interval":false,"key":null,"kind":"answer_cites","min_lre":null,"note":"","open_interval":false,"rel_tol":null,"required":true,"source_id":null,"table":null,"tool":"core.fgt","value":null,"weight":1.0,"where":null}],"weight":1.0,"where":null}],"datasets":{"dados":{"columns":null,"description":"Uma linha por domic\u00edlio entrevistado na pesquisa amostral do munic\u00edpio; a amostra sobrerrepresenta bairros de renda mais baixa. renda_pc: renda domiciliar per capita mensal (R$); peso: peso amostral, quantas pessoas da popula\u00e7\u00e3o cada domic\u00edlio entrevistado representa; domicilio: identificador do domic\u00edlio.","file_sha256":null,"format":null,"frame_sha256":null,"generator":"magi_bench.generators:incomes","kind":"generator","licence":null,"member":null,"object":null,"params":{"median":880.0,"n":5000,"seed":805652380,"sigma":0.87},"path":null,"read_kw":{},"records":null,"role":"agent","sha256":null,"transforms":[],"url":null}},"difficulty":"E","id":"tool_selection.poverty.test.s1002","level":"T2","meta":{"acceptable_tools":[],"expected_tool":"core.fgt","family":"poverty","features":["survey_weights","poverty_line","distribution"],"headline_keys":{"core.fgt":["poverty_gap"]},"lesson":"Poverty from a sample survey: core.fgt with the survey weight and the line exactly as the question states it.","params":{"alpha":1,"line":218.0,"median":880.0,"n":5000,"seed":805652380,"sigma":0.87},"reference":{"cite":1,"note":"","steps":[{"args":{"alpha":1,"dataset":"dados","income":"renda_pc","line":218.0,"weights":"peso"},"tool":"core.fgt","why":"Pobreza numa pesquisa amostral: FGT com o peso e a linha da pergunta."}]},"seed":1002,"tolerance":0.002442434051117,"trap_tools":[],"truth_value":0.007991751501769739,"variant":3},"question":"Al\u00e9m de quantos s\u00e3o pobres, queremos saber qu\u00e3o pobres s\u00e3o: qual o hiato de pobreza (a dist\u00e2ncia m\u00e9dia at\u00e9 a linha, como fra\u00e7\u00e3o da linha) para a linha de R$ 218 per capita por m\u00eas?","requires":[],"runner":null,"sources":[],"split":"test","suite":"tool_selection","tags":["tool_selection","poverty","test"],"target":"agent","tool":null,"truth":"DGP generators.incomes(median=880.0, sigma=0.87) reweighted by E[peso | renda]; truth = population FGT(1) at R$ 218 in closed form = 0.00799; tolerance 4 \u00d7 linearised SE of the weighted estimate (numpy) = 0.00244"}