Executive Summary

December 10, 2025

Religious and security candidacies in Brazilian elections for deputies (2014-2022): investigating the probability of being elected

Author: Denis Berté Sálvia — Advisor: Larissa Giardini Simões

Summary prepared by the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege focused on synthesis and writing.

This study verified whether candidates for state and federal deputy with ballot names or occupations in the religious and security fields, between 2014 and 2022, were more likely to be elected. The analysis measured the effect of these identities in relation to sociodemographic and contextual variables, comparing the performance of a machine learning technique (Random Forest) with a traditional statistic (Binary Logistic Regression) to determine which was most suitable for the problem. The impact of these identities was compared to a set of predictors such as gender, education level, age, marital status, race, political position, and macro-region.

In Brazil, ballot names function as electoral heuristics, serving as cognitive shortcuts to influence the electorate (Boas, 2014). Markers such as “Doctor” or “Professor” associate the candidate with perceived positive competencies, simplifying the choice in an environment of limited information (Amorim, 2023; Graça et al., 2025). In this context, candidacies linked to the religious sphere and the public security sector have gained prominence, reflecting the centrality of moral and order agendas in the electoral debate.

The growth of religious candidacies is documented, with a 225% increase between 2000 and 2024, with names linked to evangelical denominations being the most prominent (Agência Brasil, 2024). Studies analyze the phenomenon through digital communication (Barba and Massuchin, 2024), municipal campaigns (Mezzomo and Pátaro, 2017), and classifications based on ballot name and occupation to understand the influence of religion in politics (Reis et al., 2022, 2024).

In parallel, attention to candidacies from the security area intensified, with a 36% growth in the number of elected officials who used military patents in their ballot name between 2000 and 2024 (Nexus, 2024b). Studies have traced the profile of these candidates (Plácido and Gallo, 2021; Piazza and Landy, 2024) and regression models found positive effects on the number of votes for them in 2018 (Graça et al., 2025), reinforcing the relevance of the topic.

The joint investigation of religious and security groups is justified by both emerging from a political context of valuing conservative discourses and order. Although the relationship between religion and politics is more studied, the rise of security candidacies is a more recent phenomenon. This study performs a simultaneous and comparative analysis of the impact of both on the probability of election over three cycles (2014, 2018, and 2022), controlling for relevant variables pointed out in the literature (Miguel, 2003; Junckes et al., 2015).

The research is quantitative, explanatory, and retrospective, comparing the performance of binary logistic regression (RLB) with random forest (RF). Open data from the Superior Electoral Court (TSE) from the 2014, 2018, and 2022 elections were used. The 2014 and 2018 data were used for training and validation of the models, and the 2022 data as a test base to evaluate predictive capacity. The analyses were conducted separately for state and federal deputy positions.

The classification of candidates as “religious” or “security” followed criteria from previous studies (Reis et al., 2022; Instituto Sou da Paz, 2024; Graça et al., 2025), based on the “BALLOTNAME” and “OCCUPATION” variables from the TSE. For the “security” category, terms such as “cabo”, “capitão”, “coronel”, “delegado”, “policial”, and “sargento” were used, along with occupations like “policial militar” and “membro das forças armadas”. For “religious”, the terms included “pastor”, “padre”, “bispo”, “missionário”, and the occupation “sacerdote ou membro de ordem ou seita religiosa”. In case of overlap, the ballot name took precedence.

The categorical explanatory variables (sex, race/color, age group, education level, marital status, political party spectrum, and macro-region) were transformed into dummy variables. The dependent variable, the electoral outcome, was coded binarily (0 for “not elected” and 1 for “elected”). The extreme data imbalance, with approximately 6.5% elected, was a methodological challenge mitigated with balancing techniques. In Random Forest, a Grid Search with cross-validation was performed to optimize hyperparameters based on the F-score, also applying the parameter class_weight=’balanced’ (Fávero & Belfiore, 2022; Chen et al., 2004). In Binary Logistic Regression, a sample weighting technique was applied. The final evaluation of the models on the test set was performed based on the metrics of Accuracy, Recall, Precision, F1-score, and the area under the ROC curve (AUC-ROC).

