{"call_id":"call_7290d9e9","run_id":"20261015T171300Z-suite-closed_form-scripted-9fb914/closed_form.equivalent_variation.income_only/e1a1","step":"analysis","kind":"tool","name":"core.equivalent_variation","version":"0.1.0","code_version":"2925aeab2262","inputs":{"dataset":"households","income_before":"before","income_after":"after","weights":"weight","price_changes":{}},"input_digest":"9af5580c9bf324bcf572ea527c666bddc2ec4c34d679f575d98720c278786b87","dataset_digests":{"households":"5f93151949e50ee044e10ab2383ce3c254db148bf8239a5f36ed7b3b9e946d2e"},"result":{"tool":"core.equivalent_variation","version":"0.1.0","call_id":"call_7290d9e9","status":"ok","reason":"","figures":[{"key":"ev_mean","value":74.28571428571429,"unit":"unit of after","label":"Mean equivalent variation from before to after","se":null,"ci_low":null,"ci_high":null,"ci_level":null,"derivation":{"steps":[{"text_pt":"A variação equivalente de cada domicílio, EV_h = y1_h·f_h − y0_h, é a renda depois a preços de antes menos a renda antes; a média ponderada é a diferença das somas sobre o peso total.","formula":"EV = (Σw·y1·f − Σw·y0) / Σw","terms":[{"symbol":"Σw·y1·f","value":9520.0,"unit":"","note":"renda depois, a preços de antes"},{"symbol":"Σw·y0","value":9000.0,"unit":"","note":""},{"symbol":"Σw","value":7.0,"unit":"pessoas ou domicílios","note":""}],"result":74.28571428571429,"unit":"unit of after"}],"note_pt":""}},{"key":"ev_total","value":520.0,"unit":"unit of after","label":"Total equivalent variation over the weighted rows","se":null,"ci_low":null,"ci_high":null,"ci_level":null,"derivation":{"steps":[{"text_pt":"Soma ponderada das variações equivalentes.","formula":"EV_total = Σw·y1·f − Σw·y0","terms":[{"symbol":"Σw·y1·f","value":9520.0,"unit":"","note":"renda depois, a preços de antes"},{"symbol":"Σw·y0","value":9000.0,"unit":"","note":""}],"result":520.0,"unit":"unit of after"}],"note_pt":""}},{"key":"share_worse_off","value":0.0,"unit":"share","label":"Weighted share of rows with a negative equivalent variation","se":null,"ci_low":null,"ci_high":null,"ci_level":null,"derivation":{"steps":[{"text_pt":"Parcela ponderada dos domicílios cuja variação equivalente é negativa.","formula":"s_pior = W_pior / W","terms":[{"symbol":"W_pior","value":0.0,"unit":"","note":"peso dos domicílios com EV < 0"},{"symbol":"W","value":7.0,"unit":"","note":""}],"result":0.0,"unit":"parcela"}],"note_pt":""}}],"diagnostics":[{"name":"n_obs","value":4,"flag":false,"note":"rows used"},{"name":"weighted_population","value":7.0,"flag":false,"note":"Σw: the population the rows stand for"},{"name":"weights_used","value":true,"flag":false,"note":"weighted by 'weight'"}],"tables":{},"datasets":{},"warnings":[],"assumptions":[],"notes":""},"outputs":null,"output_digest":"7ac43ba20805626dc9d8cf5380b394f709dd1f5f6962379674a8796c33b3ad86","params_versions":[],"sources":[],"started_at":"2026-10-15T17:13:00.411455Z","duration_ms":0.12362492270767689,"error":null,"decided_by":"code","rationale":"","cached":false,"informed_by":[],"model":null,"prompt":null,"response":null,"tokens_in":null,"tokens_out":null,"meta":{}}
