October 08, 2026
Economic vulnerability and judicial instability: predictive modeling of institutional tension in Brazil
Economic Vulnerability and Judicial Instability: Predictive Modeling of Institutional Tension in Brazil
Letícia de Almeida Garcia; Daniel Alvarez Firmino
DOI: 10.22167/2675-6528-202603143
Article derived from a Final Course Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.
Summary
The integrity of the Judiciary was a fundamental pillar for democratic stability in Brazil, which between 2018 and 2024, faced acute cycles of institutional tension and strong macroeconomic volatility. The study investigated the causality between macroeconomic conditions and the stability of the Supreme Court, using the variable “Government attacks on judiciary” (V-Dem) as an instability indicator. Methodologically, the data series underwent an increase in temporal granularity via Cubic Spline and was subjected to the LASSO regularization algorithm, which selected the most relevant economic, institutional, and social predictors, reducing 22 initial indicators to seven fundamental predictors. Dynamic modeling, performed via VECM, allowed for the identification of a long-term equilibrium and the measurement of the system’s adjustment speed to exogenous shocks. The results revealed a pattern of movement between monetary policy cycles and the frequency of institutional attacks, evidencing a chronological precedence of economic variables. It was observed that the recomposition of judicial stability indicators from 2022 onwards occurred simultaneously with the cycle of elevation of the Selic Rate. The findings demonstrated that the stability of Brazilian institutions was highly sensitive to the fundamentals of the real economy, suggesting that monitoring macroeconomic data could function as an early warning system for the preservation of judicial independence and offer a proactive management tool.
Keywords: Attacks on the Judiciary; Temporal causality; Political economy; Institutional stability; Macroeconomic indicators.
1. Introduction
The period between 2018 and 2024 was marked by significant institutional tension in Brazil. During this interval, the Supreme Federal Court (STF) underwent a reconfiguration in its role in public debate, facing coordinated reactions that literature terms judicial backlash (Alter, 2014; Klarman, 1994). Concurrently, the country experienced sharp macroeconomic volatility, exacerbated by the effects of the COVID-19 pandemic and the subsequent rise in the Selic Rate, a measure adopted to curb inflationary expectations. This scenario of economic and political instability highlighted the vulnerability of democratic institutions.
From a political economy perspective, the deterioration of the population’s economic well-being can undermine public support for institutions, turning them into targets of popular dissatisfaction. This dynamic suggests an intrinsic interdependence between economic stability and institutional integrity, where financial crises can catalyze or intensify tension on established powers, including the Judiciary.
Although traditional legal literature is dedicated to analyzing the normative aspect of institutional relations, there is a relevant empirical gap regarding how fluctuations in the real economy exert pressure on the Supreme Court. Understanding this relationship is crucial for identifying the predictive capacity of macroeconomic and democratic legitimacy indicators in anticipating peaks of institutional tension directed at the STF. Such knowledge is fundamental for the development of mechanisms that preserve judicial independence and democratic stability.
The central hypothesis guiding this study is that macroeconomic and country-risk shocks exert statistical precedence and causality over the instability of the Judiciary. To investigate this premise, three specific hypotheses are tested: the temporal precedence of the Selic Rate over institutional attacks (H1); the role of democratic support in long-term cointegration (H2); and the system’s resilience in returning to equilibrium after exogenous shocks (H3). Given this context, the objective of this work is to use automated attribute selection Least Absolute Shrinkage and Selection Operator (LASSO) and econometric modeling Vector Error Correction Model (VECM) to measure the dynamics of these causal relationships between 2018 and 2024, enabling the structuring of early warning systems for the preservation of judicial independence.
2. Material and Methods
The research adopted a longitudinal quantitative approach, with data collection from official sources covering the period from January 2018 to December 2024. This temporal delimitation ensured the necessary degrees of freedom for time series analysis and guaranteed the use of consolidated fiscal years.
The methodological strategy was structured as an end-to-end data “pipeline”, developed in the Python language. The solution architecture was designed to mitigate challenges such as high dimensionality and frequency disparity between time series, in addition to addressing potential endogeneity between indicators.
The analytical flow followed an empirical strategy of automated attribute selection and predictive modeling, comprising five steps: temporal harmonization via Cubic Spline, attribute selection by the LASSO algorithm, unit root tests (ADF and KPSS), Vector Error Correction Model (VECM) econometric modeling, and shock analysis via Impulse Response Functions (IRF) and Forecast Error Variance Decomposition (FEVD).
The selection of variables started from a broad survey of macroeconomic, institutional, and social indicators. The LASSO algorithm acted as a dimensionality filter, isolating seven fundamental predictors from 22 initial indicators (Tibshirani, 1996), eliminating structural collinearities and concentrating the informational load on stable metrics.
The dependent variable was “Government attacks on judiciary” (V-Dem), selected for its regular periodicity and robustness in operationalizing “judicial backlash” (Alter, 2014; Klarman, 1994). Coding biases mitigated by Item Response Theory (IRT) models (Coppedge et al., 2025; Goldstone et al., 2010) acted as a proxy for the degradation of judicial independence in Brazil (Fernandes et al., 2022; Barboza; Souza, 2024).
The predictors included the Selic Rate (Central Bank of Brazil, monthly), and annual WGI indicators (Regulatory Quality, Government Effectiveness, and Political Stability). From V-Dem, the Rule of Law Index and the Accountability Index (annual) were used. Support for Democracy was collected from the Latin American Public Opinion Project (LAPOP), with a biannual frequency.
The temporal heterogeneity of the sources required harmonization. To reconcile frequencies and enable modeling via VECM, temporal disaggregation by Cubic Spline was applied. This technique ensured the continuity of first and second derivatives, avoiding artificial shocks and mimicking the inertial evolution of public perceptions (Moisés, 2005). For LAPOP data referring to 2024, “Last Observation Carried Forward” (LOCF) was used (Shumway; Stoffer, 2016).
The “Augmented Dickey-Fuller” (ADF) and “Kwiatkowski-Phillips-Schmidt-Shin” (KPSS) unit root tests confirmed that the series were integrated of order 1, I(1) (Bussab; Morettin, 2010; Shumway; Stoffer, 2016). Once stationarity was established, the Granger causality test was applied to verify the temporal precedence of macroeconomic variables over institutional tensions (Bittencourt; Tobler, 2024).
After the confirmation of the integration order, the Johansen procedure was applied to identify the existence of cointegration vectors (Johansen, 1989). This test validated the presence of a common long-term trend between the economic and institutional dimensions, preventing spurious regressions.
The identification of cointegration enabled the estimation of the Vector Error Correction Model (VECM). The differential of this modeling resided in the Error Correction Term (ECT), which functioned as a statistical anchor by measuring the system’s adjustment speed. The β’ component of the ECT identified the long-term relationship, while α measured the recovery capacity.
The Γ coefficients captured the short-term inertial dynamics. The analysis of the magnitude and persistence of shocks was deepened by the Forecast Error Variance Decomposition (FEVD) and Impulse Response Functions (IRF). These procedures allowed for the quantification of institutional resilience and causality between variables, as intended.
3. Results and Discussion
Empirical investigation revealed a complex interconnection between the macroeconomic conjuncture and institutional stability in Brazil, especially in the period from 2018 to 2024. This interval was marked by a recurring operational deadlock of coalition presidentialism and a notable erosion of democratic norms, as observed by Abranches (2021) and Fernandes et al. (2022). The initial mapping sought to identify the temporal correspondence between variations in economic indicators and episodes of greater instability in the Judiciary, particularly at critical moments for Brazilian democracy, as pointed out by Barboza and Souza (2024).
The analysis of the temporal trajectory of the data demonstrated a pattern of concomitant behavior among the studied variables. It was observed that the period of lower institutional stability, characterized by a significant increase in attacks on the Judiciary between 2020 and 2021, coincided with the cycle of Selic Rate easing, which reached its historical minimum levels. This monetary policy was a response to the systemic pressures of the COVID-19 pandemic, as discussed by Oliveira Júnior (2023). Such synchrony suggested that institutional instability was not an isolated phenomenon, but was intrinsically linked to economic volatility and the need for monetary intervention to control inflationary expectations.
The V-Dem indicator scale, which measures attacks on the Judiciary, revealed that decreasing values indicated an aggravation in the severity of these attacks (Coppedge et al., 2025). The opposing inclinations of the Selic Rate curves and attacks on the Judiciary, where the fall in the Selic Rate (monetary easing) occurred in parallel with the decline in court respect indices, pointed to a critically inverse correlation. This preliminary observation reinforced the hypothesis of a dependency relationship between macroeconomic balance and institutional integrity, a premise that was later validated by statistical cointegration and causality tests (Enders, 2008; Johansen, 1989).
The recomposition of judicial stability indicators, observed from 2022 onwards, occurred simultaneously with the Selic Rate hike cycle. This phenomenon, which initially might seem contradictory to the hypothesis that monetary tightening would be a vector of pressure, was attributed to a convergence of exogenous factors. Among them, the attenuation of the pandemic crisis, which allowed the resumption of institutional regularity and the stabilization of the labor market (Costa; Barbosa; Hecksher, 2021), and the succession dynamics of the last year of government stand out.
With the election approaching, a redirection of political capital from hostility was noted. The focus of the attacks, which previously concentrated on the Judiciary, shifted to direct polarization in the presidential race (Fernandes et al., 2022; Instituto Liberdade Digital, 2021). This temporary emptying of the rhetoric of confrontation with the Supreme Federal Court allowed for a recovery in the stability metric, suggesting that the instability observed in the previous biennium was linked to a deliberate strategy of political mobilization in a scenario of “presidency in a trance” (Abranches, 2021; Barboza; Souza, 2024).
The statistical correlation matrix corroborated this parallel movement dynamic, evidencing a strong linear interdependence between the model’s variables. An almost perfect collinearity was highlighted between the Accountability Index and the Rule of Law Index (r = 0.98). This predictive redundancy and the high dimensionality of the institutional metrics justified the use of LASSO regularization as a crucial step in attribute selection, preventing multicollinearity and overfitting problems in subsequent VECM estimations.
Regarding the research hypotheses, relevant preliminary statistical associations were observed. The first hypothesis (H1), concerning economic precedence, was supported by the expressive positive correlation between the Selic Rate and Attacks on the Judiciary (r = 0.76), indicating a synchronicity between monetary volatility and institutional instability. The second hypothesis (H2), on legitimacy, showed that the dependent variable correlated strongly with the Rule of Law (r = 0.92), Support for Democracy (r = -0.87), and Accountability (r = 0.87), signaling that the increase in aggressions against the Court is accompanied by the erosion of institutional guarantees.
The third hypothesis (H3), related to resilience, indicated that Regulatory Quality exhibited sharp negative correlations with the Rule of Law (r = -0.90), Accountability (r = -0.92), and Attacks (r = -0.86). This suggested a divergence in behavior between the technical-administrative apparatus and the political-constitutional environment. Qualitatively, these associations revealed two central dynamics: a cycle of mutual vulnerability, where the weakening of institutional checks and balances removed safeguards for the Supreme Court, making attacks politically advantageous; and a paradox of resilience through democratic reactivity, where explicit aggression towards the court generated a “backlash” effect in public opinion, mobilizing civil society to reinforce its commitment to the regime.
Unit root tests, specifically the ADF and KPSS tests, confirmed that the selected time series were non-stationary at level and integrated of order 1, I(1) (Bussab; Morettin, 2010; Shumway; Stoffer, 2016). The dependent variable, Attacks on the Judiciary, exhibited random walk behavior (p = 0.4646), demonstrating a dynamic converging to the trajectory of the Selic Rate. This integration diagnosis was fundamental to validate the application of the cointegration methodology, allowing for the identification of long-term equilibrium relationships and supporting the estimation of the dynamic model.
The Granger Causality Test indicated that the Selic Rate, the Political Stability Index, and Support for Democracy showed significant temporal precedence over Attacks on the Judiciary (p 47.85), attesting to the presence of a long-term equilibrium between the selected variables and the Court’s stability (Johansen, 1989). The VECM model estimation indicated that the error correction mechanism operated primarily via monetary policy. While the adjustment coefficient for Attacks was not significant, the Selic Rate presented a negative and significant coefficient (α = -0.2420; p = 0.015).
This parameter demonstrated that 24.2% of the imbalance is absorbed per month, resulting in an adjustment latency of approximately 4.1 months for the recomposition of equilibrium (Enders, 2008; Wooldridge, 2010). This finding supported the partial confirmation of H3, indicating that the system shows resilience and gradual recovery, preventing terminal rupture. However, the four-month gap causes successive shocks to overload the arrangement, generating the perception of continuous instability (Abranches, 2021; Ríos-Figueroa, 2017; Fernandes et al., 2022).
Impulse-Response Functions (IRFs) indicated that shocks to the Selic Rate cause medium-persistence impacts on judicial stability, acting as background macroeconomic stress. In contrast, responses to shocks in Support for Democracy and Political Stability were faster and more volatile, reflecting sensitivity to public opinion triggers (Souza; Vieira, 2022; Santos; Rocha, 2011; Engelmann, 2015). The observed synchronicity between monetary easing and increased tensions aligns with the Macroeconomics of Populism (Dornbusch; Edwards, 1991; Abranches, 2021), where economic expansion acts as a “political insurance” that reduces the immediate costs of institutional confrontations.
Subsequently, the increase in the cost of credit functions as a risk pricing mechanism that ends the cycle and forces a return to stability through economic channels. The COVID-19 pandemic biennium (2020–2021) raised the baseline level of institutional tension by compelling the STF to fill the Executive’s decision-making vacuum and arbitrate health policy, becoming the primary target of attacks (Monteiro; Marques, 2025). The choice to preserve the continuous series without “dummy” variables evidenced the robustness of the VECM model and the Johansen Test (67.58 > 47.85), whose cointegration vectors remained active despite the period’s volatility (Johansen, 1989; Enders, 2008).
This finding confirms that the transmission mechanism between macroeconomic/political instability and aggressions against the Court is structural and long-term in nature, maintaining parameter consistency regardless of the type of external stressor. The identification of this chronological precedence allowed the model to be structured as an early warning system (Goldstone et al., 2010). By employing LASSO regularization and VECM modeling, the study converged data science and institutional theory to transform political insights into risk monitoring metrics based on tracking the Selic Rate, Political Stability, and Support for Democracy (Randahl et al., 2025).
The adjustment latency of 4.1 months reinforces the relevance of continuous monitoring to distinguish conjunctural noise from structural deterioration processes. The evidence confirmed that “judicial backlash” in Brazil (Alter, 2014; Klarman, 1994) operates as a dynamic system responsive to exogenous shocks. The validation of H1 and H2 attests that monetary volatility and the loss of democratic support act as direct catalysts for institutional tension. Regarding resilience (H3, partially confirmed), the adjustment via monetary policy proves the existence of self-balancing mechanisms, albeit marked by inertia and recovery latency.
As pointed out by the comparative literature on developing democracies (Ríos-Figueroa, 2017), although the Brazilian institutional arrangement avoids immediate rupture, this slow absorption exposes the system to a “fatigue effect”, where the continuous succession of shocks risks converting conjunctural vulnerabilities into structural fragilities. Despite the robustness of the findings, the interpretation of the results requires caution due to methodological limitations. The temporal scope (2018–2024) constitutes a restricted horizon for cointegration analyses, which usually benefit from longer series (Enders, 2008).
The statistical noise of the COVID-19 pandemic demanded caution in generalizing coefficients to scenarios of absolute institutional normality (Costa; Barbosa; Hecksher, 2021; Barboza; Souza, 2024). Additionally, Cubic Spline interpolation, while effective in harmonizing frequencies, introduces a smoothing effect that can dampen short-term volatility, suggesting institutional resilience slightly higher than reality in the face of shocks shorter than a quarter.
From an econometric perspective, the risk of residual endogeneity persists, as does the influence of discrete high-intensity political events, such as the acts of January 8, 2023, or autocratic decisions of high impact, whose discontinuous nature challenges the linearity of the VECM (Gujarati; Porter, 2011; Wooldridge, 2010). The absence of significance in the adjustment coefficient of the attacks equation reinforces that institutional instability does not have a fully predictable endogenous correction mechanism. Thus, although the Selic Rate and legitimacy indicators operate as robust predictors, institutional dynamics preserve a margin of unpredictability linked to the strategic and discretionary choices of political actors in moments of rupture (Levitsky; Ziblatt, 2018; Ginsburg; Huq, 2018).
In summary, the results confirmed that the stability of the Brazilian Judiciary is a dynamic system, sensitive to exogenous shocks and intrinsically linked to the macroeconomic conjuncture. The articulation between quantitative methods and institutional theory allowed us to identify that economic stress not only preceded political instability but acted as its main driver for adjustment and rebalancing. The quantification of institutional resilience, through latency metrics, revealed an adjustment gap of approximately 4.1 months, indicating that the system has statistical memory and that the recurrence of attacks at intervals shorter than a quarter can prevent full rebalancing, converting temporary vulnerabilities into structural fragilities. The developed model, by transforming political intuitions into risk metrics, offers a proactive management tool for the preservation of judicial independence.
4. Conclusion
This study sought to measure the dynamics of causality between macroeconomic conditions and the instability of the Brazilian Judiciary in the period from 2018 to 2024, aiming to structure early warning systems for the preservation of judicial independence. It was found that the stability of Brazilian institutions was highly sensitive to the fundamentals of the real economy, with the Selic Rate, Political Stability, and Support for Democracy emerging as fundamental predictors. The results revealed a pattern of movement between monetary policy cycles and the frequency of institutional attacks, evidencing a chronological precedence of economic variables over institutional tension. Dynamic modeling, performed via VECM, identified the existence of a long-term equilibrium and an error correction mechanism that operates primarily through monetary policy, absorbing 24.2% of the imbalance per month, resulting in an adjustment latency of approximately 4.1 months. This quantification of institutional resilience, through latency metrics, constitutes the main contribution of the study, offering a proactive management tool that transforms political perceptions into risk monitoring metrics for the preservation of judicial independence.
However, the interpretation of the findings requires caution due to methodological limitations. The time frame from 2018 to 2024, although relevant to the studied context, constitutes a restricted horizon for cointegration analyses, which benefit from longer series. Additionally, the statistical noise from the COVID-19 pandemic and the smoothing introduced by Cubic Spline interpolation may have dampened short-term volatility, suggesting a slightly higher institutional resilience than real in the face of shocks shorter than a quarter. The risk of residual endogeneity and the influence of discrete high-intensity political events, whose discontinuous nature challenges the linearity of the VECM model, also persist. The lack of significance in the adjustment coefficient of the attack equation reinforces that institutional instability does not possess a fully predictable endogenous correction mechanism, preserving a margin of unpredictability linked to the strategic choices of political actors. Thus, although the system demonstrates resilience and gradual recovery, the recurrence of shocks at intervals shorter than a quarter may prevent full rebalancing, converting temporary vulnerabilities into structural fragilities.
Bibliographic References
Alter, K.J. 2014. The new terrain of international law: courts, politics, rights. 1ed. Princeton University Press, Princeton, NJ, USA.
Coppedge, M. 2025. V-Dem codebook v15: varieties of democracy (V-Dem) project. Gothenburg: V-Dem Project. Disponível em: https://www.v-dem.net/data/reference-documents/. Acesso em: 31 jan. 2026.
Fernandes, A.S.A.; Coêlho, D.B.; Benício, J.A. R. 2022. Entre a estab
Goldstone, J.A.; Bates, R.H.; Epstein, D.L.; Gurr, T.R.; Lustik, I.B.; Marshall, M.G.; Ulfelder, J.; Woodward, M. 2010. A global model for forecasting political instability. American Journal of Political Science 54(1): 190-208.
Klarman, M.J. 1994. How Brown changed race relations: the backlash thesis. The Journal of American History 81(1): 81-118.
Tibshirani, R. 1996. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society: Series B (Methodological) 58(1): 267-288.
Article originating from the Final Course Work of the Specialization in Data Science and Analytics of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform