{"call_id":"call_6dc5eea5","run_id":"20261015T171414Z-suite-official-scripted-391f79/official.sis2025.gini_without_programs_2023/e1a1","step":"analysis","kind":"tool","name":"core.gini","version":"0.1.0","code_version":"2925aeab2262","inputs":{"dataset":"pessoas","income":"renda_pc_sem_programas","weights":"peso"},"input_digest":"77cb1722ff927c2d0a18548d54c49fe330400db2d11aeb09be9a12771588df00","dataset_digests":{"pessoas":"ed7a2245fbbdb39402c432c84143be664c5247971620ccba7fe42bd9deb7d2f8"},"result":{"tool":"core.gini","version":"0.1.0","call_id":"call_6dc5eea5","status":"ok","reason":"","figures":[{"key":"gini","value":0.5536482473028475,"unit":"index","label":"Gini coefficient of renda_pc_sem_programas (weighted by peso)","se":null,"ci_low":null,"ci_high":null,"ci_level":null,"derivation":{"steps":[{"text_pt":"Ordenam-se as pessoas pela renda e acumulam-se, com os pesos, a população (p) e a renda (L): a curva de Lorenz. A área sob ela é a soma dos trapézios entre pontos consecutivos (rendas negativas contam como zero).","formula":"A = Σ_i (p_i − p_{i−1})·(L_i + L_{i−1}) / 2","terms":[],"result":0.22317587634857627,"unit":"índice"},{"text_pt":"O Gini é um menos duas vezes a área sob a curva de Lorenz.","formula":"G = 1 − 2 × A","terms":[],"result":0.5536482473028475,"unit":"índice"}],"note_pt":""}}],"diagnostics":[{"name":"n_obs","value":382937,"flag":false,"note":"rows used"},{"name":"weighted_population","value":210917953.8015874,"flag":false,"note":"Σw: the population the rows stand for"},{"name":"weights_used","value":true,"flag":false,"note":"weighted by 'peso'"},{"name":"n_zero_income","value":20277,"flag":false,"note":"rows with income exactly 0"},{"name":"n_negative_income","value":2226,"flag":true,"note":"rows with income below 0"}],"tables":{},"datasets":{},"warnings":["negative incomes (2226 rows) were counted as zero: the Lorenz curve needs non-negative incomes","zero incomes (20277 rows) are included and raise the Gini; check they are real zeros, not missing values"],"assumptions":[],"notes":""},"outputs":null,"output_digest":"4e70ac6661285d8070cf12f1bf403610f19e03ae836d48ecb131cf614cd9cac1","params_versions":[],"sources":[],"started_at":"2026-10-15T17:14:14.804111Z","duration_ms":180.28287519700825,"error":null,"decided_by":"code","rationale":"","cached":false,"informed_by":[],"model":null,"prompt":null,"response":null,"tokens_in":null,"tokens_out":null,"meta":{}}
