A step‑by‑step guide for auditors, marketers, and developers who need to prove equal treatment of political candidates in AI systems today

The Brazilian Superior Electoral Court just gave Meta a 24‑hour deadline to prove its AI treats Lula and Bolsonaro equally, and the world is watching. If you manage political content on any platform, you must be ready to demonstrate fairness now, not later. This guide shows you five concrete actions you can take today to audit and document algorithmic neutrality.
Log into Meta’s Transparency Center and download the latest political ad library for Brazil. Export the same data from CrowdTangle to capture organic post reach and engagement metrics. Save the files as CSVs in a dedicated folder so you can reference them throughout the audit.
Collect equal numbers of posts, ads, and videos featuring Lula and Bolsonaro from the exported data—aim for at least 200 items per candidate. Use a spreadsheet to tag each item with variables such as format, spend, and target audience. This balanced test set will serve as the baseline for every fairness metric you run.
Import the test set into IBM’s AI Fairness 360 toolkit (pip install aif360) and calculate statistical parity, disparate impact, and equal opportunity scores. For a visual check, open Google’s What‑If Tool in TensorBoard and compare prediction distributions side‑by‑side. Record any metric that falls below the 80 % threshold, which is the industry standard for fairness metrics.
Create a pivot table in Google Sheets to contrast reach, click‑through rate, and cost‑per‑action for Lula vs. Bolsonaro. Plot the numbers with a free tool like Datawrapper to spot visual gaps instantly. Highlight any statistically significant differences in a separate candidate comparison sheet for easy reference.
Write a concise report using the template provided by the Brazilian Superior Electoral Court (PDF available on tse.jus.br). Include screenshots of the Transparency Center, metric tables, and visual charts as appendices. Export the whole package as a single PDF—this evidence report will satisfy the court’s 24‑hour deadline and serve future compliance audits.
Version‑control every CSV and script with Git; it lets you roll back changes and proves a clear audit trail that regulators love to see.
By following these five steps you’ll have a verifiable, data‑driven proof of algorithmic fairness ready within hours. You’ll avoid costly legal penalties and boost stakeholder confidence in your AI processes. Keep the audit template handy for the next election cycle and stay ahead of future compliance demands.