Acadlore takes over the publication of JORIT from 2025 Vol. 4, No. 3. The preceding volumes were published under a CC-BY 4.0 license by the previous owner, and displayed here as agreed between Acadlore and the owner.
A Machine Learning Approach to Synthetic Gini Coefficient Estimation in Colombian Municipalities
Abstract:
This paper presents two synthetic estimations of the Gini coefficient at a municipality level for Colombia in the years 2000-2020. The methodology relies on several machine learning models to select the best model for imputation of the data. This derives in two Random Forest models where the first is characterized by containing Dominant Fixed Effects, while the second contains a set of Dominant Varying Factors. Upon these estimations, the Synthetic Gini Coefficients for both models are inspected, and public links are generated to access them. The Dominant Fixed Effects models is rather “stiff” in contrast to the Varying Factor model. Hence, for researchers it is recommended to use the Synthetic Gini Coefficient with Varying Factors because it contains greater variability across time than the Dominant Fixed Effects models.
1. Introduction
The objective of this paper is to present a machine learning estimation for the scarce data of the Gini coefficient at a municipality level for Colombia between the years 2000-2020. Using the power of the CEDE data of the University of Los Andes (CEDE, 2023), and the only existing information for the municipality Gini coefficient in 2005, this empirical exercise extends “synthetically” the measures of the Gini coefficient. By using the best model across several estimations, the imputation of the Gini coefficient is executed, allowing to synthesize the data in the panel data format including the identification keys with the DIVIPOLA municipality and the years. During the estimations, it was noted that the best model had as the majority of important variables (or features), a set of “Dominant Fixed Effects” which drove the Random Forest results. The features of this model are strongly related to municipality clusters, distances, and geographical locations. By interpreting these features related mostly to fixed effects -as they do not fluctuate significantly over time and are mostly related to geographical ID clusters- an alternative model is generated characterized by containing a set of Varying Factors. The latter model relies on a set of socioeconomically time-varying factors mainly concentrated in human capital accumulation and population dynamics.
Both the Dominant Fixed Effects model (R2 = 98.0%), and the Dominant Varying Factor model (R2 = 94.3%) estimated via Random Forests, exhibits good properties in terms of the metrics, but they also exhibit differential variability over time and within individuals. Hence, while the first model (Dominant in Fixed Effects) remarks the importance of time-invariant factors such as distances, geographical regions, and potentially static phenomena such as time-invariant infrastructure, institutions and climate conditions.
The second model remarks on the importance of human capital and socioeconomic factors to describe the Synthetic Gini Coefficient. In particular, the Dominant Fixed Effects model also contains as important variables the socioeconomic variables of population and human capital, but they’re not as important as the fixed or “semi-fixed” variables in the Random Forests estimations.
Consistently, in both estimations, Chocó is the Department most affected by income inequality given the results of the Synthetic Gini Coefficient. Both estimations also depict that Colombia has not improved significantly the levels of income inequality during this period.
The details of this estimation go as follows; first, a filtering process is implemented to reduce the number of features with missing values in the available data. Next, a model selection between the machine learning approaches of linear regression, random forest, regression trees, and gradient boosting is implemented. The random forest outperforms the rest of the models based on the observed available data through cross-validation techniques. By observing the composition of the most important variables in the initial model, a strong composition of “fixed” and “semi-fixed” variables exists and are characterized by not changing over time. Upon this interpretation, a second model is generated by excluding this fixed and semi-fixed variables. And thus, the Varying Factor model is estimated.
The public available version of the Synthetic Gini Coefficient for the Dominant Fixed Effects model is: https://docs.google.com/spreadsheets/d/1jc1c-X1aum8GkfrsZHOec1gz_1Qo9w_S/edit?usp=sharing&ouid=118 158209086311183140&rtpof=true&sd=true. The public available version of the Synthetic Gini Coefficient under the Varying Factor model is:https://docs.google.com/spreadsheets/d/1JUt93lBzp3S_kgWnU4msuDJ2LQBGsbVq/edit
Considering that the Varying Factor model contains more variability across the municipalities for the sample years, it is recommended to be used for researchers. In essence, because the fixed effects can be isolated by using standard econometrical specifications. The Varying Factor model is in my perspective also more realistic, because the core important predictors are time-varying. Finally, while this article contributes with synthetic measures of the Gini coefficient at a municipality level for Colombia during the 2000-2020, it is important to remember the weaknesses of the machine learning methods for data imputation. This implies that the motivation for solving the missing data problem is specific (Lakshminarayan et al., 1996).
Hence, the Dominant Fixed Effects imputation is not necessarily bad in contrast to the Varying Factor imputation. Both reflect synthetic estimates of the Gini coefficient but based on different natures. Hence, no single machine learning algorithm is the ultimate answer for the missing data problem (Hong & Lynn, 2020). Also is important to highlight that all machine learning methods are subject to bias and errors, implying a risk of biased estimates in the parameters and error in the imputations (Sullivan et al., 2017).
The justification to select this time frame (2000-2020) is mainly related to data limitations, as at a municipality level, there is a significant number of missing values for the Colombian municipalities, which neglects the use of a greater selection of variables. The estimates provided for this period, however, do possess some significant available information which is both time-varying and invariant, allowing to proceed with sensibility analysis. The methodology is based on available real-world administrative information to execute the estimation process, and the reference year is the 2005 since it is the only period with the Gini coefficient at the municipality level according to the CEDE. While it is not possible to discard the estimation backwards (before 2000), the estimates are not as accurate due to missing values, administrative changes in the municipalities, and potential inconsistencies across the measure of the explanatory variables.
The limitation of this study is that the synthetic Gini index distribution estimated in this article, might not describe or align with the real-world inequality distribution of Colombia as synthetic data is only generated from observed available variables in the essence of Rubin (1987). Hence, the imputed dataset is a synthetic estimation, which might not reflect the true variance of the population across units or time. Leading to potential inaccuracies that can exists (Schafer & Graham, 2002). For these reasons and the potential biases that exist within the machine learning imputation, the dataset will never produce the pure and correct estimate for the income inequality (Gelman and Hill, 2007) and it is impossible to compare with the real data of income inequality as the latter does not exist. Hence, the datasets generated should be used as informative observations.
Nevertheless, this article contributes to the understanding of income inequality through the generation of the Synthetic Gini Index and its potential evolution based on observed variables at the municipality levels. Thus, it provides two approaches based on either the dominance of fixed characteristics, or the time-varying features. It also presents a potential result for the estimation of income inequality over time across the territories of Colombia.
Finally, the additional findings present the well-known correlations between income inequality and human capital accumulation (inverse in nature), the population effects on income inequality (where massification becomes evident deriving in a nonlinear U-shape relationship), and the effect of rurality on income inequality (where the rural population is in a disadvantage since it is likely to encounter higher income inequality).
This study also contributes to the missing data problem that the Colombian territory suffers in terms of the analysis of income inequality, considering that the Colombian territory is one of most unequal economies of the world. This study was also influenced by the relevant works of Xue (2023), Lin et al. (2022), Seu et al. (2022), Alwateer et al. (2024), Sun et al. (2023), Wang et al. (2019), Gond et al. (2021), and Lin and Tsai (2020).
The document continues with Section 1, providing a brief literature review, section 2 describes the estimation process, Section 2.1 describes the data transformation used to preserve the number of variables with the less count of missing values. Section 2.2 provides the generalities of the machine learning estimation, where the model performance through several machine learning models is compared. It presents the importance of the variables of the data, where in Section 2.3 an interpretation of the variables within the random forest is analysed. In this interpretation, the nonlinear correlations of some important variables are analysed relative to the Synthetic Gini Coefficient, to further explore the data at the Department level and over time. Section 2.4 presents the estimation with time-varying factors and the comparison across models, the importance of time-varying factors which are mainly concentrated in human capital accumulation and population dynamics. Section 2.5 presents the nonlinear dynamics between the Synthetic Gini Coefficient and the regressors previously analysed where virtually the same patterns emerge. Finally, Section 2.6 briefly reviews the geographical distribution of the Synthetic Income Inequality for both the Dominant Fixed Effects model and the Varying Factor model.
2. Research Background
The techniques to estimate missing values has greatly increased during the last two decades (Rácz & Gere, 2025) depicting potential alternatives to satisfy the world’s data problems. The concept of strategic imputation takes place when we consider the available data, the limitations and methodologies to create the most accurate and potential result for decision making. The literature of Gama et al. (2025), Sharma et al. (2025), Shin et al. (2025) provide some great examples of applied data imputation methods to multiple topics not only in social sciences but also in other fields. In particular, the economic science is not isolated to the use of these techniques. The study of Teng et al. (2024) reviews under machine learning methods how income inequality can be understood from differential effects of oil and gas rent, also investigates if a potential Dutch disease might be occurring in the countries of Bahrain, Kuwait, Oman, and Saudi Arabia, this study constitutes a corner stone in the implementation of machine learning methods in the economic analysis related to income inequality.
In the same line for economic sciences, the study of Silva et al. (2024) performs a forecast analysis of trade patterns for specific commodities, the machine learning models they estimated depend on several available macroeconomic variables, including topological variables. The estimations involved around 200 countries and provide a rich understanding of the behaviour of gross domestic production.
Related to these estimation procedures, the work of Ma et al. (2023) imputes an innovation index based on machine learning methods (k-means and random forest models) considering several economic variables which are available. These variables include income, unemployment, social characteristics, and education. The results of the application of these machine learning methods generated the Global Intelligence Innovation Index (GIII) which helps the evaluation of intelligence innovations across countries.
Another influential study for economics and machine learning methods is the study performed by Zhan et al. (2023) where the goal is to estimate the house prices. For this study, a hybrid machine learning approach is developed with a mixture of Bayesian statistics and machine learning approaches. The output of this study is a multi-source dataset containing information on real estate markets with the imputed prices.
In this line, the study of Caravaggio et al. (2025) applies several machine learning methods to predict the European Union allocation of resources in Italy. These methods involve Random Forest, XGBoost, and Support Vector Machine, it is found that such transfers depend on territorial traits (fixed), and economic factors including income, unemployment, and debt.
In the case of variables such as welfare, machine learning methods have been applied to inspect how debt might interact with social welfare, the study of Zhu & Huang (2024) reveals that through machine learning methods, the relationship between debt and welfare is affected mostly by macroeconomic variables including gross domestic production, unemployment and fiscal status.
The process of recovering economic data, has been executed also with machine learning methods as the article of Combes et al. (2022) demonstrates. In this study, historical information about urban economics is used, where the power of machine learning methods helps to understand and estimate the spatial distribution of several economic outcomes.
Related to recovering income data, the study of Gao et al. (2024) uses human mobility patterns to investigate and estimate the income distribution through machine learning. Human patterns derived in a series of indicators which are used to estimate the income distribution. In general, the deep learning models outperform other approaches, and an important result is that residential differentiation of income is significantly greater than mobility disparities. Some of the models executed in this research involve XGBoost, convolutional neuronal network, and time series graph neuronal networks.
These studies depict how differential machine learning methods are used for imputation, and they provide a framework to operate in the context of this study, considering that the goal is to recover and estimate the Gini coefficient as a measure of income inequality for the municipality level in Colombia. The research gap is the lack of data and studies about this measure of income inequality at the granular level of municipalities, imposing a significant challenge for decision making processes and the overall study of the evolution of income inequality in Colombia.
3. Methodology and General Process
Since the CEDE (2023) is one of the sources of information that consolidates the municipality data of Colombia for a significant number of years, I selected this data to be core of the empirical estimations. That said, CEDE data composes for this version of the study (1.02.2025) seven panels of information. These are related to: 1) Agriculture and land. 2) Good government. 3) General characteristics (2022). 4) General characteristics (2023). 5) Conflict and violence. 6) Education. 7) Health and services.
Unfortunately, for all these datasets not all the data is available. In particular, in the panel of General Characteristics (both years), the Gini coefficient only presents the information for the year 2005 at the municipality level. The Gini then is missing for all the remaining years, consolidating a gap in our knowledge of the behaviour of income inequality across the country.
The first step involved identifying which of the seven information panels contained the highest number of available observations. The analysis determined that Panel 2: Good Government had the most extensive dataset (N = 43,541). Consequently, this panel was retained as the primary dataset for the merging process.
The second step was to select the join keys for the grand merger between panels. As it is well known, the municipality codes (called DIVIPOLA) and years are the proper identifications for the subsequent task to estimate variables at the municipality level. The result of this joint created a panel of 43541 observations with 2718 variables. The third step was to retain in this aggregated panel the information between the years 2000 and 2020.
After the suppression of observations by the previous condition, the resulting panel contained 23,563 observations. As some of the panels had the same variables (thus repeated), an algorithm to delete the duplicates was executed. This let a panel of 2,654 variables and 23,563 observations.
The fourth step was to count the missing values for all the variables and then calculate the percentage of missing values per variable. A strong condition was later applied to the data at this point, and it was to retain only the variables with 1% or lower relative to the count of missing values. This to ensure as possible the existence of real information (without any imputation on the features). Further some empty (but not missing) character variables were dropped 2. The resulting panel at this point contained 48 variables and 23, 563 observations.
The fifth step was to convert all character variables to numerical variables, this left some empty but not missing variables again3. In this point, a final condition is applied to retain only complete cases for the panel. The resulting panel then contained 44 variables and 23 082 observations.
The sixth step was to recover the unique information of the Gini available only in the year 2005 which was inside the panel of General Characteristics 2023. Then it was merged back into the cleaned panel without missing values for the panel to proceed with the estimation techniques. The panel for these processes contains 45 variables and 23,082 observations.
The software and programs used to estimate the different machine learning models, and their graphics are developed by Ridgeway (2007), Kuhn (2008), Wickham (2011), Therneau et al. (2015), Wickham et al. (2019), Yarberry (2021). Where the structure was checked first to ensure that all variables/predictors or “features” were numerical (including the conversion from categorical ones). The second step for the machine learning imputation was to identify the data where the Gini exists and where it is missing.
The third step was to define the predictors (44 variables) and the target variable (the Gini). Then a seed was placed to train models upon cross validation. The number of folds selected for these processes was established in five to train the algorithm with the cross-validation approach. Given that some variables are duplicated in essence, and that some ID variables are also included in the panels, a cleaning process is done to let one type of cluster ID variable for geographical/administrative locations.
The fourth step was to estimate the linear regression, regression tree, random forest and gradient boosting models to investigate which was the most suitable on the training data. The results of step 4 are represented in Figure 1 which contains the classic measures of R2 and RMSE for continuous outcomes. These estimations suggest that random forest approach outperforms the rest of the models. It exhibits an R2 = 98.67% with an RMSE = 0.005 suggesting a precise result even after cross-validation with five folds. With this best model (the random forest), the Gini data is imputed for the whole panel without missing values (K = 45, N = 23,082) including the target variable. The panel hence contains information of about 1091 municipalities (this vary depending on the number of non- missing values on the predictors) for the years 2000 and 2020.