In the base of state deputies (47,646 candidates), 2.64% were classified as “religious” and 5.48% as “security”. The Random Forest model assigned low relative importance to these variables: “religious” was the least important of all (1.5%), while “security” reached 3%. The most predictive variables were sociodemographic characteristics such as education level (higher and secondary education), gender (male), color/race (white), and marital status (married), in addition to the Northeast region. This suggests that identity markers contribute very little to explaining electoral success compared to structural factors.

The Binary Logistic Regression for state representatives corroborated these findings. The variable “security” did not show statistical significance (p > 0.05) and was removed from the model. The variable “religious” was statistically significant, but with a negative coefficient, indicating that being a candidate with this identity was associated with a reduction in election chances (Odds Ratio = 0.83), corresponding to a 45.3% probability of success. The variables with the strongest positive effects were again the sociodemographic ones, such as having higher education, being male, being white, and being married.

On the 2022 test base for state representatives, the models’ performance was modest and similar. Random Forest achieved an accuracy of 0.70 and an F1-score of 0.22, while Logistic Regression obtained 0.66 accuracy and 0.20 F1-score. Both presented reasonable recall (0.66 and 0.70, respectively), but extremely low precision (0.13 and 0.12), meaning that the vast majority of candidates predicted as “elected” were not. This high number of false positives, reflected in the low AUC-ROC scores and metrics (0.747 and 0.741), confirmed that there was no clear superiority of one approach over the other.

For the federal deputies base (24,160 candidates), 2.4% were classified as “religious” and 5.8% as “security”. The Random Forest model for this base was consistent with those of the state base, assigning low relative importance to the variables of interest. The most important characteristics for predicting election were, again, higher education, male gender, white color/race, and married marital status, along with the North and Northeast regions. This reinforces that a specific sociodemographic profile is a more powerful predictor than the niche identities investigated.

In the Binary Logistic Regression model for federal deputies, both variables of interest, “religious” and “security”, were statistically significant but presented negative coefficients. Being a candidate with a religious identity was associated with a 43.2% probability of election (OR=0.76), while for security identity, the probability was 41.3% (OR=0.70). This counterintuitive finding suggests that, when controlling for other variables, these identities may represent a disadvantage. The variables with the largest positive effects were again higher education, belonging to a left or right-wing party (compared to the center), being male, and being white.

The performance comparison of the models on the test set for federal deputies mirrored the results of the state analysis. The metrics were close, with Random Forest achieving an accuracy of 0.70 and an F1-score of 0.19, and Logistic Regression reaching 0.64 accuracy and 0.17 F1-score. Again, the models exhibited moderate recall (0.66 and 0.71) but very low precision (0.11 and 0.10), indicating a high rate of false positives. The AUC-ROC curves (0.747 and 0.741) confirmed the absence of a clear winner. The overall performance suggests that predicting electoral success requires the inclusion of other variables not available in the TSE data, such as campaign finance, television time, and incumbency status.

The results indicate that religious and security identities, when controlled for more robust demographic and political factors, did not prove to be an asset in increasing the probability of election as a deputy between 2014 and 2022. On the contrary, the regression models pointed to a negative association. This finding, seemingly paradoxical given the growing visibility of these groups, can be explained by the internal heterogeneity of the candidates. The electoral success of individuals from these groups may be more attributable to classic political science factors, such as political and financial capital, than to the identity label itself. The overwhelming predictive power of variables such as education, gender, and race may overshadow the impact of more specific attributes.

In summary, this study analyzed the probability of election for candidates with religious and security profiles. The analyses, using both Random Forest and Binary Logistic Regression, demonstrated that, although statistically significant in some models, these identities are associated with a reduction, not an increase, in the probability of election for state and federal deputies in the 2014, 2018, and 2022 elections, when controlled for more influential sociodemographic and contextual variables. The comparison between the analytical models did not reveal a clear advantage of one technique over the other, with both presenting modest performance and difficulties in correctly classifying elected candidates due to a high rate of false positives.

