We are clearly living in an era where data is crucial and significant. When I refer to data, I mean big data. Throughout history, various factors have defined powerful individuals, such as wealth, military strength, and loyal followers. In today’s context, I believe that those who have access to big data can be considered leaders. We are currently in an AI era that permeates our daily lives, highlighting the importance of data more than ever before.

If you enjoy math and statistics, working with data can be a fulfilling experience. You can derive various insights from it, depending on your perspective. Each individual can have a unique understanding of data analysis, highlighting the significance of data that cannot be overlooked.

For instance, if you are working on a scientific research project aimed at finding a treatment for a specific type of cancer, you likely recognize the critical role that data plays in your work. Accessing the records of millions of people who have faced that particular cancer can provide valuable insights to help guide your project more effectively.

Considering the aforementioned preamble, I want to address my curiosity about the US presidential election in 2024. I’ve often heard that states with a higher number of universities tend to lean towards the Democratic Party. To explore this idea, I decided to create both a choropleth map and a bar chart for visualization. Plotly Graphing Libraries offers a variety of excellent tools for creating visualizations and diagrams.

First, I extracted the latest updates of the USA 2024 presidential election for each county and state. You can access it in the this GitHub repository.

I compiled a list of top U.S. universities with a QS ranking below 500 from universityrankings.ch. Then, I asked an AI chatbot to revise the list and add a new column indicating the state in which each university is located. Claude made it very straightforward.

The final stage involves data cleaning and data engineering to prepare the data for visualization. Since I am not proficient in data engineering, I received support from Clause, which provided me with the necessary code to obtain the final dataset before visualizing it.

Now you can see the results (To see the details, save the picture). The darker the color, the more top universities are found in that state. It appears that states with the best universities tend to lean more toward the Democratic Party. However, some states have shifted towards the Republican Party in recent elections. This suggests that we cannot apply the general trend observed in previous elections with complete certainty to the recent one.

USA 2024 presidential election Vs Top US Universities

USA 2024 presidential election Vs Top US Universities

Certainly, by incorporating additional factors and visualizing them, you might derive different interpretations. Therefore, in data analysis, it is crucial to wisely select the parameters and entries.

You can look at the code below.