An additional important result is the importance of the variables for the random forest estimation. Which are displayed in Figure 2. By looking at Figure 2 it is possible to identify a pattern in scale of importance for the random forest estimation. The starting variable “coddepto” which refers to the geographical cluster of the administrative divisions of Departments of Colombia. This is the next administrative division after the Nation. The variable “gpacifica” relates to the location of the “pacific region” of Colombia. Then is followed by the distance towards Bogota (the capital of Colombia), the altitude, the linear distance to the most import food market nearby (in Km), the linear distance to the nearby municipality where the highest food market is located, the linear distance to the capital of the Department followed by other fixed location variables such as the Andina, Amazonia, and Caribbean regions. This first set of variables has one thing in common. They are variables related to the geographical physical locations of the municipality.
On the second set of important variables, it is found that socioeconomic characteristics involve population dynamics, school, educational and human capital topics. This set the variables includes the rural density of the municipalities, the total number of school schedule (classes), total number of students in middle education, the total number of students in kindergartens, the total number of students in secondary education, the urban and total population of the municipality, the number of teachers, the number of educational facilities, and the number of school schedules for primary education.
The selection of fixed or “semi-fixed” characteristics, such as geographical clusters and distances, is interpreted as a form of fixed effects from an econometric perspective. In general, there are some existing time- invariant characteristics which can explain a significant portion of individuals’ heterogeneity; this implies that such constant fixed effects are present. This fits into the categories of distance and geographical static clusters. Beyond this interpretation, they could include institutional time invariant characteristics like local authorities’ performance, constant physical infrastructure and roads of communication or access to other municipalities, in particular, the capital of Colombia, Bogota, and capital of the departments. Market interconnections play a key role here as well.

