In this Data Analysis homework, we delve into election data from Naples, Italy. The dataset provides information on the number of valid votes for various political leaders in different municipalities within the Naples district. The dataset contains voting numbers for six political leaders: Berlusconi, Bersani, Grillo, Monti, Ingroia, and others. With a total of 450,372 voting observations, our objective is to conduct a Correspondence Analysis (CA) to explore the association between these two categorical variables, the municipalities' voting behavior and the political leaders. The primary aim of this analysis is to gain a deeper understanding of the voting patterns across Naples, Italy.
Results and Interpretations
Test of independence between the rows and the columns:
|Chi-square (Observed value)||11925.220|
|Chi-square (Critical value)||61.656|
Smallest P value <0.0001 the chi-square is significant, and the 2 variables are not independent
Total inertia = 0.026
Interpretation: Total inertia is the Chi-squared divided by the total number of observations (n) which provides an indicator of the total information to explain.
The total inertia also known as total weighted Variance explained by the five components is calculated to be 0.026 as highlighted above.
Eigenvalues and percentages of inertia:
First, it appears that, with a single dimension, 63.85% of the inertia can be explained, that is, the relative frequency values that can be reconstructed from a single dimension can reproduce 63.85% of the total Chi-square value for this two-way table; two dimensions allow us to explain 93.15 %.
Interpretation: Through analyzing the percentages of inertia, we can determine that 93.15% of the observations are determined by the first two factors within the dataset. As such, the analysis of voting behavior across the municipalities will be on the basis of F1 and F2.
According to the graph above, only dimensions 1 and 2 should be used in the solution. The dimension 3 explains only 0,2% of the total inertia which is below the average.
Interpretation: The above table indicates the percentage of the population who vote for each political leader within each municipality.These are the values the will be plotted on the row oriented plot.CA investigates the differences between each individual row profile and the average row profile
From the table above we can observe that 31.2 % of the population in Naples voted for Berlusconi vs. 29.3% who voted for Bersani, followed by Grillo at 24.6%. Even though Berlusconi received a majority of votes, we can observe varied positions of different municipalities based on their political inclinations. For example, a larger proportion of Municipality 5 voted for Bersani (36.8%) vs. Berlusconi (22.4%). On the other hand, a large proportion of the population in Municipality 1 voted for Berlusconi (32.5%) vs. Bersani (28.2%). Further investigation is required to understand each municipality’s political inclination and their voting behavior according to the political leaders.
In M01 and M07 , M05 people vote in different way
Principal coordinates (rows):
Interpretation: the above symmetric row plot provides a distribution of municipality voting based on Factor 1 and Factor 2 which explains 93.15% of the variability and relationship. The row plot graph shows that municipality 7, 5 and 1 distributions are farthest from the mean, indicating that those municipalities have the strongest political inclinations. From the graph we can interpret that M7 and M5 are opposite with respect to the voting behavior and which political party they lean towards. we can see that if two points are close to each other that means they share a similar profile , like M02 and M03.
Principal coordinates (rows):
In this correspondence analysis, 5 factors were considered in the row analysis which 10 municipalities across the political leaders. From the results presenter, M01, M05 and M10 shows greater variability among all the municipalities. The sum of the modulus of the first first factors is more than that of the of the last three. Hence, the first two factors F1 and F2 are sufficient and highly significant in explaining explaining the variability and relationships among the municipalities.
Interpretation: the above asymmetric row plot provides the distribution of both the municipalities and the political leaders based on the two main factors F1 and F2. This graph helps visually understanding the relationship between municipalities and the political leaders. For example, we can understand from the graph that a large proportion of the population in municipalities M05, 06 and 10, vote for Bersani whereas municipalities M07, 08, 04, and 09 vote for Berlusconi with respect to the mean because the points are attracted by Berlusconi with respect to the mean . M10 the proportional voted for Ingroia Is greater with respect to the other.
Each point is the body center of the red points using weight which reflect how much the municipality voted for the candidate with respect to the other municipality .
Squared Cosines (rows):
|F1||F2||F3||F4||F5||Sum of F1 and F2|
Interpretation: the squared cosines are used to indicate the level of significance of the observations within the data set. We take the sum of the squared cosines of F1 and F2 to determine the level of significance against each municipality and validate. Given the sum of F1 and F2 for all municipalities is above 0.05 we can conclude that factor 1 and 2 show a high level of significance to explain the voting behavior of all municipalities.
The result of the analysis shows that the contingency table has been successfully represented in low dimension space using correspondence analysis. The two factors 1 and 2 are sufficient to retain 93,15% of the total inertia (variation) contained in the data. However, not all the points are equally well displayed in the two dimensions. If a row item is well represented by two dimensions, the sum of the cos2 is close to one like M01,M07,M05. For some of the row items, more than 2 dimensions are required to perfectly represent the data like M02.
We can see in the graph the distribution of the votes in differents municipalitie , we see that berlusconi and bersani are opposite with respect these profiles , first we can notice that they are different from the mean because they are far from the origin, they behave in opposite ways because they may have municipalities more habitant where the votes are higher and the other less people vote with respect these profile to these column Bersusconi and bersani behave different in opposite way with respect to the mean and others .we can see in the table that the M01 vote by 10% to Berlusconi whereas for Bersani only 8.8%.
Principal coordinates (columns):
Presented in the table above are five principal coordinates for the political leaders across the ten municipalities with different magnitudes. The most significant coordinates are the first two which are F1 and F2 as highlighted in the table. This implies that the conclusion that will be drawn when all the coordinates are been evaluated is almost the same as that of the first two coordinates. In all the coordinates, there are equal positive and negative values except F5.
Going by the mean, all political leaders received the most valid votes from M05, Monti received the highest valid votes among the political leaders following by Bersani and then Ingroia. The remaining political leaders had lesser votes compared to the three leaders mentioned.
In the above table, the relative weight is presented for all the political leaders. On the average, Berlusconi had more valid votes across municipalities with 30.3% contributions followed by Bersani with 30% contributions and Grillo with 24.6% contributions. The remaining political leaders contribute only 15% collectively.
Overall, the data analysis above provided insightful information to municipalities voting behaviors across the different candidates. We can see from the above-mentioned results and interpretation the following key conclusions:
- Berlusconi was the lead contender with respect to number of votes, where 31.2% of the population of Naples voted for him, followed by Bersani in second position who gathered 29.3% of the votes in Naples.
- The political leaders Berlusconi, Bersani, and Grillo made up 85.1% of the total votes.
- Berlusconi and Bersani are positioned on opposite sides of the political party, in which Berlusconi is the right wing and Bersani is left wing.
- Municipality 7 had the largest proportion of their population voting for Berlusconi, while Municipality 5 had the largest proportion of voters for Bersani.
- Voters for Grillo in Municipality 1 were particularly low due to divergence in political inclination and thinking.
- The other candidates within the elections tended to be more aligned with the right-wing, potentially additional votes away from Berlusconi.
- Although Ingroia only succeeded in taking 3.6% of the total votes in Naples, his party affiliation was more left-wing, thus potentially taking away votes from Bersani.
- Municipalities 2 and 3 were closest to the mean, indicating that their population was even split with respect to votes between the different political leaders.