The study’s limitations include the imbalance of the dependent variable and the absence of crucial variables such as campaign spending and reelection status. For future research, it is suggested to incorporate these variables, as well as explore models that capture interaction effects between the identities of interest and other characteristics. Longitudinal analyses focused on each election separately could reveal specific temporal dynamics, and applying these analyses to municipal elections could offer an interesting counterpoint. It is concluded that the objective was achieved: it was demonstrated that religious and security identities, contrary to expectations, are associated with a reduction in the probability of election as federal and state deputy in the analyzed period, when controlled for other sociodemographic and political variables.

References:
BRAZIL AGENCY. 2024. Candidacies with religious identity grow 225% in 24 years. Available at: https://agenciabrasil. ebc. com. br/politica/noticia/2024-08/candidaturas-com-identidade-religiosa-crescem-225-em-24-anos. Accessed on: 05 Jun. 2025.
AMORIM, L. de C. de. 2025. Magnitude of discernment and the effect of polarizing heuristics. SciELO Preprints, 2023. DOI: 10.1590/SciELOPreprints.7006. Available at: https://preprints. scielo. org/index. php/scielo/preprint/view/7006. Accessed on: 6 Mar. 2025.
BARBA, M; MASSUCHIN, M. 2024. Religious crossings in Brazilian electoral campaigns: discourses, appeals, and gestures in the online communication of pastor and non-pastor candidates in 2020. Opinião Pública 30: 1 – 31.
BOAS, T. 2012. Vote for Pastor Paulo: Religious Ballot Names as Heuristics in Brazil. In: APSA 2012 Annual Meeting Paper.
BOAS, T. 2014. Pastor Paulo vs. Doctor Carlos: Professional titles as voting heuristics in Brazil. Journal of Politics in Latin America 6(2): 39-72.
BOLOGNESI, B.; RIBEIRO, E.; CODATO, A. 2023. A New Ideological Classification of Brazilian Political Parties. Rio de Janeiro: Dados 66 (2), e20210164. Available at: <https://doi. org/10.1590/dados.2023.66.2.303>. Accessed on: 15 Nov. 2023.
CHEN, C; LIAW, A; BREIMAN, L. 2004. Using random forest to learn imbalanced data. University of California, Berkeley, Technical Report, 1-12.
FÁVERO, L. P.; BELFIORE, P. 2022. Manual of data analysis: statistics and multivariate modeling with Excel®, SPSS® and Stata®. Rio de Janeiro: LTC.
GENUER, R.; POGGI, J. M.; TULEAU-MALOT, C. 2010. Variable selection using random forests. Pattern recognition letters, 31(14): 2225-2236. Available at: https://hal. science/hal-00755489/document. Accessed on: 25 Mar. 2025.
GRAÇA, L. F. G. D.; SOUZA, C. P. R. D.; BORGES, T. D. P. 2025. About bullets, bibles, and statistical models: exploring electoral shortcuts. Campinas: Opinião Pública (31), e31107.
Instituto Sou da Paz. 2024. Elections 2024: Panorama of security forces candidacies. Available at: https://soudapaz. org/wp-content/uploads/2024/12/Eleicoes-2024-Panorama-Das-Candidaturas-Das-Forcas-De-Seguranca-Atualizado. pdf. Accessed on 10 Mar. 2025.
JUNCKES, I. J.; HOROCHOVSKI, R. R.; CAMARGO, N. F.; SILVA, J. M.; SILVA, E. A.; ALMEIDA, L. B. 2015. Positioning of women in the electoral financing network and their performance in the 2010 elections in Brazil: the structural dynamics of female exclusion and marginalization in political power. Revista Latino-Americana de Geografia e Gênero 6(1): 25-47.
MEZZOMO, F. A; PÁTARO, C. S. O. 2017. Religion and politics: institutional strategies and religious appeals by evangelical candidates in proportional elections (2008-2016). Revista de Estudos da Religião (REVER) 17(3): 139-165.
MIGUEL, L. F. 2003. Political capital and electoral career: some variables in the election for the Brazilian Congress. Revista de Sociologia e Política 20:115-134.
MUCHLINSKI, D.; SIROKY, D.; HE, J.; KOCHER, M.; 2016. Comparing random forest with logistic regression for predicting class-imbalanced civil war onset data. Political Analysis 24(1): 87-103.
NEXUS – Pesquisa e Inteligência de Dados a. 2024. 469 candidates with religious names are elected in the 1st round. Available at: nexus. fsb. com. br. Accessed on: 5 Mar. 2025.
NEXUS – Pesquisa e Inteligência de Dados b. 2024. 1st round has a record of elected military personnel, with 152 candidates. Available at: https://www. nexus. fsb. com. br/estudos-divulgados/1-turno-tem-recorde-de-militares-eleitos-com-152-candidatos/. Accessed on: 5 Mar. 2025.
NOVAES, L. M. 2024. The violence of Law-and-Order politics: the case of law enforcement candidates in Brazil. American Political Science Review 118(1): 1-20.
PIAZZA, K; LANDY, J. 2024. Captain Mayor and Sergeant Councilman? An Assessment of the Reach of Military Politicization in Brazilian Politics. Armed Forces & Society 00(0): 1-36.
PLÁCIDO, C. P. M; GALLO, C. A. 2021. The return of those who never left: Who are they and what did they convey in their candidacies, the “parlamilitary” elected in 2018?. Brasiliana: Journal for Brazilian Studies 10(2): 330-350.
Python Software Foundation. 2024. The Python Standard Library: re – Regular expression operations. In: https://docs. python. org/3/library/re. html. Accessed on 07 Mar. 2025.
REIS, L; ABREU, G; CUNHA, M; PESTANA, M. C. 2022. Religion and Vote: a photograph of the candidacies with religious identity in the 2020 Elections. Rio de Janeiro: Instituto de Estudos da Religião (ISER). Available at: iser. org. br. Accessed on: 07 Mar. 2025.
REIS, L; OWSIANY, L; CUNHA, M; PESTANA, M (Eds.). 2024. What did we learn from researching religion and elections?. Rio de Janeiro: Instituto de Estudos da Religião (ISER). Available at: iser. org. br. Accessed on: 07 Mar. 2025.
ROCHA, D. N. N. 2019. Evaluation of predictive models for the extraction of significant characteristics in Brazilian elections. Bachelor’s Monograph in Computer Science. Universidade Federal de Campina Grande, Campina Grande, Paraíba, Brazil.