According to Figure 2 these fixed effects are the main drivers of the inequality across the Colombian municipalities. The question of what and how much will change the estimates will be addressed in the next section with varying factors. For now, using this data it is interesting to see how income inequality might relate to the continuous variables used in the random forest estimations. This is to understand a bit better the black box inside the synthetic data and what patterns can be empirically identified.
Figure 3 depicts some of the non-linear interrelations between the Synthetic Gini coefficient and some of the primary continuous regressors (or features) used in the Random Forest model. Some clear patterns emerge from these dispersions: a) The larger the distance of the municipality relative to the capital of the country (Bogota) implies a larger income inequality. b) The larger the distance of the municipality relative to the largest food market nearby implies a larger income inequality. c) An increasing size of the class schedules in rural areas tends to drive a higher inequality until a turning point where class schedules are large enough to invert the pattern, resulting in a decrease in inequality (inverted U-shape relation). d) There is a decreasing relationship between inequality and the number of middle school students, however, at some point, when students conglomerate, the inequality starts to grow again. e) When the ratio of rural population surpasses the urban population implies a growing inequality. f) As a consequence, there’s a positive and almost linear relationship between the rural population and income inequality. g) Urban population has a decreasing effect on the estimations of income inequality, however, when urban population massifies, the inequality starts to grow again (U-shape relation). h) The total population mimics the behaviour of the urban population, hence when massification arises, inequality grows again.

