{"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":330.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":0,"weight":1.0,"where":null},{"abs_tol":0.00944904005416046,"bind":"any","column":null,"failure_class":null,"field":"value","interval":false,"key":"headcount","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.04525014088901802,"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":950.0,"n":5000,"seed":546360565,"sigma":0.77},"path":null,"read_kw":{},"records":null,"role":"agent","sha256":null,"transforms":[],"url":null}},"difficulty":"E","id":"tool_selection.poverty.test.s1000","level":"T2","meta":{"acceptable_tools":[],"expected_tool":"core.fgt","family":"poverty","features":["survey_weights","poverty_line","distribution"],"headline_keys":{"core.fgt":["headcount"]},"lesson":"Poverty from a sample survey: core.fgt with the survey weight and the line exactly as the question states it.","params":{"alpha":0,"line":330.0,"median":950.0,"n":5000,"seed":546360565,"sigma":0.77},"reference":{"cite":1,"note":"","steps":[{"args":{"alpha":0,"dataset":"dados","income":"renda_pc","line":330.0,"weights":"peso"},"tool":"core.fgt","why":"Pobreza numa pesquisa amostral: FGT com o peso e a linha da pergunta."}]},"seed":1000,"tolerance":0.00944904005416046,"trap_tools":[],"truth_value":0.04525014088901802,"variant":1},"question":"Com a amostra da pesquisa domiciliar municipal, estime a taxa de pobreza para a linha de R$ 330 mensais per capita.","requires":[],"runner":null,"sources":[],"split":"test","suite":"tool_selection","tags":["tool_selection","poverty","test"],"target":"agent","tool":null,"truth":"DGP generators.incomes(median=950.0, sigma=0.77) reweighted by E[peso | renda]; truth = population FGT(0) at R$ 330 in closed form = 0.04525; tolerance 4 \u00d7 linearised SE of the weighted estimate (numpy) = 0.00945"}