Executive summary from the Final Project of the Specialization in Data Science and Analytics from the MBA USP/Esalq

Learn more about the course; click here:

Who edited this article

Most recent

You may also like

Executive Mba In Leadership And Management

November 23, 2026

Improvements in the efficiency of a secondary biological sludge drying plant

The management of industrial solid waste, especially secondary biological sludge, represented an operational and strategic challenge for a company in the pulp and paper sector. A secondary biological sludge drying plant, installed to meet environmental requirements and reduce costs, operated with low efficiency and high unavailability. The objective of this study was to evaluate and propose a set of actions to increase the operational availability of the plant, ensure the integral processing of the generated sludge, and reduce treatment and transportation costs, in addition to mitigating environmental risks. To this end, an analysis of the root causes of low efficiency was carried out, using tools such as the cause-and-effect diagram (Ishikawa) and the “5 whys” analysis, and hypotheses were tested to identify the most impactful factors. Three main root causes were identified: addition of low-load effluent to the process, absence of a dedicated maintenance team, and lower consistency of dewatered sludge. The proposed countermeasures, which included stopping the addition of effluent, hiring a maintenance team, and testing polymers, had a monthly implementation cost of R$ 35,000.00. An annual reduction in operating expenses of up to R$ 1,800,000.00 and maintenance costs of R$ 600,000.00 was estimated, in addition to a 25% reduction in operational unavailability. It was concluded that the proposed measures are viable, quick to implement, and capable of ensuring the integral processing of secondary biological sludge, strengthening the company’s ESG strategy and ensuring environmental compliance.

Keywords: Operational costs; Operational efficiency; ESG; Biological sludge; Sludge drying.

Data Science And Analytics For Operations

November 19, 2026

Polyp-YOLO: an efficient, low-latency detector for polyps in colonoscopies

The early detection of colorectal polyps is crucial for the prevention of colorectal cancer, and real-time computer-aided detection (CADe) systems have shown gains in endoscopic practice. The objective was to develop and validate a lightweight colorectal polyp detector, based on the YOLO architecture, capable of operating on restricted hardware with high precision and low latency. The methodology used public datasets of endoscopic images, partitioning the Kvasir-SEG dataset for training and internal validation, and CVC-ClinicDB and ETIS-Larib Polyp DB for cross-dataset evaluation. Lightweight variants of the YOLOv8, YOLO11, and YOLO26 families with 640×640 pixel input were evaluated. A grid search tested 70 combinations of optimizers and activation functions, and identified AdaBelief and LeakyReLU as the configuration with the best generalization. The optimization pipeline applied unstructured pruning, knowledge distillation, and fine-tuning. The optimized YOLO11n-seg model outperformed the higher-capacity architecture (YOLO26m-seg) in mAP50 and showed similar performance in F1-Score, operating with approximately seven times fewer parameters. It achieved an mAP50 of 0.7929 and an F1-Score of 0.7514 on the ETIS-Larib dataset, and fast inference was demonstrated in different formats, with real-time latencies. The explainability of predictions was validated by Grad-CAM activation maps. The proposed solution demonstrated itself to be a promising experimental tool for diagnostic support, with technical feasibility for integration into environments with reduced computational power, although it requires future clinical validation.

Keywords: Computer-aided detection; Edge computing; Hyperparameter optimization; Endoscopic image segmentation; Medical computer vision.

Data Science And Analytics For Operations

November 19, 2026

Multi-touch Attribution in E-commerce: A Comparison between Markov Chains and Last-Click

The research investigated Multi-touch Attribution (MTA) Models in e-commerce, seeking to overcome the limitations of the Last-Click model, widely used in the market. The objective was to compare the performance of first-order Markov Chains with Last-Click and Position-Based approaches, identifying the value of assistance channels frequently ignored. To this end, Markov Chain algorithms were applied to a large volume of purchase journey data from the Google Merchandise Store, extracted via BigQuery. The study probabilistically mapped the purchase journey and calculated the Removal Effect to quantify channel relevance. The results demonstrated that data-driven models identified the strategic role of discovery (awareness) and assistance channels, which Last-Click neglected in 65% of complex journeys. Simulated financial analysis indicated an approximate 28% hidden efficiency in Cost Per Acquisition (CPA) for Paid Search, compared to the Last-Click model. It was concluded that Markov Chains allowed for a more accurate mapping of purchase journeys, validating the technical feasibility of the modeling and providing evidence for more efficient budget allocation in digital media, mitigating the risk of early divestment in crucial channels.

Keywords: Assistance channels; Data science; E-commerce; Digital marketing; Media optimization.

Project Management

November 19, 2026

Integrated Software for Operational Communication and Control: Practical Evidence in a Medium-Sized Company

The study analyzed the impacts of the lack of integration between commercial and operational modules of an integrated management software (ERP/CRM) in a medium-sized company in the mechanical engineering sector. The main objective was to evaluate practical evidence of communication and operational control optimization, identify bottlenecks, and formulate improvement proposals. A qualitative-quantitative approach was adopted through a single case study with documentary research, based on the extraction and filtering of historical task records from the Bitrix24 software and statistical correlation analysis between workload and allocated team. Based on the diagnosis, an action plan structured in the 5W2H tool was developed. The results revealed that 54.4% of the registered tasks consisted of duplicate, test, or practically useless records, generated by manual insertion during the scope transition between commercial CRM and engineering. It was also demonstrated that the increase in the commercial team linearly accompanied the growth of inefficient tasks, polluting the database and masking the organization’s real productive capacity. It was concluded that the automation of workflows and native integration between modules are essential to mitigate operational and financial risks, providing replicable guidelines for data governance in small and medium-sized enterprises.

Keywords: System Customization; Enterprise Resource Planning (ERP); Task Management; Management Software.

Project Management

November 19, 2026

Supervised learning in voltammetric quantification with electrochemical sensors

The application of supervised learning in the voltammetric quantification of paraquat in artificial urine was evaluated. The study aimed to quantitatively assess the predictive performance of supervised learning models compared to a univariate “baseline”, preserving independence between devices in the training and testing sets. The research was conducted as an applied case study, processing data from four physical devices, each evaluated under a blank condition and six paraquat concentration levels, totaling 28 square wave voltammetry (SWV) curves. A computational “pipeline” integrated automated file reading, organization of curves into current-potential matrices, generation of potential maps, and device-specific blank correction. Five approaches were considered: conventional univariate calibration, predictive univariate “baseline”, partial least squares (PLS) regression, support vector regression (SVR), and random forest (RF). Predictive evaluation was performed using device-grouped cross-validation. PLS showed the best predictive performance for curves from a device not used in training, with an R² of 0.7981. RF exhibited intermediate performance, while SVR and the predictive univariate “baseline” showed inferior and similar performance between themselves. It was concluded that a compact multivariate representation of the voltammetric profile was more favorable for inter-device prediction than increasing model flexibility under the studied conditions. Grouped validation preserved independence, but the limited number of devices restricts the generalization of results.

Keywords: Supervised learning; Paraquat; PLS; Electrochemical sensors; Square wave voltammetry.

Project Management

November 19, 2026

Improvement of Inventory Management via Lean Six Sigma: Study in the Paper Industry

Organizations seek methodologies to reduce waste, increase efficiency, and become more competitive, promoting sustainable improvements in their processes. In this context, the study aimed to apply the Lean Six Sigma methodology, through the DMAIC cycle, to improve inventory management in a company in the paper industry manufacturing pneumatic hoses, aiming to increase the accuracy between physical and systemic inventories and improve the visual management of parts storage. The research was developed from the collection and analysis of data extracted from the company’s ERP system. Tools such as SIPOC, Ishikawa Diagram, and 5 Whys were used to define and identify the root cause of the problem. As improvement proposals, a Digital Kanban system and an adaptation of the Two-Bin system, called the Three-Bin System, were implemented, in addition to the development of standardized operating procedures and the establishment of control mechanisms. The results demonstrated a significant improvement in inventory accuracy, raising the lowest identified index from 28% to 80%, and detected discrepancies between systemic and physical records equivalent to R$ 134,335.53. It was concluded that the application of Lean Six Sigma, combined with Project Management, represented an effective approach for conducting operational improvement projects, contributed to increased reliability of inventory information, to the improvement of material control processes, and to the strengthening of the organization’s operational management.

Keywords: Inventory accuracy; DMAIC; Visual management.

Data Science And Analytics For Operations

November 19, 2026

Predictive Analysis Methodology for Performance Optimization in E-commerce: Correlation between Public Data and Paid Media

A predictive analysis methodology was developed for e-commerce, integrating transactional data and public search trends. The objective was to develop and validate a predictive model, based on machine learning algorithms, capable of correlating organic search trends with sales performance and paid media costs in the Beauty and Health category of Brazilian e-commerce. The Brazilian E-Commerce Public Dataset by Olist and data from Google Trends were used, processed in Python with the Random Forest Regressor algorithm. A moderate inverse correlation (r = -0.43) with a seven-day lag was identified between organic search volume and purchase. Initial models, based solely on behavioral variables, presented insufficient metrics (R² = -0.47; MAE of R$ 2,120.54). The incorporation of microeconomic (average ticket and shipping) and macroeconomic (exchange rate and Ibovespa index) variables raised the R² of the final model to 0.29, with an MAE of R$ 1,489.63, representing a 24.7% reduction in error compared to the baseline. Temporal cross-validation showed that, in periods of mature operation (2018), the model achieved an R² of 0.42. It was concluded that isolated search volume explains the moment of consumer interest, but not the financial magnitude of sales, making the fusion with transactional and economic data mandatory for predictive viability.

Keywords: Beauty and Health; Consumer Behavior; Google Trends; Machine Learning; Time Series.