These patterns are consistent with the economic literature4, where for example, the peripheral regions or zones are prone to suffer from income inequality given the lack of market interconnexion, public services and the provision of goods. This is why patterns of Figure 3 relative to panels (a) and (b) are strong. These capture the relative distance to the capital of the country, and the linear distance to the central food markets. According to this argument the population dynamics such as rural concentration and rural population, seem to be positive correlated with the synthetic inequality, as witnessed in panels (e) and (f). Finally, the nonlinear dynamics of human capital accumulation are also very interesting to analyse. The fact that rural school schedules have an inverted U-shape reflects some of the internal dynamics related to opportunities and school attendance which will tend to decrease inequality if they are high enough. When school schedules satisfy the demand of schooling in rural territories, it is most likely to encounter a reduction in the synthetic inequality. On the other hand, from the side of the demand as seen in panel (d), when the number of middle school students increases enough, students will face a constraint in the access of education, delivering an increase in synthetic inequality. Finally, population dynamics relative to the urban population (g) and total population (h) have a U-shape relationship, implying that when massification of the municipalities occurs, synthetic inequality will tend to increase.
Next, the behaviour of the synthetic Gini index produced by the Random Forest at the Department level and its evolution over time is shown in Figure 4 and Figure 5. The error bars of the plot imply that there is no significant intra-Department level variation. Which is consistent from the most important variables used in the Random Forest which are in essence “fix”. The Department with the highest synthetic income inequality is Chocó with almost a Gini of 0.54 meanwhile the lower income inequality is reflected in Bogota with a Gini closer to 0.43. This is no surprise as Chocó has been historically characterized for the lack of opportunities, massive income concentration, and distance to the capital. On the other hand, Bogotá becomes the most equal place in the estimations with the fixed factors. The peripherical areas including Cauca, Amazonas, Vaupes, Guainía, Guaviare and Caquetá are also according to the pattern of high-income inequality. The yearly evolution of the synthetic income inequality produced by the Random Forest does not have significant changes. In fact, the synthetic inequality seems to round a consistent 0.457 of the Gini and a 0.454 reflecting a stagnating income inequality average for each year. At the best case, it has decreased just 0.002 of the Gini in the lapsus of 20 years.


Considering the previous interpretation, and particularly the pattern displayed in Figure 5, one could ask how the synthetic Gini coefficient might change by leaving in the Random Forest a set of pure varying regressors. It is easy to identify the fixed and “semi-fixed”5 regressors from Figure 2.
The Random Forest model was re-estimated while excluding the fixed and “semi-fixed regressors 6. Following this adjustment, the performance of the machine learning models is presented in Figure 6, where the Random Forest once again demonstrates superior performance compared to gradient boosting, regression decision trees, and linear regression. The evaluation metrics for the Random Forest indicate an R² of 94.3 and an RMSE of 0.012.

While the first model “Dominant in fixed effects” estimates with a precision of R2 =98.67%, the model with “Dominant in varying factors” estimates the precision in R2 = 94.3%. Surprisingly, the loss is about 4.37%, which is interpreted as a non-significant decrease. Now, what kind of regressors dominate the varying factors models? Let’s inspect this in the next Figure 7, where the importance of variables is presented.
The set of factors which drive the Random Forest are now all related to socioeconomic characteristics, in particular, human capital accumulation is one of the major drivers along with population dynamics. The initial stage of human capital accumulation also displays an important role.
Regarding the human capital accumulation variables, kindergarten class schedules is the most important variable for this Regression Forest, followed by the rural class schedules. The third important variable is related to the rural index, followed by the number of female teachers in kindergarten. The rural and urban population are next in the importance. Then the number of students in kindergarten, the number of educational facilities, the number of administrative personal in the educational facilities, and the number of teachers in rural areas, followed by the number of middle school students. Total population also enters here with more human capital indicators related to total count of teachers, total school students, total number of students in public institutions, and total number of dedicated class schedules to middle education.

Considering that the model with dominant fixed effects might potentially drive differential results in terms of pure “memory”, this section will present the behaviour of the Synthetic Gini Coefficient with the model of varying factors. To have some comparisons, the nonlinear relationships are presented with the same variables as the first models. This is to inspect some potential robustness of the results and the patterns. Figure 8 shows the relative patterns of the Synthetic Gini Coefficient with the regressors of the model with dominant fixed effects.

At first glance, it is surprising that the patterns are virtually the same, however, the magnitude of the estimates differs slightly. The same pattern described in the previous section exists as shown in Figure 8. However, the magnitude is what might significantly change according to the values on the y-axis. This behaviour cannot be seen easily in the previous plots.
The next Figure 9 and Figure 10 present the variation across Departments and the evolution over time of the Synthetic Gini Index under the dominant factor varying model. As expected, in contrast to the dominant fixed effects model, the factor varying model presents a higher volatility across Departments and across time. This is because the drivers are “stiffer” in the first model when it comes to synthetize the Gini coefficient across time. On the other hand, more variability exists when relying on the varying regressors. However, some consistent findings do exist. Chocó is in fact the most unequal Department of Colombia again, but now instead of Bogotá, Quindío seems to be best in terms of synthetic inequality. Across time, differential dynamics are witnessed, first the starting inequality is about 0.469 but it reduces to 0.459 with some significant increases in the year 2006 and 2013. Whereas in the dominant fixed effects model the starting inequality started in 0.4567 and decreased to 0.4557. Hence, confirms the “stiffness” of the dominant fixed effects model.


Considering both imputations, the Synthetic Gini Coefficient presents a relative asymmetric evolution from the Dominant Fixed Effects model and the Varying Factor model. To present these asymmetries, the Figure 11 and Figure 12 show the geographical distribution of the Synthetic Gini coefficient for both Dominant Fixed Effects model and the Varying Factor model.
Important aspects to remark on are that the Dominant Fixed Effects model does present a conservative evolution of the income inequality, with a barely noticeable improvement. Meanwhile, the Varying Factor model does depict some improvements in Colombia. The figures contain a set of three panels, panel (a) that shows the Gini Synthetic estimate for the year 2000, panel (b) which do the same for the year 2020, and panel (c) which shows the absolute change. The black areas of the last panel represent a null change in the lapsus of 20 years, the red areas show a worsening situation where inequality increased, and the light blue areas represent a potential improvement in income inequality. This distributional framework concludes that the Varying Factor model does present the most optimistic evolution of income inequality across Colombia, as panel (c) presents lighter zones in contrast to the Dominant Fixed Effects model.


A diverging result is found for the areas where income inequality increased. For example, in the conservative estimates of the Dominant Fixed effects model, the west of Colombia, close to the pacific region has deteriorated in terms of their income inequality. In contrast, the Varying Factor model shows that the northern part of Colombia has worsened its income inequality condition.
This section only presents the tables of descriptive statistics as the final part of the study.
Year | N | Min | Max | Mean | Median | Std_Dev |
2000 | 1091 | 40.43 | 54.84 | 45.62772 | 44.870 | 2.844194 |
2001 | 1102 | 40.44 | 54.61 | 45.64716 | 44.870 | 2.871935 |
2002 | 1107 | 40.41 | 54.73 | 45.64290 | 44.830 | 2.894591 |
2003 | 1104 | 40.41 | 54.46 | 45.58965 | 44.810 | 2.894910 |
2004 | 1109 | 40.38 | 55.27 | 45.64208 | 44.850 | 2.897762 |
2005 | 1095 | 39.43 | 56.81 | 45.56487 | 44.860 | 3.397956 |
2006 | 1099 | 40.13 | 55.96 | 45.55332 | 44.730 | 3.123218 |
2007 | 1044 | 40.22 | 55.38 | 45.65627 | 44.875 | 3.069900 |
2008 | 1104 | 40.17 | 55.77 | 45.53265 | 44.690 | 3.095974 |
2009 | 1111 | 40.12 | 55.63 | 45.53998 | 44.690 | 3.096774 |
2010 | 1114 | 40.18 | 55.50 | 45.56136 | 44.705 | 3.081708 |
2011 | 1115 | 40.19 | 55.62 | 45.55137 | 44.690 | 3.070800 |
2012 | 1116 | 40.17 | 55.43 | 45.54370 | 44.710 | 3.070403 |
2013 | 1107 | 40.15 | 55.42 | 45.54397 | 44.680 | 3.079029 |
2014 | 1089 | 40.30 | 55.67 | 45.57413 | 44.670 | 3.034139 |
2015 | 1085 | 40.31 | 55.66 | 45.56259 | 44.670 | 3.019958 |
2016 | 1084 | 40.26 | 55.72 | 45.57653 | 44.670 | 3.028247 |
2017 | 1104 | 40.31 | 55.69 | 45.58164 | 44.655 | 3.024949 |
2018 | 1095 | 40.27 | 55.34 | 45.56455 | 44.670 | 3.017022 |
2019 | 1103 | 40.25 | 55.46 | 45.57606 | 44.660 | 3.023271 |
2020 | 1104 | 40.24 | 55.64 | 45.58049 | 44.670 | 3.027407 |
Total | 23082 | 39.43 | 56.81 | 45.58135 | 44.750 | 3.032628 |
Year | N | Min | Max | Mean | Median | Std_Dev |
2000 | 1091 | 42.33 | 50.21 | 46.73063 | 46.670 | 1.540815 |
2001 | 1102 | 42.19 | 50.19 | 46.66831 | 46.550 | 1.545259 |
2002 | 1107 | 42.14 | 50.33 | 46.47703 | 46.320 | 1.539203 |
2003 | 1104 | 42.34 | 50.19 | 46.30774 | 46.305 | 1.453158 |
2004 | 1109 | 42.21 | 49.72 | 45.94070 | 45.750 | 1.349514 |
2005 | 1095 | 39.43 | 56.81 | 45.48358 | 44.860 | 3.353495 |
2006 | 1099 | 41.22 | 51.82 | 45.28877 | 44.990 | 1.880035 |
2007 | 1044 | 41.16 | 51.74 | 45.62739 | 45.640 | 1.523703 |
2008 | 1104 | 41.33 | 51.96 | 45.07485 | 44.910 | 1.606435 |
2009 | 1111 | 41.25 | 51.04 | 45.07825 | 45.000 | 1.579002 |
2010 | 1114 | 41.29 | 51.07 | 45.19388 | 45.115 | 1.530773 |
2011 | 1115 | 41.22 | 50.49 | 45.09755 | 44.950 | 1.440838 |
2012 | 1116 | 41.32 | 50.63 | 45.02939 | 44.930 | 1.399990 |
2013 | 1107 | 41.38 | 50.87 | 44.94650 | 44.870 | 1.349895 |
2014 | 1089 | 41.98 | 50.81 | 45.87338 | 45.790 | 1.401379 |
2015 | 1085 | 41.76 | 50.23 | 45.68106 | 45.680 | 1.212002 |
2016 | 1084 | 41.96 | 50.04 | 45.70012 | 45.730 | 1.188298 |
2017 | 1104 | 42.03 | 50.30 | 45.65135 | 45.690 | 1.165503 |
2018 | 1095 | 41.81 | 49.49 | 45.72513 | 45.740 | 1.197512 |
2019 | 1103 | 41.96 | 49.44 | 45.67634 | 45.730 | 1.141141 |
2020 | 1104 | 41.82 | 49.54 | 45.67902 | 45.730 | 1.137567 |
Total | 23082 | 39.43 | 56.81 | 45.66182 | 45.590 | 1.651774 |
4. Conclusion
This study is an effort to contribute to the missing data problem of income inequality in Colombia by synthesizing two datasets estimating the Gini coefficient at the municipality level between the years 2000-2020, this is done through machine learning techniques. This resulted in two models estimated through the technique of Random Forest, which was the best model across the estimations, and outperformed in comparison the gradient boosting, the regression trees, and the linear regression approaches. The two models using the Random Forest are described as the following: 1) A Dominant Fixed Effects model denominated like this given the nature of the importance of the predictors/features that compose it, which is mainly based on a set of fixed or semi-fixed variables. 2) A Dominant Varying Factor model as an alternative to the Dominant Fixed Effects models, estimated mainly with time-varying predictors/features. Both models perform in their metrics quite well, with an R2 = 98.67% for the Dominant Fixed Effects model and an R2 = 94.3% for the Dominant Varying Factor model. Hence, the estimation of these models to the rest of panel is denominated as the Synthetic Gini Coefficient/Index.
The Dominant Fixed Effects model presents the Synthetic Gini Coefficient with minimum/conservative/stiff changes, where inequality in average has decreased from 45.63 in 2000 to 45.58 in 2020. In contrast the Dominant in Varying Factors model presents more variability over time, starting with a mean inequality of 46.73 which has reduced to 45.67. All the estimates, reflect that Colombia has not improved their income inequality condition. Also, provides evidence of existing heterogeneities that are present in the municipalities of Colombia. For both estimations, the Department of Chocó is the most unequal of the Colombian territory. The fact that Colombia has not improved greatly the situation of income inequality over this period, raises questions about the level of welfare improvement in the country7.
In the Dominant in Varying Factors models, the composition of predictors/features used to estimate the Synthetic Gini index consists of two essential categories: human capital accumulation (including both supply and demand variables) and population dynamics. The nonlinear relationships between the Synthetic Gini index and predictor information confirm several patterns observed in the economic literature.
The author performed all tasks involved in manuscript preparation, research, and writing.
Special thanks to the civil organization Veeduria Estudios y Evaluación de la Gestión Pública Colombiana -EEGPC- to raise the interest in this topic. Moreover, special thanks to the Corporación Centro de Interés Público -CIPJUS- to allow the research over open topics in economics and public policy. This research was not funded or financially related. I declare there is no financial or other substantive conflict of interest that could be seen to influence your results or interpretations.
The author declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
